File tree 4 files changed +26
-11
lines changed
mainnet/2024-03-05-pause-unpause-test
4 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 1
1
OP_COMMIT = 10b06fb49861053999a89533d846ee5c2ccb33e1
2
- BASE_CONTRACTS_COMMIT = fe492be3478134b2305c207a12b153eca04148c0
2
+ BASE_CONTRACTS_COMMIT = 56d8f40b48795663fa88366d762161af5a1ba5d5
3
3
4
4
OPTIMISM_PORTAL_PROXY = 0x49048044D57e1C92A77f79988d21Fa8fAF74E97e
5
5
GUARDIAN = 0x14536667Cd30e52C0b458BaACcB9faDA7046E056
Original file line number Diff line number Diff line change @@ -15,27 +15,27 @@ endif
15
15
# Pause OptimismPortal Commands
16
16
17
17
.PHONY : pause-portal-sign
18
- pause-portal-sign : deps
18
+ pause-portal-sign :
19
19
$(GOPATH ) /bin/eip712sign --ledger --hd-paths " m/44'/60'/$( LEDGER_ACCOUNT) '/0/0" -- \
20
20
forge script --rpc-url $(L1_RPC_URL ) PausePortal --sig " sign()"
21
21
22
22
.PHONY : pause-portal-run
23
- pause-portal-run : deps
24
- forge script --rpc-url $(L1_RPC_URL ) \
25
- PausePortal --sig " run(bytes)" $(SIGNATURES ) \
26
- --ledger --hd-paths " m/44'/60'/ $( LEDGER_ACCOUNT ) '/0/0 " \
23
+ pause-portal-run :
24
+ @ forge script --rpc-url $(L1_RPC_URL ) \
25
+ PausePortal --sig " run(bytes)" $(PAUSE_SIGNATURES ) \
26
+ --private-key $( EXECUTOR_PRIVATE_KEY ) \
27
27
--broadcast
28
28
29
29
# Unpause OptimismPortal Commands
30
30
31
31
.PHONY : unpause-portal-sign
32
- unpause-portal-sign : deps
32
+ unpause-portal-sign :
33
33
$(GOPATH ) /bin/eip712sign --ledger --hd-paths " m/44'/60'/$( LEDGER_ACCOUNT) '/0/0" -- \
34
34
forge script --rpc-url $(L1_RPC_URL ) UnpausePortal --sig " sign()"
35
35
36
36
.PHONY : unpause-portal-run
37
- unpause-portal-run : deps
38
- forge script --rpc-url $(L1_RPC_URL ) \
39
- UnpausePortal --sig " run(bytes)" $(SIGNATURES ) \
40
- --ledger --hd-paths " m/44'/60'/ $( LEDGER_ACCOUNT ) '/0/0 " \
37
+ unpause-portal-run :
38
+ @ forge script --rpc-url $(L1_RPC_URL ) \
39
+ UnpausePortal --sig " run(bytes)" $(UNPAUSE_SIGNATURES ) \
40
+ --private-key $( EXECUTOR_PRIVATE_KEY ) \
41
41
--broadcast
Original file line number Diff line number Diff line change @@ -30,4 +30,8 @@ contract PausePortal is MultisigBuilder {
30
30
function _ownerSafe () internal override view returns (address ) {
31
31
return GUARDIAN;
32
32
}
33
+
34
+ function _addOverrides (address _safe ) internal override pure returns (SimulationStateOverride memory ) {
35
+ return overrideSafeThresholdAndOwner (_safe, DEFAULT_SENDER);
36
+ }
33
37
}
Original file line number Diff line number Diff line change @@ -30,4 +30,15 @@ contract UnpausePortal is MultisigBuilder {
30
30
function _ownerSafe () internal override view returns (address ) {
31
31
return GUARDIAN;
32
32
}
33
+
34
+ function _addOverrides (address _safe ) internal override pure returns (SimulationStateOverride memory ) {
35
+ return overrideSafeThresholdAndOwner (_safe, DEFAULT_SENDER);
36
+ }
37
+
38
+ function _getNonce (IGnosisSafe safe ) internal override view returns (uint256 nonce ) {
39
+ uint256 _nonce = safe.nonce ();
40
+ console.log ("Safe current nonce: " , _nonce);
41
+ console.log ("Incrememnting by 1 to account for planned `Update` tx " );
42
+ return _nonce+1 ;
43
+ }
33
44
}
You can’t perform that action at this time.
0 commit comments