@optimex-xyz/market-maker-sdk 0.7.0 → 0.8.0-dev-91a0821
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/README.md +17 -4
- package/dist/index.d.mts +1406 -909
- package/dist/index.d.ts +1406 -909
- package/dist/index.js +1212 -889
- package/dist/index.mjs +985 -663
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var index_exports = {};
|
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
ERC20__factory: () => ERC20__factory,
|
|
34
34
|
Payment__factory: () => Payment__factory,
|
|
35
|
+
ProtocolFetcherProxy__factory: () => ProtocolFetcherProxy__factory,
|
|
35
36
|
RouterService: () => RouterService,
|
|
36
37
|
Router__factory: () => Router__factory,
|
|
37
38
|
SDK: () => SDK,
|
|
@@ -74,15 +75,17 @@ var environments = {
|
|
|
74
75
|
dev: {
|
|
75
76
|
backendUrl: "https://api-dev.bitdex.xyz",
|
|
76
77
|
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
77
|
-
routerAddress: "
|
|
78
|
+
routerAddress: "0xe6DCDc525051F773EaC3e58B9b5f902D4E03fD55",
|
|
79
|
+
protocolFetcherProxyAddress: "0x0267Fc04eE866b31907dEe123aBdCdB67d03B297",
|
|
78
80
|
paymentAddressMap: {
|
|
79
|
-
ethereum_sepolia: "
|
|
81
|
+
ethereum_sepolia: "0x1d8b58438D5Ccc8Fcb4b738C89078f7b4168C9c0"
|
|
80
82
|
}
|
|
81
83
|
},
|
|
82
84
|
staging: {
|
|
83
85
|
backendUrl: "https://api-stg.bitdex.xyz",
|
|
84
86
|
rpcUrl: "https://rpc-bitfi-p00c4t1rul.t.conduit.xyz",
|
|
85
|
-
routerAddress: "
|
|
87
|
+
routerAddress: "0xa6E13A3c6c63C64d45bB453E0402B7D2eE53E564",
|
|
88
|
+
protocolFetcherProxyAddress: "0x7c07151ca4DFd93F352Ab9B132A95866697c38c2",
|
|
86
89
|
paymentAddressMap: {
|
|
87
90
|
ethereum_sepolia: "0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2"
|
|
88
91
|
}
|
|
@@ -90,7 +93,8 @@ var environments = {
|
|
|
90
93
|
prelive: {
|
|
91
94
|
backendUrl: "https://pre-api.optimex.xyz",
|
|
92
95
|
rpcUrl: "https://rpc.optimex.xyz",
|
|
93
|
-
routerAddress: "
|
|
96
|
+
routerAddress: "0xF7fedF4A250157010807E6eA60258E3B768149Ff",
|
|
97
|
+
protocolFetcherProxyAddress: "0xFDEd4CEf9aE1E03D0BeF161262a266c1c157a32b",
|
|
94
98
|
paymentAddressMap: {
|
|
95
99
|
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
96
100
|
}
|
|
@@ -98,7 +102,8 @@ var environments = {
|
|
|
98
102
|
production: {
|
|
99
103
|
backendUrl: "https://api.optimex.xyz",
|
|
100
104
|
rpcUrl: "https://rpc.optimex.xyz",
|
|
101
|
-
routerAddress: "
|
|
105
|
+
routerAddress: "0xF7fedF4A250157010807E6eA60258E3B768149Ff",
|
|
106
|
+
protocolFetcherProxyAddress: "0xFDEd4CEf9aE1E03D0BeF161262a266c1c157a32b",
|
|
102
107
|
paymentAddressMap: {
|
|
103
108
|
ethereum: "0x0A497AC4261E37FA4062762C23Cf3cB642C839b8"
|
|
104
109
|
}
|
|
@@ -159,6 +164,9 @@ var Config = class {
|
|
|
159
164
|
getPaymentAddress(networkId) {
|
|
160
165
|
return this.config.paymentAddressMap[networkId];
|
|
161
166
|
}
|
|
167
|
+
getProtocolFetcherAddress() {
|
|
168
|
+
return this.config.protocolFetcherProxyAddress;
|
|
169
|
+
}
|
|
162
170
|
};
|
|
163
171
|
var config = new Config();
|
|
164
172
|
|
|
@@ -181,16 +189,17 @@ var SDK = class {
|
|
|
181
189
|
};
|
|
182
190
|
var sdk = new SDK();
|
|
183
191
|
|
|
184
|
-
// src/contracts/
|
|
192
|
+
// src/contracts/contracts/factories/index.ts
|
|
185
193
|
var factories_exports = {};
|
|
186
194
|
__export(factories_exports, {
|
|
187
195
|
ERC20__factory: () => ERC20__factory,
|
|
188
196
|
Payment__factory: () => Payment__factory,
|
|
197
|
+
ProtocolFetcherProxy__factory: () => ProtocolFetcherProxy__factory,
|
|
189
198
|
Router__factory: () => Router__factory,
|
|
190
199
|
Signer__factory: () => Signer__factory
|
|
191
200
|
});
|
|
192
201
|
|
|
193
|
-
// src/contracts/
|
|
202
|
+
// src/contracts/contracts/factories/ERC20__factory.ts
|
|
194
203
|
var import_ethers = require("ethers");
|
|
195
204
|
var _abi = [
|
|
196
205
|
{
|
|
@@ -1590,7 +1599,7 @@ var ERC20__factory = class {
|
|
|
1590
1599
|
};
|
|
1591
1600
|
ERC20__factory.abi = _abi;
|
|
1592
1601
|
|
|
1593
|
-
// src/contracts/
|
|
1602
|
+
// src/contracts/contracts/factories/Payment__factory.ts
|
|
1594
1603
|
var import_ethers2 = require("ethers");
|
|
1595
1604
|
var _abi2 = [
|
|
1596
1605
|
{
|
|
@@ -1809,7 +1818,7 @@ var Payment__factory = class {
|
|
|
1809
1818
|
};
|
|
1810
1819
|
Payment__factory.abi = _abi2;
|
|
1811
1820
|
|
|
1812
|
-
// src/contracts/
|
|
1821
|
+
// src/contracts/contracts/factories/ProtocolFetcherProxy__factory.ts
|
|
1813
1822
|
var import_ethers3 = require("ethers");
|
|
1814
1823
|
var _abi3 = [
|
|
1815
1824
|
{
|
|
@@ -1820,8 +1829,18 @@ var _abi3 = [
|
|
|
1820
1829
|
type: "address"
|
|
1821
1830
|
},
|
|
1822
1831
|
{
|
|
1823
|
-
internalType: "
|
|
1824
|
-
name: "
|
|
1832
|
+
internalType: "contract IVaultRegistry",
|
|
1833
|
+
name: "vaultRegistry_",
|
|
1834
|
+
type: "address"
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
internalType: "contract IRouter",
|
|
1838
|
+
name: "router_",
|
|
1839
|
+
type: "address"
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
internalType: "contract ISignerExtension",
|
|
1843
|
+
name: "signerExtension_",
|
|
1825
1844
|
type: "address"
|
|
1826
1845
|
}
|
|
1827
1846
|
],
|
|
@@ -1835,394 +1854,349 @@ var _abi3 = [
|
|
|
1835
1854
|
},
|
|
1836
1855
|
{
|
|
1837
1856
|
inputs: [],
|
|
1838
|
-
name: "
|
|
1839
|
-
type: "error"
|
|
1840
|
-
},
|
|
1841
|
-
{
|
|
1842
|
-
inputs: [],
|
|
1843
|
-
name: "InconsistentCoreType",
|
|
1844
|
-
type: "error"
|
|
1845
|
-
},
|
|
1846
|
-
{
|
|
1847
|
-
inputs: [],
|
|
1848
|
-
name: "InconsistentPMM",
|
|
1857
|
+
name: "Unauthorized",
|
|
1849
1858
|
type: "error"
|
|
1850
1859
|
},
|
|
1851
1860
|
{
|
|
1852
|
-
inputs: [
|
|
1853
|
-
|
|
1854
|
-
|
|
1861
|
+
inputs: [
|
|
1862
|
+
{
|
|
1863
|
+
internalType: "bytes",
|
|
1864
|
+
name: "networkId",
|
|
1865
|
+
type: "bytes"
|
|
1866
|
+
}
|
|
1867
|
+
],
|
|
1868
|
+
name: "getLatestMPCInfo",
|
|
1869
|
+
outputs: [
|
|
1870
|
+
{
|
|
1871
|
+
components: [
|
|
1872
|
+
{
|
|
1873
|
+
internalType: "address",
|
|
1874
|
+
name: "mpcL2Address",
|
|
1875
|
+
type: "address"
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
internalType: "uint64",
|
|
1879
|
+
name: "expireTime",
|
|
1880
|
+
type: "uint64"
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
internalType: "bytes",
|
|
1884
|
+
name: "mpcL2Pubkey",
|
|
1885
|
+
type: "bytes"
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
internalType: "bytes",
|
|
1889
|
+
name: "mpcAssetPubkey",
|
|
1890
|
+
type: "bytes"
|
|
1891
|
+
}
|
|
1892
|
+
],
|
|
1893
|
+
internalType: "struct ITypes.MPCInfo",
|
|
1894
|
+
name: "",
|
|
1895
|
+
type: "tuple"
|
|
1896
|
+
}
|
|
1897
|
+
],
|
|
1898
|
+
stateMutability: "view",
|
|
1899
|
+
type: "function"
|
|
1855
1900
|
},
|
|
1856
1901
|
{
|
|
1857
|
-
inputs: [
|
|
1858
|
-
|
|
1859
|
-
|
|
1902
|
+
inputs: [
|
|
1903
|
+
{
|
|
1904
|
+
internalType: "bytes",
|
|
1905
|
+
name: "networkId",
|
|
1906
|
+
type: "bytes"
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
internalType: "bytes",
|
|
1910
|
+
name: "pubkey",
|
|
1911
|
+
type: "bytes"
|
|
1912
|
+
}
|
|
1913
|
+
],
|
|
1914
|
+
name: "getMPCInfo",
|
|
1915
|
+
outputs: [
|
|
1916
|
+
{
|
|
1917
|
+
components: [
|
|
1918
|
+
{
|
|
1919
|
+
internalType: "address",
|
|
1920
|
+
name: "mpcL2Address",
|
|
1921
|
+
type: "address"
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
internalType: "uint64",
|
|
1925
|
+
name: "expireTime",
|
|
1926
|
+
type: "uint64"
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
internalType: "bytes",
|
|
1930
|
+
name: "mpcL2Pubkey",
|
|
1931
|
+
type: "bytes"
|
|
1932
|
+
},
|
|
1933
|
+
{
|
|
1934
|
+
internalType: "bytes",
|
|
1935
|
+
name: "mpcAssetPubkey",
|
|
1936
|
+
type: "bytes"
|
|
1937
|
+
}
|
|
1938
|
+
],
|
|
1939
|
+
internalType: "struct ITypes.MPCInfo",
|
|
1940
|
+
name: "info",
|
|
1941
|
+
type: "tuple"
|
|
1942
|
+
}
|
|
1943
|
+
],
|
|
1944
|
+
stateMutability: "view",
|
|
1945
|
+
type: "function"
|
|
1860
1946
|
},
|
|
1861
1947
|
{
|
|
1862
1948
|
inputs: [],
|
|
1863
|
-
name: "
|
|
1864
|
-
|
|
1949
|
+
name: "getManagementOwner",
|
|
1950
|
+
outputs: [
|
|
1951
|
+
{
|
|
1952
|
+
internalType: "address",
|
|
1953
|
+
name: "",
|
|
1954
|
+
type: "address"
|
|
1955
|
+
}
|
|
1956
|
+
],
|
|
1957
|
+
stateMutability: "view",
|
|
1958
|
+
type: "function"
|
|
1865
1959
|
},
|
|
1866
1960
|
{
|
|
1867
|
-
inputs: [
|
|
1868
|
-
|
|
1869
|
-
|
|
1961
|
+
inputs: [
|
|
1962
|
+
{
|
|
1963
|
+
internalType: "bytes[4]",
|
|
1964
|
+
name: "pairInfo",
|
|
1965
|
+
type: "bytes[4]"
|
|
1966
|
+
}
|
|
1967
|
+
],
|
|
1968
|
+
name: "getPFeeRate",
|
|
1969
|
+
outputs: [
|
|
1970
|
+
{
|
|
1971
|
+
internalType: "uint256",
|
|
1972
|
+
name: "",
|
|
1973
|
+
type: "uint256"
|
|
1974
|
+
}
|
|
1975
|
+
],
|
|
1976
|
+
stateMutability: "view",
|
|
1977
|
+
type: "function"
|
|
1870
1978
|
},
|
|
1871
1979
|
{
|
|
1872
|
-
anonymous: false,
|
|
1873
1980
|
inputs: [
|
|
1874
1981
|
{
|
|
1875
|
-
indexed: true,
|
|
1876
|
-
internalType: "address",
|
|
1877
|
-
name: "mpc",
|
|
1878
|
-
type: "address"
|
|
1879
|
-
},
|
|
1880
|
-
{
|
|
1881
|
-
indexed: true,
|
|
1882
1982
|
internalType: "bytes32",
|
|
1883
|
-
name: "
|
|
1983
|
+
name: "pmmId",
|
|
1884
1984
|
type: "bytes32"
|
|
1885
1985
|
},
|
|
1886
1986
|
{
|
|
1887
|
-
indexed: false,
|
|
1888
1987
|
internalType: "uint256",
|
|
1889
|
-
name: "
|
|
1988
|
+
name: "fromIdx",
|
|
1890
1989
|
type: "uint256"
|
|
1891
1990
|
},
|
|
1892
1991
|
{
|
|
1893
|
-
indexed: false,
|
|
1894
1992
|
internalType: "uint256",
|
|
1895
|
-
name: "
|
|
1993
|
+
name: "toIdx",
|
|
1896
1994
|
type: "uint256"
|
|
1897
|
-
}
|
|
1995
|
+
}
|
|
1996
|
+
],
|
|
1997
|
+
name: "getPMMAccounts",
|
|
1998
|
+
outputs: [
|
|
1898
1999
|
{
|
|
1899
|
-
|
|
1900
|
-
internalType: "bytes[]",
|
|
2000
|
+
internalType: "address[]",
|
|
1901
2001
|
name: "list",
|
|
1902
|
-
type: "
|
|
2002
|
+
type: "address[]"
|
|
1903
2003
|
}
|
|
1904
2004
|
],
|
|
1905
|
-
|
|
1906
|
-
type: "
|
|
2005
|
+
stateMutability: "view",
|
|
2006
|
+
type: "function"
|
|
1907
2007
|
},
|
|
1908
2008
|
{
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
indexed: true,
|
|
1913
|
-
internalType: "address",
|
|
1914
|
-
name: "mpc",
|
|
1915
|
-
type: "address"
|
|
1916
|
-
},
|
|
2009
|
+
inputs: [],
|
|
2010
|
+
name: "getProtocolState",
|
|
2011
|
+
outputs: [
|
|
1917
2012
|
{
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
type: "bytes32"
|
|
2013
|
+
internalType: "uint256",
|
|
2014
|
+
name: "",
|
|
2015
|
+
type: "uint256"
|
|
1922
2016
|
}
|
|
1923
2017
|
],
|
|
1924
|
-
|
|
1925
|
-
type: "
|
|
2018
|
+
stateMutability: "view",
|
|
2019
|
+
type: "function"
|
|
1926
2020
|
},
|
|
1927
2021
|
{
|
|
1928
|
-
anonymous: false,
|
|
1929
2022
|
inputs: [
|
|
1930
2023
|
{
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
type: "address"
|
|
2024
|
+
internalType: "uint256",
|
|
2025
|
+
name: "fromIdx",
|
|
2026
|
+
type: "uint256"
|
|
1935
2027
|
},
|
|
1936
2028
|
{
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
type: "bytes32"
|
|
2029
|
+
internalType: "uint256",
|
|
2030
|
+
name: "toIdx",
|
|
2031
|
+
type: "uint256"
|
|
1941
2032
|
}
|
|
1942
2033
|
],
|
|
1943
|
-
name: "
|
|
1944
|
-
|
|
2034
|
+
name: "getTokens",
|
|
2035
|
+
outputs: [
|
|
2036
|
+
{
|
|
2037
|
+
components: [
|
|
2038
|
+
{
|
|
2039
|
+
internalType: "bytes[5]",
|
|
2040
|
+
name: "info",
|
|
2041
|
+
type: "bytes[5]"
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
internalType: "uint256",
|
|
2045
|
+
name: "decimals",
|
|
2046
|
+
type: "uint256"
|
|
2047
|
+
}
|
|
2048
|
+
],
|
|
2049
|
+
internalType: "struct ITypes.TokenInfo[]",
|
|
2050
|
+
name: "list",
|
|
2051
|
+
type: "tuple[]"
|
|
2052
|
+
}
|
|
2053
|
+
],
|
|
2054
|
+
stateMutability: "view",
|
|
2055
|
+
type: "function"
|
|
1945
2056
|
},
|
|
1946
2057
|
{
|
|
1947
|
-
anonymous: false,
|
|
1948
2058
|
inputs: [
|
|
1949
2059
|
{
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
type: "address"
|
|
2060
|
+
internalType: "bytes",
|
|
2061
|
+
name: "networkId",
|
|
2062
|
+
type: "bytes"
|
|
1954
2063
|
},
|
|
1955
2064
|
{
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
type: "bytes32"
|
|
2065
|
+
internalType: "bytes",
|
|
2066
|
+
name: "tokenId",
|
|
2067
|
+
type: "bytes"
|
|
1960
2068
|
}
|
|
1961
2069
|
],
|
|
1962
|
-
name: "
|
|
1963
|
-
|
|
2070
|
+
name: "getVault",
|
|
2071
|
+
outputs: [
|
|
2072
|
+
{
|
|
2073
|
+
internalType: "address",
|
|
2074
|
+
name: "",
|
|
2075
|
+
type: "address"
|
|
2076
|
+
}
|
|
2077
|
+
],
|
|
2078
|
+
stateMutability: "view",
|
|
2079
|
+
type: "function"
|
|
1964
2080
|
},
|
|
1965
2081
|
{
|
|
1966
|
-
anonymous: false,
|
|
1967
2082
|
inputs: [
|
|
1968
2083
|
{
|
|
1969
|
-
indexed: true,
|
|
1970
2084
|
internalType: "address",
|
|
1971
|
-
name: "
|
|
2085
|
+
name: "account",
|
|
1972
2086
|
type: "address"
|
|
1973
|
-
},
|
|
1974
|
-
{
|
|
1975
|
-
indexed: true,
|
|
1976
|
-
internalType: "bytes32",
|
|
1977
|
-
name: "tradeId",
|
|
1978
|
-
type: "bytes32"
|
|
1979
2087
|
}
|
|
1980
2088
|
],
|
|
1981
|
-
name: "
|
|
1982
|
-
|
|
1983
|
-
},
|
|
1984
|
-
{
|
|
1985
|
-
anonymous: false,
|
|
1986
|
-
inputs: [
|
|
1987
|
-
{
|
|
1988
|
-
indexed: true,
|
|
1989
|
-
internalType: "address",
|
|
1990
|
-
name: "mpc",
|
|
1991
|
-
type: "address"
|
|
1992
|
-
},
|
|
1993
|
-
{
|
|
1994
|
-
indexed: true,
|
|
1995
|
-
internalType: "bytes32",
|
|
1996
|
-
name: "tradeId",
|
|
1997
|
-
type: "bytes32"
|
|
1998
|
-
},
|
|
2089
|
+
name: "isMPCNode",
|
|
2090
|
+
outputs: [
|
|
1999
2091
|
{
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
type: "bytes"
|
|
2092
|
+
internalType: "bool",
|
|
2093
|
+
name: "",
|
|
2094
|
+
type: "bool"
|
|
2004
2095
|
}
|
|
2005
2096
|
],
|
|
2006
|
-
|
|
2007
|
-
type: "
|
|
2097
|
+
stateMutability: "view",
|
|
2098
|
+
type: "function"
|
|
2008
2099
|
},
|
|
2009
2100
|
{
|
|
2010
|
-
anonymous: false,
|
|
2011
2101
|
inputs: [
|
|
2012
2102
|
{
|
|
2013
|
-
indexed: true,
|
|
2014
2103
|
internalType: "address",
|
|
2015
|
-
name: "
|
|
2104
|
+
name: "account",
|
|
2016
2105
|
type: "address"
|
|
2017
|
-
},
|
|
2018
|
-
{
|
|
2019
|
-
indexed: true,
|
|
2020
|
-
internalType: "bytes32",
|
|
2021
|
-
name: "tradeId",
|
|
2022
|
-
type: "bytes32"
|
|
2023
2106
|
}
|
|
2024
2107
|
],
|
|
2025
|
-
name: "
|
|
2026
|
-
|
|
2027
|
-
},
|
|
2028
|
-
{
|
|
2029
|
-
anonymous: false,
|
|
2030
|
-
inputs: [
|
|
2031
|
-
{
|
|
2032
|
-
indexed: true,
|
|
2033
|
-
internalType: "address",
|
|
2034
|
-
name: "solver",
|
|
2035
|
-
type: "address"
|
|
2036
|
-
},
|
|
2108
|
+
name: "isSolver",
|
|
2109
|
+
outputs: [
|
|
2037
2110
|
{
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
type: "bytes32"
|
|
2111
|
+
internalType: "bool",
|
|
2112
|
+
name: "",
|
|
2113
|
+
type: "bool"
|
|
2042
2114
|
}
|
|
2043
2115
|
],
|
|
2044
|
-
|
|
2045
|
-
type: "
|
|
2116
|
+
stateMutability: "view",
|
|
2117
|
+
type: "function"
|
|
2046
2118
|
},
|
|
2047
2119
|
{
|
|
2048
|
-
anonymous: false,
|
|
2049
2120
|
inputs: [
|
|
2050
2121
|
{
|
|
2051
|
-
indexed: true,
|
|
2052
|
-
internalType: "address",
|
|
2053
|
-
name: "handler",
|
|
2054
|
-
type: "address"
|
|
2055
|
-
},
|
|
2056
|
-
{
|
|
2057
|
-
indexed: true,
|
|
2058
|
-
internalType: "uint256",
|
|
2059
|
-
name: "version",
|
|
2060
|
-
type: "uint256"
|
|
2061
|
-
},
|
|
2062
|
-
{
|
|
2063
|
-
indexed: false,
|
|
2064
|
-
internalType: "bytes",
|
|
2065
|
-
name: "fromChain",
|
|
2066
|
-
type: "bytes"
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
indexed: false,
|
|
2070
2122
|
internalType: "bytes",
|
|
2071
|
-
name: "
|
|
2123
|
+
name: "networkId",
|
|
2072
2124
|
type: "bytes"
|
|
2073
2125
|
}
|
|
2074
2126
|
],
|
|
2075
|
-
name: "
|
|
2076
|
-
type: "event"
|
|
2077
|
-
},
|
|
2078
|
-
{
|
|
2079
|
-
inputs: [],
|
|
2080
|
-
name: "SIGNER",
|
|
2127
|
+
name: "isValidNetwork",
|
|
2081
2128
|
outputs: [
|
|
2082
2129
|
{
|
|
2083
|
-
internalType: "
|
|
2130
|
+
internalType: "bool",
|
|
2084
2131
|
name: "",
|
|
2085
|
-
type: "
|
|
2132
|
+
type: "bool"
|
|
2086
2133
|
}
|
|
2087
2134
|
],
|
|
2088
2135
|
stateMutability: "view",
|
|
2089
2136
|
type: "function"
|
|
2090
2137
|
},
|
|
2091
|
-
{
|
|
2092
|
-
inputs: [
|
|
2093
|
-
{
|
|
2094
|
-
components: [
|
|
2095
|
-
{
|
|
2096
|
-
internalType: "bytes32[]",
|
|
2097
|
-
name: "tradeIds",
|
|
2098
|
-
type: "bytes32[]"
|
|
2099
|
-
},
|
|
2100
|
-
{
|
|
2101
|
-
internalType: "uint64",
|
|
2102
|
-
name: "signedAt",
|
|
2103
|
-
type: "uint64"
|
|
2104
|
-
},
|
|
2105
|
-
{
|
|
2106
|
-
internalType: "uint64",
|
|
2107
|
-
name: "startIdx",
|
|
2108
|
-
type: "uint64"
|
|
2109
|
-
},
|
|
2110
|
-
{
|
|
2111
|
-
internalType: "bytes",
|
|
2112
|
-
name: "paymentTxId",
|
|
2113
|
-
type: "bytes"
|
|
2114
|
-
},
|
|
2115
|
-
{
|
|
2116
|
-
internalType: "bytes",
|
|
2117
|
-
name: "signature",
|
|
2118
|
-
type: "bytes"
|
|
2119
|
-
}
|
|
2120
|
-
],
|
|
2121
|
-
internalType: "struct ITypes.BundlePayment",
|
|
2122
|
-
name: "bundle",
|
|
2123
|
-
type: "tuple"
|
|
2124
|
-
}
|
|
2125
|
-
],
|
|
2126
|
-
name: "bundlePayment",
|
|
2127
|
-
outputs: [],
|
|
2128
|
-
stateMutability: "nonpayable",
|
|
2129
|
-
type: "function"
|
|
2130
|
-
},
|
|
2131
2138
|
{
|
|
2132
2139
|
inputs: [
|
|
2133
2140
|
{
|
|
2134
2141
|
internalType: "bytes32",
|
|
2135
|
-
name: "
|
|
2142
|
+
name: "pmmId",
|
|
2136
2143
|
type: "bytes32"
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
type: "bytes"
|
|
2142
|
-
},
|
|
2144
|
+
}
|
|
2145
|
+
],
|
|
2146
|
+
name: "isValidPMM",
|
|
2147
|
+
outputs: [
|
|
2143
2148
|
{
|
|
2144
|
-
internalType: "
|
|
2145
|
-
name: "
|
|
2146
|
-
type: "
|
|
2149
|
+
internalType: "bool",
|
|
2150
|
+
name: "",
|
|
2151
|
+
type: "bool"
|
|
2147
2152
|
}
|
|
2148
2153
|
],
|
|
2149
|
-
|
|
2150
|
-
outputs: [],
|
|
2151
|
-
stateMutability: "nonpayable",
|
|
2154
|
+
stateMutability: "view",
|
|
2152
2155
|
type: "function"
|
|
2153
2156
|
},
|
|
2154
2157
|
{
|
|
2155
2158
|
inputs: [
|
|
2156
2159
|
{
|
|
2157
2160
|
internalType: "bytes32",
|
|
2158
|
-
name: "
|
|
2161
|
+
name: "pmmId",
|
|
2159
2162
|
type: "bytes32"
|
|
2160
2163
|
},
|
|
2161
2164
|
{
|
|
2162
|
-
internalType: "
|
|
2163
|
-
name: "
|
|
2164
|
-
type: "
|
|
2165
|
+
internalType: "address",
|
|
2166
|
+
name: "account",
|
|
2167
|
+
type: "address"
|
|
2165
2168
|
}
|
|
2166
2169
|
],
|
|
2167
|
-
name: "
|
|
2168
|
-
outputs: [
|
|
2169
|
-
|
|
2170
|
+
name: "isValidPMMAccount",
|
|
2171
|
+
outputs: [
|
|
2172
|
+
{
|
|
2173
|
+
internalType: "bool",
|
|
2174
|
+
name: "",
|
|
2175
|
+
type: "bool"
|
|
2176
|
+
}
|
|
2177
|
+
],
|
|
2178
|
+
stateMutability: "view",
|
|
2170
2179
|
type: "function"
|
|
2171
2180
|
},
|
|
2172
2181
|
{
|
|
2173
2182
|
inputs: [
|
|
2174
|
-
{
|
|
2175
|
-
internalType: "bytes32",
|
|
2176
|
-
name: "tradeId",
|
|
2177
|
-
type: "bytes32"
|
|
2178
|
-
},
|
|
2179
2183
|
{
|
|
2180
2184
|
internalType: "bytes",
|
|
2181
|
-
name: "
|
|
2185
|
+
name: "networkId",
|
|
2182
2186
|
type: "bytes"
|
|
2183
2187
|
},
|
|
2184
2188
|
{
|
|
2185
2189
|
internalType: "bytes",
|
|
2186
|
-
name: "
|
|
2190
|
+
name: "pubkey",
|
|
2187
2191
|
type: "bytes"
|
|
2188
2192
|
}
|
|
2189
2193
|
],
|
|
2190
|
-
name: "
|
|
2191
|
-
outputs: [],
|
|
2192
|
-
stateMutability: "nonpayable",
|
|
2193
|
-
type: "function"
|
|
2194
|
-
},
|
|
2195
|
-
{
|
|
2196
|
-
inputs: [
|
|
2197
|
-
{
|
|
2198
|
-
internalType: "bytes32",
|
|
2199
|
-
name: "tradeId",
|
|
2200
|
-
type: "bytes32"
|
|
2201
|
-
}
|
|
2202
|
-
],
|
|
2203
|
-
name: "getAffiliateInfo",
|
|
2194
|
+
name: "isValidPubkey",
|
|
2204
2195
|
outputs: [
|
|
2205
2196
|
{
|
|
2206
|
-
|
|
2207
|
-
{
|
|
2208
|
-
internalType: "uint256",
|
|
2209
|
-
name: "aggregatedValue",
|
|
2210
|
-
type: "uint256"
|
|
2211
|
-
},
|
|
2212
|
-
{
|
|
2213
|
-
internalType: "string",
|
|
2214
|
-
name: "schema",
|
|
2215
|
-
type: "string"
|
|
2216
|
-
},
|
|
2217
|
-
{
|
|
2218
|
-
internalType: "bytes",
|
|
2219
|
-
name: "data",
|
|
2220
|
-
type: "bytes"
|
|
2221
|
-
}
|
|
2222
|
-
],
|
|
2223
|
-
internalType: "struct ITypes.Affiliate",
|
|
2197
|
+
internalType: "bool",
|
|
2224
2198
|
name: "",
|
|
2225
|
-
type: "
|
|
2199
|
+
type: "bool"
|
|
2226
2200
|
}
|
|
2227
2201
|
],
|
|
2228
2202
|
stateMutability: "view",
|
|
@@ -2232,31 +2206,21 @@ var _abi3 = [
|
|
|
2232
2206
|
inputs: [
|
|
2233
2207
|
{
|
|
2234
2208
|
internalType: "bytes",
|
|
2235
|
-
name: "
|
|
2209
|
+
name: "networkId",
|
|
2236
2210
|
type: "bytes"
|
|
2237
2211
|
},
|
|
2238
2212
|
{
|
|
2239
2213
|
internalType: "bytes",
|
|
2240
|
-
name: "
|
|
2214
|
+
name: "tokenId",
|
|
2241
2215
|
type: "bytes"
|
|
2242
2216
|
}
|
|
2243
2217
|
],
|
|
2244
|
-
name: "
|
|
2218
|
+
name: "isValidToken",
|
|
2245
2219
|
outputs: [
|
|
2246
2220
|
{
|
|
2247
|
-
internalType: "
|
|
2248
|
-
name: "",
|
|
2249
|
-
type: "uint64"
|
|
2250
|
-
},
|
|
2251
|
-
{
|
|
2252
|
-
internalType: "uint64",
|
|
2253
|
-
name: "",
|
|
2254
|
-
type: "uint64"
|
|
2255
|
-
},
|
|
2256
|
-
{
|
|
2257
|
-
internalType: "uint64",
|
|
2221
|
+
internalType: "bool",
|
|
2258
2222
|
name: "",
|
|
2259
|
-
type: "
|
|
2223
|
+
type: "bool"
|
|
2260
2224
|
}
|
|
2261
2225
|
],
|
|
2262
2226
|
stateMutability: "view",
|
|
@@ -2266,11 +2230,11 @@ var _abi3 = [
|
|
|
2266
2230
|
inputs: [
|
|
2267
2231
|
{
|
|
2268
2232
|
internalType: "bytes32",
|
|
2269
|
-
name: "
|
|
2233
|
+
name: "pmmId",
|
|
2270
2234
|
type: "bytes32"
|
|
2271
2235
|
}
|
|
2272
2236
|
],
|
|
2273
|
-
name: "
|
|
2237
|
+
name: "numOfPMMAccounts",
|
|
2274
2238
|
outputs: [
|
|
2275
2239
|
{
|
|
2276
2240
|
internalType: "uint256",
|
|
@@ -2282,50 +2246,52 @@ var _abi3 = [
|
|
|
2282
2246
|
type: "function"
|
|
2283
2247
|
},
|
|
2284
2248
|
{
|
|
2285
|
-
inputs: [
|
|
2249
|
+
inputs: [],
|
|
2250
|
+
name: "numOfSupportedTokens",
|
|
2251
|
+
outputs: [
|
|
2286
2252
|
{
|
|
2287
|
-
internalType: "
|
|
2288
|
-
name: "
|
|
2289
|
-
type: "
|
|
2253
|
+
internalType: "uint256",
|
|
2254
|
+
name: "",
|
|
2255
|
+
type: "uint256"
|
|
2290
2256
|
}
|
|
2291
2257
|
],
|
|
2292
|
-
|
|
2258
|
+
stateMutability: "view",
|
|
2259
|
+
type: "function"
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
inputs: [],
|
|
2263
|
+
name: "pManagement",
|
|
2293
2264
|
outputs: [
|
|
2294
2265
|
{
|
|
2295
|
-
internalType: "
|
|
2266
|
+
internalType: "contract IManagement",
|
|
2296
2267
|
name: "",
|
|
2297
|
-
type: "
|
|
2268
|
+
type: "address"
|
|
2298
2269
|
}
|
|
2299
2270
|
],
|
|
2300
2271
|
stateMutability: "view",
|
|
2301
2272
|
type: "function"
|
|
2302
2273
|
},
|
|
2303
2274
|
{
|
|
2304
|
-
inputs: [
|
|
2275
|
+
inputs: [],
|
|
2276
|
+
name: "registry",
|
|
2277
|
+
outputs: [
|
|
2305
2278
|
{
|
|
2306
|
-
internalType: "
|
|
2307
|
-
name: "
|
|
2308
|
-
type: "
|
|
2279
|
+
internalType: "contract IVaultRegistry",
|
|
2280
|
+
name: "",
|
|
2281
|
+
type: "address"
|
|
2309
2282
|
}
|
|
2310
2283
|
],
|
|
2311
|
-
|
|
2284
|
+
stateMutability: "view",
|
|
2285
|
+
type: "function"
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
inputs: [],
|
|
2289
|
+
name: "router",
|
|
2312
2290
|
outputs: [
|
|
2313
2291
|
{
|
|
2314
|
-
|
|
2315
|
-
{
|
|
2316
|
-
internalType: "uint256",
|
|
2317
|
-
name: "stage",
|
|
2318
|
-
type: "uint256"
|
|
2319
|
-
},
|
|
2320
|
-
{
|
|
2321
|
-
internalType: "bytes",
|
|
2322
|
-
name: "msgError",
|
|
2323
|
-
type: "bytes"
|
|
2324
|
-
}
|
|
2325
|
-
],
|
|
2326
|
-
internalType: "struct ITypes.FailureDetails",
|
|
2292
|
+
internalType: "contract IRouter",
|
|
2327
2293
|
name: "",
|
|
2328
|
-
type: "
|
|
2294
|
+
type: "address"
|
|
2329
2295
|
}
|
|
2330
2296
|
],
|
|
2331
2297
|
stateMutability: "view",
|
|
@@ -2334,116 +2300,404 @@ var _abi3 = [
|
|
|
2334
2300
|
{
|
|
2335
2301
|
inputs: [
|
|
2336
2302
|
{
|
|
2337
|
-
internalType: "
|
|
2338
|
-
name: "
|
|
2339
|
-
type: "
|
|
2303
|
+
internalType: "address",
|
|
2304
|
+
name: "newManagement",
|
|
2305
|
+
type: "address"
|
|
2340
2306
|
}
|
|
2341
2307
|
],
|
|
2342
|
-
name: "
|
|
2308
|
+
name: "setProtocolManagement",
|
|
2309
|
+
outputs: [],
|
|
2310
|
+
stateMutability: "nonpayable",
|
|
2311
|
+
type: "function"
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
inputs: [
|
|
2315
|
+
{
|
|
2316
|
+
internalType: "address",
|
|
2317
|
+
name: "newRouter",
|
|
2318
|
+
type: "address"
|
|
2319
|
+
}
|
|
2320
|
+
],
|
|
2321
|
+
name: "setRouter",
|
|
2322
|
+
outputs: [],
|
|
2323
|
+
stateMutability: "nonpayable",
|
|
2324
|
+
type: "function"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
inputs: [
|
|
2328
|
+
{
|
|
2329
|
+
internalType: "address",
|
|
2330
|
+
name: "newSignerExtension",
|
|
2331
|
+
type: "address"
|
|
2332
|
+
}
|
|
2333
|
+
],
|
|
2334
|
+
name: "setSignerExtension",
|
|
2335
|
+
outputs: [],
|
|
2336
|
+
stateMutability: "nonpayable",
|
|
2337
|
+
type: "function"
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
inputs: [
|
|
2341
|
+
{
|
|
2342
|
+
internalType: "address",
|
|
2343
|
+
name: "newRegistry",
|
|
2344
|
+
type: "address"
|
|
2345
|
+
}
|
|
2346
|
+
],
|
|
2347
|
+
name: "setVaultRegistry",
|
|
2348
|
+
outputs: [],
|
|
2349
|
+
stateMutability: "nonpayable",
|
|
2350
|
+
type: "function"
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
inputs: [],
|
|
2354
|
+
name: "signerExtension",
|
|
2343
2355
|
outputs: [
|
|
2344
2356
|
{
|
|
2345
|
-
|
|
2346
|
-
{
|
|
2347
|
-
internalType: "uint256",
|
|
2348
|
-
name: "totalAmount",
|
|
2349
|
-
type: "uint256"
|
|
2350
|
-
},
|
|
2351
|
-
{
|
|
2352
|
-
internalType: "uint256",
|
|
2353
|
-
name: "pFeeAmount",
|
|
2354
|
-
type: "uint256"
|
|
2355
|
-
},
|
|
2356
|
-
{
|
|
2357
|
-
internalType: "uint256",
|
|
2358
|
-
name: "aFeeAmount",
|
|
2359
|
-
type: "uint256"
|
|
2360
|
-
},
|
|
2361
|
-
{
|
|
2362
|
-
internalType: "uint128",
|
|
2363
|
-
name: "pFeeRate",
|
|
2364
|
-
type: "uint128"
|
|
2365
|
-
},
|
|
2366
|
-
{
|
|
2367
|
-
internalType: "uint128",
|
|
2368
|
-
name: "aFeeRate",
|
|
2369
|
-
type: "uint128"
|
|
2370
|
-
}
|
|
2371
|
-
],
|
|
2372
|
-
internalType: "struct ITypes.FeeDetails",
|
|
2357
|
+
internalType: "contract ISignerExtension",
|
|
2373
2358
|
name: "",
|
|
2374
|
-
type: "
|
|
2359
|
+
type: "address"
|
|
2375
2360
|
}
|
|
2376
2361
|
],
|
|
2377
2362
|
stateMutability: "view",
|
|
2378
2363
|
type: "function"
|
|
2364
|
+
}
|
|
2365
|
+
];
|
|
2366
|
+
var ProtocolFetcherProxy__factory = class {
|
|
2367
|
+
static createInterface() {
|
|
2368
|
+
return new import_ethers3.Interface(_abi3);
|
|
2369
|
+
}
|
|
2370
|
+
static connect(address, runner) {
|
|
2371
|
+
return new import_ethers3.Contract(
|
|
2372
|
+
address,
|
|
2373
|
+
_abi3,
|
|
2374
|
+
runner
|
|
2375
|
+
);
|
|
2376
|
+
}
|
|
2377
|
+
};
|
|
2378
|
+
ProtocolFetcherProxy__factory.abi = _abi3;
|
|
2379
|
+
|
|
2380
|
+
// src/contracts/contracts/factories/Router__factory.ts
|
|
2381
|
+
var import_ethers4 = require("ethers");
|
|
2382
|
+
var _abi4 = [
|
|
2383
|
+
{
|
|
2384
|
+
inputs: [
|
|
2385
|
+
{
|
|
2386
|
+
internalType: "contract IManagement",
|
|
2387
|
+
name: "management_",
|
|
2388
|
+
type: "address"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
internalType: "address",
|
|
2392
|
+
name: "signer",
|
|
2393
|
+
type: "address"
|
|
2394
|
+
}
|
|
2395
|
+
],
|
|
2396
|
+
stateMutability: "nonpayable",
|
|
2397
|
+
type: "constructor"
|
|
2379
2398
|
},
|
|
2380
2399
|
{
|
|
2400
|
+
inputs: [],
|
|
2401
|
+
name: "AddressZero",
|
|
2402
|
+
type: "error"
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
inputs: [],
|
|
2406
|
+
name: "BundlePaymentEmpty",
|
|
2407
|
+
type: "error"
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
inputs: [],
|
|
2411
|
+
name: "DepositAlreadySubmitted",
|
|
2412
|
+
type: "error"
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
inputs: [],
|
|
2416
|
+
name: "LengthMismatch",
|
|
2417
|
+
type: "error"
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
inputs: [],
|
|
2421
|
+
name: "RegisteredAlready",
|
|
2422
|
+
type: "error"
|
|
2423
|
+
},
|
|
2424
|
+
{
|
|
2425
|
+
inputs: [],
|
|
2426
|
+
name: "RouteNotSupported",
|
|
2427
|
+
type: "error"
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
inputs: [],
|
|
2431
|
+
name: "Unauthorized",
|
|
2432
|
+
type: "error"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
anonymous: false,
|
|
2381
2436
|
inputs: [
|
|
2382
2437
|
{
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2438
|
+
indexed: true,
|
|
2439
|
+
internalType: "address",
|
|
2440
|
+
name: "solver",
|
|
2441
|
+
type: "address"
|
|
2386
2442
|
},
|
|
2387
2443
|
{
|
|
2444
|
+
indexed: true,
|
|
2445
|
+
internalType: "bytes32",
|
|
2446
|
+
name: "tradeId",
|
|
2447
|
+
type: "bytes32"
|
|
2448
|
+
}
|
|
2449
|
+
],
|
|
2450
|
+
name: "Abort",
|
|
2451
|
+
type: "event"
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
anonymous: false,
|
|
2455
|
+
inputs: [
|
|
2456
|
+
{
|
|
2457
|
+
indexed: true,
|
|
2458
|
+
internalType: "address",
|
|
2459
|
+
name: "mpc",
|
|
2460
|
+
type: "address"
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
indexed: true,
|
|
2464
|
+
internalType: "bytes32",
|
|
2465
|
+
name: "tradeId",
|
|
2466
|
+
type: "bytes32"
|
|
2467
|
+
}
|
|
2468
|
+
],
|
|
2469
|
+
name: "ConfirmDeposit",
|
|
2470
|
+
type: "event"
|
|
2471
|
+
},
|
|
2472
|
+
{
|
|
2473
|
+
anonymous: false,
|
|
2474
|
+
inputs: [
|
|
2475
|
+
{
|
|
2476
|
+
indexed: true,
|
|
2477
|
+
internalType: "address",
|
|
2478
|
+
name: "mpc",
|
|
2479
|
+
type: "address"
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
indexed: true,
|
|
2483
|
+
internalType: "bytes32",
|
|
2484
|
+
name: "tradeId",
|
|
2485
|
+
type: "bytes32"
|
|
2486
|
+
}
|
|
2487
|
+
],
|
|
2488
|
+
name: "ConfirmPayment",
|
|
2489
|
+
type: "event"
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
anonymous: false,
|
|
2493
|
+
inputs: [
|
|
2494
|
+
{
|
|
2495
|
+
indexed: true,
|
|
2496
|
+
internalType: "address",
|
|
2497
|
+
name: "mpc",
|
|
2498
|
+
type: "address"
|
|
2499
|
+
},
|
|
2500
|
+
{
|
|
2501
|
+
indexed: true,
|
|
2502
|
+
internalType: "bytes32",
|
|
2503
|
+
name: "tradeId",
|
|
2504
|
+
type: "bytes32"
|
|
2505
|
+
}
|
|
2506
|
+
],
|
|
2507
|
+
name: "ConfirmPresign",
|
|
2508
|
+
type: "event"
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
anonymous: false,
|
|
2512
|
+
inputs: [
|
|
2513
|
+
{
|
|
2514
|
+
indexed: true,
|
|
2515
|
+
internalType: "address",
|
|
2516
|
+
name: "mpc",
|
|
2517
|
+
type: "address"
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
indexed: true,
|
|
2521
|
+
internalType: "bytes32",
|
|
2522
|
+
name: "tradeId",
|
|
2523
|
+
type: "bytes32"
|
|
2524
|
+
}
|
|
2525
|
+
],
|
|
2526
|
+
name: "ConfirmRefund",
|
|
2527
|
+
type: "event"
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
anonymous: false,
|
|
2531
|
+
inputs: [
|
|
2532
|
+
{
|
|
2533
|
+
indexed: true,
|
|
2534
|
+
internalType: "address",
|
|
2535
|
+
name: "mpc",
|
|
2536
|
+
type: "address"
|
|
2537
|
+
},
|
|
2538
|
+
{
|
|
2539
|
+
indexed: true,
|
|
2540
|
+
internalType: "bytes32",
|
|
2541
|
+
name: "tradeId",
|
|
2542
|
+
type: "bytes32"
|
|
2543
|
+
}
|
|
2544
|
+
],
|
|
2545
|
+
name: "ConfirmSettlement",
|
|
2546
|
+
type: "event"
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
anonymous: false,
|
|
2550
|
+
inputs: [
|
|
2551
|
+
{
|
|
2552
|
+
indexed: true,
|
|
2553
|
+
internalType: "address",
|
|
2554
|
+
name: "operator",
|
|
2555
|
+
type: "address"
|
|
2556
|
+
},
|
|
2557
|
+
{
|
|
2558
|
+
indexed: true,
|
|
2559
|
+
internalType: "bytes32",
|
|
2560
|
+
name: "tradeId",
|
|
2561
|
+
type: "bytes32"
|
|
2562
|
+
}
|
|
2563
|
+
],
|
|
2564
|
+
name: "MakePayment",
|
|
2565
|
+
type: "event"
|
|
2566
|
+
},
|
|
2567
|
+
{
|
|
2568
|
+
anonymous: false,
|
|
2569
|
+
inputs: [
|
|
2570
|
+
{
|
|
2571
|
+
indexed: true,
|
|
2572
|
+
internalType: "address",
|
|
2573
|
+
name: "mpc",
|
|
2574
|
+
type: "address"
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
indexed: true,
|
|
2578
|
+
internalType: "bytes32",
|
|
2579
|
+
name: "tradeId",
|
|
2580
|
+
type: "bytes32"
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
indexed: false,
|
|
2388
2584
|
internalType: "bytes",
|
|
2389
|
-
name: "
|
|
2585
|
+
name: "msgError",
|
|
2390
2586
|
type: "bytes"
|
|
2391
2587
|
}
|
|
2392
2588
|
],
|
|
2393
|
-
name: "
|
|
2394
|
-
|
|
2589
|
+
name: "ReportFailure",
|
|
2590
|
+
type: "event"
|
|
2591
|
+
},
|
|
2592
|
+
{
|
|
2593
|
+
anonymous: false,
|
|
2594
|
+
inputs: [
|
|
2595
|
+
{
|
|
2596
|
+
indexed: true,
|
|
2597
|
+
internalType: "address",
|
|
2598
|
+
name: "solver",
|
|
2599
|
+
type: "address"
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
indexed: true,
|
|
2603
|
+
internalType: "bytes32",
|
|
2604
|
+
name: "tradeId",
|
|
2605
|
+
type: "bytes32"
|
|
2606
|
+
}
|
|
2607
|
+
],
|
|
2608
|
+
name: "SelectPMM",
|
|
2609
|
+
type: "event"
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
anonymous: false,
|
|
2613
|
+
inputs: [
|
|
2614
|
+
{
|
|
2615
|
+
indexed: true,
|
|
2616
|
+
internalType: "address",
|
|
2617
|
+
name: "solver",
|
|
2618
|
+
type: "address"
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
indexed: true,
|
|
2622
|
+
internalType: "bytes32",
|
|
2623
|
+
name: "tradeId",
|
|
2624
|
+
type: "bytes32"
|
|
2625
|
+
}
|
|
2626
|
+
],
|
|
2627
|
+
name: "SubmitDeposit",
|
|
2628
|
+
type: "event"
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
anonymous: false,
|
|
2632
|
+
inputs: [
|
|
2633
|
+
{
|
|
2634
|
+
indexed: true,
|
|
2635
|
+
internalType: "address",
|
|
2636
|
+
name: "solver",
|
|
2637
|
+
type: "address"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
indexed: true,
|
|
2641
|
+
internalType: "bytes32",
|
|
2642
|
+
name: "tradeId",
|
|
2643
|
+
type: "bytes32"
|
|
2644
|
+
}
|
|
2645
|
+
],
|
|
2646
|
+
name: "SubmitTradeInfo",
|
|
2647
|
+
type: "event"
|
|
2648
|
+
},
|
|
2649
|
+
{
|
|
2650
|
+
anonymous: false,
|
|
2651
|
+
inputs: [
|
|
2395
2652
|
{
|
|
2653
|
+
indexed: true,
|
|
2396
2654
|
internalType: "address",
|
|
2397
|
-
name: "
|
|
2655
|
+
name: "operator",
|
|
2398
2656
|
type: "address"
|
|
2399
2657
|
},
|
|
2400
2658
|
{
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2659
|
+
indexed: true,
|
|
2660
|
+
internalType: "address",
|
|
2661
|
+
name: "newManagement",
|
|
2662
|
+
type: "address"
|
|
2404
2663
|
}
|
|
2405
2664
|
],
|
|
2406
|
-
|
|
2407
|
-
type: "
|
|
2665
|
+
name: "UpdatedManagement",
|
|
2666
|
+
type: "event"
|
|
2408
2667
|
},
|
|
2409
2668
|
{
|
|
2669
|
+
anonymous: false,
|
|
2410
2670
|
inputs: [
|
|
2411
2671
|
{
|
|
2412
|
-
|
|
2413
|
-
name: "tradeId",
|
|
2414
|
-
type: "bytes32"
|
|
2415
|
-
}
|
|
2416
|
-
],
|
|
2417
|
-
name: "getHandlerOf",
|
|
2418
|
-
outputs: [
|
|
2419
|
-
{
|
|
2672
|
+
indexed: true,
|
|
2420
2673
|
internalType: "address",
|
|
2421
2674
|
name: "handler",
|
|
2422
2675
|
type: "address"
|
|
2423
2676
|
},
|
|
2424
2677
|
{
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2678
|
+
indexed: false,
|
|
2679
|
+
internalType: "bytes",
|
|
2680
|
+
name: "fromNetwork",
|
|
2681
|
+
type: "bytes"
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
indexed: false,
|
|
2685
|
+
internalType: "bytes",
|
|
2686
|
+
name: "toNetwork",
|
|
2687
|
+
type: "bytes"
|
|
2428
2688
|
}
|
|
2429
2689
|
],
|
|
2430
|
-
|
|
2431
|
-
type: "
|
|
2690
|
+
name: "UpdatedRoute",
|
|
2691
|
+
type: "event"
|
|
2432
2692
|
},
|
|
2433
2693
|
{
|
|
2434
|
-
inputs: [
|
|
2435
|
-
|
|
2436
|
-
internalType: "bytes32",
|
|
2437
|
-
name: "tradeId",
|
|
2438
|
-
type: "bytes32"
|
|
2439
|
-
}
|
|
2440
|
-
],
|
|
2441
|
-
name: "getLastSignedPayment",
|
|
2694
|
+
inputs: [],
|
|
2695
|
+
name: "SIGNER",
|
|
2442
2696
|
outputs: [
|
|
2443
2697
|
{
|
|
2444
|
-
internalType: "
|
|
2698
|
+
internalType: "address",
|
|
2445
2699
|
name: "",
|
|
2446
|
-
type: "
|
|
2700
|
+
type: "address"
|
|
2447
2701
|
}
|
|
2448
2702
|
],
|
|
2449
2703
|
stateMutability: "view",
|
|
@@ -2452,273 +2706,191 @@ var _abi3 = [
|
|
|
2452
2706
|
{
|
|
2453
2707
|
inputs: [
|
|
2454
2708
|
{
|
|
2455
|
-
internalType: "
|
|
2456
|
-
name: "
|
|
2457
|
-
type: "
|
|
2458
|
-
}
|
|
2459
|
-
],
|
|
2460
|
-
name: "getLatestMPCInfo",
|
|
2461
|
-
outputs: [
|
|
2709
|
+
internalType: "bytes32",
|
|
2710
|
+
name: "tradeId",
|
|
2711
|
+
type: "bytes32"
|
|
2712
|
+
},
|
|
2462
2713
|
{
|
|
2463
2714
|
components: [
|
|
2464
2715
|
{
|
|
2465
|
-
internalType: "
|
|
2466
|
-
name: "
|
|
2467
|
-
type: "
|
|
2716
|
+
internalType: "uint256",
|
|
2717
|
+
name: "minAmountOut",
|
|
2718
|
+
type: "uint256"
|
|
2468
2719
|
},
|
|
2469
2720
|
{
|
|
2470
2721
|
internalType: "uint64",
|
|
2471
|
-
name: "
|
|
2722
|
+
name: "tradeTimeout",
|
|
2472
2723
|
type: "uint64"
|
|
2473
2724
|
},
|
|
2474
2725
|
{
|
|
2475
2726
|
internalType: "bytes",
|
|
2476
|
-
name: "
|
|
2477
|
-
type: "bytes"
|
|
2478
|
-
},
|
|
2479
|
-
{
|
|
2480
|
-
internalType: "bytes",
|
|
2481
|
-
name: "mpcAssetPubkey",
|
|
2727
|
+
name: "rfqInfoSignature",
|
|
2482
2728
|
type: "bytes"
|
|
2483
2729
|
}
|
|
2484
2730
|
],
|
|
2485
|
-
internalType: "struct ITypes.
|
|
2486
|
-
name: "",
|
|
2731
|
+
internalType: "struct ITypes.RFQInfo",
|
|
2732
|
+
name: "rfqInfo",
|
|
2487
2733
|
type: "tuple"
|
|
2488
2734
|
}
|
|
2489
2735
|
],
|
|
2490
|
-
|
|
2736
|
+
name: "abort",
|
|
2737
|
+
outputs: [],
|
|
2738
|
+
stateMutability: "nonpayable",
|
|
2491
2739
|
type: "function"
|
|
2492
2740
|
},
|
|
2493
2741
|
{
|
|
2494
2742
|
inputs: [
|
|
2495
|
-
{
|
|
2496
|
-
internalType: "bytes",
|
|
2497
|
-
name: "networkId",
|
|
2498
|
-
type: "bytes"
|
|
2499
|
-
},
|
|
2500
|
-
{
|
|
2501
|
-
internalType: "bytes",
|
|
2502
|
-
name: "pubkey",
|
|
2503
|
-
type: "bytes"
|
|
2504
|
-
}
|
|
2505
|
-
],
|
|
2506
|
-
name: "getMPCInfo",
|
|
2507
|
-
outputs: [
|
|
2508
2743
|
{
|
|
2509
2744
|
components: [
|
|
2510
2745
|
{
|
|
2511
|
-
internalType: "
|
|
2512
|
-
name: "
|
|
2513
|
-
type: "
|
|
2746
|
+
internalType: "bytes32[]",
|
|
2747
|
+
name: "tradeIds",
|
|
2748
|
+
type: "bytes32[]"
|
|
2514
2749
|
},
|
|
2515
2750
|
{
|
|
2516
2751
|
internalType: "uint64",
|
|
2517
|
-
name: "
|
|
2752
|
+
name: "signedAt",
|
|
2753
|
+
type: "uint64"
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
internalType: "uint64",
|
|
2757
|
+
name: "startIdx",
|
|
2518
2758
|
type: "uint64"
|
|
2519
2759
|
},
|
|
2520
2760
|
{
|
|
2521
2761
|
internalType: "bytes",
|
|
2522
|
-
name: "
|
|
2762
|
+
name: "paymentTxId",
|
|
2523
2763
|
type: "bytes"
|
|
2524
2764
|
},
|
|
2525
2765
|
{
|
|
2526
2766
|
internalType: "bytes",
|
|
2527
|
-
name: "
|
|
2767
|
+
name: "signature",
|
|
2528
2768
|
type: "bytes"
|
|
2529
2769
|
}
|
|
2530
2770
|
],
|
|
2531
|
-
internalType: "struct ITypes.
|
|
2532
|
-
name: "
|
|
2771
|
+
internalType: "struct ITypes.BundlePayment",
|
|
2772
|
+
name: "bundle",
|
|
2533
2773
|
type: "tuple"
|
|
2534
2774
|
}
|
|
2535
2775
|
],
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
{
|
|
2540
|
-
inputs: [],
|
|
2541
|
-
name: "getManagementOwner",
|
|
2542
|
-
outputs: [
|
|
2543
|
-
{
|
|
2544
|
-
internalType: "address",
|
|
2545
|
-
name: "",
|
|
2546
|
-
type: "address"
|
|
2547
|
-
}
|
|
2548
|
-
],
|
|
2549
|
-
stateMutability: "view",
|
|
2550
|
-
type: "function"
|
|
2551
|
-
},
|
|
2552
|
-
{
|
|
2553
|
-
inputs: [
|
|
2554
|
-
{
|
|
2555
|
-
internalType: "bytes",
|
|
2556
|
-
name: "fromChain",
|
|
2557
|
-
type: "bytes"
|
|
2558
|
-
},
|
|
2559
|
-
{
|
|
2560
|
-
internalType: "bytes",
|
|
2561
|
-
name: "toChain",
|
|
2562
|
-
type: "bytes"
|
|
2563
|
-
}
|
|
2564
|
-
],
|
|
2565
|
-
name: "getMaxAffiliateFeeRate",
|
|
2566
|
-
outputs: [
|
|
2567
|
-
{
|
|
2568
|
-
internalType: "uint256",
|
|
2569
|
-
name: "",
|
|
2570
|
-
type: "uint256"
|
|
2571
|
-
}
|
|
2572
|
-
],
|
|
2573
|
-
stateMutability: "view",
|
|
2574
|
-
type: "function"
|
|
2575
|
-
},
|
|
2576
|
-
{
|
|
2577
|
-
inputs: [],
|
|
2578
|
-
name: "getPFeeRate",
|
|
2579
|
-
outputs: [
|
|
2580
|
-
{
|
|
2581
|
-
internalType: "uint256",
|
|
2582
|
-
name: "",
|
|
2583
|
-
type: "uint256"
|
|
2584
|
-
}
|
|
2585
|
-
],
|
|
2586
|
-
stateMutability: "view",
|
|
2776
|
+
name: "bundlePayment",
|
|
2777
|
+
outputs: [],
|
|
2778
|
+
stateMutability: "nonpayable",
|
|
2587
2779
|
type: "function"
|
|
2588
2780
|
},
|
|
2589
2781
|
{
|
|
2590
2782
|
inputs: [
|
|
2591
2783
|
{
|
|
2592
2784
|
internalType: "bytes32",
|
|
2593
|
-
name: "
|
|
2785
|
+
name: "tradeId",
|
|
2594
2786
|
type: "bytes32"
|
|
2595
2787
|
},
|
|
2596
2788
|
{
|
|
2597
|
-
internalType: "
|
|
2598
|
-
name: "
|
|
2599
|
-
type: "
|
|
2789
|
+
internalType: "bytes",
|
|
2790
|
+
name: "signature",
|
|
2791
|
+
type: "bytes"
|
|
2600
2792
|
},
|
|
2601
2793
|
{
|
|
2602
|
-
internalType: "
|
|
2603
|
-
name: "
|
|
2604
|
-
type: "
|
|
2605
|
-
}
|
|
2606
|
-
],
|
|
2607
|
-
name: "getPMMAccounts",
|
|
2608
|
-
outputs: [
|
|
2609
|
-
{
|
|
2610
|
-
internalType: "address[]",
|
|
2611
|
-
name: "list",
|
|
2612
|
-
type: "address[]"
|
|
2613
|
-
}
|
|
2614
|
-
],
|
|
2615
|
-
stateMutability: "view",
|
|
2616
|
-
type: "function"
|
|
2617
|
-
},
|
|
2618
|
-
{
|
|
2619
|
-
inputs: [
|
|
2620
|
-
{
|
|
2621
|
-
internalType: "bytes32",
|
|
2622
|
-
name: "tradeId",
|
|
2623
|
-
type: "bytes32"
|
|
2794
|
+
internalType: "bytes[]",
|
|
2795
|
+
name: "depositFromList",
|
|
2796
|
+
type: "bytes[]"
|
|
2624
2797
|
}
|
|
2625
2798
|
],
|
|
2626
|
-
name: "
|
|
2627
|
-
outputs: [
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
{
|
|
2643
|
-
internalType: "bytes",
|
|
2644
|
-
name: "rfqInfoSignature",
|
|
2645
|
-
type: "bytes"
|
|
2646
|
-
}
|
|
2647
|
-
],
|
|
2648
|
-
internalType: "struct ITypes.RFQInfo",
|
|
2649
|
-
name: "rfqInfo",
|
|
2650
|
-
type: "tuple"
|
|
2651
|
-
},
|
|
2652
|
-
{
|
|
2653
|
-
components: [
|
|
2654
|
-
{
|
|
2655
|
-
internalType: "uint256",
|
|
2656
|
-
name: "amountOut",
|
|
2657
|
-
type: "uint256"
|
|
2658
|
-
},
|
|
2659
|
-
{
|
|
2660
|
-
internalType: "bytes32",
|
|
2661
|
-
name: "selectedPMMId",
|
|
2662
|
-
type: "bytes32"
|
|
2663
|
-
},
|
|
2664
|
-
{
|
|
2665
|
-
internalType: "bytes[2]",
|
|
2666
|
-
name: "info",
|
|
2667
|
-
type: "bytes[2]"
|
|
2668
|
-
},
|
|
2669
|
-
{
|
|
2670
|
-
internalType: "uint64",
|
|
2671
|
-
name: "sigExpiry",
|
|
2672
|
-
type: "uint64"
|
|
2673
|
-
}
|
|
2674
|
-
],
|
|
2675
|
-
internalType: "struct ITypes.SelectedPMMInfo",
|
|
2676
|
-
name: "pmmInfo",
|
|
2677
|
-
type: "tuple"
|
|
2678
|
-
}
|
|
2679
|
-
],
|
|
2680
|
-
internalType: "struct ITypes.PMMSelection",
|
|
2681
|
-
name: "",
|
|
2682
|
-
type: "tuple"
|
|
2799
|
+
name: "confirmDeposit",
|
|
2800
|
+
outputs: [],
|
|
2801
|
+
stateMutability: "nonpayable",
|
|
2802
|
+
type: "function"
|
|
2803
|
+
},
|
|
2804
|
+
{
|
|
2805
|
+
inputs: [
|
|
2806
|
+
{
|
|
2807
|
+
internalType: "bytes32",
|
|
2808
|
+
name: "tradeId",
|
|
2809
|
+
type: "bytes32"
|
|
2810
|
+
},
|
|
2811
|
+
{
|
|
2812
|
+
internalType: "bytes",
|
|
2813
|
+
name: "signature",
|
|
2814
|
+
type: "bytes"
|
|
2683
2815
|
}
|
|
2684
2816
|
],
|
|
2685
|
-
|
|
2817
|
+
name: "confirmPayment",
|
|
2818
|
+
outputs: [],
|
|
2819
|
+
stateMutability: "nonpayable",
|
|
2686
2820
|
type: "function"
|
|
2687
2821
|
},
|
|
2688
2822
|
{
|
|
2689
2823
|
inputs: [
|
|
2690
2824
|
{
|
|
2691
|
-
internalType: "
|
|
2692
|
-
name: "
|
|
2693
|
-
type: "
|
|
2825
|
+
internalType: "bytes32",
|
|
2826
|
+
name: "tradeId",
|
|
2827
|
+
type: "bytes32"
|
|
2694
2828
|
},
|
|
2695
2829
|
{
|
|
2696
|
-
internalType: "
|
|
2697
|
-
name: "
|
|
2698
|
-
type: "
|
|
2699
|
-
}
|
|
2830
|
+
internalType: "bytes",
|
|
2831
|
+
name: "signature",
|
|
2832
|
+
type: "bytes"
|
|
2833
|
+
}
|
|
2834
|
+
],
|
|
2835
|
+
name: "confirmPresign",
|
|
2836
|
+
outputs: [],
|
|
2837
|
+
stateMutability: "nonpayable",
|
|
2838
|
+
type: "function"
|
|
2839
|
+
},
|
|
2840
|
+
{
|
|
2841
|
+
inputs: [
|
|
2700
2842
|
{
|
|
2701
|
-
internalType: "
|
|
2702
|
-
name: "
|
|
2703
|
-
type: "
|
|
2843
|
+
internalType: "bytes32",
|
|
2844
|
+
name: "tradeId",
|
|
2845
|
+
type: "bytes32"
|
|
2704
2846
|
},
|
|
2705
2847
|
{
|
|
2706
2848
|
internalType: "bytes",
|
|
2707
|
-
name: "
|
|
2849
|
+
name: "releaseTxId",
|
|
2708
2850
|
type: "bytes"
|
|
2709
2851
|
},
|
|
2710
2852
|
{
|
|
2711
2853
|
internalType: "bytes",
|
|
2712
|
-
name: "
|
|
2854
|
+
name: "signature",
|
|
2713
2855
|
type: "bytes"
|
|
2714
2856
|
}
|
|
2715
2857
|
],
|
|
2716
|
-
name: "
|
|
2858
|
+
name: "confirmSettlement",
|
|
2859
|
+
outputs: [],
|
|
2860
|
+
stateMutability: "nonpayable",
|
|
2861
|
+
type: "function"
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
inputs: [
|
|
2865
|
+
{
|
|
2866
|
+
internalType: "bytes32",
|
|
2867
|
+
name: "tradeId",
|
|
2868
|
+
type: "bytes32"
|
|
2869
|
+
}
|
|
2870
|
+
],
|
|
2871
|
+
name: "getAffiliateInfo",
|
|
2717
2872
|
outputs: [
|
|
2718
2873
|
{
|
|
2719
|
-
|
|
2874
|
+
components: [
|
|
2875
|
+
{
|
|
2876
|
+
internalType: "uint256",
|
|
2877
|
+
name: "aggregatedValue",
|
|
2878
|
+
type: "uint256"
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
internalType: "string",
|
|
2882
|
+
name: "schema",
|
|
2883
|
+
type: "string"
|
|
2884
|
+
},
|
|
2885
|
+
{
|
|
2886
|
+
internalType: "bytes",
|
|
2887
|
+
name: "data",
|
|
2888
|
+
type: "bytes"
|
|
2889
|
+
}
|
|
2890
|
+
],
|
|
2891
|
+
internalType: "struct ITypes.Affiliate",
|
|
2720
2892
|
name: "",
|
|
2721
|
-
type: "
|
|
2893
|
+
type: "tuple"
|
|
2722
2894
|
}
|
|
2723
2895
|
],
|
|
2724
2896
|
stateMutability: "view",
|
|
@@ -2727,40 +2899,51 @@ var _abi3 = [
|
|
|
2727
2899
|
{
|
|
2728
2900
|
inputs: [
|
|
2729
2901
|
{
|
|
2730
|
-
internalType: "
|
|
2731
|
-
name: "
|
|
2732
|
-
type: "
|
|
2733
|
-
},
|
|
2734
|
-
{
|
|
2735
|
-
internalType: "bytes",
|
|
2736
|
-
name: "fromChain",
|
|
2737
|
-
type: "bytes"
|
|
2738
|
-
},
|
|
2739
|
-
{
|
|
2740
|
-
internalType: "bytes",
|
|
2741
|
-
name: "toChain",
|
|
2742
|
-
type: "bytes"
|
|
2902
|
+
internalType: "address",
|
|
2903
|
+
name: "handler",
|
|
2904
|
+
type: "address"
|
|
2743
2905
|
}
|
|
2744
2906
|
],
|
|
2745
|
-
name: "
|
|
2907
|
+
name: "getCurrentEpoch",
|
|
2746
2908
|
outputs: [
|
|
2747
2909
|
{
|
|
2748
|
-
internalType: "
|
|
2910
|
+
internalType: "uint64",
|
|
2749
2911
|
name: "",
|
|
2750
|
-
type: "
|
|
2912
|
+
type: "uint64"
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
internalType: "uint64",
|
|
2916
|
+
name: "",
|
|
2917
|
+
type: "uint64"
|
|
2918
|
+
},
|
|
2919
|
+
{
|
|
2920
|
+
internalType: "uint64",
|
|
2921
|
+
name: "",
|
|
2922
|
+
type: "uint64"
|
|
2751
2923
|
}
|
|
2752
2924
|
],
|
|
2753
2925
|
stateMutability: "view",
|
|
2754
2926
|
type: "function"
|
|
2755
2927
|
},
|
|
2756
2928
|
{
|
|
2757
|
-
inputs: [
|
|
2758
|
-
|
|
2929
|
+
inputs: [
|
|
2930
|
+
{
|
|
2931
|
+
internalType: "bytes32",
|
|
2932
|
+
name: "tradeId",
|
|
2933
|
+
type: "bytes32"
|
|
2934
|
+
}
|
|
2935
|
+
],
|
|
2936
|
+
name: "getCurrentStage",
|
|
2759
2937
|
outputs: [
|
|
2760
2938
|
{
|
|
2761
2939
|
internalType: "uint256",
|
|
2762
|
-
name: "",
|
|
2940
|
+
name: "stage",
|
|
2763
2941
|
type: "uint256"
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
internalType: "string",
|
|
2945
|
+
name: "swapType",
|
|
2946
|
+
type: "string"
|
|
2764
2947
|
}
|
|
2765
2948
|
],
|
|
2766
2949
|
stateMutability: "view",
|
|
@@ -2774,22 +2957,22 @@ var _abi3 = [
|
|
|
2774
2957
|
type: "bytes32"
|
|
2775
2958
|
}
|
|
2776
2959
|
],
|
|
2777
|
-
name: "
|
|
2960
|
+
name: "getFailureInfo",
|
|
2778
2961
|
outputs: [
|
|
2779
2962
|
{
|
|
2780
2963
|
components: [
|
|
2781
2964
|
{
|
|
2782
|
-
internalType: "
|
|
2783
|
-
name: "
|
|
2784
|
-
type: "
|
|
2965
|
+
internalType: "uint256",
|
|
2966
|
+
name: "stage",
|
|
2967
|
+
type: "uint256"
|
|
2785
2968
|
},
|
|
2786
2969
|
{
|
|
2787
|
-
internalType: "bytes
|
|
2788
|
-
name: "
|
|
2789
|
-
type: "bytes
|
|
2970
|
+
internalType: "bytes",
|
|
2971
|
+
name: "msgError",
|
|
2972
|
+
type: "bytes"
|
|
2790
2973
|
}
|
|
2791
2974
|
],
|
|
2792
|
-
internalType: "struct ITypes.
|
|
2975
|
+
internalType: "struct ITypes.FailureDetails",
|
|
2793
2976
|
name: "",
|
|
2794
2977
|
type: "tuple"
|
|
2795
2978
|
}
|
|
@@ -2805,29 +2988,39 @@ var _abi3 = [
|
|
|
2805
2988
|
type: "bytes32"
|
|
2806
2989
|
}
|
|
2807
2990
|
],
|
|
2808
|
-
name: "
|
|
2991
|
+
name: "getFeeDetails",
|
|
2809
2992
|
outputs: [
|
|
2810
2993
|
{
|
|
2811
2994
|
components: [
|
|
2812
2995
|
{
|
|
2813
|
-
internalType: "
|
|
2814
|
-
name: "
|
|
2815
|
-
type: "
|
|
2996
|
+
internalType: "uint256",
|
|
2997
|
+
name: "totalAmount",
|
|
2998
|
+
type: "uint256"
|
|
2816
2999
|
},
|
|
2817
3000
|
{
|
|
2818
|
-
internalType: "
|
|
2819
|
-
name: "
|
|
2820
|
-
type: "
|
|
3001
|
+
internalType: "uint256",
|
|
3002
|
+
name: "pFeeAmount",
|
|
3003
|
+
type: "uint256"
|
|
2821
3004
|
},
|
|
2822
3005
|
{
|
|
2823
|
-
internalType: "
|
|
2824
|
-
name: "
|
|
2825
|
-
type: "
|
|
3006
|
+
internalType: "uint256",
|
|
3007
|
+
name: "aFeeAmount",
|
|
3008
|
+
type: "uint256"
|
|
3009
|
+
},
|
|
3010
|
+
{
|
|
3011
|
+
internalType: "uint128",
|
|
3012
|
+
name: "pFeeRate",
|
|
3013
|
+
type: "uint128"
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
internalType: "uint128",
|
|
3017
|
+
name: "aFeeRate",
|
|
3018
|
+
type: "uint128"
|
|
2826
3019
|
}
|
|
2827
3020
|
],
|
|
2828
|
-
internalType: "struct ITypes.
|
|
3021
|
+
internalType: "struct ITypes.FeeDetails",
|
|
2829
3022
|
name: "",
|
|
2830
|
-
type: "tuple
|
|
3023
|
+
type: "tuple"
|
|
2831
3024
|
}
|
|
2832
3025
|
],
|
|
2833
3026
|
stateMutability: "view",
|
|
@@ -2836,34 +3029,75 @@ var _abi3 = [
|
|
|
2836
3029
|
{
|
|
2837
3030
|
inputs: [
|
|
2838
3031
|
{
|
|
2839
|
-
internalType: "
|
|
2840
|
-
name: "
|
|
2841
|
-
type: "
|
|
3032
|
+
internalType: "bytes",
|
|
3033
|
+
name: "fromNetwork",
|
|
3034
|
+
type: "bytes"
|
|
2842
3035
|
},
|
|
2843
3036
|
{
|
|
2844
|
-
internalType: "
|
|
2845
|
-
name: "
|
|
2846
|
-
type: "
|
|
3037
|
+
internalType: "bytes",
|
|
3038
|
+
name: "toNetwork",
|
|
3039
|
+
type: "bytes"
|
|
2847
3040
|
}
|
|
2848
3041
|
],
|
|
2849
|
-
name: "
|
|
3042
|
+
name: "getHandler",
|
|
2850
3043
|
outputs: [
|
|
2851
3044
|
{
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
3045
|
+
internalType: "address",
|
|
3046
|
+
name: "handler",
|
|
3047
|
+
type: "address"
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
internalType: "string",
|
|
3051
|
+
name: "handlerType",
|
|
3052
|
+
type: "string"
|
|
3053
|
+
}
|
|
3054
|
+
],
|
|
3055
|
+
stateMutability: "view",
|
|
3056
|
+
type: "function"
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
inputs: [
|
|
3060
|
+
{
|
|
3061
|
+
internalType: "bytes32",
|
|
3062
|
+
name: "tradeId",
|
|
3063
|
+
type: "bytes32"
|
|
3064
|
+
}
|
|
3065
|
+
],
|
|
3066
|
+
name: "getHandlerOf",
|
|
3067
|
+
outputs: [
|
|
3068
|
+
{
|
|
3069
|
+
internalType: "address",
|
|
3070
|
+
name: "handler",
|
|
3071
|
+
type: "address"
|
|
3072
|
+
},
|
|
3073
|
+
{
|
|
3074
|
+
internalType: "string",
|
|
3075
|
+
name: "handlerType",
|
|
3076
|
+
type: "string"
|
|
3077
|
+
}
|
|
3078
|
+
],
|
|
3079
|
+
stateMutability: "view",
|
|
3080
|
+
type: "function"
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
inputs: [
|
|
3084
|
+
{
|
|
3085
|
+
internalType: "bytes",
|
|
3086
|
+
name: "fromNetwork",
|
|
3087
|
+
type: "bytes"
|
|
3088
|
+
},
|
|
3089
|
+
{
|
|
3090
|
+
internalType: "bytes",
|
|
3091
|
+
name: "toNetwork",
|
|
3092
|
+
type: "bytes"
|
|
3093
|
+
}
|
|
3094
|
+
],
|
|
3095
|
+
name: "getHistoryCount",
|
|
3096
|
+
outputs: [
|
|
3097
|
+
{
|
|
3098
|
+
internalType: "uint256",
|
|
3099
|
+
name: "",
|
|
3100
|
+
type: "uint256"
|
|
2867
3101
|
}
|
|
2868
3102
|
],
|
|
2869
3103
|
stateMutability: "view",
|
|
@@ -2877,112 +3111,61 @@ var _abi3 = [
|
|
|
2877
3111
|
type: "bytes32"
|
|
2878
3112
|
}
|
|
2879
3113
|
],
|
|
2880
|
-
name: "
|
|
3114
|
+
name: "getPMMSelection",
|
|
2881
3115
|
outputs: [
|
|
2882
3116
|
{
|
|
2883
3117
|
components: [
|
|
2884
|
-
{
|
|
2885
|
-
internalType: "uint256",
|
|
2886
|
-
name: "sessionId",
|
|
2887
|
-
type: "uint256"
|
|
2888
|
-
},
|
|
2889
3118
|
{
|
|
2890
3119
|
components: [
|
|
2891
3120
|
{
|
|
2892
3121
|
internalType: "uint256",
|
|
2893
|
-
name: "
|
|
3122
|
+
name: "minAmountOut",
|
|
2894
3123
|
type: "uint256"
|
|
2895
3124
|
},
|
|
2896
3125
|
{
|
|
2897
|
-
internalType: "
|
|
2898
|
-
name: "
|
|
2899
|
-
type: "
|
|
3126
|
+
internalType: "uint64",
|
|
3127
|
+
name: "tradeTimeout",
|
|
3128
|
+
type: "uint64"
|
|
2900
3129
|
},
|
|
2901
3130
|
{
|
|
2902
|
-
internalType: "bytes
|
|
2903
|
-
name: "
|
|
2904
|
-
type: "bytes
|
|
3131
|
+
internalType: "bytes",
|
|
3132
|
+
name: "rfqInfoSignature",
|
|
3133
|
+
type: "bytes"
|
|
2905
3134
|
}
|
|
2906
3135
|
],
|
|
2907
|
-
internalType: "struct ITypes.
|
|
2908
|
-
name: "
|
|
3136
|
+
internalType: "struct ITypes.RFQInfo",
|
|
3137
|
+
name: "rfqInfo",
|
|
2909
3138
|
type: "tuple"
|
|
2910
3139
|
},
|
|
2911
3140
|
{
|
|
2912
3141
|
components: [
|
|
2913
3142
|
{
|
|
2914
|
-
internalType: "
|
|
2915
|
-
name: "
|
|
2916
|
-
type: "
|
|
3143
|
+
internalType: "uint256",
|
|
3144
|
+
name: "amountOut",
|
|
3145
|
+
type: "uint256"
|
|
2917
3146
|
},
|
|
2918
3147
|
{
|
|
2919
|
-
internalType: "
|
|
2920
|
-
name: "
|
|
2921
|
-
type: "
|
|
3148
|
+
internalType: "bytes32",
|
|
3149
|
+
name: "selectedPMMId",
|
|
3150
|
+
type: "bytes32"
|
|
3151
|
+
},
|
|
3152
|
+
{
|
|
3153
|
+
internalType: "bytes[2]",
|
|
3154
|
+
name: "info",
|
|
3155
|
+
type: "bytes[2]"
|
|
2922
3156
|
},
|
|
2923
3157
|
{
|
|
2924
3158
|
internalType: "uint64",
|
|
2925
|
-
name: "
|
|
3159
|
+
name: "sigExpiry",
|
|
2926
3160
|
type: "uint64"
|
|
2927
3161
|
}
|
|
2928
3162
|
],
|
|
2929
|
-
internalType: "struct ITypes.
|
|
2930
|
-
name: "
|
|
3163
|
+
internalType: "struct ITypes.SelectedPMMInfo",
|
|
3164
|
+
name: "pmmInfo",
|
|
2931
3165
|
type: "tuple"
|
|
2932
3166
|
}
|
|
2933
3167
|
],
|
|
2934
|
-
internalType: "struct ITypes.
|
|
2935
|
-
name: "",
|
|
2936
|
-
type: "tuple"
|
|
2937
|
-
}
|
|
2938
|
-
],
|
|
2939
|
-
stateMutability: "view",
|
|
2940
|
-
type: "function"
|
|
2941
|
-
},
|
|
2942
|
-
{
|
|
2943
|
-
inputs: [
|
|
2944
|
-
{
|
|
2945
|
-
internalType: "bytes32",
|
|
2946
|
-
name: "tradeId",
|
|
2947
|
-
type: "bytes32"
|
|
2948
|
-
}
|
|
2949
|
-
],
|
|
2950
|
-
name: "getTradeFinalization",
|
|
2951
|
-
outputs: [
|
|
2952
|
-
{
|
|
2953
|
-
components: [
|
|
2954
|
-
{
|
|
2955
|
-
internalType: "bytes32",
|
|
2956
|
-
name: "bundlerHash",
|
|
2957
|
-
type: "bytes32"
|
|
2958
|
-
},
|
|
2959
|
-
{
|
|
2960
|
-
internalType: "uint256",
|
|
2961
|
-
name: "index",
|
|
2962
|
-
type: "uint256"
|
|
2963
|
-
},
|
|
2964
|
-
{
|
|
2965
|
-
internalType: "bytes",
|
|
2966
|
-
name: "paymentTxId",
|
|
2967
|
-
type: "bytes"
|
|
2968
|
-
},
|
|
2969
|
-
{
|
|
2970
|
-
internalType: "bytes",
|
|
2971
|
-
name: "releaseTxId",
|
|
2972
|
-
type: "bytes"
|
|
2973
|
-
},
|
|
2974
|
-
{
|
|
2975
|
-
internalType: "bytes",
|
|
2976
|
-
name: "refundTxId",
|
|
2977
|
-
type: "bytes"
|
|
2978
|
-
},
|
|
2979
|
-
{
|
|
2980
|
-
internalType: "bool",
|
|
2981
|
-
name: "isConfirmed",
|
|
2982
|
-
type: "bool"
|
|
2983
|
-
}
|
|
2984
|
-
],
|
|
2985
|
-
internalType: "struct ITypes.TradeFinalization",
|
|
3168
|
+
internalType: "struct ITypes.PMMSelection",
|
|
2986
3169
|
name: "",
|
|
2987
3170
|
type: "tuple"
|
|
2988
3171
|
}
|
|
@@ -2994,16 +3177,31 @@ var _abi3 = [
|
|
|
2994
3177
|
inputs: [
|
|
2995
3178
|
{
|
|
2996
3179
|
internalType: "address",
|
|
2997
|
-
name: "
|
|
3180
|
+
name: "handler",
|
|
2998
3181
|
type: "address"
|
|
3182
|
+
},
|
|
3183
|
+
{
|
|
3184
|
+
internalType: "uint256",
|
|
3185
|
+
name: "epochNo",
|
|
3186
|
+
type: "uint256"
|
|
3187
|
+
},
|
|
3188
|
+
{
|
|
3189
|
+
internalType: "uint256",
|
|
3190
|
+
name: "fromIdx",
|
|
3191
|
+
type: "uint256"
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
internalType: "uint256",
|
|
3195
|
+
name: "toIdx",
|
|
3196
|
+
type: "uint256"
|
|
2999
3197
|
}
|
|
3000
3198
|
],
|
|
3001
|
-
name: "
|
|
3199
|
+
name: "getPendingTrades",
|
|
3002
3200
|
outputs: [
|
|
3003
3201
|
{
|
|
3004
|
-
internalType: "
|
|
3202
|
+
internalType: "bytes32[]",
|
|
3005
3203
|
name: "",
|
|
3006
|
-
type: "
|
|
3204
|
+
type: "bytes32[]"
|
|
3007
3205
|
}
|
|
3008
3206
|
],
|
|
3009
3207
|
stateMutability: "view",
|
|
@@ -3013,16 +3211,21 @@ var _abi3 = [
|
|
|
3013
3211
|
inputs: [
|
|
3014
3212
|
{
|
|
3015
3213
|
internalType: "address",
|
|
3016
|
-
name: "
|
|
3214
|
+
name: "handler",
|
|
3017
3215
|
type: "address"
|
|
3216
|
+
},
|
|
3217
|
+
{
|
|
3218
|
+
internalType: "uint256",
|
|
3219
|
+
name: "epochNo",
|
|
3220
|
+
type: "uint256"
|
|
3018
3221
|
}
|
|
3019
3222
|
],
|
|
3020
|
-
name: "
|
|
3223
|
+
name: "getPendingTradesCount",
|
|
3021
3224
|
outputs: [
|
|
3022
3225
|
{
|
|
3023
|
-
internalType: "
|
|
3226
|
+
internalType: "uint256",
|
|
3024
3227
|
name: "",
|
|
3025
|
-
type: "
|
|
3228
|
+
type: "uint256"
|
|
3026
3229
|
}
|
|
3027
3230
|
],
|
|
3028
3231
|
stateMutability: "view",
|
|
@@ -3031,17 +3234,29 @@ var _abi3 = [
|
|
|
3031
3234
|
{
|
|
3032
3235
|
inputs: [
|
|
3033
3236
|
{
|
|
3034
|
-
internalType: "
|
|
3035
|
-
name: "
|
|
3036
|
-
type: "
|
|
3237
|
+
internalType: "bytes32",
|
|
3238
|
+
name: "tradeId",
|
|
3239
|
+
type: "bytes32"
|
|
3037
3240
|
}
|
|
3038
3241
|
],
|
|
3039
|
-
name: "
|
|
3242
|
+
name: "getRefundPresign",
|
|
3040
3243
|
outputs: [
|
|
3041
3244
|
{
|
|
3042
|
-
|
|
3245
|
+
components: [
|
|
3246
|
+
{
|
|
3247
|
+
internalType: "bytes",
|
|
3248
|
+
name: "refundAddress",
|
|
3249
|
+
type: "bytes"
|
|
3250
|
+
},
|
|
3251
|
+
{
|
|
3252
|
+
internalType: "bytes[]",
|
|
3253
|
+
name: "presigns",
|
|
3254
|
+
type: "bytes[]"
|
|
3255
|
+
}
|
|
3256
|
+
],
|
|
3257
|
+
internalType: "struct ITypes.RefundPresign",
|
|
3043
3258
|
name: "",
|
|
3044
|
-
type: "
|
|
3259
|
+
type: "tuple"
|
|
3045
3260
|
}
|
|
3046
3261
|
],
|
|
3047
3262
|
stateMutability: "view",
|
|
@@ -3049,18 +3264,33 @@ var _abi3 = [
|
|
|
3049
3264
|
},
|
|
3050
3265
|
{
|
|
3051
3266
|
inputs: [
|
|
3267
|
+
{
|
|
3268
|
+
internalType: "uint256",
|
|
3269
|
+
name: "fromIdx",
|
|
3270
|
+
type: "uint256"
|
|
3271
|
+
},
|
|
3272
|
+
{
|
|
3273
|
+
internalType: "uint256",
|
|
3274
|
+
name: "toIdx",
|
|
3275
|
+
type: "uint256"
|
|
3276
|
+
},
|
|
3052
3277
|
{
|
|
3053
3278
|
internalType: "bytes",
|
|
3054
|
-
name: "
|
|
3279
|
+
name: "fromNetwork",
|
|
3280
|
+
type: "bytes"
|
|
3281
|
+
},
|
|
3282
|
+
{
|
|
3283
|
+
internalType: "bytes",
|
|
3284
|
+
name: "toNetwork",
|
|
3055
3285
|
type: "bytes"
|
|
3056
3286
|
}
|
|
3057
3287
|
],
|
|
3058
|
-
name: "
|
|
3288
|
+
name: "getRegisteredHandlers",
|
|
3059
3289
|
outputs: [
|
|
3060
3290
|
{
|
|
3061
|
-
internalType: "
|
|
3062
|
-
name: "",
|
|
3063
|
-
type: "
|
|
3291
|
+
internalType: "address[]",
|
|
3292
|
+
name: "list",
|
|
3293
|
+
type: "address[]"
|
|
3064
3294
|
}
|
|
3065
3295
|
],
|
|
3066
3296
|
stateMutability: "view",
|
|
@@ -3070,16 +3300,33 @@ var _abi3 = [
|
|
|
3070
3300
|
inputs: [
|
|
3071
3301
|
{
|
|
3072
3302
|
internalType: "bytes32",
|
|
3073
|
-
name: "
|
|
3303
|
+
name: "tradeId",
|
|
3074
3304
|
type: "bytes32"
|
|
3075
3305
|
}
|
|
3076
3306
|
],
|
|
3077
|
-
name: "
|
|
3307
|
+
name: "getSettlementPresigns",
|
|
3078
3308
|
outputs: [
|
|
3079
3309
|
{
|
|
3080
|
-
|
|
3310
|
+
components: [
|
|
3311
|
+
{
|
|
3312
|
+
internalType: "bytes32",
|
|
3313
|
+
name: "pmmId",
|
|
3314
|
+
type: "bytes32"
|
|
3315
|
+
},
|
|
3316
|
+
{
|
|
3317
|
+
internalType: "bytes",
|
|
3318
|
+
name: "pmmRecvAddress",
|
|
3319
|
+
type: "bytes"
|
|
3320
|
+
},
|
|
3321
|
+
{
|
|
3322
|
+
internalType: "bytes[]",
|
|
3323
|
+
name: "presigns",
|
|
3324
|
+
type: "bytes[]"
|
|
3325
|
+
}
|
|
3326
|
+
],
|
|
3327
|
+
internalType: "struct ITypes.SettlementPresign[]",
|
|
3081
3328
|
name: "",
|
|
3082
|
-
type: "
|
|
3329
|
+
type: "tuple[]"
|
|
3083
3330
|
}
|
|
3084
3331
|
],
|
|
3085
3332
|
stateMutability: "view",
|
|
@@ -3089,21 +3336,16 @@ var _abi3 = [
|
|
|
3089
3336
|
inputs: [
|
|
3090
3337
|
{
|
|
3091
3338
|
internalType: "bytes32",
|
|
3092
|
-
name: "
|
|
3339
|
+
name: "tradeId",
|
|
3093
3340
|
type: "bytes32"
|
|
3094
|
-
},
|
|
3095
|
-
{
|
|
3096
|
-
internalType: "address",
|
|
3097
|
-
name: "account",
|
|
3098
|
-
type: "address"
|
|
3099
3341
|
}
|
|
3100
3342
|
],
|
|
3101
|
-
name: "
|
|
3343
|
+
name: "getSolver",
|
|
3102
3344
|
outputs: [
|
|
3103
3345
|
{
|
|
3104
|
-
internalType: "
|
|
3346
|
+
internalType: "address",
|
|
3105
3347
|
name: "",
|
|
3106
|
-
type: "
|
|
3348
|
+
type: "address"
|
|
3107
3349
|
}
|
|
3108
3350
|
],
|
|
3109
3351
|
stateMutability: "view",
|
|
@@ -3112,22 +3354,68 @@ var _abi3 = [
|
|
|
3112
3354
|
{
|
|
3113
3355
|
inputs: [
|
|
3114
3356
|
{
|
|
3115
|
-
internalType: "
|
|
3116
|
-
name: "
|
|
3117
|
-
type: "
|
|
3118
|
-
},
|
|
3119
|
-
{
|
|
3120
|
-
internalType: "bytes",
|
|
3121
|
-
name: "pubkey",
|
|
3122
|
-
type: "bytes"
|
|
3357
|
+
internalType: "bytes32",
|
|
3358
|
+
name: "tradeId",
|
|
3359
|
+
type: "bytes32"
|
|
3123
3360
|
}
|
|
3124
3361
|
],
|
|
3125
|
-
name: "
|
|
3362
|
+
name: "getTradeData",
|
|
3126
3363
|
outputs: [
|
|
3127
3364
|
{
|
|
3128
|
-
|
|
3365
|
+
components: [
|
|
3366
|
+
{
|
|
3367
|
+
internalType: "uint256",
|
|
3368
|
+
name: "sessionId",
|
|
3369
|
+
type: "uint256"
|
|
3370
|
+
},
|
|
3371
|
+
{
|
|
3372
|
+
components: [
|
|
3373
|
+
{
|
|
3374
|
+
internalType: "uint256",
|
|
3375
|
+
name: "amountIn",
|
|
3376
|
+
type: "uint256"
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
internalType: "bytes[3]",
|
|
3380
|
+
name: "fromChain",
|
|
3381
|
+
type: "bytes[3]"
|
|
3382
|
+
},
|
|
3383
|
+
{
|
|
3384
|
+
internalType: "bytes[3]",
|
|
3385
|
+
name: "toChain",
|
|
3386
|
+
type: "bytes[3]"
|
|
3387
|
+
}
|
|
3388
|
+
],
|
|
3389
|
+
internalType: "struct ITypes.TradeInfo",
|
|
3390
|
+
name: "tradeInfo",
|
|
3391
|
+
type: "tuple"
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
components: [
|
|
3395
|
+
{
|
|
3396
|
+
internalType: "bytes[5]",
|
|
3397
|
+
name: "depositInfo",
|
|
3398
|
+
type: "bytes[5]"
|
|
3399
|
+
},
|
|
3400
|
+
{
|
|
3401
|
+
internalType: "address",
|
|
3402
|
+
name: "userEphemeralL2Address",
|
|
3403
|
+
type: "address"
|
|
3404
|
+
},
|
|
3405
|
+
{
|
|
3406
|
+
internalType: "uint64",
|
|
3407
|
+
name: "scriptTimeout",
|
|
3408
|
+
type: "uint64"
|
|
3409
|
+
}
|
|
3410
|
+
],
|
|
3411
|
+
internalType: "struct ITypes.ScriptInfo",
|
|
3412
|
+
name: "scriptInfo",
|
|
3413
|
+
type: "tuple"
|
|
3414
|
+
}
|
|
3415
|
+
],
|
|
3416
|
+
internalType: "struct ITypes.TradeData",
|
|
3129
3417
|
name: "",
|
|
3130
|
-
type: "
|
|
3418
|
+
type: "tuple"
|
|
3131
3419
|
}
|
|
3132
3420
|
],
|
|
3133
3421
|
stateMutability: "view",
|
|
@@ -3136,22 +3424,49 @@ var _abi3 = [
|
|
|
3136
3424
|
{
|
|
3137
3425
|
inputs: [
|
|
3138
3426
|
{
|
|
3139
|
-
internalType: "
|
|
3140
|
-
name: "
|
|
3141
|
-
type: "
|
|
3142
|
-
},
|
|
3143
|
-
{
|
|
3144
|
-
internalType: "bytes",
|
|
3145
|
-
name: "tokenId",
|
|
3146
|
-
type: "bytes"
|
|
3427
|
+
internalType: "bytes32",
|
|
3428
|
+
name: "tradeId",
|
|
3429
|
+
type: "bytes32"
|
|
3147
3430
|
}
|
|
3148
3431
|
],
|
|
3149
|
-
name: "
|
|
3432
|
+
name: "getTradeFinalization",
|
|
3150
3433
|
outputs: [
|
|
3151
3434
|
{
|
|
3152
|
-
|
|
3435
|
+
components: [
|
|
3436
|
+
{
|
|
3437
|
+
internalType: "bytes32",
|
|
3438
|
+
name: "bundlerHash",
|
|
3439
|
+
type: "bytes32"
|
|
3440
|
+
},
|
|
3441
|
+
{
|
|
3442
|
+
internalType: "uint256",
|
|
3443
|
+
name: "index",
|
|
3444
|
+
type: "uint256"
|
|
3445
|
+
},
|
|
3446
|
+
{
|
|
3447
|
+
internalType: "bytes",
|
|
3448
|
+
name: "paymentTxId",
|
|
3449
|
+
type: "bytes"
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
internalType: "bytes",
|
|
3453
|
+
name: "releaseTxId",
|
|
3454
|
+
type: "bytes"
|
|
3455
|
+
},
|
|
3456
|
+
{
|
|
3457
|
+
internalType: "bytes",
|
|
3458
|
+
name: "refundTxId",
|
|
3459
|
+
type: "bytes"
|
|
3460
|
+
},
|
|
3461
|
+
{
|
|
3462
|
+
internalType: "bool",
|
|
3463
|
+
name: "isConfirmed",
|
|
3464
|
+
type: "bool"
|
|
3465
|
+
}
|
|
3466
|
+
],
|
|
3467
|
+
internalType: "struct ITypes.TradeFinalization",
|
|
3153
3468
|
name: "",
|
|
3154
|
-
type: "
|
|
3469
|
+
type: "tuple"
|
|
3155
3470
|
}
|
|
3156
3471
|
],
|
|
3157
3472
|
stateMutability: "view",
|
|
@@ -3173,33 +3488,19 @@ var _abi3 = [
|
|
|
3173
3488
|
{
|
|
3174
3489
|
inputs: [
|
|
3175
3490
|
{
|
|
3176
|
-
internalType: "bytes32",
|
|
3177
|
-
name: "
|
|
3178
|
-
type: "bytes32"
|
|
3179
|
-
}
|
|
3180
|
-
],
|
|
3181
|
-
name: "numOfPMMAccounts",
|
|
3182
|
-
outputs: [
|
|
3183
|
-
{
|
|
3184
|
-
internalType: "uint256",
|
|
3185
|
-
name: "",
|
|
3186
|
-
type: "uint256"
|
|
3187
|
-
}
|
|
3188
|
-
],
|
|
3189
|
-
stateMutability: "view",
|
|
3190
|
-
type: "function"
|
|
3191
|
-
},
|
|
3192
|
-
{
|
|
3193
|
-
inputs: [],
|
|
3194
|
-
name: "numOfSupportedTokens",
|
|
3195
|
-
outputs: [
|
|
3491
|
+
internalType: "bytes32[]",
|
|
3492
|
+
name: "referenceIds",
|
|
3493
|
+
type: "bytes32[]"
|
|
3494
|
+
},
|
|
3196
3495
|
{
|
|
3197
|
-
internalType: "
|
|
3198
|
-
name: "",
|
|
3199
|
-
type: "
|
|
3496
|
+
internalType: "address[]",
|
|
3497
|
+
name: "handlers",
|
|
3498
|
+
type: "address[]"
|
|
3200
3499
|
}
|
|
3201
3500
|
],
|
|
3202
|
-
|
|
3501
|
+
name: "migrate",
|
|
3502
|
+
outputs: [],
|
|
3503
|
+
stateMutability: "nonpayable",
|
|
3203
3504
|
type: "function"
|
|
3204
3505
|
},
|
|
3205
3506
|
{
|
|
@@ -3237,6 +3538,11 @@ var _abi3 = [
|
|
|
3237
3538
|
name: "msgError",
|
|
3238
3539
|
type: "bytes"
|
|
3239
3540
|
},
|
|
3541
|
+
{
|
|
3542
|
+
internalType: "bytes",
|
|
3543
|
+
name: "referenceInfo",
|
|
3544
|
+
type: "bytes"
|
|
3545
|
+
},
|
|
3240
3546
|
{
|
|
3241
3547
|
internalType: "bytes",
|
|
3242
3548
|
name: "signature",
|
|
@@ -3339,12 +3645,12 @@ var _abi3 = [
|
|
|
3339
3645
|
},
|
|
3340
3646
|
{
|
|
3341
3647
|
internalType: "bytes",
|
|
3342
|
-
name: "
|
|
3648
|
+
name: "fromNetwork",
|
|
3343
3649
|
type: "bytes"
|
|
3344
3650
|
},
|
|
3345
3651
|
{
|
|
3346
3652
|
internalType: "bytes",
|
|
3347
|
-
name: "
|
|
3653
|
+
name: "toNetwork",
|
|
3348
3654
|
type: "bytes"
|
|
3349
3655
|
}
|
|
3350
3656
|
],
|
|
@@ -3353,6 +3659,92 @@ var _abi3 = [
|
|
|
3353
3659
|
stateMutability: "nonpayable",
|
|
3354
3660
|
type: "function"
|
|
3355
3661
|
},
|
|
3662
|
+
{
|
|
3663
|
+
inputs: [
|
|
3664
|
+
{
|
|
3665
|
+
internalType: "bytes32",
|
|
3666
|
+
name: "tradeId",
|
|
3667
|
+
type: "bytes32"
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
components: [
|
|
3671
|
+
{
|
|
3672
|
+
internalType: "uint256",
|
|
3673
|
+
name: "sessionId",
|
|
3674
|
+
type: "uint256"
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
components: [
|
|
3678
|
+
{
|
|
3679
|
+
internalType: "uint256",
|
|
3680
|
+
name: "amountIn",
|
|
3681
|
+
type: "uint256"
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
internalType: "bytes[3]",
|
|
3685
|
+
name: "fromChain",
|
|
3686
|
+
type: "bytes[3]"
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
internalType: "bytes[3]",
|
|
3690
|
+
name: "toChain",
|
|
3691
|
+
type: "bytes[3]"
|
|
3692
|
+
}
|
|
3693
|
+
],
|
|
3694
|
+
internalType: "struct ITypes.TradeInfo",
|
|
3695
|
+
name: "tradeInfo",
|
|
3696
|
+
type: "tuple"
|
|
3697
|
+
},
|
|
3698
|
+
{
|
|
3699
|
+
components: [
|
|
3700
|
+
{
|
|
3701
|
+
internalType: "bytes[5]",
|
|
3702
|
+
name: "depositInfo",
|
|
3703
|
+
type: "bytes[5]"
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
internalType: "address",
|
|
3707
|
+
name: "userEphemeralL2Address",
|
|
3708
|
+
type: "address"
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
internalType: "uint64",
|
|
3712
|
+
name: "scriptTimeout",
|
|
3713
|
+
type: "uint64"
|
|
3714
|
+
}
|
|
3715
|
+
],
|
|
3716
|
+
internalType: "struct ITypes.ScriptInfo",
|
|
3717
|
+
name: "scriptInfo",
|
|
3718
|
+
type: "tuple"
|
|
3719
|
+
}
|
|
3720
|
+
],
|
|
3721
|
+
internalType: "struct ITypes.TradeData",
|
|
3722
|
+
name: "tradeData",
|
|
3723
|
+
type: "tuple"
|
|
3724
|
+
},
|
|
3725
|
+
{
|
|
3726
|
+
components: [
|
|
3727
|
+
{
|
|
3728
|
+
internalType: "bytes",
|
|
3729
|
+
name: "refundAddress",
|
|
3730
|
+
type: "bytes"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
internalType: "bytes[]",
|
|
3734
|
+
name: "presigns",
|
|
3735
|
+
type: "bytes[]"
|
|
3736
|
+
}
|
|
3737
|
+
],
|
|
3738
|
+
internalType: "struct ITypes.RefundPresign",
|
|
3739
|
+
name: "refundPresign",
|
|
3740
|
+
type: "tuple"
|
|
3741
|
+
}
|
|
3742
|
+
],
|
|
3743
|
+
name: "submitDeposit",
|
|
3744
|
+
outputs: [],
|
|
3745
|
+
stateMutability: "nonpayable",
|
|
3746
|
+
type: "function"
|
|
3747
|
+
},
|
|
3356
3748
|
{
|
|
3357
3749
|
inputs: [
|
|
3358
3750
|
{
|
|
@@ -3482,40 +3874,21 @@ var _abi3 = [
|
|
|
3482
3874
|
outputs: [],
|
|
3483
3875
|
stateMutability: "nonpayable",
|
|
3484
3876
|
type: "function"
|
|
3485
|
-
},
|
|
3486
|
-
{
|
|
3487
|
-
inputs: [
|
|
3488
|
-
{
|
|
3489
|
-
internalType: "address",
|
|
3490
|
-
name: "",
|
|
3491
|
-
type: "address"
|
|
3492
|
-
}
|
|
3493
|
-
],
|
|
3494
|
-
name: "version",
|
|
3495
|
-
outputs: [
|
|
3496
|
-
{
|
|
3497
|
-
internalType: "uint256",
|
|
3498
|
-
name: "",
|
|
3499
|
-
type: "uint256"
|
|
3500
|
-
}
|
|
3501
|
-
],
|
|
3502
|
-
stateMutability: "view",
|
|
3503
|
-
type: "function"
|
|
3504
3877
|
}
|
|
3505
3878
|
];
|
|
3506
3879
|
var Router__factory = class {
|
|
3507
3880
|
static createInterface() {
|
|
3508
|
-
return new
|
|
3881
|
+
return new import_ethers4.Interface(_abi4);
|
|
3509
3882
|
}
|
|
3510
3883
|
static connect(address, runner) {
|
|
3511
|
-
return new
|
|
3884
|
+
return new import_ethers4.Contract(address, _abi4, runner);
|
|
3512
3885
|
}
|
|
3513
3886
|
};
|
|
3514
|
-
Router__factory.abi =
|
|
3887
|
+
Router__factory.abi = _abi4;
|
|
3515
3888
|
|
|
3516
|
-
// src/contracts/
|
|
3517
|
-
var
|
|
3518
|
-
var
|
|
3889
|
+
// src/contracts/contracts/factories/Signer__factory.ts
|
|
3890
|
+
var import_ethers5 = require("ethers");
|
|
3891
|
+
var _abi5 = [
|
|
3519
3892
|
{
|
|
3520
3893
|
inputs: [],
|
|
3521
3894
|
stateMutability: "nonpayable",
|
|
@@ -3843,19 +4216,19 @@ var _abi4 = [
|
|
|
3843
4216
|
];
|
|
3844
4217
|
var Signer__factory = class {
|
|
3845
4218
|
static createInterface() {
|
|
3846
|
-
return new
|
|
4219
|
+
return new import_ethers5.Interface(_abi5);
|
|
3847
4220
|
}
|
|
3848
4221
|
static connect(address, runner) {
|
|
3849
|
-
return new
|
|
4222
|
+
return new import_ethers5.Contract(address, _abi5, runner);
|
|
3850
4223
|
}
|
|
3851
4224
|
};
|
|
3852
|
-
Signer__factory.abi =
|
|
4225
|
+
Signer__factory.abi = _abi5;
|
|
3853
4226
|
|
|
3854
4227
|
// src/services/router.service.ts
|
|
3855
|
-
var
|
|
4228
|
+
var import_ethers6 = require("ethers");
|
|
3856
4229
|
var RouterService = class {
|
|
3857
4230
|
constructor() {
|
|
3858
|
-
this.provider = new
|
|
4231
|
+
this.provider = new import_ethers6.JsonRpcProvider(config.getRpcUrl());
|
|
3859
4232
|
this.contract = Router__factory.connect(config.getRouterAddress(), this.provider);
|
|
3860
4233
|
config.registerObserver(this);
|
|
3861
4234
|
}
|
|
@@ -3864,90 +4237,39 @@ var RouterService = class {
|
|
|
3864
4237
|
* Updates service when config changes
|
|
3865
4238
|
*/
|
|
3866
4239
|
onConfigUpdate(newConfig) {
|
|
3867
|
-
this.provider = new
|
|
4240
|
+
this.provider = new import_ethers6.JsonRpcProvider(newConfig.rpcUrl);
|
|
3868
4241
|
this.contract = Router__factory.connect(newConfig.routerAddress, this.provider);
|
|
3869
4242
|
}
|
|
3870
4243
|
async getSigner() {
|
|
3871
4244
|
return await this.contract.SIGNER();
|
|
3872
4245
|
}
|
|
3873
|
-
async getCurrentPubkey(network) {
|
|
3874
|
-
return this.contract.getLatestMPCInfo(import_ethers5.ethers.toUtf8Bytes(network));
|
|
3875
|
-
}
|
|
3876
|
-
async getCurrentStage(tradeId) {
|
|
3877
|
-
return await this.contract.getCurrentStage(tradeId);
|
|
3878
|
-
}
|
|
3879
|
-
async getDepositAddressList(tradeId) {
|
|
3880
|
-
return await this.contract.getDepositAddressList(tradeId);
|
|
3881
|
-
}
|
|
3882
4246
|
async getHandler(fromChain, toChain) {
|
|
3883
4247
|
return await this.contract.getHandler(fromChain, toChain);
|
|
3884
4248
|
}
|
|
3885
|
-
async getPFeeRate() {
|
|
3886
|
-
return await this.contract.getPFeeRate();
|
|
3887
|
-
}
|
|
3888
4249
|
async getPMMSelection(tradeId) {
|
|
3889
4250
|
return await this.contract.getPMMSelection(tradeId);
|
|
3890
4251
|
}
|
|
3891
4252
|
async getSettlementPresigns(tradeId) {
|
|
3892
4253
|
return await this.contract.getSettlementPresigns(tradeId);
|
|
3893
4254
|
}
|
|
3894
|
-
async getRefundPresigns(tradeId) {
|
|
3895
|
-
return await this.contract.getRefundPresigns(tradeId);
|
|
3896
|
-
}
|
|
3897
|
-
async getProtocolState() {
|
|
3898
|
-
return await this.contract.getProtocolState();
|
|
3899
|
-
}
|
|
3900
4255
|
async getFeeDetails(tradeId) {
|
|
3901
4256
|
return await this.contract.getFeeDetails(tradeId);
|
|
3902
4257
|
}
|
|
3903
|
-
async getTradeFinalization(tradeId) {
|
|
3904
|
-
return await this.contract.getTradeFinalization(tradeId);
|
|
3905
|
-
}
|
|
3906
|
-
async getTokens(fromIdx, toIdx) {
|
|
3907
|
-
return await this.contract.getTokens(fromIdx, toIdx);
|
|
3908
|
-
}
|
|
3909
4258
|
async getTradeData(tradeId) {
|
|
3910
4259
|
return await this.contract.getTradeData(tradeId);
|
|
3911
4260
|
}
|
|
3912
|
-
async isMPCNode(account) {
|
|
3913
|
-
return await this.contract.isMPCNode(account);
|
|
3914
|
-
}
|
|
3915
|
-
async isSolver(account) {
|
|
3916
|
-
return await this.contract.isSolver(account);
|
|
3917
|
-
}
|
|
3918
|
-
async isSuspended(stage) {
|
|
3919
|
-
return await this.contract.isSuspended(stage);
|
|
3920
|
-
}
|
|
3921
|
-
async isValidNetwork(networkId) {
|
|
3922
|
-
return await this.contract.isValidNetwork(networkId);
|
|
3923
|
-
}
|
|
3924
|
-
async isValidPMM(pmmId) {
|
|
3925
|
-
return await this.contract.isValidPMM(pmmId);
|
|
3926
|
-
}
|
|
3927
|
-
async isValidPMMAccount(pmmId, account) {
|
|
3928
|
-
return await this.contract.isValidPMMAccount(pmmId, account);
|
|
3929
|
-
}
|
|
3930
|
-
async isValidToken(networkId, tokenId) {
|
|
3931
|
-
return await this.contract.isValidToken(networkId, tokenId);
|
|
3932
|
-
}
|
|
3933
4261
|
async getManagement() {
|
|
3934
4262
|
return await this.contract.management();
|
|
3935
4263
|
}
|
|
3936
|
-
async getNumOfSupportedTokens() {
|
|
3937
|
-
return await this.contract.numOfSupportedTokens();
|
|
3938
|
-
}
|
|
3939
|
-
async getVersion(address) {
|
|
3940
|
-
return await this.contract.version(address);
|
|
3941
|
-
}
|
|
3942
4264
|
};
|
|
3943
4265
|
var routerService = new RouterService();
|
|
3944
4266
|
|
|
3945
4267
|
// src/services/signer.service.ts
|
|
3946
|
-
var
|
|
4268
|
+
var import_ethers7 = require("ethers");
|
|
3947
4269
|
var SignerService = class {
|
|
3948
4270
|
constructor() {
|
|
3949
4271
|
this.routerService = routerService;
|
|
3950
|
-
this.provider = new
|
|
4272
|
+
this.provider = new import_ethers7.JsonRpcProvider(config.getRpcUrl());
|
|
3951
4273
|
config.registerObserver(this);
|
|
3952
4274
|
}
|
|
3953
4275
|
/**
|
|
@@ -3955,7 +4277,7 @@ var SignerService = class {
|
|
|
3955
4277
|
* Updates service when config changes
|
|
3956
4278
|
*/
|
|
3957
4279
|
onConfigUpdate(newConfig) {
|
|
3958
|
-
this.provider = new
|
|
4280
|
+
this.provider = new import_ethers7.JsonRpcProvider(newConfig.rpcUrl);
|
|
3959
4281
|
}
|
|
3960
4282
|
async getDomain() {
|
|
3961
4283
|
const signerAddress = await this.routerService.getSigner();
|
|
@@ -4299,20 +4621,20 @@ async function defaultDomain(signerHelper, provider) {
|
|
|
4299
4621
|
}
|
|
4300
4622
|
|
|
4301
4623
|
// src/signatures/getInfoHash.ts
|
|
4302
|
-
var
|
|
4303
|
-
var abiCoder =
|
|
4624
|
+
var import_ethers8 = require("ethers");
|
|
4625
|
+
var abiCoder = import_ethers8.AbiCoder.defaultAbiCoder();
|
|
4304
4626
|
function getTradeIdsHash(tradeIds) {
|
|
4305
|
-
return (0,
|
|
4627
|
+
return (0, import_ethers8.keccak256)(abiCoder.encode(["bytes32[]"], [tradeIds]));
|
|
4306
4628
|
}
|
|
4307
4629
|
function getMakePaymentHash(tradeIds, signedAt, startIdx, paymentTxId) {
|
|
4308
|
-
const bundlerHash = (0,
|
|
4309
|
-
const infoHash = (0,
|
|
4630
|
+
const bundlerHash = (0, import_ethers8.keccak256)(abiCoder.encode(["bytes32[]"], [tradeIds]));
|
|
4631
|
+
const infoHash = (0, import_ethers8.keccak256)(
|
|
4310
4632
|
abiCoder.encode(["uint64", "uint256", "bytes32", "bytes"], [signedAt, startIdx, bundlerHash, paymentTxId])
|
|
4311
4633
|
);
|
|
4312
4634
|
return infoHash;
|
|
4313
4635
|
}
|
|
4314
4636
|
function getCommitInfoHash(pmmId, pmmRecvAddr, toChain, toToken, amountOut, expiry) {
|
|
4315
|
-
const infoHash = (0,
|
|
4637
|
+
const infoHash = (0, import_ethers8.keccak256)(
|
|
4316
4638
|
abiCoder.encode(
|
|
4317
4639
|
["bytes32", "bytes", "bytes", "bytes", "uint256", "uint64"],
|
|
4318
4640
|
[pmmId, pmmRecvAddr, toChain, toToken, amountOut, expiry]
|
|
@@ -4322,7 +4644,7 @@ function getCommitInfoHash(pmmId, pmmRecvAddr, toChain, toToken, amountOut, expi
|
|
|
4322
4644
|
}
|
|
4323
4645
|
|
|
4324
4646
|
// src/signatures/getSignature.ts
|
|
4325
|
-
var
|
|
4647
|
+
var import_ethers9 = require("ethers");
|
|
4326
4648
|
|
|
4327
4649
|
// src/signatures/types.ts
|
|
4328
4650
|
var presignType = {
|
|
@@ -4389,7 +4711,7 @@ function getSignatureType(type) {
|
|
|
4389
4711
|
async function getSigner(provider, signerHelper, tradeId, infoHash, type, signature) {
|
|
4390
4712
|
const values = { tradeId, infoHash };
|
|
4391
4713
|
const contractDomain = await defaultDomain(signerHelper, provider);
|
|
4392
|
-
return (0,
|
|
4714
|
+
return (0, import_ethers9.verifyTypedData)(contractDomain, getSignatureType(type), values, signature);
|
|
4393
4715
|
}
|
|
4394
4716
|
async function getSignature(Signer2, provider, signerHelper, tradeId, infoHash, type, domain) {
|
|
4395
4717
|
const contractDomain = await defaultDomain(signerHelper, provider);
|
|
@@ -4402,6 +4724,7 @@ async function getSignature(Signer2, provider, signerHelper, tradeId, infoHash,
|
|
|
4402
4724
|
0 && (module.exports = {
|
|
4403
4725
|
ERC20__factory,
|
|
4404
4726
|
Payment__factory,
|
|
4727
|
+
ProtocolFetcherProxy__factory,
|
|
4405
4728
|
RouterService,
|
|
4406
4729
|
Router__factory,
|
|
4407
4730
|
SDK,
|