@ape.swap/bonds-sdk 1.0.553 → 1.0.555

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 (29) hide show
  1. package/package.json +1 -1
  2. package/dist/config/abi/bondNft.json +0 -424
  3. package/dist/config/abi/ens-public-resolver.json +0 -816
  4. package/dist/config/abi/ens-registrar.json +0 -422
  5. package/dist/config/abi/erc20_bytes32.json +0 -30
  6. package/dist/config/abi/jungleChef.json +0 -291
  7. package/dist/config/abi/launchBonds.json +0 -2014
  8. package/dist/config/abi/lockVeAbond.json +0 -2198
  9. package/dist/config/abi/migrationBond.json +0 -1639
  10. package/dist/config/abi/migrationFveAbond.json +0 -160
  11. package/dist/config/abi/multicallv3.json +0 -92
  12. package/dist/config/abi/price-getter-linea.json +0 -1448
  13. package/dist/config/abi/price-getter.json +0 -1309
  14. package/dist/config/abi/sousChef.json +0 -649
  15. package/dist/config/abi/weth.json +0 -279
  16. package/dist/hooks/PriceGetter/dexFactories.d.ts +0 -11
  17. package/dist/hooks/PriceGetter/dexFactories.js +0 -2
  18. package/dist/hooks/PriceGetter/usePricesFromPriceGetter.d.ts +0 -17
  19. package/dist/hooks/PriceGetter/usePricesFromPriceGetter.js +0 -205
  20. package/dist/hooks/useClaimBill.d.ts +0 -4
  21. package/dist/hooks/useClaimBill.js +0 -59
  22. package/dist/hooks/useContract.d.ts +0 -25
  23. package/dist/hooks/useContract.js +0 -107
  24. package/dist/state/tokenPrices/fetchTokenPricesForMultipleChains.d.ts +0 -4
  25. package/dist/state/tokenPrices/fetchTokenPricesForMultipleChains.js +0 -81
  26. package/dist/state/tokenPrices/getAllTokenPrices.d.ts +0 -5
  27. package/dist/state/tokenPrices/getAllTokenPrices.js +0 -288
  28. package/dist/state/tokenPrices/useTokenPricesNew.d.ts +0 -11
  29. package/dist/state/tokenPrices/useTokenPricesNew.js +0 -72
@@ -1,1639 +0,0 @@
1
- [
2
- {
3
- "anonymous": false,
4
- "inputs": [
5
- {
6
- "indexed": true,
7
- "internalType": "uint256",
8
- "name": "billId",
9
- "type": "uint256"
10
- },
11
- {
12
- "indexed": true,
13
- "internalType": "address",
14
- "name": "recipient",
15
- "type": "address"
16
- },
17
- {
18
- "indexed": false,
19
- "internalType": "uint256",
20
- "name": "payout",
21
- "type": "uint256"
22
- },
23
- {
24
- "indexed": false,
25
- "internalType": "uint256",
26
- "name": "remaining",
27
- "type": "uint256"
28
- }
29
- ],
30
- "name": "BillClaimed",
31
- "type": "event"
32
- },
33
- {
34
- "anonymous": false,
35
- "inputs": [
36
- {
37
- "indexed": false,
38
- "internalType": "uint256",
39
- "name": "deposit",
40
- "type": "uint256"
41
- },
42
- {
43
- "indexed": false,
44
- "internalType": "uint256",
45
- "name": "payout",
46
- "type": "uint256"
47
- },
48
- {
49
- "indexed": false,
50
- "internalType": "uint256",
51
- "name": "expires",
52
- "type": "uint256"
53
- },
54
- {
55
- "indexed": true,
56
- "internalType": "uint256",
57
- "name": "billId",
58
- "type": "uint256"
59
- }
60
- ],
61
- "name": "BillCreated",
62
- "type": "event"
63
- },
64
- {
65
- "anonymous": false,
66
- "inputs": [
67
- {
68
- "components": [
69
- {
70
- "internalType": "uint256",
71
- "name": "vestingTerm",
72
- "type": "uint256"
73
- },
74
- {
75
- "internalType": "uint256",
76
- "name": "minimumPrice",
77
- "type": "uint256"
78
- },
79
- {
80
- "internalType": "uint256",
81
- "name": "maxTotalPayout",
82
- "type": "uint256"
83
- }
84
- ],
85
- "indexed": false,
86
- "internalType": "struct ICustomBillFixedPrice.BillTerms",
87
- "name": "billTerms",
88
- "type": "tuple"
89
- },
90
- {
91
- "indexed": false,
92
- "internalType": "uint256",
93
- "name": "lastDecay",
94
- "type": "uint256"
95
- }
96
- ],
97
- "name": "BillInitialized",
98
- "type": "event"
99
- },
100
- {
101
- "anonymous": false,
102
- "inputs": [
103
- {
104
- "indexed": true,
105
- "internalType": "address",
106
- "name": "newFeeTo",
107
- "type": "address"
108
- }
109
- ],
110
- "name": "FeeToChanged",
111
- "type": "event"
112
- },
113
- {
114
- "anonymous": false,
115
- "inputs": [
116
- {
117
- "indexed": false,
118
- "internalType": "uint8",
119
- "name": "version",
120
- "type": "uint8"
121
- }
122
- ],
123
- "name": "Initialized",
124
- "type": "event"
125
- },
126
- {
127
- "anonymous": false,
128
- "inputs": [
129
- {
130
- "indexed": false,
131
- "internalType": "uint256",
132
- "name": "newMaxTotalPayout",
133
- "type": "uint256"
134
- }
135
- ],
136
- "name": "MaxTotalPayoutChanged",
137
- "type": "event"
138
- },
139
- {
140
- "anonymous": false,
141
- "inputs": [
142
- {
143
- "indexed": true,
144
- "internalType": "address",
145
- "name": "previousOwner",
146
- "type": "address"
147
- },
148
- {
149
- "indexed": true,
150
- "internalType": "address",
151
- "name": "newOwner",
152
- "type": "address"
153
- }
154
- ],
155
- "name": "OwnershipTransferred",
156
- "type": "event"
157
- },
158
- {
159
- "anonymous": false,
160
- "inputs": [
161
- {
162
- "indexed": true,
163
- "internalType": "bytes32",
164
- "name": "role",
165
- "type": "bytes32"
166
- },
167
- {
168
- "indexed": true,
169
- "internalType": "bytes32",
170
- "name": "previousAdminRole",
171
- "type": "bytes32"
172
- },
173
- {
174
- "indexed": true,
175
- "internalType": "bytes32",
176
- "name": "newAdminRole",
177
- "type": "bytes32"
178
- }
179
- ],
180
- "name": "RoleAdminChanged",
181
- "type": "event"
182
- },
183
- {
184
- "anonymous": false,
185
- "inputs": [
186
- {
187
- "indexed": true,
188
- "internalType": "bytes32",
189
- "name": "role",
190
- "type": "bytes32"
191
- },
192
- {
193
- "indexed": true,
194
- "internalType": "address",
195
- "name": "account",
196
- "type": "address"
197
- },
198
- {
199
- "indexed": true,
200
- "internalType": "address",
201
- "name": "sender",
202
- "type": "address"
203
- }
204
- ],
205
- "name": "RoleGranted",
206
- "type": "event"
207
- },
208
- {
209
- "anonymous": false,
210
- "inputs": [
211
- {
212
- "indexed": true,
213
- "internalType": "bytes32",
214
- "name": "role",
215
- "type": "bytes32"
216
- },
217
- {
218
- "indexed": true,
219
- "internalType": "address",
220
- "name": "account",
221
- "type": "address"
222
- },
223
- {
224
- "indexed": true,
225
- "internalType": "address",
226
- "name": "sender",
227
- "type": "address"
228
- }
229
- ],
230
- "name": "RoleRevoked",
231
- "type": "event"
232
- },
233
- {
234
- "anonymous": false,
235
- "inputs": [
236
- {
237
- "indexed": false,
238
- "internalType": "uint256[]",
239
- "name": "fees",
240
- "type": "uint256[]"
241
- },
242
- {
243
- "indexed": false,
244
- "internalType": "uint256[]",
245
- "name": "tierCeilings",
246
- "type": "uint256[]"
247
- }
248
- ],
249
- "name": "SetFees",
250
- "type": "event"
251
- },
252
- {
253
- "anonymous": false,
254
- "inputs": [
255
- {
256
- "indexed": true,
257
- "internalType": "address",
258
- "name": "pendingOwner",
259
- "type": "address"
260
- }
261
- ],
262
- "name": "SetPendingOwner",
263
- "type": "event"
264
- },
265
- {
266
- "anonymous": false,
267
- "inputs": [
268
- {
269
- "indexed": false,
270
- "internalType": "enum CustomBillFixedPrice.PARAMETER",
271
- "name": "parameter",
272
- "type": "uint8"
273
- },
274
- {
275
- "indexed": false,
276
- "internalType": "uint256",
277
- "name": "input",
278
- "type": "uint256"
279
- }
280
- ],
281
- "name": "TermsSet",
282
- "type": "event"
283
- },
284
- {
285
- "anonymous": false,
286
- "inputs": [
287
- {
288
- "indexed": true,
289
- "internalType": "address",
290
- "name": "owner",
291
- "type": "address"
292
- },
293
- {
294
- "indexed": true,
295
- "internalType": "address",
296
- "name": "approvedAccount",
297
- "type": "address"
298
- },
299
- {
300
- "indexed": false,
301
- "internalType": "bool",
302
- "name": "approved",
303
- "type": "bool"
304
- }
305
- ],
306
- "name": "UpdateClaimApproval",
307
- "type": "event"
308
- },
309
- {
310
- "inputs": [],
311
- "name": "DAO",
312
- "outputs": [
313
- {
314
- "internalType": "address",
315
- "name": "",
316
- "type": "address"
317
- }
318
- ],
319
- "stateMutability": "view",
320
- "type": "function"
321
- },
322
- {
323
- "inputs": [],
324
- "name": "DEFAULT_ADMIN_ROLE",
325
- "outputs": [
326
- {
327
- "internalType": "bytes32",
328
- "name": "",
329
- "type": "bytes32"
330
- }
331
- ],
332
- "stateMutability": "view",
333
- "type": "function"
334
- },
335
- {
336
- "inputs": [],
337
- "name": "MAX_FEE",
338
- "outputs": [
339
- {
340
- "internalType": "uint256",
341
- "name": "",
342
- "type": "uint256"
343
- }
344
- ],
345
- "stateMutability": "view",
346
- "type": "function"
347
- },
348
- {
349
- "inputs": [],
350
- "name": "MAX_FEE_TIERS",
351
- "outputs": [
352
- {
353
- "internalType": "uint8",
354
- "name": "",
355
- "type": "uint8"
356
- }
357
- ],
358
- "stateMutability": "view",
359
- "type": "function"
360
- },
361
- {
362
- "inputs": [],
363
- "name": "acceptOwnership",
364
- "outputs": [],
365
- "stateMutability": "nonpayable",
366
- "type": "function"
367
- },
368
- {
369
- "inputs": [],
370
- "name": "accumulatedRewardsPerShare",
371
- "outputs": [
372
- {
373
- "internalType": "uint256",
374
- "name": "accRewardPerShare",
375
- "type": "uint256"
376
- }
377
- ],
378
- "stateMutability": "view",
379
- "type": "function"
380
- },
381
- {
382
- "inputs": [],
383
- "name": "allIssuedBillIds",
384
- "outputs": [
385
- {
386
- "internalType": "uint256[]",
387
- "name": "",
388
- "type": "uint256[]"
389
- }
390
- ],
391
- "stateMutability": "view",
392
- "type": "function"
393
- },
394
- {
395
- "inputs": [
396
- {
397
- "internalType": "uint256[]",
398
- "name": "_billIds",
399
- "type": "uint256[]"
400
- }
401
- ],
402
- "name": "batchClaim",
403
- "outputs": [
404
- {
405
- "internalType": "uint256",
406
- "name": "payout",
407
- "type": "uint256"
408
- }
409
- ],
410
- "stateMutability": "nonpayable",
411
- "type": "function"
412
- },
413
- {
414
- "inputs": [
415
- {
416
- "internalType": "uint256[]",
417
- "name": "_billIds",
418
- "type": "uint256[]"
419
- }
420
- ],
421
- "name": "batchRedeem",
422
- "outputs": [
423
- {
424
- "internalType": "uint256",
425
- "name": "payout",
426
- "type": "uint256"
427
- }
428
- ],
429
- "stateMutability": "nonpayable",
430
- "type": "function"
431
- },
432
- {
433
- "inputs": [
434
- {
435
- "internalType": "uint256",
436
- "name": "",
437
- "type": "uint256"
438
- }
439
- ],
440
- "name": "billInfo",
441
- "outputs": [
442
- {
443
- "internalType": "uint256",
444
- "name": "payout",
445
- "type": "uint256"
446
- },
447
- {
448
- "internalType": "uint256",
449
- "name": "depositAmount",
450
- "type": "uint256"
451
- },
452
- {
453
- "internalType": "uint256",
454
- "name": "payoutClaimed",
455
- "type": "uint256"
456
- },
457
- {
458
- "internalType": "uint256",
459
- "name": "vesting",
460
- "type": "uint256"
461
- },
462
- {
463
- "internalType": "uint256",
464
- "name": "vestingTerm",
465
- "type": "uint256"
466
- },
467
- {
468
- "internalType": "uint256",
469
- "name": "vestingStartTimestamp",
470
- "type": "uint256"
471
- },
472
- {
473
- "internalType": "uint256",
474
- "name": "lastClaimTimestamp",
475
- "type": "uint256"
476
- },
477
- {
478
- "internalType": "uint256",
479
- "name": "truePricePaid",
480
- "type": "uint256"
481
- }
482
- ],
483
- "stateMutability": "view",
484
- "type": "function"
485
- },
486
- {
487
- "inputs": [],
488
- "name": "billNft",
489
- "outputs": [
490
- {
491
- "internalType": "contract IBillNft",
492
- "name": "",
493
- "type": "address"
494
- }
495
- ],
496
- "stateMutability": "view",
497
- "type": "function"
498
- },
499
- {
500
- "inputs": [],
501
- "name": "billPrice",
502
- "outputs": [
503
- {
504
- "internalType": "uint256",
505
- "name": "price_",
506
- "type": "uint256"
507
- }
508
- ],
509
- "stateMutability": "view",
510
- "type": "function"
511
- },
512
- {
513
- "inputs": [
514
- {
515
- "internalType": "uint256",
516
- "name": "_billId",
517
- "type": "uint256"
518
- }
519
- ],
520
- "name": "bonusRewards",
521
- "outputs": [
522
- {
523
- "internalType": "uint256",
524
- "name": "pending",
525
- "type": "uint256"
526
- }
527
- ],
528
- "stateMutability": "view",
529
- "type": "function"
530
- },
531
- {
532
- "inputs": [
533
- {
534
- "internalType": "address",
535
- "name": "_feeTo",
536
- "type": "address"
537
- }
538
- ],
539
- "name": "changeFeeTo",
540
- "outputs": [],
541
- "stateMutability": "nonpayable",
542
- "type": "function"
543
- },
544
- {
545
- "inputs": [
546
- {
547
- "internalType": "uint256",
548
- "name": "_billId",
549
- "type": "uint256"
550
- }
551
- ],
552
- "name": "claim",
553
- "outputs": [
554
- {
555
- "internalType": "uint256",
556
- "name": "",
557
- "type": "uint256"
558
- }
559
- ],
560
- "stateMutability": "nonpayable",
561
- "type": "function"
562
- },
563
- {
564
- "inputs": [
565
- {
566
- "internalType": "uint256",
567
- "name": "_billId",
568
- "type": "uint256"
569
- }
570
- ],
571
- "name": "claimablePayout",
572
- "outputs": [
573
- {
574
- "internalType": "uint256",
575
- "name": "claimablePayout_",
576
- "type": "uint256"
577
- }
578
- ],
579
- "stateMutability": "view",
580
- "type": "function"
581
- },
582
- {
583
- "inputs": [],
584
- "name": "currentFee",
585
- "outputs": [
586
- {
587
- "internalType": "uint256",
588
- "name": "currentFee_",
589
- "type": "uint256"
590
- }
591
- ],
592
- "stateMutability": "view",
593
- "type": "function"
594
- },
595
- {
596
- "inputs": [],
597
- "name": "customTreasury",
598
- "outputs": [
599
- {
600
- "internalType": "contract ICustomTreasury",
601
- "name": "",
602
- "type": "address"
603
- }
604
- ],
605
- "stateMutability": "view",
606
- "type": "function"
607
- },
608
- {
609
- "inputs": [
610
- {
611
- "internalType": "uint256",
612
- "name": "_amount",
613
- "type": "uint256"
614
- },
615
- {
616
- "internalType": "uint256",
617
- "name": "_maxPrice",
618
- "type": "uint256"
619
- },
620
- {
621
- "internalType": "address",
622
- "name": "_depositor",
623
- "type": "address"
624
- }
625
- ],
626
- "name": "deposit",
627
- "outputs": [
628
- {
629
- "internalType": "uint256",
630
- "name": "",
631
- "type": "uint256"
632
- }
633
- ],
634
- "stateMutability": "nonpayable",
635
- "type": "function"
636
- },
637
- {
638
- "inputs": [],
639
- "name": "depositsClosed",
640
- "outputs": [
641
- {
642
- "internalType": "bool",
643
- "name": "",
644
- "type": "bool"
645
- }
646
- ],
647
- "stateMutability": "view",
648
- "type": "function"
649
- },
650
- {
651
- "inputs": [],
652
- "name": "disableDeposits",
653
- "outputs": [],
654
- "stateMutability": "nonpayable",
655
- "type": "function"
656
- },
657
- {
658
- "inputs": [],
659
- "name": "feeInPayout",
660
- "outputs": [
661
- {
662
- "internalType": "bool",
663
- "name": "",
664
- "type": "bool"
665
- }
666
- ],
667
- "stateMutability": "view",
668
- "type": "function"
669
- },
670
- {
671
- "inputs": [
672
- {
673
- "internalType": "uint256",
674
- "name": "",
675
- "type": "uint256"
676
- }
677
- ],
678
- "name": "feeTiers",
679
- "outputs": [
680
- {
681
- "internalType": "uint256",
682
- "name": "tierCeilings",
683
- "type": "uint256"
684
- },
685
- {
686
- "internalType": "uint256",
687
- "name": "fees",
688
- "type": "uint256"
689
- }
690
- ],
691
- "stateMutability": "view",
692
- "type": "function"
693
- },
694
- {
695
- "inputs": [],
696
- "name": "feeTo",
697
- "outputs": [
698
- {
699
- "internalType": "address",
700
- "name": "",
701
- "type": "address"
702
- }
703
- ],
704
- "stateMutability": "view",
705
- "type": "function"
706
- },
707
- {
708
- "inputs": [
709
- {
710
- "internalType": "address",
711
- "name": "user",
712
- "type": "address"
713
- }
714
- ],
715
- "name": "getBillIds",
716
- "outputs": [
717
- {
718
- "internalType": "uint256[]",
719
- "name": "",
720
- "type": "uint256[]"
721
- }
722
- ],
723
- "stateMutability": "view",
724
- "type": "function"
725
- },
726
- {
727
- "inputs": [
728
- {
729
- "internalType": "address",
730
- "name": "user",
731
- "type": "address"
732
- },
733
- {
734
- "internalType": "uint256",
735
- "name": "start",
736
- "type": "uint256"
737
- },
738
- {
739
- "internalType": "uint256",
740
- "name": "end",
741
- "type": "uint256"
742
- }
743
- ],
744
- "name": "getBillIdsInRange",
745
- "outputs": [
746
- {
747
- "internalType": "uint256[]",
748
- "name": "",
749
- "type": "uint256[]"
750
- }
751
- ],
752
- "stateMutability": "view",
753
- "type": "function"
754
- },
755
- {
756
- "inputs": [
757
- {
758
- "internalType": "uint256",
759
- "name": "billId",
760
- "type": "uint256"
761
- }
762
- ],
763
- "name": "getBillInfo",
764
- "outputs": [
765
- {
766
- "components": [
767
- {
768
- "internalType": "uint256",
769
- "name": "payout",
770
- "type": "uint256"
771
- },
772
- {
773
- "internalType": "uint256",
774
- "name": "depositAmount",
775
- "type": "uint256"
776
- },
777
- {
778
- "internalType": "uint256",
779
- "name": "payoutClaimed",
780
- "type": "uint256"
781
- },
782
- {
783
- "internalType": "uint256",
784
- "name": "vesting",
785
- "type": "uint256"
786
- },
787
- {
788
- "internalType": "uint256",
789
- "name": "vestingTerm",
790
- "type": "uint256"
791
- },
792
- {
793
- "internalType": "uint256",
794
- "name": "vestingStartTimestamp",
795
- "type": "uint256"
796
- },
797
- {
798
- "internalType": "uint256",
799
- "name": "lastClaimTimestamp",
800
- "type": "uint256"
801
- },
802
- {
803
- "internalType": "uint256",
804
- "name": "truePricePaid",
805
- "type": "uint256"
806
- }
807
- ],
808
- "internalType": "struct ICustomBillFixedPrice.Bill",
809
- "name": "",
810
- "type": "tuple"
811
- }
812
- ],
813
- "stateMutability": "view",
814
- "type": "function"
815
- },
816
- {
817
- "inputs": [],
818
- "name": "getFeeTierLength",
819
- "outputs": [
820
- {
821
- "internalType": "uint256",
822
- "name": "tierLength_",
823
- "type": "uint256"
824
- }
825
- ],
826
- "stateMutability": "view",
827
- "type": "function"
828
- },
829
- {
830
- "inputs": [],
831
- "name": "getMaxTotalPayout",
832
- "outputs": [
833
- {
834
- "internalType": "uint256",
835
- "name": "",
836
- "type": "uint256"
837
- }
838
- ],
839
- "stateMutability": "view",
840
- "type": "function"
841
- },
842
- {
843
- "inputs": [
844
- {
845
- "internalType": "bytes32",
846
- "name": "role",
847
- "type": "bytes32"
848
- }
849
- ],
850
- "name": "getRoleAdmin",
851
- "outputs": [
852
- {
853
- "internalType": "bytes32",
854
- "name": "",
855
- "type": "bytes32"
856
- }
857
- ],
858
- "stateMutability": "view",
859
- "type": "function"
860
- },
861
- {
862
- "inputs": [
863
- {
864
- "internalType": "bytes32",
865
- "name": "role",
866
- "type": "bytes32"
867
- },
868
- {
869
- "internalType": "uint256",
870
- "name": "index",
871
- "type": "uint256"
872
- }
873
- ],
874
- "name": "getRoleMember",
875
- "outputs": [
876
- {
877
- "internalType": "address",
878
- "name": "",
879
- "type": "address"
880
- }
881
- ],
882
- "stateMutability": "view",
883
- "type": "function"
884
- },
885
- {
886
- "inputs": [
887
- {
888
- "internalType": "bytes32",
889
- "name": "role",
890
- "type": "bytes32"
891
- }
892
- ],
893
- "name": "getRoleMemberCount",
894
- "outputs": [
895
- {
896
- "internalType": "uint256",
897
- "name": "",
898
- "type": "uint256"
899
- }
900
- ],
901
- "stateMutability": "view",
902
- "type": "function"
903
- },
904
- {
905
- "inputs": [
906
- {
907
- "internalType": "bytes32",
908
- "name": "role",
909
- "type": "bytes32"
910
- },
911
- {
912
- "internalType": "address",
913
- "name": "account",
914
- "type": "address"
915
- }
916
- ],
917
- "name": "grantRole",
918
- "outputs": [],
919
- "stateMutability": "nonpayable",
920
- "type": "function"
921
- },
922
- {
923
- "inputs": [
924
- {
925
- "internalType": "bytes32",
926
- "name": "role",
927
- "type": "bytes32"
928
- },
929
- {
930
- "internalType": "address",
931
- "name": "account",
932
- "type": "address"
933
- }
934
- ],
935
- "name": "hasRole",
936
- "outputs": [
937
- {
938
- "internalType": "bool",
939
- "name": "",
940
- "type": "bool"
941
- }
942
- ],
943
- "stateMutability": "view",
944
- "type": "function"
945
- },
946
- {
947
- "inputs": [
948
- {
949
- "internalType": "contract ICustomTreasury",
950
- "name": "_customTreasury",
951
- "type": "address"
952
- },
953
- {
954
- "components": [
955
- {
956
- "internalType": "address",
957
- "name": "payoutToken",
958
- "type": "address"
959
- },
960
- {
961
- "internalType": "address",
962
- "name": "principalToken",
963
- "type": "address"
964
- },
965
- {
966
- "internalType": "address",
967
- "name": "initialOwner",
968
- "type": "address"
969
- },
970
- {
971
- "internalType": "contract IVestingCurve",
972
- "name": "vestingCurve",
973
- "type": "address"
974
- },
975
- {
976
- "internalType": "uint256[]",
977
- "name": "tierCeilings",
978
- "type": "uint256[]"
979
- },
980
- {
981
- "internalType": "uint256[]",
982
- "name": "fees",
983
- "type": "uint256[]"
984
- },
985
- {
986
- "internalType": "uint256",
987
- "name": "startVestingTimestamp",
988
- "type": "uint256"
989
- },
990
- {
991
- "internalType": "bool",
992
- "name": "feeInPayout",
993
- "type": "bool"
994
- }
995
- ],
996
- "internalType": "struct ICustomBillFixedPrice.BillCreationDetails",
997
- "name": "_billCreationDetails",
998
- "type": "tuple"
999
- },
1000
- {
1001
- "components": [
1002
- {
1003
- "internalType": "uint256",
1004
- "name": "vestingTerm",
1005
- "type": "uint256"
1006
- },
1007
- {
1008
- "internalType": "uint256",
1009
- "name": "minimumPrice",
1010
- "type": "uint256"
1011
- },
1012
- {
1013
- "internalType": "uint256",
1014
- "name": "maxTotalPayout",
1015
- "type": "uint256"
1016
- }
1017
- ],
1018
- "internalType": "struct ICustomBillFixedPrice.BillTerms",
1019
- "name": "_billTerms",
1020
- "type": "tuple"
1021
- },
1022
- {
1023
- "components": [
1024
- {
1025
- "internalType": "address",
1026
- "name": "feeTo",
1027
- "type": "address"
1028
- },
1029
- {
1030
- "internalType": "address",
1031
- "name": "DAO",
1032
- "type": "address"
1033
- },
1034
- {
1035
- "internalType": "address",
1036
- "name": "billNft",
1037
- "type": "address"
1038
- }
1039
- ],
1040
- "internalType": "struct ICustomBillFixedPrice.BillAccounts",
1041
- "name": "_billAccounts",
1042
- "type": "tuple"
1043
- },
1044
- {
1045
- "internalType": "uint256",
1046
- "name": "_totalRewards",
1047
- "type": "uint256"
1048
- }
1049
- ],
1050
- "name": "initialize",
1051
- "outputs": [],
1052
- "stateMutability": "nonpayable",
1053
- "type": "function"
1054
- },
1055
- {
1056
- "inputs": [
1057
- {
1058
- "internalType": "contract ICustomTreasury",
1059
- "name": "_customTreasury",
1060
- "type": "address"
1061
- },
1062
- {
1063
- "components": [
1064
- {
1065
- "internalType": "address",
1066
- "name": "payoutToken",
1067
- "type": "address"
1068
- },
1069
- {
1070
- "internalType": "address",
1071
- "name": "principalToken",
1072
- "type": "address"
1073
- },
1074
- {
1075
- "internalType": "address",
1076
- "name": "initialOwner",
1077
- "type": "address"
1078
- },
1079
- {
1080
- "internalType": "contract IVestingCurve",
1081
- "name": "vestingCurve",
1082
- "type": "address"
1083
- },
1084
- {
1085
- "internalType": "uint256[]",
1086
- "name": "tierCeilings",
1087
- "type": "uint256[]"
1088
- },
1089
- {
1090
- "internalType": "uint256[]",
1091
- "name": "fees",
1092
- "type": "uint256[]"
1093
- },
1094
- {
1095
- "internalType": "uint256",
1096
- "name": "startVestingTimestamp",
1097
- "type": "uint256"
1098
- },
1099
- {
1100
- "internalType": "bool",
1101
- "name": "feeInPayout",
1102
- "type": "bool"
1103
- }
1104
- ],
1105
- "internalType": "struct ICustomBillFixedPrice.BillCreationDetails",
1106
- "name": "_billCreationDetails",
1107
- "type": "tuple"
1108
- },
1109
- {
1110
- "components": [
1111
- {
1112
- "internalType": "uint256",
1113
- "name": "vestingTerm",
1114
- "type": "uint256"
1115
- },
1116
- {
1117
- "internalType": "uint256",
1118
- "name": "minimumPrice",
1119
- "type": "uint256"
1120
- },
1121
- {
1122
- "internalType": "uint256",
1123
- "name": "maxTotalPayout",
1124
- "type": "uint256"
1125
- }
1126
- ],
1127
- "internalType": "struct ICustomBillFixedPrice.BillTerms",
1128
- "name": "_billTerms",
1129
- "type": "tuple"
1130
- },
1131
- {
1132
- "components": [
1133
- {
1134
- "internalType": "address",
1135
- "name": "feeTo",
1136
- "type": "address"
1137
- },
1138
- {
1139
- "internalType": "address",
1140
- "name": "DAO",
1141
- "type": "address"
1142
- },
1143
- {
1144
- "internalType": "address",
1145
- "name": "billNft",
1146
- "type": "address"
1147
- }
1148
- ],
1149
- "internalType": "struct ICustomBillFixedPrice.BillAccounts",
1150
- "name": "_billAccounts",
1151
- "type": "tuple"
1152
- }
1153
- ],
1154
- "name": "initialize",
1155
- "outputs": [],
1156
- "stateMutability": "nonpayable",
1157
- "type": "function"
1158
- },
1159
- {
1160
- "inputs": [],
1161
- "name": "owner",
1162
- "outputs": [
1163
- {
1164
- "internalType": "address",
1165
- "name": "",
1166
- "type": "address"
1167
- }
1168
- ],
1169
- "stateMutability": "view",
1170
- "type": "function"
1171
- },
1172
- {
1173
- "inputs": [
1174
- {
1175
- "internalType": "uint256",
1176
- "name": "_amount",
1177
- "type": "uint256"
1178
- }
1179
- ],
1180
- "name": "payoutFor",
1181
- "outputs": [
1182
- {
1183
- "internalType": "uint256",
1184
- "name": "_payout",
1185
- "type": "uint256"
1186
- },
1187
- {
1188
- "internalType": "uint256",
1189
- "name": "_fee",
1190
- "type": "uint256"
1191
- }
1192
- ],
1193
- "stateMutability": "view",
1194
- "type": "function"
1195
- },
1196
- {
1197
- "inputs": [],
1198
- "name": "payoutToken",
1199
- "outputs": [
1200
- {
1201
- "internalType": "contract IERC20MetadataUpgradeable",
1202
- "name": "",
1203
- "type": "address"
1204
- }
1205
- ],
1206
- "stateMutability": "view",
1207
- "type": "function"
1208
- },
1209
- {
1210
- "inputs": [],
1211
- "name": "pendingOwner",
1212
- "outputs": [
1213
- {
1214
- "internalType": "address",
1215
- "name": "",
1216
- "type": "address"
1217
- }
1218
- ],
1219
- "stateMutability": "view",
1220
- "type": "function"
1221
- },
1222
- {
1223
- "inputs": [
1224
- {
1225
- "internalType": "uint256",
1226
- "name": "_billId",
1227
- "type": "uint256"
1228
- }
1229
- ],
1230
- "name": "pendingPayout",
1231
- "outputs": [
1232
- {
1233
- "internalType": "uint256",
1234
- "name": "pendingPayout_",
1235
- "type": "uint256"
1236
- }
1237
- ],
1238
- "stateMutability": "view",
1239
- "type": "function"
1240
- },
1241
- {
1242
- "inputs": [
1243
- {
1244
- "internalType": "uint256",
1245
- "name": "_billId",
1246
- "type": "uint256"
1247
- }
1248
- ],
1249
- "name": "pendingVesting",
1250
- "outputs": [
1251
- {
1252
- "internalType": "uint256",
1253
- "name": "pendingVesting_",
1254
- "type": "uint256"
1255
- }
1256
- ],
1257
- "stateMutability": "view",
1258
- "type": "function"
1259
- },
1260
- {
1261
- "inputs": [],
1262
- "name": "principalToken",
1263
- "outputs": [
1264
- {
1265
- "internalType": "contract IERC20MetadataUpgradeable",
1266
- "name": "",
1267
- "type": "address"
1268
- }
1269
- ],
1270
- "stateMutability": "view",
1271
- "type": "function"
1272
- },
1273
- {
1274
- "inputs": [
1275
- {
1276
- "internalType": "uint256",
1277
- "name": "_billId",
1278
- "type": "uint256"
1279
- }
1280
- ],
1281
- "name": "redeem",
1282
- "outputs": [
1283
- {
1284
- "internalType": "uint256",
1285
- "name": "",
1286
- "type": "uint256"
1287
- }
1288
- ],
1289
- "stateMutability": "nonpayable",
1290
- "type": "function"
1291
- },
1292
- {
1293
- "inputs": [
1294
- {
1295
- "internalType": "address",
1296
- "name": "",
1297
- "type": "address"
1298
- },
1299
- {
1300
- "internalType": "address",
1301
- "name": "",
1302
- "type": "address"
1303
- }
1304
- ],
1305
- "name": "redeemerApproved",
1306
- "outputs": [
1307
- {
1308
- "internalType": "bool",
1309
- "name": "",
1310
- "type": "bool"
1311
- }
1312
- ],
1313
- "stateMutability": "view",
1314
- "type": "function"
1315
- },
1316
- {
1317
- "inputs": [],
1318
- "name": "renounceOwnership",
1319
- "outputs": [],
1320
- "stateMutability": "nonpayable",
1321
- "type": "function"
1322
- },
1323
- {
1324
- "inputs": [
1325
- {
1326
- "internalType": "bytes32",
1327
- "name": "role",
1328
- "type": "bytes32"
1329
- },
1330
- {
1331
- "internalType": "address",
1332
- "name": "account",
1333
- "type": "address"
1334
- }
1335
- ],
1336
- "name": "renounceRole",
1337
- "outputs": [],
1338
- "stateMutability": "nonpayable",
1339
- "type": "function"
1340
- },
1341
- {
1342
- "inputs": [
1343
- {
1344
- "internalType": "bytes32",
1345
- "name": "role",
1346
- "type": "bytes32"
1347
- },
1348
- {
1349
- "internalType": "address",
1350
- "name": "account",
1351
- "type": "address"
1352
- }
1353
- ],
1354
- "name": "revokeRole",
1355
- "outputs": [],
1356
- "stateMutability": "nonpayable",
1357
- "type": "function"
1358
- },
1359
- {
1360
- "inputs": [
1361
- {
1362
- "internalType": "enum CustomBillFixedPrice.PARAMETER",
1363
- "name": "_parameter",
1364
- "type": "uint8"
1365
- },
1366
- {
1367
- "internalType": "uint256",
1368
- "name": "_input",
1369
- "type": "uint256"
1370
- }
1371
- ],
1372
- "name": "setBillTerms",
1373
- "outputs": [],
1374
- "stateMutability": "nonpayable",
1375
- "type": "function"
1376
- },
1377
- {
1378
- "inputs": [
1379
- {
1380
- "internalType": "address",
1381
- "name": "approvedAccount",
1382
- "type": "address"
1383
- },
1384
- {
1385
- "internalType": "bool",
1386
- "name": "approved",
1387
- "type": "bool"
1388
- }
1389
- ],
1390
- "name": "setClaimApproval",
1391
- "outputs": [],
1392
- "stateMutability": "nonpayable",
1393
- "type": "function"
1394
- },
1395
- {
1396
- "inputs": [
1397
- {
1398
- "internalType": "uint256[]",
1399
- "name": "fees",
1400
- "type": "uint256[]"
1401
- },
1402
- {
1403
- "internalType": "uint256[]",
1404
- "name": "tierCeilings",
1405
- "type": "uint256[]"
1406
- }
1407
- ],
1408
- "name": "setFeeTiers",
1409
- "outputs": [],
1410
- "stateMutability": "nonpayable",
1411
- "type": "function"
1412
- },
1413
- {
1414
- "inputs": [
1415
- {
1416
- "internalType": "address",
1417
- "name": "newPendingOwner",
1418
- "type": "address"
1419
- }
1420
- ],
1421
- "name": "setPendingOwner",
1422
- "outputs": [],
1423
- "stateMutability": "nonpayable",
1424
- "type": "function"
1425
- },
1426
- {
1427
- "inputs": [],
1428
- "name": "startVestingTimestamp",
1429
- "outputs": [
1430
- {
1431
- "internalType": "uint256",
1432
- "name": "",
1433
- "type": "uint256"
1434
- }
1435
- ],
1436
- "stateMutability": "view",
1437
- "type": "function"
1438
- },
1439
- {
1440
- "inputs": [
1441
- {
1442
- "internalType": "bytes4",
1443
- "name": "interfaceId",
1444
- "type": "bytes4"
1445
- }
1446
- ],
1447
- "name": "supportsInterface",
1448
- "outputs": [
1449
- {
1450
- "internalType": "bool",
1451
- "name": "",
1452
- "type": "bool"
1453
- }
1454
- ],
1455
- "stateMutability": "view",
1456
- "type": "function"
1457
- },
1458
- {
1459
- "inputs": [],
1460
- "name": "terms",
1461
- "outputs": [
1462
- {
1463
- "internalType": "uint256",
1464
- "name": "vestingTerm",
1465
- "type": "uint256"
1466
- },
1467
- {
1468
- "internalType": "uint256",
1469
- "name": "minimumPrice",
1470
- "type": "uint256"
1471
- },
1472
- {
1473
- "internalType": "uint256",
1474
- "name": "maxTotalPayout",
1475
- "type": "uint256"
1476
- }
1477
- ],
1478
- "stateMutability": "view",
1479
- "type": "function"
1480
- },
1481
- {
1482
- "inputs": [],
1483
- "name": "totalPayoutGiven",
1484
- "outputs": [
1485
- {
1486
- "internalType": "uint256",
1487
- "name": "",
1488
- "type": "uint256"
1489
- }
1490
- ],
1491
- "stateMutability": "view",
1492
- "type": "function"
1493
- },
1494
- {
1495
- "inputs": [],
1496
- "name": "totalPrincipalBilled",
1497
- "outputs": [
1498
- {
1499
- "internalType": "uint256",
1500
- "name": "",
1501
- "type": "uint256"
1502
- }
1503
- ],
1504
- "stateMutability": "view",
1505
- "type": "function"
1506
- },
1507
- {
1508
- "inputs": [],
1509
- "name": "totalRewards",
1510
- "outputs": [
1511
- {
1512
- "internalType": "uint256",
1513
- "name": "",
1514
- "type": "uint256"
1515
- }
1516
- ],
1517
- "stateMutability": "view",
1518
- "type": "function"
1519
- },
1520
- {
1521
- "inputs": [
1522
- {
1523
- "internalType": "address",
1524
- "name": "",
1525
- "type": "address"
1526
- }
1527
- ],
1528
- "name": "transferOwnership",
1529
- "outputs": [],
1530
- "stateMutability": "view",
1531
- "type": "function"
1532
- },
1533
- {
1534
- "inputs": [],
1535
- "name": "trueBillPrice",
1536
- "outputs": [
1537
- {
1538
- "internalType": "uint256",
1539
- "name": "price_",
1540
- "type": "uint256"
1541
- }
1542
- ],
1543
- "stateMutability": "view",
1544
- "type": "function"
1545
- },
1546
- {
1547
- "inputs": [],
1548
- "name": "userBillIds",
1549
- "outputs": [
1550
- {
1551
- "internalType": "uint256[]",
1552
- "name": "",
1553
- "type": "uint256[]"
1554
- }
1555
- ],
1556
- "stateMutability": "view",
1557
- "type": "function"
1558
- },
1559
- {
1560
- "inputs": [
1561
- {
1562
- "internalType": "uint256",
1563
- "name": "_billId",
1564
- "type": "uint256"
1565
- },
1566
- {
1567
- "internalType": "uint256",
1568
- "name": "_timestamp",
1569
- "type": "uint256"
1570
- }
1571
- ],
1572
- "name": "vestedPayoutAtTime",
1573
- "outputs": [
1574
- {
1575
- "internalType": "uint256",
1576
- "name": "vestedPayout_",
1577
- "type": "uint256"
1578
- }
1579
- ],
1580
- "stateMutability": "view",
1581
- "type": "function"
1582
- },
1583
- {
1584
- "inputs": [],
1585
- "name": "vestingCurve",
1586
- "outputs": [
1587
- {
1588
- "internalType": "contract IVestingCurve",
1589
- "name": "",
1590
- "type": "address"
1591
- }
1592
- ],
1593
- "stateMutability": "view",
1594
- "type": "function"
1595
- },
1596
- {
1597
- "inputs": [
1598
- {
1599
- "internalType": "uint256",
1600
- "name": "_billId",
1601
- "type": "uint256"
1602
- }
1603
- ],
1604
- "name": "vestingPayout",
1605
- "outputs": [
1606
- {
1607
- "internalType": "uint256",
1608
- "name": "vestingPayout_",
1609
- "type": "uint256"
1610
- }
1611
- ],
1612
- "stateMutability": "view",
1613
- "type": "function"
1614
- },
1615
- {
1616
- "inputs": [
1617
- {
1618
- "internalType": "uint256",
1619
- "name": "_billId",
1620
- "type": "uint256"
1621
- }
1622
- ],
1623
- "name": "vestingPeriod",
1624
- "outputs": [
1625
- {
1626
- "internalType": "uint256",
1627
- "name": "vestingStart_",
1628
- "type": "uint256"
1629
- },
1630
- {
1631
- "internalType": "uint256",
1632
- "name": "vestingEnd_",
1633
- "type": "uint256"
1634
- }
1635
- ],
1636
- "stateMutability": "view",
1637
- "type": "function"
1638
- }
1639
- ]