-
Notifications
You must be signed in to change notification settings - Fork 4
/
fork.just
88 lines (61 loc) · 3.54 KB
/
fork.just
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
####
# Fork helper scripts
####
vote:
just _impersonate-script SimulateVote
public-release:
just _impersonate-script PauseResume --sig="publicRelease"
pause-csm:
just _impersonate-script PauseResume --sig="pauseCSM"
resume-csm:
just _impersonate-script PauseResume --sig="resumeCSM"
pause-accounting:
just _impersonate-script PauseResume --sig="pauseAccounting"
resume-accounting:
just _impersonate-script PauseResume --sig="resumeAccounting"
propose-reward noId address:
just _impersonate-script NodeOperators --sig="proposeRewardAddress\(uint256,address\)" -- {{noId}} {{address}}
propose-manager noId address:
just _impersonate-script NodeOperators --sig="proposeManagerAddress\(uint256,address\)" -- {{noId}} {{address}}
confirm-reward noId:
just _impersonate-script NodeOperators --sig="confirmRewardAddress\(uint256\)" -- {{noId}}
confirm-manager noId:
just _impersonate-script NodeOperators --sig="confirmManagerAddress\(uint256\)" -- {{noId}}
add-keys noId keysCount:
just _impersonate-script NodeOperators --sig="addKeys\(uint256,uint256\)" -- {{noId}} {{keysCount}}
unvet-keys noId vettedKeysCount:
just _impersonate-script NodeOperators --sig="unvet\(uint256,uint256\)" -- {{noId}} {{vettedKeysCount}}
exit-keys noId exitedKeysCount:
just _impersonate-script NodeOperators --sig="exit\(uint256,uint256\)" -- {{noId}} {{exitedKeysCount}}
stuck-keys noId stuckKeysCount:
just _impersonate-script NodeOperators --sig="stuck\(uint256,uint256\)" -- {{noId}} {{stuckKeysCount}}
defaultAmount := "32000000000000000000"
withdraw-key noId keyIndex amount=defaultAmount:
just _impersonate-script NodeOperators --sig="withdraw\(uint256,uint256,uint256\)" -- {{noId}} {{keyIndex}} {{amount}}
slash-key noId keyIndex:
just _impersonate-script NodeOperators --sig="slash\(uint256,uint256\)" -- {{noId}} {{keyIndex}}
remove-key noId keyIndex:
just _impersonate-script NodeOperators --sig="removeKey\(uint256,uint256\)" -- {{noId}} {{keyIndex}}
deposit-keys depositsCount:
just _impersonate-script NodeOperators --sig="deposit\(uint256\)" -- {{depositsCount}}
target-limit noId limit:
just _impersonate-script NodeOperators --sig="targetLimit\(uint256,uint256,uint256\)" -- {{noId}} 1 {{limit}}
target-limit-forced noId limit:
just _impersonate-script NodeOperators --sig="targetLimit\(uint256,uint256,uint256\)" -- {{noId}} 2 {{limit}}
target-limit-off noId:
just _impersonate-script NodeOperators --sig="targetLimit\(uint256,uint256,uint256\)" -- {{noId}} 0 0
report-stealing noId amount:
just _impersonate-script NodeOperators --sig="reportStealing\(uint256,uint256\)" -- {{noId}} {{amount}}
cancel-stealing noId amount:
just _impersonate-script NodeOperators --sig="cancelStealing\(uint256,uint256\)" -- {{noId}} {{amount}}
settle-stealing noId:
just _impersonate-script NodeOperators --sig="settleStealing\(uint256\)" -- {{noId}}
compensate-stealing noId amount:
just _impersonate-script NodeOperators --sig="compensateStealing\(uint256,uint256\)" -- {{noId}} {{amount}}
exit-request noId validatorIndex validatorPubKey:
just _impersonate-script NodeOperators --sig="exitRequest\(uint256,uint256,bytes\)" -vvv -- {{noId}} {{validatorIndex}} {{validatorPubKey}}
_impersonate-script *args:
cast rpc --rpc-url={{anvil_rpc_url}} anvil_autoImpersonateAccount true
forge script --rpc-url={{anvil_rpc_url}} -vvv --broadcast --unlocked \
--sender=`cat localhost.json | jq -r ".available_accounts[0]"` {{args}}
cast rpc --rpc-url={{anvil_rpc_url}} anvil_autoImpersonateAccount false