@0xmonaco/contracts 1.0.58-develop.f12e78b → 1.0.59

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.
@@ -10,6 +10,10 @@ export declare const SWEEPER_ABI: readonly [{
10
10
  }];
11
11
  readonly stateMutability: "nonpayable";
12
12
  readonly type: "constructor";
13
+ }, {
14
+ readonly inputs: readonly [];
15
+ readonly name: "BridgeFeeTooHigh";
16
+ readonly type: "error";
13
17
  }, {
14
18
  readonly inputs: readonly [];
15
19
  readonly name: "ChainNotConfigured";
@@ -54,6 +58,10 @@ export declare const SWEEPER_ABI: readonly [{
54
58
  readonly inputs: readonly [];
55
59
  readonly name: "NothingToSweep";
56
60
  readonly type: "error";
61
+ }, {
62
+ readonly inputs: readonly [];
63
+ readonly name: "OftCannotUnwrap";
64
+ readonly type: "error";
57
65
  }, {
58
66
  readonly inputs: readonly [];
59
67
  readonly name: "OnlyClone";
@@ -82,6 +90,10 @@ export declare const SWEEPER_ABI: readonly [{
82
90
  readonly inputs: readonly [];
83
91
  readonly name: "SweepParamsRequired";
84
92
  readonly type: "error";
93
+ }, {
94
+ readonly inputs: readonly [];
95
+ readonly name: "UnexpectedBridgeDebit";
96
+ readonly type: "error";
85
97
  }, {
86
98
  readonly inputs: readonly [];
87
99
  readonly name: "UnexpectedParams";
@@ -295,7 +307,7 @@ export declare const SWEEPER_ABI: readonly [{
295
307
  }];
296
308
  readonly name: "sweep";
297
309
  readonly outputs: readonly [];
298
- readonly stateMutability: "nonpayable";
310
+ readonly stateMutability: "payable";
299
311
  readonly type: "function";
300
312
  }, {
301
313
  readonly inputs: readonly [{
@@ -328,6 +340,20 @@ export declare const SWEEPER_ABI: readonly [{
328
340
  readonly outputs: readonly [];
329
341
  readonly stateMutability: "payable";
330
342
  readonly type: "function";
343
+ }, {
344
+ readonly inputs: readonly [{
345
+ readonly internalType: "address";
346
+ readonly name: "token";
347
+ readonly type: "address";
348
+ }, {
349
+ readonly internalType: "address";
350
+ readonly name: "feeRefundAddress";
351
+ readonly type: "address";
352
+ }];
353
+ readonly name: "sweepWithRefund";
354
+ readonly outputs: readonly [];
355
+ readonly stateMutability: "payable";
356
+ readonly type: "function";
331
357
  }, {
332
358
  readonly inputs: readonly [];
333
359
  readonly name: "unwrapHelper";
@@ -15,6 +15,11 @@ export const SWEEPER_ABI = [
15
15
  stateMutability: "nonpayable",
16
16
  type: "constructor",
17
17
  },
18
+ {
19
+ inputs: [],
20
+ name: "BridgeFeeTooHigh",
21
+ type: "error",
22
+ },
18
23
  {
19
24
  inputs: [],
20
25
  name: "ChainNotConfigured",
@@ -70,6 +75,11 @@ export const SWEEPER_ABI = [
70
75
  name: "NothingToSweep",
71
76
  type: "error",
72
77
  },
78
+ {
79
+ inputs: [],
80
+ name: "OftCannotUnwrap",
81
+ type: "error",
82
+ },
73
83
  {
74
84
  inputs: [],
75
85
  name: "OnlyClone",
@@ -106,6 +116,11 @@ export const SWEEPER_ABI = [
106
116
  name: "SweepParamsRequired",
107
117
  type: "error",
108
118
  },
119
+ {
120
+ inputs: [],
121
+ name: "UnexpectedBridgeDebit",
122
+ type: "error",
123
+ },
109
124
  {
110
125
  inputs: [],
111
126
  name: "UnexpectedParams",
@@ -373,7 +388,7 @@ export const SWEEPER_ABI = [
373
388
  ],
374
389
  name: "sweep",
375
390
  outputs: [],
376
- stateMutability: "nonpayable",
391
+ stateMutability: "payable",
377
392
  type: "function",
378
393
  },
379
394
  {
@@ -416,6 +431,24 @@ export const SWEEPER_ABI = [
416
431
  stateMutability: "payable",
417
432
  type: "function",
418
433
  },
434
+ {
435
+ inputs: [
436
+ {
437
+ internalType: "address",
438
+ name: "token",
439
+ type: "address",
440
+ },
441
+ {
442
+ internalType: "address",
443
+ name: "feeRefundAddress",
444
+ type: "address",
445
+ },
446
+ ],
447
+ name: "sweepWithRefund",
448
+ outputs: [],
449
+ stateMutability: "payable",
450
+ type: "function",
451
+ },
419
452
  {
420
453
  inputs: [],
421
454
  name: "unwrapHelper",
@@ -58,6 +58,10 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
58
58
  readonly inputs: readonly [];
59
59
  readonly name: "InvalidAddress";
60
60
  readonly type: "error";
61
+ }, {
62
+ readonly inputs: readonly [];
63
+ readonly name: "InvalidFeeCap";
64
+ readonly type: "error";
61
65
  }, {
62
66
  readonly inputs: readonly [];
63
67
  readonly name: "InvalidInitialization";
@@ -178,6 +182,21 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
178
182
  }];
179
183
  readonly name: "OwnershipTransferred";
180
184
  readonly type: "event";
185
+ }, {
186
+ readonly anonymous: false;
187
+ readonly inputs: readonly [{
188
+ readonly indexed: false;
189
+ readonly internalType: "uint16";
190
+ readonly name: "previousCapBps";
191
+ readonly type: "uint16";
192
+ }, {
193
+ readonly indexed: false;
194
+ readonly internalType: "uint16";
195
+ readonly name: "newCapBps";
196
+ readonly type: "uint16";
197
+ }];
198
+ readonly name: "PermissionlessBridgeFeeCapUpdated";
199
+ readonly type: "event";
181
200
  }, {
182
201
  readonly anonymous: false;
183
202
  readonly inputs: readonly [{
@@ -222,6 +241,10 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
222
241
  readonly internalType: "bool";
223
242
  readonly name: "compose";
224
243
  readonly type: "bool";
244
+ }, {
245
+ readonly internalType: "uint32";
246
+ readonly name: "dstEid";
247
+ readonly type: "uint32";
225
248
  }, {
226
249
  readonly internalType: "address";
227
250
  readonly name: "bridgeToken";
@@ -526,6 +549,16 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
526
549
  }];
527
550
  readonly stateMutability: "view";
528
551
  readonly type: "function";
552
+ }, {
553
+ readonly inputs: readonly [];
554
+ readonly name: "permissionlessBridgeFeeCapBps";
555
+ readonly outputs: readonly [{
556
+ readonly internalType: "uint16";
557
+ readonly name: "";
558
+ readonly type: "uint16";
559
+ }];
560
+ readonly stateMutability: "view";
561
+ readonly type: "function";
529
562
  }, {
530
563
  readonly inputs: readonly [];
531
564
  readonly name: "proxiableUUID";
@@ -630,6 +663,10 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
630
663
  readonly internalType: "bool";
631
664
  readonly name: "compose";
632
665
  readonly type: "bool";
666
+ }, {
667
+ readonly internalType: "uint32";
668
+ readonly name: "dstEid";
669
+ readonly type: "uint32";
633
670
  }, {
634
671
  readonly internalType: "address";
635
672
  readonly name: "bridgeToken";
@@ -659,6 +696,16 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
659
696
  readonly outputs: readonly [];
660
697
  readonly stateMutability: "nonpayable";
661
698
  readonly type: "function";
699
+ }, {
700
+ readonly inputs: readonly [{
701
+ readonly internalType: "uint16";
702
+ readonly name: "capBps";
703
+ readonly type: "uint16";
704
+ }];
705
+ readonly name: "setPermissionlessBridgeFeeCapBps";
706
+ readonly outputs: readonly [];
707
+ readonly stateMutability: "nonpayable";
708
+ readonly type: "function";
662
709
  }, {
663
710
  readonly inputs: readonly [{
664
711
  readonly internalType: "address";
@@ -681,6 +728,10 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
681
728
  readonly internalType: "bool";
682
729
  readonly name: "compose";
683
730
  readonly type: "bool";
731
+ }, {
732
+ readonly internalType: "uint32";
733
+ readonly name: "dstEid";
734
+ readonly type: "uint32";
684
735
  }, {
685
736
  readonly internalType: "address";
686
737
  readonly name: "bridgeToken";
@@ -790,7 +841,7 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
790
841
  }];
791
842
  readonly name: "sweep";
792
843
  readonly outputs: readonly [];
793
- readonly stateMutability: "nonpayable";
844
+ readonly stateMutability: "payable";
794
845
  readonly type: "function";
795
846
  }, {
796
847
  readonly inputs: readonly [{
@@ -77,6 +77,11 @@ export const SWEEPER_FACTORY_ABI = [
77
77
  name: "InvalidAddress",
78
78
  type: "error",
79
79
  },
80
+ {
81
+ inputs: [],
82
+ name: "InvalidFeeCap",
83
+ type: "error",
84
+ },
80
85
  {
81
86
  inputs: [],
82
87
  name: "InvalidInitialization",
@@ -231,6 +236,25 @@ export const SWEEPER_FACTORY_ABI = [
231
236
  name: "OwnershipTransferred",
232
237
  type: "event",
233
238
  },
239
+ {
240
+ anonymous: false,
241
+ inputs: [
242
+ {
243
+ indexed: false,
244
+ internalType: "uint16",
245
+ name: "previousCapBps",
246
+ type: "uint16",
247
+ },
248
+ {
249
+ indexed: false,
250
+ internalType: "uint16",
251
+ name: "newCapBps",
252
+ type: "uint16",
253
+ },
254
+ ],
255
+ name: "PermissionlessBridgeFeeCapUpdated",
256
+ type: "event",
257
+ },
234
258
  {
235
259
  anonymous: false,
236
260
  inputs: [
@@ -287,6 +311,11 @@ export const SWEEPER_FACTORY_ABI = [
287
311
  name: "compose",
288
312
  type: "bool",
289
313
  },
314
+ {
315
+ internalType: "uint32",
316
+ name: "dstEid",
317
+ type: "uint32",
318
+ },
290
319
  {
291
320
  internalType: "address",
292
321
  name: "bridgeToken",
@@ -678,6 +707,19 @@ export const SWEEPER_FACTORY_ABI = [
678
707
  stateMutability: "view",
679
708
  type: "function",
680
709
  },
710
+ {
711
+ inputs: [],
712
+ name: "permissionlessBridgeFeeCapBps",
713
+ outputs: [
714
+ {
715
+ internalType: "uint16",
716
+ name: "",
717
+ type: "uint16",
718
+ },
719
+ ],
720
+ stateMutability: "view",
721
+ type: "function",
722
+ },
681
723
  {
682
724
  inputs: [],
683
725
  name: "proxiableUUID",
@@ -813,6 +855,11 @@ export const SWEEPER_FACTORY_ABI = [
813
855
  name: "compose",
814
856
  type: "bool",
815
857
  },
858
+ {
859
+ internalType: "uint32",
860
+ name: "dstEid",
861
+ type: "uint32",
862
+ },
816
863
  {
817
864
  internalType: "address",
818
865
  name: "bridgeToken",
@@ -850,6 +897,19 @@ export const SWEEPER_FACTORY_ABI = [
850
897
  stateMutability: "nonpayable",
851
898
  type: "function",
852
899
  },
900
+ {
901
+ inputs: [
902
+ {
903
+ internalType: "uint16",
904
+ name: "capBps",
905
+ type: "uint16",
906
+ },
907
+ ],
908
+ name: "setPermissionlessBridgeFeeCapBps",
909
+ outputs: [],
910
+ stateMutability: "nonpayable",
911
+ type: "function",
912
+ },
853
913
  {
854
914
  inputs: [
855
915
  {
@@ -879,6 +939,11 @@ export const SWEEPER_FACTORY_ABI = [
879
939
  name: "compose",
880
940
  type: "bool",
881
941
  },
942
+ {
943
+ internalType: "uint32",
944
+ name: "dstEid",
945
+ type: "uint32",
946
+ },
882
947
  {
883
948
  internalType: "address",
884
949
  name: "bridgeToken",
@@ -1019,7 +1084,7 @@ export const SWEEPER_FACTORY_ABI = [
1019
1084
  ],
1020
1085
  name: "sweep",
1021
1086
  outputs: [],
1022
- stateMutability: "nonpayable",
1087
+ stateMutability: "payable",
1023
1088
  type: "function",
1024
1089
  },
1025
1090
  {
package/dist/index.d.ts CHANGED
@@ -774,6 +774,10 @@ export declare const CONTRACT_ABIS: {
774
774
  }];
775
775
  readonly stateMutability: "nonpayable";
776
776
  readonly type: "constructor";
777
+ }, {
778
+ readonly inputs: readonly [];
779
+ readonly name: "BridgeFeeTooHigh";
780
+ readonly type: "error";
777
781
  }, {
778
782
  readonly inputs: readonly [];
779
783
  readonly name: "ChainNotConfigured";
@@ -818,6 +822,10 @@ export declare const CONTRACT_ABIS: {
818
822
  readonly inputs: readonly [];
819
823
  readonly name: "NothingToSweep";
820
824
  readonly type: "error";
825
+ }, {
826
+ readonly inputs: readonly [];
827
+ readonly name: "OftCannotUnwrap";
828
+ readonly type: "error";
821
829
  }, {
822
830
  readonly inputs: readonly [];
823
831
  readonly name: "OnlyClone";
@@ -846,6 +854,10 @@ export declare const CONTRACT_ABIS: {
846
854
  readonly inputs: readonly [];
847
855
  readonly name: "SweepParamsRequired";
848
856
  readonly type: "error";
857
+ }, {
858
+ readonly inputs: readonly [];
859
+ readonly name: "UnexpectedBridgeDebit";
860
+ readonly type: "error";
849
861
  }, {
850
862
  readonly inputs: readonly [];
851
863
  readonly name: "UnexpectedParams";
@@ -1059,7 +1071,7 @@ export declare const CONTRACT_ABIS: {
1059
1071
  }];
1060
1072
  readonly name: "sweep";
1061
1073
  readonly outputs: readonly [];
1062
- readonly stateMutability: "nonpayable";
1074
+ readonly stateMutability: "payable";
1063
1075
  readonly type: "function";
1064
1076
  }, {
1065
1077
  readonly inputs: readonly [{
@@ -1092,6 +1104,20 @@ export declare const CONTRACT_ABIS: {
1092
1104
  readonly outputs: readonly [];
1093
1105
  readonly stateMutability: "payable";
1094
1106
  readonly type: "function";
1107
+ }, {
1108
+ readonly inputs: readonly [{
1109
+ readonly internalType: "address";
1110
+ readonly name: "token";
1111
+ readonly type: "address";
1112
+ }, {
1113
+ readonly internalType: "address";
1114
+ readonly name: "feeRefundAddress";
1115
+ readonly type: "address";
1116
+ }];
1117
+ readonly name: "sweepWithRefund";
1118
+ readonly outputs: readonly [];
1119
+ readonly stateMutability: "payable";
1120
+ readonly type: "function";
1095
1121
  }, {
1096
1122
  readonly inputs: readonly [];
1097
1123
  readonly name: "unwrapHelper";
@@ -1167,6 +1193,10 @@ export declare const CONTRACT_ABIS: {
1167
1193
  readonly inputs: readonly [];
1168
1194
  readonly name: "InvalidAddress";
1169
1195
  readonly type: "error";
1196
+ }, {
1197
+ readonly inputs: readonly [];
1198
+ readonly name: "InvalidFeeCap";
1199
+ readonly type: "error";
1170
1200
  }, {
1171
1201
  readonly inputs: readonly [];
1172
1202
  readonly name: "InvalidInitialization";
@@ -1287,6 +1317,21 @@ export declare const CONTRACT_ABIS: {
1287
1317
  }];
1288
1318
  readonly name: "OwnershipTransferred";
1289
1319
  readonly type: "event";
1320
+ }, {
1321
+ readonly anonymous: false;
1322
+ readonly inputs: readonly [{
1323
+ readonly indexed: false;
1324
+ readonly internalType: "uint16";
1325
+ readonly name: "previousCapBps";
1326
+ readonly type: "uint16";
1327
+ }, {
1328
+ readonly indexed: false;
1329
+ readonly internalType: "uint16";
1330
+ readonly name: "newCapBps";
1331
+ readonly type: "uint16";
1332
+ }];
1333
+ readonly name: "PermissionlessBridgeFeeCapUpdated";
1334
+ readonly type: "event";
1290
1335
  }, {
1291
1336
  readonly anonymous: false;
1292
1337
  readonly inputs: readonly [{
@@ -1331,6 +1376,10 @@ export declare const CONTRACT_ABIS: {
1331
1376
  readonly internalType: "bool";
1332
1377
  readonly name: "compose";
1333
1378
  readonly type: "bool";
1379
+ }, {
1380
+ readonly internalType: "uint32";
1381
+ readonly name: "dstEid";
1382
+ readonly type: "uint32";
1334
1383
  }, {
1335
1384
  readonly internalType: "address";
1336
1385
  readonly name: "bridgeToken";
@@ -1635,6 +1684,16 @@ export declare const CONTRACT_ABIS: {
1635
1684
  }];
1636
1685
  readonly stateMutability: "view";
1637
1686
  readonly type: "function";
1687
+ }, {
1688
+ readonly inputs: readonly [];
1689
+ readonly name: "permissionlessBridgeFeeCapBps";
1690
+ readonly outputs: readonly [{
1691
+ readonly internalType: "uint16";
1692
+ readonly name: "";
1693
+ readonly type: "uint16";
1694
+ }];
1695
+ readonly stateMutability: "view";
1696
+ readonly type: "function";
1638
1697
  }, {
1639
1698
  readonly inputs: readonly [];
1640
1699
  readonly name: "proxiableUUID";
@@ -1739,6 +1798,10 @@ export declare const CONTRACT_ABIS: {
1739
1798
  readonly internalType: "bool";
1740
1799
  readonly name: "compose";
1741
1800
  readonly type: "bool";
1801
+ }, {
1802
+ readonly internalType: "uint32";
1803
+ readonly name: "dstEid";
1804
+ readonly type: "uint32";
1742
1805
  }, {
1743
1806
  readonly internalType: "address";
1744
1807
  readonly name: "bridgeToken";
@@ -1768,6 +1831,16 @@ export declare const CONTRACT_ABIS: {
1768
1831
  readonly outputs: readonly [];
1769
1832
  readonly stateMutability: "nonpayable";
1770
1833
  readonly type: "function";
1834
+ }, {
1835
+ readonly inputs: readonly [{
1836
+ readonly internalType: "uint16";
1837
+ readonly name: "capBps";
1838
+ readonly type: "uint16";
1839
+ }];
1840
+ readonly name: "setPermissionlessBridgeFeeCapBps";
1841
+ readonly outputs: readonly [];
1842
+ readonly stateMutability: "nonpayable";
1843
+ readonly type: "function";
1771
1844
  }, {
1772
1845
  readonly inputs: readonly [{
1773
1846
  readonly internalType: "address";
@@ -1790,6 +1863,10 @@ export declare const CONTRACT_ABIS: {
1790
1863
  readonly internalType: "bool";
1791
1864
  readonly name: "compose";
1792
1865
  readonly type: "bool";
1866
+ }, {
1867
+ readonly internalType: "uint32";
1868
+ readonly name: "dstEid";
1869
+ readonly type: "uint32";
1793
1870
  }, {
1794
1871
  readonly internalType: "address";
1795
1872
  readonly name: "bridgeToken";
@@ -1899,7 +1976,7 @@ export declare const CONTRACT_ABIS: {
1899
1976
  }];
1900
1977
  readonly name: "sweep";
1901
1978
  readonly outputs: readonly [];
1902
- readonly stateMutability: "nonpayable";
1979
+ readonly stateMutability: "payable";
1903
1980
  readonly type: "function";
1904
1981
  }, {
1905
1982
  readonly inputs: readonly [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/contracts",
3
- "version": "1.0.58-develop.f12e78b",
3
+ "version": "1.0.59",
4
4
  "type": "module",
5
5
  "homepage": "https://docs.0xmonaco.com/sdk/typescript",
6
6
  "main": "./dist/index.js",