File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ const { deployOnSonic } = require ( "../../utils/deploy-l2" ) ;
2+ const { deployWithConfirmation } = require ( "../../utils/deploy" ) ;
3+ const addresses = require ( "../../utils/addresses" ) ;
4+
5+ module . exports = deployOnSonic (
6+ {
7+ deployName : "025_vault_upgrade" ,
8+ //proposalId: "",
9+ } ,
10+ async ( { ethers } ) => {
11+ const cOSonicVaultProxy = await ethers . getContract ( "OSonicVaultProxy" ) ;
12+
13+ // Deploy new implementation without storage slot checks because of the:
14+ // - Renamed `dripper` to `_deprecated_dripper`
15+ const dOSonicVaultCore = await deployWithConfirmation (
16+ "OSonicVaultCore" ,
17+ [ addresses . sonic . wS ] ,
18+ "OSonicVaultCore" ,
19+ true
20+ ) ;
21+
22+ // ----------------
23+ // Governance Actions
24+ // ----------------
25+ return {
26+ name : "Upgrade VaultCore" ,
27+ actions : [
28+ // 1. Upgrade VaultCore implementation
29+ {
30+ contract : cOSonicVaultProxy ,
31+ signature : "upgradeTo(address)" ,
32+ args : [ dOSonicVaultCore . address ] ,
33+ } ,
34+ ] ,
35+ } ;
36+ }
37+ ) ;
Original file line number Diff line number Diff line change 2020 "019_os_vault_based_dripper" : 1744752764 ,
2121 "020_enable_buyback_operator" : 1749060854 ,
2222 "021_add_validator" : 1750336746 ,
23- "022_os_upgrade_EIP7702 copy" : 1751869952
23+ "022_os_upgrade_EIP7702" : 1751869952 ,
24+ "025_vault_upgrade" : 1756817359
2425}
Load diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ {
2+ "version" : " 1.0" ,
3+ "chainId" : " 146" ,
4+ "createdAt" : 1756817359 ,
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" : " [\" 0xa3c0eCA00D2B76b4d1F170b0AB3FdeA16C180186\" ]" ,
45+ "values" : " [\" 0\" ]" ,
46+ "payloads" : " [\" 0x3659cfe6000000000000000000000000d66afaa7fe071162d055b3cc703cc1eaed836cf3\" ]" ,
47+ "predecessor" : " 0x0000000000000000000000000000000000000000000000000000000000000000" ,
48+ "salt" : " 0x386fa13db5bce5d5e9d812c9e09c59597d1952c225831dd6afeb710cdf50bc8e"
49+ }
50+ }
51+ ]
52+ }
Original file line number Diff line number Diff line change 1+ {
2+ "version" : " 1.0" ,
3+ "chainId" : " 146" ,
4+ "createdAt" : 1756817359 ,
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" : " [\" 0xa3c0eCA00D2B76b4d1F170b0AB3FdeA16C180186\" ]" ,
49+ "values" : " [\" 0\" ]" ,
50+ "payloads" : " [\" 0x3659cfe6000000000000000000000000d66afaa7fe071162d055b3cc703cc1eaed836cf3\" ]" ,
51+ "predecessor" : " 0x0000000000000000000000000000000000000000000000000000000000000000" ,
52+ "salt" : " 0x386fa13db5bce5d5e9d812c9e09c59597d1952c225831dd6afeb710cdf50bc8e" ,
53+ "delay" : " 172800"
54+ }
55+ }
56+ ]
57+ }
You can’t perform that action at this time.
0 commit comments