@pyratzlabs/react-fhevm-utils 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/client/hooks/useAccount.d.ts +45 -0
  2. package/dist/client/hooks/useAccount.js +6 -0
  3. package/dist/client/hooks/useDecryptHandles.js +2 -1
  4. package/dist/client/hooks/useEncryptValue.js +1 -1
  5. package/dist/client/hooks/useEncryptedBatchTransfer.js +1 -1
  6. package/dist/client/hooks/useFinalizeUnwrap.js +1 -1
  7. package/dist/client/hooks/useGetEncryptedBalance.js +2 -1
  8. package/dist/client/hooks/useUnwrap.d.ts +1 -1
  9. package/dist/client/hooks/useUnwrap.js +6 -8
  10. package/dist/types/ABI/Wrapper.abi.d.ts +851 -19
  11. package/dist/types/ABI/Wrapper.abi.js +1218 -139
  12. package/package.json +1 -1
  13. package/dist/client/hooks/useEncryptedApprove.d.ts +0 -11
  14. package/dist/client/hooks/useEncryptedApprove.js +0 -26
  15. package/dist/context/FhevmProvider.d.ts +0 -15
  16. package/dist/context/FhevmProvider.js +0 -34
  17. package/dist/hooks/useDecryptHandles.d.ts +0 -70
  18. package/dist/hooks/useDecryptHandles.js +0 -41
  19. package/dist/hooks/useEncryptValue.d.ts +0 -104
  20. package/dist/hooks/useEncryptValue.js +0 -30
  21. package/dist/hooks/useEncryptedApprove.d.ts +0 -11
  22. package/dist/hooks/useEncryptedApprove.js +0 -26
  23. package/dist/hooks/useEncryptedTransfer.d.ts +0 -11
  24. package/dist/hooks/useEncryptedTransfer.js +0 -24
  25. package/dist/hooks/useFhevmInstance.d.ts +0 -3
  26. package/dist/hooks/useFhevmInstance.js +0 -5
  27. package/dist/hooks/useGetEncryptedBalance.d.ts +0 -8
  28. package/dist/hooks/useGetEncryptedBalance.js +0 -16
  29. package/dist/hooks/useGetFhevmConfig.d.ts +0 -3
  30. package/dist/hooks/useGetFhevmConfig.js +0 -5
  31. package/dist/hooks/usePerformTransaction.d.ts +0 -17
  32. package/dist/hooks/usePerformTransaction.js +0 -40
  33. package/dist/types/encryptedABI.d.ts +0 -1180
  34. package/dist/types/encryptedABI.js +0 -1534
@@ -1,1534 +0,0 @@
1
- export const encryptedABI = [
2
- {
3
- inputs: [],
4
- name: "AccessControlBadConfirmation",
5
- type: "error",
6
- },
7
- {
8
- inputs: [
9
- {
10
- internalType: "address",
11
- name: "account",
12
- type: "address",
13
- },
14
- {
15
- internalType: "bytes32",
16
- name: "neededRole",
17
- type: "bytes32",
18
- },
19
- ],
20
- name: "AccessControlUnauthorizedAccount",
21
- type: "error",
22
- },
23
- {
24
- inputs: [
25
- {
26
- internalType: "address",
27
- name: "target",
28
- type: "address",
29
- },
30
- ],
31
- name: "AddressEmptyCode",
32
- type: "error",
33
- },
34
- {
35
- inputs: [
36
- {
37
- internalType: "address",
38
- name: "implementation",
39
- type: "address",
40
- },
41
- ],
42
- name: "ERC1967InvalidImplementation",
43
- type: "error",
44
- },
45
- {
46
- inputs: [],
47
- name: "ERC1967NonPayable",
48
- type: "error",
49
- },
50
- {
51
- inputs: [
52
- {
53
- internalType: "address",
54
- name: "spender",
55
- type: "address",
56
- },
57
- {
58
- internalType: "uint256",
59
- name: "allowance",
60
- type: "uint256",
61
- },
62
- {
63
- internalType: "uint256",
64
- name: "needed",
65
- type: "uint256",
66
- },
67
- ],
68
- name: "ERC20InsufficientAllowance",
69
- type: "error",
70
- },
71
- {
72
- inputs: [
73
- {
74
- internalType: "address",
75
- name: "sender",
76
- type: "address",
77
- },
78
- {
79
- internalType: "uint256",
80
- name: "balance",
81
- type: "uint256",
82
- },
83
- {
84
- internalType: "uint256",
85
- name: "needed",
86
- type: "uint256",
87
- },
88
- ],
89
- name: "ERC20InsufficientBalance",
90
- type: "error",
91
- },
92
- {
93
- inputs: [
94
- {
95
- internalType: "address",
96
- name: "approver",
97
- type: "address",
98
- },
99
- ],
100
- name: "ERC20InvalidApprover",
101
- type: "error",
102
- },
103
- {
104
- inputs: [
105
- {
106
- internalType: "address",
107
- name: "receiver",
108
- type: "address",
109
- },
110
- ],
111
- name: "ERC20InvalidReceiver",
112
- type: "error",
113
- },
114
- {
115
- inputs: [
116
- {
117
- internalType: "address",
118
- name: "sender",
119
- type: "address",
120
- },
121
- ],
122
- name: "ERC20InvalidSender",
123
- type: "error",
124
- },
125
- {
126
- inputs: [
127
- {
128
- internalType: "address",
129
- name: "spender",
130
- type: "address",
131
- },
132
- ],
133
- name: "ERC20InvalidSpender",
134
- type: "error",
135
- },
136
- {
137
- inputs: [
138
- {
139
- internalType: "uint256",
140
- name: "requestId",
141
- type: "uint256",
142
- },
143
- ],
144
- name: "ERC7984InvalidGatewayRequest",
145
- type: "error",
146
- },
147
- {
148
- inputs: [
149
- {
150
- internalType: "address",
151
- name: "receiver",
152
- type: "address",
153
- },
154
- ],
155
- name: "ERC7984InvalidReceiver",
156
- type: "error",
157
- },
158
- {
159
- inputs: [
160
- {
161
- internalType: "address",
162
- name: "receiver",
163
- type: "address",
164
- },
165
- ],
166
- name: "ERC7984InvalidReceiver",
167
- type: "error",
168
- },
169
- {
170
- inputs: [
171
- {
172
- internalType: "address",
173
- name: "sender",
174
- type: "address",
175
- },
176
- ],
177
- name: "ERC7984InvalidSender",
178
- type: "error",
179
- },
180
- {
181
- inputs: [
182
- {
183
- internalType: "address",
184
- name: "caller",
185
- type: "address",
186
- },
187
- ],
188
- name: "ERC7984UnauthorizedCaller",
189
- type: "error",
190
- },
191
- {
192
- inputs: [
193
- {
194
- internalType: "address",
195
- name: "holder",
196
- type: "address",
197
- },
198
- {
199
- internalType: "address",
200
- name: "spender",
201
- type: "address",
202
- },
203
- ],
204
- name: "ERC7984UnauthorizedSpender",
205
- type: "error",
206
- },
207
- {
208
- inputs: [
209
- {
210
- internalType: "euint64",
211
- name: "amount",
212
- type: "bytes32",
213
- },
214
- {
215
- internalType: "address",
216
- name: "user",
217
- type: "address",
218
- },
219
- ],
220
- name: "ERC7984UnauthorizedUseOfEncryptedAmount",
221
- type: "error",
222
- },
223
- {
224
- inputs: [
225
- {
226
- internalType: "address",
227
- name: "holder",
228
- type: "address",
229
- },
230
- ],
231
- name: "ERC7984ZeroBalance",
232
- type: "error",
233
- },
234
- {
235
- inputs: [],
236
- name: "FHESenderNotAllowed",
237
- type: "error",
238
- },
239
- {
240
- inputs: [],
241
- name: "FailedCall",
242
- type: "error",
243
- },
244
- {
245
- inputs: [],
246
- name: "HandlesAlreadySavedForRequestID",
247
- type: "error",
248
- },
249
- {
250
- inputs: [],
251
- name: "InvalidInitialization",
252
- type: "error",
253
- },
254
- {
255
- inputs: [],
256
- name: "InvalidKMSSignatures",
257
- type: "error",
258
- },
259
- {
260
- inputs: [],
261
- name: "NoHandleFoundForRequestID",
262
- type: "error",
263
- },
264
- {
265
- inputs: [],
266
- name: "NotInitializing",
267
- type: "error",
268
- },
269
- {
270
- inputs: [
271
- {
272
- internalType: "address",
273
- name: "account",
274
- type: "address",
275
- },
276
- ],
277
- name: "SanctionedAddress",
278
- type: "error",
279
- },
280
- {
281
- inputs: [],
282
- name: "UUPSUnauthorizedCallContext",
283
- type: "error",
284
- },
285
- {
286
- inputs: [
287
- {
288
- internalType: "bytes32",
289
- name: "slot",
290
- type: "bytes32",
291
- },
292
- ],
293
- name: "UUPSUnsupportedProxiableUUID",
294
- type: "error",
295
- },
296
- {
297
- inputs: [],
298
- name: "UnsupportedHandleType",
299
- type: "error",
300
- },
301
- {
302
- anonymous: false,
303
- inputs: [
304
- {
305
- indexed: true,
306
- internalType: "euint64",
307
- name: "encryptedAmount",
308
- type: "bytes32",
309
- },
310
- {
311
- indexed: false,
312
- internalType: "uint64",
313
- name: "amount",
314
- type: "uint64",
315
- },
316
- ],
317
- name: "AmountDisclosed",
318
- type: "event",
319
- },
320
- {
321
- anonymous: false,
322
- inputs: [
323
- {
324
- indexed: true,
325
- internalType: "address",
326
- name: "owner",
327
- type: "address",
328
- },
329
- {
330
- indexed: true,
331
- internalType: "address",
332
- name: "spender",
333
- type: "address",
334
- },
335
- {
336
- indexed: false,
337
- internalType: "uint64",
338
- name: "placeholder",
339
- type: "uint64",
340
- },
341
- ],
342
- name: "Approval",
343
- type: "event",
344
- },
345
- {
346
- anonymous: false,
347
- inputs: [
348
- {
349
- indexed: true,
350
- internalType: "address",
351
- name: "to",
352
- type: "address",
353
- },
354
- {
355
- indexed: false,
356
- internalType: "uint64",
357
- name: "amount",
358
- type: "uint64",
359
- },
360
- ],
361
- name: "Burn",
362
- type: "event",
363
- },
364
- {
365
- anonymous: false,
366
- inputs: [
367
- {
368
- indexed: true,
369
- internalType: "address",
370
- name: "to",
371
- type: "address",
372
- },
373
- {
374
- indexed: false,
375
- internalType: "euint64",
376
- name: "amount",
377
- type: "bytes32",
378
- },
379
- {
380
- indexed: false,
381
- internalType: "uint64",
382
- name: "txId",
383
- type: "uint64",
384
- },
385
- ],
386
- name: "BurnInfo",
387
- type: "event",
388
- },
389
- {
390
- anonymous: false,
391
- inputs: [
392
- {
393
- indexed: true,
394
- internalType: "address",
395
- name: "from",
396
- type: "address",
397
- },
398
- {
399
- indexed: true,
400
- internalType: "address",
401
- name: "to",
402
- type: "address",
403
- },
404
- {
405
- indexed: true,
406
- internalType: "euint64",
407
- name: "amount",
408
- type: "bytes32",
409
- },
410
- ],
411
- name: "ConfidentialTransfer",
412
- type: "event",
413
- },
414
- {
415
- anonymous: false,
416
- inputs: [
417
- {
418
- indexed: true,
419
- internalType: "uint256",
420
- name: "requestID",
421
- type: "uint256",
422
- },
423
- ],
424
- name: "DecryptionFulfilled",
425
- type: "event",
426
- },
427
- {
428
- anonymous: false,
429
- inputs: [
430
- {
431
- indexed: false,
432
- internalType: "uint64",
433
- name: "version",
434
- type: "uint64",
435
- },
436
- ],
437
- name: "Initialized",
438
- type: "event",
439
- },
440
- {
441
- anonymous: false,
442
- inputs: [
443
- {
444
- indexed: true,
445
- internalType: "address",
446
- name: "to",
447
- type: "address",
448
- },
449
- {
450
- indexed: false,
451
- internalType: "uint64",
452
- name: "amount",
453
- type: "uint64",
454
- },
455
- ],
456
- name: "Mint",
457
- type: "event",
458
- },
459
- {
460
- anonymous: false,
461
- inputs: [
462
- {
463
- indexed: true,
464
- internalType: "address",
465
- name: "to",
466
- type: "address",
467
- },
468
- {
469
- indexed: false,
470
- internalType: "uint64",
471
- name: "amount",
472
- type: "uint64",
473
- },
474
- {
475
- indexed: false,
476
- internalType: "uint64",
477
- name: "txId",
478
- type: "uint64",
479
- },
480
- {
481
- indexed: false,
482
- internalType: "bool",
483
- name: "isRoyalty",
484
- type: "bool",
485
- },
486
- ],
487
- name: "MintInfo",
488
- type: "event",
489
- },
490
- {
491
- anonymous: false,
492
- inputs: [
493
- {
494
- indexed: true,
495
- internalType: "address",
496
- name: "holder",
497
- type: "address",
498
- },
499
- {
500
- indexed: true,
501
- internalType: "address",
502
- name: "operator",
503
- type: "address",
504
- },
505
- {
506
- indexed: false,
507
- internalType: "uint48",
508
- name: "until",
509
- type: "uint48",
510
- },
511
- ],
512
- name: "OperatorSet",
513
- type: "event",
514
- },
515
- {
516
- anonymous: false,
517
- inputs: [
518
- {
519
- indexed: true,
520
- internalType: "bytes32",
521
- name: "role",
522
- type: "bytes32",
523
- },
524
- {
525
- indexed: true,
526
- internalType: "bytes32",
527
- name: "previousAdminRole",
528
- type: "bytes32",
529
- },
530
- {
531
- indexed: true,
532
- internalType: "bytes32",
533
- name: "newAdminRole",
534
- type: "bytes32",
535
- },
536
- ],
537
- name: "RoleAdminChanged",
538
- type: "event",
539
- },
540
- {
541
- anonymous: false,
542
- inputs: [
543
- {
544
- indexed: true,
545
- internalType: "bytes32",
546
- name: "role",
547
- type: "bytes32",
548
- },
549
- {
550
- indexed: true,
551
- internalType: "address",
552
- name: "account",
553
- type: "address",
554
- },
555
- {
556
- indexed: true,
557
- internalType: "address",
558
- name: "sender",
559
- type: "address",
560
- },
561
- ],
562
- name: "RoleGranted",
563
- type: "event",
564
- },
565
- {
566
- anonymous: false,
567
- inputs: [
568
- {
569
- indexed: true,
570
- internalType: "bytes32",
571
- name: "role",
572
- type: "bytes32",
573
- },
574
- {
575
- indexed: true,
576
- internalType: "address",
577
- name: "account",
578
- type: "address",
579
- },
580
- {
581
- indexed: true,
582
- internalType: "address",
583
- name: "sender",
584
- type: "address",
585
- },
586
- ],
587
- name: "RoleRevoked",
588
- type: "event",
589
- },
590
- {
591
- anonymous: false,
592
- inputs: [
593
- {
594
- indexed: true,
595
- internalType: "address",
596
- name: "from",
597
- type: "address",
598
- },
599
- {
600
- indexed: true,
601
- internalType: "address",
602
- name: "to",
603
- type: "address",
604
- },
605
- {
606
- indexed: false,
607
- internalType: "uint64",
608
- name: "transferId",
609
- type: "uint64",
610
- },
611
- ],
612
- name: "Transfer",
613
- type: "event",
614
- },
615
- {
616
- anonymous: false,
617
- inputs: [
618
- {
619
- indexed: true,
620
- internalType: "address",
621
- name: "from",
622
- type: "address",
623
- },
624
- {
625
- indexed: true,
626
- internalType: "address",
627
- name: "to",
628
- type: "address",
629
- },
630
- {
631
- indexed: false,
632
- internalType: "euint64",
633
- name: "encryptedAmount",
634
- type: "bytes32",
635
- },
636
- ],
637
- name: "TransferInfo",
638
- type: "event",
639
- },
640
- {
641
- anonymous: false,
642
- inputs: [
643
- {
644
- indexed: true,
645
- internalType: "address",
646
- name: "from",
647
- type: "address",
648
- },
649
- {
650
- indexed: true,
651
- internalType: "address",
652
- name: "to",
653
- type: "address",
654
- },
655
- {
656
- indexed: false,
657
- internalType: "euint64",
658
- name: "encryptedAmount",
659
- type: "bytes32",
660
- },
661
- {
662
- indexed: false,
663
- internalType: "uint64",
664
- name: "txId",
665
- type: "uint64",
666
- },
667
- ],
668
- name: "TransferInfoWithTxId",
669
- type: "event",
670
- },
671
- {
672
- anonymous: false,
673
- inputs: [
674
- {
675
- indexed: true,
676
- internalType: "address",
677
- name: "implementation",
678
- type: "address",
679
- },
680
- ],
681
- name: "Upgraded",
682
- type: "event",
683
- },
684
- {
685
- inputs: [],
686
- name: "DEFAULT_ADMIN_ROLE",
687
- outputs: [
688
- {
689
- internalType: "bytes32",
690
- name: "",
691
- type: "bytes32",
692
- },
693
- ],
694
- stateMutability: "view",
695
- type: "function",
696
- },
697
- {
698
- inputs: [],
699
- name: "UPGRADE_INTERFACE_VERSION",
700
- outputs: [
701
- {
702
- internalType: "string",
703
- name: "",
704
- type: "string",
705
- },
706
- ],
707
- stateMutability: "view",
708
- type: "function",
709
- },
710
- {
711
- inputs: [],
712
- name: "WRAPPER_ROLE",
713
- outputs: [
714
- {
715
- internalType: "bytes32",
716
- name: "",
717
- type: "bytes32",
718
- },
719
- ],
720
- stateMutability: "view",
721
- type: "function",
722
- },
723
- {
724
- inputs: [],
725
- name: "adminProvider",
726
- outputs: [
727
- {
728
- internalType: "contract AdminProvider",
729
- name: "",
730
- type: "address",
731
- },
732
- ],
733
- stateMutability: "view",
734
- type: "function",
735
- },
736
- {
737
- inputs: [
738
- {
739
- internalType: "address",
740
- name: "owner",
741
- type: "address",
742
- },
743
- {
744
- internalType: "address",
745
- name: "spender",
746
- type: "address",
747
- },
748
- ],
749
- name: "allowance",
750
- outputs: [
751
- {
752
- internalType: "euint64",
753
- name: "",
754
- type: "bytes32",
755
- },
756
- ],
757
- stateMutability: "view",
758
- type: "function",
759
- },
760
- {
761
- inputs: [
762
- {
763
- internalType: "address",
764
- name: "to",
765
- type: "address",
766
- },
767
- {
768
- internalType: "uint64",
769
- name: "amount",
770
- type: "uint64",
771
- },
772
- {
773
- internalType: "uint64",
774
- name: "txId",
775
- type: "uint64",
776
- },
777
- ],
778
- name: "burn",
779
- outputs: [
780
- {
781
- internalType: "euint64",
782
- name: "burnAmount",
783
- type: "bytes32",
784
- },
785
- ],
786
- stateMutability: "nonpayable",
787
- type: "function",
788
- },
789
- {
790
- inputs: [
791
- {
792
- internalType: "address",
793
- name: "spender",
794
- type: "address",
795
- },
796
- {
797
- internalType: "euint64",
798
- name: "amount",
799
- type: "bytes32",
800
- },
801
- ],
802
- name: "confidentialApprove",
803
- outputs: [
804
- {
805
- internalType: "bool",
806
- name: "",
807
- type: "bool",
808
- },
809
- ],
810
- stateMutability: "nonpayable",
811
- type: "function",
812
- },
813
- {
814
- inputs: [
815
- {
816
- internalType: "address",
817
- name: "spender",
818
- type: "address",
819
- },
820
- {
821
- internalType: "externalEuint64",
822
- name: "encryptedAmount",
823
- type: "bytes32",
824
- },
825
- {
826
- internalType: "bytes",
827
- name: "inputProof",
828
- type: "bytes",
829
- },
830
- ],
831
- name: "confidentialApprove",
832
- outputs: [
833
- {
834
- internalType: "bool",
835
- name: "",
836
- type: "bool",
837
- },
838
- ],
839
- stateMutability: "nonpayable",
840
- type: "function",
841
- },
842
- {
843
- inputs: [
844
- {
845
- internalType: "address",
846
- name: "account",
847
- type: "address",
848
- },
849
- ],
850
- name: "confidentialBalanceOf",
851
- outputs: [
852
- {
853
- internalType: "euint64",
854
- name: "",
855
- type: "bytes32",
856
- },
857
- ],
858
- stateMutability: "view",
859
- type: "function",
860
- },
861
- {
862
- inputs: [],
863
- name: "confidentialTotalSupply",
864
- outputs: [
865
- {
866
- internalType: "euint64",
867
- name: "",
868
- type: "bytes32",
869
- },
870
- ],
871
- stateMutability: "view",
872
- type: "function",
873
- },
874
- {
875
- inputs: [
876
- {
877
- internalType: "address",
878
- name: "to",
879
- type: "address",
880
- },
881
- {
882
- internalType: "externalEuint64",
883
- name: "encryptedAmount",
884
- type: "bytes32",
885
- },
886
- {
887
- internalType: "bytes",
888
- name: "inputProof",
889
- type: "bytes",
890
- },
891
- ],
892
- name: "confidentialTransfer",
893
- outputs: [
894
- {
895
- internalType: "euint64",
896
- name: "",
897
- type: "bytes32",
898
- },
899
- ],
900
- stateMutability: "nonpayable",
901
- type: "function",
902
- },
903
- {
904
- inputs: [
905
- {
906
- internalType: "address",
907
- name: "to",
908
- type: "address",
909
- },
910
- {
911
- internalType: "euint64",
912
- name: "amount",
913
- type: "bytes32",
914
- },
915
- ],
916
- name: "confidentialTransfer",
917
- outputs: [
918
- {
919
- internalType: "euint64",
920
- name: "",
921
- type: "bytes32",
922
- },
923
- ],
924
- stateMutability: "nonpayable",
925
- type: "function",
926
- },
927
- {
928
- inputs: [
929
- {
930
- internalType: "address",
931
- name: "to",
932
- type: "address",
933
- },
934
- {
935
- internalType: "euint64",
936
- name: "amount",
937
- type: "bytes32",
938
- },
939
- {
940
- internalType: "bytes",
941
- name: "data",
942
- type: "bytes",
943
- },
944
- ],
945
- name: "confidentialTransferAndCall",
946
- outputs: [
947
- {
948
- internalType: "euint64",
949
- name: "transferred",
950
- type: "bytes32",
951
- },
952
- ],
953
- stateMutability: "nonpayable",
954
- type: "function",
955
- },
956
- {
957
- inputs: [
958
- {
959
- internalType: "address",
960
- name: "to",
961
- type: "address",
962
- },
963
- {
964
- internalType: "externalEuint64",
965
- name: "encryptedAmount",
966
- type: "bytes32",
967
- },
968
- {
969
- internalType: "bytes",
970
- name: "inputProof",
971
- type: "bytes",
972
- },
973
- {
974
- internalType: "bytes",
975
- name: "data",
976
- type: "bytes",
977
- },
978
- ],
979
- name: "confidentialTransferAndCall",
980
- outputs: [
981
- {
982
- internalType: "euint64",
983
- name: "transferred",
984
- type: "bytes32",
985
- },
986
- ],
987
- stateMutability: "nonpayable",
988
- type: "function",
989
- },
990
- {
991
- inputs: [
992
- {
993
- internalType: "address",
994
- name: "from",
995
- type: "address",
996
- },
997
- {
998
- internalType: "address",
999
- name: "to",
1000
- type: "address",
1001
- },
1002
- {
1003
- internalType: "externalEuint64",
1004
- name: "encryptedAmount",
1005
- type: "bytes32",
1006
- },
1007
- {
1008
- internalType: "bytes",
1009
- name: "inputProof",
1010
- type: "bytes",
1011
- },
1012
- ],
1013
- name: "confidentialTransferFrom",
1014
- outputs: [
1015
- {
1016
- internalType: "euint64",
1017
- name: "",
1018
- type: "bytes32",
1019
- },
1020
- ],
1021
- stateMutability: "nonpayable",
1022
- type: "function",
1023
- },
1024
- {
1025
- inputs: [
1026
- {
1027
- internalType: "address",
1028
- name: "from",
1029
- type: "address",
1030
- },
1031
- {
1032
- internalType: "address",
1033
- name: "to",
1034
- type: "address",
1035
- },
1036
- {
1037
- internalType: "euint64",
1038
- name: "amount",
1039
- type: "bytes32",
1040
- },
1041
- ],
1042
- name: "confidentialTransferFrom",
1043
- outputs: [
1044
- {
1045
- internalType: "euint64",
1046
- name: "",
1047
- type: "bytes32",
1048
- },
1049
- ],
1050
- stateMutability: "nonpayable",
1051
- type: "function",
1052
- },
1053
- {
1054
- inputs: [
1055
- {
1056
- internalType: "address",
1057
- name: "from",
1058
- type: "address",
1059
- },
1060
- {
1061
- internalType: "address",
1062
- name: "to",
1063
- type: "address",
1064
- },
1065
- {
1066
- internalType: "externalEuint64",
1067
- name: "encryptedAmount",
1068
- type: "bytes32",
1069
- },
1070
- {
1071
- internalType: "bytes",
1072
- name: "inputProof",
1073
- type: "bytes",
1074
- },
1075
- {
1076
- internalType: "bytes",
1077
- name: "data",
1078
- type: "bytes",
1079
- },
1080
- ],
1081
- name: "confidentialTransferFromAndCall",
1082
- outputs: [
1083
- {
1084
- internalType: "euint64",
1085
- name: "transferred",
1086
- type: "bytes32",
1087
- },
1088
- ],
1089
- stateMutability: "nonpayable",
1090
- type: "function",
1091
- },
1092
- {
1093
- inputs: [
1094
- {
1095
- internalType: "address",
1096
- name: "from",
1097
- type: "address",
1098
- },
1099
- {
1100
- internalType: "address",
1101
- name: "to",
1102
- type: "address",
1103
- },
1104
- {
1105
- internalType: "euint64",
1106
- name: "amount",
1107
- type: "bytes32",
1108
- },
1109
- {
1110
- internalType: "bytes",
1111
- name: "data",
1112
- type: "bytes",
1113
- },
1114
- ],
1115
- name: "confidentialTransferFromAndCall",
1116
- outputs: [
1117
- {
1118
- internalType: "euint64",
1119
- name: "transferred",
1120
- type: "bytes32",
1121
- },
1122
- ],
1123
- stateMutability: "nonpayable",
1124
- type: "function",
1125
- },
1126
- {
1127
- inputs: [
1128
- {
1129
- internalType: "address",
1130
- name: "from",
1131
- type: "address",
1132
- },
1133
- {
1134
- internalType: "address",
1135
- name: "to",
1136
- type: "address",
1137
- },
1138
- {
1139
- internalType: "euint64",
1140
- name: "amount",
1141
- type: "bytes32",
1142
- },
1143
- {
1144
- internalType: "uint64",
1145
- name: "txId",
1146
- type: "uint64",
1147
- },
1148
- ],
1149
- name: "confidentialTransferFromWithTxId",
1150
- outputs: [
1151
- {
1152
- internalType: "euint64",
1153
- name: "",
1154
- type: "bytes32",
1155
- },
1156
- ],
1157
- stateMutability: "nonpayable",
1158
- type: "function",
1159
- },
1160
- {
1161
- inputs: [],
1162
- name: "decimals",
1163
- outputs: [
1164
- {
1165
- internalType: "uint8",
1166
- name: "",
1167
- type: "uint8",
1168
- },
1169
- ],
1170
- stateMutability: "view",
1171
- type: "function",
1172
- },
1173
- {
1174
- inputs: [
1175
- {
1176
- internalType: "euint64",
1177
- name: "encryptedAmount",
1178
- type: "bytes32",
1179
- },
1180
- ],
1181
- name: "discloseEncryptedAmount",
1182
- outputs: [],
1183
- stateMutability: "nonpayable",
1184
- type: "function",
1185
- },
1186
- {
1187
- inputs: [
1188
- {
1189
- internalType: "uint256",
1190
- name: "requestId",
1191
- type: "uint256",
1192
- },
1193
- {
1194
- internalType: "uint64",
1195
- name: "amount",
1196
- type: "uint64",
1197
- },
1198
- {
1199
- internalType: "bytes[]",
1200
- name: "signatures",
1201
- type: "bytes[]",
1202
- },
1203
- ],
1204
- name: "finalizeDiscloseEncryptedAmount",
1205
- outputs: [],
1206
- stateMutability: "nonpayable",
1207
- type: "function",
1208
- },
1209
- {
1210
- inputs: [
1211
- {
1212
- internalType: "bytes32",
1213
- name: "role",
1214
- type: "bytes32",
1215
- },
1216
- ],
1217
- name: "getRoleAdmin",
1218
- outputs: [
1219
- {
1220
- internalType: "bytes32",
1221
- name: "",
1222
- type: "bytes32",
1223
- },
1224
- ],
1225
- stateMutability: "view",
1226
- type: "function",
1227
- },
1228
- {
1229
- inputs: [
1230
- {
1231
- internalType: "bytes32",
1232
- name: "role",
1233
- type: "bytes32",
1234
- },
1235
- {
1236
- internalType: "address",
1237
- name: "account",
1238
- type: "address",
1239
- },
1240
- ],
1241
- name: "grantRole",
1242
- outputs: [],
1243
- stateMutability: "nonpayable",
1244
- type: "function",
1245
- },
1246
- {
1247
- inputs: [
1248
- {
1249
- internalType: "bytes32",
1250
- name: "role",
1251
- type: "bytes32",
1252
- },
1253
- {
1254
- internalType: "address",
1255
- name: "account",
1256
- type: "address",
1257
- },
1258
- ],
1259
- name: "hasRole",
1260
- outputs: [
1261
- {
1262
- internalType: "bool",
1263
- name: "",
1264
- type: "bool",
1265
- },
1266
- ],
1267
- stateMutability: "view",
1268
- type: "function",
1269
- },
1270
- {
1271
- inputs: [
1272
- {
1273
- internalType: "string",
1274
- name: "name_",
1275
- type: "string",
1276
- },
1277
- {
1278
- internalType: "string",
1279
- name: "symbol_",
1280
- type: "string",
1281
- },
1282
- {
1283
- internalType: "uint8",
1284
- name: "decimals_",
1285
- type: "uint8",
1286
- },
1287
- {
1288
- internalType: "address",
1289
- name: "regulator_",
1290
- type: "address",
1291
- },
1292
- {
1293
- internalType: "address",
1294
- name: "admin_",
1295
- type: "address",
1296
- },
1297
- {
1298
- internalType: "uint256",
1299
- name: "rate_",
1300
- type: "uint256",
1301
- },
1302
- {
1303
- internalType: "contract AdminProvider",
1304
- name: "adminProvider_",
1305
- type: "address",
1306
- },
1307
- ],
1308
- name: "initialize",
1309
- outputs: [],
1310
- stateMutability: "nonpayable",
1311
- type: "function",
1312
- },
1313
- {
1314
- inputs: [
1315
- {
1316
- internalType: "address",
1317
- name: "holder",
1318
- type: "address",
1319
- },
1320
- {
1321
- internalType: "address",
1322
- name: "spender",
1323
- type: "address",
1324
- },
1325
- ],
1326
- name: "isOperator",
1327
- outputs: [
1328
- {
1329
- internalType: "bool",
1330
- name: "",
1331
- type: "bool",
1332
- },
1333
- ],
1334
- stateMutability: "view",
1335
- type: "function",
1336
- },
1337
- {
1338
- inputs: [
1339
- {
1340
- internalType: "address",
1341
- name: "to",
1342
- type: "address",
1343
- },
1344
- {
1345
- internalType: "uint64",
1346
- name: "amount",
1347
- type: "uint64",
1348
- },
1349
- {
1350
- internalType: "uint64",
1351
- name: "txId",
1352
- type: "uint64",
1353
- },
1354
- {
1355
- internalType: "bool",
1356
- name: "isRoyalty",
1357
- type: "bool",
1358
- },
1359
- ],
1360
- name: "mint",
1361
- outputs: [],
1362
- stateMutability: "nonpayable",
1363
- type: "function",
1364
- },
1365
- {
1366
- inputs: [],
1367
- name: "name",
1368
- outputs: [
1369
- {
1370
- internalType: "string",
1371
- name: "",
1372
- type: "string",
1373
- },
1374
- ],
1375
- stateMutability: "view",
1376
- type: "function",
1377
- },
1378
- {
1379
- inputs: [],
1380
- name: "proxiableUUID",
1381
- outputs: [
1382
- {
1383
- internalType: "bytes32",
1384
- name: "",
1385
- type: "bytes32",
1386
- },
1387
- ],
1388
- stateMutability: "view",
1389
- type: "function",
1390
- },
1391
- {
1392
- inputs: [],
1393
- name: "rate",
1394
- outputs: [
1395
- {
1396
- internalType: "uint256",
1397
- name: "",
1398
- type: "uint256",
1399
- },
1400
- ],
1401
- stateMutability: "view",
1402
- type: "function",
1403
- },
1404
- {
1405
- inputs: [],
1406
- name: "regulator",
1407
- outputs: [
1408
- {
1409
- internalType: "address",
1410
- name: "",
1411
- type: "address",
1412
- },
1413
- ],
1414
- stateMutability: "view",
1415
- type: "function",
1416
- },
1417
- {
1418
- inputs: [
1419
- {
1420
- internalType: "bytes32",
1421
- name: "role",
1422
- type: "bytes32",
1423
- },
1424
- {
1425
- internalType: "address",
1426
- name: "callerConfirmation",
1427
- type: "address",
1428
- },
1429
- ],
1430
- name: "renounceRole",
1431
- outputs: [],
1432
- stateMutability: "nonpayable",
1433
- type: "function",
1434
- },
1435
- {
1436
- inputs: [
1437
- {
1438
- internalType: "bytes32",
1439
- name: "role",
1440
- type: "bytes32",
1441
- },
1442
- {
1443
- internalType: "address",
1444
- name: "account",
1445
- type: "address",
1446
- },
1447
- ],
1448
- name: "revokeRole",
1449
- outputs: [],
1450
- stateMutability: "nonpayable",
1451
- type: "function",
1452
- },
1453
- {
1454
- inputs: [
1455
- {
1456
- internalType: "address",
1457
- name: "operator",
1458
- type: "address",
1459
- },
1460
- {
1461
- internalType: "uint48",
1462
- name: "until",
1463
- type: "uint48",
1464
- },
1465
- ],
1466
- name: "setOperator",
1467
- outputs: [],
1468
- stateMutability: "nonpayable",
1469
- type: "function",
1470
- },
1471
- {
1472
- inputs: [
1473
- {
1474
- internalType: "bytes4",
1475
- name: "interfaceId",
1476
- type: "bytes4",
1477
- },
1478
- ],
1479
- name: "supportsInterface",
1480
- outputs: [
1481
- {
1482
- internalType: "bool",
1483
- name: "",
1484
- type: "bool",
1485
- },
1486
- ],
1487
- stateMutability: "view",
1488
- type: "function",
1489
- },
1490
- {
1491
- inputs: [],
1492
- name: "symbol",
1493
- outputs: [
1494
- {
1495
- internalType: "string",
1496
- name: "",
1497
- type: "string",
1498
- },
1499
- ],
1500
- stateMutability: "view",
1501
- type: "function",
1502
- },
1503
- {
1504
- inputs: [],
1505
- name: "tokenURI",
1506
- outputs: [
1507
- {
1508
- internalType: "string",
1509
- name: "",
1510
- type: "string",
1511
- },
1512
- ],
1513
- stateMutability: "view",
1514
- type: "function",
1515
- },
1516
- {
1517
- inputs: [
1518
- {
1519
- internalType: "address",
1520
- name: "newImplementation",
1521
- type: "address",
1522
- },
1523
- {
1524
- internalType: "bytes",
1525
- name: "data",
1526
- type: "bytes",
1527
- },
1528
- ],
1529
- name: "upgradeToAndCall",
1530
- outputs: [],
1531
- stateMutability: "payable",
1532
- type: "function",
1533
- },
1534
- ];