@bouncetech/contracts 1.0.3 → 1.1.0

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.
@@ -0,0 +1,1347 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.leveragedTokenAbi = void 0;
4
+ exports.leveragedTokenAbi = [
5
+ {
6
+ type: "constructor",
7
+ inputs: [],
8
+ stateMutability: "nonpayable",
9
+ },
10
+ {
11
+ type: "function",
12
+ name: "agentCreatedAt",
13
+ inputs: [
14
+ {
15
+ name: "agent_",
16
+ type: "address",
17
+ internalType: "address",
18
+ },
19
+ ],
20
+ outputs: [
21
+ {
22
+ name: "",
23
+ type: "uint256",
24
+ internalType: "uint256",
25
+ },
26
+ ],
27
+ stateMutability: "view",
28
+ },
29
+ {
30
+ type: "function",
31
+ name: "agents",
32
+ inputs: [],
33
+ outputs: [
34
+ {
35
+ name: "",
36
+ type: "address[3]",
37
+ internalType: "address[3]",
38
+ },
39
+ ],
40
+ stateMutability: "view",
41
+ },
42
+ {
43
+ type: "function",
44
+ name: "allowance",
45
+ inputs: [
46
+ {
47
+ name: "owner",
48
+ type: "address",
49
+ internalType: "address",
50
+ },
51
+ {
52
+ name: "spender",
53
+ type: "address",
54
+ internalType: "address",
55
+ },
56
+ ],
57
+ outputs: [
58
+ {
59
+ name: "",
60
+ type: "uint256",
61
+ internalType: "uint256",
62
+ },
63
+ ],
64
+ stateMutability: "view",
65
+ },
66
+ {
67
+ type: "function",
68
+ name: "approve",
69
+ inputs: [
70
+ {
71
+ name: "spender",
72
+ type: "address",
73
+ internalType: "address",
74
+ },
75
+ {
76
+ name: "value",
77
+ type: "uint256",
78
+ internalType: "uint256",
79
+ },
80
+ ],
81
+ outputs: [
82
+ {
83
+ name: "",
84
+ type: "bool",
85
+ internalType: "bool",
86
+ },
87
+ ],
88
+ stateMutability: "nonpayable",
89
+ },
90
+ {
91
+ type: "function",
92
+ name: "balanceOf",
93
+ inputs: [
94
+ {
95
+ name: "account",
96
+ type: "address",
97
+ internalType: "address",
98
+ },
99
+ ],
100
+ outputs: [
101
+ {
102
+ name: "",
103
+ type: "uint256",
104
+ internalType: "uint256",
105
+ },
106
+ ],
107
+ stateMutability: "view",
108
+ },
109
+ {
110
+ type: "function",
111
+ name: "baseAssetBalance",
112
+ inputs: [],
113
+ outputs: [
114
+ {
115
+ name: "",
116
+ type: "uint256",
117
+ internalType: "uint256",
118
+ },
119
+ ],
120
+ stateMutability: "view",
121
+ },
122
+ {
123
+ type: "function",
124
+ name: "baseToLtAmount",
125
+ inputs: [
126
+ {
127
+ name: "baseAmount_",
128
+ type: "uint256",
129
+ internalType: "uint256",
130
+ },
131
+ ],
132
+ outputs: [
133
+ {
134
+ name: "",
135
+ type: "uint256",
136
+ internalType: "uint256",
137
+ },
138
+ ],
139
+ stateMutability: "view",
140
+ },
141
+ {
142
+ type: "function",
143
+ name: "bridgeFromPerp",
144
+ inputs: [
145
+ {
146
+ name: "amount_",
147
+ type: "uint256",
148
+ internalType: "uint256",
149
+ },
150
+ ],
151
+ outputs: [],
152
+ stateMutability: "nonpayable",
153
+ },
154
+ {
155
+ type: "function",
156
+ name: "bridgeFromSpot",
157
+ inputs: [
158
+ {
159
+ name: "amount_",
160
+ type: "uint256",
161
+ internalType: "uint256",
162
+ },
163
+ ],
164
+ outputs: [],
165
+ stateMutability: "nonpayable",
166
+ },
167
+ {
168
+ type: "function",
169
+ name: "bridgeToPerp",
170
+ inputs: [
171
+ {
172
+ name: "amount_",
173
+ type: "uint256",
174
+ internalType: "uint256",
175
+ },
176
+ ],
177
+ outputs: [],
178
+ stateMutability: "nonpayable",
179
+ },
180
+ {
181
+ type: "function",
182
+ name: "bridgeToSpot",
183
+ inputs: [
184
+ {
185
+ name: "amount_",
186
+ type: "uint256",
187
+ internalType: "uint256",
188
+ },
189
+ ],
190
+ outputs: [],
191
+ stateMutability: "nonpayable",
192
+ },
193
+ {
194
+ type: "function",
195
+ name: "cancelRedeem",
196
+ inputs: [],
197
+ outputs: [],
198
+ stateMutability: "nonpayable",
199
+ },
200
+ {
201
+ type: "function",
202
+ name: "checkpoint",
203
+ inputs: [],
204
+ outputs: [],
205
+ stateMutability: "nonpayable",
206
+ },
207
+ {
208
+ type: "function",
209
+ name: "checkpoint",
210
+ inputs: [
211
+ {
212
+ name: "to_",
213
+ type: "uint256",
214
+ internalType: "uint256",
215
+ },
216
+ ],
217
+ outputs: [],
218
+ stateMutability: "nonpayable",
219
+ },
220
+ {
221
+ type: "function",
222
+ name: "credit",
223
+ inputs: [],
224
+ outputs: [
225
+ {
226
+ name: "",
227
+ type: "uint256",
228
+ internalType: "uint256",
229
+ },
230
+ ],
231
+ stateMutability: "view",
232
+ },
233
+ {
234
+ type: "function",
235
+ name: "decimals",
236
+ inputs: [],
237
+ outputs: [
238
+ {
239
+ name: "",
240
+ type: "uint8",
241
+ internalType: "uint8",
242
+ },
243
+ ],
244
+ stateMutability: "view",
245
+ },
246
+ {
247
+ type: "function",
248
+ name: "exchangeRate",
249
+ inputs: [],
250
+ outputs: [
251
+ {
252
+ name: "",
253
+ type: "uint256",
254
+ internalType: "uint256",
255
+ },
256
+ ],
257
+ stateMutability: "view",
258
+ },
259
+ {
260
+ type: "function",
261
+ name: "executeRedemptions",
262
+ inputs: [
263
+ {
264
+ name: "users_",
265
+ type: "address[]",
266
+ internalType: "address[]",
267
+ },
268
+ ],
269
+ outputs: [
270
+ {
271
+ name: "executeRedemptionData_",
272
+ type: "tuple[]",
273
+ internalType: "struct ILeveragedToken.ExecuteRedemptionData[]",
274
+ components: [
275
+ {
276
+ name: "user",
277
+ type: "address",
278
+ internalType: "address",
279
+ },
280
+ {
281
+ name: "wasExecuted",
282
+ type: "bool",
283
+ internalType: "bool",
284
+ },
285
+ ],
286
+ },
287
+ ],
288
+ stateMutability: "nonpayable",
289
+ },
290
+ {
291
+ type: "function",
292
+ name: "getAgentSlot",
293
+ inputs: [
294
+ {
295
+ name: "agent_",
296
+ type: "address",
297
+ internalType: "address",
298
+ },
299
+ ],
300
+ outputs: [
301
+ {
302
+ name: "",
303
+ type: "uint8",
304
+ internalType: "uint8",
305
+ },
306
+ ],
307
+ stateMutability: "view",
308
+ },
309
+ {
310
+ type: "function",
311
+ name: "initialize",
312
+ inputs: [
313
+ {
314
+ name: "globalStorage_",
315
+ type: "address",
316
+ internalType: "address",
317
+ },
318
+ {
319
+ name: "marketId_",
320
+ type: "uint32",
321
+ internalType: "uint32",
322
+ },
323
+ {
324
+ name: "targetAsset_",
325
+ type: "string",
326
+ internalType: "string",
327
+ },
328
+ {
329
+ name: "targetLeverage_",
330
+ type: "uint256",
331
+ internalType: "uint256",
332
+ },
333
+ {
334
+ name: "isLong_",
335
+ type: "bool",
336
+ internalType: "bool",
337
+ },
338
+ {
339
+ name: "name_",
340
+ type: "string",
341
+ internalType: "string",
342
+ },
343
+ {
344
+ name: "symbol_",
345
+ type: "string",
346
+ internalType: "string",
347
+ },
348
+ ],
349
+ outputs: [],
350
+ stateMutability: "nonpayable",
351
+ },
352
+ {
353
+ type: "function",
354
+ name: "isAgent",
355
+ inputs: [
356
+ {
357
+ name: "agent_",
358
+ type: "address",
359
+ internalType: "address",
360
+ },
361
+ ],
362
+ outputs: [
363
+ {
364
+ name: "",
365
+ type: "bool",
366
+ internalType: "bool",
367
+ },
368
+ ],
369
+ stateMutability: "view",
370
+ },
371
+ {
372
+ type: "function",
373
+ name: "isLong",
374
+ inputs: [],
375
+ outputs: [
376
+ {
377
+ name: "",
378
+ type: "bool",
379
+ internalType: "bool",
380
+ },
381
+ ],
382
+ stateMutability: "view",
383
+ },
384
+ {
385
+ type: "function",
386
+ name: "lastCheckpoint",
387
+ inputs: [],
388
+ outputs: [
389
+ {
390
+ name: "",
391
+ type: "uint256",
392
+ internalType: "uint256",
393
+ },
394
+ ],
395
+ stateMutability: "view",
396
+ },
397
+ {
398
+ type: "function",
399
+ name: "ltToBaseAmount",
400
+ inputs: [
401
+ {
402
+ name: "ltAmount_",
403
+ type: "uint256",
404
+ internalType: "uint256",
405
+ },
406
+ ],
407
+ outputs: [
408
+ {
409
+ name: "",
410
+ type: "uint256",
411
+ internalType: "uint256",
412
+ },
413
+ ],
414
+ stateMutability: "view",
415
+ },
416
+ {
417
+ type: "function",
418
+ name: "marketId",
419
+ inputs: [],
420
+ outputs: [
421
+ {
422
+ name: "",
423
+ type: "uint32",
424
+ internalType: "uint32",
425
+ },
426
+ ],
427
+ stateMutability: "view",
428
+ },
429
+ {
430
+ type: "function",
431
+ name: "mint",
432
+ inputs: [
433
+ {
434
+ name: "to_",
435
+ type: "address",
436
+ internalType: "address",
437
+ },
438
+ {
439
+ name: "baseAmount_",
440
+ type: "uint256",
441
+ internalType: "uint256",
442
+ },
443
+ {
444
+ name: "minOut_",
445
+ type: "uint256",
446
+ internalType: "uint256",
447
+ },
448
+ ],
449
+ outputs: [
450
+ {
451
+ name: "",
452
+ type: "uint256",
453
+ internalType: "uint256",
454
+ },
455
+ ],
456
+ stateMutability: "nonpayable",
457
+ },
458
+ {
459
+ type: "function",
460
+ name: "mintPaused",
461
+ inputs: [],
462
+ outputs: [
463
+ {
464
+ name: "",
465
+ type: "bool",
466
+ internalType: "bool",
467
+ },
468
+ ],
469
+ stateMutability: "view",
470
+ },
471
+ {
472
+ type: "function",
473
+ name: "name",
474
+ inputs: [],
475
+ outputs: [
476
+ {
477
+ name: "",
478
+ type: "string",
479
+ internalType: "string",
480
+ },
481
+ ],
482
+ stateMutability: "view",
483
+ },
484
+ {
485
+ type: "function",
486
+ name: "pendingRedemptions",
487
+ inputs: [],
488
+ outputs: [
489
+ {
490
+ name: "",
491
+ type: "address[]",
492
+ internalType: "address[]",
493
+ },
494
+ ],
495
+ stateMutability: "view",
496
+ },
497
+ {
498
+ type: "function",
499
+ name: "prepareRedeem",
500
+ inputs: [
501
+ {
502
+ name: "ltAmount_",
503
+ type: "uint256",
504
+ internalType: "uint256",
505
+ },
506
+ ],
507
+ outputs: [],
508
+ stateMutability: "nonpayable",
509
+ },
510
+ {
511
+ type: "function",
512
+ name: "redeem",
513
+ inputs: [
514
+ {
515
+ name: "to_",
516
+ type: "address",
517
+ internalType: "address",
518
+ },
519
+ {
520
+ name: "ltAmount_",
521
+ type: "uint256",
522
+ internalType: "uint256",
523
+ },
524
+ {
525
+ name: "minBaseAmount_",
526
+ type: "uint256",
527
+ internalType: "uint256",
528
+ },
529
+ ],
530
+ outputs: [
531
+ {
532
+ name: "",
533
+ type: "uint256",
534
+ internalType: "uint256",
535
+ },
536
+ ],
537
+ stateMutability: "nonpayable",
538
+ },
539
+ {
540
+ type: "function",
541
+ name: "setAgent",
542
+ inputs: [
543
+ {
544
+ name: "slot_",
545
+ type: "uint8",
546
+ internalType: "uint8",
547
+ },
548
+ {
549
+ name: "agent_",
550
+ type: "address",
551
+ internalType: "address",
552
+ },
553
+ ],
554
+ outputs: [],
555
+ stateMutability: "nonpayable",
556
+ },
557
+ {
558
+ type: "function",
559
+ name: "setMintPaused",
560
+ inputs: [
561
+ {
562
+ name: "mintPaused_",
563
+ type: "bool",
564
+ internalType: "bool",
565
+ },
566
+ ],
567
+ outputs: [],
568
+ stateMutability: "nonpayable",
569
+ },
570
+ {
571
+ type: "function",
572
+ name: "symbol",
573
+ inputs: [],
574
+ outputs: [
575
+ {
576
+ name: "",
577
+ type: "string",
578
+ internalType: "string",
579
+ },
580
+ ],
581
+ stateMutability: "view",
582
+ },
583
+ {
584
+ type: "function",
585
+ name: "targetAsset",
586
+ inputs: [],
587
+ outputs: [
588
+ {
589
+ name: "",
590
+ type: "string",
591
+ internalType: "string",
592
+ },
593
+ ],
594
+ stateMutability: "view",
595
+ },
596
+ {
597
+ type: "function",
598
+ name: "targetLeverage",
599
+ inputs: [],
600
+ outputs: [
601
+ {
602
+ name: "",
603
+ type: "uint256",
604
+ internalType: "uint256",
605
+ },
606
+ ],
607
+ stateMutability: "view",
608
+ },
609
+ {
610
+ type: "function",
611
+ name: "totalAssets",
612
+ inputs: [],
613
+ outputs: [
614
+ {
615
+ name: "",
616
+ type: "uint256",
617
+ internalType: "uint256",
618
+ },
619
+ ],
620
+ stateMutability: "view",
621
+ },
622
+ {
623
+ type: "function",
624
+ name: "totalSupply",
625
+ inputs: [],
626
+ outputs: [
627
+ {
628
+ name: "",
629
+ type: "uint256",
630
+ internalType: "uint256",
631
+ },
632
+ ],
633
+ stateMutability: "view",
634
+ },
635
+ {
636
+ type: "function",
637
+ name: "transfer",
638
+ inputs: [
639
+ {
640
+ name: "to",
641
+ type: "address",
642
+ internalType: "address",
643
+ },
644
+ {
645
+ name: "value",
646
+ type: "uint256",
647
+ internalType: "uint256",
648
+ },
649
+ ],
650
+ outputs: [
651
+ {
652
+ name: "",
653
+ type: "bool",
654
+ internalType: "bool",
655
+ },
656
+ ],
657
+ stateMutability: "nonpayable",
658
+ },
659
+ {
660
+ type: "function",
661
+ name: "transferFrom",
662
+ inputs: [
663
+ {
664
+ name: "from",
665
+ type: "address",
666
+ internalType: "address",
667
+ },
668
+ {
669
+ name: "to",
670
+ type: "address",
671
+ internalType: "address",
672
+ },
673
+ {
674
+ name: "value",
675
+ type: "uint256",
676
+ internalType: "uint256",
677
+ },
678
+ ],
679
+ outputs: [
680
+ {
681
+ name: "",
682
+ type: "bool",
683
+ internalType: "bool",
684
+ },
685
+ ],
686
+ stateMutability: "nonpayable",
687
+ },
688
+ {
689
+ type: "function",
690
+ name: "usdClassTransfer",
691
+ inputs: [
692
+ {
693
+ name: "amount_",
694
+ type: "uint64",
695
+ internalType: "uint64",
696
+ },
697
+ {
698
+ name: "toPerp_",
699
+ type: "bool",
700
+ internalType: "bool",
701
+ },
702
+ ],
703
+ outputs: [],
704
+ stateMutability: "nonpayable",
705
+ },
706
+ {
707
+ type: "function",
708
+ name: "userCredit",
709
+ inputs: [
710
+ {
711
+ name: "user_",
712
+ type: "address",
713
+ internalType: "address",
714
+ },
715
+ ],
716
+ outputs: [
717
+ {
718
+ name: "",
719
+ type: "uint256",
720
+ internalType: "uint256",
721
+ },
722
+ ],
723
+ stateMutability: "view",
724
+ },
725
+ {
726
+ type: "function",
727
+ name: "version",
728
+ inputs: [],
729
+ outputs: [
730
+ {
731
+ name: "",
732
+ type: "string",
733
+ internalType: "string",
734
+ },
735
+ ],
736
+ stateMutability: "pure",
737
+ },
738
+ {
739
+ type: "event",
740
+ name: "Approval",
741
+ inputs: [
742
+ {
743
+ name: "owner",
744
+ type: "address",
745
+ indexed: true,
746
+ internalType: "address",
747
+ },
748
+ {
749
+ name: "spender",
750
+ type: "address",
751
+ indexed: true,
752
+ internalType: "address",
753
+ },
754
+ {
755
+ name: "value",
756
+ type: "uint256",
757
+ indexed: false,
758
+ internalType: "uint256",
759
+ },
760
+ ],
761
+ anonymous: false,
762
+ },
763
+ {
764
+ type: "event",
765
+ name: "BridgeFromPerp",
766
+ inputs: [
767
+ {
768
+ name: "sender",
769
+ type: "address",
770
+ indexed: true,
771
+ internalType: "address",
772
+ },
773
+ {
774
+ name: "amount",
775
+ type: "uint256",
776
+ indexed: false,
777
+ internalType: "uint256",
778
+ },
779
+ ],
780
+ anonymous: false,
781
+ },
782
+ {
783
+ type: "event",
784
+ name: "BridgeFromSpot",
785
+ inputs: [
786
+ {
787
+ name: "sender",
788
+ type: "address",
789
+ indexed: true,
790
+ internalType: "address",
791
+ },
792
+ {
793
+ name: "amount",
794
+ type: "uint256",
795
+ indexed: false,
796
+ internalType: "uint256",
797
+ },
798
+ ],
799
+ anonymous: false,
800
+ },
801
+ {
802
+ type: "event",
803
+ name: "BridgeToPerp",
804
+ inputs: [
805
+ {
806
+ name: "sender",
807
+ type: "address",
808
+ indexed: true,
809
+ internalType: "address",
810
+ },
811
+ {
812
+ name: "amount",
813
+ type: "uint256",
814
+ indexed: false,
815
+ internalType: "uint256",
816
+ },
817
+ ],
818
+ anonymous: false,
819
+ },
820
+ {
821
+ type: "event",
822
+ name: "BridgeToSpot",
823
+ inputs: [
824
+ {
825
+ name: "sender",
826
+ type: "address",
827
+ indexed: true,
828
+ internalType: "address",
829
+ },
830
+ {
831
+ name: "amount",
832
+ type: "uint256",
833
+ indexed: false,
834
+ internalType: "uint256",
835
+ },
836
+ ],
837
+ anonymous: false,
838
+ },
839
+ {
840
+ type: "event",
841
+ name: "CancelRedeem",
842
+ inputs: [
843
+ {
844
+ name: "user",
845
+ type: "address",
846
+ indexed: true,
847
+ internalType: "address",
848
+ },
849
+ {
850
+ name: "credit",
851
+ type: "uint256",
852
+ indexed: false,
853
+ internalType: "uint256",
854
+ },
855
+ ],
856
+ anonymous: false,
857
+ },
858
+ {
859
+ type: "event",
860
+ name: "ExecuteRedeem",
861
+ inputs: [
862
+ {
863
+ name: "user",
864
+ type: "address",
865
+ indexed: true,
866
+ internalType: "address",
867
+ },
868
+ {
869
+ name: "ltAmount",
870
+ type: "uint256",
871
+ indexed: false,
872
+ internalType: "uint256",
873
+ },
874
+ {
875
+ name: "baseAmount",
876
+ type: "uint256",
877
+ indexed: false,
878
+ internalType: "uint256",
879
+ },
880
+ ],
881
+ anonymous: false,
882
+ },
883
+ {
884
+ type: "event",
885
+ name: "Initialized",
886
+ inputs: [
887
+ {
888
+ name: "version",
889
+ type: "uint64",
890
+ indexed: false,
891
+ internalType: "uint64",
892
+ },
893
+ ],
894
+ anonymous: false,
895
+ },
896
+ {
897
+ type: "event",
898
+ name: "Mint",
899
+ inputs: [
900
+ {
901
+ name: "minter",
902
+ type: "address",
903
+ indexed: true,
904
+ internalType: "address",
905
+ },
906
+ {
907
+ name: "to",
908
+ type: "address",
909
+ indexed: true,
910
+ internalType: "address",
911
+ },
912
+ {
913
+ name: "baseAmount",
914
+ type: "uint256",
915
+ indexed: false,
916
+ internalType: "uint256",
917
+ },
918
+ {
919
+ name: "ltAmount",
920
+ type: "uint256",
921
+ indexed: false,
922
+ internalType: "uint256",
923
+ },
924
+ ],
925
+ anonymous: false,
926
+ },
927
+ {
928
+ type: "event",
929
+ name: "PrepareRedeem",
930
+ inputs: [
931
+ {
932
+ name: "sender",
933
+ type: "address",
934
+ indexed: true,
935
+ internalType: "address",
936
+ },
937
+ {
938
+ name: "ltAmount",
939
+ type: "uint256",
940
+ indexed: false,
941
+ internalType: "uint256",
942
+ },
943
+ ],
944
+ anonymous: false,
945
+ },
946
+ {
947
+ type: "event",
948
+ name: "Redeem",
949
+ inputs: [
950
+ {
951
+ name: "sender",
952
+ type: "address",
953
+ indexed: true,
954
+ internalType: "address",
955
+ },
956
+ {
957
+ name: "to",
958
+ type: "address",
959
+ indexed: true,
960
+ internalType: "address",
961
+ },
962
+ {
963
+ name: "ltAmount",
964
+ type: "uint256",
965
+ indexed: false,
966
+ internalType: "uint256",
967
+ },
968
+ {
969
+ name: "baseAmount",
970
+ type: "uint256",
971
+ indexed: false,
972
+ internalType: "uint256",
973
+ },
974
+ ],
975
+ anonymous: false,
976
+ },
977
+ {
978
+ type: "event",
979
+ name: "RemoveAgent",
980
+ inputs: [
981
+ {
982
+ name: "agent",
983
+ type: "address",
984
+ indexed: true,
985
+ internalType: "address",
986
+ },
987
+ ],
988
+ anonymous: false,
989
+ },
990
+ {
991
+ type: "event",
992
+ name: "SendFeesToTreasury",
993
+ inputs: [
994
+ {
995
+ name: "amount",
996
+ type: "uint256",
997
+ indexed: false,
998
+ internalType: "uint256",
999
+ },
1000
+ ],
1001
+ anonymous: false,
1002
+ },
1003
+ {
1004
+ type: "event",
1005
+ name: "SetAgent",
1006
+ inputs: [
1007
+ {
1008
+ name: "slot",
1009
+ type: "uint8",
1010
+ indexed: true,
1011
+ internalType: "uint8",
1012
+ },
1013
+ {
1014
+ name: "agent",
1015
+ type: "address",
1016
+ indexed: true,
1017
+ internalType: "address",
1018
+ },
1019
+ {
1020
+ name: "name",
1021
+ type: "string",
1022
+ indexed: false,
1023
+ internalType: "string",
1024
+ },
1025
+ ],
1026
+ anonymous: false,
1027
+ },
1028
+ {
1029
+ type: "event",
1030
+ name: "SetMintPaused",
1031
+ inputs: [
1032
+ {
1033
+ name: "mintPaused",
1034
+ type: "bool",
1035
+ indexed: false,
1036
+ internalType: "bool",
1037
+ },
1038
+ ],
1039
+ anonymous: false,
1040
+ },
1041
+ {
1042
+ type: "event",
1043
+ name: "Transfer",
1044
+ inputs: [
1045
+ {
1046
+ name: "from",
1047
+ type: "address",
1048
+ indexed: true,
1049
+ internalType: "address",
1050
+ },
1051
+ {
1052
+ name: "to",
1053
+ type: "address",
1054
+ indexed: true,
1055
+ internalType: "address",
1056
+ },
1057
+ {
1058
+ name: "value",
1059
+ type: "uint256",
1060
+ indexed: false,
1061
+ internalType: "uint256",
1062
+ },
1063
+ ],
1064
+ anonymous: false,
1065
+ },
1066
+ {
1067
+ type: "event",
1068
+ name: "UsdClassTransfer",
1069
+ inputs: [
1070
+ {
1071
+ name: "sender",
1072
+ type: "address",
1073
+ indexed: true,
1074
+ internalType: "address",
1075
+ },
1076
+ {
1077
+ name: "amount",
1078
+ type: "uint256",
1079
+ indexed: false,
1080
+ internalType: "uint256",
1081
+ },
1082
+ {
1083
+ name: "toPerp",
1084
+ type: "bool",
1085
+ indexed: false,
1086
+ internalType: "bool",
1087
+ },
1088
+ ],
1089
+ anonymous: false,
1090
+ },
1091
+ {
1092
+ type: "error",
1093
+ name: "AlreadyCreated",
1094
+ inputs: [],
1095
+ },
1096
+ {
1097
+ type: "error",
1098
+ name: "AlreadyRedeeming",
1099
+ inputs: [],
1100
+ },
1101
+ {
1102
+ type: "error",
1103
+ name: "BelowMinTransactionSize",
1104
+ inputs: [],
1105
+ },
1106
+ {
1107
+ type: "error",
1108
+ name: "CancelDelayNotElapsed",
1109
+ inputs: [],
1110
+ },
1111
+ {
1112
+ type: "error",
1113
+ name: "CoreWriterLib__CannotSelfTransfer",
1114
+ inputs: [],
1115
+ },
1116
+ {
1117
+ type: "error",
1118
+ name: "CoreWriterLib__CoreAmountTooLarge",
1119
+ inputs: [
1120
+ {
1121
+ name: "amount",
1122
+ type: "uint256",
1123
+ internalType: "uint256",
1124
+ },
1125
+ ],
1126
+ },
1127
+ {
1128
+ type: "error",
1129
+ name: "CoreWriterLib__EvmAmountTooSmall",
1130
+ inputs: [
1131
+ {
1132
+ name: "amount",
1133
+ type: "uint256",
1134
+ internalType: "uint256",
1135
+ },
1136
+ ],
1137
+ },
1138
+ {
1139
+ type: "error",
1140
+ name: "CoreWriterLib__HypeTransferFailed",
1141
+ inputs: [],
1142
+ },
1143
+ {
1144
+ type: "error",
1145
+ name: "DivisionByZero",
1146
+ inputs: [],
1147
+ },
1148
+ {
1149
+ type: "error",
1150
+ name: "ERC20InsufficientAllowance",
1151
+ inputs: [
1152
+ {
1153
+ name: "spender",
1154
+ type: "address",
1155
+ internalType: "address",
1156
+ },
1157
+ {
1158
+ name: "allowance",
1159
+ type: "uint256",
1160
+ internalType: "uint256",
1161
+ },
1162
+ {
1163
+ name: "needed",
1164
+ type: "uint256",
1165
+ internalType: "uint256",
1166
+ },
1167
+ ],
1168
+ },
1169
+ {
1170
+ type: "error",
1171
+ name: "ERC20InsufficientBalance",
1172
+ inputs: [
1173
+ {
1174
+ name: "sender",
1175
+ type: "address",
1176
+ internalType: "address",
1177
+ },
1178
+ {
1179
+ name: "balance",
1180
+ type: "uint256",
1181
+ internalType: "uint256",
1182
+ },
1183
+ {
1184
+ name: "needed",
1185
+ type: "uint256",
1186
+ internalType: "uint256",
1187
+ },
1188
+ ],
1189
+ },
1190
+ {
1191
+ type: "error",
1192
+ name: "ERC20InvalidApprover",
1193
+ inputs: [
1194
+ {
1195
+ name: "approver",
1196
+ type: "address",
1197
+ internalType: "address",
1198
+ },
1199
+ ],
1200
+ },
1201
+ {
1202
+ type: "error",
1203
+ name: "ERC20InvalidReceiver",
1204
+ inputs: [
1205
+ {
1206
+ name: "receiver",
1207
+ type: "address",
1208
+ internalType: "address",
1209
+ },
1210
+ ],
1211
+ },
1212
+ {
1213
+ type: "error",
1214
+ name: "ERC20InvalidSender",
1215
+ inputs: [
1216
+ {
1217
+ name: "sender",
1218
+ type: "address",
1219
+ internalType: "address",
1220
+ },
1221
+ ],
1222
+ },
1223
+ {
1224
+ type: "error",
1225
+ name: "ERC20InvalidSpender",
1226
+ inputs: [
1227
+ {
1228
+ name: "spender",
1229
+ type: "address",
1230
+ internalType: "address",
1231
+ },
1232
+ ],
1233
+ },
1234
+ {
1235
+ type: "error",
1236
+ name: "HLConversions__InvalidToken",
1237
+ inputs: [
1238
+ {
1239
+ name: "token",
1240
+ type: "uint64",
1241
+ internalType: "uint64",
1242
+ },
1243
+ ],
1244
+ },
1245
+ {
1246
+ type: "error",
1247
+ name: "InsufficientBalance",
1248
+ inputs: [],
1249
+ },
1250
+ {
1251
+ type: "error",
1252
+ name: "InvalidAddress",
1253
+ inputs: [],
1254
+ },
1255
+ {
1256
+ type: "error",
1257
+ name: "InvalidAgentSlot",
1258
+ inputs: [],
1259
+ },
1260
+ {
1261
+ type: "error",
1262
+ name: "InvalidAmount",
1263
+ inputs: [],
1264
+ },
1265
+ {
1266
+ type: "error",
1267
+ name: "InvalidInitialization",
1268
+ inputs: [],
1269
+ },
1270
+ {
1271
+ type: "error",
1272
+ name: "LeveragedTokenNotActivated",
1273
+ inputs: [],
1274
+ },
1275
+ {
1276
+ type: "error",
1277
+ name: "MintPaused",
1278
+ inputs: [],
1279
+ },
1280
+ {
1281
+ type: "error",
1282
+ name: "NotAgent",
1283
+ inputs: [],
1284
+ },
1285
+ {
1286
+ type: "error",
1287
+ name: "NotExecutor",
1288
+ inputs: [],
1289
+ },
1290
+ {
1291
+ type: "error",
1292
+ name: "NotInitializing",
1293
+ inputs: [],
1294
+ },
1295
+ {
1296
+ type: "error",
1297
+ name: "NotOwner",
1298
+ inputs: [],
1299
+ },
1300
+ {
1301
+ type: "error",
1302
+ name: "NotRedeeming",
1303
+ inputs: [],
1304
+ },
1305
+ {
1306
+ type: "error",
1307
+ name: "PrecompileLib__TokenInfoPrecompileFailed",
1308
+ inputs: [],
1309
+ },
1310
+ {
1311
+ type: "error",
1312
+ name: "SafeCastOverflowedUintDowncast",
1313
+ inputs: [
1314
+ {
1315
+ name: "bits",
1316
+ type: "uint8",
1317
+ internalType: "uint8",
1318
+ },
1319
+ {
1320
+ name: "value",
1321
+ type: "uint256",
1322
+ internalType: "uint256",
1323
+ },
1324
+ ],
1325
+ },
1326
+ {
1327
+ type: "error",
1328
+ name: "SafeERC20FailedOperation",
1329
+ inputs: [
1330
+ {
1331
+ name: "token",
1332
+ type: "address",
1333
+ internalType: "address",
1334
+ },
1335
+ ],
1336
+ },
1337
+ {
1338
+ type: "error",
1339
+ name: "SameAsCurrent",
1340
+ inputs: [],
1341
+ },
1342
+ {
1343
+ type: "error",
1344
+ name: "SlippageExceeded",
1345
+ inputs: [],
1346
+ },
1347
+ ];