@1inch/fusion-sdk 2.3.9-rc.0 → 2.3.9-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abi/NativeOrderFactory.abi.json +217 -0
- package/dist/cjs/abi/{ETHOrders.abi.json → NativeOrderImpl.abi.json} +110 -255
- package/dist/cjs/api/quoter/quote/quote.js +6 -4
- package/dist/cjs/api/quoter/quoter.request.js +0 -3
- package/dist/cjs/api/quoter/quoter.request.spec.js +0 -15
- package/dist/cjs/api/quoter/types.js +0 -2
- package/dist/cjs/contracts/index.js +21 -0
- package/dist/cjs/contracts/native-order-factory.js +115 -0
- package/dist/cjs/contracts/native-order-impl.js +130 -0
- package/dist/cjs/contracts/proxy-factory.js +87 -0
- package/dist/cjs/fusion-order/fusion-order.js +81 -5
- package/dist/cjs/fusion-order/fusion-order.spec.js +106 -0
- package/dist/cjs/fusion-order/index.js +0 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/sdk/sdk.js +79 -40
- package/dist/esm/abi/NativeOrderFactory.abi.json +217 -0
- package/dist/esm/abi/{ETHOrders.abi.json → NativeOrderImpl.abi.json} +110 -255
- package/dist/esm/api/quoter/quote/quote.js +7 -5
- package/dist/esm/api/quoter/quoter.request.js +0 -3
- package/dist/esm/api/quoter/quoter.request.spec.js +0 -15
- package/dist/esm/api/quoter/types.js +0 -2
- package/dist/esm/contracts/index.js +4 -0
- package/dist/esm/contracts/native-order-factory.js +100 -0
- package/dist/esm/contracts/native-order-impl.js +115 -0
- package/dist/esm/contracts/proxy-factory.js +72 -0
- package/dist/esm/fusion-order/fusion-order.js +79 -3
- package/dist/esm/fusion-order/fusion-order.spec.js +106 -0
- package/dist/esm/fusion-order/index.js +0 -1
- package/dist/esm/fusion-order/types.js +4 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/package.json +1 -1
- package/dist/esm/sdk/sdk.js +79 -40
- package/dist/types/src/api/quoter/quote/quote.d.ts +4 -3
- package/dist/types/src/api/quoter/types.d.ts +2 -1
- package/dist/types/src/contracts/index.d.ts +4 -0
- package/dist/types/src/contracts/native-order-factory.d.ts +9 -0
- package/dist/types/src/contracts/native-order-impl.d.ts +9 -0
- package/dist/types/src/contracts/proxy-factory.d.ts +8 -0
- package/dist/types/src/fusion-order/fusion-order.d.ts +6 -0
- package/dist/types/src/fusion-order/index.d.ts +0 -1
- package/dist/types/src/fusion-order/types.d.ts +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/sdk/sdk.d.ts +4 -0
- package/dist/types/src/sdk/types.d.ts +2 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/cjs/contracts/eth-orders.extension.js +0 -105
- package/dist/cjs/fusion-order/fusion-order-from-native.js +0 -183
- package/dist/esm/contracts/eth-orders.extension.js +0 -90
- package/dist/esm/fusion-order/fusion-order-from-native.js +0 -173
- package/dist/types/src/contracts/eth-orders.extension.d.ts +0 -11
- package/dist/types/src/fusion-order/fusion-order-from-native.d.ts +0 -13
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"name": "weth",
|
|
7
|
+
"type": "address",
|
|
8
|
+
"internalType": "contract IWETH"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "nativeOrderImplementation",
|
|
12
|
+
"type": "address",
|
|
13
|
+
"internalType": "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "limitOrderProtocol",
|
|
17
|
+
"type": "address",
|
|
18
|
+
"internalType": "address"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "accessToken",
|
|
22
|
+
"type": "address",
|
|
23
|
+
"internalType": "contract IERC20"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"stateMutability": "nonpayable"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "function",
|
|
30
|
+
"name": "create",
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"name": "makerOrder",
|
|
34
|
+
"type": "tuple",
|
|
35
|
+
"internalType": "struct IOrderMixin.Order",
|
|
36
|
+
"components": [
|
|
37
|
+
{
|
|
38
|
+
"name": "salt",
|
|
39
|
+
"type": "uint256",
|
|
40
|
+
"internalType": "uint256"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "maker",
|
|
44
|
+
"type": "uint256",
|
|
45
|
+
"internalType": "Address"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "receiver",
|
|
49
|
+
"type": "uint256",
|
|
50
|
+
"internalType": "Address"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "makerAsset",
|
|
54
|
+
"type": "uint256",
|
|
55
|
+
"internalType": "Address"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "takerAsset",
|
|
59
|
+
"type": "uint256",
|
|
60
|
+
"internalType": "Address"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "makingAmount",
|
|
64
|
+
"type": "uint256",
|
|
65
|
+
"internalType": "uint256"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "takingAmount",
|
|
69
|
+
"type": "uint256",
|
|
70
|
+
"internalType": "uint256"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "makerTraits",
|
|
74
|
+
"type": "uint256",
|
|
75
|
+
"internalType": "MakerTraits"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"outputs": [
|
|
81
|
+
{"name": "clone", "type": "address", "internalType": "address"}
|
|
82
|
+
],
|
|
83
|
+
"stateMutability": "payable"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "function",
|
|
87
|
+
"name": "owner",
|
|
88
|
+
"inputs": [],
|
|
89
|
+
"outputs": [{"name": "", "type": "address", "internalType": "address"}],
|
|
90
|
+
"stateMutability": "view"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "function",
|
|
94
|
+
"name": "renounceOwnership",
|
|
95
|
+
"inputs": [],
|
|
96
|
+
"outputs": [],
|
|
97
|
+
"stateMutability": "nonpayable"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "function",
|
|
101
|
+
"name": "rescueFunds",
|
|
102
|
+
"inputs": [
|
|
103
|
+
{"name": "token", "type": "address", "internalType": "address"},
|
|
104
|
+
{"name": "to", "type": "address", "internalType": "address"},
|
|
105
|
+
{"name": "amount", "type": "uint256", "internalType": "uint256"}
|
|
106
|
+
],
|
|
107
|
+
"outputs": [],
|
|
108
|
+
"stateMutability": "nonpayable"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "function",
|
|
112
|
+
"name": "transferOwnership",
|
|
113
|
+
"inputs": [
|
|
114
|
+
{"name": "newOwner", "type": "address", "internalType": "address"}
|
|
115
|
+
],
|
|
116
|
+
"outputs": [],
|
|
117
|
+
"stateMutability": "nonpayable"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "event",
|
|
121
|
+
"name": "NativeOrderCreated",
|
|
122
|
+
"inputs": [
|
|
123
|
+
{
|
|
124
|
+
"name": "maker",
|
|
125
|
+
"type": "address",
|
|
126
|
+
"indexed": false,
|
|
127
|
+
"internalType": "address"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "orderHash",
|
|
131
|
+
"type": "bytes32",
|
|
132
|
+
"indexed": false,
|
|
133
|
+
"internalType": "bytes32"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "clone",
|
|
137
|
+
"type": "address",
|
|
138
|
+
"indexed": false,
|
|
139
|
+
"internalType": "address"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "value",
|
|
143
|
+
"type": "uint256",
|
|
144
|
+
"indexed": false,
|
|
145
|
+
"internalType": "uint256"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"anonymous": false
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"type": "event",
|
|
152
|
+
"name": "OwnershipTransferred",
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"name": "previousOwner",
|
|
156
|
+
"type": "address",
|
|
157
|
+
"indexed": true,
|
|
158
|
+
"internalType": "address"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "newOwner",
|
|
162
|
+
"type": "address",
|
|
163
|
+
"indexed": true,
|
|
164
|
+
"internalType": "address"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"anonymous": false
|
|
168
|
+
},
|
|
169
|
+
{"type": "error", "name": "FailedDeployment", "inputs": []},
|
|
170
|
+
{
|
|
171
|
+
"type": "error",
|
|
172
|
+
"name": "InsufficientBalance",
|
|
173
|
+
"inputs": [
|
|
174
|
+
{"name": "balance", "type": "uint256", "internalType": "uint256"},
|
|
175
|
+
{"name": "needed", "type": "uint256", "internalType": "uint256"}
|
|
176
|
+
]
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "error",
|
|
180
|
+
"name": "OrderMakerShouldBeMsgSender",
|
|
181
|
+
"inputs": [
|
|
182
|
+
{"name": "expected", "type": "address", "internalType": "address"},
|
|
183
|
+
{"name": "actual", "type": "address", "internalType": "address"}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "error",
|
|
188
|
+
"name": "OrderMakingAmountShouldBeEqualToMsgValue",
|
|
189
|
+
"inputs": [
|
|
190
|
+
{"name": "expected", "type": "uint256", "internalType": "uint256"},
|
|
191
|
+
{"name": "actual", "type": "uint256", "internalType": "uint256"}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "error",
|
|
196
|
+
"name": "OrderReceiverShouldNotBeThis",
|
|
197
|
+
"inputs": [
|
|
198
|
+
{"name": "receiver", "type": "address", "internalType": "address"},
|
|
199
|
+
{"name": "self", "type": "address", "internalType": "address"}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "error",
|
|
204
|
+
"name": "OwnableInvalidOwner",
|
|
205
|
+
"inputs": [
|
|
206
|
+
{"name": "owner", "type": "address", "internalType": "address"}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "error",
|
|
211
|
+
"name": "OwnableUnauthorizedAccount",
|
|
212
|
+
"inputs": [
|
|
213
|
+
{"name": "account", "type": "address", "internalType": "address"}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{"type": "error", "name": "SafeTransferFailed", "inputs": []}
|
|
217
|
+
]
|
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
"type": "address",
|
|
8
8
|
"internalType": "contract IWETH"
|
|
9
9
|
},
|
|
10
|
+
{
|
|
11
|
+
"name": "nativeOrderFactory",
|
|
12
|
+
"type": "address",
|
|
13
|
+
"internalType": "address"
|
|
14
|
+
},
|
|
10
15
|
{
|
|
11
16
|
"name": "limitOrderProtocol",
|
|
12
17
|
"type": "address",
|
|
@@ -20,52 +25,13 @@
|
|
|
20
25
|
],
|
|
21
26
|
"stateMutability": "nonpayable"
|
|
22
27
|
},
|
|
23
|
-
{
|
|
24
|
-
"type": "receive",
|
|
25
|
-
"stateMutability": "payable"
|
|
26
|
-
},
|
|
28
|
+
{"type": "receive", "stateMutability": "payable"},
|
|
27
29
|
{
|
|
28
30
|
"type": "function",
|
|
29
|
-
"name": "
|
|
31
|
+
"name": "cancelExpiredOrderByResolver",
|
|
30
32
|
"inputs": [
|
|
31
33
|
{
|
|
32
|
-
"name": "
|
|
33
|
-
"type": "uint256",
|
|
34
|
-
"internalType": "MakerTraits"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "orderHash",
|
|
38
|
-
"type": "bytes32",
|
|
39
|
-
"internalType": "bytes32"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"outputs": [],
|
|
43
|
-
"stateMutability": "nonpayable"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"type": "function",
|
|
47
|
-
"name": "cancelOrderByResolver",
|
|
48
|
-
"inputs": [
|
|
49
|
-
{
|
|
50
|
-
"name": "makerTraits",
|
|
51
|
-
"type": "uint256",
|
|
52
|
-
"internalType": "MakerTraits"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "orderHash",
|
|
56
|
-
"type": "bytes32",
|
|
57
|
-
"internalType": "bytes32"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"outputs": [],
|
|
61
|
-
"stateMutability": "nonpayable"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"type": "function",
|
|
65
|
-
"name": "ethOrderDeposit",
|
|
66
|
-
"inputs": [
|
|
67
|
-
{
|
|
68
|
-
"name": "order",
|
|
34
|
+
"name": "makerOrder",
|
|
69
35
|
"type": "tuple",
|
|
70
36
|
"internalType": "struct IOrderMixin.Order",
|
|
71
37
|
"components": [
|
|
@@ -112,135 +78,20 @@
|
|
|
112
78
|
]
|
|
113
79
|
},
|
|
114
80
|
{
|
|
115
|
-
"name": "
|
|
116
|
-
"type": "
|
|
117
|
-
"internalType": "
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"name": "maximumPremium",
|
|
121
|
-
"type": "uint16",
|
|
122
|
-
"internalType": "uint16"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "auctionDuration",
|
|
126
|
-
"type": "uint32",
|
|
127
|
-
"internalType": "uint32"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"outputs": [
|
|
131
|
-
{
|
|
132
|
-
"name": "orderHash",
|
|
133
|
-
"type": "bytes32",
|
|
134
|
-
"internalType": "bytes32"
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"stateMutability": "payable"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"type": "function",
|
|
141
|
-
"name": "ethOrdersBatch",
|
|
142
|
-
"inputs": [
|
|
143
|
-
{
|
|
144
|
-
"name": "orderHashes",
|
|
145
|
-
"type": "bytes32[]",
|
|
146
|
-
"internalType": "bytes32[]"
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
"outputs": [
|
|
150
|
-
{
|
|
151
|
-
"name": "ethOrders",
|
|
152
|
-
"type": "tuple[]",
|
|
153
|
-
"internalType": "struct ETHOrders.ETHOrder[]",
|
|
154
|
-
"components": [
|
|
155
|
-
{
|
|
156
|
-
"name": "maker",
|
|
157
|
-
"type": "address",
|
|
158
|
-
"internalType": "address"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"name": "balance",
|
|
162
|
-
"type": "uint96",
|
|
163
|
-
"internalType": "uint96"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "maximumPremium",
|
|
167
|
-
"type": "uint16",
|
|
168
|
-
"internalType": "uint16"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "auctionDuration",
|
|
172
|
-
"type": "uint32",
|
|
173
|
-
"internalType": "uint32"
|
|
174
|
-
}
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"stateMutability": "view"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"type": "function",
|
|
182
|
-
"name": "isValidSignature",
|
|
183
|
-
"inputs": [
|
|
184
|
-
{
|
|
185
|
-
"name": "orderHash",
|
|
186
|
-
"type": "bytes32",
|
|
187
|
-
"internalType": "bytes32"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"name": "signature",
|
|
191
|
-
"type": "bytes",
|
|
192
|
-
"internalType": "bytes"
|
|
193
|
-
}
|
|
194
|
-
],
|
|
195
|
-
"outputs": [
|
|
196
|
-
{
|
|
197
|
-
"name": "",
|
|
198
|
-
"type": "bytes4",
|
|
199
|
-
"internalType": "bytes4"
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
"stateMutability": "view"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"type": "function",
|
|
206
|
-
"name": "ordersMakersBalances",
|
|
207
|
-
"inputs": [
|
|
208
|
-
{
|
|
209
|
-
"name": "orderHash",
|
|
210
|
-
"type": "bytes32",
|
|
211
|
-
"internalType": "bytes32"
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
"outputs": [
|
|
215
|
-
{
|
|
216
|
-
"name": "maker",
|
|
217
|
-
"type": "address",
|
|
218
|
-
"internalType": "address"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"name": "balance",
|
|
222
|
-
"type": "uint96",
|
|
223
|
-
"internalType": "uint96"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"name": "maximumPremium",
|
|
227
|
-
"type": "uint16",
|
|
228
|
-
"internalType": "uint16"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"name": "auctionDuration",
|
|
232
|
-
"type": "uint32",
|
|
233
|
-
"internalType": "uint32"
|
|
81
|
+
"name": "rewardLimit",
|
|
82
|
+
"type": "uint256",
|
|
83
|
+
"internalType": "uint256"
|
|
234
84
|
}
|
|
235
85
|
],
|
|
236
|
-
"
|
|
86
|
+
"outputs": [],
|
|
87
|
+
"stateMutability": "nonpayable"
|
|
237
88
|
},
|
|
238
89
|
{
|
|
239
90
|
"type": "function",
|
|
240
|
-
"name": "
|
|
91
|
+
"name": "cancelOrder",
|
|
241
92
|
"inputs": [
|
|
242
93
|
{
|
|
243
|
-
"name": "",
|
|
94
|
+
"name": "makerOrder",
|
|
244
95
|
"type": "tuple",
|
|
245
96
|
"internalType": "struct IOrderMixin.Order",
|
|
246
97
|
"components": [
|
|
@@ -285,102 +136,78 @@
|
|
|
285
136
|
"internalType": "MakerTraits"
|
|
286
137
|
}
|
|
287
138
|
]
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"name": "",
|
|
291
|
-
"type": "bytes",
|
|
292
|
-
"internalType": "bytes"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"name": "orderHash",
|
|
296
|
-
"type": "bytes32",
|
|
297
|
-
"internalType": "bytes32"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"name": "",
|
|
301
|
-
"type": "address",
|
|
302
|
-
"internalType": "address"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"name": "makingAmount",
|
|
306
|
-
"type": "uint256",
|
|
307
|
-
"internalType": "uint256"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"name": "",
|
|
311
|
-
"type": "uint256",
|
|
312
|
-
"internalType": "uint256"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"name": "",
|
|
316
|
-
"type": "uint256",
|
|
317
|
-
"internalType": "uint256"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"name": "",
|
|
321
|
-
"type": "bytes",
|
|
322
|
-
"internalType": "bytes"
|
|
323
139
|
}
|
|
324
140
|
],
|
|
325
141
|
"outputs": [],
|
|
326
142
|
"stateMutability": "nonpayable"
|
|
327
143
|
},
|
|
328
144
|
{
|
|
329
|
-
"type": "
|
|
330
|
-
"name": "
|
|
145
|
+
"type": "function",
|
|
146
|
+
"name": "decimals",
|
|
147
|
+
"inputs": [],
|
|
148
|
+
"outputs": [{"name": "", "type": "uint8", "internalType": "uint8"}],
|
|
149
|
+
"stateMutability": "pure"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "function",
|
|
153
|
+
"name": "depositAndApprove",
|
|
154
|
+
"inputs": [],
|
|
155
|
+
"outputs": [],
|
|
156
|
+
"stateMutability": "payable"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"type": "function",
|
|
160
|
+
"name": "isValidSignature",
|
|
331
161
|
"inputs": [
|
|
332
|
-
{
|
|
333
|
-
|
|
334
|
-
"type": "bytes32",
|
|
335
|
-
"indexed": false,
|
|
336
|
-
"internalType": "bytes32"
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
"name": "amount",
|
|
340
|
-
"type": "uint256",
|
|
341
|
-
"indexed": false,
|
|
342
|
-
"internalType": "uint256"
|
|
343
|
-
}
|
|
162
|
+
{"name": "hash", "type": "bytes32", "internalType": "bytes32"},
|
|
163
|
+
{"name": "signature", "type": "bytes", "internalType": "bytes"}
|
|
344
164
|
],
|
|
345
|
-
"
|
|
165
|
+
"outputs": [{"name": "", "type": "bytes4", "internalType": "bytes4"}],
|
|
166
|
+
"stateMutability": "view"
|
|
346
167
|
},
|
|
347
168
|
{
|
|
348
|
-
"type": "
|
|
349
|
-
"name": "
|
|
169
|
+
"type": "function",
|
|
170
|
+
"name": "name",
|
|
171
|
+
"inputs": [],
|
|
172
|
+
"outputs": [{"name": "", "type": "string", "internalType": "string"}],
|
|
173
|
+
"stateMutability": "pure"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "function",
|
|
177
|
+
"name": "rescueFunds",
|
|
350
178
|
"inputs": [
|
|
351
|
-
{
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
"indexed": false,
|
|
355
|
-
"internalType": "bytes32"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"name": "amount",
|
|
359
|
-
"type": "uint256",
|
|
360
|
-
"indexed": false,
|
|
361
|
-
"internalType": "uint256"
|
|
362
|
-
}
|
|
179
|
+
{"name": "token", "type": "address", "internalType": "address"},
|
|
180
|
+
{"name": "to", "type": "address", "internalType": "address"},
|
|
181
|
+
{"name": "amount", "type": "uint256", "internalType": "uint256"}
|
|
363
182
|
],
|
|
364
|
-
"
|
|
183
|
+
"outputs": [],
|
|
184
|
+
"stateMutability": "nonpayable"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "function",
|
|
188
|
+
"name": "symbol",
|
|
189
|
+
"inputs": [],
|
|
190
|
+
"outputs": [{"name": "", "type": "string", "internalType": "string"}],
|
|
191
|
+
"stateMutability": "pure"
|
|
365
192
|
},
|
|
366
193
|
{
|
|
367
194
|
"type": "event",
|
|
368
|
-
"name": "
|
|
195
|
+
"name": "NativeOrderCancelled",
|
|
369
196
|
"inputs": [
|
|
370
197
|
{
|
|
371
|
-
"name": "
|
|
198
|
+
"name": "makerOrderHash",
|
|
372
199
|
"type": "bytes32",
|
|
373
200
|
"indexed": false,
|
|
374
201
|
"internalType": "bytes32"
|
|
375
202
|
},
|
|
376
203
|
{
|
|
377
|
-
"name": "
|
|
204
|
+
"name": "balance",
|
|
378
205
|
"type": "uint256",
|
|
379
206
|
"indexed": false,
|
|
380
207
|
"internalType": "uint256"
|
|
381
208
|
},
|
|
382
209
|
{
|
|
383
|
-
"name": "
|
|
210
|
+
"name": "resolverReward",
|
|
384
211
|
"type": "uint256",
|
|
385
212
|
"indexed": false,
|
|
386
213
|
"internalType": "uint256"
|
|
@@ -388,44 +215,72 @@
|
|
|
388
215
|
],
|
|
389
216
|
"anonymous": false
|
|
390
217
|
},
|
|
218
|
+
{"type": "error", "name": "CanNotCancelForZeroBalance", "inputs": []},
|
|
219
|
+
{"type": "error", "name": "EthDepositRejected", "inputs": []},
|
|
220
|
+
{"type": "error", "name": "ForceApproveFailed", "inputs": []},
|
|
391
221
|
{
|
|
392
222
|
"type": "error",
|
|
393
|
-
"name": "
|
|
394
|
-
"inputs": [
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
"name": "CancelOrderByResolverIsForbidden",
|
|
399
|
-
"inputs": []
|
|
223
|
+
"name": "OnlyFactoryViolation",
|
|
224
|
+
"inputs": [
|
|
225
|
+
{"name": "sender", "type": "address", "internalType": "address"},
|
|
226
|
+
{"name": "factory", "type": "address", "internalType": "address"}
|
|
227
|
+
]
|
|
400
228
|
},
|
|
401
229
|
{
|
|
402
230
|
"type": "error",
|
|
403
|
-
"name": "
|
|
404
|
-
"inputs": [
|
|
231
|
+
"name": "OnlyLimitOrderProtocolViolation",
|
|
232
|
+
"inputs": [
|
|
233
|
+
{"name": "sender", "type": "address", "internalType": "address"},
|
|
234
|
+
{
|
|
235
|
+
"name": "limitOrderProtocol",
|
|
236
|
+
"type": "address",
|
|
237
|
+
"internalType": "address"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
405
240
|
},
|
|
406
241
|
{
|
|
407
242
|
"type": "error",
|
|
408
|
-
"name": "
|
|
409
|
-
"inputs": [
|
|
243
|
+
"name": "OrderIsIncorrect",
|
|
244
|
+
"inputs": [
|
|
245
|
+
{"name": "expected", "type": "address", "internalType": "address"},
|
|
246
|
+
{"name": "actual", "type": "address", "internalType": "address"}
|
|
247
|
+
]
|
|
410
248
|
},
|
|
411
249
|
{
|
|
412
250
|
"type": "error",
|
|
413
|
-
"name": "
|
|
414
|
-
"inputs": [
|
|
251
|
+
"name": "OrderShouldBeExpired",
|
|
252
|
+
"inputs": [
|
|
253
|
+
{
|
|
254
|
+
"name": "currentTime",
|
|
255
|
+
"type": "uint256",
|
|
256
|
+
"internalType": "uint256"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "expirationTime",
|
|
260
|
+
"type": "uint256",
|
|
261
|
+
"internalType": "uint256"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
415
264
|
},
|
|
416
265
|
{
|
|
417
266
|
"type": "error",
|
|
418
|
-
"name": "
|
|
419
|
-
"inputs": [
|
|
267
|
+
"name": "RescueFundsTooMuch",
|
|
268
|
+
"inputs": [
|
|
269
|
+
{"name": "requested", "type": "uint256", "internalType": "uint256"},
|
|
270
|
+
{"name": "available", "type": "uint256", "internalType": "uint256"}
|
|
271
|
+
]
|
|
420
272
|
},
|
|
421
273
|
{
|
|
422
274
|
"type": "error",
|
|
423
|
-
"name": "
|
|
424
|
-
"inputs": [
|
|
275
|
+
"name": "ResolverAccessTokenMissing",
|
|
276
|
+
"inputs": [
|
|
277
|
+
{"name": "resolver", "type": "address", "internalType": "address"},
|
|
278
|
+
{
|
|
279
|
+
"name": "accessToken",
|
|
280
|
+
"type": "address",
|
|
281
|
+
"internalType": "address"
|
|
282
|
+
}
|
|
283
|
+
]
|
|
425
284
|
},
|
|
426
|
-
{
|
|
427
|
-
"type": "error",
|
|
428
|
-
"name": "RewardIsTooBig",
|
|
429
|
-
"inputs": []
|
|
430
|
-
}
|
|
285
|
+
{"type": "error", "name": "SafeTransferFailed", "inputs": []}
|
|
431
286
|
]
|