@ape.swap/bonds-sdk 5.1.14 → 5.1.17

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.
@@ -1,19 +1,2120 @@
1
1
  var ABI_DEPOSIT_SIG = [
2
2
  {
3
3
  inputs: [
4
+ ],
5
+ name: "BondTooLarge",
6
+ type: "error"
7
+ },
8
+ {
9
+ inputs: [
10
+ ],
11
+ name: "BondTooSmall",
12
+ type: "error"
13
+ },
14
+ {
15
+ inputs: [
16
+ ],
17
+ name: "ControlVariableTooLow",
18
+ type: "error"
19
+ },
20
+ {
21
+ inputs: [
22
+ ],
23
+ name: "DebtMustBeZero",
24
+ type: "error"
25
+ },
26
+ {
27
+ inputs: [
28
+ ],
29
+ name: "DecrementTooLarge",
30
+ type: "error"
31
+ },
32
+ {
33
+ inputs: [
34
+ ],
35
+ name: "IncrementTooLarge",
36
+ type: "error"
37
+ },
38
+ {
39
+ inputs: [
40
+ ],
41
+ name: "InsufficientTier",
42
+ type: "error"
43
+ },
44
+ {
45
+ inputs: [
46
+ ],
47
+ name: "InvalidAddress",
48
+ type: "error"
49
+ },
50
+ {
51
+ inputs: [
52
+ ],
53
+ name: "InvalidBCV",
54
+ type: "error"
55
+ },
56
+ {
57
+ inputs: [
58
+ ],
59
+ name: "InvalidBondId",
60
+ type: "error"
61
+ },
62
+ {
63
+ inputs: [
64
+ ],
65
+ name: "InvalidExtraDiscount",
66
+ type: "error"
67
+ },
68
+ {
69
+ inputs: [
70
+ ],
71
+ name: "InvalidFee",
72
+ type: "error"
73
+ },
74
+ {
75
+ inputs: [
76
+ ],
77
+ name: "InvalidMinPoints",
78
+ type: "error"
79
+ },
80
+ {
81
+ inputs: [
82
+ ],
83
+ name: "InvalidPoints",
84
+ type: "error"
85
+ },
86
+ {
87
+ inputs: [
88
+ ],
89
+ name: "InvalidPointsLens",
90
+ type: "error"
91
+ },
92
+ {
93
+ inputs: [
94
+ ],
95
+ name: "InvalidSValue",
96
+ type: "error"
97
+ },
98
+ {
99
+ inputs: [
100
+ ],
101
+ name: "InvalidSignature",
102
+ type: "error"
103
+ },
104
+ {
105
+ inputs: [
106
+ ],
107
+ name: "InvalidSignatureLength",
108
+ type: "error"
109
+ },
110
+ {
111
+ inputs: [
112
+ ],
113
+ name: "InvalidUpdateInterval",
114
+ type: "error"
115
+ },
116
+ {
117
+ inputs: [
118
+ ],
119
+ name: "LengthMismatch",
120
+ type: "error"
121
+ },
122
+ {
123
+ inputs: [
124
+ ],
125
+ name: "MaxCapacityReached",
126
+ type: "error"
127
+ },
128
+ {
129
+ inputs: [
130
+ ],
131
+ name: "MaxTotalPayoutExceeded",
132
+ type: "error"
133
+ },
134
+ {
135
+ inputs: [
136
+ ],
137
+ name: "NoTierAccess",
138
+ type: "error"
139
+ },
140
+ {
141
+ inputs: [
142
+ ],
143
+ name: "NotApproved",
144
+ type: "error"
145
+ },
146
+ {
147
+ inputs: [
148
+ ],
149
+ name: "NothingToClaim",
150
+ type: "error"
151
+ },
152
+ {
153
+ inputs: [
154
+ ],
155
+ name: "PayoutTokenAddressMismatch",
156
+ type: "error"
157
+ },
158
+ {
159
+ inputs: [
160
+ ],
161
+ name: "SignatureExpired",
162
+ type: "error"
163
+ },
164
+ {
165
+ inputs: [
166
+ ],
167
+ name: "SlippageExceeded",
168
+ type: "error"
169
+ },
170
+ {
171
+ inputs: [
172
+ ],
173
+ name: "TargetMustBeAboveZero",
174
+ type: "error"
175
+ },
176
+ {
177
+ inputs: [
178
+ ],
179
+ name: "Unauthorized",
180
+ type: "error"
181
+ },
182
+ {
183
+ inputs: [
184
+ ],
185
+ name: "UnauthorizedSigner",
186
+ type: "error"
187
+ },
188
+ {
189
+ inputs: [
190
+ ],
191
+ name: "UpdateIntervalNotElapsed",
192
+ type: "error"
193
+ },
194
+ {
195
+ inputs: [
196
+ ],
197
+ name: "VestingTooShort",
198
+ type: "error"
199
+ },
200
+ {
201
+ inputs: [
202
+ ],
203
+ name: "ZeroAddress",
204
+ type: "error"
205
+ },
206
+ {
207
+ inputs: [
208
+ ],
209
+ name: "ZeroSignatureLength",
210
+ type: "error"
211
+ },
212
+ {
213
+ anonymous: false,
214
+ inputs: [
215
+ {
216
+ indexed: false,
217
+ internalType: "uint256",
218
+ name: "minBCVUpdateInterval",
219
+ type: "uint256"
220
+ }
221
+ ],
222
+ name: "BCVUpdateIntervalChanged",
223
+ type: "event"
224
+ },
225
+ {
226
+ anonymous: false,
227
+ inputs: [
228
+ {
229
+ indexed: true,
230
+ internalType: "uint256",
231
+ name: "billId",
232
+ type: "uint256"
233
+ },
234
+ {
235
+ indexed: true,
236
+ internalType: "address",
237
+ name: "recipient",
238
+ type: "address"
239
+ },
240
+ {
241
+ indexed: false,
242
+ internalType: "uint256",
243
+ name: "payout",
244
+ type: "uint256"
245
+ },
246
+ {
247
+ indexed: false,
248
+ internalType: "uint256",
249
+ name: "remaining",
250
+ type: "uint256"
251
+ }
252
+ ],
253
+ name: "BillClaimed",
254
+ type: "event"
255
+ },
256
+ {
257
+ anonymous: false,
258
+ inputs: [
259
+ {
260
+ indexed: false,
261
+ internalType: "uint256",
262
+ name: "deposit",
263
+ type: "uint256"
264
+ },
265
+ {
266
+ indexed: false,
267
+ internalType: "uint256",
268
+ name: "payout",
269
+ type: "uint256"
270
+ },
271
+ {
272
+ indexed: false,
273
+ internalType: "uint256",
274
+ name: "expires",
275
+ type: "uint256"
276
+ },
277
+ {
278
+ indexed: true,
279
+ internalType: "uint256",
280
+ name: "billId",
281
+ type: "uint256"
282
+ }
283
+ ],
284
+ name: "BillCreated",
285
+ type: "event"
286
+ },
287
+ {
288
+ anonymous: false,
289
+ inputs: [
290
+ {
291
+ components: [
292
+ {
293
+ internalType: "uint256",
294
+ name: "controlVariable",
295
+ type: "uint256"
296
+ },
297
+ {
298
+ internalType: "uint256",
299
+ name: "vestingTerm",
300
+ type: "uint256"
301
+ },
302
+ {
303
+ internalType: "uint256",
304
+ name: "minimumPrice",
305
+ type: "uint256"
306
+ },
307
+ {
308
+ internalType: "uint256",
309
+ name: "maxPayout",
310
+ type: "uint256"
311
+ },
312
+ {
313
+ internalType: "uint256",
314
+ name: "maxDebt",
315
+ type: "uint256"
316
+ },
317
+ {
318
+ internalType: "uint256",
319
+ name: "maxTotalPayout",
320
+ type: "uint256"
321
+ },
322
+ {
323
+ internalType: "uint256",
324
+ name: "initialDebt",
325
+ type: "uint256"
326
+ }
327
+ ],
328
+ indexed: false,
329
+ internalType: "struct IApeBond.BondTerms",
330
+ name: "billTerms",
331
+ type: "tuple"
332
+ },
333
+ {
334
+ indexed: false,
335
+ internalType: "uint256",
336
+ name: "lastDecay",
337
+ type: "uint256"
338
+ }
339
+ ],
340
+ name: "BillInitialized",
341
+ type: "event"
342
+ },
343
+ {
344
+ anonymous: false,
345
+ inputs: [
346
+ {
347
+ indexed: false,
348
+ internalType: "uint256",
349
+ name: "internalPrice",
350
+ type: "uint256"
351
+ },
352
+ {
353
+ indexed: false,
354
+ internalType: "uint256",
355
+ name: "debtRatio",
356
+ type: "uint256"
357
+ }
358
+ ],
359
+ name: "BondPriceChanged",
360
+ type: "event"
361
+ },
362
+ {
363
+ anonymous: false,
364
+ inputs: [
365
+ {
366
+ indexed: false,
367
+ internalType: "uint256",
368
+ name: "initialBCV",
369
+ type: "uint256"
370
+ },
371
+ {
372
+ indexed: false,
373
+ internalType: "uint256",
374
+ name: "newBCV",
375
+ type: "uint256"
376
+ }
377
+ ],
378
+ name: "ControlVariableAdjustment",
379
+ type: "event"
380
+ },
381
+ {
382
+ anonymous: false,
383
+ inputs: [
384
+ {
385
+ indexed: false,
386
+ internalType: "address",
387
+ name: "oldFeeInPrincipalRecipient",
388
+ type: "address"
389
+ },
390
+ {
391
+ indexed: false,
392
+ internalType: "address",
393
+ name: "newFeeInPrincipalRecipient",
394
+ type: "address"
395
+ },
396
+ {
397
+ indexed: false,
398
+ internalType: "address",
399
+ name: "oldFeeInPayoutRecipient",
400
+ type: "address"
401
+ },
402
+ {
403
+ indexed: false,
404
+ internalType: "address",
405
+ name: "newFeeInPayoutRecipient",
406
+ type: "address"
407
+ }
408
+ ],
409
+ name: "FeeRecipientsChanged",
410
+ type: "event"
411
+ },
412
+ {
413
+ anonymous: false,
414
+ inputs: [
415
+ {
416
+ indexed: false,
417
+ internalType: "uint8",
418
+ name: "version",
419
+ type: "uint8"
420
+ }
421
+ ],
422
+ name: "Initialized",
423
+ type: "event"
424
+ },
425
+ {
426
+ anonymous: false,
427
+ inputs: [
428
+ {
429
+ indexed: false,
430
+ internalType: "uint256",
431
+ name: "newMaxTotalPayout",
432
+ type: "uint256"
433
+ }
434
+ ],
435
+ name: "MaxTotalPayoutChanged",
436
+ type: "event"
437
+ },
438
+ {
439
+ anonymous: false,
440
+ inputs: [
441
+ {
442
+ indexed: false,
443
+ internalType: "uint256",
444
+ name: "minBCVUpdateInterval",
445
+ type: "uint256"
446
+ }
447
+ ],
448
+ name: "MinBCVUpdateIntervalChanged",
449
+ type: "event"
450
+ },
451
+ {
452
+ anonymous: false,
453
+ inputs: [
454
+ {
455
+ indexed: true,
456
+ internalType: "address",
457
+ name: "previousOwner",
458
+ type: "address"
459
+ },
460
+ {
461
+ indexed: true,
462
+ internalType: "address",
463
+ name: "newOwner",
464
+ type: "address"
465
+ }
466
+ ],
467
+ name: "OwnershipTransferred",
468
+ type: "event"
469
+ },
470
+ {
471
+ anonymous: false,
472
+ inputs: [
473
+ {
474
+ indexed: false,
475
+ internalType: "address",
476
+ name: "account",
477
+ type: "address"
478
+ }
479
+ ],
480
+ name: "Paused",
481
+ type: "event"
482
+ },
483
+ {
484
+ anonymous: false,
485
+ inputs: [
486
+ {
487
+ indexed: true,
488
+ internalType: "bytes32",
489
+ name: "role",
490
+ type: "bytes32"
491
+ },
492
+ {
493
+ indexed: true,
494
+ internalType: "bytes32",
495
+ name: "previousAdminRole",
496
+ type: "bytes32"
497
+ },
498
+ {
499
+ indexed: true,
500
+ internalType: "bytes32",
501
+ name: "newAdminRole",
502
+ type: "bytes32"
503
+ }
504
+ ],
505
+ name: "RoleAdminChanged",
506
+ type: "event"
507
+ },
508
+ {
509
+ anonymous: false,
510
+ inputs: [
511
+ {
512
+ indexed: true,
513
+ internalType: "bytes32",
514
+ name: "role",
515
+ type: "bytes32"
516
+ },
517
+ {
518
+ indexed: true,
519
+ internalType: "address",
520
+ name: "account",
521
+ type: "address"
522
+ },
523
+ {
524
+ indexed: true,
525
+ internalType: "address",
526
+ name: "sender",
527
+ type: "address"
528
+ }
529
+ ],
530
+ name: "RoleGranted",
531
+ type: "event"
532
+ },
533
+ {
534
+ anonymous: false,
535
+ inputs: [
536
+ {
537
+ indexed: true,
538
+ internalType: "bytes32",
539
+ name: "role",
540
+ type: "bytes32"
541
+ },
542
+ {
543
+ indexed: true,
544
+ internalType: "address",
545
+ name: "account",
546
+ type: "address"
547
+ },
548
+ {
549
+ indexed: true,
550
+ internalType: "address",
551
+ name: "sender",
552
+ type: "address"
553
+ }
554
+ ],
555
+ name: "RoleRevoked",
556
+ type: "event"
557
+ },
558
+ {
559
+ anonymous: false,
560
+ inputs: [
561
+ {
562
+ indexed: false,
563
+ internalType: "uint256",
564
+ name: "principalFee",
565
+ type: "uint256"
566
+ },
567
+ {
568
+ indexed: false,
569
+ internalType: "uint256",
570
+ name: "payoutFee",
571
+ type: "uint256"
572
+ }
573
+ ],
574
+ name: "SetFee",
575
+ type: "event"
576
+ },
577
+ {
578
+ anonymous: false,
579
+ inputs: [
580
+ {
581
+ indexed: false,
582
+ internalType: "bool",
583
+ name: "_active",
584
+ type: "bool"
585
+ },
586
+ {
587
+ indexed: false,
588
+ internalType: "address",
589
+ name: "_pointsLens",
590
+ type: "address"
591
+ },
592
+ {
593
+ indexed: false,
594
+ internalType: "address",
595
+ name: "_authorizedSigner",
596
+ type: "address"
597
+ },
598
+ {
599
+ indexed: false,
600
+ internalType: "uint256",
601
+ name: "_minPoints",
602
+ type: "uint256"
603
+ }
604
+ ],
605
+ name: "SetTierAccessExtensionData",
606
+ type: "event"
607
+ },
608
+ {
609
+ anonymous: false,
610
+ inputs: [
611
+ {
612
+ indexed: false,
613
+ internalType: "bool",
614
+ name: "_active",
615
+ type: "bool"
616
+ },
617
+ {
618
+ indexed: false,
619
+ internalType: "address",
620
+ name: "_pointsLens",
621
+ type: "address"
622
+ },
623
+ {
624
+ indexed: false,
625
+ internalType: "address",
626
+ name: "_authorizedSigner",
627
+ type: "address"
628
+ },
629
+ {
630
+ indexed: false,
631
+ internalType: "uint256[]",
632
+ name: "_points",
633
+ type: "uint256[]"
634
+ },
635
+ {
636
+ indexed: false,
637
+ internalType: "uint256[]",
638
+ name: "_extraDiscount",
639
+ type: "uint256[]"
640
+ }
641
+ ],
642
+ name: "SetTierBoostedDiscountExtensionData",
643
+ type: "event"
644
+ },
645
+ {
646
+ anonymous: false,
647
+ inputs: [
648
+ {
649
+ indexed: false,
650
+ internalType: "enum ApeBond.PARAMETER",
651
+ name: "parameter",
652
+ type: "uint8"
653
+ },
654
+ {
655
+ indexed: false,
656
+ internalType: "uint256",
657
+ name: "input",
658
+ type: "uint256"
659
+ }
660
+ ],
661
+ name: "TermsSet",
662
+ type: "event"
663
+ },
664
+ {
665
+ anonymous: false,
666
+ inputs: [
667
+ {
668
+ indexed: false,
669
+ internalType: "address",
670
+ name: "account",
671
+ type: "address"
672
+ }
673
+ ],
674
+ name: "Unpaused",
675
+ type: "event"
676
+ },
677
+ {
678
+ anonymous: false,
679
+ inputs: [
680
+ {
681
+ indexed: true,
682
+ internalType: "address",
683
+ name: "owner",
684
+ type: "address"
685
+ },
686
+ {
687
+ indexed: true,
688
+ internalType: "address",
689
+ name: "approvedAccount",
690
+ type: "address"
691
+ },
692
+ {
693
+ indexed: false,
694
+ internalType: "bool",
695
+ name: "approved",
696
+ type: "bool"
697
+ }
698
+ ],
699
+ name: "UpdateClaimApproval",
700
+ type: "event"
701
+ },
702
+ {
703
+ inputs: [
704
+ ],
705
+ name: "AUTOMATION_ROLE",
706
+ outputs: [
707
+ {
708
+ internalType: "bytes32",
709
+ name: "",
710
+ type: "bytes32"
711
+ }
712
+ ],
713
+ stateMutability: "view",
714
+ type: "function"
715
+ },
716
+ {
717
+ inputs: [
718
+ ],
719
+ name: "DEFAULT_ADMIN_ROLE",
720
+ outputs: [
721
+ {
722
+ internalType: "bytes32",
723
+ name: "",
724
+ type: "bytes32"
725
+ }
726
+ ],
727
+ stateMutability: "view",
728
+ type: "function"
729
+ },
730
+ {
731
+ inputs: [
732
+ ],
733
+ name: "DOMAIN_SEPARATOR",
734
+ outputs: [
735
+ {
736
+ internalType: "bytes32",
737
+ name: "",
738
+ type: "bytes32"
739
+ }
740
+ ],
741
+ stateMutability: "view",
742
+ type: "function"
743
+ },
744
+ {
745
+ inputs: [
746
+ ],
747
+ name: "OPERATIONS_ROLE",
748
+ outputs: [
749
+ {
750
+ internalType: "bytes32",
751
+ name: "",
752
+ type: "bytes32"
753
+ }
754
+ ],
755
+ stateMutability: "view",
756
+ type: "function"
757
+ },
758
+ {
759
+ inputs: [
760
+ ],
761
+ name: "PERCENTAGE_BASE",
762
+ outputs: [
763
+ {
764
+ internalType: "uint256",
765
+ name: "",
766
+ type: "uint256"
767
+ }
768
+ ],
769
+ stateMutability: "view",
770
+ type: "function"
771
+ },
772
+ {
773
+ inputs: [
774
+ ],
775
+ name: "TIER_PROOF_TYPEHASH",
776
+ outputs: [
777
+ {
778
+ internalType: "bytes32",
779
+ name: "",
780
+ type: "bytes32"
781
+ }
782
+ ],
783
+ stateMutability: "view",
784
+ type: "function"
785
+ },
786
+ {
787
+ inputs: [
788
+ ],
789
+ name: "VERSION",
790
+ outputs: [
791
+ {
792
+ internalType: "string",
793
+ name: "",
794
+ type: "string"
795
+ }
796
+ ],
797
+ stateMutability: "view",
798
+ type: "function"
799
+ },
800
+ {
801
+ inputs: [
802
+ ],
803
+ name: "allIssuedBillIds",
804
+ outputs: [
805
+ {
806
+ internalType: "uint256[]",
807
+ name: "",
808
+ type: "uint256[]"
809
+ }
810
+ ],
811
+ stateMutability: "view",
812
+ type: "function"
813
+ },
814
+ {
815
+ inputs: [
816
+ {
817
+ internalType: "uint256[]",
818
+ name: "_billIds",
819
+ type: "uint256[]"
820
+ }
821
+ ],
822
+ name: "batchClaim",
823
+ outputs: [
824
+ {
825
+ internalType: "uint256",
826
+ name: "payout",
827
+ type: "uint256"
828
+ }
829
+ ],
830
+ stateMutability: "nonpayable",
831
+ type: "function"
832
+ },
833
+ {
834
+ inputs: [
835
+ {
836
+ internalType: "uint256[]",
837
+ name: "_billIds",
838
+ type: "uint256[]"
839
+ }
840
+ ],
841
+ name: "batchRedeem",
842
+ outputs: [
843
+ {
844
+ internalType: "uint256",
845
+ name: "payout",
846
+ type: "uint256"
847
+ }
848
+ ],
849
+ stateMutability: "nonpayable",
850
+ type: "function"
851
+ },
852
+ {
853
+ inputs: [
854
+ {
855
+ internalType: "uint256",
856
+ name: "",
857
+ type: "uint256"
858
+ }
859
+ ],
860
+ name: "billInfo",
861
+ outputs: [
862
+ {
863
+ internalType: "uint256",
864
+ name: "payout",
865
+ type: "uint256"
866
+ },
867
+ {
868
+ internalType: "uint256",
869
+ name: "payoutClaimed",
870
+ type: "uint256"
871
+ },
872
+ {
873
+ internalType: "uint256",
874
+ name: "vesting",
875
+ type: "uint256"
876
+ },
877
+ {
878
+ internalType: "uint256",
879
+ name: "vestingTerm",
880
+ type: "uint256"
881
+ },
882
+ {
883
+ internalType: "uint256",
884
+ name: "vestingStartTimestamp",
885
+ type: "uint256"
886
+ },
887
+ {
888
+ internalType: "uint256",
889
+ name: "lastClaimTimestamp",
890
+ type: "uint256"
891
+ },
892
+ {
893
+ internalType: "uint256",
894
+ name: "truePricePaid",
895
+ type: "uint256"
896
+ }
897
+ ],
898
+ stateMutability: "view",
899
+ type: "function"
900
+ },
901
+ {
902
+ inputs: [
903
+ ],
904
+ name: "billNft",
905
+ outputs: [
906
+ {
907
+ internalType: "contract IBondNft",
908
+ name: "",
909
+ type: "address"
910
+ }
911
+ ],
912
+ stateMutability: "view",
913
+ type: "function"
914
+ },
915
+ {
916
+ inputs: [
917
+ {
918
+ internalType: "bytes",
919
+ name: "_tierProofSignature",
920
+ type: "bytes"
921
+ },
922
+ {
923
+ internalType: "address",
924
+ name: "_user",
925
+ type: "address"
926
+ }
927
+ ],
928
+ name: "billPrice",
929
+ outputs: [
930
+ {
931
+ internalType: "uint256",
932
+ name: "_price",
933
+ type: "uint256"
934
+ }
935
+ ],
936
+ stateMutability: "view",
937
+ type: "function"
938
+ },
939
+ {
940
+ inputs: [
941
+ {
942
+ internalType: "uint256",
943
+ name: "_billId",
944
+ type: "uint256"
945
+ }
946
+ ],
947
+ name: "claim",
948
+ outputs: [
949
+ {
950
+ internalType: "uint256",
951
+ name: "",
952
+ type: "uint256"
953
+ }
954
+ ],
955
+ stateMutability: "nonpayable",
956
+ type: "function"
957
+ },
958
+ {
959
+ inputs: [
960
+ {
961
+ internalType: "uint256",
962
+ name: "_billId",
963
+ type: "uint256"
964
+ }
965
+ ],
966
+ name: "claimablePayout",
967
+ outputs: [
968
+ {
969
+ internalType: "uint256",
970
+ name: "claimablePayout_",
971
+ type: "uint256"
972
+ }
973
+ ],
974
+ stateMutability: "view",
975
+ type: "function"
976
+ },
977
+ {
978
+ inputs: [
979
+ ],
980
+ name: "currentDebt",
981
+ outputs: [
982
+ {
983
+ internalType: "uint256",
984
+ name: "",
985
+ type: "uint256"
986
+ }
987
+ ],
988
+ stateMutability: "view",
989
+ type: "function"
990
+ },
991
+ {
992
+ inputs: [
993
+ ],
994
+ name: "customTreasury",
995
+ outputs: [
996
+ {
997
+ internalType: "contract IBondTreasury",
998
+ name: "",
999
+ type: "address"
1000
+ }
1001
+ ],
1002
+ stateMutability: "view",
1003
+ type: "function"
1004
+ },
1005
+ {
1006
+ inputs: [
1007
+ ],
1008
+ name: "debtDecay",
1009
+ outputs: [
1010
+ {
1011
+ internalType: "uint256",
1012
+ name: "decay_",
1013
+ type: "uint256"
1014
+ }
1015
+ ],
1016
+ stateMutability: "view",
1017
+ type: "function"
1018
+ },
1019
+ {
1020
+ inputs: [
1021
+ ],
1022
+ name: "debtRatio",
1023
+ outputs: [
1024
+ {
1025
+ internalType: "uint256",
1026
+ name: "debtRatio_",
1027
+ type: "uint256"
1028
+ }
1029
+ ],
1030
+ stateMutability: "view",
1031
+ type: "function"
1032
+ },
1033
+ {
1034
+ inputs: [
1035
+ {
1036
+ internalType: "uint256",
1037
+ name: "_amount",
1038
+ type: "uint256"
1039
+ },
1040
+ {
1041
+ internalType: "uint256",
1042
+ name: "_maxPrice",
1043
+ type: "uint256"
1044
+ },
1045
+ {
1046
+ internalType: "address",
1047
+ name: "_depositor",
1048
+ type: "address"
1049
+ },
1050
+ {
1051
+ internalType: "bytes",
1052
+ name: "_tierProofSignature",
1053
+ type: "bytes"
1054
+ }
1055
+ ],
1056
+ name: "deposit",
1057
+ outputs: [
1058
+ {
1059
+ internalType: "uint256",
1060
+ name: "",
1061
+ type: "uint256"
1062
+ }
1063
+ ],
1064
+ stateMutability: "nonpayable",
1065
+ type: "function"
1066
+ },
1067
+ {
1068
+ inputs: [
1069
+ ],
1070
+ name: "feeInPayout",
1071
+ outputs: [
1072
+ {
1073
+ internalType: "uint256",
1074
+ name: "",
1075
+ type: "uint256"
1076
+ }
1077
+ ],
1078
+ stateMutability: "view",
1079
+ type: "function"
1080
+ },
1081
+ {
1082
+ inputs: [
1083
+ ],
1084
+ name: "feeInPayoutRecipient",
1085
+ outputs: [
1086
+ {
1087
+ internalType: "address",
1088
+ name: "",
1089
+ type: "address"
1090
+ }
1091
+ ],
1092
+ stateMutability: "view",
1093
+ type: "function"
1094
+ },
1095
+ {
1096
+ inputs: [
1097
+ ],
1098
+ name: "feeInPrincipal",
1099
+ outputs: [
1100
+ {
1101
+ internalType: "uint256",
1102
+ name: "",
1103
+ type: "uint256"
1104
+ }
1105
+ ],
1106
+ stateMutability: "view",
1107
+ type: "function"
1108
+ },
1109
+ {
1110
+ inputs: [
1111
+ ],
1112
+ name: "feeInPrincipalRecipient",
1113
+ outputs: [
1114
+ {
1115
+ internalType: "address",
1116
+ name: "",
1117
+ type: "address"
1118
+ }
1119
+ ],
1120
+ stateMutability: "view",
1121
+ type: "function"
1122
+ },
1123
+ {
1124
+ inputs: [
1125
+ {
1126
+ internalType: "address",
1127
+ name: "user",
1128
+ type: "address"
1129
+ }
1130
+ ],
1131
+ name: "getBillIds",
1132
+ outputs: [
1133
+ {
1134
+ internalType: "uint256[]",
1135
+ name: "",
1136
+ type: "uint256[]"
1137
+ }
1138
+ ],
1139
+ stateMutability: "view",
1140
+ type: "function"
1141
+ },
1142
+ {
1143
+ inputs: [
1144
+ {
1145
+ internalType: "address",
1146
+ name: "user",
1147
+ type: "address"
1148
+ },
1149
+ {
1150
+ internalType: "uint256",
1151
+ name: "start",
1152
+ type: "uint256"
1153
+ },
1154
+ {
1155
+ internalType: "uint256",
1156
+ name: "end",
1157
+ type: "uint256"
1158
+ }
1159
+ ],
1160
+ name: "getBillIdsInRange",
1161
+ outputs: [
1162
+ {
1163
+ internalType: "uint256[]",
1164
+ name: "",
1165
+ type: "uint256[]"
1166
+ }
1167
+ ],
1168
+ stateMutability: "view",
1169
+ type: "function"
1170
+ },
1171
+ {
1172
+ inputs: [
1173
+ {
1174
+ internalType: "uint256",
1175
+ name: "billId",
1176
+ type: "uint256"
1177
+ }
1178
+ ],
1179
+ name: "getBillInfo",
1180
+ outputs: [
1181
+ {
1182
+ components: [
1183
+ {
1184
+ internalType: "uint256",
1185
+ name: "payout",
1186
+ type: "uint256"
1187
+ },
1188
+ {
1189
+ internalType: "uint256",
1190
+ name: "payoutClaimed",
1191
+ type: "uint256"
1192
+ },
1193
+ {
1194
+ internalType: "uint256",
1195
+ name: "vesting",
1196
+ type: "uint256"
1197
+ },
1198
+ {
1199
+ internalType: "uint256",
1200
+ name: "vestingTerm",
1201
+ type: "uint256"
1202
+ },
1203
+ {
1204
+ internalType: "uint256",
1205
+ name: "vestingStartTimestamp",
1206
+ type: "uint256"
1207
+ },
1208
+ {
1209
+ internalType: "uint256",
1210
+ name: "lastClaimTimestamp",
1211
+ type: "uint256"
1212
+ },
1213
+ {
1214
+ internalType: "uint256",
1215
+ name: "truePricePaid",
1216
+ type: "uint256"
1217
+ }
1218
+ ],
1219
+ internalType: "struct IApeBond.Bill",
1220
+ name: "",
1221
+ type: "tuple"
1222
+ }
1223
+ ],
1224
+ stateMutability: "view",
1225
+ type: "function"
1226
+ },
1227
+ {
1228
+ inputs: [
1229
+ ],
1230
+ name: "getMaxTotalPayout",
1231
+ outputs: [
1232
+ {
1233
+ internalType: "uint256",
1234
+ name: "",
1235
+ type: "uint256"
1236
+ }
1237
+ ],
1238
+ stateMutability: "view",
1239
+ type: "function"
1240
+ },
1241
+ {
1242
+ inputs: [
1243
+ {
1244
+ internalType: "bytes32",
1245
+ name: "role",
1246
+ type: "bytes32"
1247
+ }
1248
+ ],
1249
+ name: "getRoleAdmin",
1250
+ outputs: [
1251
+ {
1252
+ internalType: "bytes32",
1253
+ name: "",
1254
+ type: "bytes32"
1255
+ }
1256
+ ],
1257
+ stateMutability: "view",
1258
+ type: "function"
1259
+ },
1260
+ {
1261
+ inputs: [
1262
+ {
1263
+ internalType: "bytes32",
1264
+ name: "role",
1265
+ type: "bytes32"
1266
+ },
1267
+ {
1268
+ internalType: "uint256",
1269
+ name: "index",
1270
+ type: "uint256"
1271
+ }
1272
+ ],
1273
+ name: "getRoleMember",
1274
+ outputs: [
1275
+ {
1276
+ internalType: "address",
1277
+ name: "",
1278
+ type: "address"
1279
+ }
1280
+ ],
1281
+ stateMutability: "view",
1282
+ type: "function"
1283
+ },
1284
+ {
1285
+ inputs: [
1286
+ {
1287
+ internalType: "bytes32",
1288
+ name: "role",
1289
+ type: "bytes32"
1290
+ }
1291
+ ],
1292
+ name: "getRoleMemberCount",
1293
+ outputs: [
1294
+ {
1295
+ internalType: "uint256",
1296
+ name: "",
1297
+ type: "uint256"
1298
+ }
1299
+ ],
1300
+ stateMutability: "view",
1301
+ type: "function"
1302
+ },
1303
+ {
1304
+ inputs: [
1305
+ {
1306
+ internalType: "bytes32",
1307
+ name: "role",
1308
+ type: "bytes32"
1309
+ },
1310
+ {
1311
+ internalType: "address",
1312
+ name: "account",
1313
+ type: "address"
1314
+ }
1315
+ ],
1316
+ name: "grantRole",
1317
+ outputs: [
1318
+ ],
1319
+ stateMutability: "nonpayable",
1320
+ type: "function"
1321
+ },
1322
+ {
1323
+ inputs: [
1324
+ {
1325
+ internalType: "bytes32",
1326
+ name: "role",
1327
+ type: "bytes32"
1328
+ },
1329
+ {
1330
+ internalType: "address",
1331
+ name: "account",
1332
+ type: "address"
1333
+ }
1334
+ ],
1335
+ name: "hasRole",
1336
+ outputs: [
1337
+ {
1338
+ internalType: "bool",
1339
+ name: "",
1340
+ type: "bool"
1341
+ }
1342
+ ],
1343
+ stateMutability: "view",
1344
+ type: "function"
1345
+ },
1346
+ {
1347
+ inputs: [
1348
+ {
1349
+ internalType: "address",
1350
+ name: "_user",
1351
+ type: "address"
1352
+ },
1353
+ {
1354
+ internalType: "bytes",
1355
+ name: "_tierProofSignature",
1356
+ type: "bytes"
1357
+ }
1358
+ ],
1359
+ name: "hasTierAccess",
1360
+ outputs: [
1361
+ {
1362
+ internalType: "bool",
1363
+ name: "",
1364
+ type: "bool"
1365
+ }
1366
+ ],
1367
+ stateMutability: "view",
1368
+ type: "function"
1369
+ },
1370
+ {
1371
+ inputs: [
1372
+ {
1373
+ internalType: "contract IBondTreasury",
1374
+ name: "_customTreasury",
1375
+ type: "address"
1376
+ },
1377
+ {
1378
+ components: [
1379
+ {
1380
+ internalType: "address",
1381
+ name: "payoutToken",
1382
+ type: "address"
1383
+ },
1384
+ {
1385
+ internalType: "address",
1386
+ name: "principalToken",
1387
+ type: "address"
1388
+ },
1389
+ {
1390
+ internalType: "address",
1391
+ name: "initialOwner",
1392
+ type: "address"
1393
+ },
1394
+ {
1395
+ internalType: "contract IVestingCurve",
1396
+ name: "vestingCurve",
1397
+ type: "address"
1398
+ },
1399
+ {
1400
+ internalType: "uint256",
1401
+ name: "feeInPrincipal",
1402
+ type: "uint256"
1403
+ },
1404
+ {
1405
+ internalType: "uint256",
1406
+ name: "feeInPayout",
1407
+ type: "uint256"
1408
+ }
1409
+ ],
1410
+ internalType: "struct IApeBond.BondCreationDetails",
1411
+ name: "_billCreationDetails",
1412
+ type: "tuple"
1413
+ },
1414
+ {
1415
+ components: [
1416
+ {
1417
+ internalType: "uint256",
1418
+ name: "controlVariable",
1419
+ type: "uint256"
1420
+ },
1421
+ {
1422
+ internalType: "uint256",
1423
+ name: "vestingTerm",
1424
+ type: "uint256"
1425
+ },
1426
+ {
1427
+ internalType: "uint256",
1428
+ name: "minimumPrice",
1429
+ type: "uint256"
1430
+ },
1431
+ {
1432
+ internalType: "uint256",
1433
+ name: "maxPayout",
1434
+ type: "uint256"
1435
+ },
1436
+ {
1437
+ internalType: "uint256",
1438
+ name: "maxDebt",
1439
+ type: "uint256"
1440
+ },
1441
+ {
1442
+ internalType: "uint256",
1443
+ name: "maxTotalPayout",
1444
+ type: "uint256"
1445
+ },
1446
+ {
1447
+ internalType: "uint256",
1448
+ name: "initialDebt",
1449
+ type: "uint256"
1450
+ }
1451
+ ],
1452
+ internalType: "struct IApeBond.BondTerms",
1453
+ name: "_billTerms",
1454
+ type: "tuple"
1455
+ },
1456
+ {
1457
+ components: [
1458
+ {
1459
+ internalType: "address",
1460
+ name: "feeInPrincipalRecipient",
1461
+ type: "address"
1462
+ },
1463
+ {
1464
+ internalType: "address",
1465
+ name: "feeInPayoutRecipient",
1466
+ type: "address"
1467
+ },
1468
+ {
1469
+ internalType: "address",
1470
+ name: "automationAddress",
1471
+ type: "address"
1472
+ },
1473
+ {
1474
+ internalType: "address",
1475
+ name: "billNft",
1476
+ type: "address"
1477
+ }
1478
+ ],
1479
+ internalType: "struct IApeBond.BondAccounts",
1480
+ name: "_billAccounts",
1481
+ type: "tuple"
1482
+ },
1483
+ {
1484
+ internalType: "address[]",
1485
+ name: "_billOperators",
1486
+ type: "address[]"
1487
+ }
1488
+ ],
1489
+ name: "initialize",
1490
+ outputs: [
1491
+ ],
1492
+ stateMutability: "nonpayable",
1493
+ type: "function"
1494
+ },
1495
+ {
1496
+ inputs: [
1497
+ ],
1498
+ name: "lastBCVUpdateTimestamp",
1499
+ outputs: [
1500
+ {
1501
+ internalType: "uint256",
1502
+ name: "",
1503
+ type: "uint256"
1504
+ }
1505
+ ],
1506
+ stateMutability: "view",
1507
+ type: "function"
1508
+ },
1509
+ {
1510
+ inputs: [
1511
+ ],
1512
+ name: "lastDecay",
1513
+ outputs: [
1514
+ {
1515
+ internalType: "uint256",
1516
+ name: "",
1517
+ type: "uint256"
1518
+ }
1519
+ ],
1520
+ stateMutability: "view",
1521
+ type: "function"
1522
+ },
1523
+ {
1524
+ inputs: [
1525
+ ],
1526
+ name: "maxPayout",
1527
+ outputs: [
1528
+ {
1529
+ internalType: "uint256",
1530
+ name: "",
1531
+ type: "uint256"
1532
+ }
1533
+ ],
1534
+ stateMutability: "view",
1535
+ type: "function"
1536
+ },
1537
+ {
1538
+ inputs: [
1539
+ ],
1540
+ name: "minBCVUpdateInterval",
1541
+ outputs: [
1542
+ {
1543
+ internalType: "uint256",
1544
+ name: "",
1545
+ type: "uint256"
1546
+ }
1547
+ ],
1548
+ stateMutability: "view",
1549
+ type: "function"
1550
+ },
1551
+ {
1552
+ inputs: [
1553
+ ],
1554
+ name: "owner",
1555
+ outputs: [
1556
+ {
1557
+ internalType: "address",
1558
+ name: "",
1559
+ type: "address"
1560
+ }
1561
+ ],
1562
+ stateMutability: "view",
1563
+ type: "function"
1564
+ },
1565
+ {
1566
+ inputs: [
1567
+ ],
1568
+ name: "pause",
1569
+ outputs: [
1570
+ ],
1571
+ stateMutability: "nonpayable",
1572
+ type: "function"
1573
+ },
1574
+ {
1575
+ inputs: [
1576
+ ],
1577
+ name: "paused",
1578
+ outputs: [
1579
+ {
1580
+ internalType: "bool",
1581
+ name: "",
1582
+ type: "bool"
1583
+ }
1584
+ ],
1585
+ stateMutability: "view",
1586
+ type: "function"
1587
+ },
1588
+ {
1589
+ inputs: [
1590
+ {
1591
+ internalType: "uint256",
1592
+ name: "_amount",
1593
+ type: "uint256"
1594
+ },
1595
+ {
1596
+ internalType: "bytes",
1597
+ name: "_tierProofSignature",
1598
+ type: "bytes"
1599
+ },
1600
+ {
1601
+ internalType: "address",
1602
+ name: "_user",
1603
+ type: "address"
1604
+ }
1605
+ ],
1606
+ name: "payoutFor",
1607
+ outputs: [
1608
+ {
1609
+ internalType: "uint256",
1610
+ name: "_payout",
1611
+ type: "uint256"
1612
+ },
1613
+ {
1614
+ internalType: "uint256",
1615
+ name: "_feeInPrincipalAmount",
1616
+ type: "uint256"
1617
+ },
1618
+ {
1619
+ internalType: "uint256",
1620
+ name: "_feeInPayoutAmount",
1621
+ type: "uint256"
1622
+ }
1623
+ ],
1624
+ stateMutability: "view",
1625
+ type: "function"
1626
+ },
1627
+ {
1628
+ inputs: [
1629
+ {
1630
+ internalType: "uint256",
1631
+ name: "_amount",
1632
+ type: "uint256"
1633
+ }
1634
+ ],
1635
+ name: "payoutFor",
1636
+ outputs: [
1637
+ {
1638
+ internalType: "uint256",
1639
+ name: "_payout",
1640
+ type: "uint256"
1641
+ },
1642
+ {
1643
+ internalType: "uint256",
1644
+ name: "_feeInPrincipalAmount",
1645
+ type: "uint256"
1646
+ },
1647
+ {
1648
+ internalType: "uint256",
1649
+ name: "_feeInPayoutAmount",
1650
+ type: "uint256"
1651
+ }
1652
+ ],
1653
+ stateMutability: "view",
1654
+ type: "function"
1655
+ },
1656
+ {
1657
+ inputs: [
1658
+ ],
1659
+ name: "payoutToken",
1660
+ outputs: [
1661
+ {
1662
+ internalType: "contract IERC20MetadataUpgradeable",
1663
+ name: "",
1664
+ type: "address"
1665
+ }
1666
+ ],
1667
+ stateMutability: "view",
1668
+ type: "function"
1669
+ },
1670
+ {
1671
+ inputs: [
1672
+ ],
1673
+ name: "payoutTokenInitialSupply",
1674
+ outputs: [
1675
+ {
1676
+ internalType: "uint256",
1677
+ name: "",
1678
+ type: "uint256"
1679
+ }
1680
+ ],
1681
+ stateMutability: "view",
1682
+ type: "function"
1683
+ },
1684
+ {
1685
+ inputs: [
1686
+ {
1687
+ internalType: "uint256",
1688
+ name: "_billId",
1689
+ type: "uint256"
1690
+ }
1691
+ ],
1692
+ name: "pendingPayout",
1693
+ outputs: [
1694
+ {
1695
+ internalType: "uint256",
1696
+ name: "pendingPayout_",
1697
+ type: "uint256"
1698
+ }
1699
+ ],
1700
+ stateMutability: "view",
1701
+ type: "function"
1702
+ },
1703
+ {
1704
+ inputs: [
1705
+ {
1706
+ internalType: "uint256",
1707
+ name: "_billId",
1708
+ type: "uint256"
1709
+ }
1710
+ ],
1711
+ name: "pendingVesting",
1712
+ outputs: [
1713
+ {
1714
+ internalType: "uint256",
1715
+ name: "pendingVesting_",
1716
+ type: "uint256"
1717
+ }
1718
+ ],
1719
+ stateMutability: "view",
1720
+ type: "function"
1721
+ },
1722
+ {
1723
+ inputs: [
1724
+ ],
1725
+ name: "principalToken",
1726
+ outputs: [
1727
+ {
1728
+ internalType: "contract IERC20MetadataUpgradeable",
1729
+ name: "",
1730
+ type: "address"
1731
+ }
1732
+ ],
1733
+ stateMutability: "view",
1734
+ type: "function"
1735
+ },
1736
+ {
1737
+ inputs: [
1738
+ {
1739
+ internalType: "uint256",
1740
+ name: "_billId",
1741
+ type: "uint256"
1742
+ }
1743
+ ],
1744
+ name: "redeem",
1745
+ outputs: [
1746
+ {
1747
+ internalType: "uint256",
1748
+ name: "",
1749
+ type: "uint256"
1750
+ }
1751
+ ],
1752
+ stateMutability: "nonpayable",
1753
+ type: "function"
1754
+ },
1755
+ {
1756
+ inputs: [
1757
+ {
1758
+ internalType: "address",
1759
+ name: "",
1760
+ type: "address"
1761
+ },
1762
+ {
1763
+ internalType: "address",
1764
+ name: "",
1765
+ type: "address"
1766
+ }
1767
+ ],
1768
+ name: "redeemerApproved",
1769
+ outputs: [
1770
+ {
1771
+ internalType: "bool",
1772
+ name: "",
1773
+ type: "bool"
1774
+ }
1775
+ ],
1776
+ stateMutability: "view",
1777
+ type: "function"
1778
+ },
1779
+ {
1780
+ inputs: [
1781
+ ],
1782
+ name: "renounceOwnership",
1783
+ outputs: [
1784
+ ],
1785
+ stateMutability: "nonpayable",
1786
+ type: "function"
1787
+ },
1788
+ {
1789
+ inputs: [
1790
+ {
1791
+ internalType: "bytes32",
1792
+ name: "role",
1793
+ type: "bytes32"
1794
+ },
1795
+ {
1796
+ internalType: "address",
1797
+ name: "account",
1798
+ type: "address"
1799
+ }
1800
+ ],
1801
+ name: "renounceRole",
1802
+ outputs: [
1803
+ ],
1804
+ stateMutability: "nonpayable",
1805
+ type: "function"
1806
+ },
1807
+ {
1808
+ inputs: [
1809
+ {
1810
+ internalType: "bytes32",
1811
+ name: "role",
1812
+ type: "bytes32"
1813
+ },
1814
+ {
1815
+ internalType: "address",
1816
+ name: "account",
1817
+ type: "address"
1818
+ }
1819
+ ],
1820
+ name: "revokeRole",
1821
+ outputs: [
1822
+ ],
1823
+ stateMutability: "nonpayable",
1824
+ type: "function"
1825
+ },
1826
+ {
1827
+ inputs: [
1828
+ {
1829
+ internalType: "uint256",
1830
+ name: "_target",
1831
+ type: "uint256"
1832
+ }
1833
+ ],
1834
+ name: "setBCV",
1835
+ outputs: [
1836
+ ],
1837
+ stateMutability: "nonpayable",
1838
+ type: "function"
1839
+ },
1840
+ {
1841
+ inputs: [
1842
+ {
1843
+ internalType: "uint256",
1844
+ name: "_newBCVUpdateInterval",
1845
+ type: "uint256"
1846
+ }
1847
+ ],
1848
+ name: "setBCVUpdateInterval",
1849
+ outputs: [
1850
+ ],
1851
+ stateMutability: "nonpayable",
1852
+ type: "function"
1853
+ },
1854
+ {
1855
+ inputs: [
1856
+ {
1857
+ internalType: "enum ApeBond.PARAMETER",
1858
+ name: "_parameter",
1859
+ type: "uint8"
1860
+ },
1861
+ {
1862
+ internalType: "uint256",
1863
+ name: "_input",
1864
+ type: "uint256"
1865
+ }
1866
+ ],
1867
+ name: "setBondTerms",
1868
+ outputs: [
1869
+ ],
1870
+ stateMutability: "nonpayable",
1871
+ type: "function"
1872
+ },
1873
+ {
1874
+ inputs: [
1875
+ {
1876
+ internalType: "address",
1877
+ name: "approvedAccount",
1878
+ type: "address"
1879
+ },
1880
+ {
1881
+ internalType: "bool",
1882
+ name: "approved",
1883
+ type: "bool"
1884
+ }
1885
+ ],
1886
+ name: "setClaimApproval",
1887
+ outputs: [
1888
+ ],
1889
+ stateMutability: "nonpayable",
1890
+ type: "function"
1891
+ },
1892
+ {
1893
+ inputs: [
1894
+ {
1895
+ internalType: "uint256",
1896
+ name: "_feeInPrincipal",
1897
+ type: "uint256"
1898
+ },
1899
+ {
1900
+ internalType: "uint256",
1901
+ name: "_feeInPayout",
1902
+ type: "uint256"
1903
+ }
1904
+ ],
1905
+ name: "setFee",
1906
+ outputs: [
1907
+ ],
1908
+ stateMutability: "nonpayable",
1909
+ type: "function"
1910
+ },
1911
+ {
1912
+ inputs: [
1913
+ {
1914
+ internalType: "address",
1915
+ name: "_feeInPrincipalRecipient",
1916
+ type: "address"
1917
+ },
1918
+ {
1919
+ internalType: "address",
1920
+ name: "_feeInPayoutRecipient",
1921
+ type: "address"
1922
+ }
1923
+ ],
1924
+ name: "setFeeRecipients",
1925
+ outputs: [
1926
+ ],
1927
+ stateMutability: "nonpayable",
1928
+ type: "function"
1929
+ },
1930
+ {
1931
+ inputs: [
1932
+ {
1933
+ internalType: "uint256",
1934
+ name: "_maxTotalPayout",
1935
+ type: "uint256"
1936
+ }
1937
+ ],
1938
+ name: "setMaxTotalPayout",
1939
+ outputs: [
1940
+ ],
1941
+ stateMutability: "nonpayable",
1942
+ type: "function"
1943
+ },
1944
+ {
1945
+ inputs: [
1946
+ {
1947
+ internalType: "uint256",
1948
+ name: "_target",
1949
+ type: "uint256"
1950
+ }
1951
+ ],
1952
+ name: "setMinPrice",
1953
+ outputs: [
1954
+ ],
1955
+ stateMutability: "nonpayable",
1956
+ type: "function"
1957
+ },
1958
+ {
1959
+ inputs: [
1960
+ {
1961
+ internalType: "bool",
1962
+ name: "_active",
1963
+ type: "bool"
1964
+ },
1965
+ {
1966
+ internalType: "address",
1967
+ name: "_pointsLens",
1968
+ type: "address"
1969
+ },
1970
+ {
1971
+ internalType: "address",
1972
+ name: "_authorizedSigner",
1973
+ type: "address"
1974
+ },
1975
+ {
1976
+ internalType: "uint256",
1977
+ name: "_minPoints",
1978
+ type: "uint256"
1979
+ }
1980
+ ],
1981
+ name: "setTierAccessExtensionData",
1982
+ outputs: [
1983
+ ],
1984
+ stateMutability: "nonpayable",
1985
+ type: "function"
1986
+ },
1987
+ {
1988
+ inputs: [
1989
+ {
1990
+ internalType: "bool",
1991
+ name: "_active",
1992
+ type: "bool"
1993
+ },
1994
+ {
1995
+ internalType: "address",
1996
+ name: "_pointsLens",
1997
+ type: "address"
1998
+ },
1999
+ {
2000
+ internalType: "address",
2001
+ name: "_authorizedSigner",
2002
+ type: "address"
2003
+ },
2004
+ {
2005
+ internalType: "uint256[]",
2006
+ name: "_points",
2007
+ type: "uint256[]"
2008
+ },
2009
+ {
2010
+ internalType: "uint256[]",
2011
+ name: "_extraDiscount",
2012
+ type: "uint256[]"
2013
+ }
2014
+ ],
2015
+ name: "setTierBoostedDiscountExtensionData",
2016
+ outputs: [
2017
+ ],
2018
+ stateMutability: "nonpayable",
2019
+ type: "function"
2020
+ },
2021
+ {
2022
+ inputs: [
2023
+ {
2024
+ internalType: "bytes4",
2025
+ name: "interfaceId",
2026
+ type: "bytes4"
2027
+ }
2028
+ ],
2029
+ name: "supportsInterface",
2030
+ outputs: [
2031
+ {
2032
+ internalType: "bool",
2033
+ name: "",
2034
+ type: "bool"
2035
+ }
2036
+ ],
2037
+ stateMutability: "view",
2038
+ type: "function"
2039
+ },
2040
+ {
2041
+ inputs: [
2042
+ ],
2043
+ name: "terms",
2044
+ outputs: [
4
2045
  {
5
2046
  internalType: "uint256",
6
- name: "_amount",
2047
+ name: "controlVariable",
7
2048
  type: "uint256"
8
2049
  },
9
2050
  {
10
2051
  internalType: "uint256",
11
- name: "_maxPrice",
2052
+ name: "vestingTerm",
2053
+ type: "uint256"
2054
+ },
2055
+ {
2056
+ internalType: "uint256",
2057
+ name: "minimumPrice",
2058
+ type: "uint256"
2059
+ },
2060
+ {
2061
+ internalType: "uint256",
2062
+ name: "maxPayout",
2063
+ type: "uint256"
2064
+ },
2065
+ {
2066
+ internalType: "uint256",
2067
+ name: "maxDebt",
2068
+ type: "uint256"
2069
+ },
2070
+ {
2071
+ internalType: "uint256",
2072
+ name: "maxTotalPayout",
2073
+ type: "uint256"
2074
+ },
2075
+ {
2076
+ internalType: "uint256",
2077
+ name: "initialDebt",
2078
+ type: "uint256"
2079
+ }
2080
+ ],
2081
+ stateMutability: "view",
2082
+ type: "function"
2083
+ },
2084
+ {
2085
+ inputs: [
2086
+ ],
2087
+ name: "tierAccessExtensionData",
2088
+ outputs: [
2089
+ {
2090
+ internalType: "bool",
2091
+ name: "active",
2092
+ type: "bool"
2093
+ },
2094
+ {
2095
+ internalType: "address",
2096
+ name: "pointsLens",
2097
+ type: "address"
2098
+ },
2099
+ {
2100
+ internalType: "uint256",
2101
+ name: "minPoints",
12
2102
  type: "uint256"
13
2103
  },
14
2104
  {
15
2105
  internalType: "address",
16
- name: "_depositor",
2106
+ name: "authorizedSigner",
2107
+ type: "address"
2108
+ }
2109
+ ],
2110
+ stateMutability: "view",
2111
+ type: "function"
2112
+ },
2113
+ {
2114
+ inputs: [
2115
+ {
2116
+ internalType: "address",
2117
+ name: "_user",
17
2118
  type: "address"
18
2119
  },
19
2120
  {
@@ -22,7 +2123,73 @@ var ABI_DEPOSIT_SIG = [
22
2123
  type: "bytes"
23
2124
  }
24
2125
  ],
25
- name: "deposit",
2126
+ name: "tierBoostedDiscount",
2127
+ outputs: [
2128
+ {
2129
+ internalType: "uint256",
2130
+ name: "discount",
2131
+ type: "uint256"
2132
+ }
2133
+ ],
2134
+ stateMutability: "view",
2135
+ type: "function"
2136
+ },
2137
+ {
2138
+ inputs: [
2139
+ ],
2140
+ name: "tierBoostedDiscountExtensionData",
2141
+ outputs: [
2142
+ {
2143
+ internalType: "bool",
2144
+ name: "active",
2145
+ type: "bool"
2146
+ },
2147
+ {
2148
+ internalType: "address",
2149
+ name: "pointsLens",
2150
+ type: "address"
2151
+ },
2152
+ {
2153
+ internalType: "address",
2154
+ name: "authorizedSigner",
2155
+ type: "address"
2156
+ }
2157
+ ],
2158
+ stateMutability: "view",
2159
+ type: "function"
2160
+ },
2161
+ {
2162
+ inputs: [
2163
+ ],
2164
+ name: "totalDebt",
2165
+ outputs: [
2166
+ {
2167
+ internalType: "uint256",
2168
+ name: "",
2169
+ type: "uint256"
2170
+ }
2171
+ ],
2172
+ stateMutability: "view",
2173
+ type: "function"
2174
+ },
2175
+ {
2176
+ inputs: [
2177
+ ],
2178
+ name: "totalPayoutGiven",
2179
+ outputs: [
2180
+ {
2181
+ internalType: "uint256",
2182
+ name: "",
2183
+ type: "uint256"
2184
+ }
2185
+ ],
2186
+ stateMutability: "view",
2187
+ type: "function"
2188
+ },
2189
+ {
2190
+ inputs: [
2191
+ ],
2192
+ name: "totalPrincipalBilled",
26
2193
  outputs: [
27
2194
  {
28
2195
  internalType: "uint256",
@@ -30,8 +2197,214 @@ var ABI_DEPOSIT_SIG = [
30
2197
  type: "uint256"
31
2198
  }
32
2199
  ],
2200
+ stateMutability: "view",
2201
+ type: "function"
2202
+ },
2203
+ {
2204
+ inputs: [
2205
+ {
2206
+ internalType: "address",
2207
+ name: "newOwner",
2208
+ type: "address"
2209
+ }
2210
+ ],
2211
+ name: "transferOwnership",
2212
+ outputs: [
2213
+ ],
2214
+ stateMutability: "nonpayable",
2215
+ type: "function"
2216
+ },
2217
+ {
2218
+ inputs: [
2219
+ {
2220
+ internalType: "address",
2221
+ name: "_token",
2222
+ type: "address"
2223
+ },
2224
+ {
2225
+ internalType: "uint256",
2226
+ name: "_amount",
2227
+ type: "uint256"
2228
+ }
2229
+ ],
2230
+ name: "transferStuckToken",
2231
+ outputs: [
2232
+ ],
2233
+ stateMutability: "nonpayable",
2234
+ type: "function"
2235
+ },
2236
+ {
2237
+ inputs: [
2238
+ {
2239
+ internalType: "bytes",
2240
+ name: "_tierProofSignature",
2241
+ type: "bytes"
2242
+ },
2243
+ {
2244
+ internalType: "address",
2245
+ name: "_user",
2246
+ type: "address"
2247
+ }
2248
+ ],
2249
+ name: "trueBillPrice",
2250
+ outputs: [
2251
+ {
2252
+ internalType: "uint256",
2253
+ name: "price_",
2254
+ type: "uint256"
2255
+ }
2256
+ ],
2257
+ stateMutability: "view",
2258
+ type: "function"
2259
+ },
2260
+ {
2261
+ inputs: [
2262
+ ],
2263
+ name: "trueBillPrice",
2264
+ outputs: [
2265
+ {
2266
+ internalType: "uint256",
2267
+ name: "price_",
2268
+ type: "uint256"
2269
+ }
2270
+ ],
2271
+ stateMutability: "view",
2272
+ type: "function"
2273
+ },
2274
+ {
2275
+ inputs: [
2276
+ ],
2277
+ name: "trueBondPrices",
2278
+ outputs: [
2279
+ {
2280
+ components: [
2281
+ {
2282
+ internalType: "uint256",
2283
+ name: "trueBondPrice",
2284
+ type: "uint256"
2285
+ },
2286
+ {
2287
+ internalType: "uint256",
2288
+ name: "extraDiscount",
2289
+ type: "uint256"
2290
+ },
2291
+ {
2292
+ internalType: "uint256",
2293
+ name: "points",
2294
+ type: "uint256"
2295
+ }
2296
+ ],
2297
+ internalType: "struct ApeBond.TrueBondPricePerTier[]",
2298
+ name: "_trueBondPricePerTier",
2299
+ type: "tuple[]"
2300
+ }
2301
+ ],
2302
+ stateMutability: "view",
2303
+ type: "function"
2304
+ },
2305
+ {
2306
+ inputs: [
2307
+ ],
2308
+ name: "unpause",
2309
+ outputs: [
2310
+ ],
33
2311
  stateMutability: "nonpayable",
34
2312
  type: "function"
2313
+ },
2314
+ {
2315
+ inputs: [
2316
+ ],
2317
+ name: "userBillIds",
2318
+ outputs: [
2319
+ {
2320
+ internalType: "uint256[]",
2321
+ name: "",
2322
+ type: "uint256[]"
2323
+ }
2324
+ ],
2325
+ stateMutability: "view",
2326
+ type: "function"
2327
+ },
2328
+ {
2329
+ inputs: [
2330
+ {
2331
+ internalType: "uint256",
2332
+ name: "_billId",
2333
+ type: "uint256"
2334
+ },
2335
+ {
2336
+ internalType: "uint256",
2337
+ name: "_timestamp",
2338
+ type: "uint256"
2339
+ }
2340
+ ],
2341
+ name: "vestedPayoutAtTime",
2342
+ outputs: [
2343
+ {
2344
+ internalType: "uint256",
2345
+ name: "vestedPayout_",
2346
+ type: "uint256"
2347
+ }
2348
+ ],
2349
+ stateMutability: "view",
2350
+ type: "function"
2351
+ },
2352
+ {
2353
+ inputs: [
2354
+ ],
2355
+ name: "vestingCurve",
2356
+ outputs: [
2357
+ {
2358
+ internalType: "contract IVestingCurve",
2359
+ name: "",
2360
+ type: "address"
2361
+ }
2362
+ ],
2363
+ stateMutability: "view",
2364
+ type: "function"
2365
+ },
2366
+ {
2367
+ inputs: [
2368
+ {
2369
+ internalType: "uint256",
2370
+ name: "_billId",
2371
+ type: "uint256"
2372
+ }
2373
+ ],
2374
+ name: "vestingPayout",
2375
+ outputs: [
2376
+ {
2377
+ internalType: "uint256",
2378
+ name: "vestingPayout_",
2379
+ type: "uint256"
2380
+ }
2381
+ ],
2382
+ stateMutability: "view",
2383
+ type: "function"
2384
+ },
2385
+ {
2386
+ inputs: [
2387
+ {
2388
+ internalType: "uint256",
2389
+ name: "_billId",
2390
+ type: "uint256"
2391
+ }
2392
+ ],
2393
+ name: "vestingPeriod",
2394
+ outputs: [
2395
+ {
2396
+ internalType: "uint256",
2397
+ name: "vestingStart_",
2398
+ type: "uint256"
2399
+ },
2400
+ {
2401
+ internalType: "uint256",
2402
+ name: "vestingEnd_",
2403
+ type: "uint256"
2404
+ }
2405
+ ],
2406
+ stateMutability: "view",
2407
+ type: "function"
35
2408
  }
36
2409
  ];
37
2410