@venusprotocol/governance-contracts 1.1.0-dev.1 → 1.1.0-dev.3

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 (35) hide show
  1. package/README.md +11 -0
  2. package/artifacts/build-info/4b74a981a83b37e1de5123f7f9359ad5.json +1 -0
  3. package/artifacts/build-info/5ef7ba07b1e4b96d9b02042d36d229c2.json +1 -0
  4. package/artifacts/contracts/legacy/GovernorAlpha.sol/GovernorAlpha.dbg.json +4 -0
  5. package/artifacts/contracts/legacy/GovernorAlpha.sol/GovernorAlpha.json +731 -0
  6. package/artifacts/contracts/legacy/GovernorAlpha.sol/TimelockInterface.dbg.json +4 -0
  7. package/artifacts/contracts/legacy/GovernorAlpha.sol/TimelockInterface.json +188 -0
  8. package/artifacts/contracts/legacy/GovernorAlpha.sol/XVSInterface.dbg.json +4 -0
  9. package/artifacts/contracts/legacy/GovernorAlpha.sol/XVSInterface.json +37 -0
  10. package/artifacts/contracts/legacy/GovernorAlpha2.sol/GovernorAlpha2.dbg.json +4 -0
  11. package/artifacts/contracts/legacy/GovernorAlpha2.sol/GovernorAlpha2.json +736 -0
  12. package/artifacts/contracts/legacy/GovernorAlpha2.sol/TimelockInterface.dbg.json +4 -0
  13. package/artifacts/contracts/legacy/GovernorAlpha2.sol/TimelockInterface.json +188 -0
  14. package/artifacts/contracts/legacy/GovernorAlpha2.sol/XVSInterface.dbg.json +4 -0
  15. package/artifacts/contracts/legacy/GovernorAlpha2.sol/XVSInterface.json +37 -0
  16. package/contracts/legacy/GovernorAlpha.sol +426 -0
  17. package/contracts/legacy/GovernorAlpha2.sol +427 -0
  18. package/deployments/bscmainnet/CriticalTimelock.json +463 -0
  19. package/deployments/bscmainnet/FastTrackTimelock.json +463 -0
  20. package/deployments/bscmainnet.json +7167 -0
  21. package/deployments/bsctestnet/CriticalTimelock.json +463 -0
  22. package/deployments/bsctestnet/FastTrackTimelock.json +463 -0
  23. package/deployments/bsctestnet.json +6437 -0
  24. package/deployments/sepolia.json +369 -0
  25. package/dist/deploy/helpers/constants.d.ts +2 -0
  26. package/dist/deploy/helpers/constants.d.ts.map +1 -1
  27. package/dist/deploy/helpers/constants.js +1 -0
  28. package/dist/deploy/helpers/constants.js.map +1 -1
  29. package/dist/deploy/helpers/deploymentUtils.d.ts +2 -0
  30. package/dist/deploy/helpers/deploymentUtils.d.ts.map +1 -1
  31. package/dist/deploy/helpers/deploymentUtils.js +1 -0
  32. package/dist/deploy/helpers/deploymentUtils.js.map +1 -1
  33. package/package.json +1 -1
  34. /package/deployments/bscmainnet/{Timelock.json → NormalTimelock.json} +0 -0
  35. /package/deployments/bsctestnet/{Timelock.json → NormalTimelock.json} +0 -0
@@ -0,0 +1,369 @@
1
+ {
2
+ "name": "sepolia",
3
+ "chainId": "11155111",
4
+ "contracts": {
5
+ "AccessControlManager": {
6
+ "address": "0xbf705C00578d43B6147ab4eaE04DBBEd1ccCdc96",
7
+ "abi": [
8
+ {
9
+ "inputs": [],
10
+ "stateMutability": "nonpayable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "anonymous": false,
15
+ "inputs": [
16
+ {
17
+ "indexed": false,
18
+ "internalType": "address",
19
+ "name": "account",
20
+ "type": "address"
21
+ },
22
+ {
23
+ "indexed": false,
24
+ "internalType": "address",
25
+ "name": "contractAddress",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "indexed": false,
30
+ "internalType": "string",
31
+ "name": "functionSig",
32
+ "type": "string"
33
+ }
34
+ ],
35
+ "name": "PermissionGranted",
36
+ "type": "event"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": false,
43
+ "internalType": "address",
44
+ "name": "account",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "address",
50
+ "name": "contractAddress",
51
+ "type": "address"
52
+ },
53
+ {
54
+ "indexed": false,
55
+ "internalType": "string",
56
+ "name": "functionSig",
57
+ "type": "string"
58
+ }
59
+ ],
60
+ "name": "PermissionRevoked",
61
+ "type": "event"
62
+ },
63
+ {
64
+ "anonymous": false,
65
+ "inputs": [
66
+ {
67
+ "indexed": true,
68
+ "internalType": "bytes32",
69
+ "name": "role",
70
+ "type": "bytes32"
71
+ },
72
+ {
73
+ "indexed": true,
74
+ "internalType": "bytes32",
75
+ "name": "previousAdminRole",
76
+ "type": "bytes32"
77
+ },
78
+ {
79
+ "indexed": true,
80
+ "internalType": "bytes32",
81
+ "name": "newAdminRole",
82
+ "type": "bytes32"
83
+ }
84
+ ],
85
+ "name": "RoleAdminChanged",
86
+ "type": "event"
87
+ },
88
+ {
89
+ "anonymous": false,
90
+ "inputs": [
91
+ {
92
+ "indexed": true,
93
+ "internalType": "bytes32",
94
+ "name": "role",
95
+ "type": "bytes32"
96
+ },
97
+ {
98
+ "indexed": true,
99
+ "internalType": "address",
100
+ "name": "account",
101
+ "type": "address"
102
+ },
103
+ {
104
+ "indexed": true,
105
+ "internalType": "address",
106
+ "name": "sender",
107
+ "type": "address"
108
+ }
109
+ ],
110
+ "name": "RoleGranted",
111
+ "type": "event"
112
+ },
113
+ {
114
+ "anonymous": false,
115
+ "inputs": [
116
+ {
117
+ "indexed": true,
118
+ "internalType": "bytes32",
119
+ "name": "role",
120
+ "type": "bytes32"
121
+ },
122
+ {
123
+ "indexed": true,
124
+ "internalType": "address",
125
+ "name": "account",
126
+ "type": "address"
127
+ },
128
+ {
129
+ "indexed": true,
130
+ "internalType": "address",
131
+ "name": "sender",
132
+ "type": "address"
133
+ }
134
+ ],
135
+ "name": "RoleRevoked",
136
+ "type": "event"
137
+ },
138
+ {
139
+ "inputs": [],
140
+ "name": "DEFAULT_ADMIN_ROLE",
141
+ "outputs": [
142
+ {
143
+ "internalType": "bytes32",
144
+ "name": "",
145
+ "type": "bytes32"
146
+ }
147
+ ],
148
+ "stateMutability": "view",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "bytes32",
155
+ "name": "role",
156
+ "type": "bytes32"
157
+ }
158
+ ],
159
+ "name": "getRoleAdmin",
160
+ "outputs": [
161
+ {
162
+ "internalType": "bytes32",
163
+ "name": "",
164
+ "type": "bytes32"
165
+ }
166
+ ],
167
+ "stateMutability": "view",
168
+ "type": "function"
169
+ },
170
+ {
171
+ "inputs": [
172
+ {
173
+ "internalType": "address",
174
+ "name": "contractAddress",
175
+ "type": "address"
176
+ },
177
+ {
178
+ "internalType": "string",
179
+ "name": "functionSig",
180
+ "type": "string"
181
+ },
182
+ {
183
+ "internalType": "address",
184
+ "name": "accountToPermit",
185
+ "type": "address"
186
+ }
187
+ ],
188
+ "name": "giveCallPermission",
189
+ "outputs": [],
190
+ "stateMutability": "nonpayable",
191
+ "type": "function"
192
+ },
193
+ {
194
+ "inputs": [
195
+ {
196
+ "internalType": "bytes32",
197
+ "name": "role",
198
+ "type": "bytes32"
199
+ },
200
+ {
201
+ "internalType": "address",
202
+ "name": "account",
203
+ "type": "address"
204
+ }
205
+ ],
206
+ "name": "grantRole",
207
+ "outputs": [],
208
+ "stateMutability": "nonpayable",
209
+ "type": "function"
210
+ },
211
+ {
212
+ "inputs": [
213
+ {
214
+ "internalType": "address",
215
+ "name": "account",
216
+ "type": "address"
217
+ },
218
+ {
219
+ "internalType": "address",
220
+ "name": "contractAddress",
221
+ "type": "address"
222
+ },
223
+ {
224
+ "internalType": "string",
225
+ "name": "functionSig",
226
+ "type": "string"
227
+ }
228
+ ],
229
+ "name": "hasPermission",
230
+ "outputs": [
231
+ {
232
+ "internalType": "bool",
233
+ "name": "",
234
+ "type": "bool"
235
+ }
236
+ ],
237
+ "stateMutability": "view",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "bytes32",
244
+ "name": "role",
245
+ "type": "bytes32"
246
+ },
247
+ {
248
+ "internalType": "address",
249
+ "name": "account",
250
+ "type": "address"
251
+ }
252
+ ],
253
+ "name": "hasRole",
254
+ "outputs": [
255
+ {
256
+ "internalType": "bool",
257
+ "name": "",
258
+ "type": "bool"
259
+ }
260
+ ],
261
+ "stateMutability": "view",
262
+ "type": "function"
263
+ },
264
+ {
265
+ "inputs": [
266
+ {
267
+ "internalType": "address",
268
+ "name": "account",
269
+ "type": "address"
270
+ },
271
+ {
272
+ "internalType": "string",
273
+ "name": "functionSig",
274
+ "type": "string"
275
+ }
276
+ ],
277
+ "name": "isAllowedToCall",
278
+ "outputs": [
279
+ {
280
+ "internalType": "bool",
281
+ "name": "",
282
+ "type": "bool"
283
+ }
284
+ ],
285
+ "stateMutability": "view",
286
+ "type": "function"
287
+ },
288
+ {
289
+ "inputs": [
290
+ {
291
+ "internalType": "bytes32",
292
+ "name": "role",
293
+ "type": "bytes32"
294
+ },
295
+ {
296
+ "internalType": "address",
297
+ "name": "account",
298
+ "type": "address"
299
+ }
300
+ ],
301
+ "name": "renounceRole",
302
+ "outputs": [],
303
+ "stateMutability": "nonpayable",
304
+ "type": "function"
305
+ },
306
+ {
307
+ "inputs": [
308
+ {
309
+ "internalType": "address",
310
+ "name": "contractAddress",
311
+ "type": "address"
312
+ },
313
+ {
314
+ "internalType": "string",
315
+ "name": "functionSig",
316
+ "type": "string"
317
+ },
318
+ {
319
+ "internalType": "address",
320
+ "name": "accountToRevoke",
321
+ "type": "address"
322
+ }
323
+ ],
324
+ "name": "revokeCallPermission",
325
+ "outputs": [],
326
+ "stateMutability": "nonpayable",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [
331
+ {
332
+ "internalType": "bytes32",
333
+ "name": "role",
334
+ "type": "bytes32"
335
+ },
336
+ {
337
+ "internalType": "address",
338
+ "name": "account",
339
+ "type": "address"
340
+ }
341
+ ],
342
+ "name": "revokeRole",
343
+ "outputs": [],
344
+ "stateMutability": "nonpayable",
345
+ "type": "function"
346
+ },
347
+ {
348
+ "inputs": [
349
+ {
350
+ "internalType": "bytes4",
351
+ "name": "interfaceId",
352
+ "type": "bytes4"
353
+ }
354
+ ],
355
+ "name": "supportsInterface",
356
+ "outputs": [
357
+ {
358
+ "internalType": "bool",
359
+ "name": "",
360
+ "type": "bool"
361
+ }
362
+ ],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ }
366
+ ]
367
+ }
368
+ }
369
+ }
@@ -4,4 +4,6 @@ export declare enum SUPPORTED_NETWORKS {
4
4
  SEPOLIA = "sepolia",
5
5
  ETHERUEM = "ethereum"
6
6
  }
7
+ declare const _default: () => void;
8
+ export default _default;
7
9
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../deploy/helpers/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../deploy/helpers/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB;;AAGD,wBAAwB"}
@@ -8,4 +8,5 @@ var SUPPORTED_NETWORKS;
8
8
  SUPPORTED_NETWORKS["SEPOLIA"] = "sepolia";
9
9
  SUPPORTED_NETWORKS["ETHERUEM"] = "ethereum";
10
10
  })(SUPPORTED_NETWORKS = exports.SUPPORTED_NETWORKS || (exports.SUPPORTED_NETWORKS = {}));
11
+ exports.default = () => { };
11
12
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../deploy/helpers/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,+CAAyB,CAAA;IACzB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../deploy/helpers/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,+CAAyB,CAAA;IACzB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;AACvB,CAAC,EALW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAK7B;AAGD,kBAAe,GAAG,EAAE,GAAE,CAAC,CAAC"}
@@ -1,3 +1,5 @@
1
1
  import { SUPPORTED_NETWORKS } from "./constants";
2
2
  export declare const acmAdminAccount: Record<SUPPORTED_NETWORKS, string>;
3
+ declare const _default: () => void;
4
+ export default _default;
3
5
  //# sourceMappingURL=deploymentUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deploymentUtils.d.ts","sourceRoot":"","sources":["../../../deploy/helpers/deploymentUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAK9D,CAAC"}
1
+ {"version":3,"file":"deploymentUtils.d.ts","sourceRoot":"","sources":["../../../deploy/helpers/deploymentUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAK9D,CAAC;;AAGF,wBAAwB"}
@@ -12,4 +12,5 @@ exports.acmAdminAccount = {
12
12
  sepolia: "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb",
13
13
  ethereum: "",
14
14
  };
15
+ exports.default = () => { };
15
16
  //# sourceMappingURL=deploymentUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deploymentUtils.js","sourceRoot":"","sources":["../../../deploy/helpers/deploymentUtils.ts"],"names":[],"mappings":";;;;;;AAAA,uGAAwF;AACxF,uGAAwF;AAI3E,QAAA,eAAe,GAAuC;IACjE,UAAU,EAAE,sBAAqB,CAAC,SAAS,CAAC,QAAQ;IACpD,UAAU,EAAE,sBAAqB,CAAC,SAAS,CAAC,QAAQ;IACpD,OAAO,EAAE,4CAA4C;IACrD,QAAQ,EAAE,EAAE;CACb,CAAC"}
1
+ {"version":3,"file":"deploymentUtils.js","sourceRoot":"","sources":["../../../deploy/helpers/deploymentUtils.ts"],"names":[],"mappings":";;;;;;AAAA,uGAAwF;AACxF,uGAAwF;AAI3E,QAAA,eAAe,GAAuC;IACjE,UAAU,EAAE,sBAAqB,CAAC,SAAS,CAAC,QAAQ;IACpD,UAAU,EAAE,sBAAqB,CAAC,SAAS,CAAC,QAAQ;IACpD,OAAO,EAAE,4CAA4C;IACrD,QAAQ,EAAE,EAAE;CACb,CAAC;AAGF,kBAAe,GAAG,EAAE,GAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@venusprotocol/governance-contracts",
3
3
  "description": "",
4
- "version": "1.1.0-dev.1",
4
+ "version": "1.1.0-dev.3",
5
5
  "author": "",
6
6
  "files": [
7
7
  "artifacts",