@pyratzlabs/react-fhevm-utils 3.4.3 → 3.4.5

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.
@@ -4,6 +4,54 @@ export const WRAPPER_ABI = [
4
4
  stateMutability: "nonpayable",
5
5
  type: "constructor",
6
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
+ },
28
+ {
29
+ inputs: [
30
+ {
31
+ internalType: "address",
32
+ name: "defaultAdmin",
33
+ type: "address",
34
+ },
35
+ ],
36
+ name: "AccessControlInvalidDefaultAdmin",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [
41
+ {
42
+ internalType: "address",
43
+ name: "account",
44
+ type: "address",
45
+ },
46
+ {
47
+ internalType: "bytes32",
48
+ name: "neededRole",
49
+ type: "bytes32",
50
+ },
51
+ ],
52
+ name: "AccessControlUnauthorizedAccount",
53
+ type: "error",
54
+ },
7
55
  {
8
56
  inputs: [
9
57
  {
@@ -20,6 +68,11 @@ export const WRAPPER_ABI = [
20
68
  name: "CannotReceiveEthForTokenWrap",
21
69
  type: "error",
22
70
  },
71
+ {
72
+ inputs: [],
73
+ name: "CannotSendToZeroAddress",
74
+ type: "error",
75
+ },
23
76
  {
24
77
  inputs: [
25
78
  {
@@ -38,24 +91,55 @@ export const WRAPPER_ABI = [
38
91
  },
39
92
  {
40
93
  inputs: [
94
+ {
95
+ internalType: "address",
96
+ name: "spender",
97
+ type: "address",
98
+ },
41
99
  {
42
100
  internalType: "uint256",
43
- name: "requestId",
101
+ name: "allowance",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ internalType: "uint256",
106
+ name: "needed",
44
107
  type: "uint256",
45
108
  },
46
109
  ],
47
- name: "ERC7984InvalidGatewayRequest",
110
+ name: "ERC20InsufficientAllowance",
48
111
  type: "error",
49
112
  },
50
113
  {
51
114
  inputs: [
52
115
  {
53
116
  internalType: "address",
54
- name: "receiver",
117
+ name: "sender",
55
118
  type: "address",
56
119
  },
120
+ {
121
+ internalType: "uint256",
122
+ name: "balance",
123
+ type: "uint256",
124
+ },
125
+ {
126
+ internalType: "uint256",
127
+ name: "needed",
128
+ type: "uint256",
129
+ },
57
130
  ],
58
- name: "ERC7984InvalidReceiver",
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",
59
143
  type: "error",
60
144
  },
61
145
  {
@@ -66,7 +150,7 @@ export const WRAPPER_ABI = [
66
150
  type: "address",
67
151
  },
68
152
  ],
69
- name: "ERC7984InvalidReceiver",
153
+ name: "ERC20InvalidReceiver",
70
154
  type: "error",
71
155
  },
72
156
  {
@@ -77,23 +161,62 @@ export const WRAPPER_ABI = [
77
161
  type: "address",
78
162
  },
79
163
  ],
80
- name: "ERC7984InvalidSender",
164
+ name: "ERC20InvalidSender",
81
165
  type: "error",
82
166
  },
83
167
  {
84
- inputs: [],
85
- name: "ERC7984TotalSupplyOverflow",
168
+ inputs: [
169
+ {
170
+ internalType: "address",
171
+ name: "spender",
172
+ type: "address",
173
+ },
174
+ ],
175
+ name: "ERC20InvalidSpender",
176
+ type: "error",
177
+ },
178
+ {
179
+ inputs: [
180
+ {
181
+ internalType: "uint256",
182
+ name: "requestId",
183
+ type: "uint256",
184
+ },
185
+ ],
186
+ name: "ERC7984InvalidGatewayRequest",
86
187
  type: "error",
87
188
  },
88
189
  {
89
190
  inputs: [
90
191
  {
91
192
  internalType: "address",
92
- name: "caller",
193
+ name: "receiver",
93
194
  type: "address",
94
195
  },
95
196
  ],
96
- name: "ERC7984UnauthorizedCaller",
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",
97
220
  type: "error",
98
221
  },
99
222
  {
@@ -165,14 +288,8 @@ export const WRAPPER_ABI = [
165
288
  type: "error",
166
289
  },
167
290
  {
168
- inputs: [
169
- {
170
- internalType: "euint64",
171
- name: "amount",
172
- type: "bytes32",
173
- },
174
- ],
175
- name: "InvalidUnwrapRequest",
291
+ inputs: [],
292
+ name: "InvalidRate",
176
293
  type: "error",
177
294
  },
178
295
  {
@@ -180,28 +297,6 @@ export const WRAPPER_ABI = [
180
297
  name: "NotInitializing",
181
298
  type: "error",
182
299
  },
183
- {
184
- inputs: [
185
- {
186
- internalType: "address",
187
- name: "owner",
188
- type: "address",
189
- },
190
- ],
191
- name: "OwnableInvalidOwner",
192
- type: "error",
193
- },
194
- {
195
- inputs: [
196
- {
197
- internalType: "address",
198
- name: "account",
199
- type: "address",
200
- },
201
- ],
202
- name: "OwnableUnauthorizedAccount",
203
- type: "error",
204
- },
205
300
  {
206
301
  inputs: [],
207
302
  name: "ReentrancyGuardReentrantCall",
@@ -246,19 +341,8 @@ export const WRAPPER_ABI = [
246
341
  type: "error",
247
342
  },
248
343
  {
249
- inputs: [
250
- {
251
- internalType: "bytes32",
252
- name: "handle",
253
- type: "bytes32",
254
- },
255
- {
256
- internalType: "address",
257
- name: "sender",
258
- type: "address",
259
- },
260
- ],
261
- name: "SenderNotAllowedToUseHandle",
344
+ inputs: [],
345
+ name: "SenderNotAllowed",
262
346
  type: "error",
263
347
  },
264
348
  {
@@ -280,9 +364,9 @@ export const WRAPPER_ABI = [
280
364
  {
281
365
  inputs: [
282
366
  {
283
- internalType: "euint64",
284
- name: "burntAmount",
285
- type: "bytes32",
367
+ internalType: "uint256",
368
+ name: "requestId",
369
+ type: "uint256",
286
370
  },
287
371
  {
288
372
  internalType: "address",
@@ -308,6 +392,16 @@ export const WRAPPER_ABI = [
308
392
  name: "ZamaProtocolUnsupported",
309
393
  type: "error",
310
394
  },
395
+ {
396
+ inputs: [],
397
+ name: "ZeroAddressConfidentialToken",
398
+ type: "error",
399
+ },
400
+ {
401
+ inputs: [],
402
+ name: "ZeroAddressDeploymentCoordinator",
403
+ type: "error",
404
+ },
311
405
  {
312
406
  anonymous: false,
313
407
  inputs: [
@@ -396,6 +490,56 @@ export const WRAPPER_ABI = [
396
490
  name: "ConfidentialTransfer",
397
491
  type: "event",
398
492
  },
493
+ {
494
+ anonymous: false,
495
+ inputs: [],
496
+ name: "DefaultAdminDelayChangeCanceled",
497
+ type: "event",
498
+ },
499
+ {
500
+ anonymous: false,
501
+ inputs: [
502
+ {
503
+ indexed: false,
504
+ internalType: "uint48",
505
+ name: "newDelay",
506
+ type: "uint48",
507
+ },
508
+ {
509
+ indexed: false,
510
+ internalType: "uint48",
511
+ name: "effectSchedule",
512
+ type: "uint48",
513
+ },
514
+ ],
515
+ name: "DefaultAdminDelayChangeScheduled",
516
+ type: "event",
517
+ },
518
+ {
519
+ anonymous: false,
520
+ inputs: [],
521
+ name: "DefaultAdminTransferCanceled",
522
+ type: "event",
523
+ },
524
+ {
525
+ anonymous: false,
526
+ inputs: [
527
+ {
528
+ indexed: true,
529
+ internalType: "address",
530
+ name: "newAdmin",
531
+ type: "address",
532
+ },
533
+ {
534
+ indexed: false,
535
+ internalType: "uint48",
536
+ name: "acceptSchedule",
537
+ type: "uint48",
538
+ },
539
+ ],
540
+ name: "DefaultAdminTransferScheduled",
541
+ type: "event",
542
+ },
399
543
  {
400
544
  anonymous: false,
401
545
  inputs: [
@@ -484,61 +628,98 @@ export const WRAPPER_ABI = [
484
628
  name: "OperatorSet",
485
629
  type: "event",
486
630
  },
631
+ {
632
+ anonymous: false,
633
+ inputs: [
634
+ {
635
+ indexed: false,
636
+ internalType: "bytes32[]",
637
+ name: "handlesList",
638
+ type: "bytes32[]",
639
+ },
640
+ {
641
+ indexed: false,
642
+ internalType: "bytes",
643
+ name: "abiEncodedCleartexts",
644
+ type: "bytes",
645
+ },
646
+ ],
647
+ name: "PublicDecryptionVerified",
648
+ type: "event",
649
+ },
487
650
  {
488
651
  anonymous: false,
489
652
  inputs: [
490
653
  {
491
654
  indexed: true,
492
- internalType: "address",
493
- name: "previousOwner",
494
- type: "address",
655
+ internalType: "bytes32",
656
+ name: "role",
657
+ type: "bytes32",
495
658
  },
496
659
  {
497
660
  indexed: true,
498
- internalType: "address",
499
- name: "newOwner",
500
- type: "address",
661
+ internalType: "bytes32",
662
+ name: "previousAdminRole",
663
+ type: "bytes32",
664
+ },
665
+ {
666
+ indexed: true,
667
+ internalType: "bytes32",
668
+ name: "newAdminRole",
669
+ type: "bytes32",
501
670
  },
502
671
  ],
503
- name: "OwnershipTransferStarted",
672
+ name: "RoleAdminChanged",
504
673
  type: "event",
505
674
  },
506
675
  {
507
676
  anonymous: false,
508
677
  inputs: [
678
+ {
679
+ indexed: true,
680
+ internalType: "bytes32",
681
+ name: "role",
682
+ type: "bytes32",
683
+ },
509
684
  {
510
685
  indexed: true,
511
686
  internalType: "address",
512
- name: "previousOwner",
687
+ name: "account",
513
688
  type: "address",
514
689
  },
515
690
  {
516
691
  indexed: true,
517
692
  internalType: "address",
518
- name: "newOwner",
693
+ name: "sender",
519
694
  type: "address",
520
695
  },
521
696
  ],
522
- name: "OwnershipTransferred",
697
+ name: "RoleGranted",
523
698
  type: "event",
524
699
  },
525
700
  {
526
701
  anonymous: false,
527
702
  inputs: [
528
703
  {
529
- indexed: false,
530
- internalType: "bytes32[]",
531
- name: "handlesList",
532
- type: "bytes32[]",
704
+ indexed: true,
705
+ internalType: "bytes32",
706
+ name: "role",
707
+ type: "bytes32",
533
708
  },
534
709
  {
535
- indexed: false,
536
- internalType: "bytes",
537
- name: "abiEncodedCleartexts",
538
- type: "bytes",
710
+ indexed: true,
711
+ internalType: "address",
712
+ name: "account",
713
+ type: "address",
714
+ },
715
+ {
716
+ indexed: true,
717
+ internalType: "address",
718
+ name: "sender",
719
+ type: "address",
539
720
  },
540
721
  ],
541
- name: "PublicDecryptionVerified",
722
+ name: "RoleRevoked",
542
723
  type: "event",
543
724
  },
544
725
  {
@@ -596,53 +777,9 @@ export const WRAPPER_ABI = [
596
777
  inputs: [
597
778
  {
598
779
  indexed: true,
599
- internalType: "address",
600
- name: "receiver",
601
- type: "address",
602
- },
603
- {
604
- indexed: false,
605
- internalType: "euint64",
606
- name: "encryptedAmount",
607
- type: "bytes32",
608
- },
609
- {
610
- indexed: false,
611
- internalType: "uint64",
612
- name: "cleartextAmount",
613
- type: "uint64",
614
- },
615
- ],
616
- name: "UnwrapFinalized",
617
- type: "event",
618
- },
619
- {
620
- anonymous: false,
621
- inputs: [
622
- {
623
- indexed: true,
624
- internalType: "address",
625
- name: "receiver",
626
- type: "address",
627
- },
628
- {
629
- indexed: false,
630
- internalType: "euint64",
631
- name: "amount",
632
- type: "bytes32",
633
- },
634
- ],
635
- name: "UnwrapRequested",
636
- type: "event",
637
- },
638
- {
639
- anonymous: false,
640
- inputs: [
641
- {
642
- indexed: true,
643
- internalType: "euint64",
644
- name: "burntAmountHandle",
645
- type: "bytes32",
780
+ internalType: "uint256",
781
+ name: "requestId",
782
+ type: "uint256",
646
783
  },
647
784
  {
648
785
  indexed: false,
@@ -783,6 +920,32 @@ export const WRAPPER_ABI = [
783
920
  name: "Wrapped",
784
921
  type: "event",
785
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
+ },
786
949
  {
787
950
  inputs: [],
788
951
  name: "UPGRADE_INTERFACE_VERSION",
@@ -798,7 +961,7 @@ export const WRAPPER_ABI = [
798
961
  },
799
962
  {
800
963
  inputs: [],
801
- name: "acceptOwnership",
964
+ name: "acceptDefaultAdminTransfer",
802
965
  outputs: [],
803
966
  stateMutability: "nonpayable",
804
967
  type: "function",
@@ -816,6 +979,39 @@ export const WRAPPER_ABI = [
816
979
  stateMutability: "view",
817
980
  type: "function",
818
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
+ },
819
1015
  {
820
1016
  inputs: [
821
1017
  {
@@ -1139,14 +1335,222 @@ export const WRAPPER_ABI = [
1139
1335
  stateMutability: "view",
1140
1336
  type: "function",
1141
1337
  },
1338
+ {
1339
+ inputs: [],
1340
+ name: "defaultAdmin",
1341
+ outputs: [
1342
+ {
1343
+ internalType: "address",
1344
+ name: "",
1345
+ type: "address",
1346
+ },
1347
+ ],
1348
+ stateMutability: "view",
1349
+ type: "function",
1350
+ },
1351
+ {
1352
+ inputs: [],
1353
+ name: "defaultAdminDelay",
1354
+ outputs: [
1355
+ {
1356
+ internalType: "uint48",
1357
+ name: "",
1358
+ type: "uint48",
1359
+ },
1360
+ ],
1361
+ stateMutability: "view",
1362
+ type: "function",
1363
+ },
1364
+ {
1365
+ inputs: [],
1366
+ name: "defaultAdminDelayIncreaseWait",
1367
+ outputs: [
1368
+ {
1369
+ internalType: "uint48",
1370
+ name: "",
1371
+ type: "uint48",
1372
+ },
1373
+ ],
1374
+ stateMutability: "view",
1375
+ type: "function",
1376
+ },
1142
1377
  {
1143
1378
  inputs: [],
1144
1379
  name: "deploymentCoordinator",
1145
1380
  outputs: [
1146
1381
  {
1147
- internalType: "contract IDeploymentCoordinator",
1382
+ internalType: "contract IDeploymentCoordinator",
1383
+ name: "",
1384
+ type: "address",
1385
+ },
1386
+ ],
1387
+ stateMutability: "view",
1388
+ type: "function",
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
+ },
1413
+ {
1414
+ inputs: [
1415
+ {
1416
+ internalType: "uint256",
1417
+ name: "requestId",
1418
+ type: "uint256",
1419
+ },
1420
+ {
1421
+ internalType: "bytes",
1422
+ name: "abiEncodedClearBurnAmounts",
1423
+ type: "bytes",
1424
+ },
1425
+ {
1426
+ internalType: "bytes",
1427
+ name: "decryptionProof",
1428
+ type: "bytes",
1429
+ },
1430
+ ],
1431
+ name: "finalizeUnwrap",
1432
+ outputs: [
1433
+ {
1434
+ internalType: "bool",
1435
+ name: "",
1436
+ type: "bool",
1437
+ },
1438
+ ],
1439
+ stateMutability: "nonpayable",
1440
+ type: "function",
1441
+ },
1442
+ {
1443
+ inputs: [
1444
+ {
1445
+ internalType: "uint256",
1446
+ name: "requestId_",
1447
+ type: "uint256",
1448
+ },
1449
+ ],
1450
+ name: "getReceiverEntry",
1451
+ outputs: [
1452
+ {
1453
+ components: [
1454
+ {
1455
+ internalType: "address",
1456
+ name: "to",
1457
+ type: "address",
1458
+ },
1459
+ {
1460
+ internalType: "address",
1461
+ name: "refund",
1462
+ type: "address",
1463
+ },
1464
+ {
1465
+ internalType: "bytes",
1466
+ name: "callbackData",
1467
+ type: "bytes",
1468
+ },
1469
+ {
1470
+ internalType: "euint64",
1471
+ name: "expectedBurnAmount",
1472
+ type: "bytes32",
1473
+ },
1474
+ {
1475
+ internalType: "euint64",
1476
+ name: "actualBurnAmount",
1477
+ type: "bytes32",
1478
+ },
1479
+ {
1480
+ internalType: "uint64",
1481
+ name: "committedFeeBasisPoints",
1482
+ type: "uint64",
1483
+ },
1484
+ {
1485
+ internalType: "address",
1486
+ name: "from",
1487
+ type: "address",
1488
+ },
1489
+ ],
1490
+ internalType: "struct WrapperUpgradeable.ReceiverEntry",
1491
+ name: "",
1492
+ type: "tuple",
1493
+ },
1494
+ ],
1495
+ stateMutability: "view",
1496
+ type: "function",
1497
+ },
1498
+ {
1499
+ inputs: [
1500
+ {
1501
+ internalType: "bytes32",
1502
+ name: "role",
1503
+ type: "bytes32",
1504
+ },
1505
+ ],
1506
+ name: "getRoleAdmin",
1507
+ outputs: [
1508
+ {
1509
+ internalType: "bytes32",
1510
+ name: "",
1511
+ type: "bytes32",
1512
+ },
1513
+ ],
1514
+ stateMutability: "view",
1515
+ type: "function",
1516
+ },
1517
+ {
1518
+ inputs: [
1519
+ {
1520
+ internalType: "bytes32",
1521
+ name: "role",
1522
+ type: "bytes32",
1523
+ },
1524
+ {
1525
+ internalType: "address",
1526
+ name: "account",
1527
+ type: "address",
1528
+ },
1529
+ ],
1530
+ name: "grantRole",
1531
+ outputs: [],
1532
+ stateMutability: "nonpayable",
1533
+ type: "function",
1534
+ },
1535
+ {
1536
+ inputs: [
1537
+ {
1538
+ internalType: "bytes32",
1539
+ name: "role",
1540
+ type: "bytes32",
1541
+ },
1542
+ {
1543
+ internalType: "address",
1544
+ name: "account",
1545
+ type: "address",
1546
+ },
1547
+ ],
1548
+ name: "hasRole",
1549
+ outputs: [
1550
+ {
1551
+ internalType: "bool",
1148
1552
  name: "",
1149
- type: "address",
1553
+ type: "bool",
1150
1554
  },
1151
1555
  ],
1152
1556
  stateMutability: "view",
@@ -1155,45 +1559,37 @@ export const WRAPPER_ABI = [
1155
1559
  {
1156
1560
  inputs: [
1157
1561
  {
1158
- internalType: "euint64",
1159
- name: "encryptedAmount",
1160
- type: "bytes32",
1562
+ internalType: "string",
1563
+ name: "name_",
1564
+ type: "string",
1161
1565
  },
1162
1566
  {
1163
- internalType: "uint64",
1164
- name: "cleartextAmount",
1165
- type: "uint64",
1567
+ internalType: "string",
1568
+ name: "symbol_",
1569
+ type: "string",
1166
1570
  },
1167
1571
  {
1168
- internalType: "bytes",
1169
- name: "decryptionProof",
1170
- type: "bytes",
1572
+ internalType: "uint8",
1573
+ name: "decimals_",
1574
+ type: "uint8",
1171
1575
  },
1172
- ],
1173
- name: "discloseEncryptedAmount",
1174
- outputs: [],
1175
- stateMutability: "nonpayable",
1176
- type: "function",
1177
- },
1178
- {
1179
- inputs: [
1180
1576
  {
1181
- internalType: "euint64",
1182
- name: "burntAmount",
1183
- type: "bytes32",
1577
+ internalType: "address",
1578
+ name: "admin_",
1579
+ type: "address",
1184
1580
  },
1185
1581
  {
1186
- internalType: "uint64",
1187
- name: "burntAmountCleartext",
1188
- type: "uint64",
1582
+ internalType: "uint256",
1583
+ name: "rate_",
1584
+ type: "uint256",
1189
1585
  },
1190
1586
  {
1191
- internalType: "bytes",
1192
- name: "decryptionProof",
1193
- type: "bytes",
1587
+ internalType: "contract IDeploymentCoordinator",
1588
+ name: "deploymentCoordinator_",
1589
+ type: "address",
1194
1590
  },
1195
1591
  ],
1196
- name: "finalizeUnwrap",
1592
+ name: "initialize",
1197
1593
  outputs: [],
1198
1594
  stateMutability: "nonpayable",
1199
1595
  type: "function",
@@ -1211,25 +1607,30 @@ export const WRAPPER_ABI = [
1211
1607
  type: "string",
1212
1608
  },
1213
1609
  {
1214
- internalType: "string",
1215
- name: "contractURI_",
1216
- type: "string",
1610
+ internalType: "uint8",
1611
+ name: "decimals_",
1612
+ type: "uint8",
1217
1613
  },
1218
1614
  {
1219
- internalType: "contract IERC20",
1220
- name: "underlying_",
1615
+ internalType: "address",
1616
+ name: "admin_",
1221
1617
  type: "address",
1222
1618
  },
1223
1619
  {
1224
- internalType: "address",
1225
- name: "owner_",
1226
- type: "address",
1620
+ internalType: "uint256",
1621
+ name: "rate_",
1622
+ type: "uint256",
1227
1623
  },
1228
1624
  {
1229
1625
  internalType: "contract IDeploymentCoordinator",
1230
1626
  name: "deploymentCoordinator_",
1231
1627
  type: "address",
1232
1628
  },
1629
+ {
1630
+ internalType: "address",
1631
+ name: "originalToken_",
1632
+ type: "address",
1633
+ },
1233
1634
  ],
1234
1635
  name: "initialize",
1235
1636
  outputs: [],
@@ -1286,12 +1687,12 @@ export const WRAPPER_ABI = [
1286
1687
  },
1287
1688
  {
1288
1689
  inputs: [],
1289
- name: "maxTotalSupply",
1690
+ name: "mintedSupply",
1290
1691
  outputs: [
1291
1692
  {
1292
- internalType: "uint256",
1693
+ internalType: "uint64",
1293
1694
  name: "",
1294
- type: "uint256",
1695
+ type: "uint64",
1295
1696
  },
1296
1697
  ],
1297
1698
  stateMutability: "view",
@@ -1324,60 +1725,62 @@ export const WRAPPER_ABI = [
1324
1725
  type: "function",
1325
1726
  },
1326
1727
  {
1327
- inputs: [
1728
+ inputs: [],
1729
+ name: "originalToken",
1730
+ outputs: [
1328
1731
  {
1329
1732
  internalType: "address",
1330
1733
  name: "",
1331
1734
  type: "address",
1332
1735
  },
1333
- {
1334
- internalType: "address",
1335
- name: "from",
1336
- type: "address",
1337
- },
1338
- {
1339
- internalType: "uint256",
1340
- name: "amount",
1341
- type: "uint256",
1342
- },
1343
- {
1344
- internalType: "bytes",
1345
- name: "data",
1346
- type: "bytes",
1347
- },
1348
1736
  ],
1349
- name: "onTransferReceived",
1737
+ stateMutability: "view",
1738
+ type: "function",
1739
+ },
1740
+ {
1741
+ inputs: [],
1742
+ name: "owner",
1350
1743
  outputs: [
1351
1744
  {
1352
- internalType: "bytes4",
1745
+ internalType: "address",
1353
1746
  name: "",
1354
- type: "bytes4",
1747
+ type: "address",
1355
1748
  },
1356
1749
  ],
1357
- stateMutability: "nonpayable",
1750
+ stateMutability: "view",
1358
1751
  type: "function",
1359
1752
  },
1360
1753
  {
1361
1754
  inputs: [],
1362
- name: "owner",
1755
+ name: "pendingDefaultAdmin",
1363
1756
  outputs: [
1364
1757
  {
1365
1758
  internalType: "address",
1366
- name: "",
1759
+ name: "newAdmin",
1367
1760
  type: "address",
1368
1761
  },
1762
+ {
1763
+ internalType: "uint48",
1764
+ name: "schedule",
1765
+ type: "uint48",
1766
+ },
1369
1767
  ],
1370
1768
  stateMutability: "view",
1371
1769
  type: "function",
1372
1770
  },
1373
1771
  {
1374
1772
  inputs: [],
1375
- name: "pendingOwner",
1773
+ name: "pendingDefaultAdminDelay",
1376
1774
  outputs: [
1377
1775
  {
1378
- internalType: "address",
1379
- name: "",
1380
- type: "address",
1776
+ internalType: "uint48",
1777
+ name: "newDelay",
1778
+ type: "uint48",
1779
+ },
1780
+ {
1781
+ internalType: "uint48",
1782
+ name: "schedule",
1783
+ type: "uint48",
1381
1784
  },
1382
1785
  ],
1383
1786
  stateMutability: "view",
@@ -1423,8 +1826,19 @@ export const WRAPPER_ABI = [
1423
1826
  type: "function",
1424
1827
  },
1425
1828
  {
1426
- inputs: [],
1427
- name: "renounceOwnership",
1829
+ inputs: [
1830
+ {
1831
+ internalType: "bytes32",
1832
+ name: "role",
1833
+ type: "bytes32",
1834
+ },
1835
+ {
1836
+ internalType: "address",
1837
+ name: "account",
1838
+ type: "address",
1839
+ },
1840
+ ],
1841
+ name: "renounceRole",
1428
1842
  outputs: [],
1429
1843
  stateMutability: "nonpayable",
1430
1844
  type: "function",
@@ -1455,6 +1869,31 @@ export const WRAPPER_ABI = [
1455
1869
  stateMutability: "view",
1456
1870
  type: "function",
1457
1871
  },
1872
+ {
1873
+ inputs: [
1874
+ {
1875
+ internalType: "bytes32",
1876
+ name: "role",
1877
+ type: "bytes32",
1878
+ },
1879
+ {
1880
+ internalType: "address",
1881
+ name: "account",
1882
+ type: "address",
1883
+ },
1884
+ ],
1885
+ name: "revokeRole",
1886
+ outputs: [],
1887
+ stateMutability: "nonpayable",
1888
+ type: "function",
1889
+ },
1890
+ {
1891
+ inputs: [],
1892
+ name: "rollbackDefaultAdminDelay",
1893
+ outputs: [],
1894
+ stateMutability: "nonpayable",
1895
+ type: "function",
1896
+ },
1458
1897
  {
1459
1898
  inputs: [
1460
1899
  {
@@ -1549,45 +1988,6 @@ export const WRAPPER_ABI = [
1549
1988
  stateMutability: "view",
1550
1989
  type: "function",
1551
1990
  },
1552
- {
1553
- inputs: [],
1554
- name: "totalSupply",
1555
- outputs: [
1556
- {
1557
- internalType: "uint256",
1558
- name: "",
1559
- type: "uint256",
1560
- },
1561
- ],
1562
- stateMutability: "view",
1563
- type: "function",
1564
- },
1565
- {
1566
- inputs: [
1567
- {
1568
- internalType: "address",
1569
- name: "newOwner",
1570
- type: "address",
1571
- },
1572
- ],
1573
- name: "transferOwnership",
1574
- outputs: [],
1575
- stateMutability: "nonpayable",
1576
- type: "function",
1577
- },
1578
- {
1579
- inputs: [],
1580
- name: "underlying",
1581
- outputs: [
1582
- {
1583
- internalType: "address",
1584
- name: "",
1585
- type: "address",
1586
- },
1587
- ],
1588
- stateMutability: "view",
1589
- type: "function",
1590
- },
1591
1991
  {
1592
1992
  inputs: [
1593
1993
  {
@@ -1710,67 +2110,6 @@ export const WRAPPER_ABI = [
1710
2110
  stateMutability: "nonpayable",
1711
2111
  type: "function",
1712
2112
  },
1713
- {
1714
- inputs: [
1715
- {
1716
- internalType: "address",
1717
- name: "from",
1718
- type: "address",
1719
- },
1720
- {
1721
- internalType: "address",
1722
- name: "to",
1723
- type: "address",
1724
- },
1725
- {
1726
- internalType: "euint64",
1727
- name: "amount",
1728
- type: "bytes32",
1729
- },
1730
- {
1731
- internalType: "address",
1732
- name: "refund",
1733
- type: "address",
1734
- },
1735
- ],
1736
- name: "unwrapWithRefund",
1737
- outputs: [],
1738
- stateMutability: "nonpayable",
1739
- type: "function",
1740
- },
1741
- {
1742
- inputs: [
1743
- {
1744
- internalType: "address",
1745
- name: "from",
1746
- type: "address",
1747
- },
1748
- {
1749
- internalType: "address",
1750
- name: "to",
1751
- type: "address",
1752
- },
1753
- {
1754
- internalType: "externalEuint64",
1755
- name: "encryptedAmount",
1756
- type: "bytes32",
1757
- },
1758
- {
1759
- internalType: "bytes",
1760
- name: "inputProof",
1761
- type: "bytes",
1762
- },
1763
- {
1764
- internalType: "address",
1765
- name: "refund",
1766
- type: "address",
1767
- },
1768
- ],
1769
- name: "unwrapWithRefund",
1770
- outputs: [],
1771
- stateMutability: "nonpayable",
1772
- type: "function",
1773
- },
1774
2113
  {
1775
2114
  inputs: [
1776
2115
  {
@@ -1793,35 +2132,17 @@ export const WRAPPER_ABI = [
1793
2132
  inputs: [
1794
2133
  {
1795
2134
  internalType: "address",
1796
- name: "to",
2135
+ name: "to_",
1797
2136
  type: "address",
1798
2137
  },
1799
2138
  {
1800
2139
  internalType: "uint256",
1801
- name: "amount",
2140
+ name: "amount_",
1802
2141
  type: "uint256",
1803
2142
  },
1804
2143
  ],
1805
2144
  name: "wrap",
1806
2145
  outputs: [],
1807
- stateMutability: "nonpayable",
1808
- type: "function",
1809
- },
1810
- {
1811
- inputs: [
1812
- {
1813
- internalType: "address",
1814
- name: "to",
1815
- type: "address",
1816
- },
1817
- {
1818
- internalType: "uint256",
1819
- name: "amount",
1820
- type: "uint256",
1821
- },
1822
- ],
1823
- name: "wrapETH",
1824
- outputs: [],
1825
2146
  stateMutability: "payable",
1826
2147
  type: "function",
1827
2148
  },