@zama-fhe/sdk 1.0.0-alpha.2

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