File tree Expand file tree Collapse file tree 3 files changed +136
-0
lines changed
deployments/sonic/operations Expand file tree Collapse file tree 3 files changed +136
-0
lines changed Original file line number Diff line number Diff line change
1
+ const { deployOnSonic } = require ( "../../utils/deploy-l2" ) ;
2
+ const addresses = require ( "../../utils/addresses" ) ;
3
+
4
+ const EXECUTOR_ROLE =
5
+ "0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63" ;
6
+
7
+ module . exports = deployOnSonic (
8
+ {
9
+ deployName : "007_strategist_as_executor" ,
10
+ } ,
11
+ async ( { ethers } ) => {
12
+ const cTimelock = await ethers . getContractAt (
13
+ "ITimelockController" ,
14
+ addresses . sonic . timelock
15
+ ) ;
16
+
17
+ return {
18
+ actions : [
19
+ {
20
+ contract : cTimelock ,
21
+ signature : "grantRole(bytes32,address)" ,
22
+ args : [ EXECUTOR_ROLE , addresses . sonic . guardian ] ,
23
+ } ,
24
+ ] ,
25
+ } ;
26
+ }
27
+ ) ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 1.0" ,
3
+ "chainId" : " 146" ,
4
+ "createdAt" : 1738756865 ,
5
+ "meta" : {
6
+ "name" : " Transaction Batch" ,
7
+ "description" : " " ,
8
+ "txBuilderVersion" : " 1.16.1" ,
9
+ "createdFromSafeAddress" : " 0xAdDEA7933Db7d83855786EB43a238111C69B00b6" ,
10
+ "createdFromOwnerAddress" : " "
11
+ },
12
+ "transactions" : [
13
+ {
14
+ "to" : " 0x31a91336414d3B955E494E7d485a6B06b55FC8fB" ,
15
+ "value" : " 0" ,
16
+ "data" : null ,
17
+ "contractMethod" : {
18
+ "inputs" : [
19
+ {
20
+ "type" : " address[]" ,
21
+ "name" : " targets"
22
+ },
23
+ {
24
+ "type" : " uint256[]" ,
25
+ "name" : " values"
26
+ },
27
+ {
28
+ "type" : " bytes[]" ,
29
+ "name" : " payloads"
30
+ },
31
+ {
32
+ "type" : " bytes32" ,
33
+ "name" : " predecessor"
34
+ },
35
+ {
36
+ "type" : " bytes32" ,
37
+ "name" : " salt"
38
+ }
39
+ ],
40
+ "name" : " executeBatch" ,
41
+ "payable" : true
42
+ },
43
+ "contractInputsValues" : {
44
+ "targets" : " [\" 0x31a91336414d3B955E494E7d485a6B06b55FC8fB\" ]" ,
45
+ "values" : " [\" 0\" ]" ,
46
+ "payloads" : " [\" 0x2f2ff15dd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6300000000000000000000000063cdd3072f25664eec6faeff6daeb668ea4de94a\" ]" ,
47
+ "predecessor" : " 0x0000000000000000000000000000000000000000000000000000000000000000" ,
48
+ "salt" : " 0xfeaf180361d0a27993ea29f90ae47fe7438812cfada68faaffa906be28760b7a"
49
+ }
50
+ }
51
+ ]
52
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 1.0" ,
3
+ "chainId" : " 146" ,
4
+ "createdAt" : 1738756865 ,
5
+ "meta" : {
6
+ "name" : " Transaction Batch" ,
7
+ "description" : " " ,
8
+ "txBuilderVersion" : " 1.16.1" ,
9
+ "createdFromSafeAddress" : " 0xAdDEA7933Db7d83855786EB43a238111C69B00b6" ,
10
+ "createdFromOwnerAddress" : " "
11
+ },
12
+ "transactions" : [
13
+ {
14
+ "to" : " 0x31a91336414d3B955E494E7d485a6B06b55FC8fB" ,
15
+ "value" : " 0" ,
16
+ "data" : null ,
17
+ "contractMethod" : {
18
+ "inputs" : [
19
+ {
20
+ "type" : " address[]" ,
21
+ "name" : " targets"
22
+ },
23
+ {
24
+ "type" : " uint256[]" ,
25
+ "name" : " values"
26
+ },
27
+ {
28
+ "type" : " bytes[]" ,
29
+ "name" : " payloads"
30
+ },
31
+ {
32
+ "type" : " bytes32" ,
33
+ "name" : " predecessor"
34
+ },
35
+ {
36
+ "type" : " bytes32" ,
37
+ "name" : " salt"
38
+ },
39
+ {
40
+ "type" : " uint256" ,
41
+ "name" : " delay"
42
+ }
43
+ ],
44
+ "name" : " scheduleBatch" ,
45
+ "payable" : false
46
+ },
47
+ "contractInputsValues" : {
48
+ "targets" : " [\" 0x31a91336414d3B955E494E7d485a6B06b55FC8fB\" ]" ,
49
+ "values" : " [\" 0\" ]" ,
50
+ "payloads" : " [\" 0x2f2ff15dd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6300000000000000000000000063cdd3072f25664eec6faeff6daeb668ea4de94a\" ]" ,
51
+ "predecessor" : " 0x0000000000000000000000000000000000000000000000000000000000000000" ,
52
+ "salt" : " 0xfeaf180361d0a27993ea29f90ae47fe7438812cfada68faaffa906be28760b7a" ,
53
+ "delay" : " 86400"
54
+ }
55
+ }
56
+ ]
57
+ }
You can’t perform that action at this time.
0 commit comments