@optimex-xyz/market-maker-sdk 0.7.1 → 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 +84 -54
- package/dist/index.d.ts +84 -54
- package/dist/index.js +37 -18
- package/dist/index.mjs +37 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# PMM API Integration Documentation
|
|
2
2
|
|
|
3
|
+
> **CHANGELOG (v0.7.1)**:
|
|
4
|
+
> - **Breaking Changes:**
|
|
5
|
+
> - Environment key `dev` has been renamed to `staging` - please update your environment configuration accordingly
|
|
6
|
+
> - Several functions from `routerService` moved to `protocolService`
|
|
7
|
+
> - **Upgrade Notes:**
|
|
8
|
+
> - For PMMs using version 6.2, you can update to v0.7.1 without needing to change anything
|
|
9
|
+
> - If you need to use the Router, please use the values provided in the environment configuration section
|
|
10
|
+
|
|
3
11
|
> **Note**: If you prefer using the SDK instead of direct API integration, please refer to the [PMM SDK Integration Guide](sdk-integration.md).
|
|
4
12
|
|
|
5
13
|
A comprehensive guide for implementing Private Market Makers (PMMs) in the cross-chain trading network. This documentation covers the required integration points between PMMs and our solver backend, enabling cross-chain liquidity provision and settlement.
|
|
@@ -22,6 +30,8 @@ A comprehensive guide for implementing Private Market Makers (PMMs) in the cross
|
|
|
22
30
|
- [5. PMM Making Payment](#5-pmm-making-payment)
|
|
23
31
|
- [5.1. EVM](#51-evm)
|
|
24
32
|
- [5.2. Bitcoin](#52-bitcoin)
|
|
33
|
+
|
|
34
|
+
|
|
25
35
|
## 1. Overview
|
|
26
36
|
|
|
27
37
|
The PMM integration with Optimex involves bidirectional API communication:
|
|
@@ -68,16 +78,18 @@ sequenceDiagram
|
|
|
68
78
|
|
|
69
79
|
| Environment | Description |
|
|
70
80
|
| ---------------- | -------------------------------------------------------------------- |
|
|
71
|
-
| `dev` |
|
|
81
|
+
| `dev` | internal environment with test networks and development services |
|
|
82
|
+
| `staging` | Staging environment with test networks and staging services |
|
|
72
83
|
| `prelive` | Pre production environment with mainnet networks for testing before release |
|
|
73
84
|
| `production` | Production environment with mainnet networks and production services |
|
|
74
85
|
|
|
75
86
|
<details>
|
|
76
|
-
<summary><strong>
|
|
87
|
+
<summary><strong>Staging Contracts</strong></summary>
|
|
77
88
|
|
|
78
89
|
**Optimex L2 Testnet**
|
|
79
90
|
- **Signer**: [0xA89F5060B810F3b6027D7663880c43ee77A865C7](https://scan-testnet.optimex.xyz/address/0xA89F5060B810F3b6027D7663880c43ee77A865C7)
|
|
80
|
-
- **Router**: [
|
|
91
|
+
- **Router**: [0xa6E13A3c6c63C64d45bB453E0402B7D2eE53E564](https://scan-testnet.optimex.xyz/address/0xa6E13A3c6c63C64d45bB453E0402B7D2eE53E564)
|
|
92
|
+
- **ProtocolFetcherProxy**: [0x7c07151ca4DFd93F352Ab9B132A95866697c38c2](https://scan-testnet.optimex.xyz/address/0x7c07151ca4DFd93F352Ab9B132A95866697c38c2)
|
|
81
93
|
|
|
82
94
|
**Ethereum Sepolia**
|
|
83
95
|
- **Payment**: [0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2](https://sepolia.etherscan.io/address/0x7387DcCfE2f1D5F80b4ECDF91eF58541517e90D2)
|
|
@@ -94,7 +106,8 @@ sequenceDiagram
|
|
|
94
106
|
|
|
95
107
|
**Optimex L2 Mainnet**
|
|
96
108
|
- **Signer**: [0xCF9786F123F1071023dB8049808C223e94c384be](https://scan.optimex.xyz/address/0xCF9786F123F1071023dB8049808C223e94c384be)
|
|
97
|
-
- **Router**: [
|
|
109
|
+
- **Router**: [0xF7fedF4A250157010807E6eA60258E3B768149Ff](https://scan.optimex.xyz/address/0xF7fedF4A250157010807E6eA60258E3B768149Ff)
|
|
110
|
+
- **ProtocolFetcherProxy**: [0xFDEd4CEf9aE1E03D0BeF161262a266c1c157a32b](https://scan.optimex.xyz/address/0xFDEd4CEf9aE1E03D0BeF161262a266c1c157a32b)
|
|
98
111
|
|
|
99
112
|
**Ethereum Mainnet**
|
|
100
113
|
- **Payment**: [0x0A497AC4261E37FA4062762C23Cf3cB642C839b8](https://etherscan.io/address/0x0A497AC4261E37FA4062762C23Cf3cB642C839b8)
|
package/dist/index.d.mts
CHANGED
|
@@ -1562,7 +1562,7 @@ declare namespace ITypes$1 {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
interface RouterInterface extends Interface {
|
|
1564
1564
|
getFunction(nameOrSignature: "SIGNER" | "abort" | "bundlePayment" | "confirmDeposit" | "confirmPayment" | "confirmPresign" | "confirmSettlement" | "getAffiliateInfo" | "getCurrentEpoch" | "getCurrentStage" | "getFailureInfo" | "getFeeDetails" | "getHandler" | "getHandlerOf" | "getHistoryCount" | "getPMMSelection" | "getPendingTrades" | "getPendingTradesCount" | "getRefundPresign" | "getRegisteredHandlers" | "getSettlementPresigns" | "getSolver" | "getTradeData" | "getTradeFinalization" | "management" | "migrate" | "refund" | "report" | "selectPMM" | "setManagement" | "setRoute" | "submitDeposit" | "submitTrade"): FunctionFragment;
|
|
1565
|
-
getEvent(nameOrSignatureOrTopic: "Abort" | "ConfirmDeposit" | "ConfirmPayment" | "ConfirmPresign" | "ConfirmRefund" | "ConfirmSettlement" | "MakePayment" | "ReportFailure" | "SelectPMM" | "SubmitDeposit" | "SubmitTradeInfo" | "UpdatedRoute"): EventFragment;
|
|
1565
|
+
getEvent(nameOrSignatureOrTopic: "Abort" | "ConfirmDeposit" | "ConfirmPayment" | "ConfirmPresign" | "ConfirmRefund" | "ConfirmSettlement" | "MakePayment" | "ReportFailure" | "SelectPMM" | "SubmitDeposit" | "SubmitTradeInfo" | "UpdatedManagement" | "UpdatedRoute"): EventFragment;
|
|
1566
1566
|
encodeFunctionData(functionFragment: "SIGNER", values?: undefined): string;
|
|
1567
1567
|
encodeFunctionData(functionFragment: "abort", values: [BytesLike, ITypes$1.RFQInfoStruct]): string;
|
|
1568
1568
|
encodeFunctionData(functionFragment: "bundlePayment", values: [ITypes$1.BundlePaymentStruct]): string;
|
|
@@ -1649,11 +1649,11 @@ declare namespace AbortEvent {
|
|
|
1649
1649
|
type LogDescription = TypedLogDescription<Event>;
|
|
1650
1650
|
}
|
|
1651
1651
|
declare namespace ConfirmDepositEvent {
|
|
1652
|
-
type InputTuple = [mpc: AddressLike,
|
|
1653
|
-
type OutputTuple = [mpc: string,
|
|
1652
|
+
type InputTuple = [mpc: AddressLike, tradeId: BytesLike];
|
|
1653
|
+
type OutputTuple = [mpc: string, tradeId: string];
|
|
1654
1654
|
interface OutputObject {
|
|
1655
1655
|
mpc: string;
|
|
1656
|
-
|
|
1656
|
+
tradeId: string;
|
|
1657
1657
|
}
|
|
1658
1658
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1659
1659
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -1750,11 +1750,11 @@ declare namespace SelectPMMEvent {
|
|
|
1750
1750
|
type LogDescription = TypedLogDescription<Event>;
|
|
1751
1751
|
}
|
|
1752
1752
|
declare namespace SubmitDepositEvent {
|
|
1753
|
-
type InputTuple = [solver: AddressLike,
|
|
1754
|
-
type OutputTuple = [solver: string,
|
|
1753
|
+
type InputTuple = [solver: AddressLike, tradeId: BytesLike];
|
|
1754
|
+
type OutputTuple = [solver: string, tradeId: string];
|
|
1755
1755
|
interface OutputObject {
|
|
1756
1756
|
solver: string;
|
|
1757
|
-
|
|
1757
|
+
tradeId: string;
|
|
1758
1758
|
}
|
|
1759
1759
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1760
1760
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
@@ -1773,6 +1773,18 @@ declare namespace SubmitTradeInfoEvent {
|
|
|
1773
1773
|
type Log = TypedEventLog<Event>;
|
|
1774
1774
|
type LogDescription = TypedLogDescription<Event>;
|
|
1775
1775
|
}
|
|
1776
|
+
declare namespace UpdatedManagementEvent {
|
|
1777
|
+
type InputTuple = [operator: AddressLike, newManagement: AddressLike];
|
|
1778
|
+
type OutputTuple = [operator: string, newManagement: string];
|
|
1779
|
+
interface OutputObject {
|
|
1780
|
+
operator: string;
|
|
1781
|
+
newManagement: string;
|
|
1782
|
+
}
|
|
1783
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1784
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1785
|
+
type Log = TypedEventLog<Event>;
|
|
1786
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
1787
|
+
}
|
|
1776
1788
|
declare namespace UpdatedRouteEvent {
|
|
1777
1789
|
type InputTuple = [
|
|
1778
1790
|
handler: AddressLike,
|
|
@@ -1820,7 +1832,7 @@ interface Router extends BaseContract {
|
|
|
1820
1832
|
void
|
|
1821
1833
|
], "nonpayable">;
|
|
1822
1834
|
confirmDeposit: TypedContractMethod<[
|
|
1823
|
-
|
|
1835
|
+
tradeId: BytesLike,
|
|
1824
1836
|
signature: BytesLike,
|
|
1825
1837
|
depositFromList: BytesLike[]
|
|
1826
1838
|
], [
|
|
@@ -1846,7 +1858,7 @@ interface Router extends BaseContract {
|
|
|
1846
1858
|
void
|
|
1847
1859
|
], "nonpayable">;
|
|
1848
1860
|
getAffiliateInfo: TypedContractMethod<[
|
|
1849
|
-
|
|
1861
|
+
tradeId: BytesLike
|
|
1850
1862
|
], [
|
|
1851
1863
|
ITypes$1.AffiliateStructOutput
|
|
1852
1864
|
], "view">;
|
|
@@ -1856,7 +1868,7 @@ interface Router extends BaseContract {
|
|
|
1856
1868
|
[bigint, bigint, bigint]
|
|
1857
1869
|
], "view">;
|
|
1858
1870
|
getCurrentStage: TypedContractMethod<[
|
|
1859
|
-
|
|
1871
|
+
tradeId: BytesLike
|
|
1860
1872
|
], [
|
|
1861
1873
|
[bigint, string] & {
|
|
1862
1874
|
stage: bigint;
|
|
@@ -1864,12 +1876,12 @@ interface Router extends BaseContract {
|
|
|
1864
1876
|
}
|
|
1865
1877
|
], "view">;
|
|
1866
1878
|
getFailureInfo: TypedContractMethod<[
|
|
1867
|
-
|
|
1879
|
+
tradeId: BytesLike
|
|
1868
1880
|
], [
|
|
1869
1881
|
ITypes$1.FailureDetailsStructOutput
|
|
1870
1882
|
], "view">;
|
|
1871
1883
|
getFeeDetails: TypedContractMethod<[
|
|
1872
|
-
|
|
1884
|
+
tradeId: BytesLike
|
|
1873
1885
|
], [
|
|
1874
1886
|
ITypes$1.FeeDetailsStructOutput
|
|
1875
1887
|
], "view">;
|
|
@@ -1883,7 +1895,7 @@ interface Router extends BaseContract {
|
|
|
1883
1895
|
}
|
|
1884
1896
|
], "view">;
|
|
1885
1897
|
getHandlerOf: TypedContractMethod<[
|
|
1886
|
-
|
|
1898
|
+
tradeId: BytesLike
|
|
1887
1899
|
], [
|
|
1888
1900
|
[string, string] & {
|
|
1889
1901
|
handler: string;
|
|
@@ -1897,7 +1909,7 @@ interface Router extends BaseContract {
|
|
|
1897
1909
|
bigint
|
|
1898
1910
|
], "view">;
|
|
1899
1911
|
getPMMSelection: TypedContractMethod<[
|
|
1900
|
-
|
|
1912
|
+
tradeId: BytesLike
|
|
1901
1913
|
], [
|
|
1902
1914
|
ITypes$1.PMMSelectionStructOutput
|
|
1903
1915
|
], "view">;
|
|
@@ -1916,7 +1928,7 @@ interface Router extends BaseContract {
|
|
|
1916
1928
|
bigint
|
|
1917
1929
|
], "view">;
|
|
1918
1930
|
getRefundPresign: TypedContractMethod<[
|
|
1919
|
-
|
|
1931
|
+
tradeId: BytesLike
|
|
1920
1932
|
], [
|
|
1921
1933
|
ITypes$1.RefundPresignStructOutput
|
|
1922
1934
|
], "view">;
|
|
@@ -1929,18 +1941,18 @@ interface Router extends BaseContract {
|
|
|
1929
1941
|
string[]
|
|
1930
1942
|
], "view">;
|
|
1931
1943
|
getSettlementPresigns: TypedContractMethod<[
|
|
1932
|
-
|
|
1944
|
+
tradeId: BytesLike
|
|
1933
1945
|
], [
|
|
1934
1946
|
ITypes$1.SettlementPresignStructOutput[]
|
|
1935
1947
|
], "view">;
|
|
1936
|
-
getSolver: TypedContractMethod<[
|
|
1948
|
+
getSolver: TypedContractMethod<[tradeId: BytesLike], [string], "view">;
|
|
1937
1949
|
getTradeData: TypedContractMethod<[
|
|
1938
|
-
|
|
1950
|
+
tradeId: BytesLike
|
|
1939
1951
|
], [
|
|
1940
1952
|
ITypes$1.TradeDataStructOutput
|
|
1941
1953
|
], "view">;
|
|
1942
1954
|
getTradeFinalization: TypedContractMethod<[
|
|
1943
|
-
|
|
1955
|
+
tradeId: BytesLike
|
|
1944
1956
|
], [
|
|
1945
1957
|
ITypes$1.TradeFinalizationStructOutput
|
|
1946
1958
|
], "view">;
|
|
@@ -1952,14 +1964,14 @@ interface Router extends BaseContract {
|
|
|
1952
1964
|
void
|
|
1953
1965
|
], "nonpayable">;
|
|
1954
1966
|
refund: TypedContractMethod<[
|
|
1955
|
-
|
|
1967
|
+
tradeId: BytesLike,
|
|
1956
1968
|
refundTxId: BytesLike,
|
|
1957
1969
|
signature: BytesLike
|
|
1958
1970
|
], [
|
|
1959
1971
|
void
|
|
1960
1972
|
], "nonpayable">;
|
|
1961
1973
|
report: TypedContractMethod<[
|
|
1962
|
-
|
|
1974
|
+
tradeId: BytesLike,
|
|
1963
1975
|
msgError: BytesLike,
|
|
1964
1976
|
referenceInfo: BytesLike,
|
|
1965
1977
|
signature: BytesLike
|
|
@@ -1985,7 +1997,7 @@ interface Router extends BaseContract {
|
|
|
1985
1997
|
void
|
|
1986
1998
|
], "nonpayable">;
|
|
1987
1999
|
submitDeposit: TypedContractMethod<[
|
|
1988
|
-
|
|
2000
|
+
tradeId: BytesLike,
|
|
1989
2001
|
tradeData: ITypes$1.TradeDataStruct,
|
|
1990
2002
|
refundPresign: ITypes$1.RefundPresignStruct
|
|
1991
2003
|
], [
|
|
@@ -2014,7 +2026,7 @@ interface Router extends BaseContract {
|
|
|
2014
2026
|
void
|
|
2015
2027
|
], "nonpayable">;
|
|
2016
2028
|
getFunction(nameOrSignature: "confirmDeposit"): TypedContractMethod<[
|
|
2017
|
-
|
|
2029
|
+
tradeId: BytesLike,
|
|
2018
2030
|
signature: BytesLike,
|
|
2019
2031
|
depositFromList: BytesLike[]
|
|
2020
2032
|
], [
|
|
@@ -2040,7 +2052,7 @@ interface Router extends BaseContract {
|
|
|
2040
2052
|
void
|
|
2041
2053
|
], "nonpayable">;
|
|
2042
2054
|
getFunction(nameOrSignature: "getAffiliateInfo"): TypedContractMethod<[
|
|
2043
|
-
|
|
2055
|
+
tradeId: BytesLike
|
|
2044
2056
|
], [
|
|
2045
2057
|
ITypes$1.AffiliateStructOutput
|
|
2046
2058
|
], "view">;
|
|
@@ -2050,7 +2062,7 @@ interface Router extends BaseContract {
|
|
|
2050
2062
|
[bigint, bigint, bigint]
|
|
2051
2063
|
], "view">;
|
|
2052
2064
|
getFunction(nameOrSignature: "getCurrentStage"): TypedContractMethod<[
|
|
2053
|
-
|
|
2065
|
+
tradeId: BytesLike
|
|
2054
2066
|
], [
|
|
2055
2067
|
[bigint, string] & {
|
|
2056
2068
|
stage: bigint;
|
|
@@ -2058,12 +2070,12 @@ interface Router extends BaseContract {
|
|
|
2058
2070
|
}
|
|
2059
2071
|
], "view">;
|
|
2060
2072
|
getFunction(nameOrSignature: "getFailureInfo"): TypedContractMethod<[
|
|
2061
|
-
|
|
2073
|
+
tradeId: BytesLike
|
|
2062
2074
|
], [
|
|
2063
2075
|
ITypes$1.FailureDetailsStructOutput
|
|
2064
2076
|
], "view">;
|
|
2065
2077
|
getFunction(nameOrSignature: "getFeeDetails"): TypedContractMethod<[
|
|
2066
|
-
|
|
2078
|
+
tradeId: BytesLike
|
|
2067
2079
|
], [
|
|
2068
2080
|
ITypes$1.FeeDetailsStructOutput
|
|
2069
2081
|
], "view">;
|
|
@@ -2077,7 +2089,7 @@ interface Router extends BaseContract {
|
|
|
2077
2089
|
}
|
|
2078
2090
|
], "view">;
|
|
2079
2091
|
getFunction(nameOrSignature: "getHandlerOf"): TypedContractMethod<[
|
|
2080
|
-
|
|
2092
|
+
tradeId: BytesLike
|
|
2081
2093
|
], [
|
|
2082
2094
|
[string, string] & {
|
|
2083
2095
|
handler: string;
|
|
@@ -2091,7 +2103,7 @@ interface Router extends BaseContract {
|
|
|
2091
2103
|
bigint
|
|
2092
2104
|
], "view">;
|
|
2093
2105
|
getFunction(nameOrSignature: "getPMMSelection"): TypedContractMethod<[
|
|
2094
|
-
|
|
2106
|
+
tradeId: BytesLike
|
|
2095
2107
|
], [
|
|
2096
2108
|
ITypes$1.PMMSelectionStructOutput
|
|
2097
2109
|
], "view">;
|
|
@@ -2110,7 +2122,7 @@ interface Router extends BaseContract {
|
|
|
2110
2122
|
bigint
|
|
2111
2123
|
], "view">;
|
|
2112
2124
|
getFunction(nameOrSignature: "getRefundPresign"): TypedContractMethod<[
|
|
2113
|
-
|
|
2125
|
+
tradeId: BytesLike
|
|
2114
2126
|
], [
|
|
2115
2127
|
ITypes$1.RefundPresignStructOutput
|
|
2116
2128
|
], "view">;
|
|
@@ -2123,18 +2135,18 @@ interface Router extends BaseContract {
|
|
|
2123
2135
|
string[]
|
|
2124
2136
|
], "view">;
|
|
2125
2137
|
getFunction(nameOrSignature: "getSettlementPresigns"): TypedContractMethod<[
|
|
2126
|
-
|
|
2138
|
+
tradeId: BytesLike
|
|
2127
2139
|
], [
|
|
2128
2140
|
ITypes$1.SettlementPresignStructOutput[]
|
|
2129
2141
|
], "view">;
|
|
2130
|
-
getFunction(nameOrSignature: "getSolver"): TypedContractMethod<[
|
|
2142
|
+
getFunction(nameOrSignature: "getSolver"): TypedContractMethod<[tradeId: BytesLike], [string], "view">;
|
|
2131
2143
|
getFunction(nameOrSignature: "getTradeData"): TypedContractMethod<[
|
|
2132
|
-
|
|
2144
|
+
tradeId: BytesLike
|
|
2133
2145
|
], [
|
|
2134
2146
|
ITypes$1.TradeDataStructOutput
|
|
2135
2147
|
], "view">;
|
|
2136
2148
|
getFunction(nameOrSignature: "getTradeFinalization"): TypedContractMethod<[
|
|
2137
|
-
|
|
2149
|
+
tradeId: BytesLike
|
|
2138
2150
|
], [
|
|
2139
2151
|
ITypes$1.TradeFinalizationStructOutput
|
|
2140
2152
|
], "view">;
|
|
@@ -2146,14 +2158,14 @@ interface Router extends BaseContract {
|
|
|
2146
2158
|
void
|
|
2147
2159
|
], "nonpayable">;
|
|
2148
2160
|
getFunction(nameOrSignature: "refund"): TypedContractMethod<[
|
|
2149
|
-
|
|
2161
|
+
tradeId: BytesLike,
|
|
2150
2162
|
refundTxId: BytesLike,
|
|
2151
2163
|
signature: BytesLike
|
|
2152
2164
|
], [
|
|
2153
2165
|
void
|
|
2154
2166
|
], "nonpayable">;
|
|
2155
2167
|
getFunction(nameOrSignature: "report"): TypedContractMethod<[
|
|
2156
|
-
|
|
2168
|
+
tradeId: BytesLike,
|
|
2157
2169
|
msgError: BytesLike,
|
|
2158
2170
|
referenceInfo: BytesLike,
|
|
2159
2171
|
signature: BytesLike
|
|
@@ -2175,7 +2187,7 @@ interface Router extends BaseContract {
|
|
|
2175
2187
|
void
|
|
2176
2188
|
], "nonpayable">;
|
|
2177
2189
|
getFunction(nameOrSignature: "submitDeposit"): TypedContractMethod<[
|
|
2178
|
-
|
|
2190
|
+
tradeId: BytesLike,
|
|
2179
2191
|
tradeData: ITypes$1.TradeDataStruct,
|
|
2180
2192
|
refundPresign: ITypes$1.RefundPresignStruct
|
|
2181
2193
|
], [
|
|
@@ -2201,6 +2213,7 @@ interface Router extends BaseContract {
|
|
|
2201
2213
|
getEvent(key: "SelectPMM"): TypedContractEvent<SelectPMMEvent.InputTuple, SelectPMMEvent.OutputTuple, SelectPMMEvent.OutputObject>;
|
|
2202
2214
|
getEvent(key: "SubmitDeposit"): TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
|
|
2203
2215
|
getEvent(key: "SubmitTradeInfo"): TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
|
|
2216
|
+
getEvent(key: "UpdatedManagement"): TypedContractEvent<UpdatedManagementEvent.InputTuple, UpdatedManagementEvent.OutputTuple, UpdatedManagementEvent.OutputObject>;
|
|
2204
2217
|
getEvent(key: "UpdatedRoute"): TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
|
|
2205
2218
|
filters: {
|
|
2206
2219
|
"Abort(address,bytes32)": TypedContractEvent<AbortEvent.InputTuple, AbortEvent.OutputTuple, AbortEvent.OutputObject>;
|
|
@@ -2225,6 +2238,8 @@ interface Router extends BaseContract {
|
|
|
2225
2238
|
SubmitDeposit: TypedContractEvent<SubmitDepositEvent.InputTuple, SubmitDepositEvent.OutputTuple, SubmitDepositEvent.OutputObject>;
|
|
2226
2239
|
"SubmitTradeInfo(address,bytes32)": TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
|
|
2227
2240
|
SubmitTradeInfo: TypedContractEvent<SubmitTradeInfoEvent.InputTuple, SubmitTradeInfoEvent.OutputTuple, SubmitTradeInfoEvent.OutputObject>;
|
|
2241
|
+
"UpdatedManagement(address,address)": TypedContractEvent<UpdatedManagementEvent.InputTuple, UpdatedManagementEvent.OutputTuple, UpdatedManagementEvent.OutputObject>;
|
|
2242
|
+
UpdatedManagement: TypedContractEvent<UpdatedManagementEvent.InputTuple, UpdatedManagementEvent.OutputTuple, UpdatedManagementEvent.OutputObject>;
|
|
2228
2243
|
"UpdatedRoute(address,bytes,bytes)": TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
|
|
2229
2244
|
UpdatedRoute: TypedContractEvent<UpdatedRouteEvent.InputTuple, UpdatedRouteEvent.OutputTuple, UpdatedRouteEvent.OutputObject>;
|
|
2230
2245
|
};
|
|
@@ -4160,7 +4175,7 @@ declare class Router__factory {
|
|
|
4160
4175
|
}, {
|
|
4161
4176
|
readonly indexed: true;
|
|
4162
4177
|
readonly internalType: "bytes32";
|
|
4163
|
-
readonly name: "
|
|
4178
|
+
readonly name: "tradeId";
|
|
4164
4179
|
readonly type: "bytes32";
|
|
4165
4180
|
}];
|
|
4166
4181
|
readonly name: "ConfirmDeposit";
|
|
@@ -4285,7 +4300,7 @@ declare class Router__factory {
|
|
|
4285
4300
|
}, {
|
|
4286
4301
|
readonly indexed: true;
|
|
4287
4302
|
readonly internalType: "bytes32";
|
|
4288
|
-
readonly name: "
|
|
4303
|
+
readonly name: "tradeId";
|
|
4289
4304
|
readonly type: "bytes32";
|
|
4290
4305
|
}];
|
|
4291
4306
|
readonly name: "SubmitDeposit";
|
|
@@ -4305,6 +4320,21 @@ declare class Router__factory {
|
|
|
4305
4320
|
}];
|
|
4306
4321
|
readonly name: "SubmitTradeInfo";
|
|
4307
4322
|
readonly type: "event";
|
|
4323
|
+
}, {
|
|
4324
|
+
readonly anonymous: false;
|
|
4325
|
+
readonly inputs: readonly [{
|
|
4326
|
+
readonly indexed: true;
|
|
4327
|
+
readonly internalType: "address";
|
|
4328
|
+
readonly name: "operator";
|
|
4329
|
+
readonly type: "address";
|
|
4330
|
+
}, {
|
|
4331
|
+
readonly indexed: true;
|
|
4332
|
+
readonly internalType: "address";
|
|
4333
|
+
readonly name: "newManagement";
|
|
4334
|
+
readonly type: "address";
|
|
4335
|
+
}];
|
|
4336
|
+
readonly name: "UpdatedManagement";
|
|
4337
|
+
readonly type: "event";
|
|
4308
4338
|
}, {
|
|
4309
4339
|
readonly anonymous: false;
|
|
4310
4340
|
readonly inputs: readonly [{
|
|
@@ -4396,7 +4426,7 @@ declare class Router__factory {
|
|
|
4396
4426
|
}, {
|
|
4397
4427
|
readonly inputs: readonly [{
|
|
4398
4428
|
readonly internalType: "bytes32";
|
|
4399
|
-
readonly name: "
|
|
4429
|
+
readonly name: "tradeId";
|
|
4400
4430
|
readonly type: "bytes32";
|
|
4401
4431
|
}, {
|
|
4402
4432
|
readonly internalType: "bytes";
|
|
@@ -4460,7 +4490,7 @@ declare class Router__factory {
|
|
|
4460
4490
|
}, {
|
|
4461
4491
|
readonly inputs: readonly [{
|
|
4462
4492
|
readonly internalType: "bytes32";
|
|
4463
|
-
readonly name: "
|
|
4493
|
+
readonly name: "tradeId";
|
|
4464
4494
|
readonly type: "bytes32";
|
|
4465
4495
|
}];
|
|
4466
4496
|
readonly name: "getAffiliateInfo";
|
|
@@ -4509,7 +4539,7 @@ declare class Router__factory {
|
|
|
4509
4539
|
}, {
|
|
4510
4540
|
readonly inputs: readonly [{
|
|
4511
4541
|
readonly internalType: "bytes32";
|
|
4512
|
-
readonly name: "
|
|
4542
|
+
readonly name: "tradeId";
|
|
4513
4543
|
readonly type: "bytes32";
|
|
4514
4544
|
}];
|
|
4515
4545
|
readonly name: "getCurrentStage";
|
|
@@ -4527,7 +4557,7 @@ declare class Router__factory {
|
|
|
4527
4557
|
}, {
|
|
4528
4558
|
readonly inputs: readonly [{
|
|
4529
4559
|
readonly internalType: "bytes32";
|
|
4530
|
-
readonly name: "
|
|
4560
|
+
readonly name: "tradeId";
|
|
4531
4561
|
readonly type: "bytes32";
|
|
4532
4562
|
}];
|
|
4533
4563
|
readonly name: "getFailureInfo";
|
|
@@ -4550,7 +4580,7 @@ declare class Router__factory {
|
|
|
4550
4580
|
}, {
|
|
4551
4581
|
readonly inputs: readonly [{
|
|
4552
4582
|
readonly internalType: "bytes32";
|
|
4553
|
-
readonly name: "
|
|
4583
|
+
readonly name: "tradeId";
|
|
4554
4584
|
readonly type: "bytes32";
|
|
4555
4585
|
}];
|
|
4556
4586
|
readonly name: "getFeeDetails";
|
|
@@ -4607,7 +4637,7 @@ declare class Router__factory {
|
|
|
4607
4637
|
}, {
|
|
4608
4638
|
readonly inputs: readonly [{
|
|
4609
4639
|
readonly internalType: "bytes32";
|
|
4610
|
-
readonly name: "
|
|
4640
|
+
readonly name: "tradeId";
|
|
4611
4641
|
readonly type: "bytes32";
|
|
4612
4642
|
}];
|
|
4613
4643
|
readonly name: "getHandlerOf";
|
|
@@ -4643,7 +4673,7 @@ declare class Router__factory {
|
|
|
4643
4673
|
}, {
|
|
4644
4674
|
readonly inputs: readonly [{
|
|
4645
4675
|
readonly internalType: "bytes32";
|
|
4646
|
-
readonly name: "
|
|
4676
|
+
readonly name: "tradeId";
|
|
4647
4677
|
readonly type: "bytes32";
|
|
4648
4678
|
}];
|
|
4649
4679
|
readonly name: "getPMMSelection";
|
|
@@ -4740,7 +4770,7 @@ declare class Router__factory {
|
|
|
4740
4770
|
}, {
|
|
4741
4771
|
readonly inputs: readonly [{
|
|
4742
4772
|
readonly internalType: "bytes32";
|
|
4743
|
-
readonly name: "
|
|
4773
|
+
readonly name: "tradeId";
|
|
4744
4774
|
readonly type: "bytes32";
|
|
4745
4775
|
}];
|
|
4746
4776
|
readonly name: "getRefundPresign";
|
|
@@ -4789,7 +4819,7 @@ declare class Router__factory {
|
|
|
4789
4819
|
}, {
|
|
4790
4820
|
readonly inputs: readonly [{
|
|
4791
4821
|
readonly internalType: "bytes32";
|
|
4792
|
-
readonly name: "
|
|
4822
|
+
readonly name: "tradeId";
|
|
4793
4823
|
readonly type: "bytes32";
|
|
4794
4824
|
}];
|
|
4795
4825
|
readonly name: "getSettlementPresigns";
|
|
@@ -4816,7 +4846,7 @@ declare class Router__factory {
|
|
|
4816
4846
|
}, {
|
|
4817
4847
|
readonly inputs: readonly [{
|
|
4818
4848
|
readonly internalType: "bytes32";
|
|
4819
|
-
readonly name: "
|
|
4849
|
+
readonly name: "tradeId";
|
|
4820
4850
|
readonly type: "bytes32";
|
|
4821
4851
|
}];
|
|
4822
4852
|
readonly name: "getSolver";
|
|
@@ -4830,7 +4860,7 @@ declare class Router__factory {
|
|
|
4830
4860
|
}, {
|
|
4831
4861
|
readonly inputs: readonly [{
|
|
4832
4862
|
readonly internalType: "bytes32";
|
|
4833
|
-
readonly name: "
|
|
4863
|
+
readonly name: "tradeId";
|
|
4834
4864
|
readonly type: "bytes32";
|
|
4835
4865
|
}];
|
|
4836
4866
|
readonly name: "getTradeData";
|
|
@@ -4883,7 +4913,7 @@ declare class Router__factory {
|
|
|
4883
4913
|
}, {
|
|
4884
4914
|
readonly inputs: readonly [{
|
|
4885
4915
|
readonly internalType: "bytes32";
|
|
4886
|
-
readonly name: "
|
|
4916
|
+
readonly name: "tradeId";
|
|
4887
4917
|
readonly type: "bytes32";
|
|
4888
4918
|
}];
|
|
4889
4919
|
readonly name: "getTradeFinalization";
|
|
@@ -4946,7 +4976,7 @@ declare class Router__factory {
|
|
|
4946
4976
|
}, {
|
|
4947
4977
|
readonly inputs: readonly [{
|
|
4948
4978
|
readonly internalType: "bytes32";
|
|
4949
|
-
readonly name: "
|
|
4979
|
+
readonly name: "tradeId";
|
|
4950
4980
|
readonly type: "bytes32";
|
|
4951
4981
|
}, {
|
|
4952
4982
|
readonly internalType: "bytes";
|
|
@@ -4964,7 +4994,7 @@ declare class Router__factory {
|
|
|
4964
4994
|
}, {
|
|
4965
4995
|
readonly inputs: readonly [{
|
|
4966
4996
|
readonly internalType: "bytes32";
|
|
4967
|
-
readonly name: "
|
|
4997
|
+
readonly name: "tradeId";
|
|
4968
4998
|
readonly type: "bytes32";
|
|
4969
4999
|
}, {
|
|
4970
5000
|
readonly internalType: "bytes";
|
|
@@ -5067,7 +5097,7 @@ declare class Router__factory {
|
|
|
5067
5097
|
}, {
|
|
5068
5098
|
readonly inputs: readonly [{
|
|
5069
5099
|
readonly internalType: "bytes32";
|
|
5070
|
-
readonly name: "
|
|
5100
|
+
readonly name: "tradeId";
|
|
5071
5101
|
readonly type: "bytes32";
|
|
5072
5102
|
}, {
|
|
5073
5103
|
readonly components: readonly [{
|