Commit dddc5f2 1 parent 04beb53 commit dddc5f2 Copy full SHA for dddc5f2
File tree 2 files changed +20
-11
lines changed
sepolia/2024-02-28-pause-unpause-portal
2 files changed +20
-11
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,3 @@ BASE_CONTRACTS_COMMIT=fe492be3478134b2305c207a12b153eca04148c0
3
3
4
4
GUARDIAN = 0xA9FF930151130fd19DA1F03E5077AFB7C78F8503
5
5
OPTIMISM_PORTAL_PROXY = 0x49f53e41452C74589E85cA1677426Ba426459e85
6
- GUARDIAN_PRIVATE_KEY = # TODO: Fill in when running script
Original file line number Diff line number Diff line change @@ -2,28 +2,38 @@ include ../../Makefile
2
2
include ../.env
3
3
include .env
4
4
5
- ifndef LEDGER_ACCOUNT
6
- override LEDGER_ACCOUNT = 0
7
- endif
8
-
9
5
# #
10
6
# Incident response commands
11
7
# Note that --ledger --hd-paths <PATH> can be replaced with --private-key $(PRIVATE_KEY)
12
8
# in any command when using a local key.
13
9
# #
14
10
11
+ ifndef PORTAL_GUARDIAN_PRIVATE_KEY
12
+ $(error PORTAL_GUARDIAN_PRIVATE_KEY is undefined)
13
+ endif
14
+
15
15
# Pause OptimismPortal Commands
16
16
17
+ .PHONY : pause-portal-dryrun
18
+ pause-portal-dryrun :
19
+ @forge script --rpc-url $(L1_RPC_URL ) \
20
+ PausePortal --private-key $(PORTAL_GUARDIAN_PRIVATE_KEY )
21
+
17
22
.PHONY : pause-portal
18
- pause-portal : deps
19
- forge script --rpc-url $(L1_RPC_URL ) \
20
- PausePortal --private-key $(GUARDIAN_PRIVATE_KEY ) \
23
+ pause-portal :
24
+ @ forge script --rpc-url $(L1_RPC_URL ) \
25
+ PausePortal --private-key $(PORTAL_GUARDIAN_PRIVATE_KEY ) \
21
26
--broadcast
22
27
23
28
# Unpause OptimismPortal Commands
24
29
30
+ .PHONY : unpause-portal-dryrun
31
+ unpause-portal-dryrun :
32
+ @forge script --rpc-url $(L1_RPC_URL ) \
33
+ UnpausePortal --private-key $(PORTAL_GUARDIAN_PRIVATE_KEY )
34
+
25
35
.PHONY : unpause-portal
26
- unpause-portal : deps
27
- forge script --rpc-url $(L1_RPC_URL ) \
28
- UnpausePortal --private-key $(GUARDIAN_PRIVATE_KEY ) \
36
+ unpause-portal :
37
+ @ forge script --rpc-url $(L1_RPC_URL ) \
38
+ UnpausePortal --private-key $(PORTAL_GUARDIAN_PRIVATE_KEY ) \
29
39
--broadcast
You can’t perform that action at this time.
0 commit comments