Skip to content

feat: Add Task to Switch to Permissioned Game and Blacklist Addresses#489

Open
jjtny1 wants to merge 40 commits intomainfrom
joby.thundil/blacklist-games-template
Open

feat: Add Task to Switch to Permissioned Game and Blacklist Addresses#489
jjtny1 wants to merge 40 commits intomainfrom
joby.thundil/blacklist-games-template

Conversation

@jjtny1
Copy link
Contributor

@jjtny1 jjtny1 commented Oct 30, 2025

This PR introduces a new template to switch our respectedGameType to a Permissioned game and allows us to blacklist specific games.

Only the op security council can sign for this task.

Base automatically changed from joby.thundil/retire-games-template to main November 25, 2025 14:56
@cb-heimdall
Copy link
Collaborator

cb-heimdall commented Nov 25, 2025

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 2
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 2
2
1 if commit is unverified 0
Sum 2

@jjtny1 jjtny1 requested a review from jackchuma December 3, 2025 22:55
@jackchuma
Copy link
Contributor

Can you add a FACILITATOR.md file to both templates as well?

@jjtny1 jjtny1 requested a review from jackchuma March 2, 2026 07:58

import {Vm} from "forge-std/Vm.sol";
import {stdJson} from "forge-std/StdJson.sol";
import {IMulticall3} from "forge-std/interfaces/IMulticall3.sol";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the multicall import is unused

@@ -0,0 +1,30 @@
OP_COMMIT=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove OP_COMMIT

ADDRESSES_TO_BLACKLIST=

# Mainnet Config
SYSTEM_CONFIG=0x73a79Fab69143498Ed3712e519A88a918e1f4072
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this - it is automatically included from the network .env files now

DISPUTE_GAME_FACTORY=0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e
SENDER=0x1822b35B09f5ce1C78ecbC06AC0A4e17885b925e

# # Sepolia Config
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this entire sepolia config section

@@ -0,0 +1,64 @@
# Switch to Permissioned Game and Blacklist Addresses

Status: PENDING
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Status can be READY TO SIGN

include ../.env
include .env

ifndef LEDGER_ACCOUNT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove this LEDGER_ACCOUNT logic

.PHONY: find-dispute-games-offchain
find-dispute-games-offchain: pip-install
RPC_URL=$(RPC_URL) DISPUTE_GAME_FACTORY=$(DISPUTE_GAME_FACTORY) L2_DIVERGENCE_BLOCK_NUMBER=$(L2_DIVERGENCE_BLOCK_NUMBER) \
python3 script/fetch_dispute_games.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work - there isn't a local python script anymore

ifndef LEDGER_ACCOUNT
override LEDGER_ACCOUNT = 0
endif

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mkdir validations; \
cd $(SIGNER_TOOL_PATH); \
npm ci; \
bun run scripts/genValidationFile.ts --rpc-url $(RPC_URL) \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can use a macro here from #629 (if it gets merged)

$(SCRIPT_NAME) --sig "sign(address[])" ["$(OP_SECURITY_COUNCIL_SAFE)"] --sender $(SENDER)' --out ../validations/op-signer.json;

.PHONY: approve-op
approve-op:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the -op suffix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants