@pyratzlabs/react-fhevm-utils 3.3.1 → 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.
@@ -89,6 +89,92 @@ export const WRAPPER_ABI = [
89
89
  name: "ERC1967NonPayable",
90
90
  type: "error",
91
91
  },
92
+ {
93
+ inputs: [
94
+ {
95
+ internalType: "address",
96
+ name: "spender",
97
+ type: "address",
98
+ },
99
+ {
100
+ internalType: "uint256",
101
+ name: "allowance",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ internalType: "uint256",
106
+ name: "needed",
107
+ type: "uint256",
108
+ },
109
+ ],
110
+ name: "ERC20InsufficientAllowance",
111
+ type: "error",
112
+ },
113
+ {
114
+ inputs: [
115
+ {
116
+ internalType: "address",
117
+ name: "sender",
118
+ type: "address",
119
+ },
120
+ {
121
+ internalType: "uint256",
122
+ name: "balance",
123
+ type: "uint256",
124
+ },
125
+ {
126
+ internalType: "uint256",
127
+ name: "needed",
128
+ type: "uint256",
129
+ },
130
+ ],
131
+ name: "ERC20InsufficientBalance",
132
+ type: "error",
133
+ },
134
+ {
135
+ inputs: [
136
+ {
137
+ internalType: "address",
138
+ name: "approver",
139
+ type: "address",
140
+ },
141
+ ],
142
+ name: "ERC20InvalidApprover",
143
+ type: "error",
144
+ },
145
+ {
146
+ inputs: [
147
+ {
148
+ internalType: "address",
149
+ name: "receiver",
150
+ type: "address",
151
+ },
152
+ ],
153
+ name: "ERC20InvalidReceiver",
154
+ type: "error",
155
+ },
156
+ {
157
+ inputs: [
158
+ {
159
+ internalType: "address",
160
+ name: "sender",
161
+ type: "address",
162
+ },
163
+ ],
164
+ name: "ERC20InvalidSender",
165
+ type: "error",
166
+ },
167
+ {
168
+ inputs: [
169
+ {
170
+ internalType: "address",
171
+ name: "spender",
172
+ type: "address",
173
+ },
174
+ ],
175
+ name: "ERC20InvalidSpender",
176
+ type: "error",
177
+ },
92
178
  {
93
179
  inputs: [
94
180
  {
@@ -100,6 +186,82 @@ export const WRAPPER_ABI = [
100
186
  name: "ERC7984InvalidGatewayRequest",
101
187
  type: "error",
102
188
  },
189
+ {
190
+ inputs: [
191
+ {
192
+ internalType: "address",
193
+ name: "receiver",
194
+ type: "address",
195
+ },
196
+ ],
197
+ name: "ERC7984InvalidReceiver",
198
+ type: "error",
199
+ },
200
+ {
201
+ inputs: [
202
+ {
203
+ internalType: "address",
204
+ name: "receiver",
205
+ type: "address",
206
+ },
207
+ ],
208
+ name: "ERC7984InvalidReceiver",
209
+ type: "error",
210
+ },
211
+ {
212
+ inputs: [
213
+ {
214
+ internalType: "address",
215
+ name: "sender",
216
+ type: "address",
217
+ },
218
+ ],
219
+ name: "ERC7984InvalidSender",
220
+ type: "error",
221
+ },
222
+ {
223
+ inputs: [
224
+ {
225
+ internalType: "address",
226
+ name: "holder",
227
+ type: "address",
228
+ },
229
+ {
230
+ internalType: "address",
231
+ name: "spender",
232
+ type: "address",
233
+ },
234
+ ],
235
+ name: "ERC7984UnauthorizedSpender",
236
+ type: "error",
237
+ },
238
+ {
239
+ inputs: [
240
+ {
241
+ internalType: "euint64",
242
+ name: "amount",
243
+ type: "bytes32",
244
+ },
245
+ {
246
+ internalType: "address",
247
+ name: "user",
248
+ type: "address",
249
+ },
250
+ ],
251
+ name: "ERC7984UnauthorizedUseOfEncryptedAmount",
252
+ type: "error",
253
+ },
254
+ {
255
+ inputs: [
256
+ {
257
+ internalType: "address",
258
+ name: "holder",
259
+ type: "address",
260
+ },
261
+ ],
262
+ name: "ERC7984ZeroBalance",
263
+ type: "error",
264
+ },
103
265
  {
104
266
  inputs: [],
105
267
  name: "EthFeeTransferFailed",
@@ -125,6 +287,11 @@ export const WRAPPER_ABI = [
125
287
  name: "InvalidKMSSignatures",
126
288
  type: "error",
127
289
  },
290
+ {
291
+ inputs: [],
292
+ name: "InvalidRate",
293
+ type: "error",
294
+ },
128
295
  {
129
296
  inputs: [],
130
297
  name: "NotInitializing",
@@ -162,6 +329,17 @@ export const WRAPPER_ABI = [
162
329
  name: "SafeERC20FailedOperation",
163
330
  type: "error",
164
331
  },
332
+ {
333
+ inputs: [
334
+ {
335
+ internalType: "address",
336
+ name: "account",
337
+ type: "address",
338
+ },
339
+ ],
340
+ name: "SanctionedAddress",
341
+ type: "error",
342
+ },
165
343
  {
166
344
  inputs: [],
167
345
  name: "SenderNotAllowed",
@@ -183,6 +361,27 @@ export const WRAPPER_ABI = [
183
361
  name: "UUPSUnsupportedProxiableUUID",
184
362
  type: "error",
185
363
  },
364
+ {
365
+ inputs: [
366
+ {
367
+ internalType: "uint256",
368
+ name: "requestId",
369
+ type: "uint256",
370
+ },
371
+ {
372
+ internalType: "address",
373
+ name: "caller",
374
+ type: "address",
375
+ },
376
+ {
377
+ internalType: "address",
378
+ name: "unwrapInitiator",
379
+ type: "address",
380
+ },
381
+ ],
382
+ name: "UnauthorizedFinalizeUnwrapCaller",
383
+ type: "error",
384
+ },
186
385
  {
187
386
  inputs: [],
188
387
  name: "WrapperBalanceExceedsMaxSupply",
@@ -203,6 +402,94 @@ export const WRAPPER_ABI = [
203
402
  name: "ZeroAddressDeploymentCoordinator",
204
403
  type: "error",
205
404
  },
405
+ {
406
+ anonymous: false,
407
+ inputs: [
408
+ {
409
+ indexed: true,
410
+ internalType: "euint64",
411
+ name: "encryptedAmount",
412
+ type: "bytes32",
413
+ },
414
+ {
415
+ indexed: true,
416
+ internalType: "address",
417
+ name: "requester",
418
+ type: "address",
419
+ },
420
+ ],
421
+ name: "AmountDiscloseRequested",
422
+ type: "event",
423
+ },
424
+ {
425
+ anonymous: false,
426
+ inputs: [
427
+ {
428
+ indexed: true,
429
+ internalType: "euint64",
430
+ name: "encryptedAmount",
431
+ type: "bytes32",
432
+ },
433
+ {
434
+ indexed: false,
435
+ internalType: "uint64",
436
+ name: "amount",
437
+ type: "uint64",
438
+ },
439
+ ],
440
+ name: "AmountDisclosed",
441
+ type: "event",
442
+ },
443
+ {
444
+ anonymous: false,
445
+ inputs: [
446
+ {
447
+ indexed: true,
448
+ internalType: "address",
449
+ name: "from",
450
+ type: "address",
451
+ },
452
+ {
453
+ indexed: false,
454
+ internalType: "euint64",
455
+ name: "amount",
456
+ type: "bytes32",
457
+ },
458
+ {
459
+ indexed: false,
460
+ internalType: "uint256",
461
+ name: "txId",
462
+ type: "uint256",
463
+ },
464
+ ],
465
+ name: "BurnInfo",
466
+ type: "event",
467
+ },
468
+ {
469
+ anonymous: false,
470
+ inputs: [
471
+ {
472
+ indexed: true,
473
+ internalType: "address",
474
+ name: "from",
475
+ type: "address",
476
+ },
477
+ {
478
+ indexed: true,
479
+ internalType: "address",
480
+ name: "to",
481
+ type: "address",
482
+ },
483
+ {
484
+ indexed: true,
485
+ internalType: "euint64",
486
+ name: "amount",
487
+ type: "bytes32",
488
+ },
489
+ ],
490
+ name: "ConfidentialTransfer",
491
+ type: "event",
492
+ },
206
493
  {
207
494
  anonymous: false,
208
495
  inputs: [],
@@ -257,15 +544,90 @@ export const WRAPPER_ABI = [
257
544
  anonymous: false,
258
545
  inputs: [
259
546
  {
260
- indexed: false,
261
- internalType: "uint64",
262
- name: "version",
263
- type: "uint64",
547
+ indexed: true,
548
+ internalType: "address",
549
+ name: "holder",
550
+ type: "address",
551
+ },
552
+ {
553
+ indexed: true,
554
+ internalType: "address",
555
+ name: "operator",
556
+ type: "address",
557
+ },
558
+ {
559
+ indexed: false,
560
+ internalType: "uint48",
561
+ name: "until",
562
+ type: "uint48",
563
+ },
564
+ ],
565
+ name: "FinalizeUnwrapOperatorSet",
566
+ type: "event",
567
+ },
568
+ {
569
+ anonymous: false,
570
+ inputs: [
571
+ {
572
+ indexed: false,
573
+ internalType: "uint64",
574
+ name: "version",
575
+ type: "uint64",
264
576
  },
265
577
  ],
266
578
  name: "Initialized",
267
579
  type: "event",
268
580
  },
581
+ {
582
+ anonymous: false,
583
+ inputs: [
584
+ {
585
+ indexed: true,
586
+ internalType: "address",
587
+ name: "to",
588
+ type: "address",
589
+ },
590
+ {
591
+ indexed: false,
592
+ internalType: "uint64",
593
+ name: "amount",
594
+ type: "uint64",
595
+ },
596
+ {
597
+ indexed: false,
598
+ internalType: "uint256",
599
+ name: "txId",
600
+ type: "uint256",
601
+ },
602
+ ],
603
+ name: "MintInfo",
604
+ type: "event",
605
+ },
606
+ {
607
+ anonymous: false,
608
+ inputs: [
609
+ {
610
+ indexed: true,
611
+ internalType: "address",
612
+ name: "holder",
613
+ type: "address",
614
+ },
615
+ {
616
+ indexed: true,
617
+ internalType: "address",
618
+ name: "operator",
619
+ type: "address",
620
+ },
621
+ {
622
+ indexed: false,
623
+ internalType: "uint48",
624
+ name: "until",
625
+ type: "uint48",
626
+ },
627
+ ],
628
+ name: "OperatorSet",
629
+ type: "event",
630
+ },
269
631
  {
270
632
  anonymous: false,
271
633
  inputs: [
@@ -360,6 +722,56 @@ export const WRAPPER_ABI = [
360
722
  name: "RoleRevoked",
361
723
  type: "event",
362
724
  },
725
+ {
726
+ anonymous: false,
727
+ inputs: [
728
+ {
729
+ indexed: true,
730
+ internalType: "address",
731
+ name: "oldRegulator",
732
+ type: "address",
733
+ },
734
+ {
735
+ indexed: true,
736
+ internalType: "address",
737
+ name: "newRegulator",
738
+ type: "address",
739
+ },
740
+ ],
741
+ name: "TokenRegulatorUpdated",
742
+ type: "event",
743
+ },
744
+ {
745
+ anonymous: false,
746
+ inputs: [
747
+ {
748
+ indexed: true,
749
+ internalType: "address",
750
+ name: "from",
751
+ type: "address",
752
+ },
753
+ {
754
+ indexed: true,
755
+ internalType: "address",
756
+ name: "to",
757
+ type: "address",
758
+ },
759
+ {
760
+ indexed: false,
761
+ internalType: "euint64",
762
+ name: "encryptedAmount",
763
+ type: "bytes32",
764
+ },
765
+ {
766
+ indexed: false,
767
+ internalType: "uint256",
768
+ name: "txId",
769
+ type: "uint256",
770
+ },
771
+ ],
772
+ name: "TransferInfo",
773
+ type: "event",
774
+ },
363
775
  {
364
776
  anonymous: false,
365
777
  inputs: [
@@ -431,183 +843,480 @@ export const WRAPPER_ABI = [
431
843
  type: "uint256",
432
844
  },
433
845
  {
434
- indexed: true,
846
+ indexed: true,
847
+ internalType: "address",
848
+ name: "to",
849
+ type: "address",
850
+ },
851
+ {
852
+ indexed: false,
853
+ internalType: "address",
854
+ name: "refund",
855
+ type: "address",
856
+ },
857
+ {
858
+ indexed: false,
859
+ internalType: "euint64",
860
+ name: "requestedAmount",
861
+ type: "bytes32",
862
+ },
863
+ {
864
+ indexed: false,
865
+ internalType: "euint64",
866
+ name: "burnAmount",
867
+ type: "bytes32",
868
+ },
869
+ ],
870
+ name: "UnwrappedStarted",
871
+ type: "event",
872
+ },
873
+ {
874
+ anonymous: false,
875
+ inputs: [
876
+ {
877
+ indexed: true,
878
+ internalType: "address",
879
+ name: "implementation",
880
+ type: "address",
881
+ },
882
+ ],
883
+ name: "Upgraded",
884
+ type: "event",
885
+ },
886
+ {
887
+ anonymous: false,
888
+ inputs: [
889
+ {
890
+ indexed: false,
891
+ internalType: "uint64",
892
+ name: "mintAmount",
893
+ type: "uint64",
894
+ },
895
+ {
896
+ indexed: false,
897
+ internalType: "uint256",
898
+ name: "amountIn",
899
+ type: "uint256",
900
+ },
901
+ {
902
+ indexed: false,
903
+ internalType: "uint256",
904
+ name: "feeAmount",
905
+ type: "uint256",
906
+ },
907
+ {
908
+ indexed: true,
909
+ internalType: "address",
910
+ name: "to_",
911
+ type: "address",
912
+ },
913
+ {
914
+ indexed: true,
915
+ internalType: "uint256",
916
+ name: "mintTxId",
917
+ type: "uint256",
918
+ },
919
+ ],
920
+ name: "Wrapped",
921
+ type: "event",
922
+ },
923
+ {
924
+ inputs: [],
925
+ name: "DEFAULT_ADMIN_ROLE",
926
+ outputs: [
927
+ {
928
+ internalType: "bytes32",
929
+ name: "",
930
+ type: "bytes32",
931
+ },
932
+ ],
933
+ stateMutability: "view",
934
+ type: "function",
935
+ },
936
+ {
937
+ inputs: [],
938
+ name: "UPGRADER_ROLE",
939
+ outputs: [
940
+ {
941
+ internalType: "bytes32",
942
+ name: "",
943
+ type: "bytes32",
944
+ },
945
+ ],
946
+ stateMutability: "view",
947
+ type: "function",
948
+ },
949
+ {
950
+ inputs: [],
951
+ name: "UPGRADE_INTERFACE_VERSION",
952
+ outputs: [
953
+ {
954
+ internalType: "string",
955
+ name: "",
956
+ type: "string",
957
+ },
958
+ ],
959
+ stateMutability: "view",
960
+ type: "function",
961
+ },
962
+ {
963
+ inputs: [],
964
+ name: "acceptDefaultAdminTransfer",
965
+ outputs: [],
966
+ stateMutability: "nonpayable",
967
+ type: "function",
968
+ },
969
+ {
970
+ inputs: [],
971
+ name: "adminProvider",
972
+ outputs: [
973
+ {
974
+ internalType: "contract AdminProvider",
975
+ name: "",
976
+ type: "address",
977
+ },
978
+ ],
979
+ stateMutability: "view",
980
+ type: "function",
981
+ },
982
+ {
983
+ inputs: [
984
+ {
985
+ internalType: "address",
986
+ name: "newAdmin",
987
+ type: "address",
988
+ },
989
+ ],
990
+ name: "beginDefaultAdminTransfer",
991
+ outputs: [],
992
+ stateMutability: "nonpayable",
993
+ type: "function",
994
+ },
995
+ {
996
+ inputs: [],
997
+ name: "cancelDefaultAdminTransfer",
998
+ outputs: [],
999
+ stateMutability: "nonpayable",
1000
+ type: "function",
1001
+ },
1002
+ {
1003
+ inputs: [
1004
+ {
1005
+ internalType: "uint48",
1006
+ name: "newDelay",
1007
+ type: "uint48",
1008
+ },
1009
+ ],
1010
+ name: "changeDefaultAdminDelay",
1011
+ outputs: [],
1012
+ stateMutability: "nonpayable",
1013
+ type: "function",
1014
+ },
1015
+ {
1016
+ inputs: [
1017
+ {
1018
+ internalType: "address",
1019
+ name: "account",
1020
+ type: "address",
1021
+ },
1022
+ ],
1023
+ name: "confidentialBalanceOf",
1024
+ outputs: [
1025
+ {
1026
+ internalType: "euint64",
1027
+ name: "",
1028
+ type: "bytes32",
1029
+ },
1030
+ ],
1031
+ stateMutability: "view",
1032
+ type: "function",
1033
+ },
1034
+ {
1035
+ inputs: [],
1036
+ name: "confidentialProtocolId",
1037
+ outputs: [
1038
+ {
1039
+ internalType: "uint256",
1040
+ name: "",
1041
+ type: "uint256",
1042
+ },
1043
+ ],
1044
+ stateMutability: "view",
1045
+ type: "function",
1046
+ },
1047
+ {
1048
+ inputs: [],
1049
+ name: "confidentialTotalSupply",
1050
+ outputs: [
1051
+ {
1052
+ internalType: "euint64",
1053
+ name: "",
1054
+ type: "bytes32",
1055
+ },
1056
+ ],
1057
+ stateMutability: "view",
1058
+ type: "function",
1059
+ },
1060
+ {
1061
+ inputs: [
1062
+ {
1063
+ internalType: "address",
1064
+ name: "to",
1065
+ type: "address",
1066
+ },
1067
+ {
1068
+ internalType: "externalEuint64",
1069
+ name: "encryptedAmount",
1070
+ type: "bytes32",
1071
+ },
1072
+ {
1073
+ internalType: "bytes",
1074
+ name: "inputProof",
1075
+ type: "bytes",
1076
+ },
1077
+ ],
1078
+ name: "confidentialTransfer",
1079
+ outputs: [
1080
+ {
1081
+ internalType: "euint64",
1082
+ name: "",
1083
+ type: "bytes32",
1084
+ },
1085
+ ],
1086
+ stateMutability: "nonpayable",
1087
+ type: "function",
1088
+ },
1089
+ {
1090
+ inputs: [
1091
+ {
1092
+ internalType: "address",
1093
+ name: "to",
1094
+ type: "address",
1095
+ },
1096
+ {
1097
+ internalType: "euint64",
1098
+ name: "amount",
1099
+ type: "bytes32",
1100
+ },
1101
+ ],
1102
+ name: "confidentialTransfer",
1103
+ outputs: [
1104
+ {
1105
+ internalType: "euint64",
1106
+ name: "",
1107
+ type: "bytes32",
1108
+ },
1109
+ ],
1110
+ stateMutability: "nonpayable",
1111
+ type: "function",
1112
+ },
1113
+ {
1114
+ inputs: [
1115
+ {
1116
+ internalType: "address",
1117
+ name: "to",
1118
+ type: "address",
1119
+ },
1120
+ {
1121
+ internalType: "euint64",
1122
+ name: "amount",
1123
+ type: "bytes32",
1124
+ },
1125
+ {
1126
+ internalType: "bytes",
1127
+ name: "data",
1128
+ type: "bytes",
1129
+ },
1130
+ ],
1131
+ name: "confidentialTransferAndCall",
1132
+ outputs: [
1133
+ {
1134
+ internalType: "euint64",
1135
+ name: "transferred",
1136
+ type: "bytes32",
1137
+ },
1138
+ ],
1139
+ stateMutability: "nonpayable",
1140
+ type: "function",
1141
+ },
1142
+ {
1143
+ inputs: [
1144
+ {
1145
+ internalType: "address",
1146
+ name: "to",
1147
+ type: "address",
1148
+ },
1149
+ {
1150
+ internalType: "externalEuint64",
1151
+ name: "encryptedAmount",
1152
+ type: "bytes32",
1153
+ },
1154
+ {
1155
+ internalType: "bytes",
1156
+ name: "inputProof",
1157
+ type: "bytes",
1158
+ },
1159
+ {
1160
+ internalType: "bytes",
1161
+ name: "data",
1162
+ type: "bytes",
1163
+ },
1164
+ ],
1165
+ name: "confidentialTransferAndCall",
1166
+ outputs: [
1167
+ {
1168
+ internalType: "euint64",
1169
+ name: "transferred",
1170
+ type: "bytes32",
1171
+ },
1172
+ ],
1173
+ stateMutability: "nonpayable",
1174
+ type: "function",
1175
+ },
1176
+ {
1177
+ inputs: [
1178
+ {
1179
+ internalType: "address",
1180
+ name: "from",
1181
+ type: "address",
1182
+ },
1183
+ {
1184
+ internalType: "address",
1185
+ name: "to",
1186
+ type: "address",
1187
+ },
1188
+ {
1189
+ internalType: "externalEuint64",
1190
+ name: "encryptedAmount",
1191
+ type: "bytes32",
1192
+ },
1193
+ {
1194
+ internalType: "bytes",
1195
+ name: "inputProof",
1196
+ type: "bytes",
1197
+ },
1198
+ ],
1199
+ name: "confidentialTransferFrom",
1200
+ outputs: [
1201
+ {
1202
+ internalType: "euint64",
1203
+ name: "transferred",
1204
+ type: "bytes32",
1205
+ },
1206
+ ],
1207
+ stateMutability: "nonpayable",
1208
+ type: "function",
1209
+ },
1210
+ {
1211
+ inputs: [
1212
+ {
435
1213
  internalType: "address",
436
- name: "to",
1214
+ name: "from",
437
1215
  type: "address",
438
1216
  },
439
1217
  {
440
- indexed: false,
441
1218
  internalType: "address",
442
- name: "refund",
1219
+ name: "to",
443
1220
  type: "address",
444
1221
  },
445
1222
  {
446
- indexed: false,
447
1223
  internalType: "euint64",
448
- name: "requestedAmount",
1224
+ name: "amount",
449
1225
  type: "bytes32",
450
1226
  },
1227
+ ],
1228
+ name: "confidentialTransferFrom",
1229
+ outputs: [
451
1230
  {
452
- indexed: false,
453
1231
  internalType: "euint64",
454
- name: "burnAmount",
1232
+ name: "transferred",
455
1233
  type: "bytes32",
456
1234
  },
457
1235
  ],
458
- name: "UnwrappedStarted",
459
- type: "event",
1236
+ stateMutability: "nonpayable",
1237
+ type: "function",
460
1238
  },
461
1239
  {
462
- anonymous: false,
463
1240
  inputs: [
464
1241
  {
465
- indexed: true,
466
1242
  internalType: "address",
467
- name: "implementation",
1243
+ name: "from",
468
1244
  type: "address",
469
1245
  },
470
- ],
471
- name: "Upgraded",
472
- type: "event",
473
- },
474
- {
475
- anonymous: false,
476
- inputs: [
477
- {
478
- indexed: false,
479
- internalType: "uint64",
480
- name: "mintAmount",
481
- type: "uint64",
482
- },
483
- {
484
- indexed: false,
485
- internalType: "uint256",
486
- name: "amountIn",
487
- type: "uint256",
488
- },
489
- {
490
- indexed: false,
491
- internalType: "uint256",
492
- name: "feeAmount",
493
- type: "uint256",
494
- },
495
1246
  {
496
- indexed: true,
497
1247
  internalType: "address",
498
- name: "to_",
1248
+ name: "to",
499
1249
  type: "address",
500
1250
  },
501
1251
  {
502
- indexed: true,
503
- internalType: "uint256",
504
- name: "mintTxId",
505
- type: "uint256",
1252
+ internalType: "externalEuint64",
1253
+ name: "encryptedAmount",
1254
+ type: "bytes32",
506
1255
  },
507
- ],
508
- name: "Wrapped",
509
- type: "event",
510
- },
511
- {
512
- inputs: [],
513
- name: "DEFAULT_ADMIN_ROLE",
514
- outputs: [
515
1256
  {
516
- internalType: "bytes32",
517
- name: "",
518
- type: "bytes32",
1257
+ internalType: "bytes",
1258
+ name: "inputProof",
1259
+ type: "bytes",
519
1260
  },
520
- ],
521
- stateMutability: "view",
522
- type: "function",
523
- },
524
- {
525
- inputs: [],
526
- name: "UPGRADER_ROLE",
527
- outputs: [
528
1261
  {
529
- internalType: "bytes32",
530
- name: "",
531
- type: "bytes32",
1262
+ internalType: "bytes",
1263
+ name: "data",
1264
+ type: "bytes",
532
1265
  },
533
1266
  ],
534
- stateMutability: "view",
535
- type: "function",
536
- },
537
- {
538
- inputs: [],
539
- name: "UPGRADE_INTERFACE_VERSION",
1267
+ name: "confidentialTransferFromAndCall",
540
1268
  outputs: [
541
1269
  {
542
- internalType: "string",
543
- name: "",
544
- type: "string",
1270
+ internalType: "euint64",
1271
+ name: "transferred",
1272
+ type: "bytes32",
545
1273
  },
546
1274
  ],
547
- stateMutability: "view",
548
- type: "function",
549
- },
550
- {
551
- inputs: [],
552
- name: "acceptDefaultAdminTransfer",
553
- outputs: [],
554
1275
  stateMutability: "nonpayable",
555
1276
  type: "function",
556
1277
  },
557
1278
  {
558
- inputs: [],
559
- name: "adminProvider",
560
- outputs: [
1279
+ inputs: [
561
1280
  {
562
- internalType: "contract AdminProvider",
563
- name: "",
1281
+ internalType: "address",
1282
+ name: "from",
564
1283
  type: "address",
565
1284
  },
566
- ],
567
- stateMutability: "view",
568
- type: "function",
569
- },
570
- {
571
- inputs: [
572
1285
  {
573
1286
  internalType: "address",
574
- name: "newAdmin",
1287
+ name: "to",
575
1288
  type: "address",
576
1289
  },
1290
+ {
1291
+ internalType: "euint64",
1292
+ name: "amount",
1293
+ type: "bytes32",
1294
+ },
1295
+ {
1296
+ internalType: "bytes",
1297
+ name: "data",
1298
+ type: "bytes",
1299
+ },
577
1300
  ],
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: [
1301
+ name: "confidentialTransferFromAndCall",
1302
+ outputs: [
592
1303
  {
593
- internalType: "uint48",
594
- name: "newDelay",
595
- type: "uint48",
1304
+ internalType: "euint64",
1305
+ name: "transferred",
1306
+ type: "bytes32",
596
1307
  },
597
1308
  ],
598
- name: "changeDefaultAdminDelay",
599
- outputs: [],
600
1309
  stateMutability: "nonpayable",
601
1310
  type: "function",
602
1311
  },
603
1312
  {
604
1313
  inputs: [],
605
- name: "confidentialProtocolId",
1314
+ name: "contractURI",
606
1315
  outputs: [
607
1316
  {
608
- internalType: "uint256",
1317
+ internalType: "string",
609
1318
  name: "",
610
- type: "uint256",
1319
+ type: "string",
611
1320
  },
612
1321
  ],
613
1322
  stateMutability: "view",
@@ -615,12 +1324,12 @@ export const WRAPPER_ABI = [
615
1324
  },
616
1325
  {
617
1326
  inputs: [],
618
- name: "confidentialToken",
1327
+ name: "decimals",
619
1328
  outputs: [
620
1329
  {
621
- internalType: "contract RegulatedERC7984Upgradeable",
1330
+ internalType: "uint8",
622
1331
  name: "",
623
- type: "address",
1332
+ type: "uint8",
624
1333
  },
625
1334
  ],
626
1335
  stateMutability: "view",
@@ -678,6 +1387,29 @@ export const WRAPPER_ABI = [
678
1387
  stateMutability: "view",
679
1388
  type: "function",
680
1389
  },
1390
+ {
1391
+ inputs: [
1392
+ {
1393
+ internalType: "euint64",
1394
+ name: "encryptedAmount",
1395
+ type: "bytes32",
1396
+ },
1397
+ {
1398
+ internalType: "uint64",
1399
+ name: "cleartextAmount",
1400
+ type: "uint64",
1401
+ },
1402
+ {
1403
+ internalType: "bytes",
1404
+ name: "decryptionProof",
1405
+ type: "bytes",
1406
+ },
1407
+ ],
1408
+ name: "discloseEncryptedAmount",
1409
+ outputs: [],
1410
+ stateMutability: "nonpayable",
1411
+ type: "function",
1412
+ },
681
1413
  {
682
1414
  inputs: [
683
1415
  {
@@ -749,6 +1481,11 @@ export const WRAPPER_ABI = [
749
1481
  name: "committedFeeBasisPoints",
750
1482
  type: "uint64",
751
1483
  },
1484
+ {
1485
+ internalType: "address",
1486
+ name: "from",
1487
+ type: "address",
1488
+ },
752
1489
  ],
753
1490
  internalType: "struct WrapperUpgradeable.ReceiverEntry",
754
1491
  name: "",
@@ -821,26 +1558,79 @@ export const WRAPPER_ABI = [
821
1558
  },
822
1559
  {
823
1560
  inputs: [
1561
+ {
1562
+ internalType: "string",
1563
+ name: "name_",
1564
+ type: "string",
1565
+ },
1566
+ {
1567
+ internalType: "string",
1568
+ name: "symbol_",
1569
+ type: "string",
1570
+ },
1571
+ {
1572
+ internalType: "uint8",
1573
+ name: "decimals_",
1574
+ type: "uint8",
1575
+ },
824
1576
  {
825
1577
  internalType: "address",
826
- name: "originalToken_",
1578
+ name: "admin_",
827
1579
  type: "address",
828
1580
  },
829
1581
  {
830
- internalType: "contract RegulatedERC7984Upgradeable",
831
- name: "confidentialToken_",
832
- type: "address",
1582
+ internalType: "uint256",
1583
+ name: "rate_",
1584
+ type: "uint256",
833
1585
  },
834
1586
  {
835
1587
  internalType: "contract IDeploymentCoordinator",
836
1588
  name: "deploymentCoordinator_",
837
1589
  type: "address",
838
1590
  },
1591
+ ],
1592
+ name: "initialize",
1593
+ outputs: [],
1594
+ stateMutability: "nonpayable",
1595
+ type: "function",
1596
+ },
1597
+ {
1598
+ inputs: [
1599
+ {
1600
+ internalType: "string",
1601
+ name: "name_",
1602
+ type: "string",
1603
+ },
1604
+ {
1605
+ internalType: "string",
1606
+ name: "symbol_",
1607
+ type: "string",
1608
+ },
1609
+ {
1610
+ internalType: "uint8",
1611
+ name: "decimals_",
1612
+ type: "uint8",
1613
+ },
839
1614
  {
840
1615
  internalType: "address",
841
1616
  name: "admin_",
842
1617
  type: "address",
843
1618
  },
1619
+ {
1620
+ internalType: "uint256",
1621
+ name: "rate_",
1622
+ type: "uint256",
1623
+ },
1624
+ {
1625
+ internalType: "contract IDeploymentCoordinator",
1626
+ name: "deploymentCoordinator_",
1627
+ type: "address",
1628
+ },
1629
+ {
1630
+ internalType: "address",
1631
+ name: "originalToken_",
1632
+ type: "address",
1633
+ },
844
1634
  ],
845
1635
  name: "initialize",
846
1636
  outputs: [],
@@ -851,34 +1641,87 @@ export const WRAPPER_ABI = [
851
1641
  inputs: [
852
1642
  {
853
1643
  internalType: "address",
854
- name: "",
1644
+ name: "holder",
1645
+ type: "address",
1646
+ },
1647
+ {
1648
+ internalType: "address",
1649
+ name: "operator",
1650
+ type: "address",
1651
+ },
1652
+ ],
1653
+ name: "isFinalizeUnwrapOperator",
1654
+ outputs: [
1655
+ {
1656
+ internalType: "bool",
1657
+ name: "",
1658
+ type: "bool",
1659
+ },
1660
+ ],
1661
+ stateMutability: "view",
1662
+ type: "function",
1663
+ },
1664
+ {
1665
+ inputs: [
1666
+ {
1667
+ internalType: "address",
1668
+ name: "holder",
855
1669
  type: "address",
856
1670
  },
857
1671
  {
858
1672
  internalType: "address",
859
- name: "from",
1673
+ name: "spender",
860
1674
  type: "address",
861
1675
  },
1676
+ ],
1677
+ name: "isOperator",
1678
+ outputs: [
862
1679
  {
863
- internalType: "euint64",
864
- name: "amount",
865
- type: "bytes32",
1680
+ internalType: "bool",
1681
+ name: "",
1682
+ type: "bool",
866
1683
  },
1684
+ ],
1685
+ stateMutability: "view",
1686
+ type: "function",
1687
+ },
1688
+ {
1689
+ inputs: [],
1690
+ name: "mintedSupply",
1691
+ outputs: [
867
1692
  {
868
- internalType: "bytes",
869
- name: "data",
870
- type: "bytes",
1693
+ internalType: "uint64",
1694
+ name: "",
1695
+ type: "uint64",
871
1696
  },
872
1697
  ],
873
- name: "onConfidentialTransferReceived",
1698
+ stateMutability: "view",
1699
+ type: "function",
1700
+ },
1701
+ {
1702
+ inputs: [],
1703
+ name: "name",
874
1704
  outputs: [
875
1705
  {
876
- internalType: "ebool",
1706
+ internalType: "string",
877
1707
  name: "",
878
- type: "bytes32",
1708
+ type: "string",
879
1709
  },
880
1710
  ],
881
- stateMutability: "nonpayable",
1711
+ stateMutability: "view",
1712
+ type: "function",
1713
+ },
1714
+ {
1715
+ inputs: [],
1716
+ name: "nextTxId",
1717
+ outputs: [
1718
+ {
1719
+ internalType: "uint256",
1720
+ name: "",
1721
+ type: "uint256",
1722
+ },
1723
+ ],
1724
+ stateMutability: "view",
882
1725
  type: "function",
883
1726
  },
884
1727
  {
@@ -956,6 +1799,32 @@ export const WRAPPER_ABI = [
956
1799
  stateMutability: "view",
957
1800
  type: "function",
958
1801
  },
1802
+ {
1803
+ inputs: [],
1804
+ name: "rate",
1805
+ outputs: [
1806
+ {
1807
+ internalType: "uint256",
1808
+ name: "",
1809
+ type: "uint256",
1810
+ },
1811
+ ],
1812
+ stateMutability: "view",
1813
+ type: "function",
1814
+ },
1815
+ {
1816
+ inputs: [],
1817
+ name: "regulator",
1818
+ outputs: [
1819
+ {
1820
+ internalType: "address",
1821
+ name: "",
1822
+ type: "address",
1823
+ },
1824
+ ],
1825
+ stateMutability: "view",
1826
+ type: "function",
1827
+ },
959
1828
  {
960
1829
  inputs: [
961
1830
  {
@@ -974,6 +1843,19 @@ export const WRAPPER_ABI = [
974
1843
  stateMutability: "nonpayable",
975
1844
  type: "function",
976
1845
  },
1846
+ {
1847
+ inputs: [
1848
+ {
1849
+ internalType: "euint64",
1850
+ name: "encryptedAmount",
1851
+ type: "bytes32",
1852
+ },
1853
+ ],
1854
+ name: "requestDiscloseEncryptedAmount",
1855
+ outputs: [],
1856
+ stateMutability: "nonpayable",
1857
+ type: "function",
1858
+ },
977
1859
  {
978
1860
  inputs: [],
979
1861
  name: "requestId",
@@ -1012,6 +1894,55 @@ export const WRAPPER_ABI = [
1012
1894
  stateMutability: "nonpayable",
1013
1895
  type: "function",
1014
1896
  },
1897
+ {
1898
+ inputs: [
1899
+ {
1900
+ internalType: "address",
1901
+ name: "operator",
1902
+ type: "address",
1903
+ },
1904
+ {
1905
+ internalType: "uint48",
1906
+ name: "until",
1907
+ type: "uint48",
1908
+ },
1909
+ ],
1910
+ name: "setFinalizeUnwrapOperator",
1911
+ outputs: [],
1912
+ stateMutability: "nonpayable",
1913
+ type: "function",
1914
+ },
1915
+ {
1916
+ inputs: [
1917
+ {
1918
+ internalType: "address",
1919
+ name: "operator",
1920
+ type: "address",
1921
+ },
1922
+ {
1923
+ internalType: "uint48",
1924
+ name: "until",
1925
+ type: "uint48",
1926
+ },
1927
+ ],
1928
+ name: "setOperator",
1929
+ outputs: [],
1930
+ stateMutability: "nonpayable",
1931
+ type: "function",
1932
+ },
1933
+ {
1934
+ inputs: [
1935
+ {
1936
+ internalType: "address",
1937
+ name: "newRegulator",
1938
+ type: "address",
1939
+ },
1940
+ ],
1941
+ name: "setTokenRegulator",
1942
+ outputs: [],
1943
+ stateMutability: "nonpayable",
1944
+ type: "function",
1945
+ },
1015
1946
  {
1016
1947
  inputs: [
1017
1948
  {
@@ -1031,6 +1962,154 @@ export const WRAPPER_ABI = [
1031
1962
  stateMutability: "view",
1032
1963
  type: "function",
1033
1964
  },
1965
+ {
1966
+ inputs: [],
1967
+ name: "symbol",
1968
+ outputs: [
1969
+ {
1970
+ internalType: "string",
1971
+ name: "",
1972
+ type: "string",
1973
+ },
1974
+ ],
1975
+ stateMutability: "view",
1976
+ type: "function",
1977
+ },
1978
+ {
1979
+ inputs: [],
1980
+ name: "tokenRegulator",
1981
+ outputs: [
1982
+ {
1983
+ internalType: "address",
1984
+ name: "",
1985
+ type: "address",
1986
+ },
1987
+ ],
1988
+ stateMutability: "view",
1989
+ type: "function",
1990
+ },
1991
+ {
1992
+ inputs: [
1993
+ {
1994
+ internalType: "address",
1995
+ name: "from",
1996
+ type: "address",
1997
+ },
1998
+ {
1999
+ internalType: "address",
2000
+ name: "to",
2001
+ type: "address",
2002
+ },
2003
+ {
2004
+ internalType: "externalEuint64",
2005
+ name: "encryptedAmount",
2006
+ type: "bytes32",
2007
+ },
2008
+ {
2009
+ internalType: "bytes",
2010
+ name: "inputProof",
2011
+ type: "bytes",
2012
+ },
2013
+ ],
2014
+ name: "unwrap",
2015
+ outputs: [],
2016
+ stateMutability: "nonpayable",
2017
+ type: "function",
2018
+ },
2019
+ {
2020
+ inputs: [
2021
+ {
2022
+ internalType: "address",
2023
+ name: "from",
2024
+ type: "address",
2025
+ },
2026
+ {
2027
+ internalType: "address",
2028
+ name: "to",
2029
+ type: "address",
2030
+ },
2031
+ {
2032
+ internalType: "euint64",
2033
+ name: "amount",
2034
+ type: "bytes32",
2035
+ },
2036
+ ],
2037
+ name: "unwrap",
2038
+ outputs: [],
2039
+ stateMutability: "nonpayable",
2040
+ type: "function",
2041
+ },
2042
+ {
2043
+ inputs: [
2044
+ {
2045
+ internalType: "address",
2046
+ name: "from",
2047
+ type: "address",
2048
+ },
2049
+ {
2050
+ internalType: "address",
2051
+ name: "to",
2052
+ type: "address",
2053
+ },
2054
+ {
2055
+ internalType: "euint64",
2056
+ name: "amount",
2057
+ type: "bytes32",
2058
+ },
2059
+ {
2060
+ internalType: "address",
2061
+ name: "refund",
2062
+ type: "address",
2063
+ },
2064
+ {
2065
+ internalType: "bytes",
2066
+ name: "unwrapCallbackData",
2067
+ type: "bytes",
2068
+ },
2069
+ ],
2070
+ name: "unwrapAndCall",
2071
+ outputs: [],
2072
+ stateMutability: "nonpayable",
2073
+ type: "function",
2074
+ },
2075
+ {
2076
+ inputs: [
2077
+ {
2078
+ internalType: "address",
2079
+ name: "from",
2080
+ type: "address",
2081
+ },
2082
+ {
2083
+ internalType: "address",
2084
+ name: "to",
2085
+ type: "address",
2086
+ },
2087
+ {
2088
+ internalType: "externalEuint64",
2089
+ name: "encryptedAmount",
2090
+ type: "bytes32",
2091
+ },
2092
+ {
2093
+ internalType: "bytes",
2094
+ name: "inputProof",
2095
+ type: "bytes",
2096
+ },
2097
+ {
2098
+ internalType: "address",
2099
+ name: "refund",
2100
+ type: "address",
2101
+ },
2102
+ {
2103
+ internalType: "bytes",
2104
+ name: "unwrapCallbackData",
2105
+ type: "bytes",
2106
+ },
2107
+ ],
2108
+ name: "unwrapAndCall",
2109
+ outputs: [],
2110
+ stateMutability: "nonpayable",
2111
+ type: "function",
2112
+ },
1034
2113
  {
1035
2114
  inputs: [
1036
2115
  {