@zama-fhe/sdk 1.0.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,5115 @@
1
+ // src/abi/erc20.abi.ts
2
+ var ERC20_METADATA_ABI = [
3
+ {
4
+ inputs: [],
5
+ name: "name",
6
+ outputs: [{ name: "", type: "string" }],
7
+ stateMutability: "view",
8
+ type: "function"
9
+ },
10
+ {
11
+ inputs: [],
12
+ name: "symbol",
13
+ outputs: [{ name: "", type: "string" }],
14
+ stateMutability: "view",
15
+ type: "function"
16
+ },
17
+ {
18
+ inputs: [],
19
+ name: "decimals",
20
+ outputs: [{ name: "", type: "uint8" }],
21
+ stateMutability: "view",
22
+ type: "function"
23
+ }
24
+ ];
25
+ var ERC20_ABI = [
26
+ {
27
+ inputs: [{ name: "account", type: "address" }],
28
+ name: "balanceOf",
29
+ outputs: [{ name: "", type: "uint256" }],
30
+ stateMutability: "view",
31
+ type: "function"
32
+ },
33
+ {
34
+ inputs: [
35
+ { name: "owner", type: "address" },
36
+ { name: "spender", type: "address" }
37
+ ],
38
+ name: "allowance",
39
+ outputs: [{ name: "", type: "uint256" }],
40
+ stateMutability: "view",
41
+ type: "function"
42
+ },
43
+ {
44
+ inputs: [
45
+ { name: "spender", type: "address" },
46
+ { name: "value", type: "uint256" }
47
+ ],
48
+ name: "approve",
49
+ outputs: [{ name: "", type: "bool" }],
50
+ stateMutability: "nonpayable",
51
+ type: "function"
52
+ }
53
+ ];
54
+
55
+ // src/abi/deployment-coordinator.abi.ts
56
+ var DEPLOYMENT_COORDINATOR_ABI = [
57
+ {
58
+ inputs: [
59
+ {
60
+ internalType: "address",
61
+ name: "originalToken",
62
+ type: "address"
63
+ }
64
+ ],
65
+ name: "getWrapper",
66
+ outputs: [
67
+ {
68
+ internalType: "address",
69
+ name: "",
70
+ type: "address"
71
+ }
72
+ ],
73
+ stateMutability: "view",
74
+ type: "function"
75
+ },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "originalToken",
81
+ type: "address"
82
+ }
83
+ ],
84
+ name: "wrapperExists",
85
+ outputs: [
86
+ {
87
+ internalType: "bool",
88
+ name: "",
89
+ type: "bool"
90
+ }
91
+ ],
92
+ stateMutability: "view",
93
+ type: "function"
94
+ }
95
+ ];
96
+
97
+ // src/abi/erc165.abi.ts
98
+ var ERC165_ABI = [
99
+ {
100
+ inputs: [
101
+ {
102
+ internalType: "bytes4",
103
+ name: "interfaceId",
104
+ type: "bytes4"
105
+ }
106
+ ],
107
+ name: "supportsInterface",
108
+ outputs: [
109
+ {
110
+ internalType: "bool",
111
+ name: "",
112
+ type: "bool"
113
+ }
114
+ ],
115
+ stateMutability: "view",
116
+ type: "function"
117
+ }
118
+ ];
119
+
120
+ // src/abi/encryption.abi.ts
121
+ var ENCRYPTION_ABI = [
122
+ {
123
+ inputs: [],
124
+ stateMutability: "nonpayable",
125
+ type: "constructor"
126
+ },
127
+ {
128
+ inputs: [
129
+ {
130
+ internalType: "address",
131
+ name: "target",
132
+ type: "address"
133
+ }
134
+ ],
135
+ name: "AddressEmptyCode",
136
+ type: "error"
137
+ },
138
+ {
139
+ inputs: [],
140
+ name: "CannotReceiveEthForTokenWrap",
141
+ type: "error"
142
+ },
143
+ {
144
+ inputs: [
145
+ {
146
+ internalType: "address",
147
+ name: "implementation",
148
+ type: "address"
149
+ }
150
+ ],
151
+ name: "ERC1967InvalidImplementation",
152
+ type: "error"
153
+ },
154
+ {
155
+ inputs: [],
156
+ name: "ERC1967NonPayable",
157
+ type: "error"
158
+ },
159
+ {
160
+ inputs: [
161
+ {
162
+ internalType: "uint256",
163
+ name: "requestId",
164
+ type: "uint256"
165
+ }
166
+ ],
167
+ name: "ERC7984InvalidGatewayRequest",
168
+ type: "error"
169
+ },
170
+ {
171
+ inputs: [
172
+ {
173
+ internalType: "address",
174
+ name: "receiver",
175
+ type: "address"
176
+ }
177
+ ],
178
+ name: "ERC7984InvalidReceiver",
179
+ type: "error"
180
+ },
181
+ {
182
+ inputs: [
183
+ {
184
+ internalType: "address",
185
+ name: "receiver",
186
+ type: "address"
187
+ }
188
+ ],
189
+ name: "ERC7984InvalidReceiver",
190
+ type: "error"
191
+ },
192
+ {
193
+ inputs: [
194
+ {
195
+ internalType: "address",
196
+ name: "sender",
197
+ type: "address"
198
+ }
199
+ ],
200
+ name: "ERC7984InvalidSender",
201
+ type: "error"
202
+ },
203
+ {
204
+ inputs: [],
205
+ name: "ERC7984TotalSupplyOverflow",
206
+ type: "error"
207
+ },
208
+ {
209
+ inputs: [
210
+ {
211
+ internalType: "address",
212
+ name: "caller",
213
+ type: "address"
214
+ }
215
+ ],
216
+ name: "ERC7984UnauthorizedCaller",
217
+ type: "error"
218
+ },
219
+ {
220
+ inputs: [
221
+ {
222
+ internalType: "address",
223
+ name: "holder",
224
+ type: "address"
225
+ },
226
+ {
227
+ internalType: "address",
228
+ name: "spender",
229
+ type: "address"
230
+ }
231
+ ],
232
+ name: "ERC7984UnauthorizedSpender",
233
+ type: "error"
234
+ },
235
+ {
236
+ inputs: [
237
+ {
238
+ internalType: "euint64",
239
+ name: "amount",
240
+ type: "bytes32"
241
+ },
242
+ {
243
+ internalType: "address",
244
+ name: "user",
245
+ type: "address"
246
+ }
247
+ ],
248
+ name: "ERC7984UnauthorizedUseOfEncryptedAmount",
249
+ type: "error"
250
+ },
251
+ {
252
+ inputs: [
253
+ {
254
+ internalType: "address",
255
+ name: "holder",
256
+ type: "address"
257
+ }
258
+ ],
259
+ name: "ERC7984ZeroBalance",
260
+ type: "error"
261
+ },
262
+ {
263
+ inputs: [],
264
+ name: "EthFeeTransferFailed",
265
+ type: "error"
266
+ },
267
+ {
268
+ inputs: [],
269
+ name: "FailedCall",
270
+ type: "error"
271
+ },
272
+ {
273
+ inputs: [],
274
+ name: "IncorrectEthAmount",
275
+ type: "error"
276
+ },
277
+ {
278
+ inputs: [],
279
+ name: "InvalidInitialization",
280
+ type: "error"
281
+ },
282
+ {
283
+ inputs: [],
284
+ name: "InvalidKMSSignatures",
285
+ type: "error"
286
+ },
287
+ {
288
+ inputs: [
289
+ {
290
+ internalType: "euint64",
291
+ name: "amount",
292
+ type: "bytes32"
293
+ }
294
+ ],
295
+ name: "InvalidUnwrapRequest",
296
+ type: "error"
297
+ },
298
+ {
299
+ inputs: [],
300
+ name: "NotInitializing",
301
+ type: "error"
302
+ },
303
+ {
304
+ inputs: [
305
+ {
306
+ internalType: "address",
307
+ name: "owner",
308
+ type: "address"
309
+ }
310
+ ],
311
+ name: "OwnableInvalidOwner",
312
+ type: "error"
313
+ },
314
+ {
315
+ inputs: [
316
+ {
317
+ internalType: "address",
318
+ name: "account",
319
+ type: "address"
320
+ }
321
+ ],
322
+ name: "OwnableUnauthorizedAccount",
323
+ type: "error"
324
+ },
325
+ {
326
+ inputs: [],
327
+ name: "ReentrancyGuardReentrantCall",
328
+ type: "error"
329
+ },
330
+ {
331
+ inputs: [
332
+ {
333
+ internalType: "uint8",
334
+ name: "bits",
335
+ type: "uint8"
336
+ },
337
+ {
338
+ internalType: "uint256",
339
+ name: "value",
340
+ type: "uint256"
341
+ }
342
+ ],
343
+ name: "SafeCastOverflowedUintDowncast",
344
+ type: "error"
345
+ },
346
+ {
347
+ inputs: [
348
+ {
349
+ internalType: "address",
350
+ name: "token",
351
+ type: "address"
352
+ }
353
+ ],
354
+ name: "SafeERC20FailedOperation",
355
+ type: "error"
356
+ },
357
+ {
358
+ inputs: [
359
+ {
360
+ internalType: "address",
361
+ name: "account",
362
+ type: "address"
363
+ }
364
+ ],
365
+ name: "SanctionedAddress",
366
+ type: "error"
367
+ },
368
+ {
369
+ inputs: [
370
+ {
371
+ internalType: "bytes32",
372
+ name: "handle",
373
+ type: "bytes32"
374
+ },
375
+ {
376
+ internalType: "address",
377
+ name: "sender",
378
+ type: "address"
379
+ }
380
+ ],
381
+ name: "SenderNotAllowedToUseHandle",
382
+ type: "error"
383
+ },
384
+ {
385
+ inputs: [],
386
+ name: "UUPSUnauthorizedCallContext",
387
+ type: "error"
388
+ },
389
+ {
390
+ inputs: [
391
+ {
392
+ internalType: "bytes32",
393
+ name: "slot",
394
+ type: "bytes32"
395
+ }
396
+ ],
397
+ name: "UUPSUnsupportedProxiableUUID",
398
+ type: "error"
399
+ },
400
+ {
401
+ inputs: [
402
+ {
403
+ internalType: "euint64",
404
+ name: "burntAmount",
405
+ type: "bytes32"
406
+ },
407
+ {
408
+ internalType: "address",
409
+ name: "caller",
410
+ type: "address"
411
+ },
412
+ {
413
+ internalType: "address",
414
+ name: "unwrapInitiator",
415
+ type: "address"
416
+ }
417
+ ],
418
+ name: "UnauthorizedFinalizeUnwrapCaller",
419
+ type: "error"
420
+ },
421
+ {
422
+ inputs: [],
423
+ name: "WrapperBalanceExceedsMaxSupply",
424
+ type: "error"
425
+ },
426
+ {
427
+ inputs: [],
428
+ name: "ZamaProtocolUnsupported",
429
+ type: "error"
430
+ },
431
+ {
432
+ inputs: [],
433
+ name: "ZeroAddressDeploymentCoordinator",
434
+ type: "error"
435
+ },
436
+ {
437
+ anonymous: false,
438
+ inputs: [
439
+ {
440
+ indexed: true,
441
+ internalType: "euint64",
442
+ name: "encryptedAmount",
443
+ type: "bytes32"
444
+ },
445
+ {
446
+ indexed: true,
447
+ internalType: "address",
448
+ name: "requester",
449
+ type: "address"
450
+ }
451
+ ],
452
+ name: "AmountDiscloseRequested",
453
+ type: "event"
454
+ },
455
+ {
456
+ anonymous: false,
457
+ inputs: [
458
+ {
459
+ indexed: true,
460
+ internalType: "euint64",
461
+ name: "encryptedAmount",
462
+ type: "bytes32"
463
+ },
464
+ {
465
+ indexed: false,
466
+ internalType: "uint64",
467
+ name: "amount",
468
+ type: "uint64"
469
+ }
470
+ ],
471
+ name: "AmountDisclosed",
472
+ type: "event"
473
+ },
474
+ {
475
+ anonymous: false,
476
+ inputs: [
477
+ {
478
+ indexed: true,
479
+ internalType: "address",
480
+ name: "from",
481
+ type: "address"
482
+ },
483
+ {
484
+ indexed: false,
485
+ internalType: "euint64",
486
+ name: "amount",
487
+ type: "bytes32"
488
+ },
489
+ {
490
+ indexed: false,
491
+ internalType: "uint256",
492
+ name: "txId",
493
+ type: "uint256"
494
+ }
495
+ ],
496
+ name: "BurnInfo",
497
+ type: "event"
498
+ },
499
+ {
500
+ anonymous: false,
501
+ inputs: [
502
+ {
503
+ indexed: true,
504
+ internalType: "address",
505
+ name: "from",
506
+ type: "address"
507
+ },
508
+ {
509
+ indexed: true,
510
+ internalType: "address",
511
+ name: "to",
512
+ type: "address"
513
+ },
514
+ {
515
+ indexed: true,
516
+ internalType: "euint64",
517
+ name: "amount",
518
+ type: "bytes32"
519
+ }
520
+ ],
521
+ name: "ConfidentialTransfer",
522
+ type: "event"
523
+ },
524
+ {
525
+ anonymous: false,
526
+ inputs: [
527
+ {
528
+ indexed: true,
529
+ internalType: "address",
530
+ name: "holder",
531
+ type: "address"
532
+ },
533
+ {
534
+ indexed: true,
535
+ internalType: "address",
536
+ name: "operator",
537
+ type: "address"
538
+ },
539
+ {
540
+ indexed: false,
541
+ internalType: "uint48",
542
+ name: "until",
543
+ type: "uint48"
544
+ }
545
+ ],
546
+ name: "FinalizeUnwrapOperatorSet",
547
+ type: "event"
548
+ },
549
+ {
550
+ anonymous: false,
551
+ inputs: [
552
+ {
553
+ indexed: false,
554
+ internalType: "uint64",
555
+ name: "version",
556
+ type: "uint64"
557
+ }
558
+ ],
559
+ name: "Initialized",
560
+ type: "event"
561
+ },
562
+ {
563
+ anonymous: false,
564
+ inputs: [
565
+ {
566
+ indexed: true,
567
+ internalType: "address",
568
+ name: "to",
569
+ type: "address"
570
+ },
571
+ {
572
+ indexed: false,
573
+ internalType: "uint64",
574
+ name: "amount",
575
+ type: "uint64"
576
+ },
577
+ {
578
+ indexed: false,
579
+ internalType: "uint256",
580
+ name: "txId",
581
+ type: "uint256"
582
+ }
583
+ ],
584
+ name: "MintInfo",
585
+ type: "event"
586
+ },
587
+ {
588
+ anonymous: false,
589
+ inputs: [
590
+ {
591
+ indexed: true,
592
+ internalType: "address",
593
+ name: "holder",
594
+ type: "address"
595
+ },
596
+ {
597
+ indexed: true,
598
+ internalType: "address",
599
+ name: "operator",
600
+ type: "address"
601
+ },
602
+ {
603
+ indexed: false,
604
+ internalType: "uint48",
605
+ name: "until",
606
+ type: "uint48"
607
+ }
608
+ ],
609
+ name: "OperatorSet",
610
+ type: "event"
611
+ },
612
+ {
613
+ anonymous: false,
614
+ inputs: [
615
+ {
616
+ indexed: true,
617
+ internalType: "address",
618
+ name: "previousOwner",
619
+ type: "address"
620
+ },
621
+ {
622
+ indexed: true,
623
+ internalType: "address",
624
+ name: "newOwner",
625
+ type: "address"
626
+ }
627
+ ],
628
+ name: "OwnershipTransferStarted",
629
+ type: "event"
630
+ },
631
+ {
632
+ anonymous: false,
633
+ inputs: [
634
+ {
635
+ indexed: true,
636
+ internalType: "address",
637
+ name: "previousOwner",
638
+ type: "address"
639
+ },
640
+ {
641
+ indexed: true,
642
+ internalType: "address",
643
+ name: "newOwner",
644
+ type: "address"
645
+ }
646
+ ],
647
+ name: "OwnershipTransferred",
648
+ type: "event"
649
+ },
650
+ {
651
+ anonymous: false,
652
+ inputs: [
653
+ {
654
+ indexed: false,
655
+ internalType: "bytes32[]",
656
+ name: "handlesList",
657
+ type: "bytes32[]"
658
+ },
659
+ {
660
+ indexed: false,
661
+ internalType: "bytes",
662
+ name: "abiEncodedCleartexts",
663
+ type: "bytes"
664
+ }
665
+ ],
666
+ name: "PublicDecryptionVerified",
667
+ type: "event"
668
+ },
669
+ {
670
+ anonymous: false,
671
+ inputs: [
672
+ {
673
+ indexed: true,
674
+ internalType: "address",
675
+ name: "oldRegulator",
676
+ type: "address"
677
+ },
678
+ {
679
+ indexed: true,
680
+ internalType: "address",
681
+ name: "newRegulator",
682
+ type: "address"
683
+ }
684
+ ],
685
+ name: "TokenRegulatorUpdated",
686
+ type: "event"
687
+ },
688
+ {
689
+ anonymous: false,
690
+ inputs: [
691
+ {
692
+ indexed: true,
693
+ internalType: "address",
694
+ name: "from",
695
+ type: "address"
696
+ },
697
+ {
698
+ indexed: true,
699
+ internalType: "address",
700
+ name: "to",
701
+ type: "address"
702
+ },
703
+ {
704
+ indexed: false,
705
+ internalType: "euint64",
706
+ name: "encryptedAmount",
707
+ type: "bytes32"
708
+ },
709
+ {
710
+ indexed: false,
711
+ internalType: "uint256",
712
+ name: "txId",
713
+ type: "uint256"
714
+ }
715
+ ],
716
+ name: "TransferInfo",
717
+ type: "event"
718
+ },
719
+ {
720
+ anonymous: false,
721
+ inputs: [
722
+ {
723
+ indexed: true,
724
+ internalType: "address",
725
+ name: "receiver",
726
+ type: "address"
727
+ },
728
+ {
729
+ indexed: false,
730
+ internalType: "euint64",
731
+ name: "encryptedAmount",
732
+ type: "bytes32"
733
+ },
734
+ {
735
+ indexed: false,
736
+ internalType: "uint64",
737
+ name: "cleartextAmount",
738
+ type: "uint64"
739
+ }
740
+ ],
741
+ name: "UnwrapFinalized",
742
+ type: "event"
743
+ },
744
+ {
745
+ anonymous: false,
746
+ inputs: [
747
+ {
748
+ indexed: true,
749
+ internalType: "address",
750
+ name: "receiver",
751
+ type: "address"
752
+ },
753
+ {
754
+ indexed: false,
755
+ internalType: "euint64",
756
+ name: "amount",
757
+ type: "bytes32"
758
+ }
759
+ ],
760
+ name: "UnwrapRequested",
761
+ type: "event"
762
+ },
763
+ {
764
+ anonymous: false,
765
+ inputs: [
766
+ {
767
+ indexed: true,
768
+ internalType: "euint64",
769
+ name: "burntAmountHandle",
770
+ type: "bytes32"
771
+ },
772
+ {
773
+ indexed: false,
774
+ internalType: "bool",
775
+ name: "finalizeSuccess",
776
+ type: "bool"
777
+ },
778
+ {
779
+ indexed: false,
780
+ internalType: "bool",
781
+ name: "feeTransferSuccess",
782
+ type: "bool"
783
+ },
784
+ {
785
+ indexed: false,
786
+ internalType: "uint64",
787
+ name: "burnAmount",
788
+ type: "uint64"
789
+ },
790
+ {
791
+ indexed: false,
792
+ internalType: "uint256",
793
+ name: "unwrapAmount",
794
+ type: "uint256"
795
+ },
796
+ {
797
+ indexed: false,
798
+ internalType: "uint256",
799
+ name: "feeAmount",
800
+ type: "uint256"
801
+ },
802
+ {
803
+ indexed: true,
804
+ internalType: "uint256",
805
+ name: "nextTxId",
806
+ type: "uint256"
807
+ }
808
+ ],
809
+ name: "UnwrappedFinalized",
810
+ type: "event"
811
+ },
812
+ {
813
+ anonymous: false,
814
+ inputs: [
815
+ {
816
+ indexed: false,
817
+ internalType: "bool",
818
+ name: "returnVal",
819
+ type: "bool"
820
+ },
821
+ {
822
+ indexed: true,
823
+ internalType: "uint256",
824
+ name: "requestId",
825
+ type: "uint256"
826
+ },
827
+ {
828
+ indexed: true,
829
+ internalType: "uint256",
830
+ name: "txId",
831
+ type: "uint256"
832
+ },
833
+ {
834
+ indexed: true,
835
+ internalType: "address",
836
+ name: "to",
837
+ type: "address"
838
+ },
839
+ {
840
+ indexed: false,
841
+ internalType: "address",
842
+ name: "refund",
843
+ type: "address"
844
+ },
845
+ {
846
+ indexed: false,
847
+ internalType: "euint64",
848
+ name: "requestedAmount",
849
+ type: "bytes32"
850
+ },
851
+ {
852
+ indexed: false,
853
+ internalType: "euint64",
854
+ name: "burnAmount",
855
+ type: "bytes32"
856
+ }
857
+ ],
858
+ name: "UnwrappedStarted",
859
+ type: "event"
860
+ },
861
+ {
862
+ anonymous: false,
863
+ inputs: [
864
+ {
865
+ indexed: true,
866
+ internalType: "address",
867
+ name: "implementation",
868
+ type: "address"
869
+ }
870
+ ],
871
+ name: "Upgraded",
872
+ type: "event"
873
+ },
874
+ {
875
+ anonymous: false,
876
+ inputs: [
877
+ {
878
+ indexed: false,
879
+ internalType: "uint64",
880
+ name: "mintAmount",
881
+ type: "uint64"
882
+ },
883
+ {
884
+ indexed: false,
885
+ internalType: "uint256",
886
+ name: "amountIn",
887
+ type: "uint256"
888
+ },
889
+ {
890
+ indexed: false,
891
+ internalType: "uint256",
892
+ name: "feeAmount",
893
+ type: "uint256"
894
+ },
895
+ {
896
+ indexed: true,
897
+ internalType: "address",
898
+ name: "to_",
899
+ type: "address"
900
+ },
901
+ {
902
+ indexed: true,
903
+ internalType: "uint256",
904
+ name: "mintTxId",
905
+ type: "uint256"
906
+ }
907
+ ],
908
+ name: "Wrapped",
909
+ type: "event"
910
+ },
911
+ {
912
+ inputs: [],
913
+ name: "UPGRADE_INTERFACE_VERSION",
914
+ outputs: [
915
+ {
916
+ internalType: "string",
917
+ name: "",
918
+ type: "string"
919
+ }
920
+ ],
921
+ stateMutability: "view",
922
+ type: "function"
923
+ },
924
+ {
925
+ inputs: [],
926
+ name: "acceptOwnership",
927
+ outputs: [],
928
+ stateMutability: "nonpayable",
929
+ type: "function"
930
+ },
931
+ {
932
+ inputs: [],
933
+ name: "adminProvider",
934
+ outputs: [
935
+ {
936
+ internalType: "contract AdminProvider",
937
+ name: "",
938
+ type: "address"
939
+ }
940
+ ],
941
+ stateMutability: "view",
942
+ type: "function"
943
+ },
944
+ {
945
+ inputs: [
946
+ {
947
+ internalType: "address",
948
+ name: "account",
949
+ type: "address"
950
+ }
951
+ ],
952
+ name: "confidentialBalanceOf",
953
+ outputs: [
954
+ {
955
+ internalType: "euint64",
956
+ name: "",
957
+ type: "bytes32"
958
+ }
959
+ ],
960
+ stateMutability: "view",
961
+ type: "function"
962
+ },
963
+ {
964
+ inputs: [],
965
+ name: "confidentialProtocolId",
966
+ outputs: [
967
+ {
968
+ internalType: "uint256",
969
+ name: "",
970
+ type: "uint256"
971
+ }
972
+ ],
973
+ stateMutability: "view",
974
+ type: "function"
975
+ },
976
+ {
977
+ inputs: [],
978
+ name: "confidentialTotalSupply",
979
+ outputs: [
980
+ {
981
+ internalType: "euint64",
982
+ name: "",
983
+ type: "bytes32"
984
+ }
985
+ ],
986
+ stateMutability: "view",
987
+ type: "function"
988
+ },
989
+ {
990
+ inputs: [
991
+ {
992
+ internalType: "address",
993
+ name: "to",
994
+ type: "address"
995
+ },
996
+ {
997
+ internalType: "externalEuint64",
998
+ name: "encryptedAmount",
999
+ type: "bytes32"
1000
+ },
1001
+ {
1002
+ internalType: "bytes",
1003
+ name: "inputProof",
1004
+ type: "bytes"
1005
+ }
1006
+ ],
1007
+ name: "confidentialTransfer",
1008
+ outputs: [
1009
+ {
1010
+ internalType: "euint64",
1011
+ name: "",
1012
+ type: "bytes32"
1013
+ }
1014
+ ],
1015
+ stateMutability: "nonpayable",
1016
+ type: "function"
1017
+ },
1018
+ {
1019
+ inputs: [
1020
+ {
1021
+ internalType: "address",
1022
+ name: "to",
1023
+ type: "address"
1024
+ },
1025
+ {
1026
+ internalType: "euint64",
1027
+ name: "amount",
1028
+ type: "bytes32"
1029
+ }
1030
+ ],
1031
+ name: "confidentialTransfer",
1032
+ outputs: [
1033
+ {
1034
+ internalType: "euint64",
1035
+ name: "",
1036
+ type: "bytes32"
1037
+ }
1038
+ ],
1039
+ stateMutability: "nonpayable",
1040
+ type: "function"
1041
+ },
1042
+ {
1043
+ inputs: [
1044
+ {
1045
+ internalType: "address",
1046
+ name: "to",
1047
+ type: "address"
1048
+ },
1049
+ {
1050
+ internalType: "euint64",
1051
+ name: "amount",
1052
+ type: "bytes32"
1053
+ },
1054
+ {
1055
+ internalType: "bytes",
1056
+ name: "data",
1057
+ type: "bytes"
1058
+ }
1059
+ ],
1060
+ name: "confidentialTransferAndCall",
1061
+ outputs: [
1062
+ {
1063
+ internalType: "euint64",
1064
+ name: "transferred",
1065
+ type: "bytes32"
1066
+ }
1067
+ ],
1068
+ stateMutability: "nonpayable",
1069
+ type: "function"
1070
+ },
1071
+ {
1072
+ inputs: [
1073
+ {
1074
+ internalType: "address",
1075
+ name: "to",
1076
+ type: "address"
1077
+ },
1078
+ {
1079
+ internalType: "externalEuint64",
1080
+ name: "encryptedAmount",
1081
+ type: "bytes32"
1082
+ },
1083
+ {
1084
+ internalType: "bytes",
1085
+ name: "inputProof",
1086
+ type: "bytes"
1087
+ },
1088
+ {
1089
+ internalType: "bytes",
1090
+ name: "data",
1091
+ type: "bytes"
1092
+ }
1093
+ ],
1094
+ name: "confidentialTransferAndCall",
1095
+ outputs: [
1096
+ {
1097
+ internalType: "euint64",
1098
+ name: "transferred",
1099
+ type: "bytes32"
1100
+ }
1101
+ ],
1102
+ stateMutability: "nonpayable",
1103
+ type: "function"
1104
+ },
1105
+ {
1106
+ inputs: [
1107
+ {
1108
+ internalType: "address",
1109
+ name: "from",
1110
+ type: "address"
1111
+ },
1112
+ {
1113
+ internalType: "address",
1114
+ name: "to",
1115
+ type: "address"
1116
+ },
1117
+ {
1118
+ internalType: "externalEuint64",
1119
+ name: "encryptedAmount",
1120
+ type: "bytes32"
1121
+ },
1122
+ {
1123
+ internalType: "bytes",
1124
+ name: "inputProof",
1125
+ type: "bytes"
1126
+ }
1127
+ ],
1128
+ name: "confidentialTransferFrom",
1129
+ outputs: [
1130
+ {
1131
+ internalType: "euint64",
1132
+ name: "transferred",
1133
+ type: "bytes32"
1134
+ }
1135
+ ],
1136
+ stateMutability: "nonpayable",
1137
+ type: "function"
1138
+ },
1139
+ {
1140
+ inputs: [
1141
+ {
1142
+ internalType: "address",
1143
+ name: "from",
1144
+ type: "address"
1145
+ },
1146
+ {
1147
+ internalType: "address",
1148
+ name: "to",
1149
+ type: "address"
1150
+ },
1151
+ {
1152
+ internalType: "euint64",
1153
+ name: "amount",
1154
+ type: "bytes32"
1155
+ }
1156
+ ],
1157
+ name: "confidentialTransferFrom",
1158
+ outputs: [
1159
+ {
1160
+ internalType: "euint64",
1161
+ name: "transferred",
1162
+ type: "bytes32"
1163
+ }
1164
+ ],
1165
+ stateMutability: "nonpayable",
1166
+ type: "function"
1167
+ },
1168
+ {
1169
+ inputs: [
1170
+ {
1171
+ internalType: "address",
1172
+ name: "from",
1173
+ type: "address"
1174
+ },
1175
+ {
1176
+ internalType: "address",
1177
+ name: "to",
1178
+ type: "address"
1179
+ },
1180
+ {
1181
+ internalType: "externalEuint64",
1182
+ name: "encryptedAmount",
1183
+ type: "bytes32"
1184
+ },
1185
+ {
1186
+ internalType: "bytes",
1187
+ name: "inputProof",
1188
+ type: "bytes"
1189
+ },
1190
+ {
1191
+ internalType: "bytes",
1192
+ name: "data",
1193
+ type: "bytes"
1194
+ }
1195
+ ],
1196
+ name: "confidentialTransferFromAndCall",
1197
+ outputs: [
1198
+ {
1199
+ internalType: "euint64",
1200
+ name: "transferred",
1201
+ type: "bytes32"
1202
+ }
1203
+ ],
1204
+ stateMutability: "nonpayable",
1205
+ type: "function"
1206
+ },
1207
+ {
1208
+ inputs: [
1209
+ {
1210
+ internalType: "address",
1211
+ name: "from",
1212
+ type: "address"
1213
+ },
1214
+ {
1215
+ internalType: "address",
1216
+ name: "to",
1217
+ type: "address"
1218
+ },
1219
+ {
1220
+ internalType: "euint64",
1221
+ name: "amount",
1222
+ type: "bytes32"
1223
+ },
1224
+ {
1225
+ internalType: "bytes",
1226
+ name: "data",
1227
+ type: "bytes"
1228
+ }
1229
+ ],
1230
+ name: "confidentialTransferFromAndCall",
1231
+ outputs: [
1232
+ {
1233
+ internalType: "euint64",
1234
+ name: "transferred",
1235
+ type: "bytes32"
1236
+ }
1237
+ ],
1238
+ stateMutability: "nonpayable",
1239
+ type: "function"
1240
+ },
1241
+ {
1242
+ inputs: [],
1243
+ name: "contractURI",
1244
+ outputs: [
1245
+ {
1246
+ internalType: "string",
1247
+ name: "",
1248
+ type: "string"
1249
+ }
1250
+ ],
1251
+ stateMutability: "view",
1252
+ type: "function"
1253
+ },
1254
+ {
1255
+ inputs: [],
1256
+ name: "decimals",
1257
+ outputs: [
1258
+ {
1259
+ internalType: "uint8",
1260
+ name: "",
1261
+ type: "uint8"
1262
+ }
1263
+ ],
1264
+ stateMutability: "view",
1265
+ type: "function"
1266
+ },
1267
+ {
1268
+ inputs: [],
1269
+ name: "deploymentCoordinator",
1270
+ outputs: [
1271
+ {
1272
+ internalType: "contract IDeploymentCoordinator",
1273
+ name: "",
1274
+ type: "address"
1275
+ }
1276
+ ],
1277
+ stateMutability: "view",
1278
+ type: "function"
1279
+ },
1280
+ {
1281
+ inputs: [
1282
+ {
1283
+ internalType: "euint64",
1284
+ name: "encryptedAmount",
1285
+ type: "bytes32"
1286
+ },
1287
+ {
1288
+ internalType: "uint64",
1289
+ name: "cleartextAmount",
1290
+ type: "uint64"
1291
+ },
1292
+ {
1293
+ internalType: "bytes",
1294
+ name: "decryptionProof",
1295
+ type: "bytes"
1296
+ }
1297
+ ],
1298
+ name: "discloseEncryptedAmount",
1299
+ outputs: [],
1300
+ stateMutability: "nonpayable",
1301
+ type: "function"
1302
+ },
1303
+ {
1304
+ inputs: [
1305
+ {
1306
+ internalType: "euint64",
1307
+ name: "burntAmount",
1308
+ type: "bytes32"
1309
+ },
1310
+ {
1311
+ internalType: "uint64",
1312
+ name: "burntAmountCleartext",
1313
+ type: "uint64"
1314
+ },
1315
+ {
1316
+ internalType: "bytes",
1317
+ name: "decryptionProof",
1318
+ type: "bytes"
1319
+ }
1320
+ ],
1321
+ name: "finalizeUnwrap",
1322
+ outputs: [],
1323
+ stateMutability: "nonpayable",
1324
+ type: "function"
1325
+ },
1326
+ {
1327
+ inputs: [
1328
+ {
1329
+ internalType: "euint64",
1330
+ name: "burntAmount",
1331
+ type: "bytes32"
1332
+ }
1333
+ ],
1334
+ name: "getReceiverEntry",
1335
+ outputs: [
1336
+ {
1337
+ components: [
1338
+ {
1339
+ internalType: "address",
1340
+ name: "to",
1341
+ type: "address"
1342
+ },
1343
+ {
1344
+ internalType: "address",
1345
+ name: "refund",
1346
+ type: "address"
1347
+ },
1348
+ {
1349
+ internalType: "bytes",
1350
+ name: "callbackData",
1351
+ type: "bytes"
1352
+ },
1353
+ {
1354
+ internalType: "euint64",
1355
+ name: "expectedBurnAmount",
1356
+ type: "bytes32"
1357
+ },
1358
+ {
1359
+ internalType: "euint64",
1360
+ name: "actualBurnAmount",
1361
+ type: "bytes32"
1362
+ },
1363
+ {
1364
+ internalType: "uint64",
1365
+ name: "committedFeeBasisPoints",
1366
+ type: "uint64"
1367
+ },
1368
+ {
1369
+ internalType: "address",
1370
+ name: "from",
1371
+ type: "address"
1372
+ }
1373
+ ],
1374
+ internalType: "struct RegulatedERC7984ERC20WrapperWithFeesUpgradeable.ReceiverEntry",
1375
+ name: "",
1376
+ type: "tuple"
1377
+ }
1378
+ ],
1379
+ stateMutability: "view",
1380
+ type: "function"
1381
+ },
1382
+ {
1383
+ inputs: [
1384
+ {
1385
+ internalType: "string",
1386
+ name: "name_",
1387
+ type: "string"
1388
+ },
1389
+ {
1390
+ internalType: "string",
1391
+ name: "symbol_",
1392
+ type: "string"
1393
+ },
1394
+ {
1395
+ internalType: "string",
1396
+ name: "contractURI_",
1397
+ type: "string"
1398
+ },
1399
+ {
1400
+ internalType: "contract IERC20",
1401
+ name: "underlying_",
1402
+ type: "address"
1403
+ },
1404
+ {
1405
+ internalType: "address",
1406
+ name: "owner_",
1407
+ type: "address"
1408
+ },
1409
+ {
1410
+ internalType: "contract IDeploymentCoordinator",
1411
+ name: "deploymentCoordinator_",
1412
+ type: "address"
1413
+ }
1414
+ ],
1415
+ name: "initialize",
1416
+ outputs: [],
1417
+ stateMutability: "nonpayable",
1418
+ type: "function"
1419
+ },
1420
+ {
1421
+ inputs: [
1422
+ {
1423
+ internalType: "address",
1424
+ name: "holder",
1425
+ type: "address"
1426
+ },
1427
+ {
1428
+ internalType: "address",
1429
+ name: "operator",
1430
+ type: "address"
1431
+ }
1432
+ ],
1433
+ name: "isFinalizeUnwrapOperator",
1434
+ outputs: [
1435
+ {
1436
+ internalType: "bool",
1437
+ name: "",
1438
+ type: "bool"
1439
+ }
1440
+ ],
1441
+ stateMutability: "view",
1442
+ type: "function"
1443
+ },
1444
+ {
1445
+ inputs: [
1446
+ {
1447
+ internalType: "address",
1448
+ name: "holder",
1449
+ type: "address"
1450
+ },
1451
+ {
1452
+ internalType: "address",
1453
+ name: "spender",
1454
+ type: "address"
1455
+ }
1456
+ ],
1457
+ name: "isOperator",
1458
+ outputs: [
1459
+ {
1460
+ internalType: "bool",
1461
+ name: "",
1462
+ type: "bool"
1463
+ }
1464
+ ],
1465
+ stateMutability: "view",
1466
+ type: "function"
1467
+ },
1468
+ {
1469
+ inputs: [],
1470
+ name: "maxTotalSupply",
1471
+ outputs: [
1472
+ {
1473
+ internalType: "uint256",
1474
+ name: "",
1475
+ type: "uint256"
1476
+ }
1477
+ ],
1478
+ stateMutability: "view",
1479
+ type: "function"
1480
+ },
1481
+ {
1482
+ inputs: [],
1483
+ name: "name",
1484
+ outputs: [
1485
+ {
1486
+ internalType: "string",
1487
+ name: "",
1488
+ type: "string"
1489
+ }
1490
+ ],
1491
+ stateMutability: "view",
1492
+ type: "function"
1493
+ },
1494
+ {
1495
+ inputs: [],
1496
+ name: "nextTxId",
1497
+ outputs: [
1498
+ {
1499
+ internalType: "uint256",
1500
+ name: "",
1501
+ type: "uint256"
1502
+ }
1503
+ ],
1504
+ stateMutability: "view",
1505
+ type: "function"
1506
+ },
1507
+ {
1508
+ inputs: [
1509
+ {
1510
+ internalType: "address",
1511
+ name: "",
1512
+ type: "address"
1513
+ },
1514
+ {
1515
+ internalType: "address",
1516
+ name: "from",
1517
+ type: "address"
1518
+ },
1519
+ {
1520
+ internalType: "uint256",
1521
+ name: "amount",
1522
+ type: "uint256"
1523
+ },
1524
+ {
1525
+ internalType: "bytes",
1526
+ name: "data",
1527
+ type: "bytes"
1528
+ }
1529
+ ],
1530
+ name: "onTransferReceived",
1531
+ outputs: [
1532
+ {
1533
+ internalType: "bytes4",
1534
+ name: "",
1535
+ type: "bytes4"
1536
+ }
1537
+ ],
1538
+ stateMutability: "nonpayable",
1539
+ type: "function"
1540
+ },
1541
+ {
1542
+ inputs: [],
1543
+ name: "owner",
1544
+ outputs: [
1545
+ {
1546
+ internalType: "address",
1547
+ name: "",
1548
+ type: "address"
1549
+ }
1550
+ ],
1551
+ stateMutability: "view",
1552
+ type: "function"
1553
+ },
1554
+ {
1555
+ inputs: [],
1556
+ name: "pendingOwner",
1557
+ outputs: [
1558
+ {
1559
+ internalType: "address",
1560
+ name: "",
1561
+ type: "address"
1562
+ }
1563
+ ],
1564
+ stateMutability: "view",
1565
+ type: "function"
1566
+ },
1567
+ {
1568
+ inputs: [],
1569
+ name: "proxiableUUID",
1570
+ outputs: [
1571
+ {
1572
+ internalType: "bytes32",
1573
+ name: "",
1574
+ type: "bytes32"
1575
+ }
1576
+ ],
1577
+ stateMutability: "view",
1578
+ type: "function"
1579
+ },
1580
+ {
1581
+ inputs: [],
1582
+ name: "rate",
1583
+ outputs: [
1584
+ {
1585
+ internalType: "uint256",
1586
+ name: "",
1587
+ type: "uint256"
1588
+ }
1589
+ ],
1590
+ stateMutability: "view",
1591
+ type: "function"
1592
+ },
1593
+ {
1594
+ inputs: [],
1595
+ name: "regulator",
1596
+ outputs: [
1597
+ {
1598
+ internalType: "address",
1599
+ name: "",
1600
+ type: "address"
1601
+ }
1602
+ ],
1603
+ stateMutability: "view",
1604
+ type: "function"
1605
+ },
1606
+ {
1607
+ inputs: [],
1608
+ name: "renounceOwnership",
1609
+ outputs: [],
1610
+ stateMutability: "nonpayable",
1611
+ type: "function"
1612
+ },
1613
+ {
1614
+ inputs: [
1615
+ {
1616
+ internalType: "euint64",
1617
+ name: "encryptedAmount",
1618
+ type: "bytes32"
1619
+ }
1620
+ ],
1621
+ name: "requestDiscloseEncryptedAmount",
1622
+ outputs: [],
1623
+ stateMutability: "nonpayable",
1624
+ type: "function"
1625
+ },
1626
+ {
1627
+ inputs: [],
1628
+ name: "requestId",
1629
+ outputs: [
1630
+ {
1631
+ internalType: "uint256",
1632
+ name: "",
1633
+ type: "uint256"
1634
+ }
1635
+ ],
1636
+ stateMutability: "view",
1637
+ type: "function"
1638
+ },
1639
+ {
1640
+ inputs: [
1641
+ {
1642
+ internalType: "address",
1643
+ name: "operator",
1644
+ type: "address"
1645
+ },
1646
+ {
1647
+ internalType: "uint48",
1648
+ name: "until",
1649
+ type: "uint48"
1650
+ }
1651
+ ],
1652
+ name: "setFinalizeUnwrapOperator",
1653
+ outputs: [],
1654
+ stateMutability: "nonpayable",
1655
+ type: "function"
1656
+ },
1657
+ {
1658
+ inputs: [
1659
+ {
1660
+ internalType: "address",
1661
+ name: "operator",
1662
+ type: "address"
1663
+ },
1664
+ {
1665
+ internalType: "uint48",
1666
+ name: "until",
1667
+ type: "uint48"
1668
+ }
1669
+ ],
1670
+ name: "setOperator",
1671
+ outputs: [],
1672
+ stateMutability: "nonpayable",
1673
+ type: "function"
1674
+ },
1675
+ {
1676
+ inputs: [
1677
+ {
1678
+ internalType: "address",
1679
+ name: "newRegulator",
1680
+ type: "address"
1681
+ }
1682
+ ],
1683
+ name: "setTokenRegulator",
1684
+ outputs: [],
1685
+ stateMutability: "nonpayable",
1686
+ type: "function"
1687
+ },
1688
+ {
1689
+ inputs: [
1690
+ {
1691
+ internalType: "bytes4",
1692
+ name: "interfaceId",
1693
+ type: "bytes4"
1694
+ }
1695
+ ],
1696
+ name: "supportsInterface",
1697
+ outputs: [
1698
+ {
1699
+ internalType: "bool",
1700
+ name: "",
1701
+ type: "bool"
1702
+ }
1703
+ ],
1704
+ stateMutability: "view",
1705
+ type: "function"
1706
+ },
1707
+ {
1708
+ inputs: [],
1709
+ name: "symbol",
1710
+ outputs: [
1711
+ {
1712
+ internalType: "string",
1713
+ name: "",
1714
+ type: "string"
1715
+ }
1716
+ ],
1717
+ stateMutability: "view",
1718
+ type: "function"
1719
+ },
1720
+ {
1721
+ inputs: [],
1722
+ name: "tokenRegulator",
1723
+ outputs: [
1724
+ {
1725
+ internalType: "address",
1726
+ name: "",
1727
+ type: "address"
1728
+ }
1729
+ ],
1730
+ stateMutability: "view",
1731
+ type: "function"
1732
+ },
1733
+ {
1734
+ inputs: [],
1735
+ name: "totalSupply",
1736
+ outputs: [
1737
+ {
1738
+ internalType: "uint256",
1739
+ name: "",
1740
+ type: "uint256"
1741
+ }
1742
+ ],
1743
+ stateMutability: "view",
1744
+ type: "function"
1745
+ },
1746
+ {
1747
+ inputs: [
1748
+ {
1749
+ internalType: "address",
1750
+ name: "newOwner",
1751
+ type: "address"
1752
+ }
1753
+ ],
1754
+ name: "transferOwnership",
1755
+ outputs: [],
1756
+ stateMutability: "nonpayable",
1757
+ type: "function"
1758
+ },
1759
+ {
1760
+ inputs: [],
1761
+ name: "underlying",
1762
+ outputs: [
1763
+ {
1764
+ internalType: "address",
1765
+ name: "",
1766
+ type: "address"
1767
+ }
1768
+ ],
1769
+ stateMutability: "view",
1770
+ type: "function"
1771
+ },
1772
+ {
1773
+ inputs: [
1774
+ {
1775
+ internalType: "address",
1776
+ name: "from",
1777
+ type: "address"
1778
+ },
1779
+ {
1780
+ internalType: "address",
1781
+ name: "to",
1782
+ type: "address"
1783
+ },
1784
+ {
1785
+ internalType: "externalEuint64",
1786
+ name: "encryptedAmount",
1787
+ type: "bytes32"
1788
+ },
1789
+ {
1790
+ internalType: "bytes",
1791
+ name: "inputProof",
1792
+ type: "bytes"
1793
+ }
1794
+ ],
1795
+ name: "unwrap",
1796
+ outputs: [],
1797
+ stateMutability: "nonpayable",
1798
+ type: "function"
1799
+ },
1800
+ {
1801
+ inputs: [
1802
+ {
1803
+ internalType: "address",
1804
+ name: "from",
1805
+ type: "address"
1806
+ },
1807
+ {
1808
+ internalType: "address",
1809
+ name: "to",
1810
+ type: "address"
1811
+ },
1812
+ {
1813
+ internalType: "euint64",
1814
+ name: "amount",
1815
+ type: "bytes32"
1816
+ }
1817
+ ],
1818
+ name: "unwrap",
1819
+ outputs: [],
1820
+ stateMutability: "nonpayable",
1821
+ type: "function"
1822
+ },
1823
+ {
1824
+ inputs: [
1825
+ {
1826
+ internalType: "address",
1827
+ name: "from",
1828
+ type: "address"
1829
+ },
1830
+ {
1831
+ internalType: "address",
1832
+ name: "to",
1833
+ type: "address"
1834
+ },
1835
+ {
1836
+ internalType: "euint64",
1837
+ name: "amount",
1838
+ type: "bytes32"
1839
+ },
1840
+ {
1841
+ internalType: "address",
1842
+ name: "refund",
1843
+ type: "address"
1844
+ },
1845
+ {
1846
+ internalType: "bytes",
1847
+ name: "unwrapCallbackData",
1848
+ type: "bytes"
1849
+ }
1850
+ ],
1851
+ name: "unwrapAndCall",
1852
+ outputs: [],
1853
+ stateMutability: "nonpayable",
1854
+ type: "function"
1855
+ },
1856
+ {
1857
+ inputs: [
1858
+ {
1859
+ internalType: "address",
1860
+ name: "from",
1861
+ type: "address"
1862
+ },
1863
+ {
1864
+ internalType: "address",
1865
+ name: "to",
1866
+ type: "address"
1867
+ },
1868
+ {
1869
+ internalType: "externalEuint64",
1870
+ name: "encryptedAmount",
1871
+ type: "bytes32"
1872
+ },
1873
+ {
1874
+ internalType: "bytes",
1875
+ name: "inputProof",
1876
+ type: "bytes"
1877
+ },
1878
+ {
1879
+ internalType: "address",
1880
+ name: "refund",
1881
+ type: "address"
1882
+ },
1883
+ {
1884
+ internalType: "bytes",
1885
+ name: "unwrapCallbackData",
1886
+ type: "bytes"
1887
+ }
1888
+ ],
1889
+ name: "unwrapAndCall",
1890
+ outputs: [],
1891
+ stateMutability: "nonpayable",
1892
+ type: "function"
1893
+ },
1894
+ {
1895
+ inputs: [
1896
+ {
1897
+ internalType: "address",
1898
+ name: "from",
1899
+ type: "address"
1900
+ },
1901
+ {
1902
+ internalType: "address",
1903
+ name: "to",
1904
+ type: "address"
1905
+ },
1906
+ {
1907
+ internalType: "euint64",
1908
+ name: "amount",
1909
+ type: "bytes32"
1910
+ },
1911
+ {
1912
+ internalType: "address",
1913
+ name: "refund",
1914
+ type: "address"
1915
+ }
1916
+ ],
1917
+ name: "unwrapWithRefund",
1918
+ outputs: [],
1919
+ stateMutability: "nonpayable",
1920
+ type: "function"
1921
+ },
1922
+ {
1923
+ inputs: [
1924
+ {
1925
+ internalType: "address",
1926
+ name: "from",
1927
+ type: "address"
1928
+ },
1929
+ {
1930
+ internalType: "address",
1931
+ name: "to",
1932
+ type: "address"
1933
+ },
1934
+ {
1935
+ internalType: "externalEuint64",
1936
+ name: "encryptedAmount",
1937
+ type: "bytes32"
1938
+ },
1939
+ {
1940
+ internalType: "bytes",
1941
+ name: "inputProof",
1942
+ type: "bytes"
1943
+ },
1944
+ {
1945
+ internalType: "address",
1946
+ name: "refund",
1947
+ type: "address"
1948
+ }
1949
+ ],
1950
+ name: "unwrapWithRefund",
1951
+ outputs: [],
1952
+ stateMutability: "nonpayable",
1953
+ type: "function"
1954
+ },
1955
+ {
1956
+ inputs: [
1957
+ {
1958
+ internalType: "address",
1959
+ name: "newImplementation",
1960
+ type: "address"
1961
+ },
1962
+ {
1963
+ internalType: "bytes",
1964
+ name: "data",
1965
+ type: "bytes"
1966
+ }
1967
+ ],
1968
+ name: "upgradeToAndCall",
1969
+ outputs: [],
1970
+ stateMutability: "payable",
1971
+ type: "function"
1972
+ },
1973
+ {
1974
+ inputs: [
1975
+ {
1976
+ internalType: "address",
1977
+ name: "to",
1978
+ type: "address"
1979
+ },
1980
+ {
1981
+ internalType: "uint256",
1982
+ name: "amount",
1983
+ type: "uint256"
1984
+ }
1985
+ ],
1986
+ name: "wrap",
1987
+ outputs: [],
1988
+ stateMutability: "nonpayable",
1989
+ type: "function"
1990
+ },
1991
+ {
1992
+ inputs: [
1993
+ {
1994
+ internalType: "address",
1995
+ name: "to",
1996
+ type: "address"
1997
+ },
1998
+ {
1999
+ internalType: "uint256",
2000
+ name: "amount",
2001
+ type: "uint256"
2002
+ }
2003
+ ],
2004
+ name: "wrapETH",
2005
+ outputs: [],
2006
+ stateMutability: "payable",
2007
+ type: "function"
2008
+ }
2009
+ ];
2010
+
2011
+ // src/abi/fee-manager.abi.ts
2012
+ var FEE_MANAGER_ABI = [
2013
+ {
2014
+ inputs: [
2015
+ {
2016
+ internalType: "uint64",
2017
+ name: "wrapFeeBasisPoints_",
2018
+ type: "uint64"
2019
+ },
2020
+ {
2021
+ internalType: "uint64",
2022
+ name: "unwrapFeeBasisPoints_",
2023
+ type: "uint64"
2024
+ },
2025
+ {
2026
+ internalType: "uint64",
2027
+ name: "deployFee_",
2028
+ type: "uint64"
2029
+ },
2030
+ {
2031
+ internalType: "uint64",
2032
+ name: "batchTransferFee_",
2033
+ type: "uint64"
2034
+ },
2035
+ {
2036
+ internalType: "address",
2037
+ name: "feeRecipient_",
2038
+ type: "address"
2039
+ }
2040
+ ],
2041
+ stateMutability: "nonpayable",
2042
+ type: "constructor"
2043
+ },
2044
+ {
2045
+ inputs: [],
2046
+ name: "AccessControlBadConfirmation",
2047
+ type: "error"
2048
+ },
2049
+ {
2050
+ inputs: [
2051
+ {
2052
+ internalType: "address",
2053
+ name: "account",
2054
+ type: "address"
2055
+ },
2056
+ {
2057
+ internalType: "bytes32",
2058
+ name: "neededRole",
2059
+ type: "bytes32"
2060
+ }
2061
+ ],
2062
+ name: "AccessControlUnauthorizedAccount",
2063
+ type: "error"
2064
+ },
2065
+ {
2066
+ inputs: [],
2067
+ name: "FeeExceedsMaximum",
2068
+ type: "error"
2069
+ },
2070
+ {
2071
+ inputs: [],
2072
+ name: "ZeroAddressFeeRecipient",
2073
+ type: "error"
2074
+ },
2075
+ {
2076
+ anonymous: false,
2077
+ inputs: [
2078
+ {
2079
+ indexed: false,
2080
+ internalType: "uint64",
2081
+ name: "oldBatchTransferFee",
2082
+ type: "uint64"
2083
+ },
2084
+ {
2085
+ indexed: false,
2086
+ internalType: "uint64",
2087
+ name: "newBatchTransferFee",
2088
+ type: "uint64"
2089
+ }
2090
+ ],
2091
+ name: "BatchTransferFeeUpdated",
2092
+ type: "event"
2093
+ },
2094
+ {
2095
+ anonymous: false,
2096
+ inputs: [
2097
+ {
2098
+ indexed: false,
2099
+ internalType: "uint64",
2100
+ name: "oldDeployFee",
2101
+ type: "uint64"
2102
+ },
2103
+ {
2104
+ indexed: false,
2105
+ internalType: "uint64",
2106
+ name: "newDeployFee",
2107
+ type: "uint64"
2108
+ }
2109
+ ],
2110
+ name: "DeployFeeUpdated",
2111
+ type: "event"
2112
+ },
2113
+ {
2114
+ anonymous: false,
2115
+ inputs: [
2116
+ {
2117
+ indexed: true,
2118
+ internalType: "address",
2119
+ name: "oldRecipient",
2120
+ type: "address"
2121
+ },
2122
+ {
2123
+ indexed: true,
2124
+ internalType: "address",
2125
+ name: "newRecipient",
2126
+ type: "address"
2127
+ }
2128
+ ],
2129
+ name: "FeeRecipientUpdated",
2130
+ type: "event"
2131
+ },
2132
+ {
2133
+ anonymous: false,
2134
+ inputs: [
2135
+ {
2136
+ indexed: true,
2137
+ internalType: "bytes32",
2138
+ name: "role",
2139
+ type: "bytes32"
2140
+ },
2141
+ {
2142
+ indexed: true,
2143
+ internalType: "bytes32",
2144
+ name: "previousAdminRole",
2145
+ type: "bytes32"
2146
+ },
2147
+ {
2148
+ indexed: true,
2149
+ internalType: "bytes32",
2150
+ name: "newAdminRole",
2151
+ type: "bytes32"
2152
+ }
2153
+ ],
2154
+ name: "RoleAdminChanged",
2155
+ type: "event"
2156
+ },
2157
+ {
2158
+ anonymous: false,
2159
+ inputs: [
2160
+ {
2161
+ indexed: true,
2162
+ internalType: "bytes32",
2163
+ name: "role",
2164
+ type: "bytes32"
2165
+ },
2166
+ {
2167
+ indexed: true,
2168
+ internalType: "address",
2169
+ name: "account",
2170
+ type: "address"
2171
+ },
2172
+ {
2173
+ indexed: true,
2174
+ internalType: "address",
2175
+ name: "sender",
2176
+ type: "address"
2177
+ }
2178
+ ],
2179
+ name: "RoleGranted",
2180
+ type: "event"
2181
+ },
2182
+ {
2183
+ anonymous: false,
2184
+ inputs: [
2185
+ {
2186
+ indexed: true,
2187
+ internalType: "bytes32",
2188
+ name: "role",
2189
+ type: "bytes32"
2190
+ },
2191
+ {
2192
+ indexed: true,
2193
+ internalType: "address",
2194
+ name: "account",
2195
+ type: "address"
2196
+ },
2197
+ {
2198
+ indexed: true,
2199
+ internalType: "address",
2200
+ name: "sender",
2201
+ type: "address"
2202
+ }
2203
+ ],
2204
+ name: "RoleRevoked",
2205
+ type: "event"
2206
+ },
2207
+ {
2208
+ anonymous: false,
2209
+ inputs: [
2210
+ {
2211
+ indexed: false,
2212
+ internalType: "bool",
2213
+ name: "active",
2214
+ type: "bool"
2215
+ }
2216
+ ],
2217
+ name: "SwapperFeeWaiverUpdated",
2218
+ type: "event"
2219
+ },
2220
+ {
2221
+ anonymous: false,
2222
+ inputs: [
2223
+ {
2224
+ indexed: false,
2225
+ internalType: "uint64",
2226
+ name: "oldFeeBasisPoints",
2227
+ type: "uint64"
2228
+ },
2229
+ {
2230
+ indexed: false,
2231
+ internalType: "uint64",
2232
+ name: "newFeeBasisPoints",
2233
+ type: "uint64"
2234
+ }
2235
+ ],
2236
+ name: "UnwrapFeeBasisPointsUpdated",
2237
+ type: "event"
2238
+ },
2239
+ {
2240
+ anonymous: false,
2241
+ inputs: [
2242
+ {
2243
+ indexed: false,
2244
+ internalType: "uint64",
2245
+ name: "oldFeeBasisPoints",
2246
+ type: "uint64"
2247
+ },
2248
+ {
2249
+ indexed: false,
2250
+ internalType: "uint64",
2251
+ name: "newFeeBasisPoints",
2252
+ type: "uint64"
2253
+ }
2254
+ ],
2255
+ name: "WrapFeeBasisPointsUpdated",
2256
+ type: "event"
2257
+ },
2258
+ {
2259
+ inputs: [],
2260
+ name: "DEFAULT_ADMIN_ROLE",
2261
+ outputs: [
2262
+ {
2263
+ internalType: "bytes32",
2264
+ name: "",
2265
+ type: "bytes32"
2266
+ }
2267
+ ],
2268
+ stateMutability: "view",
2269
+ type: "function"
2270
+ },
2271
+ {
2272
+ inputs: [],
2273
+ name: "FEE_MANAGER_ROLE",
2274
+ outputs: [
2275
+ {
2276
+ internalType: "bytes32",
2277
+ name: "",
2278
+ type: "bytes32"
2279
+ }
2280
+ ],
2281
+ stateMutability: "view",
2282
+ type: "function"
2283
+ },
2284
+ {
2285
+ inputs: [],
2286
+ name: "MAX_BASIS_POINTS",
2287
+ outputs: [
2288
+ {
2289
+ internalType: "uint64",
2290
+ name: "",
2291
+ type: "uint64"
2292
+ }
2293
+ ],
2294
+ stateMutability: "view",
2295
+ type: "function"
2296
+ },
2297
+ {
2298
+ inputs: [],
2299
+ name: "SWAPPER_ROLE",
2300
+ outputs: [
2301
+ {
2302
+ internalType: "bytes32",
2303
+ name: "",
2304
+ type: "bytes32"
2305
+ }
2306
+ ],
2307
+ stateMutability: "view",
2308
+ type: "function"
2309
+ },
2310
+ {
2311
+ inputs: [],
2312
+ name: "batchTransferFee",
2313
+ outputs: [
2314
+ {
2315
+ internalType: "uint64",
2316
+ name: "",
2317
+ type: "uint64"
2318
+ }
2319
+ ],
2320
+ stateMutability: "view",
2321
+ type: "function"
2322
+ },
2323
+ {
2324
+ inputs: [],
2325
+ name: "deployFee",
2326
+ outputs: [
2327
+ {
2328
+ internalType: "uint64",
2329
+ name: "",
2330
+ type: "uint64"
2331
+ }
2332
+ ],
2333
+ stateMutability: "view",
2334
+ type: "function"
2335
+ },
2336
+ {
2337
+ inputs: [],
2338
+ name: "feeRecipient",
2339
+ outputs: [
2340
+ {
2341
+ internalType: "address",
2342
+ name: "",
2343
+ type: "address"
2344
+ }
2345
+ ],
2346
+ stateMutability: "view",
2347
+ type: "function"
2348
+ },
2349
+ {
2350
+ inputs: [],
2351
+ name: "getBatchTransferFee",
2352
+ outputs: [
2353
+ {
2354
+ internalType: "uint64",
2355
+ name: "",
2356
+ type: "uint64"
2357
+ }
2358
+ ],
2359
+ stateMutability: "view",
2360
+ type: "function"
2361
+ },
2362
+ {
2363
+ inputs: [
2364
+ {
2365
+ internalType: "address",
2366
+ name: "deployer",
2367
+ type: "address"
2368
+ }
2369
+ ],
2370
+ name: "getDeployFee",
2371
+ outputs: [
2372
+ {
2373
+ internalType: "uint64",
2374
+ name: "",
2375
+ type: "uint64"
2376
+ }
2377
+ ],
2378
+ stateMutability: "view",
2379
+ type: "function"
2380
+ },
2381
+ {
2382
+ inputs: [],
2383
+ name: "getFeeRecipient",
2384
+ outputs: [
2385
+ {
2386
+ internalType: "address",
2387
+ name: "",
2388
+ type: "address"
2389
+ }
2390
+ ],
2391
+ stateMutability: "view",
2392
+ type: "function"
2393
+ },
2394
+ {
2395
+ inputs: [
2396
+ {
2397
+ internalType: "bytes32",
2398
+ name: "role",
2399
+ type: "bytes32"
2400
+ }
2401
+ ],
2402
+ name: "getRoleAdmin",
2403
+ outputs: [
2404
+ {
2405
+ internalType: "bytes32",
2406
+ name: "",
2407
+ type: "bytes32"
2408
+ }
2409
+ ],
2410
+ stateMutability: "view",
2411
+ type: "function"
2412
+ },
2413
+ {
2414
+ inputs: [
2415
+ {
2416
+ internalType: "uint64",
2417
+ name: "amount",
2418
+ type: "uint64"
2419
+ },
2420
+ {
2421
+ internalType: "address",
2422
+ name: "unwrapFrom",
2423
+ type: "address"
2424
+ },
2425
+ {
2426
+ internalType: "address",
2427
+ name: "unwrapTo",
2428
+ type: "address"
2429
+ }
2430
+ ],
2431
+ name: "getUnwrapFee",
2432
+ outputs: [
2433
+ {
2434
+ internalType: "uint64",
2435
+ name: "",
2436
+ type: "uint64"
2437
+ }
2438
+ ],
2439
+ stateMutability: "view",
2440
+ type: "function"
2441
+ },
2442
+ {
2443
+ inputs: [
2444
+ {
2445
+ internalType: "uint256",
2446
+ name: "amount",
2447
+ type: "uint256"
2448
+ },
2449
+ {
2450
+ internalType: "address",
2451
+ name: "wrapFrom",
2452
+ type: "address"
2453
+ },
2454
+ {
2455
+ internalType: "address",
2456
+ name: "wrapTo",
2457
+ type: "address"
2458
+ }
2459
+ ],
2460
+ name: "getWrapFee",
2461
+ outputs: [
2462
+ {
2463
+ internalType: "uint256",
2464
+ name: "",
2465
+ type: "uint256"
2466
+ }
2467
+ ],
2468
+ stateMutability: "view",
2469
+ type: "function"
2470
+ },
2471
+ {
2472
+ inputs: [
2473
+ {
2474
+ internalType: "bytes32",
2475
+ name: "role",
2476
+ type: "bytes32"
2477
+ },
2478
+ {
2479
+ internalType: "address",
2480
+ name: "account",
2481
+ type: "address"
2482
+ }
2483
+ ],
2484
+ name: "grantRole",
2485
+ outputs: [],
2486
+ stateMutability: "nonpayable",
2487
+ type: "function"
2488
+ },
2489
+ {
2490
+ inputs: [
2491
+ {
2492
+ internalType: "bytes32",
2493
+ name: "role",
2494
+ type: "bytes32"
2495
+ },
2496
+ {
2497
+ internalType: "address",
2498
+ name: "account",
2499
+ type: "address"
2500
+ }
2501
+ ],
2502
+ name: "hasRole",
2503
+ outputs: [
2504
+ {
2505
+ internalType: "bool",
2506
+ name: "",
2507
+ type: "bool"
2508
+ }
2509
+ ],
2510
+ stateMutability: "view",
2511
+ type: "function"
2512
+ },
2513
+ {
2514
+ inputs: [],
2515
+ name: "protocolId",
2516
+ outputs: [
2517
+ {
2518
+ internalType: "uint256",
2519
+ name: "",
2520
+ type: "uint256"
2521
+ }
2522
+ ],
2523
+ stateMutability: "pure",
2524
+ type: "function"
2525
+ },
2526
+ {
2527
+ inputs: [
2528
+ {
2529
+ internalType: "bytes32",
2530
+ name: "role",
2531
+ type: "bytes32"
2532
+ },
2533
+ {
2534
+ internalType: "address",
2535
+ name: "callerConfirmation",
2536
+ type: "address"
2537
+ }
2538
+ ],
2539
+ name: "renounceRole",
2540
+ outputs: [],
2541
+ stateMutability: "nonpayable",
2542
+ type: "function"
2543
+ },
2544
+ {
2545
+ inputs: [
2546
+ {
2547
+ internalType: "bytes32",
2548
+ name: "role",
2549
+ type: "bytes32"
2550
+ },
2551
+ {
2552
+ internalType: "address",
2553
+ name: "account",
2554
+ type: "address"
2555
+ }
2556
+ ],
2557
+ name: "revokeRole",
2558
+ outputs: [],
2559
+ stateMutability: "nonpayable",
2560
+ type: "function"
2561
+ },
2562
+ {
2563
+ inputs: [
2564
+ {
2565
+ internalType: "uint64",
2566
+ name: "newBatchTransferFee",
2567
+ type: "uint64"
2568
+ }
2569
+ ],
2570
+ name: "setBatchTransferFee",
2571
+ outputs: [],
2572
+ stateMutability: "nonpayable",
2573
+ type: "function"
2574
+ },
2575
+ {
2576
+ inputs: [
2577
+ {
2578
+ internalType: "uint64",
2579
+ name: "newDeployFee",
2580
+ type: "uint64"
2581
+ }
2582
+ ],
2583
+ name: "setDeployFee",
2584
+ outputs: [],
2585
+ stateMutability: "nonpayable",
2586
+ type: "function"
2587
+ },
2588
+ {
2589
+ inputs: [
2590
+ {
2591
+ internalType: "address",
2592
+ name: "recipient",
2593
+ type: "address"
2594
+ }
2595
+ ],
2596
+ name: "setFeeRecipient",
2597
+ outputs: [],
2598
+ stateMutability: "nonpayable",
2599
+ type: "function"
2600
+ },
2601
+ {
2602
+ inputs: [
2603
+ {
2604
+ internalType: "bool",
2605
+ name: "active",
2606
+ type: "bool"
2607
+ }
2608
+ ],
2609
+ name: "setSwapperFeeWaiverActive",
2610
+ outputs: [],
2611
+ stateMutability: "nonpayable",
2612
+ type: "function"
2613
+ },
2614
+ {
2615
+ inputs: [
2616
+ {
2617
+ internalType: "uint64",
2618
+ name: "feeBasisPoints",
2619
+ type: "uint64"
2620
+ }
2621
+ ],
2622
+ name: "setUnwrapFeeBasisPoints",
2623
+ outputs: [],
2624
+ stateMutability: "nonpayable",
2625
+ type: "function"
2626
+ },
2627
+ {
2628
+ inputs: [
2629
+ {
2630
+ internalType: "uint64",
2631
+ name: "feeBasisPoints",
2632
+ type: "uint64"
2633
+ }
2634
+ ],
2635
+ name: "setWrapFeeBasisPoints",
2636
+ outputs: [],
2637
+ stateMutability: "nonpayable",
2638
+ type: "function"
2639
+ },
2640
+ {
2641
+ inputs: [
2642
+ {
2643
+ internalType: "bytes4",
2644
+ name: "interfaceId",
2645
+ type: "bytes4"
2646
+ }
2647
+ ],
2648
+ name: "supportsInterface",
2649
+ outputs: [
2650
+ {
2651
+ internalType: "bool",
2652
+ name: "",
2653
+ type: "bool"
2654
+ }
2655
+ ],
2656
+ stateMutability: "view",
2657
+ type: "function"
2658
+ },
2659
+ {
2660
+ inputs: [],
2661
+ name: "swapperFeeWaiverActive",
2662
+ outputs: [
2663
+ {
2664
+ internalType: "bool",
2665
+ name: "",
2666
+ type: "bool"
2667
+ }
2668
+ ],
2669
+ stateMutability: "view",
2670
+ type: "function"
2671
+ },
2672
+ {
2673
+ inputs: [],
2674
+ name: "unwrapFeeBasisPoints",
2675
+ outputs: [
2676
+ {
2677
+ internalType: "uint64",
2678
+ name: "",
2679
+ type: "uint64"
2680
+ }
2681
+ ],
2682
+ stateMutability: "view",
2683
+ type: "function"
2684
+ },
2685
+ {
2686
+ inputs: [],
2687
+ name: "wrapFeeBasisPoints",
2688
+ outputs: [
2689
+ {
2690
+ internalType: "uint64",
2691
+ name: "",
2692
+ type: "uint64"
2693
+ }
2694
+ ],
2695
+ stateMutability: "view",
2696
+ type: "function"
2697
+ }
2698
+ ];
2699
+
2700
+ // src/abi/transfer-batch.abi.ts
2701
+ var TRANSFER_BATCHER_ABI = [
2702
+ {
2703
+ inputs: [
2704
+ {
2705
+ internalType: "contract AdminProvider",
2706
+ name: "adminProvider_",
2707
+ type: "address"
2708
+ }
2709
+ ],
2710
+ stateMutability: "nonpayable",
2711
+ type: "constructor"
2712
+ },
2713
+ {
2714
+ inputs: [
2715
+ {
2716
+ internalType: "address",
2717
+ name: "holder",
2718
+ type: "address"
2719
+ },
2720
+ {
2721
+ internalType: "address",
2722
+ name: "spender",
2723
+ type: "address"
2724
+ }
2725
+ ],
2726
+ name: "ERC7984UnauthorizedSpender",
2727
+ type: "error"
2728
+ },
2729
+ {
2730
+ inputs: [],
2731
+ name: "EmptyTransferArray",
2732
+ type: "error"
2733
+ },
2734
+ {
2735
+ inputs: [],
2736
+ name: "FeeTransferFailed",
2737
+ type: "error"
2738
+ },
2739
+ {
2740
+ inputs: [],
2741
+ name: "InsufficientFee",
2742
+ type: "error"
2743
+ },
2744
+ {
2745
+ inputs: [],
2746
+ name: "OnlyOriginalSenderCanRetry",
2747
+ type: "error"
2748
+ },
2749
+ {
2750
+ inputs: [],
2751
+ name: "ZamaProtocolUnsupported",
2752
+ type: "error"
2753
+ },
2754
+ {
2755
+ anonymous: false,
2756
+ inputs: [
2757
+ {
2758
+ indexed: true,
2759
+ internalType: "address",
2760
+ name: "cToken",
2761
+ type: "address"
2762
+ },
2763
+ {
2764
+ indexed: true,
2765
+ internalType: "address",
2766
+ name: "sender",
2767
+ type: "address"
2768
+ },
2769
+ {
2770
+ indexed: false,
2771
+ internalType: "uint256",
2772
+ name: "startTxId",
2773
+ type: "uint256"
2774
+ },
2775
+ {
2776
+ indexed: false,
2777
+ internalType: "uint256",
2778
+ name: "endTxId",
2779
+ type: "uint256"
2780
+ },
2781
+ {
2782
+ indexed: false,
2783
+ internalType: "uint256",
2784
+ name: "fee",
2785
+ type: "uint256"
2786
+ }
2787
+ ],
2788
+ name: "BatchTransfer",
2789
+ type: "event"
2790
+ },
2791
+ {
2792
+ anonymous: false,
2793
+ inputs: [
2794
+ {
2795
+ indexed: true,
2796
+ internalType: "address",
2797
+ name: "cToken",
2798
+ type: "address"
2799
+ },
2800
+ {
2801
+ indexed: true,
2802
+ internalType: "address",
2803
+ name: "sender",
2804
+ type: "address"
2805
+ },
2806
+ {
2807
+ indexed: false,
2808
+ internalType: "uint256",
2809
+ name: "originalTxId",
2810
+ type: "uint256"
2811
+ },
2812
+ {
2813
+ indexed: false,
2814
+ internalType: "uint256",
2815
+ name: "retryTxId",
2816
+ type: "uint256"
2817
+ }
2818
+ ],
2819
+ name: "RetryTransfer",
2820
+ type: "event"
2821
+ },
2822
+ {
2823
+ inputs: [],
2824
+ name: "adminProvider",
2825
+ outputs: [
2826
+ {
2827
+ internalType: "contract AdminProvider",
2828
+ name: "",
2829
+ type: "address"
2830
+ }
2831
+ ],
2832
+ stateMutability: "view",
2833
+ type: "function"
2834
+ },
2835
+ {
2836
+ inputs: [
2837
+ {
2838
+ internalType: "contract RegulatedERC7984Upgradeable",
2839
+ name: "cToken",
2840
+ type: "address"
2841
+ },
2842
+ {
2843
+ internalType: "address",
2844
+ name: "from",
2845
+ type: "address"
2846
+ },
2847
+ {
2848
+ components: [
2849
+ {
2850
+ internalType: "address",
2851
+ name: "to",
2852
+ type: "address"
2853
+ },
2854
+ {
2855
+ internalType: "externalEuint64",
2856
+ name: "encryptedAmount",
2857
+ type: "bytes32"
2858
+ },
2859
+ {
2860
+ internalType: "bytes",
2861
+ name: "inputProof",
2862
+ type: "bytes"
2863
+ },
2864
+ {
2865
+ internalType: "uint256",
2866
+ name: "retryFor",
2867
+ type: "uint256"
2868
+ }
2869
+ ],
2870
+ internalType: "struct ERC7984TransferBatcher.ConfidentialTransferInput[]",
2871
+ name: "transfers",
2872
+ type: "tuple[]"
2873
+ }
2874
+ ],
2875
+ name: "confidentialBatchTransfer",
2876
+ outputs: [],
2877
+ stateMutability: "payable",
2878
+ type: "function"
2879
+ },
2880
+ {
2881
+ inputs: [],
2882
+ name: "confidentialProtocolId",
2883
+ outputs: [
2884
+ {
2885
+ internalType: "uint256",
2886
+ name: "",
2887
+ type: "uint256"
2888
+ }
2889
+ ],
2890
+ stateMutability: "view",
2891
+ type: "function"
2892
+ },
2893
+ {
2894
+ inputs: [
2895
+ {
2896
+ internalType: "address",
2897
+ name: "cToken",
2898
+ type: "address"
2899
+ },
2900
+ {
2901
+ internalType: "uint256",
2902
+ name: "txId",
2903
+ type: "uint256"
2904
+ }
2905
+ ],
2906
+ name: "txIdToSender",
2907
+ outputs: [
2908
+ {
2909
+ internalType: "address",
2910
+ name: "sender",
2911
+ type: "address"
2912
+ }
2913
+ ],
2914
+ stateMutability: "view",
2915
+ type: "function"
2916
+ }
2917
+ ];
2918
+
2919
+ // src/abi/wrapper.abi.ts
2920
+ var WRAPPER_ABI = [
2921
+ {
2922
+ inputs: [],
2923
+ stateMutability: "nonpayable",
2924
+ type: "constructor"
2925
+ },
2926
+ {
2927
+ inputs: [
2928
+ {
2929
+ internalType: "address",
2930
+ name: "target",
2931
+ type: "address"
2932
+ }
2933
+ ],
2934
+ name: "AddressEmptyCode",
2935
+ type: "error"
2936
+ },
2937
+ {
2938
+ inputs: [],
2939
+ name: "CannotReceiveEthForTokenWrap",
2940
+ type: "error"
2941
+ },
2942
+ {
2943
+ inputs: [
2944
+ {
2945
+ internalType: "address",
2946
+ name: "implementation",
2947
+ type: "address"
2948
+ }
2949
+ ],
2950
+ name: "ERC1967InvalidImplementation",
2951
+ type: "error"
2952
+ },
2953
+ {
2954
+ inputs: [],
2955
+ name: "ERC1967NonPayable",
2956
+ type: "error"
2957
+ },
2958
+ {
2959
+ inputs: [
2960
+ {
2961
+ internalType: "uint256",
2962
+ name: "requestId",
2963
+ type: "uint256"
2964
+ }
2965
+ ],
2966
+ name: "ERC7984InvalidGatewayRequest",
2967
+ type: "error"
2968
+ },
2969
+ {
2970
+ inputs: [
2971
+ {
2972
+ internalType: "address",
2973
+ name: "receiver",
2974
+ type: "address"
2975
+ }
2976
+ ],
2977
+ name: "ERC7984InvalidReceiver",
2978
+ type: "error"
2979
+ },
2980
+ {
2981
+ inputs: [
2982
+ {
2983
+ internalType: "address",
2984
+ name: "receiver",
2985
+ type: "address"
2986
+ }
2987
+ ],
2988
+ name: "ERC7984InvalidReceiver",
2989
+ type: "error"
2990
+ },
2991
+ {
2992
+ inputs: [
2993
+ {
2994
+ internalType: "address",
2995
+ name: "sender",
2996
+ type: "address"
2997
+ }
2998
+ ],
2999
+ name: "ERC7984InvalidSender",
3000
+ type: "error"
3001
+ },
3002
+ {
3003
+ inputs: [],
3004
+ name: "ERC7984TotalSupplyOverflow",
3005
+ type: "error"
3006
+ },
3007
+ {
3008
+ inputs: [
3009
+ {
3010
+ internalType: "address",
3011
+ name: "caller",
3012
+ type: "address"
3013
+ }
3014
+ ],
3015
+ name: "ERC7984UnauthorizedCaller",
3016
+ type: "error"
3017
+ },
3018
+ {
3019
+ inputs: [
3020
+ {
3021
+ internalType: "address",
3022
+ name: "holder",
3023
+ type: "address"
3024
+ },
3025
+ {
3026
+ internalType: "address",
3027
+ name: "spender",
3028
+ type: "address"
3029
+ }
3030
+ ],
3031
+ name: "ERC7984UnauthorizedSpender",
3032
+ type: "error"
3033
+ },
3034
+ {
3035
+ inputs: [
3036
+ {
3037
+ internalType: "euint64",
3038
+ name: "amount",
3039
+ type: "bytes32"
3040
+ },
3041
+ {
3042
+ internalType: "address",
3043
+ name: "user",
3044
+ type: "address"
3045
+ }
3046
+ ],
3047
+ name: "ERC7984UnauthorizedUseOfEncryptedAmount",
3048
+ type: "error"
3049
+ },
3050
+ {
3051
+ inputs: [
3052
+ {
3053
+ internalType: "address",
3054
+ name: "holder",
3055
+ type: "address"
3056
+ }
3057
+ ],
3058
+ name: "ERC7984ZeroBalance",
3059
+ type: "error"
3060
+ },
3061
+ {
3062
+ inputs: [],
3063
+ name: "EthFeeTransferFailed",
3064
+ type: "error"
3065
+ },
3066
+ {
3067
+ inputs: [],
3068
+ name: "FailedCall",
3069
+ type: "error"
3070
+ },
3071
+ {
3072
+ inputs: [],
3073
+ name: "IncorrectEthAmount",
3074
+ type: "error"
3075
+ },
3076
+ {
3077
+ inputs: [],
3078
+ name: "InvalidInitialization",
3079
+ type: "error"
3080
+ },
3081
+ {
3082
+ inputs: [],
3083
+ name: "InvalidKMSSignatures",
3084
+ type: "error"
3085
+ },
3086
+ {
3087
+ inputs: [
3088
+ {
3089
+ internalType: "euint64",
3090
+ name: "amount",
3091
+ type: "bytes32"
3092
+ }
3093
+ ],
3094
+ name: "InvalidUnwrapRequest",
3095
+ type: "error"
3096
+ },
3097
+ {
3098
+ inputs: [],
3099
+ name: "NotInitializing",
3100
+ type: "error"
3101
+ },
3102
+ {
3103
+ inputs: [
3104
+ {
3105
+ internalType: "address",
3106
+ name: "owner",
3107
+ type: "address"
3108
+ }
3109
+ ],
3110
+ name: "OwnableInvalidOwner",
3111
+ type: "error"
3112
+ },
3113
+ {
3114
+ inputs: [
3115
+ {
3116
+ internalType: "address",
3117
+ name: "account",
3118
+ type: "address"
3119
+ }
3120
+ ],
3121
+ name: "OwnableUnauthorizedAccount",
3122
+ type: "error"
3123
+ },
3124
+ {
3125
+ inputs: [],
3126
+ name: "ReentrancyGuardReentrantCall",
3127
+ type: "error"
3128
+ },
3129
+ {
3130
+ inputs: [
3131
+ {
3132
+ internalType: "uint8",
3133
+ name: "bits",
3134
+ type: "uint8"
3135
+ },
3136
+ {
3137
+ internalType: "uint256",
3138
+ name: "value",
3139
+ type: "uint256"
3140
+ }
3141
+ ],
3142
+ name: "SafeCastOverflowedUintDowncast",
3143
+ type: "error"
3144
+ },
3145
+ {
3146
+ inputs: [
3147
+ {
3148
+ internalType: "address",
3149
+ name: "token",
3150
+ type: "address"
3151
+ }
3152
+ ],
3153
+ name: "SafeERC20FailedOperation",
3154
+ type: "error"
3155
+ },
3156
+ {
3157
+ inputs: [
3158
+ {
3159
+ internalType: "address",
3160
+ name: "account",
3161
+ type: "address"
3162
+ }
3163
+ ],
3164
+ name: "SanctionedAddress",
3165
+ type: "error"
3166
+ },
3167
+ {
3168
+ inputs: [
3169
+ {
3170
+ internalType: "bytes32",
3171
+ name: "handle",
3172
+ type: "bytes32"
3173
+ },
3174
+ {
3175
+ internalType: "address",
3176
+ name: "sender",
3177
+ type: "address"
3178
+ }
3179
+ ],
3180
+ name: "SenderNotAllowedToUseHandle",
3181
+ type: "error"
3182
+ },
3183
+ {
3184
+ inputs: [],
3185
+ name: "UUPSUnauthorizedCallContext",
3186
+ type: "error"
3187
+ },
3188
+ {
3189
+ inputs: [
3190
+ {
3191
+ internalType: "bytes32",
3192
+ name: "slot",
3193
+ type: "bytes32"
3194
+ }
3195
+ ],
3196
+ name: "UUPSUnsupportedProxiableUUID",
3197
+ type: "error"
3198
+ },
3199
+ {
3200
+ inputs: [
3201
+ {
3202
+ internalType: "euint64",
3203
+ name: "burntAmount",
3204
+ type: "bytes32"
3205
+ },
3206
+ {
3207
+ internalType: "address",
3208
+ name: "caller",
3209
+ type: "address"
3210
+ },
3211
+ {
3212
+ internalType: "address",
3213
+ name: "unwrapInitiator",
3214
+ type: "address"
3215
+ }
3216
+ ],
3217
+ name: "UnauthorizedFinalizeUnwrapCaller",
3218
+ type: "error"
3219
+ },
3220
+ {
3221
+ inputs: [],
3222
+ name: "WrapperBalanceExceedsMaxSupply",
3223
+ type: "error"
3224
+ },
3225
+ {
3226
+ inputs: [],
3227
+ name: "ZamaProtocolUnsupported",
3228
+ type: "error"
3229
+ },
3230
+ {
3231
+ anonymous: false,
3232
+ inputs: [
3233
+ {
3234
+ indexed: true,
3235
+ internalType: "euint64",
3236
+ name: "encryptedAmount",
3237
+ type: "bytes32"
3238
+ },
3239
+ {
3240
+ indexed: true,
3241
+ internalType: "address",
3242
+ name: "requester",
3243
+ type: "address"
3244
+ }
3245
+ ],
3246
+ name: "AmountDiscloseRequested",
3247
+ type: "event"
3248
+ },
3249
+ {
3250
+ anonymous: false,
3251
+ inputs: [
3252
+ {
3253
+ indexed: true,
3254
+ internalType: "euint64",
3255
+ name: "encryptedAmount",
3256
+ type: "bytes32"
3257
+ },
3258
+ {
3259
+ indexed: false,
3260
+ internalType: "uint64",
3261
+ name: "amount",
3262
+ type: "uint64"
3263
+ }
3264
+ ],
3265
+ name: "AmountDisclosed",
3266
+ type: "event"
3267
+ },
3268
+ {
3269
+ anonymous: false,
3270
+ inputs: [
3271
+ {
3272
+ indexed: true,
3273
+ internalType: "address",
3274
+ name: "from",
3275
+ type: "address"
3276
+ },
3277
+ {
3278
+ indexed: false,
3279
+ internalType: "euint64",
3280
+ name: "amount",
3281
+ type: "bytes32"
3282
+ },
3283
+ {
3284
+ indexed: false,
3285
+ internalType: "uint256",
3286
+ name: "txId",
3287
+ type: "uint256"
3288
+ }
3289
+ ],
3290
+ name: "BurnInfo",
3291
+ type: "event"
3292
+ },
3293
+ {
3294
+ anonymous: false,
3295
+ inputs: [
3296
+ {
3297
+ indexed: true,
3298
+ internalType: "address",
3299
+ name: "from",
3300
+ type: "address"
3301
+ },
3302
+ {
3303
+ indexed: true,
3304
+ internalType: "address",
3305
+ name: "to",
3306
+ type: "address"
3307
+ },
3308
+ {
3309
+ indexed: true,
3310
+ internalType: "euint64",
3311
+ name: "amount",
3312
+ type: "bytes32"
3313
+ }
3314
+ ],
3315
+ name: "ConfidentialTransfer",
3316
+ type: "event"
3317
+ },
3318
+ {
3319
+ anonymous: false,
3320
+ inputs: [
3321
+ {
3322
+ indexed: true,
3323
+ internalType: "address",
3324
+ name: "holder",
3325
+ type: "address"
3326
+ },
3327
+ {
3328
+ indexed: true,
3329
+ internalType: "address",
3330
+ name: "operator",
3331
+ type: "address"
3332
+ },
3333
+ {
3334
+ indexed: false,
3335
+ internalType: "uint48",
3336
+ name: "until",
3337
+ type: "uint48"
3338
+ }
3339
+ ],
3340
+ name: "FinalizeUnwrapOperatorSet",
3341
+ type: "event"
3342
+ },
3343
+ {
3344
+ anonymous: false,
3345
+ inputs: [
3346
+ {
3347
+ indexed: false,
3348
+ internalType: "uint64",
3349
+ name: "version",
3350
+ type: "uint64"
3351
+ }
3352
+ ],
3353
+ name: "Initialized",
3354
+ type: "event"
3355
+ },
3356
+ {
3357
+ anonymous: false,
3358
+ inputs: [
3359
+ {
3360
+ indexed: true,
3361
+ internalType: "address",
3362
+ name: "to",
3363
+ type: "address"
3364
+ },
3365
+ {
3366
+ indexed: false,
3367
+ internalType: "uint64",
3368
+ name: "amount",
3369
+ type: "uint64"
3370
+ },
3371
+ {
3372
+ indexed: false,
3373
+ internalType: "uint256",
3374
+ name: "txId",
3375
+ type: "uint256"
3376
+ }
3377
+ ],
3378
+ name: "MintInfo",
3379
+ type: "event"
3380
+ },
3381
+ {
3382
+ anonymous: false,
3383
+ inputs: [
3384
+ {
3385
+ indexed: true,
3386
+ internalType: "address",
3387
+ name: "holder",
3388
+ type: "address"
3389
+ },
3390
+ {
3391
+ indexed: true,
3392
+ internalType: "address",
3393
+ name: "operator",
3394
+ type: "address"
3395
+ },
3396
+ {
3397
+ indexed: false,
3398
+ internalType: "uint48",
3399
+ name: "until",
3400
+ type: "uint48"
3401
+ }
3402
+ ],
3403
+ name: "OperatorSet",
3404
+ type: "event"
3405
+ },
3406
+ {
3407
+ anonymous: false,
3408
+ inputs: [
3409
+ {
3410
+ indexed: true,
3411
+ internalType: "address",
3412
+ name: "previousOwner",
3413
+ type: "address"
3414
+ },
3415
+ {
3416
+ indexed: true,
3417
+ internalType: "address",
3418
+ name: "newOwner",
3419
+ type: "address"
3420
+ }
3421
+ ],
3422
+ name: "OwnershipTransferStarted",
3423
+ type: "event"
3424
+ },
3425
+ {
3426
+ anonymous: false,
3427
+ inputs: [
3428
+ {
3429
+ indexed: true,
3430
+ internalType: "address",
3431
+ name: "previousOwner",
3432
+ type: "address"
3433
+ },
3434
+ {
3435
+ indexed: true,
3436
+ internalType: "address",
3437
+ name: "newOwner",
3438
+ type: "address"
3439
+ }
3440
+ ],
3441
+ name: "OwnershipTransferred",
3442
+ type: "event"
3443
+ },
3444
+ {
3445
+ anonymous: false,
3446
+ inputs: [
3447
+ {
3448
+ indexed: false,
3449
+ internalType: "bytes32[]",
3450
+ name: "handlesList",
3451
+ type: "bytes32[]"
3452
+ },
3453
+ {
3454
+ indexed: false,
3455
+ internalType: "bytes",
3456
+ name: "abiEncodedCleartexts",
3457
+ type: "bytes"
3458
+ }
3459
+ ],
3460
+ name: "PublicDecryptionVerified",
3461
+ type: "event"
3462
+ },
3463
+ {
3464
+ anonymous: false,
3465
+ inputs: [
3466
+ {
3467
+ indexed: true,
3468
+ internalType: "address",
3469
+ name: "oldRegulator",
3470
+ type: "address"
3471
+ },
3472
+ {
3473
+ indexed: true,
3474
+ internalType: "address",
3475
+ name: "newRegulator",
3476
+ type: "address"
3477
+ }
3478
+ ],
3479
+ name: "TokenRegulatorUpdated",
3480
+ type: "event"
3481
+ },
3482
+ {
3483
+ anonymous: false,
3484
+ inputs: [
3485
+ {
3486
+ indexed: true,
3487
+ internalType: "address",
3488
+ name: "from",
3489
+ type: "address"
3490
+ },
3491
+ {
3492
+ indexed: true,
3493
+ internalType: "address",
3494
+ name: "to",
3495
+ type: "address"
3496
+ },
3497
+ {
3498
+ indexed: false,
3499
+ internalType: "euint64",
3500
+ name: "encryptedAmount",
3501
+ type: "bytes32"
3502
+ },
3503
+ {
3504
+ indexed: false,
3505
+ internalType: "uint256",
3506
+ name: "txId",
3507
+ type: "uint256"
3508
+ }
3509
+ ],
3510
+ name: "TransferInfo",
3511
+ type: "event"
3512
+ },
3513
+ {
3514
+ anonymous: false,
3515
+ inputs: [
3516
+ {
3517
+ indexed: true,
3518
+ internalType: "address",
3519
+ name: "receiver",
3520
+ type: "address"
3521
+ },
3522
+ {
3523
+ indexed: false,
3524
+ internalType: "euint64",
3525
+ name: "encryptedAmount",
3526
+ type: "bytes32"
3527
+ },
3528
+ {
3529
+ indexed: false,
3530
+ internalType: "uint64",
3531
+ name: "cleartextAmount",
3532
+ type: "uint64"
3533
+ }
3534
+ ],
3535
+ name: "UnwrapFinalized",
3536
+ type: "event"
3537
+ },
3538
+ {
3539
+ anonymous: false,
3540
+ inputs: [
3541
+ {
3542
+ indexed: true,
3543
+ internalType: "address",
3544
+ name: "receiver",
3545
+ type: "address"
3546
+ },
3547
+ {
3548
+ indexed: false,
3549
+ internalType: "euint64",
3550
+ name: "amount",
3551
+ type: "bytes32"
3552
+ }
3553
+ ],
3554
+ name: "UnwrapRequested",
3555
+ type: "event"
3556
+ },
3557
+ {
3558
+ anonymous: false,
3559
+ inputs: [
3560
+ {
3561
+ indexed: true,
3562
+ internalType: "euint64",
3563
+ name: "burntAmountHandle",
3564
+ type: "bytes32"
3565
+ },
3566
+ {
3567
+ indexed: false,
3568
+ internalType: "bool",
3569
+ name: "finalizeSuccess",
3570
+ type: "bool"
3571
+ },
3572
+ {
3573
+ indexed: false,
3574
+ internalType: "bool",
3575
+ name: "feeTransferSuccess",
3576
+ type: "bool"
3577
+ },
3578
+ {
3579
+ indexed: false,
3580
+ internalType: "uint64",
3581
+ name: "burnAmount",
3582
+ type: "uint64"
3583
+ },
3584
+ {
3585
+ indexed: false,
3586
+ internalType: "uint256",
3587
+ name: "unwrapAmount",
3588
+ type: "uint256"
3589
+ },
3590
+ {
3591
+ indexed: false,
3592
+ internalType: "uint256",
3593
+ name: "feeAmount",
3594
+ type: "uint256"
3595
+ },
3596
+ {
3597
+ indexed: true,
3598
+ internalType: "uint256",
3599
+ name: "nextTxId",
3600
+ type: "uint256"
3601
+ }
3602
+ ],
3603
+ name: "UnwrappedFinalized",
3604
+ type: "event"
3605
+ },
3606
+ {
3607
+ anonymous: false,
3608
+ inputs: [
3609
+ {
3610
+ indexed: false,
3611
+ internalType: "bool",
3612
+ name: "returnVal",
3613
+ type: "bool"
3614
+ },
3615
+ {
3616
+ indexed: true,
3617
+ internalType: "uint256",
3618
+ name: "requestId",
3619
+ type: "uint256"
3620
+ },
3621
+ {
3622
+ indexed: true,
3623
+ internalType: "uint256",
3624
+ name: "txId",
3625
+ type: "uint256"
3626
+ },
3627
+ {
3628
+ indexed: true,
3629
+ internalType: "address",
3630
+ name: "to",
3631
+ type: "address"
3632
+ },
3633
+ {
3634
+ indexed: false,
3635
+ internalType: "address",
3636
+ name: "refund",
3637
+ type: "address"
3638
+ },
3639
+ {
3640
+ indexed: false,
3641
+ internalType: "euint64",
3642
+ name: "requestedAmount",
3643
+ type: "bytes32"
3644
+ },
3645
+ {
3646
+ indexed: false,
3647
+ internalType: "euint64",
3648
+ name: "burnAmount",
3649
+ type: "bytes32"
3650
+ }
3651
+ ],
3652
+ name: "UnwrappedStarted",
3653
+ type: "event"
3654
+ },
3655
+ {
3656
+ anonymous: false,
3657
+ inputs: [
3658
+ {
3659
+ indexed: true,
3660
+ internalType: "address",
3661
+ name: "implementation",
3662
+ type: "address"
3663
+ }
3664
+ ],
3665
+ name: "Upgraded",
3666
+ type: "event"
3667
+ },
3668
+ {
3669
+ anonymous: false,
3670
+ inputs: [
3671
+ {
3672
+ indexed: false,
3673
+ internalType: "uint64",
3674
+ name: "mintAmount",
3675
+ type: "uint64"
3676
+ },
3677
+ {
3678
+ indexed: false,
3679
+ internalType: "uint256",
3680
+ name: "amountIn",
3681
+ type: "uint256"
3682
+ },
3683
+ {
3684
+ indexed: false,
3685
+ internalType: "uint256",
3686
+ name: "feeAmount",
3687
+ type: "uint256"
3688
+ },
3689
+ {
3690
+ indexed: true,
3691
+ internalType: "address",
3692
+ name: "to_",
3693
+ type: "address"
3694
+ },
3695
+ {
3696
+ indexed: true,
3697
+ internalType: "uint256",
3698
+ name: "mintTxId",
3699
+ type: "uint256"
3700
+ }
3701
+ ],
3702
+ name: "Wrapped",
3703
+ type: "event"
3704
+ },
3705
+ {
3706
+ inputs: [],
3707
+ name: "UPGRADE_INTERFACE_VERSION",
3708
+ outputs: [
3709
+ {
3710
+ internalType: "string",
3711
+ name: "",
3712
+ type: "string"
3713
+ }
3714
+ ],
3715
+ stateMutability: "view",
3716
+ type: "function"
3717
+ },
3718
+ {
3719
+ inputs: [],
3720
+ name: "acceptOwnership",
3721
+ outputs: [],
3722
+ stateMutability: "nonpayable",
3723
+ type: "function"
3724
+ },
3725
+ {
3726
+ inputs: [],
3727
+ name: "adminProvider",
3728
+ outputs: [
3729
+ {
3730
+ internalType: "contract AdminProvider",
3731
+ name: "",
3732
+ type: "address"
3733
+ }
3734
+ ],
3735
+ stateMutability: "view",
3736
+ type: "function"
3737
+ },
3738
+ {
3739
+ inputs: [
3740
+ {
3741
+ internalType: "address",
3742
+ name: "account",
3743
+ type: "address"
3744
+ }
3745
+ ],
3746
+ name: "confidentialBalanceOf",
3747
+ outputs: [
3748
+ {
3749
+ internalType: "euint64",
3750
+ name: "",
3751
+ type: "bytes32"
3752
+ }
3753
+ ],
3754
+ stateMutability: "view",
3755
+ type: "function"
3756
+ },
3757
+ {
3758
+ inputs: [],
3759
+ name: "confidentialProtocolId",
3760
+ outputs: [
3761
+ {
3762
+ internalType: "uint256",
3763
+ name: "",
3764
+ type: "uint256"
3765
+ }
3766
+ ],
3767
+ stateMutability: "view",
3768
+ type: "function"
3769
+ },
3770
+ {
3771
+ inputs: [],
3772
+ name: "confidentialTotalSupply",
3773
+ outputs: [
3774
+ {
3775
+ internalType: "euint64",
3776
+ name: "",
3777
+ type: "bytes32"
3778
+ }
3779
+ ],
3780
+ stateMutability: "view",
3781
+ type: "function"
3782
+ },
3783
+ {
3784
+ inputs: [
3785
+ {
3786
+ internalType: "address",
3787
+ name: "to",
3788
+ type: "address"
3789
+ },
3790
+ {
3791
+ internalType: "externalEuint64",
3792
+ name: "encryptedAmount",
3793
+ type: "bytes32"
3794
+ },
3795
+ {
3796
+ internalType: "bytes",
3797
+ name: "inputProof",
3798
+ type: "bytes"
3799
+ }
3800
+ ],
3801
+ name: "confidentialTransfer",
3802
+ outputs: [
3803
+ {
3804
+ internalType: "euint64",
3805
+ name: "",
3806
+ type: "bytes32"
3807
+ }
3808
+ ],
3809
+ stateMutability: "nonpayable",
3810
+ type: "function"
3811
+ },
3812
+ {
3813
+ inputs: [
3814
+ {
3815
+ internalType: "address",
3816
+ name: "to",
3817
+ type: "address"
3818
+ },
3819
+ {
3820
+ internalType: "euint64",
3821
+ name: "amount",
3822
+ type: "bytes32"
3823
+ }
3824
+ ],
3825
+ name: "confidentialTransfer",
3826
+ outputs: [
3827
+ {
3828
+ internalType: "euint64",
3829
+ name: "",
3830
+ type: "bytes32"
3831
+ }
3832
+ ],
3833
+ stateMutability: "nonpayable",
3834
+ type: "function"
3835
+ },
3836
+ {
3837
+ inputs: [
3838
+ {
3839
+ internalType: "address",
3840
+ name: "to",
3841
+ type: "address"
3842
+ },
3843
+ {
3844
+ internalType: "euint64",
3845
+ name: "amount",
3846
+ type: "bytes32"
3847
+ },
3848
+ {
3849
+ internalType: "bytes",
3850
+ name: "data",
3851
+ type: "bytes"
3852
+ }
3853
+ ],
3854
+ name: "confidentialTransferAndCall",
3855
+ outputs: [
3856
+ {
3857
+ internalType: "euint64",
3858
+ name: "transferred",
3859
+ type: "bytes32"
3860
+ }
3861
+ ],
3862
+ stateMutability: "nonpayable",
3863
+ type: "function"
3864
+ },
3865
+ {
3866
+ inputs: [
3867
+ {
3868
+ internalType: "address",
3869
+ name: "to",
3870
+ type: "address"
3871
+ },
3872
+ {
3873
+ internalType: "externalEuint64",
3874
+ name: "encryptedAmount",
3875
+ type: "bytes32"
3876
+ },
3877
+ {
3878
+ internalType: "bytes",
3879
+ name: "inputProof",
3880
+ type: "bytes"
3881
+ },
3882
+ {
3883
+ internalType: "bytes",
3884
+ name: "data",
3885
+ type: "bytes"
3886
+ }
3887
+ ],
3888
+ name: "confidentialTransferAndCall",
3889
+ outputs: [
3890
+ {
3891
+ internalType: "euint64",
3892
+ name: "transferred",
3893
+ type: "bytes32"
3894
+ }
3895
+ ],
3896
+ stateMutability: "nonpayable",
3897
+ type: "function"
3898
+ },
3899
+ {
3900
+ inputs: [
3901
+ {
3902
+ internalType: "address",
3903
+ name: "from",
3904
+ type: "address"
3905
+ },
3906
+ {
3907
+ internalType: "address",
3908
+ name: "to",
3909
+ type: "address"
3910
+ },
3911
+ {
3912
+ internalType: "externalEuint64",
3913
+ name: "encryptedAmount",
3914
+ type: "bytes32"
3915
+ },
3916
+ {
3917
+ internalType: "bytes",
3918
+ name: "inputProof",
3919
+ type: "bytes"
3920
+ }
3921
+ ],
3922
+ name: "confidentialTransferFrom",
3923
+ outputs: [
3924
+ {
3925
+ internalType: "euint64",
3926
+ name: "transferred",
3927
+ type: "bytes32"
3928
+ }
3929
+ ],
3930
+ stateMutability: "nonpayable",
3931
+ type: "function"
3932
+ },
3933
+ {
3934
+ inputs: [
3935
+ {
3936
+ internalType: "address",
3937
+ name: "from",
3938
+ type: "address"
3939
+ },
3940
+ {
3941
+ internalType: "address",
3942
+ name: "to",
3943
+ type: "address"
3944
+ },
3945
+ {
3946
+ internalType: "euint64",
3947
+ name: "amount",
3948
+ type: "bytes32"
3949
+ }
3950
+ ],
3951
+ name: "confidentialTransferFrom",
3952
+ outputs: [
3953
+ {
3954
+ internalType: "euint64",
3955
+ name: "transferred",
3956
+ type: "bytes32"
3957
+ }
3958
+ ],
3959
+ stateMutability: "nonpayable",
3960
+ type: "function"
3961
+ },
3962
+ {
3963
+ inputs: [
3964
+ {
3965
+ internalType: "address",
3966
+ name: "from",
3967
+ type: "address"
3968
+ },
3969
+ {
3970
+ internalType: "address",
3971
+ name: "to",
3972
+ type: "address"
3973
+ },
3974
+ {
3975
+ internalType: "externalEuint64",
3976
+ name: "encryptedAmount",
3977
+ type: "bytes32"
3978
+ },
3979
+ {
3980
+ internalType: "bytes",
3981
+ name: "inputProof",
3982
+ type: "bytes"
3983
+ },
3984
+ {
3985
+ internalType: "bytes",
3986
+ name: "data",
3987
+ type: "bytes"
3988
+ }
3989
+ ],
3990
+ name: "confidentialTransferFromAndCall",
3991
+ outputs: [
3992
+ {
3993
+ internalType: "euint64",
3994
+ name: "transferred",
3995
+ type: "bytes32"
3996
+ }
3997
+ ],
3998
+ stateMutability: "nonpayable",
3999
+ type: "function"
4000
+ },
4001
+ {
4002
+ inputs: [
4003
+ {
4004
+ internalType: "address",
4005
+ name: "from",
4006
+ type: "address"
4007
+ },
4008
+ {
4009
+ internalType: "address",
4010
+ name: "to",
4011
+ type: "address"
4012
+ },
4013
+ {
4014
+ internalType: "euint64",
4015
+ name: "amount",
4016
+ type: "bytes32"
4017
+ },
4018
+ {
4019
+ internalType: "bytes",
4020
+ name: "data",
4021
+ type: "bytes"
4022
+ }
4023
+ ],
4024
+ name: "confidentialTransferFromAndCall",
4025
+ outputs: [
4026
+ {
4027
+ internalType: "euint64",
4028
+ name: "transferred",
4029
+ type: "bytes32"
4030
+ }
4031
+ ],
4032
+ stateMutability: "nonpayable",
4033
+ type: "function"
4034
+ },
4035
+ {
4036
+ inputs: [],
4037
+ name: "contractURI",
4038
+ outputs: [
4039
+ {
4040
+ internalType: "string",
4041
+ name: "",
4042
+ type: "string"
4043
+ }
4044
+ ],
4045
+ stateMutability: "view",
4046
+ type: "function"
4047
+ },
4048
+ {
4049
+ inputs: [],
4050
+ name: "decimals",
4051
+ outputs: [
4052
+ {
4053
+ internalType: "uint8",
4054
+ name: "",
4055
+ type: "uint8"
4056
+ }
4057
+ ],
4058
+ stateMutability: "view",
4059
+ type: "function"
4060
+ },
4061
+ {
4062
+ inputs: [],
4063
+ name: "deploymentCoordinator",
4064
+ outputs: [
4065
+ {
4066
+ internalType: "contract IDeploymentCoordinator",
4067
+ name: "",
4068
+ type: "address"
4069
+ }
4070
+ ],
4071
+ stateMutability: "view",
4072
+ type: "function"
4073
+ },
4074
+ {
4075
+ inputs: [
4076
+ {
4077
+ internalType: "euint64",
4078
+ name: "encryptedAmount",
4079
+ type: "bytes32"
4080
+ },
4081
+ {
4082
+ internalType: "uint64",
4083
+ name: "cleartextAmount",
4084
+ type: "uint64"
4085
+ },
4086
+ {
4087
+ internalType: "bytes",
4088
+ name: "decryptionProof",
4089
+ type: "bytes"
4090
+ }
4091
+ ],
4092
+ name: "discloseEncryptedAmount",
4093
+ outputs: [],
4094
+ stateMutability: "nonpayable",
4095
+ type: "function"
4096
+ },
4097
+ {
4098
+ inputs: [
4099
+ {
4100
+ internalType: "euint64",
4101
+ name: "burntAmount",
4102
+ type: "bytes32"
4103
+ },
4104
+ {
4105
+ internalType: "uint64",
4106
+ name: "burntAmountCleartext",
4107
+ type: "uint64"
4108
+ },
4109
+ {
4110
+ internalType: "bytes",
4111
+ name: "decryptionProof",
4112
+ type: "bytes"
4113
+ }
4114
+ ],
4115
+ name: "finalizeUnwrap",
4116
+ outputs: [],
4117
+ stateMutability: "nonpayable",
4118
+ type: "function"
4119
+ },
4120
+ {
4121
+ inputs: [
4122
+ {
4123
+ internalType: "string",
4124
+ name: "name_",
4125
+ type: "string"
4126
+ },
4127
+ {
4128
+ internalType: "string",
4129
+ name: "symbol_",
4130
+ type: "string"
4131
+ },
4132
+ {
4133
+ internalType: "string",
4134
+ name: "contractURI_",
4135
+ type: "string"
4136
+ },
4137
+ {
4138
+ internalType: "contract IERC20",
4139
+ name: "underlying_",
4140
+ type: "address"
4141
+ },
4142
+ {
4143
+ internalType: "address",
4144
+ name: "owner_",
4145
+ type: "address"
4146
+ },
4147
+ {
4148
+ internalType: "contract IDeploymentCoordinator",
4149
+ name: "deploymentCoordinator_",
4150
+ type: "address"
4151
+ }
4152
+ ],
4153
+ name: "initialize",
4154
+ outputs: [],
4155
+ stateMutability: "nonpayable",
4156
+ type: "function"
4157
+ },
4158
+ {
4159
+ inputs: [
4160
+ {
4161
+ internalType: "address",
4162
+ name: "holder",
4163
+ type: "address"
4164
+ },
4165
+ {
4166
+ internalType: "address",
4167
+ name: "operator",
4168
+ type: "address"
4169
+ }
4170
+ ],
4171
+ name: "isFinalizeUnwrapOperator",
4172
+ outputs: [
4173
+ {
4174
+ internalType: "bool",
4175
+ name: "",
4176
+ type: "bool"
4177
+ }
4178
+ ],
4179
+ stateMutability: "view",
4180
+ type: "function"
4181
+ },
4182
+ {
4183
+ inputs: [
4184
+ {
4185
+ internalType: "address",
4186
+ name: "holder",
4187
+ type: "address"
4188
+ },
4189
+ {
4190
+ internalType: "address",
4191
+ name: "spender",
4192
+ type: "address"
4193
+ }
4194
+ ],
4195
+ name: "isOperator",
4196
+ outputs: [
4197
+ {
4198
+ internalType: "bool",
4199
+ name: "",
4200
+ type: "bool"
4201
+ }
4202
+ ],
4203
+ stateMutability: "view",
4204
+ type: "function"
4205
+ },
4206
+ {
4207
+ inputs: [],
4208
+ name: "maxTotalSupply",
4209
+ outputs: [
4210
+ {
4211
+ internalType: "uint256",
4212
+ name: "",
4213
+ type: "uint256"
4214
+ }
4215
+ ],
4216
+ stateMutability: "view",
4217
+ type: "function"
4218
+ },
4219
+ {
4220
+ inputs: [],
4221
+ name: "name",
4222
+ outputs: [
4223
+ {
4224
+ internalType: "string",
4225
+ name: "",
4226
+ type: "string"
4227
+ }
4228
+ ],
4229
+ stateMutability: "view",
4230
+ type: "function"
4231
+ },
4232
+ {
4233
+ inputs: [],
4234
+ name: "nextTxId",
4235
+ outputs: [
4236
+ {
4237
+ internalType: "uint256",
4238
+ name: "",
4239
+ type: "uint256"
4240
+ }
4241
+ ],
4242
+ stateMutability: "view",
4243
+ type: "function"
4244
+ },
4245
+ {
4246
+ inputs: [
4247
+ {
4248
+ internalType: "address",
4249
+ name: "",
4250
+ type: "address"
4251
+ },
4252
+ {
4253
+ internalType: "address",
4254
+ name: "from",
4255
+ type: "address"
4256
+ },
4257
+ {
4258
+ internalType: "uint256",
4259
+ name: "amount",
4260
+ type: "uint256"
4261
+ },
4262
+ {
4263
+ internalType: "bytes",
4264
+ name: "data",
4265
+ type: "bytes"
4266
+ }
4267
+ ],
4268
+ name: "onTransferReceived",
4269
+ outputs: [
4270
+ {
4271
+ internalType: "bytes4",
4272
+ name: "",
4273
+ type: "bytes4"
4274
+ }
4275
+ ],
4276
+ stateMutability: "nonpayable",
4277
+ type: "function"
4278
+ },
4279
+ {
4280
+ inputs: [],
4281
+ name: "owner",
4282
+ outputs: [
4283
+ {
4284
+ internalType: "address",
4285
+ name: "",
4286
+ type: "address"
4287
+ }
4288
+ ],
4289
+ stateMutability: "view",
4290
+ type: "function"
4291
+ },
4292
+ {
4293
+ inputs: [],
4294
+ name: "pendingOwner",
4295
+ outputs: [
4296
+ {
4297
+ internalType: "address",
4298
+ name: "",
4299
+ type: "address"
4300
+ }
4301
+ ],
4302
+ stateMutability: "view",
4303
+ type: "function"
4304
+ },
4305
+ {
4306
+ inputs: [],
4307
+ name: "proxiableUUID",
4308
+ outputs: [
4309
+ {
4310
+ internalType: "bytes32",
4311
+ name: "",
4312
+ type: "bytes32"
4313
+ }
4314
+ ],
4315
+ stateMutability: "view",
4316
+ type: "function"
4317
+ },
4318
+ {
4319
+ inputs: [],
4320
+ name: "rate",
4321
+ outputs: [
4322
+ {
4323
+ internalType: "uint256",
4324
+ name: "",
4325
+ type: "uint256"
4326
+ }
4327
+ ],
4328
+ stateMutability: "view",
4329
+ type: "function"
4330
+ },
4331
+ {
4332
+ inputs: [],
4333
+ name: "regulator",
4334
+ outputs: [
4335
+ {
4336
+ internalType: "address",
4337
+ name: "",
4338
+ type: "address"
4339
+ }
4340
+ ],
4341
+ stateMutability: "view",
4342
+ type: "function"
4343
+ },
4344
+ {
4345
+ inputs: [],
4346
+ name: "renounceOwnership",
4347
+ outputs: [],
4348
+ stateMutability: "nonpayable",
4349
+ type: "function"
4350
+ },
4351
+ {
4352
+ inputs: [
4353
+ {
4354
+ internalType: "euint64",
4355
+ name: "encryptedAmount",
4356
+ type: "bytes32"
4357
+ }
4358
+ ],
4359
+ name: "requestDiscloseEncryptedAmount",
4360
+ outputs: [],
4361
+ stateMutability: "nonpayable",
4362
+ type: "function"
4363
+ },
4364
+ {
4365
+ inputs: [],
4366
+ name: "requestId",
4367
+ outputs: [
4368
+ {
4369
+ internalType: "uint256",
4370
+ name: "",
4371
+ type: "uint256"
4372
+ }
4373
+ ],
4374
+ stateMutability: "view",
4375
+ type: "function"
4376
+ },
4377
+ {
4378
+ inputs: [
4379
+ {
4380
+ internalType: "address",
4381
+ name: "operator",
4382
+ type: "address"
4383
+ },
4384
+ {
4385
+ internalType: "uint48",
4386
+ name: "until",
4387
+ type: "uint48"
4388
+ }
4389
+ ],
4390
+ name: "setFinalizeUnwrapOperator",
4391
+ outputs: [],
4392
+ stateMutability: "nonpayable",
4393
+ type: "function"
4394
+ },
4395
+ {
4396
+ inputs: [
4397
+ {
4398
+ internalType: "address",
4399
+ name: "operator",
4400
+ type: "address"
4401
+ },
4402
+ {
4403
+ internalType: "uint48",
4404
+ name: "until",
4405
+ type: "uint48"
4406
+ }
4407
+ ],
4408
+ name: "setOperator",
4409
+ outputs: [],
4410
+ stateMutability: "nonpayable",
4411
+ type: "function"
4412
+ },
4413
+ {
4414
+ inputs: [
4415
+ {
4416
+ internalType: "address",
4417
+ name: "newRegulator",
4418
+ type: "address"
4419
+ }
4420
+ ],
4421
+ name: "setTokenRegulator",
4422
+ outputs: [],
4423
+ stateMutability: "nonpayable",
4424
+ type: "function"
4425
+ },
4426
+ {
4427
+ inputs: [
4428
+ {
4429
+ internalType: "bytes4",
4430
+ name: "interfaceId",
4431
+ type: "bytes4"
4432
+ }
4433
+ ],
4434
+ name: "supportsInterface",
4435
+ outputs: [
4436
+ {
4437
+ internalType: "bool",
4438
+ name: "",
4439
+ type: "bool"
4440
+ }
4441
+ ],
4442
+ stateMutability: "view",
4443
+ type: "function"
4444
+ },
4445
+ {
4446
+ inputs: [],
4447
+ name: "symbol",
4448
+ outputs: [
4449
+ {
4450
+ internalType: "string",
4451
+ name: "",
4452
+ type: "string"
4453
+ }
4454
+ ],
4455
+ stateMutability: "view",
4456
+ type: "function"
4457
+ },
4458
+ {
4459
+ inputs: [],
4460
+ name: "tokenRegulator",
4461
+ outputs: [
4462
+ {
4463
+ internalType: "address",
4464
+ name: "",
4465
+ type: "address"
4466
+ }
4467
+ ],
4468
+ stateMutability: "view",
4469
+ type: "function"
4470
+ },
4471
+ {
4472
+ inputs: [],
4473
+ name: "totalSupply",
4474
+ outputs: [
4475
+ {
4476
+ internalType: "uint256",
4477
+ name: "",
4478
+ type: "uint256"
4479
+ }
4480
+ ],
4481
+ stateMutability: "view",
4482
+ type: "function"
4483
+ },
4484
+ {
4485
+ inputs: [
4486
+ {
4487
+ internalType: "address",
4488
+ name: "newOwner",
4489
+ type: "address"
4490
+ }
4491
+ ],
4492
+ name: "transferOwnership",
4493
+ outputs: [],
4494
+ stateMutability: "nonpayable",
4495
+ type: "function"
4496
+ },
4497
+ {
4498
+ inputs: [],
4499
+ name: "underlying",
4500
+ outputs: [
4501
+ {
4502
+ internalType: "address",
4503
+ name: "",
4504
+ type: "address"
4505
+ }
4506
+ ],
4507
+ stateMutability: "view",
4508
+ type: "function"
4509
+ },
4510
+ {
4511
+ inputs: [
4512
+ {
4513
+ internalType: "address",
4514
+ name: "from",
4515
+ type: "address"
4516
+ },
4517
+ {
4518
+ internalType: "address",
4519
+ name: "to",
4520
+ type: "address"
4521
+ },
4522
+ {
4523
+ internalType: "externalEuint64",
4524
+ name: "encryptedAmount",
4525
+ type: "bytes32"
4526
+ },
4527
+ {
4528
+ internalType: "bytes",
4529
+ name: "inputProof",
4530
+ type: "bytes"
4531
+ }
4532
+ ],
4533
+ name: "unwrap",
4534
+ outputs: [],
4535
+ stateMutability: "nonpayable",
4536
+ type: "function"
4537
+ },
4538
+ {
4539
+ inputs: [
4540
+ {
4541
+ internalType: "address",
4542
+ name: "from",
4543
+ type: "address"
4544
+ },
4545
+ {
4546
+ internalType: "address",
4547
+ name: "to",
4548
+ type: "address"
4549
+ },
4550
+ {
4551
+ internalType: "euint64",
4552
+ name: "amount",
4553
+ type: "bytes32"
4554
+ }
4555
+ ],
4556
+ name: "unwrap",
4557
+ outputs: [],
4558
+ stateMutability: "nonpayable",
4559
+ type: "function"
4560
+ },
4561
+ {
4562
+ inputs: [
4563
+ {
4564
+ internalType: "address",
4565
+ name: "from",
4566
+ type: "address"
4567
+ },
4568
+ {
4569
+ internalType: "address",
4570
+ name: "to",
4571
+ type: "address"
4572
+ },
4573
+ {
4574
+ internalType: "euint64",
4575
+ name: "amount",
4576
+ type: "bytes32"
4577
+ },
4578
+ {
4579
+ internalType: "address",
4580
+ name: "refund",
4581
+ type: "address"
4582
+ },
4583
+ {
4584
+ internalType: "bytes",
4585
+ name: "unwrapCallbackData",
4586
+ type: "bytes"
4587
+ }
4588
+ ],
4589
+ name: "unwrapAndCall",
4590
+ outputs: [],
4591
+ stateMutability: "nonpayable",
4592
+ type: "function"
4593
+ },
4594
+ {
4595
+ inputs: [
4596
+ {
4597
+ internalType: "address",
4598
+ name: "from",
4599
+ type: "address"
4600
+ },
4601
+ {
4602
+ internalType: "address",
4603
+ name: "to",
4604
+ type: "address"
4605
+ },
4606
+ {
4607
+ internalType: "externalEuint64",
4608
+ name: "encryptedAmount",
4609
+ type: "bytes32"
4610
+ },
4611
+ {
4612
+ internalType: "bytes",
4613
+ name: "inputProof",
4614
+ type: "bytes"
4615
+ },
4616
+ {
4617
+ internalType: "address",
4618
+ name: "refund",
4619
+ type: "address"
4620
+ },
4621
+ {
4622
+ internalType: "bytes",
4623
+ name: "unwrapCallbackData",
4624
+ type: "bytes"
4625
+ }
4626
+ ],
4627
+ name: "unwrapAndCall",
4628
+ outputs: [],
4629
+ stateMutability: "nonpayable",
4630
+ type: "function"
4631
+ },
4632
+ {
4633
+ inputs: [
4634
+ {
4635
+ internalType: "address",
4636
+ name: "from",
4637
+ type: "address"
4638
+ },
4639
+ {
4640
+ internalType: "address",
4641
+ name: "to",
4642
+ type: "address"
4643
+ },
4644
+ {
4645
+ internalType: "euint64",
4646
+ name: "amount",
4647
+ type: "bytes32"
4648
+ },
4649
+ {
4650
+ internalType: "address",
4651
+ name: "refund",
4652
+ type: "address"
4653
+ }
4654
+ ],
4655
+ name: "unwrapWithRefund",
4656
+ outputs: [],
4657
+ stateMutability: "nonpayable",
4658
+ type: "function"
4659
+ },
4660
+ {
4661
+ inputs: [
4662
+ {
4663
+ internalType: "address",
4664
+ name: "from",
4665
+ type: "address"
4666
+ },
4667
+ {
4668
+ internalType: "address",
4669
+ name: "to",
4670
+ type: "address"
4671
+ },
4672
+ {
4673
+ internalType: "externalEuint64",
4674
+ name: "encryptedAmount",
4675
+ type: "bytes32"
4676
+ },
4677
+ {
4678
+ internalType: "bytes",
4679
+ name: "inputProof",
4680
+ type: "bytes"
4681
+ },
4682
+ {
4683
+ internalType: "address",
4684
+ name: "refund",
4685
+ type: "address"
4686
+ }
4687
+ ],
4688
+ name: "unwrapWithRefund",
4689
+ outputs: [],
4690
+ stateMutability: "nonpayable",
4691
+ type: "function"
4692
+ },
4693
+ {
4694
+ inputs: [
4695
+ {
4696
+ internalType: "address",
4697
+ name: "newImplementation",
4698
+ type: "address"
4699
+ },
4700
+ {
4701
+ internalType: "bytes",
4702
+ name: "data",
4703
+ type: "bytes"
4704
+ }
4705
+ ],
4706
+ name: "upgradeToAndCall",
4707
+ outputs: [],
4708
+ stateMutability: "payable",
4709
+ type: "function"
4710
+ },
4711
+ {
4712
+ inputs: [
4713
+ {
4714
+ internalType: "address",
4715
+ name: "to",
4716
+ type: "address"
4717
+ },
4718
+ {
4719
+ internalType: "uint256",
4720
+ name: "amount",
4721
+ type: "uint256"
4722
+ }
4723
+ ],
4724
+ name: "wrap",
4725
+ outputs: [],
4726
+ stateMutability: "nonpayable",
4727
+ type: "function"
4728
+ },
4729
+ {
4730
+ inputs: [
4731
+ {
4732
+ internalType: "address",
4733
+ name: "to",
4734
+ type: "address"
4735
+ },
4736
+ {
4737
+ internalType: "uint256",
4738
+ name: "amount",
4739
+ type: "uint256"
4740
+ }
4741
+ ],
4742
+ name: "wrapETH",
4743
+ outputs: [],
4744
+ stateMutability: "payable",
4745
+ type: "function"
4746
+ }
4747
+ ];
4748
+
4749
+ // src/utils.ts
4750
+ function toHex(bytes) {
4751
+ const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, "0")).join("");
4752
+ return `0x${hex}`;
4753
+ }
4754
+ var ADDRESS_REGEX = /^0x[0-9a-fA-F]{40}$/;
4755
+ function assertAddress(value, name) {
4756
+ if (!ADDRESS_REGEX.test(value)) {
4757
+ throw new TypeError(`${name} must be a valid address (0x + 40 hex chars), got: ${value}`);
4758
+ }
4759
+ }
4760
+ function normalizeAddress(addr, name) {
4761
+ assertAddress(addr, name);
4762
+ return addr.toLowerCase();
4763
+ }
4764
+ function assertObject(value, context) {
4765
+ if (typeof value !== "object" || value === null || Array.isArray(value)) {
4766
+ throw new TypeError(`${context} must be an object, got ${typeof value}`);
4767
+ }
4768
+ }
4769
+ function assertString(value, context) {
4770
+ if (typeof value !== "string") {
4771
+ throw new TypeError(`${context} must be a string, got ${typeof value}`);
4772
+ }
4773
+ }
4774
+ function assertArray(value, context) {
4775
+ if (!Array.isArray(value)) {
4776
+ throw new TypeError(`${context} must be an array, got ${typeof value}`);
4777
+ }
4778
+ }
4779
+
4780
+ // src/contracts/encryption.ts
4781
+ function confidentialBalanceOfContract(tokenAddress, userAddress) {
4782
+ assertAddress(tokenAddress, "tokenAddress");
4783
+ assertAddress(userAddress, "userAddress");
4784
+ return {
4785
+ address: tokenAddress,
4786
+ abi: ENCRYPTION_ABI,
4787
+ functionName: "confidentialBalanceOf",
4788
+ args: [userAddress]
4789
+ };
4790
+ }
4791
+ function confidentialTransferContract(encryptedErc20, to, handle, inputProof) {
4792
+ assertAddress(encryptedErc20, "encryptedErc20");
4793
+ assertAddress(to, "to");
4794
+ return {
4795
+ address: encryptedErc20,
4796
+ abi: ENCRYPTION_ABI,
4797
+ functionName: "confidentialTransfer",
4798
+ args: [to, toHex(handle), toHex(inputProof)]
4799
+ };
4800
+ }
4801
+ function confidentialTransferFromContract(encryptedErc20, from, to, handle, inputProof) {
4802
+ assertAddress(encryptedErc20, "encryptedErc20");
4803
+ assertAddress(from, "from");
4804
+ assertAddress(to, "to");
4805
+ return {
4806
+ address: encryptedErc20,
4807
+ abi: ENCRYPTION_ABI,
4808
+ functionName: "confidentialTransferFrom",
4809
+ args: [from, to, toHex(handle), toHex(inputProof)]
4810
+ };
4811
+ }
4812
+ function isOperatorContract(tokenAddress, holder, spender) {
4813
+ assertAddress(tokenAddress, "tokenAddress");
4814
+ assertAddress(holder, "holder");
4815
+ assertAddress(spender, "spender");
4816
+ return {
4817
+ address: tokenAddress,
4818
+ abi: ENCRYPTION_ABI,
4819
+ functionName: "isOperator",
4820
+ args: [holder, spender]
4821
+ };
4822
+ }
4823
+ function setOperatorContract(tokenAddress, spender, timestamp) {
4824
+ assertAddress(tokenAddress, "tokenAddress");
4825
+ assertAddress(spender, "spender");
4826
+ const until = timestamp ?? Math.floor(Date.now() / 1e3) + 3600;
4827
+ return {
4828
+ address: tokenAddress,
4829
+ abi: ENCRYPTION_ABI,
4830
+ functionName: "setOperator",
4831
+ args: [spender, until]
4832
+ };
4833
+ }
4834
+ function unwrapContract(encryptedErc20, from, to, encryptedAmount, inputProof) {
4835
+ assertAddress(encryptedErc20, "encryptedErc20");
4836
+ assertAddress(from, "from");
4837
+ assertAddress(to, "to");
4838
+ return {
4839
+ address: encryptedErc20,
4840
+ abi: ENCRYPTION_ABI,
4841
+ functionName: "unwrap",
4842
+ args: [from, to, toHex(encryptedAmount), toHex(inputProof)]
4843
+ };
4844
+ }
4845
+ function unwrapFromBalanceContract(encryptedErc20, from, to, encryptedBalance) {
4846
+ assertAddress(encryptedErc20, "encryptedErc20");
4847
+ assertAddress(from, "from");
4848
+ assertAddress(to, "to");
4849
+ return {
4850
+ address: encryptedErc20,
4851
+ abi: ENCRYPTION_ABI,
4852
+ functionName: "unwrap",
4853
+ args: [from, to, encryptedBalance]
4854
+ };
4855
+ }
4856
+ function confidentialTotalSupplyContract(tokenAddress) {
4857
+ assertAddress(tokenAddress, "tokenAddress");
4858
+ return {
4859
+ address: tokenAddress,
4860
+ abi: ENCRYPTION_ABI,
4861
+ functionName: "confidentialTotalSupply",
4862
+ args: []
4863
+ };
4864
+ }
4865
+ function totalSupplyContract(tokenAddress) {
4866
+ assertAddress(tokenAddress, "tokenAddress");
4867
+ return {
4868
+ address: tokenAddress,
4869
+ abi: ENCRYPTION_ABI,
4870
+ functionName: "totalSupply",
4871
+ args: []
4872
+ };
4873
+ }
4874
+ function rateContract(tokenAddress) {
4875
+ assertAddress(tokenAddress, "tokenAddress");
4876
+ return {
4877
+ address: tokenAddress,
4878
+ abi: ENCRYPTION_ABI,
4879
+ functionName: "rate",
4880
+ args: []
4881
+ };
4882
+ }
4883
+ function deploymentCoordinatorContract(tokenAddress) {
4884
+ assertAddress(tokenAddress, "tokenAddress");
4885
+ return {
4886
+ address: tokenAddress,
4887
+ abi: ENCRYPTION_ABI,
4888
+ functionName: "deploymentCoordinator",
4889
+ args: []
4890
+ };
4891
+ }
4892
+ function isFinalizeUnwrapOperatorContract(tokenAddress, holder, operator) {
4893
+ assertAddress(tokenAddress, "tokenAddress");
4894
+ assertAddress(holder, "holder");
4895
+ assertAddress(operator, "operator");
4896
+ return {
4897
+ address: tokenAddress,
4898
+ abi: ENCRYPTION_ABI,
4899
+ functionName: "isFinalizeUnwrapOperator",
4900
+ args: [holder, operator]
4901
+ };
4902
+ }
4903
+ function setFinalizeUnwrapOperatorContract(tokenAddress, operator, timestamp) {
4904
+ assertAddress(tokenAddress, "tokenAddress");
4905
+ assertAddress(operator, "operator");
4906
+ const until = timestamp ?? Math.floor(Date.now() / 1e3) + 3600;
4907
+ return {
4908
+ address: tokenAddress,
4909
+ abi: ENCRYPTION_ABI,
4910
+ functionName: "setFinalizeUnwrapOperator",
4911
+ args: [operator, until]
4912
+ };
4913
+ }
4914
+
4915
+ // src/contracts/wrapper.ts
4916
+ function finalizeUnwrapContract(wrapper, burntAmount, burntAmountCleartext, decryptionProof) {
4917
+ assertAddress(wrapper, "wrapper");
4918
+ return {
4919
+ address: wrapper,
4920
+ abi: WRAPPER_ABI,
4921
+ functionName: "finalizeUnwrap",
4922
+ args: [burntAmount, burntAmountCleartext, decryptionProof]
4923
+ };
4924
+ }
4925
+ function underlyingContract(wrapperAddress) {
4926
+ assertAddress(wrapperAddress, "wrapperAddress");
4927
+ return {
4928
+ address: wrapperAddress,
4929
+ abi: WRAPPER_ABI,
4930
+ functionName: "underlying",
4931
+ args: []
4932
+ };
4933
+ }
4934
+ function wrapContract(wrapperAddress, to, amount) {
4935
+ assertAddress(wrapperAddress, "wrapperAddress");
4936
+ assertAddress(to, "to");
4937
+ return {
4938
+ address: wrapperAddress,
4939
+ abi: WRAPPER_ABI,
4940
+ functionName: "wrap",
4941
+ args: [to, amount]
4942
+ };
4943
+ }
4944
+ function wrapETHContract(wrapperAddress, to, amount, value) {
4945
+ assertAddress(wrapperAddress, "wrapperAddress");
4946
+ assertAddress(to, "to");
4947
+ return {
4948
+ address: wrapperAddress,
4949
+ abi: WRAPPER_ABI,
4950
+ functionName: "wrapETH",
4951
+ args: [to, amount],
4952
+ value
4953
+ };
4954
+ }
4955
+
4956
+ // src/contracts/erc20.ts
4957
+ function nameContract(tokenAddress) {
4958
+ assertAddress(tokenAddress, "tokenAddress");
4959
+ return {
4960
+ address: tokenAddress,
4961
+ abi: ERC20_METADATA_ABI,
4962
+ functionName: "name",
4963
+ args: []
4964
+ };
4965
+ }
4966
+ function symbolContract(tokenAddress) {
4967
+ assertAddress(tokenAddress, "tokenAddress");
4968
+ return {
4969
+ address: tokenAddress,
4970
+ abi: ERC20_METADATA_ABI,
4971
+ functionName: "symbol",
4972
+ args: []
4973
+ };
4974
+ }
4975
+ function decimalsContract(tokenAddress) {
4976
+ assertAddress(tokenAddress, "tokenAddress");
4977
+ return {
4978
+ address: tokenAddress,
4979
+ abi: ERC20_METADATA_ABI,
4980
+ functionName: "decimals",
4981
+ args: []
4982
+ };
4983
+ }
4984
+ function balanceOfContract(tokenAddress, account) {
4985
+ assertAddress(tokenAddress, "tokenAddress");
4986
+ assertAddress(account, "account");
4987
+ return {
4988
+ address: tokenAddress,
4989
+ abi: ERC20_ABI,
4990
+ functionName: "balanceOf",
4991
+ args: [account]
4992
+ };
4993
+ }
4994
+ function allowanceContract(tokenAddress, owner, spender) {
4995
+ assertAddress(tokenAddress, "tokenAddress");
4996
+ assertAddress(owner, "owner");
4997
+ assertAddress(spender, "spender");
4998
+ return {
4999
+ address: tokenAddress,
5000
+ abi: ERC20_ABI,
5001
+ functionName: "allowance",
5002
+ args: [owner, spender]
5003
+ };
5004
+ }
5005
+ function approveContract(tokenAddress, spender, value) {
5006
+ assertAddress(tokenAddress, "tokenAddress");
5007
+ assertAddress(spender, "spender");
5008
+ return {
5009
+ address: tokenAddress,
5010
+ abi: ERC20_ABI,
5011
+ functionName: "approve",
5012
+ args: [spender, value]
5013
+ };
5014
+ }
5015
+
5016
+ // src/contracts/deployment-coordinator.ts
5017
+ function getWrapperContract(coordinator, tokenAddress) {
5018
+ assertAddress(coordinator, "coordinator");
5019
+ assertAddress(tokenAddress, "tokenAddress");
5020
+ return {
5021
+ address: coordinator,
5022
+ abi: DEPLOYMENT_COORDINATOR_ABI,
5023
+ functionName: "getWrapper",
5024
+ args: [tokenAddress]
5025
+ };
5026
+ }
5027
+ function wrapperExistsContract(coordinator, tokenAddress) {
5028
+ assertAddress(coordinator, "coordinator");
5029
+ assertAddress(tokenAddress, "tokenAddress");
5030
+ return {
5031
+ address: coordinator,
5032
+ abi: DEPLOYMENT_COORDINATOR_ABI,
5033
+ functionName: "wrapperExists",
5034
+ args: [tokenAddress]
5035
+ };
5036
+ }
5037
+
5038
+ // src/contracts/erc165.ts
5039
+ var ERC7984_INTERFACE_ID = "0x4958f2a4";
5040
+ var ERC7984_WRAPPER_INTERFACE_ID = "0xd04584ba";
5041
+ function supportsInterfaceContract(tokenAddress, interfaceId) {
5042
+ assertAddress(tokenAddress, "tokenAddress");
5043
+ return {
5044
+ address: tokenAddress,
5045
+ abi: ERC165_ABI,
5046
+ functionName: "supportsInterface",
5047
+ args: [interfaceId]
5048
+ };
5049
+ }
5050
+ function isConfidentialTokenContract(tokenAddress) {
5051
+ return supportsInterfaceContract(tokenAddress, ERC7984_INTERFACE_ID);
5052
+ }
5053
+ function isConfidentialWrapperContract(tokenAddress) {
5054
+ return supportsInterfaceContract(tokenAddress, ERC7984_WRAPPER_INTERFACE_ID);
5055
+ }
5056
+
5057
+ // src/contracts/fee-manager.ts
5058
+ function getWrapFeeContract(feeManagerAddress, amount, wrapFrom, wrapTo) {
5059
+ assertAddress(feeManagerAddress, "feeManagerAddress");
5060
+ assertAddress(wrapFrom, "wrapFrom");
5061
+ assertAddress(wrapTo, "wrapTo");
5062
+ return {
5063
+ address: feeManagerAddress,
5064
+ abi: FEE_MANAGER_ABI,
5065
+ functionName: "getWrapFee",
5066
+ args: [amount, wrapFrom, wrapTo]
5067
+ };
5068
+ }
5069
+ function getUnwrapFeeContract(feeManagerAddress, amount, unwrapFrom, unwrapTo) {
5070
+ assertAddress(feeManagerAddress, "feeManagerAddress");
5071
+ assertAddress(unwrapFrom, "unwrapFrom");
5072
+ assertAddress(unwrapTo, "unwrapTo");
5073
+ return {
5074
+ address: feeManagerAddress,
5075
+ abi: FEE_MANAGER_ABI,
5076
+ functionName: "getUnwrapFee",
5077
+ args: [amount, unwrapFrom, unwrapTo]
5078
+ };
5079
+ }
5080
+ function getBatchTransferFeeContract(feeManagerAddress) {
5081
+ assertAddress(feeManagerAddress, "feeManagerAddress");
5082
+ return {
5083
+ address: feeManagerAddress,
5084
+ abi: FEE_MANAGER_ABI,
5085
+ functionName: "getBatchTransferFee",
5086
+ args: []
5087
+ };
5088
+ }
5089
+ function getFeeRecipientContract(feeManagerAddress) {
5090
+ assertAddress(feeManagerAddress, "feeManagerAddress");
5091
+ return {
5092
+ address: feeManagerAddress,
5093
+ abi: FEE_MANAGER_ABI,
5094
+ functionName: "getFeeRecipient",
5095
+ args: []
5096
+ };
5097
+ }
5098
+
5099
+ // src/contracts/transfer-batcher.ts
5100
+ function confidentialBatchTransferContract(batcherAddress, tokenAddress, fromAddress, batchTransferData, fees) {
5101
+ assertAddress(batcherAddress, "batcherAddress");
5102
+ assertAddress(tokenAddress, "tokenAddress");
5103
+ assertAddress(fromAddress, "fromAddress");
5104
+ return {
5105
+ address: batcherAddress,
5106
+ abi: TRANSFER_BATCHER_ABI,
5107
+ functionName: "confidentialBatchTransfer",
5108
+ args: [tokenAddress, fromAddress, batchTransferData],
5109
+ value: fees
5110
+ };
5111
+ }
5112
+
5113
+ export { DEPLOYMENT_COORDINATOR_ABI, ENCRYPTION_ABI, ERC165_ABI, ERC20_ABI, ERC20_METADATA_ABI, ERC7984_INTERFACE_ID, ERC7984_WRAPPER_INTERFACE_ID, FEE_MANAGER_ABI, TRANSFER_BATCHER_ABI, WRAPPER_ABI, allowanceContract, approveContract, assertArray, assertObject, assertString, balanceOfContract, confidentialBalanceOfContract, confidentialBatchTransferContract, confidentialTotalSupplyContract, confidentialTransferContract, confidentialTransferFromContract, decimalsContract, deploymentCoordinatorContract, finalizeUnwrapContract, getBatchTransferFeeContract, getFeeRecipientContract, getUnwrapFeeContract, getWrapFeeContract, getWrapperContract, isConfidentialTokenContract, isConfidentialWrapperContract, isFinalizeUnwrapOperatorContract, isOperatorContract, nameContract, normalizeAddress, rateContract, setFinalizeUnwrapOperatorContract, setOperatorContract, supportsInterfaceContract, symbolContract, totalSupplyContract, underlyingContract, unwrapContract, unwrapFromBalanceContract, wrapContract, wrapETHContract, wrapperExistsContract };
5114
+ //# sourceMappingURL=chunk-AJFSZ47V.js.map
5115
+ //# sourceMappingURL=chunk-AJFSZ47V.js.map