@venusprotocol/governance-contracts 2.9.0 → 2.10.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/deploy/005-remote-timelock.ts +12 -0
  2. package/deploy/008-configure-acm-commands-aggregator.ts +82 -0
  3. package/deployments/unichainmainnet/ACMCommandsAggregator.json +366 -0
  4. package/deployments/unichainmainnet/CriticalTimelock.json +691 -0
  5. package/deployments/unichainmainnet/DefaultProxyAdmin.json +200 -0
  6. package/deployments/unichainmainnet/FastTrackTimelock.json +691 -0
  7. package/deployments/unichainmainnet/NormalTimelock.json +691 -0
  8. package/deployments/unichainmainnet/OmnichainExecutorOwner.json +555 -0
  9. package/deployments/unichainmainnet/OmnichainExecutorOwner_Implementation.json +600 -0
  10. package/deployments/unichainmainnet/OmnichainExecutorOwner_Proxy.json +262 -0
  11. package/deployments/unichainmainnet/OmnichainGovernanceExecutor.json +1840 -0
  12. package/deployments/unichainmainnet/solcInputs/12db89567d95e2365104abd281d878ad.json +148 -0
  13. package/deployments/unichainmainnet/solcInputs/1529d9b60b0ef27513a7cc552e55ce94.json +40 -0
  14. package/deployments/unichainmainnet/solcInputs/3d889dc49c1cae3347e0aa149d88041a.json +40 -0
  15. package/deployments/unichainmainnet/solcInputs/4ed4a9331b451c12ab9162dfb0371990.json +97 -0
  16. package/deployments/unichainmainnet.json +3859 -0
  17. package/deployments/unichainmainnet_addresses.json +10 -1
  18. package/deployments/unichainsepolia/ACMCommandsAggregator.json +366 -0
  19. package/deployments/unichainsepolia/CriticalTimelock.json +691 -0
  20. package/deployments/unichainsepolia/DefaultProxyAdmin.json +200 -0
  21. package/deployments/unichainsepolia/FastTrackTimelock.json +691 -0
  22. package/deployments/unichainsepolia/NormalTimelock.json +691 -0
  23. package/deployments/unichainsepolia/OmnichainExecutorOwner.json +555 -0
  24. package/deployments/unichainsepolia/OmnichainExecutorOwner_Implementation.json +600 -0
  25. package/deployments/unichainsepolia/OmnichainExecutorOwner_Proxy.json +262 -0
  26. package/deployments/unichainsepolia/OmnichainGovernanceExecutor.json +1840 -0
  27. package/deployments/unichainsepolia/solcInputs/39b818455672acbd6d12469b0e689d7a.json +40 -0
  28. package/deployments/unichainsepolia/solcInputs/802667e405c8ffe4c217bec1625fcc2b.json +193 -0
  29. package/deployments/unichainsepolia/solcInputs/dd255b4e0156dfc73554b72a83ca02d8.json +40 -0
  30. package/deployments/unichainsepolia.json +3859 -0
  31. package/deployments/unichainsepolia_addresses.json +10 -1
  32. package/dist/deploy/005-remote-timelock.d.ts +2 -0
  33. package/dist/deploy/005-remote-timelock.d.ts.map +1 -1
  34. package/dist/deploy/005-remote-timelock.js +12 -0
  35. package/dist/deploy/005-remote-timelock.js.map +1 -1
  36. package/dist/deploy/008-configure-acm-commands-aggregator.d.ts.map +1 -1
  37. package/dist/deploy/008-configure-acm-commands-aggregator.js +80 -0
  38. package/dist/deploy/008-configure-acm-commands-aggregator.js.map +1 -1
  39. package/dist/helpers/deploy/constants.js +1 -1
  40. package/dist/helpers/deploy/constants.js.map +1 -1
  41. package/dist/helpers/deploy/deploymentConfig.js +1 -1
  42. package/dist/helpers/deploy/deploymentUtils.d.ts.map +1 -1
  43. package/dist/helpers/deploy/deploymentUtils.js +2 -1
  44. package/dist/helpers/deploy/deploymentUtils.js.map +1 -1
  45. package/package.json +1 -1
@@ -15,6 +15,8 @@ export enum REMOTE_NETWORKS {
15
15
  OPMAINNET = "opmainnet",
16
16
  BASESEPOLIA = "basesepolia",
17
17
  BASEMAINNET = "basemainnet",
18
+ UNICHAINSEPOLIA = "unichainsepolia",
19
+ UNICHAINMAINNET = "unichainmainnet",
18
20
  HARDHAT = "hardhat",
19
21
  }
20
22
  type DelayTypes = {
@@ -92,6 +94,16 @@ export const delayConfig: DelayConfig = {
92
94
  fast: 21600,
93
95
  critical: 3600,
94
96
  },
97
+ unichainsepolia: {
98
+ normal: 600,
99
+ fast: 300,
100
+ critical: 100,
101
+ },
102
+ unichainmainnet: {
103
+ normal: 172800,
104
+ fast: 21600,
105
+ critical: 3600,
106
+ },
95
107
  };
96
108
 
97
109
  const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
@@ -203,6 +203,30 @@ const OPBNBTESTNET_OMNICHAIN_EXECUTOR_OWNER = "0x4F570240FF6265Fbb1C79cE824De640
203
203
  const BASEMAINNET_OMNICHAIN_EXECUTOR_OWNER = "0x8BA591f72a90fb379b9a82087b190d51b226F0a9";
204
204
  const BASESEPOLIA_OMNICHAIN_EXECUTOR_OWNER = "0xe3fb08B8817a0c88d39A4DA4eFFD586D3326b73b";
205
205
 
206
+ const UNICHAINSEPOLIA_RESILIENT_ORACLE = "0xA469E718BDE2C9939bD29529A38184e97dF0A741";
207
+ const UNICHAINSEPOLIA_REDSTONE_ORACLE = "0x8683D6902A669Ac479cfcCf2542724a133D4d872";
208
+ const UNICHAINSEPOLIA_BOUND_VALIDATOR = "0x51C9F57Ffc0A4dD6d135aa3b856571F5A4e4C6CB";
209
+ const UNICHAINSEPOLIA_XVS = "0xC0e51E865bc9Fed0a32Cc0B2A65449567Bc5c741";
210
+ const UNICHAINSEPOLIA_XVS_BRIDGE_ADMIN = "0xc570c62bbECCd0a63408de95d9418ad7b89Ff63F";
211
+ const UNICHAINSEPOLIA_XVS_VAULT_PROXY = "0x3a33d235E23B6B54004E25FF8E622228df16717a";
212
+ const UNICHAINSEPOLIA_POOL_REGISTRY = "0x9027cF782515F3184bbF7A6cD7a33052dc52E439";
213
+ const UNICHAINSEPOLIA_PRIME = "0x59b95BF96D6D5FA1adf1Bfd20848A9b25814317A";
214
+ const UNICHAINSEPOLIA_PLP = "0xDA4dcFBdC06A9947100a757Ee0eeDe88debaD586";
215
+ const UNICHAINSEPOLIA_PSR = "0xcCcFc9B37A5575ae270352CC85D55C3C52a646C0";
216
+ const UNICHAINSEPOLIA_GUARDIAN = "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34";
217
+
218
+ const UNICHAINMAINNET_RESILIENT_ORACLE = "0x86D04d6FE928D888076851122dc6739551818f7E";
219
+ const UNICHAINMAINNET_REDSTONE_ORACLE = "0x4d41a36D04D97785bcEA57b057C412b278e6Edcc";
220
+ const UNICHAINMAINNET_BOUND_VALIDATOR = "0xfdaA5dEEA7850997dA8A6E2F2Ab42E60F1011C19";
221
+ const UNICHAINMAINNET_XVS = "0x81908BBaad3f6fC74093540Ab2E9B749BB62aA0d";
222
+ const UNICHAINMAINNET_XVS_BRIDGE_ADMIN = "0x2EAaa880f97C9B63d37b39b0b316022d93d43604";
223
+ const UNICHAINMAINNET_XVS_VAULT_PROXY = "0x5ECa0FBBc5e7bf49dbFb1953a92784F8e4248eF6";
224
+ const UNICHAINMAINNET_POOL_REGISTRY = "0x0C52403E16BcB8007C1e54887E1dFC1eC9765D7C";
225
+ const UNICHAINMAINNET_PRIME = "0x600aFf613d40D87C8Fe90Cb2e78e8e6667c0C872";
226
+ const UNICHAINMAINNET_PLP = "0x045a45603E1b073F444fe3Be7d5C7e0a5035afB7";
227
+ const UNICHAINMAINNET_PSR = "0x0A93fBcd7B53CE6D335cAB6784927082AD75B242";
228
+ const UNICHAINMAINNET_GUARDIAN = "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C";
229
+
206
230
  const ETHEREUM_CONVERTERS: string[] = [
207
231
  "0xaE39C38AF957338b3cEE2b3E5d825ea88df02EfE",
208
232
  "0x4f55cb0a24D5542a3478B0E284259A6B850B06BD",
@@ -431,6 +455,38 @@ const grantPermissions: Permissions = {
431
455
  ...getRewardDistributorPermissionsTimebased(),
432
456
  ...getIRMPermissions(),
433
457
  ],
458
+ unichainsepolia: [
459
+ ...getResilientOraclePermissions(UNICHAINSEPOLIA_RESILIENT_ORACLE),
460
+ ...getRedstoneOraclePermissions(UNICHAINSEPOLIA_REDSTONE_ORACLE),
461
+ ...getBoundValidatorPermissions(UNICHAINSEPOLIA_BOUND_VALIDATOR),
462
+ ...getXVSPermissions(UNICHAINSEPOLIA_XVS),
463
+ ...getXVSBridgeAdminPermissions(UNICHAINSEPOLIA_XVS_BRIDGE_ADMIN),
464
+ ...getXVSVaultPermissions(UNICHAINSEPOLIA_XVS_VAULT_PROXY),
465
+ ...getPoolRegistryPermissions(UNICHAINSEPOLIA_POOL_REGISTRY),
466
+ ...getPrimePermissions(UNICHAINSEPOLIA_PRIME),
467
+ ...getPrimeLiquidityProviderPermissions(UNICHAINSEPOLIA_PLP),
468
+ ...getProtocolShareReservePermissions(UNICHAINSEPOLIA_PSR),
469
+ ...getComptrollerPermissions(),
470
+ ...getVTokenPermissions(),
471
+ ...getRewardDistributorPermissionsTimebased(),
472
+ ...getIRMPermissions(),
473
+ ],
474
+ unichainmainnet: [
475
+ ...getResilientOraclePermissions(UNICHAINMAINNET_RESILIENT_ORACLE),
476
+ ...getRedstoneOraclePermissions(UNICHAINMAINNET_REDSTONE_ORACLE),
477
+ ...getBoundValidatorPermissions(UNICHAINMAINNET_BOUND_VALIDATOR),
478
+ ...getXVSPermissions(UNICHAINMAINNET_XVS),
479
+ ...getXVSBridgeAdminPermissions(UNICHAINMAINNET_XVS_BRIDGE_ADMIN),
480
+ ...getXVSVaultPermissions(UNICHAINMAINNET_XVS_VAULT_PROXY),
481
+ ...getPoolRegistryPermissions(UNICHAINMAINNET_POOL_REGISTRY),
482
+ ...getPrimePermissions(UNICHAINMAINNET_PRIME),
483
+ ...getPrimeLiquidityProviderPermissions(UNICHAINMAINNET_PLP),
484
+ ...getProtocolShareReservePermissions(UNICHAINMAINNET_PSR),
485
+ ...getComptrollerPermissions(),
486
+ ...getVTokenPermissions(),
487
+ ...getRewardDistributorPermissionsTimebased(),
488
+ ...getIRMPermissions(),
489
+ ],
434
490
  };
435
491
 
436
492
  const revokePermissions: Permissions = {
@@ -601,6 +657,32 @@ const revokePermissions: Permissions = {
601
657
  ...getVTokenRevokePermissions(BASESEPOLIA_GUARDIAN),
602
658
  ...getXVSBridgeAdminRevokePermissions(BASESEPOLIA_XVS_BRIDGE_ADMIN, BASESEPOLIA_GUARDIAN),
603
659
  ],
660
+ unichainsepolia: [
661
+ ...getPrimeRevokePermissions(UNICHAINSEPOLIA_PRIME, UNICHAINSEPOLIA_GUARDIAN),
662
+ ...getPrimeLiquidityProviderRevokePermissions(UNICHAINSEPOLIA_PLP, UNICHAINSEPOLIA_GUARDIAN),
663
+ ...getResilientOracleRevokePermissions(UNICHAINSEPOLIA_RESILIENT_ORACLE, UNICHAINSEPOLIA_GUARDIAN),
664
+ ...getBoundValidatorRevokePermissions(UNICHAINSEPOLIA_BOUND_VALIDATOR, UNICHAINSEPOLIA_GUARDIAN),
665
+ ...getXVSVaultRevokePermissions(UNICHAINSEPOLIA_XVS_VAULT_PROXY, UNICHAINSEPOLIA_GUARDIAN),
666
+ ...getRewardDistributorRevokePermissions(UNICHAINSEPOLIA_GUARDIAN, true),
667
+ ...getIRMRevokePermissions(UNICHAINSEPOLIA_GUARDIAN),
668
+ ...getPoolRegistryRevokePermissions(UNICHAINSEPOLIA_POOL_REGISTRY, UNICHAINSEPOLIA_GUARDIAN),
669
+ ...getComptrollerRevokePermissions(UNICHAINSEPOLIA_GUARDIAN),
670
+ ...getVTokenRevokePermissions(UNICHAINSEPOLIA_GUARDIAN),
671
+ ...getXVSBridgeAdminRevokePermissions(UNICHAINSEPOLIA_XVS_BRIDGE_ADMIN, UNICHAINSEPOLIA_GUARDIAN),
672
+ ],
673
+ unichainmainnet: [
674
+ ...getPrimeRevokePermissions(UNICHAINMAINNET_PRIME, UNICHAINMAINNET_GUARDIAN),
675
+ ...getPrimeLiquidityProviderRevokePermissions(UNICHAINMAINNET_PLP, UNICHAINMAINNET_GUARDIAN),
676
+ ...getResilientOracleRevokePermissions(UNICHAINMAINNET_RESILIENT_ORACLE, UNICHAINMAINNET_GUARDIAN),
677
+ ...getBoundValidatorRevokePermissions(UNICHAINMAINNET_BOUND_VALIDATOR, UNICHAINMAINNET_GUARDIAN),
678
+ ...getXVSVaultRevokePermissions(UNICHAINMAINNET_XVS_VAULT_PROXY, UNICHAINMAINNET_GUARDIAN),
679
+ ...getRewardDistributorRevokePermissions(UNICHAINMAINNET_GUARDIAN, true),
680
+ ...getIRMRevokePermissions(UNICHAINMAINNET_GUARDIAN),
681
+ ...getPoolRegistryRevokePermissions(UNICHAINMAINNET_POOL_REGISTRY, UNICHAINMAINNET_GUARDIAN),
682
+ ...getComptrollerRevokePermissions(UNICHAINMAINNET_GUARDIAN),
683
+ ...getVTokenRevokePermissions(UNICHAINMAINNET_GUARDIAN),
684
+ ...getXVSBridgeAdminRevokePermissions(UNICHAINMAINNET_XVS_BRIDGE_ADMIN, UNICHAINMAINNET_GUARDIAN),
685
+ ],
604
686
  };
605
687
 
606
688
  function splitPermissions(
@@ -0,0 +1,366 @@
1
+ {
2
+ "address": "0x904D11b00bdB2740d16176cc00DE139d0d626115",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "contract IAccessControlManagerV8",
8
+ "name": "_acm",
9
+ "type": "address"
10
+ }
11
+ ],
12
+ "stateMutability": "nonpayable",
13
+ "type": "constructor"
14
+ },
15
+ {
16
+ "inputs": [],
17
+ "name": "EmptyPermissions",
18
+ "type": "error"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "ZeroAddressNotAllowed",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "anonymous": false,
27
+ "inputs": [
28
+ {
29
+ "indexed": false,
30
+ "internalType": "uint256",
31
+ "name": "index",
32
+ "type": "uint256"
33
+ }
34
+ ],
35
+ "name": "GrantPermissionsAdded",
36
+ "type": "event"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": false,
43
+ "internalType": "uint256",
44
+ "name": "index",
45
+ "type": "uint256"
46
+ }
47
+ ],
48
+ "name": "GrantPermissionsExecuted",
49
+ "type": "event"
50
+ },
51
+ {
52
+ "anonymous": false,
53
+ "inputs": [
54
+ {
55
+ "indexed": false,
56
+ "internalType": "uint256",
57
+ "name": "index",
58
+ "type": "uint256"
59
+ }
60
+ ],
61
+ "name": "RevokePermissionsAdded",
62
+ "type": "event"
63
+ },
64
+ {
65
+ "anonymous": false,
66
+ "inputs": [
67
+ {
68
+ "indexed": false,
69
+ "internalType": "uint256",
70
+ "name": "index",
71
+ "type": "uint256"
72
+ }
73
+ ],
74
+ "name": "RevokePermissionsExecuted",
75
+ "type": "event"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "ACM",
80
+ "outputs": [
81
+ {
82
+ "internalType": "contract IAccessControlManagerV8",
83
+ "name": "",
84
+ "type": "address"
85
+ }
86
+ ],
87
+ "stateMutability": "view",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [
92
+ {
93
+ "components": [
94
+ {
95
+ "internalType": "address",
96
+ "name": "contractAddress",
97
+ "type": "address"
98
+ },
99
+ {
100
+ "internalType": "string",
101
+ "name": "functionSig",
102
+ "type": "string"
103
+ },
104
+ {
105
+ "internalType": "address",
106
+ "name": "account",
107
+ "type": "address"
108
+ }
109
+ ],
110
+ "internalType": "struct ACMCommandsAggregator.Permission[]",
111
+ "name": "_permissions",
112
+ "type": "tuple[]"
113
+ }
114
+ ],
115
+ "name": "addGrantPermissions",
116
+ "outputs": [],
117
+ "stateMutability": "nonpayable",
118
+ "type": "function"
119
+ },
120
+ {
121
+ "inputs": [
122
+ {
123
+ "components": [
124
+ {
125
+ "internalType": "address",
126
+ "name": "contractAddress",
127
+ "type": "address"
128
+ },
129
+ {
130
+ "internalType": "string",
131
+ "name": "functionSig",
132
+ "type": "string"
133
+ },
134
+ {
135
+ "internalType": "address",
136
+ "name": "account",
137
+ "type": "address"
138
+ }
139
+ ],
140
+ "internalType": "struct ACMCommandsAggregator.Permission[]",
141
+ "name": "_permissions",
142
+ "type": "tuple[]"
143
+ }
144
+ ],
145
+ "name": "addRevokePermissions",
146
+ "outputs": [],
147
+ "stateMutability": "nonpayable",
148
+ "type": "function"
149
+ },
150
+ {
151
+ "inputs": [
152
+ {
153
+ "internalType": "uint256",
154
+ "name": "index",
155
+ "type": "uint256"
156
+ }
157
+ ],
158
+ "name": "executeGrantPermissions",
159
+ "outputs": [],
160
+ "stateMutability": "nonpayable",
161
+ "type": "function"
162
+ },
163
+ {
164
+ "inputs": [
165
+ {
166
+ "internalType": "uint256",
167
+ "name": "index",
168
+ "type": "uint256"
169
+ }
170
+ ],
171
+ "name": "executeRevokePermissions",
172
+ "outputs": [],
173
+ "stateMutability": "nonpayable",
174
+ "type": "function"
175
+ },
176
+ {
177
+ "inputs": [
178
+ {
179
+ "internalType": "uint256",
180
+ "name": "",
181
+ "type": "uint256"
182
+ },
183
+ {
184
+ "internalType": "uint256",
185
+ "name": "",
186
+ "type": "uint256"
187
+ }
188
+ ],
189
+ "name": "grantPermissions",
190
+ "outputs": [
191
+ {
192
+ "internalType": "address",
193
+ "name": "contractAddress",
194
+ "type": "address"
195
+ },
196
+ {
197
+ "internalType": "string",
198
+ "name": "functionSig",
199
+ "type": "string"
200
+ },
201
+ {
202
+ "internalType": "address",
203
+ "name": "account",
204
+ "type": "address"
205
+ }
206
+ ],
207
+ "stateMutability": "view",
208
+ "type": "function"
209
+ },
210
+ {
211
+ "inputs": [
212
+ {
213
+ "internalType": "uint256",
214
+ "name": "",
215
+ "type": "uint256"
216
+ },
217
+ {
218
+ "internalType": "uint256",
219
+ "name": "",
220
+ "type": "uint256"
221
+ }
222
+ ],
223
+ "name": "revokePermissions",
224
+ "outputs": [
225
+ {
226
+ "internalType": "address",
227
+ "name": "contractAddress",
228
+ "type": "address"
229
+ },
230
+ {
231
+ "internalType": "string",
232
+ "name": "functionSig",
233
+ "type": "string"
234
+ },
235
+ {
236
+ "internalType": "address",
237
+ "name": "account",
238
+ "type": "address"
239
+ }
240
+ ],
241
+ "stateMutability": "view",
242
+ "type": "function"
243
+ }
244
+ ],
245
+ "transactionHash": "0xbf190edc2a484f10c3eb477ce36e7f16e00306dd56b03f24aed05c4072b4f8d9",
246
+ "receipt": {
247
+ "to": null,
248
+ "from": "0x92054EdBb53eCC4f2A1787e92f479CE10392A658",
249
+ "contractAddress": "0x904D11b00bdB2740d16176cc00DE139d0d626115",
250
+ "transactionIndex": 4,
251
+ "gasUsed": "937641",
252
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
253
+ "blockHash": "0x62a38bab110578b5d3db894be857825b34559f5c818cb2d2a017f4fab0dfe8ee",
254
+ "transactionHash": "0xbf190edc2a484f10c3eb477ce36e7f16e00306dd56b03f24aed05c4072b4f8d9",
255
+ "logs": [],
256
+ "blockNumber": 8696726,
257
+ "cumulativeGasUsed": "1230544",
258
+ "status": 1,
259
+ "byzantium": true
260
+ },
261
+ "args": ["0x1f12014c497a9d905155eB9BfDD9FaC6885e61d0"],
262
+ "numDeployments": 1,
263
+ "solcInputHash": "802667e405c8ffe4c217bec1625fcc2b",
264
+ "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IAccessControlManagerV8\",\"name\":\"_acm\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"EmptyPermissions\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddressNotAllowed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"GrantPermissionsAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"GrantPermissionsExecuted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"RevokePermissionsAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"RevokePermissionsExecuted\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ACM\",\"outputs\":[{\"internalType\":\"contract IAccessControlManagerV8\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"functionSig\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"internalType\":\"struct ACMCommandsAggregator.Permission[]\",\"name\":\"_permissions\",\"type\":\"tuple[]\"}],\"name\":\"addGrantPermissions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"functionSig\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"internalType\":\"struct ACMCommandsAggregator.Permission[]\",\"name\":\"_permissions\",\"type\":\"tuple[]\"}],\"name\":\"addRevokePermissions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"executeGrantPermissions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"executeRevokePermissions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"grantPermissions\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"functionSig\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"revokePermissions\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"functionSig\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Venus\",\"kind\":\"dev\",\"methods\":{},\"title\":\"ACMCommandsAggregator\",\"version\":1},\"userdoc\":{\"errors\":{\"ZeroAddressNotAllowed()\":[{\"notice\":\"Thrown if the supplied address is a zero address where it is not allowed\"}]},\"kind\":\"user\",\"methods\":{\"ACM()\":{\"notice\":\"Access control manager contract\"}},\"notice\":\"This contract is a helper to aggregate multiple grant and revoke permissions in batches and execute them in one go.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/Utils/ACMCommandsAggregator.sol\":\"ACMCommandsAggregator\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"@venusprotocol/solidity-utilities/contracts/validators.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\n/// @notice Thrown if the supplied address is a zero address where it is not allowed\\nerror ZeroAddressNotAllowed();\\n\\n/// @notice Thrown if the supplied value is 0 where it is not allowed\\nerror ZeroValueNotAllowed();\\n\\n/// @notice Checks if the provided address is nonzero, reverts otherwise\\n/// @param address_ Address to check\\n/// @custom:error ZeroAddressNotAllowed is thrown if the provided address is a zero address\\nfunction ensureNonzeroAddress(address address_) pure {\\n if (address_ == address(0)) {\\n revert ZeroAddressNotAllowed();\\n }\\n}\\n\\n/// @notice Checks if the provided value is nonzero, reverts otherwise\\n/// @param value_ Value to check\\n/// @custom:error ZeroValueNotAllowed is thrown if the provided value is 0\\nfunction ensureNonzeroValue(uint256 value_) pure {\\n if (value_ == 0) {\\n revert ZeroValueNotAllowed();\\n }\\n}\\n\",\"keccak256\":\"0xdb88e14d50dd21889ca3329d755673d022c47e8da005b6a545c7f69c2c4b7b86\",\"license\":\"BSD-3-Clause\"},\"contracts/Governance/IAccessControlManagerV8.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity ^0.8.25;\\n\\nimport \\\"@openzeppelin/contracts/access/IAccessControl.sol\\\";\\n\\n/**\\n * @title IAccessControlManagerV8\\n * @author Venus\\n * @notice Interface implemented by the `AccessControlManagerV8` contract.\\n */\\ninterface IAccessControlManagerV8 is IAccessControl {\\n function giveCallPermission(address contractAddress, string calldata functionSig, address accountToPermit) external;\\n\\n function revokeCallPermission(\\n address contractAddress,\\n string calldata functionSig,\\n address accountToRevoke\\n ) external;\\n\\n function isAllowedToCall(address account, string calldata functionSig) external view returns (bool);\\n\\n function hasPermission(\\n address account,\\n address contractAddress,\\n string calldata functionSig\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xaa29b098440d0b3a131c5ecdf25ce548790c1b5ac7bf9b5c0264b6af6f7a1e0b\",\"license\":\"BSD-3-Clause\"},\"contracts/Utils/ACMCommandsAggregator.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity 0.8.25;\\n\\nimport { IAccessControlManagerV8 } from \\\"../Governance/IAccessControlManagerV8.sol\\\";\\nimport { ensureNonzeroAddress } from \\\"@venusprotocol/solidity-utilities/contracts/validators.sol\\\";\\n\\n/**\\n * @title ACMCommandsAggregator\\n * @author Venus\\n * @notice This contract is a helper to aggregate multiple grant and revoke permissions in batches and execute them in one go.\\n */\\ncontract ACMCommandsAggregator {\\n /*\\n * @notice Struct to store permission details\\n */\\n struct Permission {\\n /*\\n * @notice Address of the contract\\n */\\n address contractAddress;\\n /*\\n * @notice Function signature\\n */\\n string functionSig;\\n /*\\n * @notice Address of the account\\n */\\n address account;\\n }\\n\\n /**\\n * @notice Access control manager contract\\n */\\n IAccessControlManagerV8 public immutable ACM;\\n\\n /*\\n * @notice 2D array to store grant permissions in batches\\n */\\n Permission[][] public grantPermissions;\\n\\n /*\\n * @notice 2D array to store revoke permissions in batches\\n */\\n Permission[][] public revokePermissions;\\n\\n /*\\n * @notice Event emitted when grant permissions are added\\n */\\n event GrantPermissionsAdded(uint256 index);\\n\\n /*\\n * @notice Event emitted when revoke permissions are added\\n */\\n event RevokePermissionsAdded(uint256 index);\\n\\n /*\\n * @notice Event emitted when grant permissions are executed\\n */\\n event GrantPermissionsExecuted(uint256 index);\\n\\n /*\\n * @notice Event emitted when revoke permissions are executed\\n */\\n event RevokePermissionsExecuted(uint256 index);\\n\\n /*\\n * @notice Error to be thrown when permissions are empty\\n */\\n error EmptyPermissions();\\n\\n /*\\n * @notice Constructor to set the access control manager\\n * @param _acm Address of the access control manager\\n */\\n constructor(IAccessControlManagerV8 _acm) {\\n ensureNonzeroAddress(address(_acm));\\n ACM = _acm;\\n }\\n\\n /*\\n * @notice Function to add grant permissions\\n * @param _permissions Array of permissions\\n * @custom:event Emits GrantPermissionsAdded event\\n */\\n function addGrantPermissions(Permission[] memory _permissions) external {\\n if (_permissions.length == 0) {\\n revert EmptyPermissions();\\n }\\n\\n uint256 index = grantPermissions.length;\\n grantPermissions.push();\\n\\n for (uint256 i; i < _permissions.length; ++i) {\\n grantPermissions[index].push(\\n Permission(_permissions[i].contractAddress, _permissions[i].functionSig, _permissions[i].account)\\n );\\n }\\n\\n emit GrantPermissionsAdded(index);\\n }\\n\\n /*\\n * @notice Function to add revoke permissions\\n * @param _permissions Array of permissions\\n * @custom:event Emits RevokePermissionsAdded event\\n */\\n function addRevokePermissions(Permission[] memory _permissions) external {\\n if (_permissions.length == 0) {\\n revert EmptyPermissions();\\n }\\n\\n uint256 index = revokePermissions.length;\\n revokePermissions.push();\\n\\n for (uint256 i; i < _permissions.length; ++i) {\\n revokePermissions[index].push(\\n Permission(_permissions[i].contractAddress, _permissions[i].functionSig, _permissions[i].account)\\n );\\n }\\n\\n emit RevokePermissionsAdded(index);\\n }\\n\\n /*\\n * @notice Function to execute grant permissions\\n * @param index Index of the permissions array\\n * @custom:event Emits GrantPermissionsExecuted event\\n */\\n function executeGrantPermissions(uint256 index) external {\\n uint256 length = grantPermissions[index].length;\\n for (uint256 i; i < length; ++i) {\\n Permission memory permission = grantPermissions[index][i];\\n ACM.giveCallPermission(permission.contractAddress, permission.functionSig, permission.account);\\n }\\n\\n emit GrantPermissionsExecuted(index);\\n }\\n\\n /*\\n * @notice Function to execute revoke permissions\\n * @param index Index of the permissions array\\n * @custom:event Emits RevokePermissionsExecuted event\\n */\\n function executeRevokePermissions(uint256 index) external {\\n uint256 length = revokePermissions[index].length;\\n for (uint256 i; i < length; ++i) {\\n Permission memory permission = revokePermissions[index][i];\\n ACM.revokeCallPermission(permission.contractAddress, permission.functionSig, permission.account);\\n }\\n\\n emit RevokePermissionsExecuted(index);\\n }\\n}\\n\",\"keccak256\":\"0xe642b8f0e0fedc74d31196197bc7d78b43b44eab556c07ec74d6b75ccf8d0f8c\",\"license\":\"BSD-3-Clause\"}},\"version\":1}",
265
+ "bytecode": "0x60a0604052348015600f57600080fd5b506040516110c73803806110c7833981016040819052602c91606c565b6033816043565b6001600160a01b0316608052609a565b6001600160a01b0381166069576040516342bcdf7f60e11b815260040160405180910390fd5b50565b600060208284031215607d57600080fd5b81516001600160a01b0381168114609357600080fd5b9392505050565b6080516110046100c360003960008181610100015281816102de0152610a0101526110046000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80639d6c76b81161005b5780639d6c76b8146100d5578063de46a235146100e8578063f9b80da1146100fb578063ff1575e11461014757600080fd5b806322473d8c14610082578063514aab87146100975780635666a5ea146100c2575b600080fd5b610095610090366004610ab8565b61015a565b005b6100aa6100a5366004610ad1565b61038d565b6040516100b993929190610af3565b60405180910390f35b6100956100d0366004610c59565b610492565b6100956100e3366004610c59565b610689565b6100956100f6366004610ab8565b61087f565b6101227f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b9565b6100aa610155366004610ad1565b610aa8565b60006001828154811061016f5761016f610de1565b600091825260208220015491505b818110156103545760006001848154811061019a5761019a610de1565b9060005260206000200182815481106101b5576101b5610de1565b60009182526020918290206040805160608101909152600390920201805473ffffffffffffffffffffffffffffffffffffffff168252600181018054929391929184019161020290610e10565b80601f016020809104026020016040519081016040528092919081815260200182805461022e90610e10565b801561027b5780601f106102505761010080835404028352916020019161027b565b820191906000526020600020905b81548152906001019060200180831161025e57829003601f168201915b50505091835250506002919091015473ffffffffffffffffffffffffffffffffffffffff90811660209283015282519183015160408085015190517f545f7a320000000000000000000000000000000000000000000000000000000081529495507f00000000000000000000000000000000000000000000000000000000000000009092169363545f7a329361031693909291600401610af3565b600060405180830381600087803b15801561033057600080fd5b505af1158015610344573d6000803e3d6000fd5b505050505080600101905061017d565b506040518281527f1382323d6618527d8b03daa05db815f0490966e8b80679fe5ad3d868f84e1a71906020015b60405180910390a15050565b6000828154811061039d57600080fd5b9060005260206000200181815481106103b557600080fd5b60009182526020909120600390910201805460018201805473ffffffffffffffffffffffffffffffffffffffff90921694509192506103f390610e10565b80601f016020809104026020016040519081016040528092919081815260200182805461041f90610e10565b801561046c5780601f106104415761010080835404028352916020019161046c565b820191906000526020600020905b81548152906001019060200180831161044f57829003601f168201915b5050506002909301549192505073ffffffffffffffffffffffffffffffffffffffff1683565b80516000036104cd576040517f4494013c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001805480820182556000918252905b825181101561065857600182815481106104f9576104f9610de1565b90600052602060002001604051806060016040528085848151811061052057610520610de1565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16815260200185848151811061055957610559610de1565b602002602001015160200151815260200185848151811061057c5761057c610de1565b6020908102919091018101516040015173ffffffffffffffffffffffffffffffffffffffff908116909252835460018082018655600095865294829020845160039092020180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169190931617825582015191929091908201906106019082610eb4565b5060409190910151600290910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790556001016104dd565b506040518181527f75922591bf2cec980645dc4a32bb7d5e8da9a15fda86dacf06f8402cecd1478f90602001610381565b80516000036106c4576040517f4494013c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054600181018255818052905b825181101561084e57600082815481106106ef576106ef610de1565b90600052602060002001604051806060016040528085848151811061071657610716610de1565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16815260200185848151811061074f5761074f610de1565b602002602001015160200151815260200185848151811061077257610772610de1565b6020908102919091018101516040015173ffffffffffffffffffffffffffffffffffffffff908116909252835460018082018655600095865294829020845160039092020180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169190931617825582015191929091908201906107f79082610eb4565b5060409190910151600290910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790556001016106d3565b506040518181527ff8ca6ea7cc31be8572501c37ef5e9e8298be717fb881e0b1ca785aecc4d25e9f90602001610381565b600080828154811061089357610893610de1565b600091825260208220015491505b81811015610a775760008084815481106108bd576108bd610de1565b9060005260206000200182815481106108d8576108d8610de1565b60009182526020918290206040805160608101909152600390920201805473ffffffffffffffffffffffffffffffffffffffff168252600181018054929391929184019161092590610e10565b80601f016020809104026020016040519081016040528092919081815260200182805461095190610e10565b801561099e5780601f106109735761010080835404028352916020019161099e565b820191906000526020600020905b81548152906001019060200180831161098157829003601f168201915b50505091835250506002919091015473ffffffffffffffffffffffffffffffffffffffff90811660209283015282519183015160408085015190517f584f6b600000000000000000000000000000000000000000000000000000000081529495507f00000000000000000000000000000000000000000000000000000000000000009092169363584f6b6093610a3993909291600401610af3565b600060405180830381600087803b158015610a5357600080fd5b505af1158015610a67573d6000803e3d6000fd5b50505050508060010190506108a1565b506040518281527f01a805f459381af632ecab72ec192c3f9a4c72d26be089026ffd6636d82de98890602001610381565b6001828154811061039d57600080fd5b600060208284031215610aca57600080fd5b5035919050565b60008060408385031215610ae457600080fd5b50508035926020909101359150565b600073ffffffffffffffffffffffffffffffffffffffff8086168352602060606020850152855180606086015260005b81811015610b3f57878101830151868201608001528201610b23565b5060006080828701015260807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011686010193505050808416604084015250949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715610bdb57610bdb610b89565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610c2857610c28610b89565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610c5457600080fd5b919050565b60006020808385031215610c6c57600080fd5b823567ffffffffffffffff80821115610c8457600080fd5b818501915085601f830112610c9857600080fd5b813581811115610caa57610caa610b89565b8060051b610cb9858201610be1565b9182528381018501918581019089841115610cd357600080fd5b86860192505b83831015610dd457823585811115610cf057600080fd5b86017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06060828d0382011215610d265760008081fd5b610d2e610bb8565b610d398a8401610c30565b815260408084013589811115610d4f5760008081fd5b8401603f81018f13610d615760008081fd5b8b8101358a811115610d7557610d75610b89565b610d858d86601f84011601610be1565b94508085528f83828401011115610d9c5760008081fd5b808383018e87013760008d82870101525050828b830152610dbf60608501610c30565b90820152845250509186019190860190610cd9565b9998505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c90821680610e2457607f821691505b602082108103610e5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f821115610eaf576000816000526020600020601f850160051c81016020861015610e8c5750805b601f850160051c820191505b81811015610eab57828155600101610e98565b5050505b505050565b815167ffffffffffffffff811115610ece57610ece610b89565b610ee281610edc8454610e10565b84610e63565b602080601f831160018114610f355760008415610eff5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610eab565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015610f8257888601518255948401946001909101908401610f63565b5085821015610fbe57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b0190555056fea264697066735822122090d4936e163063dfe747da5bf04cc06002b17436a13e78a30b2797e6219ebb2264736f6c63430008190033",
266
+ "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80639d6c76b81161005b5780639d6c76b8146100d5578063de46a235146100e8578063f9b80da1146100fb578063ff1575e11461014757600080fd5b806322473d8c14610082578063514aab87146100975780635666a5ea146100c2575b600080fd5b610095610090366004610ab8565b61015a565b005b6100aa6100a5366004610ad1565b61038d565b6040516100b993929190610af3565b60405180910390f35b6100956100d0366004610c59565b610492565b6100956100e3366004610c59565b610689565b6100956100f6366004610ab8565b61087f565b6101227f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100b9565b6100aa610155366004610ad1565b610aa8565b60006001828154811061016f5761016f610de1565b600091825260208220015491505b818110156103545760006001848154811061019a5761019a610de1565b9060005260206000200182815481106101b5576101b5610de1565b60009182526020918290206040805160608101909152600390920201805473ffffffffffffffffffffffffffffffffffffffff168252600181018054929391929184019161020290610e10565b80601f016020809104026020016040519081016040528092919081815260200182805461022e90610e10565b801561027b5780601f106102505761010080835404028352916020019161027b565b820191906000526020600020905b81548152906001019060200180831161025e57829003601f168201915b50505091835250506002919091015473ffffffffffffffffffffffffffffffffffffffff90811660209283015282519183015160408085015190517f545f7a320000000000000000000000000000000000000000000000000000000081529495507f00000000000000000000000000000000000000000000000000000000000000009092169363545f7a329361031693909291600401610af3565b600060405180830381600087803b15801561033057600080fd5b505af1158015610344573d6000803e3d6000fd5b505050505080600101905061017d565b506040518281527f1382323d6618527d8b03daa05db815f0490966e8b80679fe5ad3d868f84e1a71906020015b60405180910390a15050565b6000828154811061039d57600080fd5b9060005260206000200181815481106103b557600080fd5b60009182526020909120600390910201805460018201805473ffffffffffffffffffffffffffffffffffffffff90921694509192506103f390610e10565b80601f016020809104026020016040519081016040528092919081815260200182805461041f90610e10565b801561046c5780601f106104415761010080835404028352916020019161046c565b820191906000526020600020905b81548152906001019060200180831161044f57829003601f168201915b5050506002909301549192505073ffffffffffffffffffffffffffffffffffffffff1683565b80516000036104cd576040517f4494013c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001805480820182556000918252905b825181101561065857600182815481106104f9576104f9610de1565b90600052602060002001604051806060016040528085848151811061052057610520610de1565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16815260200185848151811061055957610559610de1565b602002602001015160200151815260200185848151811061057c5761057c610de1565b6020908102919091018101516040015173ffffffffffffffffffffffffffffffffffffffff908116909252835460018082018655600095865294829020845160039092020180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169190931617825582015191929091908201906106019082610eb4565b5060409190910151600290910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790556001016104dd565b506040518181527f75922591bf2cec980645dc4a32bb7d5e8da9a15fda86dacf06f8402cecd1478f90602001610381565b80516000036106c4576040517f4494013c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054600181018255818052905b825181101561084e57600082815481106106ef576106ef610de1565b90600052602060002001604051806060016040528085848151811061071657610716610de1565b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff16815260200185848151811061074f5761074f610de1565b602002602001015160200151815260200185848151811061077257610772610de1565b6020908102919091018101516040015173ffffffffffffffffffffffffffffffffffffffff908116909252835460018082018655600095865294829020845160039092020180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169190931617825582015191929091908201906107f79082610eb4565b5060409190910151600290910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9092169190911790556001016106d3565b506040518181527ff8ca6ea7cc31be8572501c37ef5e9e8298be717fb881e0b1ca785aecc4d25e9f90602001610381565b600080828154811061089357610893610de1565b600091825260208220015491505b81811015610a775760008084815481106108bd576108bd610de1565b9060005260206000200182815481106108d8576108d8610de1565b60009182526020918290206040805160608101909152600390920201805473ffffffffffffffffffffffffffffffffffffffff168252600181018054929391929184019161092590610e10565b80601f016020809104026020016040519081016040528092919081815260200182805461095190610e10565b801561099e5780601f106109735761010080835404028352916020019161099e565b820191906000526020600020905b81548152906001019060200180831161098157829003601f168201915b50505091835250506002919091015473ffffffffffffffffffffffffffffffffffffffff90811660209283015282519183015160408085015190517f584f6b600000000000000000000000000000000000000000000000000000000081529495507f00000000000000000000000000000000000000000000000000000000000000009092169363584f6b6093610a3993909291600401610af3565b600060405180830381600087803b158015610a5357600080fd5b505af1158015610a67573d6000803e3d6000fd5b50505050508060010190506108a1565b506040518281527f01a805f459381af632ecab72ec192c3f9a4c72d26be089026ffd6636d82de98890602001610381565b6001828154811061039d57600080fd5b600060208284031215610aca57600080fd5b5035919050565b60008060408385031215610ae457600080fd5b50508035926020909101359150565b600073ffffffffffffffffffffffffffffffffffffffff8086168352602060606020850152855180606086015260005b81811015610b3f57878101830151868201608001528201610b23565b5060006080828701015260807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011686010193505050808416604084015250949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715610bdb57610bdb610b89565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715610c2857610c28610b89565b604052919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610c5457600080fd5b919050565b60006020808385031215610c6c57600080fd5b823567ffffffffffffffff80821115610c8457600080fd5b818501915085601f830112610c9857600080fd5b813581811115610caa57610caa610b89565b8060051b610cb9858201610be1565b9182528381018501918581019089841115610cd357600080fd5b86860192505b83831015610dd457823585811115610cf057600080fd5b86017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06060828d0382011215610d265760008081fd5b610d2e610bb8565b610d398a8401610c30565b815260408084013589811115610d4f5760008081fd5b8401603f81018f13610d615760008081fd5b8b8101358a811115610d7557610d75610b89565b610d858d86601f84011601610be1565b94508085528f83828401011115610d9c5760008081fd5b808383018e87013760008d82870101525050828b830152610dbf60608501610c30565b90820152845250509186019190860190610cd9565b9998505050505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c90821680610e2457607f821691505b602082108103610e5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f821115610eaf576000816000526020600020601f850160051c81016020861015610e8c5750805b601f850160051c820191505b81811015610eab57828155600101610e98565b5050505b505050565b815167ffffffffffffffff811115610ece57610ece610b89565b610ee281610edc8454610e10565b84610e63565b602080601f831160018114610f355760008415610eff5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555610eab565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b82811015610f8257888601518255948401946001909101908401610f63565b5085821015610fbe57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b0190555056fea264697066735822122090d4936e163063dfe747da5bf04cc06002b17436a13e78a30b2797e6219ebb2264736f6c63430008190033",
267
+ "devdoc": {
268
+ "author": "Venus",
269
+ "kind": "dev",
270
+ "methods": {},
271
+ "title": "ACMCommandsAggregator",
272
+ "version": 1
273
+ },
274
+ "userdoc": {
275
+ "errors": {
276
+ "ZeroAddressNotAllowed()": [
277
+ {
278
+ "notice": "Thrown if the supplied address is a zero address where it is not allowed"
279
+ }
280
+ ]
281
+ },
282
+ "kind": "user",
283
+ "methods": {
284
+ "ACM()": {
285
+ "notice": "Access control manager contract"
286
+ }
287
+ },
288
+ "notice": "This contract is a helper to aggregate multiple grant and revoke permissions in batches and execute them in one go.",
289
+ "version": 1
290
+ },
291
+ "storageLayout": {
292
+ "storage": [
293
+ {
294
+ "astId": 8955,
295
+ "contract": "contracts/Utils/ACMCommandsAggregator.sol:ACMCommandsAggregator",
296
+ "label": "grantPermissions",
297
+ "offset": 0,
298
+ "slot": "0",
299
+ "type": "t_array(t_array(t_struct(Permission)8946_storage)dyn_storage)dyn_storage"
300
+ },
301
+ {
302
+ "astId": 8960,
303
+ "contract": "contracts/Utils/ACMCommandsAggregator.sol:ACMCommandsAggregator",
304
+ "label": "revokePermissions",
305
+ "offset": 0,
306
+ "slot": "1",
307
+ "type": "t_array(t_array(t_struct(Permission)8946_storage)dyn_storage)dyn_storage"
308
+ }
309
+ ],
310
+ "types": {
311
+ "t_address": {
312
+ "encoding": "inplace",
313
+ "label": "address",
314
+ "numberOfBytes": "20"
315
+ },
316
+ "t_array(t_array(t_struct(Permission)8946_storage)dyn_storage)dyn_storage": {
317
+ "base": "t_array(t_struct(Permission)8946_storage)dyn_storage",
318
+ "encoding": "dynamic_array",
319
+ "label": "struct ACMCommandsAggregator.Permission[][]",
320
+ "numberOfBytes": "32"
321
+ },
322
+ "t_array(t_struct(Permission)8946_storage)dyn_storage": {
323
+ "base": "t_struct(Permission)8946_storage",
324
+ "encoding": "dynamic_array",
325
+ "label": "struct ACMCommandsAggregator.Permission[]",
326
+ "numberOfBytes": "32"
327
+ },
328
+ "t_string_storage": {
329
+ "encoding": "bytes",
330
+ "label": "string",
331
+ "numberOfBytes": "32"
332
+ },
333
+ "t_struct(Permission)8946_storage": {
334
+ "encoding": "inplace",
335
+ "label": "struct ACMCommandsAggregator.Permission",
336
+ "members": [
337
+ {
338
+ "astId": 8941,
339
+ "contract": "contracts/Utils/ACMCommandsAggregator.sol:ACMCommandsAggregator",
340
+ "label": "contractAddress",
341
+ "offset": 0,
342
+ "slot": "0",
343
+ "type": "t_address"
344
+ },
345
+ {
346
+ "astId": 8943,
347
+ "contract": "contracts/Utils/ACMCommandsAggregator.sol:ACMCommandsAggregator",
348
+ "label": "functionSig",
349
+ "offset": 0,
350
+ "slot": "1",
351
+ "type": "t_string_storage"
352
+ },
353
+ {
354
+ "astId": 8945,
355
+ "contract": "contracts/Utils/ACMCommandsAggregator.sol:ACMCommandsAggregator",
356
+ "label": "account",
357
+ "offset": 0,
358
+ "slot": "2",
359
+ "type": "t_address"
360
+ }
361
+ ],
362
+ "numberOfBytes": "96"
363
+ }
364
+ }
365
+ }
366
+ }