Skip to content

Commit

Permalink
Update .env and scripts for tx simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
nadir-akhtar-coinbase committed Mar 19, 2024
1 parent 145df39 commit c132b08
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion mainnet/2024-03-05-pause-unpause-test/.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OP_COMMIT=10b06fb49861053999a89533d846ee5c2ccb33e1
BASE_CONTRACTS_COMMIT=fe492be3478134b2305c207a12b153eca04148c0
BASE_CONTRACTS_COMMIT=56d8f40b48795663fa88366d762161af5a1ba5d5

OPTIMISM_PORTAL_PROXY=0x49048044D57e1C92A77f79988d21Fa8fAF74E97e
GUARDIAN=0x14536667Cd30e52C0b458BaACcB9faDA7046E056
12 changes: 0 additions & 12 deletions mainnet/2024-03-05-pause-unpause-test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ ifndef LEDGER_ACCOUNT
override LEDGER_ACCOUNT = 0
endif

ifndef EXECUTOR_PRIVATE_KEY
$(error EXECUTOR_PRIVATE_KEY is undefined)
endif

ifndef PAUSE_SIGNATURES
$(error PAUSE_SIGNATURES is undefined)
endif

ifndef UNPAUSE_SIGNATURES
$(error PAUSE_SIGNATURES is undefined)
endif

##
# Incident response commands
# Note that --ledger --hd-paths <PATH> can be replaced with --private-key $(PRIVATE_KEY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ contract PausePortal is MultisigBuilder {
function _ownerSafe() internal override view returns (address) {
return GUARDIAN;
}

function _addOverrides(address _safe) internal override pure returns (SimulationStateOverride memory) {
return overrideSafeThresholdAndOwner(_safe, DEFAULT_SENDER);
}
}
11 changes: 11 additions & 0 deletions mainnet/2024-03-05-pause-unpause-test/script/UnpausePortal.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,15 @@ contract UnpausePortal is MultisigBuilder {
function _ownerSafe() internal override view returns (address) {
return GUARDIAN;
}

function _addOverrides(address _safe) internal override pure returns (SimulationStateOverride memory) {
return overrideSafeThresholdAndOwner(_safe, DEFAULT_SENDER);
}

function _getNonce(IGnosisSafe safe) internal override view returns (uint256 nonce) {
uint256 _nonce = safe.nonce();
console.log("Safe current nonce:", _nonce);
console.log("Incrememnting by 1 to account for planned `Update` tx");
return _nonce+1;
}
}

0 comments on commit c132b08

Please sign in to comment.