@clober/v2-sdk 0.0.115 → 0.0.117

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 (83) hide show
  1. package/dist/cjs/call.js +1 -78
  2. package/dist/cjs/call.js.map +1 -1
  3. package/dist/cjs/constants/addresses.js +10 -28
  4. package/dist/cjs/constants/addresses.js.map +1 -1
  5. package/dist/cjs/constants/chain.js +4 -2
  6. package/dist/cjs/constants/chain.js.map +1 -1
  7. package/dist/cjs/constants/currency.js +13 -3
  8. package/dist/cjs/constants/currency.js.map +1 -1
  9. package/dist/cjs/constants/fee.js +4 -2
  10. package/dist/cjs/constants/fee.js.map +1 -1
  11. package/dist/cjs/constants/subgraph.js +2 -1
  12. package/dist/cjs/constants/subgraph.js.map +1 -1
  13. package/dist/cjs/model/pool.js +1 -1
  14. package/dist/cjs/model/pool.js.map +1 -1
  15. package/dist/cjs/type.js +1 -8
  16. package/dist/cjs/type.js.map +1 -1
  17. package/dist/cjs/view.js +1 -147
  18. package/dist/cjs/view.js.map +1 -1
  19. package/dist/esm/call.js +0 -72
  20. package/dist/esm/call.js.map +1 -1
  21. package/dist/esm/constants/addresses.js +10 -28
  22. package/dist/esm/constants/addresses.js.map +1 -1
  23. package/dist/esm/constants/chain.js +6 -3
  24. package/dist/esm/constants/chain.js.map +1 -1
  25. package/dist/esm/constants/currency.js +14 -4
  26. package/dist/esm/constants/currency.js.map +1 -1
  27. package/dist/esm/constants/fee.js +4 -2
  28. package/dist/esm/constants/fee.js.map +1 -1
  29. package/dist/esm/constants/subgraph.js +2 -1
  30. package/dist/esm/constants/subgraph.js.map +1 -1
  31. package/dist/esm/model/pool.js +1 -1
  32. package/dist/esm/model/pool.js.map +1 -1
  33. package/dist/esm/type.js +0 -7
  34. package/dist/esm/type.js.map +1 -1
  35. package/dist/esm/view.js +0 -143
  36. package/dist/esm/view.js.map +1 -1
  37. package/dist/tsconfig.build.tsbuildinfo +1 -1
  38. package/dist/types/call.d.ts +0 -39
  39. package/dist/types/call.d.ts.map +1 -1
  40. package/dist/types/constants/addresses.d.ts +0 -3
  41. package/dist/types/constants/addresses.d.ts.map +1 -1
  42. package/dist/types/constants/chain.d.ts +2 -1
  43. package/dist/types/constants/chain.d.ts.map +1 -1
  44. package/dist/types/constants/currency.d.ts.map +1 -1
  45. package/dist/types/constants/fee.d.ts.map +1 -1
  46. package/dist/types/constants/subgraph.d.ts.map +1 -1
  47. package/dist/types/model/currency.d.ts +1 -1
  48. package/dist/types/model/currency.d.ts.map +1 -1
  49. package/dist/types/type.d.ts +0 -41
  50. package/dist/types/type.d.ts.map +1 -1
  51. package/dist/types/view.d.ts +1 -22
  52. package/dist/types/view.d.ts.map +1 -1
  53. package/package.json +1 -1
  54. package/dist/cjs/abis/governance/election-governor-abi.js +0 -838
  55. package/dist/cjs/abis/governance/election-governor-abi.js.map +0 -1
  56. package/dist/cjs/abis/governance/keepers-registry-abi.js +0 -546
  57. package/dist/cjs/abis/governance/keepers-registry-abi.js.map +0 -1
  58. package/dist/cjs/abis/governance/vclob-abi.js +0 -743
  59. package/dist/cjs/abis/governance/vclob-abi.js.map +0 -1
  60. package/dist/cjs/apis/vclob.js +0 -47
  61. package/dist/cjs/apis/vclob.js.map +0 -1
  62. package/dist/cjs/model/vclob.js +0 -3
  63. package/dist/cjs/model/vclob.js.map +0 -1
  64. package/dist/esm/abis/governance/election-governor-abi.js +0 -835
  65. package/dist/esm/abis/governance/election-governor-abi.js.map +0 -1
  66. package/dist/esm/abis/governance/keepers-registry-abi.js +0 -543
  67. package/dist/esm/abis/governance/keepers-registry-abi.js.map +0 -1
  68. package/dist/esm/abis/governance/vclob-abi.js +0 -740
  69. package/dist/esm/abis/governance/vclob-abi.js.map +0 -1
  70. package/dist/esm/apis/vclob.js +0 -43
  71. package/dist/esm/apis/vclob.js.map +0 -1
  72. package/dist/esm/model/vclob.js +0 -2
  73. package/dist/esm/model/vclob.js.map +0 -1
  74. package/dist/types/abis/governance/election-governor-abi.d.ts +0 -648
  75. package/dist/types/abis/governance/election-governor-abi.d.ts.map +0 -1
  76. package/dist/types/abis/governance/keepers-registry-abi.d.ts +0 -417
  77. package/dist/types/abis/governance/keepers-registry-abi.d.ts.map +0 -1
  78. package/dist/types/abis/governance/vclob-abi.d.ts +0 -568
  79. package/dist/types/abis/governance/vclob-abi.d.ts.map +0 -1
  80. package/dist/types/apis/vclob.d.ts +0 -5
  81. package/dist/types/apis/vclob.d.ts.map +0 -1
  82. package/dist/types/model/vclob.d.ts +0 -7
  83. package/dist/types/model/vclob.d.ts.map +0 -1
@@ -1,838 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ELECTION_GOVERNOR_ABI = void 0;
4
- exports.ELECTION_GOVERNOR_ABI = [
5
- {
6
- type: 'constructor',
7
- inputs: [
8
- {
9
- name: 'registry_',
10
- type: 'address',
11
- internalType: 'address',
12
- },
13
- {
14
- name: 'voteToken_',
15
- type: 'address',
16
- internalType: 'address',
17
- },
18
- {
19
- name: 'timelockController_',
20
- type: 'address',
21
- internalType: 'address',
22
- },
23
- {
24
- name: 'timelockDelay_',
25
- type: 'uint256',
26
- internalType: 'uint256',
27
- },
28
- {
29
- name: 'minCandidateBalance_',
30
- type: 'uint256',
31
- internalType: 'uint256',
32
- },
33
- {
34
- name: 'minApprovalRate_',
35
- type: 'uint256',
36
- internalType: 'uint256',
37
- },
38
- {
39
- name: 'quota_',
40
- type: 'uint8',
41
- internalType: 'uint8',
42
- },
43
- {
44
- name: 'votingPeriod_',
45
- type: 'uint32',
46
- internalType: 'uint32',
47
- },
48
- {
49
- name: 'registrationPeriod_',
50
- type: 'uint32',
51
- internalType: 'uint32',
52
- },
53
- ],
54
- stateMutability: 'nonpayable',
55
- },
56
- {
57
- type: 'function',
58
- name: 'CLOCK_MODE',
59
- inputs: [],
60
- outputs: [
61
- {
62
- name: '',
63
- type: 'string',
64
- internalType: 'string',
65
- },
66
- ],
67
- stateMutability: 'pure',
68
- },
69
- {
70
- type: 'function',
71
- name: 'UPGRADE_INTERFACE_VERSION',
72
- inputs: [],
73
- outputs: [
74
- {
75
- name: '',
76
- type: 'string',
77
- internalType: 'string',
78
- },
79
- ],
80
- stateMutability: 'view',
81
- },
82
- {
83
- type: 'function',
84
- name: 'acceptOwnership',
85
- inputs: [],
86
- outputs: [],
87
- stateMutability: 'nonpayable',
88
- },
89
- {
90
- type: 'function',
91
- name: 'clock',
92
- inputs: [],
93
- outputs: [
94
- {
95
- name: '',
96
- type: 'uint48',
97
- internalType: 'uint48',
98
- },
99
- ],
100
- stateMutability: 'view',
101
- },
102
- {
103
- type: 'function',
104
- name: 'currentRound',
105
- inputs: [],
106
- outputs: [
107
- {
108
- name: '',
109
- type: 'uint16',
110
- internalType: 'uint16',
111
- },
112
- ],
113
- stateMutability: 'view',
114
- },
115
- {
116
- type: 'function',
117
- name: 'end',
118
- inputs: [],
119
- outputs: [],
120
- stateMutability: 'nonpayable',
121
- },
122
- {
123
- type: 'function',
124
- name: 'getCandidates',
125
- inputs: [
126
- {
127
- name: 'round',
128
- type: 'uint16',
129
- internalType: 'uint16',
130
- },
131
- ],
132
- outputs: [
133
- {
134
- name: '',
135
- type: 'address[]',
136
- internalType: 'address[]',
137
- },
138
- ],
139
- stateMutability: 'view',
140
- },
141
- {
142
- type: 'function',
143
- name: 'getFinalists',
144
- inputs: [
145
- {
146
- name: 'round',
147
- type: 'uint16',
148
- internalType: 'uint16',
149
- },
150
- ],
151
- outputs: [
152
- {
153
- name: '',
154
- type: 'address[]',
155
- internalType: 'address[]',
156
- },
157
- ],
158
- stateMutability: 'view',
159
- },
160
- {
161
- type: 'function',
162
- name: 'getRoundData',
163
- inputs: [
164
- {
165
- name: 'round',
166
- type: 'uint16',
167
- internalType: 'uint16',
168
- },
169
- ],
170
- outputs: [
171
- {
172
- name: '',
173
- type: 'tuple',
174
- internalType: 'struct IElectionGovernor.RoundData',
175
- components: [
176
- {
177
- name: 'status',
178
- type: 'uint8',
179
- internalType: 'enum IElectionGovernor.RoundStatus',
180
- },
181
- {
182
- name: 'quota',
183
- type: 'uint8',
184
- internalType: 'uint8',
185
- },
186
- {
187
- name: 'finalistsThreshold',
188
- type: 'uint96',
189
- internalType: 'uint96',
190
- },
191
- {
192
- name: 'startTime',
193
- type: 'uint32',
194
- internalType: 'uint32',
195
- },
196
- {
197
- name: 'votingEndTime',
198
- type: 'uint32',
199
- internalType: 'uint32',
200
- },
201
- {
202
- name: 'registrationEndTime',
203
- type: 'uint32',
204
- internalType: 'uint32',
205
- },
206
- {
207
- name: 'candidatesLength',
208
- type: 'uint16',
209
- internalType: 'uint16',
210
- },
211
- {
212
- name: 'finalistsLength',
213
- type: 'uint8',
214
- internalType: 'uint8',
215
- },
216
- ],
217
- },
218
- ],
219
- stateMutability: 'view',
220
- },
221
- {
222
- type: 'function',
223
- name: 'getStatus',
224
- inputs: [
225
- {
226
- name: 'round',
227
- type: 'uint16',
228
- internalType: 'uint16',
229
- },
230
- ],
231
- outputs: [
232
- {
233
- name: '',
234
- type: 'uint8',
235
- internalType: 'enum IElectionGovernor.RoundStatus',
236
- },
237
- ],
238
- stateMutability: 'view',
239
- },
240
- {
241
- type: 'function',
242
- name: 'getVotes',
243
- inputs: [
244
- {
245
- name: 'round',
246
- type: 'uint16',
247
- internalType: 'uint16',
248
- },
249
- {
250
- name: 'candidate',
251
- type: 'address',
252
- internalType: 'address',
253
- },
254
- ],
255
- outputs: [
256
- {
257
- name: 'forVotes',
258
- type: 'uint96',
259
- internalType: 'uint96',
260
- },
261
- {
262
- name: 'againstVotes',
263
- type: 'uint96',
264
- internalType: 'uint96',
265
- },
266
- ],
267
- stateMutability: 'view',
268
- },
269
- {
270
- type: 'function',
271
- name: 'hasVotedTo',
272
- inputs: [
273
- {
274
- name: 'round',
275
- type: 'uint16',
276
- internalType: 'uint16',
277
- },
278
- {
279
- name: 'voter',
280
- type: 'address',
281
- internalType: 'address',
282
- },
283
- {
284
- name: 'candidate',
285
- type: 'address',
286
- internalType: 'address',
287
- },
288
- ],
289
- outputs: [
290
- {
291
- name: '',
292
- type: 'bool',
293
- internalType: 'bool',
294
- },
295
- ],
296
- stateMutability: 'view',
297
- },
298
- {
299
- type: 'function',
300
- name: 'initialize',
301
- inputs: [
302
- {
303
- name: 'initialOwner',
304
- type: 'address',
305
- internalType: 'address',
306
- },
307
- ],
308
- outputs: [],
309
- stateMutability: 'nonpayable',
310
- },
311
- {
312
- type: 'function',
313
- name: 'minApprovalRate',
314
- inputs: [],
315
- outputs: [
316
- {
317
- name: '',
318
- type: 'uint256',
319
- internalType: 'uint256',
320
- },
321
- ],
322
- stateMutability: 'view',
323
- },
324
- {
325
- type: 'function',
326
- name: 'minCandidateBalance',
327
- inputs: [],
328
- outputs: [
329
- {
330
- name: '',
331
- type: 'uint256',
332
- internalType: 'uint256',
333
- },
334
- ],
335
- stateMutability: 'view',
336
- },
337
- {
338
- type: 'function',
339
- name: 'nextRoundStartTime',
340
- inputs: [],
341
- outputs: [
342
- {
343
- name: '',
344
- type: 'uint256',
345
- internalType: 'uint256',
346
- },
347
- ],
348
- stateMutability: 'view',
349
- },
350
- {
351
- type: 'function',
352
- name: 'owner',
353
- inputs: [],
354
- outputs: [
355
- {
356
- name: '',
357
- type: 'address',
358
- internalType: 'address',
359
- },
360
- ],
361
- stateMutability: 'view',
362
- },
363
- {
364
- type: 'function',
365
- name: 'pendingOwner',
366
- inputs: [],
367
- outputs: [
368
- {
369
- name: '',
370
- type: 'address',
371
- internalType: 'address',
372
- },
373
- ],
374
- stateMutability: 'view',
375
- },
376
- {
377
- type: 'function',
378
- name: 'proxiableUUID',
379
- inputs: [],
380
- outputs: [
381
- {
382
- name: '',
383
- type: 'bytes32',
384
- internalType: 'bytes32',
385
- },
386
- ],
387
- stateMutability: 'view',
388
- },
389
- {
390
- type: 'function',
391
- name: 'quota',
392
- inputs: [],
393
- outputs: [
394
- {
395
- name: '',
396
- type: 'uint8',
397
- internalType: 'uint8',
398
- },
399
- ],
400
- stateMutability: 'view',
401
- },
402
- {
403
- type: 'function',
404
- name: 'register',
405
- inputs: [],
406
- outputs: [],
407
- stateMutability: 'nonpayable',
408
- },
409
- {
410
- type: 'function',
411
- name: 'registrationPeriod',
412
- inputs: [],
413
- outputs: [
414
- {
415
- name: '',
416
- type: 'uint32',
417
- internalType: 'uint32',
418
- },
419
- ],
420
- stateMutability: 'view',
421
- },
422
- {
423
- type: 'function',
424
- name: 'registry',
425
- inputs: [],
426
- outputs: [
427
- {
428
- name: '',
429
- type: 'address',
430
- internalType: 'address',
431
- },
432
- ],
433
- stateMutability: 'view',
434
- },
435
- {
436
- type: 'function',
437
- name: 'renounceOwnership',
438
- inputs: [],
439
- outputs: [],
440
- stateMutability: 'nonpayable',
441
- },
442
- {
443
- type: 'function',
444
- name: 'start',
445
- inputs: [],
446
- outputs: [],
447
- stateMutability: 'nonpayable',
448
- },
449
- {
450
- type: 'function',
451
- name: 'timelockController',
452
- inputs: [],
453
- outputs: [
454
- {
455
- name: '',
456
- type: 'address',
457
- internalType: 'address',
458
- },
459
- ],
460
- stateMutability: 'view',
461
- },
462
- {
463
- type: 'function',
464
- name: 'timelockDelay',
465
- inputs: [],
466
- outputs: [
467
- {
468
- name: '',
469
- type: 'uint256',
470
- internalType: 'uint256',
471
- },
472
- ],
473
- stateMutability: 'view',
474
- },
475
- {
476
- type: 'function',
477
- name: 'transferOwnership',
478
- inputs: [
479
- {
480
- name: 'newOwner',
481
- type: 'address',
482
- internalType: 'address',
483
- },
484
- ],
485
- outputs: [],
486
- stateMutability: 'nonpayable',
487
- },
488
- {
489
- type: 'function',
490
- name: 'upgradeToAndCall',
491
- inputs: [
492
- {
493
- name: 'newImplementation',
494
- type: 'address',
495
- internalType: 'address',
496
- },
497
- {
498
- name: 'data',
499
- type: 'bytes',
500
- internalType: 'bytes',
501
- },
502
- ],
503
- outputs: [],
504
- stateMutability: 'payable',
505
- },
506
- {
507
- type: 'function',
508
- name: 'vote',
509
- inputs: [
510
- {
511
- name: 'candidate',
512
- type: 'address',
513
- internalType: 'address',
514
- },
515
- {
516
- name: 'inFavor',
517
- type: 'bool',
518
- internalType: 'bool',
519
- },
520
- ],
521
- outputs: [],
522
- stateMutability: 'nonpayable',
523
- },
524
- {
525
- type: 'function',
526
- name: 'voteToken',
527
- inputs: [],
528
- outputs: [
529
- {
530
- name: '',
531
- type: 'address',
532
- internalType: 'address',
533
- },
534
- ],
535
- stateMutability: 'view',
536
- },
537
- {
538
- type: 'function',
539
- name: 'votingPeriod',
540
- inputs: [],
541
- outputs: [
542
- {
543
- name: '',
544
- type: 'uint32',
545
- internalType: 'uint32',
546
- },
547
- ],
548
- stateMutability: 'view',
549
- },
550
- {
551
- type: 'event',
552
- name: 'Initialized',
553
- inputs: [
554
- {
555
- name: 'version',
556
- type: 'uint64',
557
- indexed: false,
558
- internalType: 'uint64',
559
- },
560
- ],
561
- anonymous: false,
562
- },
563
- {
564
- type: 'event',
565
- name: 'OwnershipTransferStarted',
566
- inputs: [
567
- {
568
- name: 'previousOwner',
569
- type: 'address',
570
- indexed: true,
571
- internalType: 'address',
572
- },
573
- {
574
- name: 'newOwner',
575
- type: 'address',
576
- indexed: true,
577
- internalType: 'address',
578
- },
579
- ],
580
- anonymous: false,
581
- },
582
- {
583
- type: 'event',
584
- name: 'OwnershipTransferred',
585
- inputs: [
586
- {
587
- name: 'previousOwner',
588
- type: 'address',
589
- indexed: true,
590
- internalType: 'address',
591
- },
592
- {
593
- name: 'newOwner',
594
- type: 'address',
595
- indexed: true,
596
- internalType: 'address',
597
- },
598
- ],
599
- anonymous: false,
600
- },
601
- {
602
- type: 'event',
603
- name: 'Registered',
604
- inputs: [
605
- {
606
- name: 'account',
607
- type: 'address',
608
- indexed: true,
609
- internalType: 'address',
610
- },
611
- {
612
- name: 'finalists',
613
- type: 'address[]',
614
- indexed: false,
615
- internalType: 'address[]',
616
- },
617
- ],
618
- anonymous: false,
619
- },
620
- {
621
- type: 'event',
622
- name: 'RoundEnded',
623
- inputs: [
624
- {
625
- name: 'round',
626
- type: 'uint16',
627
- indexed: true,
628
- internalType: 'uint16',
629
- },
630
- {
631
- name: 'keepers',
632
- type: 'address[]',
633
- indexed: false,
634
- internalType: 'address[]',
635
- },
636
- ],
637
- anonymous: false,
638
- },
639
- {
640
- type: 'event',
641
- name: 'RoundStarted',
642
- inputs: [
643
- {
644
- name: 'round',
645
- type: 'uint16',
646
- indexed: true,
647
- internalType: 'uint16',
648
- },
649
- {
650
- name: 'quota',
651
- type: 'uint8',
652
- indexed: false,
653
- internalType: 'uint8',
654
- },
655
- {
656
- name: 'finalistsThreshold',
657
- type: 'uint96',
658
- indexed: false,
659
- internalType: 'uint96',
660
- },
661
- {
662
- name: 'startTime',
663
- type: 'uint32',
664
- indexed: false,
665
- internalType: 'uint32',
666
- },
667
- {
668
- name: 'votingPeriod',
669
- type: 'uint32',
670
- indexed: false,
671
- internalType: 'uint32',
672
- },
673
- {
674
- name: 'registrationPeriod',
675
- type: 'uint32',
676
- indexed: false,
677
- internalType: 'uint32',
678
- },
679
- ],
680
- anonymous: false,
681
- },
682
- {
683
- type: 'event',
684
- name: 'Upgraded',
685
- inputs: [
686
- {
687
- name: 'implementation',
688
- type: 'address',
689
- indexed: true,
690
- internalType: 'address',
691
- },
692
- ],
693
- anonymous: false,
694
- },
695
- {
696
- type: 'event',
697
- name: 'Voted',
698
- inputs: [
699
- {
700
- name: 'round',
701
- type: 'uint16',
702
- indexed: true,
703
- internalType: 'uint16',
704
- },
705
- {
706
- name: 'voter',
707
- type: 'address',
708
- indexed: true,
709
- internalType: 'address',
710
- },
711
- {
712
- name: 'candidate',
713
- type: 'address',
714
- indexed: true,
715
- internalType: 'address',
716
- },
717
- {
718
- name: 'votes',
719
- type: 'uint96',
720
- indexed: false,
721
- internalType: 'uint96',
722
- },
723
- {
724
- name: 'inFavor',
725
- type: 'bool',
726
- indexed: false,
727
- internalType: 'bool',
728
- },
729
- ],
730
- anonymous: false,
731
- },
732
- {
733
- type: 'error',
734
- name: 'AddressEmptyCode',
735
- inputs: [
736
- {
737
- name: 'target',
738
- type: 'address',
739
- internalType: 'address',
740
- },
741
- ],
742
- },
743
- {
744
- type: 'error',
745
- name: 'AlreadyRegistered',
746
- inputs: [],
747
- },
748
- {
749
- type: 'error',
750
- name: 'AlreadyVoted',
751
- inputs: [],
752
- },
753
- {
754
- type: 'error',
755
- name: 'ERC1967InvalidImplementation',
756
- inputs: [
757
- {
758
- name: 'implementation',
759
- type: 'address',
760
- internalType: 'address',
761
- },
762
- ],
763
- },
764
- {
765
- type: 'error',
766
- name: 'ERC1967NonPayable',
767
- inputs: [],
768
- },
769
- {
770
- type: 'error',
771
- name: 'FailedCall',
772
- inputs: [],
773
- },
774
- {
775
- type: 'error',
776
- name: 'InsufficientBalance',
777
- inputs: [],
778
- },
779
- {
780
- type: 'error',
781
- name: 'InsufficientVotes',
782
- inputs: [],
783
- },
784
- {
785
- type: 'error',
786
- name: 'InvalidInitialization',
787
- inputs: [],
788
- },
789
- {
790
- type: 'error',
791
- name: 'InvalidTime',
792
- inputs: [],
793
- },
794
- {
795
- type: 'error',
796
- name: 'NotInitializing',
797
- inputs: [],
798
- },
799
- {
800
- type: 'error',
801
- name: 'OwnableInvalidOwner',
802
- inputs: [
803
- {
804
- name: 'owner',
805
- type: 'address',
806
- internalType: 'address',
807
- },
808
- ],
809
- },
810
- {
811
- type: 'error',
812
- name: 'OwnableUnauthorizedAccount',
813
- inputs: [
814
- {
815
- name: 'account',
816
- type: 'address',
817
- internalType: 'address',
818
- },
819
- ],
820
- },
821
- {
822
- type: 'error',
823
- name: 'UUPSUnauthorizedCallContext',
824
- inputs: [],
825
- },
826
- {
827
- type: 'error',
828
- name: 'UUPSUnsupportedProxiableUUID',
829
- inputs: [
830
- {
831
- name: 'slot',
832
- type: 'bytes32',
833
- internalType: 'bytes32',
834
- },
835
- ],
836
- },
837
- ];
838
- //# sourceMappingURL=election-governor-abi.js.map