@0xmonaco/contracts 1.0.56 → 1.0.57
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.
- package/dist/abis/sweeper.d.ts +12 -0
- package/dist/abis/sweeper.js +15 -0
- package/dist/abis/sweeperFactory.d.ts +4 -0
- package/dist/abis/sweeperFactory.js +5 -0
- package/dist/index.d.ts +16 -0
- package/dist/sweeper.js +1 -1
- package/package.json +2 -2
package/dist/abis/sweeper.d.ts
CHANGED
|
@@ -58,6 +58,10 @@ export declare const SWEEPER_ABI: readonly [{
|
|
|
58
58
|
readonly inputs: readonly [];
|
|
59
59
|
readonly name: "OnlyClone";
|
|
60
60
|
readonly type: "error";
|
|
61
|
+
}, {
|
|
62
|
+
readonly inputs: readonly [];
|
|
63
|
+
readonly name: "QuoteNotBound";
|
|
64
|
+
readonly type: "error";
|
|
61
65
|
}, {
|
|
62
66
|
readonly inputs: readonly [];
|
|
63
67
|
readonly name: "RoutedToken";
|
|
@@ -70,6 +74,10 @@ export declare const SWEEPER_ABI: readonly [{
|
|
|
70
74
|
}];
|
|
71
75
|
readonly name: "SafeERC20FailedOperation";
|
|
72
76
|
readonly type: "error";
|
|
77
|
+
}, {
|
|
78
|
+
readonly inputs: readonly [];
|
|
79
|
+
readonly name: "StaleQuote";
|
|
80
|
+
readonly type: "error";
|
|
73
81
|
}, {
|
|
74
82
|
readonly inputs: readonly [];
|
|
75
83
|
readonly name: "SweepParamsRequired";
|
|
@@ -296,6 +304,10 @@ export declare const SWEEPER_ABI: readonly [{
|
|
|
296
304
|
readonly type: "address";
|
|
297
305
|
}, {
|
|
298
306
|
readonly components: readonly [{
|
|
307
|
+
readonly internalType: "uint256";
|
|
308
|
+
readonly name: "amount";
|
|
309
|
+
readonly type: "uint256";
|
|
310
|
+
}, {
|
|
299
311
|
readonly internalType: "uint256";
|
|
300
312
|
readonly name: "minSwapOut";
|
|
301
313
|
readonly type: "uint256";
|
package/dist/abis/sweeper.js
CHANGED
|
@@ -75,6 +75,11 @@ export const SWEEPER_ABI = [
|
|
|
75
75
|
name: "OnlyClone",
|
|
76
76
|
type: "error",
|
|
77
77
|
},
|
|
78
|
+
{
|
|
79
|
+
inputs: [],
|
|
80
|
+
name: "QuoteNotBound",
|
|
81
|
+
type: "error",
|
|
82
|
+
},
|
|
78
83
|
{
|
|
79
84
|
inputs: [],
|
|
80
85
|
name: "RoutedToken",
|
|
@@ -91,6 +96,11 @@ export const SWEEPER_ABI = [
|
|
|
91
96
|
name: "SafeERC20FailedOperation",
|
|
92
97
|
type: "error",
|
|
93
98
|
},
|
|
99
|
+
{
|
|
100
|
+
inputs: [],
|
|
101
|
+
name: "StaleQuote",
|
|
102
|
+
type: "error",
|
|
103
|
+
},
|
|
94
104
|
{
|
|
95
105
|
inputs: [],
|
|
96
106
|
name: "SweepParamsRequired",
|
|
@@ -375,6 +385,11 @@ export const SWEEPER_ABI = [
|
|
|
375
385
|
},
|
|
376
386
|
{
|
|
377
387
|
components: [
|
|
388
|
+
{
|
|
389
|
+
internalType: "uint256",
|
|
390
|
+
name: "amount",
|
|
391
|
+
type: "uint256",
|
|
392
|
+
},
|
|
378
393
|
{
|
|
379
394
|
internalType: "uint256",
|
|
380
395
|
name: "minSwapOut",
|
|
@@ -811,6 +811,10 @@ export declare const SWEEPER_FACTORY_ABI: readonly [{
|
|
|
811
811
|
readonly type: "address";
|
|
812
812
|
}, {
|
|
813
813
|
readonly components: readonly [{
|
|
814
|
+
readonly internalType: "uint256";
|
|
815
|
+
readonly name: "amount";
|
|
816
|
+
readonly type: "uint256";
|
|
817
|
+
}, {
|
|
814
818
|
readonly internalType: "uint256";
|
|
815
819
|
readonly name: "minSwapOut";
|
|
816
820
|
readonly type: "uint256";
|
package/dist/index.d.ts
CHANGED
|
@@ -822,6 +822,10 @@ export declare const CONTRACT_ABIS: {
|
|
|
822
822
|
readonly inputs: readonly [];
|
|
823
823
|
readonly name: "OnlyClone";
|
|
824
824
|
readonly type: "error";
|
|
825
|
+
}, {
|
|
826
|
+
readonly inputs: readonly [];
|
|
827
|
+
readonly name: "QuoteNotBound";
|
|
828
|
+
readonly type: "error";
|
|
825
829
|
}, {
|
|
826
830
|
readonly inputs: readonly [];
|
|
827
831
|
readonly name: "RoutedToken";
|
|
@@ -834,6 +838,10 @@ export declare const CONTRACT_ABIS: {
|
|
|
834
838
|
}];
|
|
835
839
|
readonly name: "SafeERC20FailedOperation";
|
|
836
840
|
readonly type: "error";
|
|
841
|
+
}, {
|
|
842
|
+
readonly inputs: readonly [];
|
|
843
|
+
readonly name: "StaleQuote";
|
|
844
|
+
readonly type: "error";
|
|
837
845
|
}, {
|
|
838
846
|
readonly inputs: readonly [];
|
|
839
847
|
readonly name: "SweepParamsRequired";
|
|
@@ -1060,6 +1068,10 @@ export declare const CONTRACT_ABIS: {
|
|
|
1060
1068
|
readonly type: "address";
|
|
1061
1069
|
}, {
|
|
1062
1070
|
readonly components: readonly [{
|
|
1071
|
+
readonly internalType: "uint256";
|
|
1072
|
+
readonly name: "amount";
|
|
1073
|
+
readonly type: "uint256";
|
|
1074
|
+
}, {
|
|
1063
1075
|
readonly internalType: "uint256";
|
|
1064
1076
|
readonly name: "minSwapOut";
|
|
1065
1077
|
readonly type: "uint256";
|
|
@@ -1908,6 +1920,10 @@ export declare const CONTRACT_ABIS: {
|
|
|
1908
1920
|
readonly type: "address";
|
|
1909
1921
|
}, {
|
|
1910
1922
|
readonly components: readonly [{
|
|
1923
|
+
readonly internalType: "uint256";
|
|
1924
|
+
readonly name: "amount";
|
|
1925
|
+
readonly type: "uint256";
|
|
1926
|
+
}, {
|
|
1911
1927
|
readonly internalType: "uint256";
|
|
1912
1928
|
readonly name: "minSwapOut";
|
|
1913
1929
|
readonly type: "uint256";
|
package/dist/sweeper.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { keccak_256 } from "@noble/hashes/sha3";
|
|
1
|
+
import { keccak_256 } from "@noble/hashes/sha3.js";
|
|
2
2
|
const ADDRESS = /^0x[0-9a-fA-F]{40}$/;
|
|
3
3
|
/** EIP-1167-with-immutable-args runtime prefix, up to the delegation target. */
|
|
4
4
|
const CLONE_RUNTIME_PREFIX = "3d81600a3d39f3363d3d373d3d3d363d73";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.57",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://docs.0xmonaco.com/sdk/typescript",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@noble/hashes": "^
|
|
13
|
+
"@noble/hashes": "^2.4.0"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "tsc -b",
|