@venusprotocol/governance-contracts 1.0.1-dev.6 → 1.1.0-dev.2

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 (70) hide show
  1. package/artifacts/build-info/4b74a981a83b37e1de5123f7f9359ad5.json +1 -0
  2. package/artifacts/build-info/5ef7ba07b1e4b96d9b02042d36d229c2.json +1 -0
  3. package/artifacts/build-info/97a3124320e74f843bc59439c75c258d.json +1 -0
  4. package/artifacts/contracts/Governance/GovernorBravoDelegate.sol/GovernorBravoDelegate.dbg.json +1 -1
  5. package/artifacts/contracts/Governance/GovernorBravoDelegate.sol/GovernorBravoDelegate.json +3 -3
  6. package/artifacts/contracts/Governance/GovernorBravoDelegator.sol/GovernorBravoDelegator.dbg.json +1 -1
  7. package/artifacts/contracts/Governance/GovernorBravoDelegator.sol/GovernorBravoDelegator.json +25 -18
  8. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorAlphaInterface.dbg.json +1 -1
  9. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateInterface.dbg.json +4 -0
  10. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateInterface.json +58 -0
  11. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateStorageV1.dbg.json +1 -1
  12. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateStorageV1.json +2 -2
  13. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateStorageV2.dbg.json +1 -1
  14. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegateStorageV2.json +2 -2
  15. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegatorStorage.dbg.json +1 -1
  16. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoDelegatorStorage.json +2 -2
  17. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoEvents.dbg.json +1 -1
  18. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/GovernorBravoEvents.json +2 -2
  19. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/TimelockInterface.dbg.json +1 -1
  20. package/artifacts/contracts/Governance/GovernorBravoInterfaces.sol/XvsVaultInterface.dbg.json +1 -1
  21. package/artifacts/contracts/legacy/GovernorAlpha.sol/GovernorAlpha.dbg.json +4 -0
  22. package/artifacts/contracts/legacy/GovernorAlpha.sol/GovernorAlpha.json +731 -0
  23. package/artifacts/contracts/legacy/GovernorAlpha.sol/TimelockInterface.dbg.json +4 -0
  24. package/artifacts/contracts/legacy/GovernorAlpha.sol/TimelockInterface.json +188 -0
  25. package/artifacts/contracts/legacy/GovernorAlpha.sol/XVSInterface.dbg.json +4 -0
  26. package/artifacts/contracts/legacy/GovernorAlpha.sol/XVSInterface.json +37 -0
  27. package/artifacts/contracts/legacy/GovernorAlpha2.sol/GovernorAlpha2.dbg.json +4 -0
  28. package/artifacts/contracts/legacy/GovernorAlpha2.sol/GovernorAlpha2.json +736 -0
  29. package/artifacts/contracts/legacy/GovernorAlpha2.sol/TimelockInterface.dbg.json +4 -0
  30. package/artifacts/contracts/legacy/GovernorAlpha2.sol/TimelockInterface.json +188 -0
  31. package/artifacts/contracts/legacy/GovernorAlpha2.sol/XVSInterface.dbg.json +4 -0
  32. package/artifacts/contracts/legacy/GovernorAlpha2.sol/XVSInterface.json +37 -0
  33. package/contracts/Governance/GovernorBravoDelegate.sol +1 -1
  34. package/contracts/Governance/GovernorBravoDelegator.sol +6 -10
  35. package/contracts/Governance/GovernorBravoInterfaces.sol +19 -5
  36. package/contracts/legacy/GovernorAlpha.sol +426 -0
  37. package/contracts/legacy/GovernorAlpha2.sol +427 -0
  38. package/deployments/bscmainnet/.chainId +1 -0
  39. package/deployments/bscmainnet/CriticalTimelock.json +463 -0
  40. package/deployments/bscmainnet/FastTrackTimelock.json +463 -0
  41. package/deployments/bscmainnet/GovernorAlpha.json +726 -0
  42. package/deployments/bscmainnet/GovernorAlpha2.json +731 -0
  43. package/deployments/bscmainnet/GovernorBravoDelegate.json +1168 -0
  44. package/deployments/bscmainnet/GovernorBravoDelegator.json +1576 -0
  45. package/deployments/bscmainnet/GovernorBravoDelegator_Implementation.json +1168 -0
  46. package/deployments/bscmainnet/GovernorBravoDelegator_Proxy.json +413 -0
  47. package/deployments/bscmainnet/NormalTimelock.json +463 -0
  48. package/deployments/bsctestnet/.chainId +1 -0
  49. package/deployments/bsctestnet/CriticalTimelock.json +463 -0
  50. package/deployments/bsctestnet/FastTrackTimelock.json +463 -0
  51. package/deployments/bsctestnet/GovernorAlpha.json +726 -0
  52. package/deployments/bsctestnet/GovernorBravoDelegate.json +1168 -0
  53. package/deployments/bsctestnet/GovernorBravoDelegator.json +1576 -0
  54. package/deployments/bsctestnet/GovernorBravoDelegator_Implementation.json +1168 -0
  55. package/deployments/bsctestnet/GovernorBravoDelegator_Proxy.json +413 -0
  56. package/deployments/bsctestnet/NormalTimelock.json +463 -0
  57. package/deployments/deployments.json +13981 -0
  58. package/dist/deploy/001-access-control.d.ts.map +1 -1
  59. package/dist/deploy/001-access-control.js +7 -2
  60. package/dist/deploy/001-access-control.js.map +1 -1
  61. package/dist/deploy/helpers/constants.d.ts +2 -0
  62. package/dist/deploy/helpers/constants.d.ts.map +1 -1
  63. package/dist/deploy/helpers/constants.js +1 -0
  64. package/dist/deploy/helpers/constants.js.map +1 -1
  65. package/dist/deploy/helpers/deploymentUtils.d.ts +2 -0
  66. package/dist/deploy/helpers/deploymentUtils.d.ts.map +1 -1
  67. package/dist/deploy/helpers/deploymentUtils.js +1 -0
  68. package/dist/deploy/helpers/deploymentUtils.js.map +1 -1
  69. package/package.json +1 -1
  70. package/artifacts/build-info/e5638231ea42ec29d0230b1b013f1a57.json +0 -1
@@ -0,0 +1,413 @@
1
+ {
2
+ "address": "0x2d56dC077072B53571b8252008C60e945108c75a",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "timelock_",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "internalType": "address",
13
+ "name": "xvsVault_",
14
+ "type": "address"
15
+ },
16
+ {
17
+ "internalType": "address",
18
+ "name": "admin_",
19
+ "type": "address"
20
+ },
21
+ {
22
+ "internalType": "address",
23
+ "name": "implementation_",
24
+ "type": "address"
25
+ },
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "votingPeriod_",
29
+ "type": "uint256"
30
+ },
31
+ {
32
+ "internalType": "uint256",
33
+ "name": "votingDelay_",
34
+ "type": "uint256"
35
+ },
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "proposalThreshold_",
39
+ "type": "uint256"
40
+ },
41
+ {
42
+ "internalType": "address",
43
+ "name": "guardian_",
44
+ "type": "address"
45
+ }
46
+ ],
47
+ "payable": false,
48
+ "stateMutability": "nonpayable",
49
+ "type": "constructor"
50
+ },
51
+ {
52
+ "anonymous": false,
53
+ "inputs": [
54
+ {
55
+ "indexed": false,
56
+ "internalType": "address",
57
+ "name": "oldAdmin",
58
+ "type": "address"
59
+ },
60
+ {
61
+ "indexed": false,
62
+ "internalType": "address",
63
+ "name": "newAdmin",
64
+ "type": "address"
65
+ }
66
+ ],
67
+ "name": "NewAdmin",
68
+ "type": "event"
69
+ },
70
+ {
71
+ "anonymous": false,
72
+ "inputs": [
73
+ {
74
+ "indexed": false,
75
+ "internalType": "address",
76
+ "name": "oldGuardian",
77
+ "type": "address"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "internalType": "address",
82
+ "name": "newGuardian",
83
+ "type": "address"
84
+ }
85
+ ],
86
+ "name": "NewGuardian",
87
+ "type": "event"
88
+ },
89
+ {
90
+ "anonymous": false,
91
+ "inputs": [
92
+ {
93
+ "indexed": false,
94
+ "internalType": "address",
95
+ "name": "oldImplementation",
96
+ "type": "address"
97
+ },
98
+ {
99
+ "indexed": false,
100
+ "internalType": "address",
101
+ "name": "newImplementation",
102
+ "type": "address"
103
+ }
104
+ ],
105
+ "name": "NewImplementation",
106
+ "type": "event"
107
+ },
108
+ {
109
+ "anonymous": false,
110
+ "inputs": [
111
+ {
112
+ "indexed": false,
113
+ "internalType": "address",
114
+ "name": "oldPendingAdmin",
115
+ "type": "address"
116
+ },
117
+ {
118
+ "indexed": false,
119
+ "internalType": "address",
120
+ "name": "newPendingAdmin",
121
+ "type": "address"
122
+ }
123
+ ],
124
+ "name": "NewPendingAdmin",
125
+ "type": "event"
126
+ },
127
+ {
128
+ "anonymous": false,
129
+ "inputs": [
130
+ {
131
+ "indexed": false,
132
+ "internalType": "uint256",
133
+ "name": "id",
134
+ "type": "uint256"
135
+ }
136
+ ],
137
+ "name": "ProposalCanceled",
138
+ "type": "event"
139
+ },
140
+ {
141
+ "anonymous": false,
142
+ "inputs": [
143
+ {
144
+ "indexed": false,
145
+ "internalType": "uint256",
146
+ "name": "id",
147
+ "type": "uint256"
148
+ },
149
+ {
150
+ "indexed": false,
151
+ "internalType": "address",
152
+ "name": "proposer",
153
+ "type": "address"
154
+ },
155
+ {
156
+ "indexed": false,
157
+ "internalType": "address[]",
158
+ "name": "targets",
159
+ "type": "address[]"
160
+ },
161
+ {
162
+ "indexed": false,
163
+ "internalType": "uint256[]",
164
+ "name": "values",
165
+ "type": "uint256[]"
166
+ },
167
+ {
168
+ "indexed": false,
169
+ "internalType": "string[]",
170
+ "name": "signatures",
171
+ "type": "string[]"
172
+ },
173
+ {
174
+ "indexed": false,
175
+ "internalType": "bytes[]",
176
+ "name": "calldatas",
177
+ "type": "bytes[]"
178
+ },
179
+ {
180
+ "indexed": false,
181
+ "internalType": "uint256",
182
+ "name": "startBlock",
183
+ "type": "uint256"
184
+ },
185
+ {
186
+ "indexed": false,
187
+ "internalType": "uint256",
188
+ "name": "endBlock",
189
+ "type": "uint256"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "internalType": "string",
194
+ "name": "description",
195
+ "type": "string"
196
+ }
197
+ ],
198
+ "name": "ProposalCreated",
199
+ "type": "event"
200
+ },
201
+ {
202
+ "anonymous": false,
203
+ "inputs": [
204
+ {
205
+ "indexed": false,
206
+ "internalType": "uint256",
207
+ "name": "id",
208
+ "type": "uint256"
209
+ }
210
+ ],
211
+ "name": "ProposalExecuted",
212
+ "type": "event"
213
+ },
214
+ {
215
+ "anonymous": false,
216
+ "inputs": [
217
+ {
218
+ "indexed": false,
219
+ "internalType": "uint256",
220
+ "name": "oldMaxOperations",
221
+ "type": "uint256"
222
+ },
223
+ {
224
+ "indexed": false,
225
+ "internalType": "uint256",
226
+ "name": "newMaxOperations",
227
+ "type": "uint256"
228
+ }
229
+ ],
230
+ "name": "ProposalMaxOperationsUpdated",
231
+ "type": "event"
232
+ },
233
+ {
234
+ "anonymous": false,
235
+ "inputs": [
236
+ {
237
+ "indexed": false,
238
+ "internalType": "uint256",
239
+ "name": "id",
240
+ "type": "uint256"
241
+ },
242
+ {
243
+ "indexed": false,
244
+ "internalType": "uint256",
245
+ "name": "eta",
246
+ "type": "uint256"
247
+ }
248
+ ],
249
+ "name": "ProposalQueued",
250
+ "type": "event"
251
+ },
252
+ {
253
+ "anonymous": false,
254
+ "inputs": [
255
+ {
256
+ "indexed": false,
257
+ "internalType": "uint256",
258
+ "name": "oldProposalThreshold",
259
+ "type": "uint256"
260
+ },
261
+ {
262
+ "indexed": false,
263
+ "internalType": "uint256",
264
+ "name": "newProposalThreshold",
265
+ "type": "uint256"
266
+ }
267
+ ],
268
+ "name": "ProposalThresholdSet",
269
+ "type": "event"
270
+ },
271
+ {
272
+ "anonymous": false,
273
+ "inputs": [
274
+ {
275
+ "indexed": true,
276
+ "internalType": "address",
277
+ "name": "voter",
278
+ "type": "address"
279
+ },
280
+ {
281
+ "indexed": false,
282
+ "internalType": "uint256",
283
+ "name": "proposalId",
284
+ "type": "uint256"
285
+ },
286
+ {
287
+ "indexed": false,
288
+ "internalType": "uint8",
289
+ "name": "support",
290
+ "type": "uint8"
291
+ },
292
+ {
293
+ "indexed": false,
294
+ "internalType": "uint256",
295
+ "name": "votes",
296
+ "type": "uint256"
297
+ },
298
+ {
299
+ "indexed": false,
300
+ "internalType": "string",
301
+ "name": "reason",
302
+ "type": "string"
303
+ }
304
+ ],
305
+ "name": "VoteCast",
306
+ "type": "event"
307
+ },
308
+ {
309
+ "anonymous": false,
310
+ "inputs": [
311
+ {
312
+ "indexed": false,
313
+ "internalType": "uint256",
314
+ "name": "oldVotingDelay",
315
+ "type": "uint256"
316
+ },
317
+ {
318
+ "indexed": false,
319
+ "internalType": "uint256",
320
+ "name": "newVotingDelay",
321
+ "type": "uint256"
322
+ }
323
+ ],
324
+ "name": "VotingDelaySet",
325
+ "type": "event"
326
+ },
327
+ {
328
+ "anonymous": false,
329
+ "inputs": [
330
+ {
331
+ "indexed": false,
332
+ "internalType": "uint256",
333
+ "name": "oldVotingPeriod",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "indexed": false,
338
+ "internalType": "uint256",
339
+ "name": "newVotingPeriod",
340
+ "type": "uint256"
341
+ }
342
+ ],
343
+ "name": "VotingPeriodSet",
344
+ "type": "event"
345
+ },
346
+ {
347
+ "payable": true,
348
+ "stateMutability": "payable",
349
+ "type": "fallback"
350
+ },
351
+ {
352
+ "constant": false,
353
+ "inputs": [
354
+ {
355
+ "internalType": "address",
356
+ "name": "implementation_",
357
+ "type": "address"
358
+ }
359
+ ],
360
+ "name": "_setImplementation",
361
+ "outputs": [],
362
+ "payable": false,
363
+ "stateMutability": "nonpayable",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "constant": true,
368
+ "inputs": [],
369
+ "name": "admin",
370
+ "outputs": [
371
+ {
372
+ "internalType": "address",
373
+ "name": "",
374
+ "type": "address"
375
+ }
376
+ ],
377
+ "payable": false,
378
+ "stateMutability": "view",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "constant": true,
383
+ "inputs": [],
384
+ "name": "implementation",
385
+ "outputs": [
386
+ {
387
+ "internalType": "address",
388
+ "name": "",
389
+ "type": "address"
390
+ }
391
+ ],
392
+ "payable": false,
393
+ "stateMutability": "view",
394
+ "type": "function"
395
+ },
396
+ {
397
+ "constant": true,
398
+ "inputs": [],
399
+ "name": "pendingAdmin",
400
+ "outputs": [
401
+ {
402
+ "internalType": "address",
403
+ "name": "",
404
+ "type": "address"
405
+ }
406
+ ],
407
+ "payable": false,
408
+ "stateMutability": "view",
409
+ "type": "function"
410
+ }
411
+ ],
412
+ "numDeployments": 1
413
+ }