@4mica/sdk 0.5.2 → 0.5.3

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