@pyratzlabs/react-fhevm-utils 3.2.3 → 3.3.1

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 (36) 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 +5 -1
  6. package/dist/client/hooks/useFinalizeUnwrap.d.ts +1 -1
  7. package/dist/client/hooks/useFinalizeUnwrap.js +3 -3
  8. package/dist/client/hooks/useGetEncryptedBalance.js +2 -1
  9. package/dist/client/hooks/useUnwrap.js +2 -2
  10. package/dist/types/ABI/TransferBatcher.abi.d.ts +21 -1
  11. package/dist/types/ABI/TransferBatcher.abi.js +27 -1
  12. package/dist/types/ABI/Wrapper.abi.d.ts +575 -20
  13. package/dist/types/ABI/Wrapper.abi.js +745 -30
  14. package/package.json +1 -1
  15. package/dist/client/hooks/useEncryptedApprove.d.ts +0 -11
  16. package/dist/client/hooks/useEncryptedApprove.js +0 -26
  17. package/dist/context/FhevmProvider.d.ts +0 -15
  18. package/dist/context/FhevmProvider.js +0 -34
  19. package/dist/hooks/useDecryptHandles.d.ts +0 -70
  20. package/dist/hooks/useDecryptHandles.js +0 -41
  21. package/dist/hooks/useEncryptValue.d.ts +0 -104
  22. package/dist/hooks/useEncryptValue.js +0 -30
  23. package/dist/hooks/useEncryptedApprove.d.ts +0 -11
  24. package/dist/hooks/useEncryptedApprove.js +0 -26
  25. package/dist/hooks/useEncryptedTransfer.d.ts +0 -11
  26. package/dist/hooks/useEncryptedTransfer.js +0 -24
  27. package/dist/hooks/useFhevmInstance.d.ts +0 -3
  28. package/dist/hooks/useFhevmInstance.js +0 -5
  29. package/dist/hooks/useGetEncryptedBalance.d.ts +0 -8
  30. package/dist/hooks/useGetEncryptedBalance.js +0 -16
  31. package/dist/hooks/useGetFhevmConfig.d.ts +0 -3
  32. package/dist/hooks/useGetFhevmConfig.js +0 -5
  33. package/dist/hooks/usePerformTransaction.d.ts +0 -17
  34. package/dist/hooks/usePerformTransaction.js +0 -40
  35. package/dist/types/encryptedABI.d.ts +0 -1180
  36. package/dist/types/encryptedABI.js +0 -1534
@@ -1,24 +1,67 @@
1
1
  export const WRAPPER_ABI = [
2
+ {
3
+ inputs: [],
4
+ stateMutability: "nonpayable",
5
+ type: "constructor",
6
+ },
7
+ {
8
+ inputs: [],
9
+ name: "AccessControlBadConfirmation",
10
+ type: "error",
11
+ },
12
+ {
13
+ inputs: [
14
+ {
15
+ internalType: "uint48",
16
+ name: "schedule",
17
+ type: "uint48",
18
+ },
19
+ ],
20
+ name: "AccessControlEnforcedDefaultAdminDelay",
21
+ type: "error",
22
+ },
23
+ {
24
+ inputs: [],
25
+ name: "AccessControlEnforcedDefaultAdminRules",
26
+ type: "error",
27
+ },
2
28
  {
3
29
  inputs: [
4
30
  {
5
31
  internalType: "address",
6
- name: "originalToken_",
32
+ name: "defaultAdmin",
7
33
  type: "address",
8
34
  },
35
+ ],
36
+ name: "AccessControlInvalidDefaultAdmin",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [
9
41
  {
10
- internalType: "contract RegulatedERC7984Upgradeable",
11
- name: "confidentialToken_",
42
+ internalType: "address",
43
+ name: "account",
12
44
  type: "address",
13
45
  },
14
46
  {
15
- internalType: "contract AdminProvider",
16
- name: "adminProvider_",
47
+ internalType: "bytes32",
48
+ name: "neededRole",
49
+ type: "bytes32",
50
+ },
51
+ ],
52
+ name: "AccessControlUnauthorizedAccount",
53
+ type: "error",
54
+ },
55
+ {
56
+ inputs: [
57
+ {
58
+ internalType: "address",
59
+ name: "target",
17
60
  type: "address",
18
61
  },
19
62
  ],
20
- stateMutability: "nonpayable",
21
- type: "constructor",
63
+ name: "AddressEmptyCode",
64
+ type: "error",
22
65
  },
23
66
  {
24
67
  inputs: [],
@@ -30,6 +73,22 @@ export const WRAPPER_ABI = [
30
73
  name: "CannotSendToZeroAddress",
31
74
  type: "error",
32
75
  },
76
+ {
77
+ inputs: [
78
+ {
79
+ internalType: "address",
80
+ name: "implementation",
81
+ type: "address",
82
+ },
83
+ ],
84
+ name: "ERC1967InvalidImplementation",
85
+ type: "error",
86
+ },
87
+ {
88
+ inputs: [],
89
+ name: "ERC1967NonPayable",
90
+ type: "error",
91
+ },
33
92
  {
34
93
  inputs: [
35
94
  {
@@ -46,11 +105,36 @@ export const WRAPPER_ABI = [
46
105
  name: "EthFeeTransferFailed",
47
106
  type: "error",
48
107
  },
108
+ {
109
+ inputs: [],
110
+ name: "FailedCall",
111
+ type: "error",
112
+ },
49
113
  {
50
114
  inputs: [],
51
115
  name: "IncorrectEthAmount",
52
116
  type: "error",
53
117
  },
118
+ {
119
+ inputs: [],
120
+ name: "InvalidInitialization",
121
+ type: "error",
122
+ },
123
+ {
124
+ inputs: [],
125
+ name: "InvalidKMSSignatures",
126
+ type: "error",
127
+ },
128
+ {
129
+ inputs: [],
130
+ name: "NotInitializing",
131
+ type: "error",
132
+ },
133
+ {
134
+ inputs: [],
135
+ name: "ReentrancyGuardReentrantCall",
136
+ type: "error",
137
+ },
54
138
  {
55
139
  inputs: [
56
140
  {
@@ -83,6 +167,199 @@ export const WRAPPER_ABI = [
83
167
  name: "SenderNotAllowed",
84
168
  type: "error",
85
169
  },
170
+ {
171
+ inputs: [],
172
+ name: "UUPSUnauthorizedCallContext",
173
+ type: "error",
174
+ },
175
+ {
176
+ inputs: [
177
+ {
178
+ internalType: "bytes32",
179
+ name: "slot",
180
+ type: "bytes32",
181
+ },
182
+ ],
183
+ name: "UUPSUnsupportedProxiableUUID",
184
+ type: "error",
185
+ },
186
+ {
187
+ inputs: [],
188
+ name: "WrapperBalanceExceedsMaxSupply",
189
+ type: "error",
190
+ },
191
+ {
192
+ inputs: [],
193
+ name: "ZamaProtocolUnsupported",
194
+ type: "error",
195
+ },
196
+ {
197
+ inputs: [],
198
+ name: "ZeroAddressConfidentialToken",
199
+ type: "error",
200
+ },
201
+ {
202
+ inputs: [],
203
+ name: "ZeroAddressDeploymentCoordinator",
204
+ type: "error",
205
+ },
206
+ {
207
+ anonymous: false,
208
+ inputs: [],
209
+ name: "DefaultAdminDelayChangeCanceled",
210
+ type: "event",
211
+ },
212
+ {
213
+ anonymous: false,
214
+ inputs: [
215
+ {
216
+ indexed: false,
217
+ internalType: "uint48",
218
+ name: "newDelay",
219
+ type: "uint48",
220
+ },
221
+ {
222
+ indexed: false,
223
+ internalType: "uint48",
224
+ name: "effectSchedule",
225
+ type: "uint48",
226
+ },
227
+ ],
228
+ name: "DefaultAdminDelayChangeScheduled",
229
+ type: "event",
230
+ },
231
+ {
232
+ anonymous: false,
233
+ inputs: [],
234
+ name: "DefaultAdminTransferCanceled",
235
+ type: "event",
236
+ },
237
+ {
238
+ anonymous: false,
239
+ inputs: [
240
+ {
241
+ indexed: true,
242
+ internalType: "address",
243
+ name: "newAdmin",
244
+ type: "address",
245
+ },
246
+ {
247
+ indexed: false,
248
+ internalType: "uint48",
249
+ name: "acceptSchedule",
250
+ type: "uint48",
251
+ },
252
+ ],
253
+ name: "DefaultAdminTransferScheduled",
254
+ type: "event",
255
+ },
256
+ {
257
+ anonymous: false,
258
+ inputs: [
259
+ {
260
+ indexed: false,
261
+ internalType: "uint64",
262
+ name: "version",
263
+ type: "uint64",
264
+ },
265
+ ],
266
+ name: "Initialized",
267
+ type: "event",
268
+ },
269
+ {
270
+ anonymous: false,
271
+ inputs: [
272
+ {
273
+ indexed: false,
274
+ internalType: "bytes32[]",
275
+ name: "handlesList",
276
+ type: "bytes32[]",
277
+ },
278
+ {
279
+ indexed: false,
280
+ internalType: "bytes",
281
+ name: "abiEncodedCleartexts",
282
+ type: "bytes",
283
+ },
284
+ ],
285
+ name: "PublicDecryptionVerified",
286
+ type: "event",
287
+ },
288
+ {
289
+ anonymous: false,
290
+ inputs: [
291
+ {
292
+ indexed: true,
293
+ internalType: "bytes32",
294
+ name: "role",
295
+ type: "bytes32",
296
+ },
297
+ {
298
+ indexed: true,
299
+ internalType: "bytes32",
300
+ name: "previousAdminRole",
301
+ type: "bytes32",
302
+ },
303
+ {
304
+ indexed: true,
305
+ internalType: "bytes32",
306
+ name: "newAdminRole",
307
+ type: "bytes32",
308
+ },
309
+ ],
310
+ name: "RoleAdminChanged",
311
+ type: "event",
312
+ },
313
+ {
314
+ anonymous: false,
315
+ inputs: [
316
+ {
317
+ indexed: true,
318
+ internalType: "bytes32",
319
+ name: "role",
320
+ type: "bytes32",
321
+ },
322
+ {
323
+ indexed: true,
324
+ internalType: "address",
325
+ name: "account",
326
+ type: "address",
327
+ },
328
+ {
329
+ indexed: true,
330
+ internalType: "address",
331
+ name: "sender",
332
+ type: "address",
333
+ },
334
+ ],
335
+ name: "RoleGranted",
336
+ type: "event",
337
+ },
338
+ {
339
+ anonymous: false,
340
+ inputs: [
341
+ {
342
+ indexed: true,
343
+ internalType: "bytes32",
344
+ name: "role",
345
+ type: "bytes32",
346
+ },
347
+ {
348
+ indexed: true,
349
+ internalType: "address",
350
+ name: "account",
351
+ type: "address",
352
+ },
353
+ {
354
+ indexed: true,
355
+ internalType: "address",
356
+ name: "sender",
357
+ type: "address",
358
+ },
359
+ ],
360
+ name: "RoleRevoked",
361
+ type: "event",
362
+ },
86
363
  {
87
364
  anonymous: false,
88
365
  inputs: [
@@ -159,6 +436,12 @@ export const WRAPPER_ABI = [
159
436
  name: "to",
160
437
  type: "address",
161
438
  },
439
+ {
440
+ indexed: false,
441
+ internalType: "address",
442
+ name: "refund",
443
+ type: "address",
444
+ },
162
445
  {
163
446
  indexed: false,
164
447
  internalType: "euint64",
@@ -175,6 +458,19 @@ export const WRAPPER_ABI = [
175
458
  name: "UnwrappedStarted",
176
459
  type: "event",
177
460
  },
461
+ {
462
+ anonymous: false,
463
+ inputs: [
464
+ {
465
+ indexed: true,
466
+ internalType: "address",
467
+ name: "implementation",
468
+ type: "address",
469
+ },
470
+ ],
471
+ name: "Upgraded",
472
+ type: "event",
473
+ },
178
474
  {
179
475
  anonymous: false,
180
476
  inputs: [
@@ -214,12 +510,12 @@ export const WRAPPER_ABI = [
214
510
  },
215
511
  {
216
512
  inputs: [],
217
- name: "adminProvider",
513
+ name: "DEFAULT_ADMIN_ROLE",
218
514
  outputs: [
219
515
  {
220
- internalType: "contract AdminProvider",
516
+ internalType: "bytes32",
221
517
  name: "",
222
- type: "address",
518
+ type: "bytes32",
223
519
  },
224
520
  ],
225
521
  stateMutability: "view",
@@ -227,36 +523,326 @@ export const WRAPPER_ABI = [
227
523
  },
228
524
  {
229
525
  inputs: [],
230
- name: "confidentialToken",
526
+ name: "UPGRADER_ROLE",
231
527
  outputs: [
232
528
  {
233
- internalType: "contract RegulatedERC7984Upgradeable",
529
+ internalType: "bytes32",
234
530
  name: "",
235
- type: "address",
531
+ type: "bytes32",
236
532
  },
237
533
  ],
238
534
  stateMutability: "view",
239
535
  type: "function",
240
536
  },
241
537
  {
242
- inputs: [
538
+ inputs: [],
539
+ name: "UPGRADE_INTERFACE_VERSION",
540
+ outputs: [
243
541
  {
244
- internalType: "uint256",
245
- name: "requestId",
246
- type: "uint256",
542
+ internalType: "string",
543
+ name: "",
544
+ type: "string",
247
545
  },
248
- {
249
- internalType: "euint64[]",
250
- name: "handles",
251
- type: "bytes32[]",
546
+ ],
547
+ stateMutability: "view",
548
+ type: "function",
549
+ },
550
+ {
551
+ inputs: [],
552
+ name: "acceptDefaultAdminTransfer",
553
+ outputs: [],
554
+ stateMutability: "nonpayable",
555
+ type: "function",
556
+ },
557
+ {
558
+ inputs: [],
559
+ name: "adminProvider",
560
+ outputs: [
561
+ {
562
+ internalType: "contract AdminProvider",
563
+ name: "",
564
+ type: "address",
565
+ },
566
+ ],
567
+ stateMutability: "view",
568
+ type: "function",
569
+ },
570
+ {
571
+ inputs: [
572
+ {
573
+ internalType: "address",
574
+ name: "newAdmin",
575
+ type: "address",
576
+ },
577
+ ],
578
+ name: "beginDefaultAdminTransfer",
579
+ outputs: [],
580
+ stateMutability: "nonpayable",
581
+ type: "function",
582
+ },
583
+ {
584
+ inputs: [],
585
+ name: "cancelDefaultAdminTransfer",
586
+ outputs: [],
587
+ stateMutability: "nonpayable",
588
+ type: "function",
589
+ },
590
+ {
591
+ inputs: [
592
+ {
593
+ internalType: "uint48",
594
+ name: "newDelay",
595
+ type: "uint48",
596
+ },
597
+ ],
598
+ name: "changeDefaultAdminDelay",
599
+ outputs: [],
600
+ stateMutability: "nonpayable",
601
+ type: "function",
602
+ },
603
+ {
604
+ inputs: [],
605
+ name: "confidentialProtocolId",
606
+ outputs: [
607
+ {
608
+ internalType: "uint256",
609
+ name: "",
610
+ type: "uint256",
611
+ },
612
+ ],
613
+ stateMutability: "view",
614
+ type: "function",
615
+ },
616
+ {
617
+ inputs: [],
618
+ name: "confidentialToken",
619
+ outputs: [
620
+ {
621
+ internalType: "contract RegulatedERC7984Upgradeable",
622
+ name: "",
623
+ type: "address",
252
624
  },
625
+ ],
626
+ stateMutability: "view",
627
+ type: "function",
628
+ },
629
+ {
630
+ inputs: [],
631
+ name: "defaultAdmin",
632
+ outputs: [
253
633
  {
254
- internalType: "bytes[]",
255
- name: "clearTextsAndProof",
256
- type: "bytes[]",
634
+ internalType: "address",
635
+ name: "",
636
+ type: "address",
637
+ },
638
+ ],
639
+ stateMutability: "view",
640
+ type: "function",
641
+ },
642
+ {
643
+ inputs: [],
644
+ name: "defaultAdminDelay",
645
+ outputs: [
646
+ {
647
+ internalType: "uint48",
648
+ name: "",
649
+ type: "uint48",
650
+ },
651
+ ],
652
+ stateMutability: "view",
653
+ type: "function",
654
+ },
655
+ {
656
+ inputs: [],
657
+ name: "defaultAdminDelayIncreaseWait",
658
+ outputs: [
659
+ {
660
+ internalType: "uint48",
661
+ name: "",
662
+ type: "uint48",
663
+ },
664
+ ],
665
+ stateMutability: "view",
666
+ type: "function",
667
+ },
668
+ {
669
+ inputs: [],
670
+ name: "deploymentCoordinator",
671
+ outputs: [
672
+ {
673
+ internalType: "contract IDeploymentCoordinator",
674
+ name: "",
675
+ type: "address",
676
+ },
677
+ ],
678
+ stateMutability: "view",
679
+ type: "function",
680
+ },
681
+ {
682
+ inputs: [
683
+ {
684
+ internalType: "uint256",
685
+ name: "requestId",
686
+ type: "uint256",
687
+ },
688
+ {
689
+ internalType: "bytes",
690
+ name: "abiEncodedClearBurnAmounts",
691
+ type: "bytes",
692
+ },
693
+ {
694
+ internalType: "bytes",
695
+ name: "decryptionProof",
696
+ type: "bytes",
257
697
  },
258
698
  ],
259
699
  name: "finalizeUnwrap",
700
+ outputs: [
701
+ {
702
+ internalType: "bool",
703
+ name: "",
704
+ type: "bool",
705
+ },
706
+ ],
707
+ stateMutability: "nonpayable",
708
+ type: "function",
709
+ },
710
+ {
711
+ inputs: [
712
+ {
713
+ internalType: "uint256",
714
+ name: "requestId_",
715
+ type: "uint256",
716
+ },
717
+ ],
718
+ name: "getReceiverEntry",
719
+ outputs: [
720
+ {
721
+ components: [
722
+ {
723
+ internalType: "address",
724
+ name: "to",
725
+ type: "address",
726
+ },
727
+ {
728
+ internalType: "address",
729
+ name: "refund",
730
+ type: "address",
731
+ },
732
+ {
733
+ internalType: "bytes",
734
+ name: "callbackData",
735
+ type: "bytes",
736
+ },
737
+ {
738
+ internalType: "euint64",
739
+ name: "expectedBurnAmount",
740
+ type: "bytes32",
741
+ },
742
+ {
743
+ internalType: "euint64",
744
+ name: "actualBurnAmount",
745
+ type: "bytes32",
746
+ },
747
+ {
748
+ internalType: "uint64",
749
+ name: "committedFeeBasisPoints",
750
+ type: "uint64",
751
+ },
752
+ ],
753
+ internalType: "struct WrapperUpgradeable.ReceiverEntry",
754
+ name: "",
755
+ type: "tuple",
756
+ },
757
+ ],
758
+ stateMutability: "view",
759
+ type: "function",
760
+ },
761
+ {
762
+ inputs: [
763
+ {
764
+ internalType: "bytes32",
765
+ name: "role",
766
+ type: "bytes32",
767
+ },
768
+ ],
769
+ name: "getRoleAdmin",
770
+ outputs: [
771
+ {
772
+ internalType: "bytes32",
773
+ name: "",
774
+ type: "bytes32",
775
+ },
776
+ ],
777
+ stateMutability: "view",
778
+ type: "function",
779
+ },
780
+ {
781
+ inputs: [
782
+ {
783
+ internalType: "bytes32",
784
+ name: "role",
785
+ type: "bytes32",
786
+ },
787
+ {
788
+ internalType: "address",
789
+ name: "account",
790
+ type: "address",
791
+ },
792
+ ],
793
+ name: "grantRole",
794
+ outputs: [],
795
+ stateMutability: "nonpayable",
796
+ type: "function",
797
+ },
798
+ {
799
+ inputs: [
800
+ {
801
+ internalType: "bytes32",
802
+ name: "role",
803
+ type: "bytes32",
804
+ },
805
+ {
806
+ internalType: "address",
807
+ name: "account",
808
+ type: "address",
809
+ },
810
+ ],
811
+ name: "hasRole",
812
+ outputs: [
813
+ {
814
+ internalType: "bool",
815
+ name: "",
816
+ type: "bool",
817
+ },
818
+ ],
819
+ stateMutability: "view",
820
+ type: "function",
821
+ },
822
+ {
823
+ inputs: [
824
+ {
825
+ internalType: "address",
826
+ name: "originalToken_",
827
+ type: "address",
828
+ },
829
+ {
830
+ internalType: "contract RegulatedERC7984Upgradeable",
831
+ name: "confidentialToken_",
832
+ type: "address",
833
+ },
834
+ {
835
+ internalType: "contract IDeploymentCoordinator",
836
+ name: "deploymentCoordinator_",
837
+ type: "address",
838
+ },
839
+ {
840
+ internalType: "address",
841
+ name: "admin_",
842
+ type: "address",
843
+ },
844
+ ],
845
+ name: "initialize",
260
846
  outputs: [],
261
847
  stateMutability: "nonpayable",
262
848
  type: "function",
@@ -310,17 +896,84 @@ export const WRAPPER_ABI = [
310
896
  },
311
897
  {
312
898
  inputs: [],
313
- name: "protocolId",
899
+ name: "owner",
314
900
  outputs: [
315
901
  {
316
- internalType: "uint256",
902
+ internalType: "address",
317
903
  name: "",
318
- type: "uint256",
904
+ type: "address",
905
+ },
906
+ ],
907
+ stateMutability: "view",
908
+ type: "function",
909
+ },
910
+ {
911
+ inputs: [],
912
+ name: "pendingDefaultAdmin",
913
+ outputs: [
914
+ {
915
+ internalType: "address",
916
+ name: "newAdmin",
917
+ type: "address",
918
+ },
919
+ {
920
+ internalType: "uint48",
921
+ name: "schedule",
922
+ type: "uint48",
923
+ },
924
+ ],
925
+ stateMutability: "view",
926
+ type: "function",
927
+ },
928
+ {
929
+ inputs: [],
930
+ name: "pendingDefaultAdminDelay",
931
+ outputs: [
932
+ {
933
+ internalType: "uint48",
934
+ name: "newDelay",
935
+ type: "uint48",
936
+ },
937
+ {
938
+ internalType: "uint48",
939
+ name: "schedule",
940
+ type: "uint48",
319
941
  },
320
942
  ],
321
943
  stateMutability: "view",
322
944
  type: "function",
323
945
  },
946
+ {
947
+ inputs: [],
948
+ name: "proxiableUUID",
949
+ outputs: [
950
+ {
951
+ internalType: "bytes32",
952
+ name: "",
953
+ type: "bytes32",
954
+ },
955
+ ],
956
+ stateMutability: "view",
957
+ type: "function",
958
+ },
959
+ {
960
+ inputs: [
961
+ {
962
+ internalType: "bytes32",
963
+ name: "role",
964
+ type: "bytes32",
965
+ },
966
+ {
967
+ internalType: "address",
968
+ name: "account",
969
+ type: "address",
970
+ },
971
+ ],
972
+ name: "renounceRole",
973
+ outputs: [],
974
+ stateMutability: "nonpayable",
975
+ type: "function",
976
+ },
324
977
  {
325
978
  inputs: [],
326
979
  name: "requestId",
@@ -337,15 +990,77 @@ export const WRAPPER_ABI = [
337
990
  {
338
991
  inputs: [
339
992
  {
340
- internalType: "uint256",
341
- name: "amount_",
342
- type: "uint256",
993
+ internalType: "bytes32",
994
+ name: "role",
995
+ type: "bytes32",
343
996
  },
997
+ {
998
+ internalType: "address",
999
+ name: "account",
1000
+ type: "address",
1001
+ },
1002
+ ],
1003
+ name: "revokeRole",
1004
+ outputs: [],
1005
+ stateMutability: "nonpayable",
1006
+ type: "function",
1007
+ },
1008
+ {
1009
+ inputs: [],
1010
+ name: "rollbackDefaultAdminDelay",
1011
+ outputs: [],
1012
+ stateMutability: "nonpayable",
1013
+ type: "function",
1014
+ },
1015
+ {
1016
+ inputs: [
1017
+ {
1018
+ internalType: "bytes4",
1019
+ name: "interfaceId",
1020
+ type: "bytes4",
1021
+ },
1022
+ ],
1023
+ name: "supportsInterface",
1024
+ outputs: [
1025
+ {
1026
+ internalType: "bool",
1027
+ name: "",
1028
+ type: "bool",
1029
+ },
1030
+ ],
1031
+ stateMutability: "view",
1032
+ type: "function",
1033
+ },
1034
+ {
1035
+ inputs: [
1036
+ {
1037
+ internalType: "address",
1038
+ name: "newImplementation",
1039
+ type: "address",
1040
+ },
1041
+ {
1042
+ internalType: "bytes",
1043
+ name: "data",
1044
+ type: "bytes",
1045
+ },
1046
+ ],
1047
+ name: "upgradeToAndCall",
1048
+ outputs: [],
1049
+ stateMutability: "payable",
1050
+ type: "function",
1051
+ },
1052
+ {
1053
+ inputs: [
344
1054
  {
345
1055
  internalType: "address",
346
1056
  name: "to_",
347
1057
  type: "address",
348
1058
  },
1059
+ {
1060
+ internalType: "uint256",
1061
+ name: "amount_",
1062
+ type: "uint256",
1063
+ },
349
1064
  ],
350
1065
  name: "wrap",
351
1066
  outputs: [],