@kayenfi/limit-order-sdk 0.0.1
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/LICENSE +21 -0
- package/README.md +107 -0
- package/dist/abis/MockERC20.json +1606 -0
- package/dist/abis/deploylessMulticall2.json +30 -0
- package/dist/abis/multicall2.json +315 -0
- package/dist/src/builder/OrderBuilder.d.ts +17 -0
- package/dist/src/builder/OrderBuilder.js +59 -0
- package/dist/src/builder/OrderBuilder.js.map +1 -0
- package/dist/src/builder/V2DutchOrderBuilder.d.ts +33 -0
- package/dist/src/builder/V2DutchOrderBuilder.js +244 -0
- package/dist/src/builder/V2DutchOrderBuilder.js.map +1 -0
- package/dist/src/builder/index.d.ts +3 -0
- package/dist/src/builder/index.js +10 -0
- package/dist/src/builder/index.js.map +1 -0
- package/dist/src/constants.d.ts +37 -0
- package/dist/src/constants.js +73 -0
- package/dist/src/constants.js.map +1 -0
- package/dist/src/constants.test.d.ts +1 -0
- package/dist/src/constants.test.js +20 -0
- package/dist/src/constants.test.js.map +1 -0
- package/dist/src/contracts/DeploylessMulticall2.d.ts +37 -0
- package/dist/src/contracts/DeploylessMulticall2.js +3 -0
- package/dist/src/contracts/DeploylessMulticall2.js.map +1 -0
- package/dist/src/contracts/DutchLimitOrderReactor.d.ts +191 -0
- package/dist/src/contracts/DutchLimitOrderReactor.js +3 -0
- package/dist/src/contracts/DutchLimitOrderReactor.js.map +1 -0
- package/dist/src/contracts/DutchOrderReactor.d.ts +191 -0
- package/dist/src/contracts/DutchOrderReactor.js +3 -0
- package/dist/src/contracts/DutchOrderReactor.js.map +1 -0
- package/dist/src/contracts/ExclusiveDutchOrderReactor.d.ts +207 -0
- package/dist/src/contracts/ExclusiveDutchOrderReactor.js +3 -0
- package/dist/src/contracts/ExclusiveDutchOrderReactor.js.map +1 -0
- package/dist/src/contracts/ExclusiveFillerValidation.d.ts +105 -0
- package/dist/src/contracts/ExclusiveFillerValidation.js +3 -0
- package/dist/src/contracts/ExclusiveFillerValidation.js.map +1 -0
- package/dist/src/contracts/MockERC20.d.ts +242 -0
- package/dist/src/contracts/MockERC20.js +3 -0
- package/dist/src/contracts/MockERC20.js.map +1 -0
- package/dist/src/contracts/Multicall2.d.ts +218 -0
- package/dist/src/contracts/Multicall2.js +3 -0
- package/dist/src/contracts/Multicall2.js.map +1 -0
- package/dist/src/contracts/OrderQuoter.d.ts +131 -0
- package/dist/src/contracts/OrderQuoter.js +3 -0
- package/dist/src/contracts/OrderQuoter.js.map +1 -0
- package/dist/src/contracts/Permit2.d.ts +533 -0
- package/dist/src/contracts/Permit2.js +3 -0
- package/dist/src/contracts/Permit2.js.map +1 -0
- package/dist/src/contracts/SwapRouter02Executor.d.ts +240 -0
- package/dist/src/contracts/SwapRouter02Executor.js +3 -0
- package/dist/src/contracts/SwapRouter02Executor.js.map +1 -0
- package/dist/src/contracts/V2DutchOrderReactor.d.ts +207 -0
- package/dist/src/contracts/V2DutchOrderReactor.js +3 -0
- package/dist/src/contracts/V2DutchOrderReactor.js.map +1 -0
- package/dist/src/contracts/common.d.ts +22 -0
- package/dist/src/contracts/common.js +3 -0
- package/dist/src/contracts/common.js.map +1 -0
- package/dist/src/contracts/factories/DeploylessMulticall2__factory.d.ts +29 -0
- package/dist/src/contracts/factories/DeploylessMulticall2__factory.js +48 -0
- package/dist/src/contracts/factories/DeploylessMulticall2__factory.js.map +1 -0
- package/dist/src/contracts/factories/DutchLimitOrderReactor__factory.d.ts +87 -0
- package/dist/src/contracts/factories/DutchLimitOrderReactor__factory.js +385 -0
- package/dist/src/contracts/factories/DutchLimitOrderReactor__factory.js.map +1 -0
- package/dist/src/contracts/factories/DutchOrderReactor__factory.d.ts +87 -0
- package/dist/src/contracts/factories/DutchOrderReactor__factory.js +385 -0
- package/dist/src/contracts/factories/DutchOrderReactor__factory.js.map +1 -0
- package/dist/src/contracts/factories/ExclusiveDutchOrderReactor__factory.d.ts +297 -0
- package/dist/src/contracts/factories/ExclusiveDutchOrderReactor__factory.js +400 -0
- package/dist/src/contracts/factories/ExclusiveDutchOrderReactor__factory.js.map +1 -0
- package/dist/src/contracts/factories/ExclusiveFillerValidation__factory.d.ts +115 -0
- package/dist/src/contracts/factories/ExclusiveFillerValidation__factory.js +165 -0
- package/dist/src/contracts/factories/ExclusiveFillerValidation__factory.js.map +1 -0
- package/dist/src/contracts/factories/MockERC20__factory.d.ts +301 -0
- package/dist/src/contracts/factories/MockERC20__factory.js +408 -0
- package/dist/src/contracts/factories/MockERC20__factory.js.map +1 -0
- package/dist/src/contracts/factories/Multicall2__factory.d.ts +245 -0
- package/dist/src/contracts/factories/Multicall2__factory.js +333 -0
- package/dist/src/contracts/factories/Multicall2__factory.js.map +1 -0
- package/dist/src/contracts/factories/OrderQuoter__factory.d.ts +215 -0
- package/dist/src/contracts/factories/OrderQuoter__factory.js +295 -0
- package/dist/src/contracts/factories/OrderQuoter__factory.js.map +1 -0
- package/dist/src/contracts/factories/Permit2__factory.d.ts +720 -0
- package/dist/src/contracts/factories/Permit2__factory.js +942 -0
- package/dist/src/contracts/factories/Permit2__factory.js.map +1 -0
- package/dist/src/contracts/factories/SwapRouter02Executor__factory.d.ts +257 -0
- package/dist/src/contracts/factories/SwapRouter02Executor__factory.js +348 -0
- package/dist/src/contracts/factories/SwapRouter02Executor__factory.js.map +1 -0
- package/dist/src/contracts/factories/V2DutchOrderReactor__factory.d.ts +297 -0
- package/dist/src/contracts/factories/V2DutchOrderReactor__factory.js +400 -0
- package/dist/src/contracts/factories/V2DutchOrderReactor__factory.js.map +1 -0
- package/dist/src/contracts/factories/index.d.ts +9 -0
- package/dist/src/contracts/factories/index.js +25 -0
- package/dist/src/contracts/factories/index.js.map +1 -0
- package/dist/src/contracts/index.d.ts +19 -0
- package/dist/src/contracts/index.js +24 -0
- package/dist/src/contracts/index.js.map +1 -0
- package/dist/src/errors.d.ts +3 -0
- package/dist/src/errors.js +11 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/index.d.ts +5 -0
- package/dist/src/index.js +9 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/order/DutchOrder.d.ts +67 -0
- package/dist/src/order/DutchOrder.js +291 -0
- package/dist/src/order/DutchOrder.js.map +1 -0
- package/dist/src/order/DutchOrder.test.d.ts +1 -0
- package/dist/src/order/DutchOrder.test.js +166 -0
- package/dist/src/order/DutchOrder.test.js.map +1 -0
- package/dist/src/order/V2DutchOrder.d.ts +120 -0
- package/dist/src/order/V2DutchOrder.js +391 -0
- package/dist/src/order/V2DutchOrder.js.map +1 -0
- package/dist/src/order/V2DutchOrder.test.d.ts +1 -0
- package/dist/src/order/V2DutchOrder.test.js +272 -0
- package/dist/src/order/V2DutchOrder.test.js.map +1 -0
- package/dist/src/order/index.d.ts +6 -0
- package/dist/src/order/index.js +7 -0
- package/dist/src/order/index.js.map +1 -0
- package/dist/src/order/types.d.ts +70 -0
- package/dist/src/order/types.js +3 -0
- package/dist/src/order/types.js.map +1 -0
- package/dist/src/order/validation.d.ts +24 -0
- package/dist/src/order/validation.js +61 -0
- package/dist/src/order/validation.js.map +1 -0
- package/dist/src/order/validation.test.d.ts +1 -0
- package/dist/src/order/validation.test.js +58 -0
- package/dist/src/order/validation.test.js.map +1 -0
- package/dist/src/trade/DutchOrderTrade.d.ts +33 -0
- package/dist/src/trade/DutchOrderTrade.js +81 -0
- package/dist/src/trade/DutchOrderTrade.js.map +1 -0
- package/dist/src/trade/DutchOrderTrade.test.d.ts +1 -0
- package/dist/src/trade/DutchOrderTrade.test.js +93 -0
- package/dist/src/trade/DutchOrderTrade.test.js.map +1 -0
- package/dist/src/trade/V2DutchOrderTrade.d.ts +34 -0
- package/dist/src/trade/V2DutchOrderTrade.js +81 -0
- package/dist/src/trade/V2DutchOrderTrade.js.map +1 -0
- package/dist/src/trade/V2DutchOrderTrade.test.d.ts +1 -0
- package/dist/src/trade/V2DutchOrderTrade.test.js +93 -0
- package/dist/src/trade/V2DutchOrderTrade.test.js.map +1 -0
- package/dist/src/trade/index.d.ts +1 -0
- package/dist/src/trade/index.js +5 -0
- package/dist/src/trade/index.js.map +1 -0
- package/dist/src/trade/utils.d.ts +6 -0
- package/dist/src/trade/utils.js +30 -0
- package/dist/src/trade/utils.js.map +1 -0
- package/dist/src/utils/EventWatcher.d.ts +41 -0
- package/dist/src/utils/EventWatcher.js +97 -0
- package/dist/src/utils/EventWatcher.js.map +1 -0
- package/dist/src/utils/NonceManager.d.ts +36 -0
- package/dist/src/utils/NonceManager.js +134 -0
- package/dist/src/utils/NonceManager.js.map +1 -0
- package/dist/src/utils/NonceManager.test.d.ts +1 -0
- package/dist/src/utils/NonceManager.test.js +131 -0
- package/dist/src/utils/NonceManager.test.js.map +1 -0
- package/dist/src/utils/OrderQuoter.d.ts +53 -0
- package/dist/src/utils/OrderQuoter.js +196 -0
- package/dist/src/utils/OrderQuoter.js.map +1 -0
- package/dist/src/utils/OrderValidator.d.ts +8 -0
- package/dist/src/utils/OrderValidator.js +28 -0
- package/dist/src/utils/OrderValidator.js.map +1 -0
- package/dist/src/utils/dutchDecay.d.ts +8 -0
- package/dist/src/utils/dutchDecay.js +32 -0
- package/dist/src/utils/dutchDecay.js.map +1 -0
- package/dist/src/utils/dutchDecay.test.d.ts +1 -0
- package/dist/src/utils/dutchDecay.test.js +61 -0
- package/dist/src/utils/dutchDecay.test.js.map +1 -0
- package/dist/src/utils/index.d.ts +11 -0
- package/dist/src/utils/index.js +50 -0
- package/dist/src/utils/index.js.map +1 -0
- package/dist/src/utils/multicall.d.ts +36 -0
- package/dist/src/utils/multicall.js +91 -0
- package/dist/src/utils/multicall.js.map +1 -0
- package/dist/src/utils/order.d.ts +32 -0
- package/dist/src/utils/order.js +86 -0
- package/dist/src/utils/order.js.map +1 -0
- package/dist/src/utils/order.test.d.ts +1 -0
- package/dist/src/utils/order.test.js +109 -0
- package/dist/src/utils/order.test.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Multicall2__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
components: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "target",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
internalType: "bytes",
|
|
20
|
+
name: "callData",
|
|
21
|
+
type: "bytes",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
internalType: "struct Multicall2.Call[]",
|
|
25
|
+
name: "calls",
|
|
26
|
+
type: "tuple[]",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
name: "aggregate",
|
|
30
|
+
outputs: [
|
|
31
|
+
{
|
|
32
|
+
internalType: "uint256",
|
|
33
|
+
name: "blockNumber",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
internalType: "bytes[]",
|
|
38
|
+
name: "returnData",
|
|
39
|
+
type: "bytes[]",
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
payable: false,
|
|
43
|
+
stateMutability: "view",
|
|
44
|
+
type: "function",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
components: [
|
|
50
|
+
{
|
|
51
|
+
internalType: "address",
|
|
52
|
+
name: "target",
|
|
53
|
+
type: "address",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
internalType: "bytes",
|
|
57
|
+
name: "callData",
|
|
58
|
+
type: "bytes",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
internalType: "struct Multicall2.Call[]",
|
|
62
|
+
name: "calls",
|
|
63
|
+
type: "tuple[]",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
name: "blockAndAggregate",
|
|
67
|
+
outputs: [
|
|
68
|
+
{
|
|
69
|
+
internalType: "uint256",
|
|
70
|
+
name: "blockNumber",
|
|
71
|
+
type: "uint256",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
internalType: "bytes32",
|
|
75
|
+
name: "blockHash",
|
|
76
|
+
type: "bytes32",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
components: [
|
|
80
|
+
{
|
|
81
|
+
internalType: "bool",
|
|
82
|
+
name: "success",
|
|
83
|
+
type: "bool",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
internalType: "bytes",
|
|
87
|
+
name: "returnData",
|
|
88
|
+
type: "bytes",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
internalType: "struct Multicall2.Result[]",
|
|
92
|
+
name: "returnData",
|
|
93
|
+
type: "tuple[]",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
stateMutability: "nonpayable",
|
|
97
|
+
type: "function",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
inputs: [
|
|
101
|
+
{
|
|
102
|
+
internalType: "uint256",
|
|
103
|
+
name: "blockNumber",
|
|
104
|
+
type: "uint256",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
name: "getBlockHash",
|
|
108
|
+
outputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "bytes32",
|
|
111
|
+
name: "blockHash",
|
|
112
|
+
type: "bytes32",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
stateMutability: "view",
|
|
116
|
+
type: "function",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
inputs: [],
|
|
120
|
+
name: "getBlockNumber",
|
|
121
|
+
outputs: [
|
|
122
|
+
{
|
|
123
|
+
internalType: "uint256",
|
|
124
|
+
name: "blockNumber",
|
|
125
|
+
type: "uint256",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
stateMutability: "view",
|
|
129
|
+
type: "function",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
inputs: [],
|
|
133
|
+
name: "getCurrentBlockCoinbase",
|
|
134
|
+
outputs: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "address",
|
|
137
|
+
name: "coinbase",
|
|
138
|
+
type: "address",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
stateMutability: "view",
|
|
142
|
+
type: "function",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
inputs: [],
|
|
146
|
+
name: "getCurrentBlockDifficulty",
|
|
147
|
+
outputs: [
|
|
148
|
+
{
|
|
149
|
+
internalType: "uint256",
|
|
150
|
+
name: "difficulty",
|
|
151
|
+
type: "uint256",
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
stateMutability: "view",
|
|
155
|
+
type: "function",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
inputs: [],
|
|
159
|
+
name: "getCurrentBlockGasLimit",
|
|
160
|
+
outputs: [
|
|
161
|
+
{
|
|
162
|
+
internalType: "uint256",
|
|
163
|
+
name: "gaslimit",
|
|
164
|
+
type: "uint256",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
stateMutability: "view",
|
|
168
|
+
type: "function",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
inputs: [],
|
|
172
|
+
name: "getCurrentBlockTimestamp",
|
|
173
|
+
outputs: [
|
|
174
|
+
{
|
|
175
|
+
internalType: "uint256",
|
|
176
|
+
name: "timestamp",
|
|
177
|
+
type: "uint256",
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
stateMutability: "view",
|
|
181
|
+
type: "function",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
inputs: [
|
|
185
|
+
{
|
|
186
|
+
internalType: "address",
|
|
187
|
+
name: "addr",
|
|
188
|
+
type: "address",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
name: "getEthBalance",
|
|
192
|
+
outputs: [
|
|
193
|
+
{
|
|
194
|
+
internalType: "uint256",
|
|
195
|
+
name: "balance",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
stateMutability: "view",
|
|
200
|
+
type: "function",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
inputs: [],
|
|
204
|
+
name: "getLastBlockHash",
|
|
205
|
+
outputs: [
|
|
206
|
+
{
|
|
207
|
+
internalType: "bytes32",
|
|
208
|
+
name: "blockHash",
|
|
209
|
+
type: "bytes32",
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
stateMutability: "view",
|
|
213
|
+
type: "function",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
inputs: [
|
|
217
|
+
{
|
|
218
|
+
internalType: "bool",
|
|
219
|
+
name: "requireSuccess",
|
|
220
|
+
type: "bool",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
components: [
|
|
224
|
+
{
|
|
225
|
+
internalType: "address",
|
|
226
|
+
name: "target",
|
|
227
|
+
type: "address",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
internalType: "bytes",
|
|
231
|
+
name: "callData",
|
|
232
|
+
type: "bytes",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
internalType: "struct Multicall2.Call[]",
|
|
236
|
+
name: "calls",
|
|
237
|
+
type: "tuple[]",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
name: "tryAggregate",
|
|
241
|
+
outputs: [
|
|
242
|
+
{
|
|
243
|
+
components: [
|
|
244
|
+
{
|
|
245
|
+
internalType: "bool",
|
|
246
|
+
name: "success",
|
|
247
|
+
type: "bool",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
internalType: "bytes",
|
|
251
|
+
name: "returnData",
|
|
252
|
+
type: "bytes",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
internalType: "struct Multicall2.Result[]",
|
|
256
|
+
name: "returnData",
|
|
257
|
+
type: "tuple[]",
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
payable: false,
|
|
261
|
+
stateMutability: "view",
|
|
262
|
+
type: "function",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
inputs: [
|
|
266
|
+
{
|
|
267
|
+
internalType: "bool",
|
|
268
|
+
name: "requireSuccess",
|
|
269
|
+
type: "bool",
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
components: [
|
|
273
|
+
{
|
|
274
|
+
internalType: "address",
|
|
275
|
+
name: "target",
|
|
276
|
+
type: "address",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
internalType: "bytes",
|
|
280
|
+
name: "callData",
|
|
281
|
+
type: "bytes",
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
internalType: "struct Multicall2.Call[]",
|
|
285
|
+
name: "calls",
|
|
286
|
+
type: "tuple[]",
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
name: "tryBlockAndAggregate",
|
|
290
|
+
outputs: [
|
|
291
|
+
{
|
|
292
|
+
internalType: "uint256",
|
|
293
|
+
name: "blockNumber",
|
|
294
|
+
type: "uint256",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
internalType: "bytes32",
|
|
298
|
+
name: "blockHash",
|
|
299
|
+
type: "bytes32",
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
components: [
|
|
303
|
+
{
|
|
304
|
+
internalType: "bool",
|
|
305
|
+
name: "success",
|
|
306
|
+
type: "bool",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
internalType: "bytes",
|
|
310
|
+
name: "returnData",
|
|
311
|
+
type: "bytes",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
internalType: "struct Multicall2.Result[]",
|
|
315
|
+
name: "returnData",
|
|
316
|
+
type: "tuple[]",
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
stateMutability: "nonpayable",
|
|
320
|
+
type: "function",
|
|
321
|
+
},
|
|
322
|
+
];
|
|
323
|
+
class Multicall2__factory {
|
|
324
|
+
static createInterface() {
|
|
325
|
+
return new ethers_1.utils.Interface(_abi);
|
|
326
|
+
}
|
|
327
|
+
static connect(address, signerOrProvider) {
|
|
328
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
exports.Multicall2__factory = Multicall2__factory;
|
|
332
|
+
Multicall2__factory.abi = _abi;
|
|
333
|
+
//# sourceMappingURL=Multicall2__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Multicall2__factory.js","sourceRoot":"","sources":["../../../../src/contracts/factories/Multicall2__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAiD;AAIjD,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,UAAU,EAAE;oBACV;wBACE,YAAY,EAAE,SAAS;wBACvB,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,YAAY,EAAE,OAAO;wBACrB,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD,YAAY,EAAE,0BAA0B;gBACxC,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,OAAO,EAAE,KAAK;QACd,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;g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AI,EAAE,QAAQ;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,YAAY,EAAE,OAAO;wBACrB,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD,YAAY,EAAE,0BAA0B;gBACxC,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,sBAAsB;QAC5B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,UAAU,EAAE;oBACV;wBACE,YAAY,EAAE,MAAM;wBACpB,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,MAAM;qBACb;oBACD;wBACE,YAAY,EAAE,OAAO;wBACrB,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD,YAAY,EAAE,4BAA4B;gBAC1C,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAa,mBAAmB;IAE9B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,cAAK,CAAC,SAAS,CAAC,IAAI,CAAwB,CAAC;IAC1D,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,gBAAmC;QAEnC,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAe,CAAC;IACrE,CAAC;;AAVH,kDAWC;AAViB,uBAAG,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
2
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
3
|
+
import type { PromiseOrValue } from "../common";
|
|
4
|
+
import type { OrderQuoter, OrderQuoterInterface } from "../OrderQuoter";
|
|
5
|
+
type OrderQuoterConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class OrderQuoter__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: OrderQuoterConstructorParams);
|
|
8
|
+
deploy(overrides?: Overrides & {
|
|
9
|
+
from?: PromiseOrValue<string>;
|
|
10
|
+
}): Promise<OrderQuoter>;
|
|
11
|
+
getDeployTransaction(overrides?: Overrides & {
|
|
12
|
+
from?: PromiseOrValue<string>;
|
|
13
|
+
}): TransactionRequest;
|
|
14
|
+
attach(address: string): OrderQuoter;
|
|
15
|
+
connect(signer: Signer): OrderQuoter__factory;
|
|
16
|
+
static readonly bytecode = "0x608060405234801561001057600080fd5b50610df8806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806341d88d6914610046578063585da6281461006f5780637671d07b14610084575b600080fd5b6100596100543660046104bb565b6100c5565b60405161006691906105f7565b60405180910390f35b61008261007d3660046108ec565b610221565b005b6100a0610092366004610a62565b604081810151909101015190565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610066565b6040805161016081018252600060a0820181815260c0830182905260e083018290526101008301829052610120830182905260606101408401819052908352835180820185528281526020808201849052818601849052840152928201839052828201929092526080810191909152604080840151840101516040805180820182528581526020808201869052825190810183526000815291517f0d33588400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9390931692630d335884926101af9291600401610a9f565b600060405180830381600087803b1580156101c957600080fd5b505af19250505080156101da575060015b61021b573d808015610208576040519150601f19603f3d011682016040523d82523d6000602084013e61020d565b606091505b50610217816102a2565b9150505b92915050565b815160011461025c576040517f06ee987800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008260008151811061027157610271610b13565b602002602001015160405160200161028991906105f7565b6040516020818303038152906040529050805181602001fd5b6040805161016081018252600060a0820181815260c080840183905260e08401839052610100840183905261012084018390526060610140850181905291845284518083018652838152602080820185905281870185905285015293830181905280830152608082015282519091111561031e57815182602001fd5b8180602001905181019061021b9190610cf0565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160c0810167ffffffffffffffff8111828210171561038457610384610332565b60405290565b6040516060810167ffffffffffffffff8111828210171561038457610384610332565b60405160a0810167ffffffffffffffff8111828210171561038457610384610332565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561041757610417610332565b604052919050565b600067ffffffffffffffff82111561043957610439610332565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f83011261047657600080fd5b81356104896104848261041f565b6103d0565b81815284602083860101111561049e57600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156104ce57600080fd5b823567ffffffffffffffff808211156104e657600080fd5b6104f286838701610465565b9350602085013591508082111561050857600080fd5b5061051585828601610465565b9150509250929050565b60005b8381101561053a578181015183820152602001610522565b50506000910152565b6000815180845261055b81602086016020860161051f565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b600081518084526020808501945080840160005b838110156105ec578151805173ffffffffffffffffffffffffffffffffffffffff908116895284820151858a01526040918201511690880152606090960195908201906001016105a1565b509495945050505050565b602081526000825160e0602084015273ffffffffffffffffffffffffffffffffffffffff808251166101008501528060208301511661012085015260408201516101408501526060820151610160850152806080830151166101808501525060a0810151905060c06101a08401526106736101c0840182610543565b905060208401516106b16040850182805173ffffffffffffffffffffffffffffffffffffffff16825260208082015190830152604090810151910152565b5060408401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0808584030160a08601526106ec838361058d565b925060608601519150808584030160c08601525061070a8282610543565b915050608084015160e08401528091505092915050565b600067ffffffffffffffff82111561073b5761073b610332565b5060051b60200190565b73ffffffffffffffffffffffffffffffffffffffff8116811461076757600080fd5b50565b600060c0828403121561077c57600080fd5b610784610361565b9050813561079181610745565b815260208201356107a181610745565b80602083015250604082013560408201526060820135606082015260808201356107ca81610745565b608082015260a082013567ffffffffffffffff8111156107e957600080fd5b6107f584828501610465565b60a08301525092915050565b60006060828403121561081357600080fd5b61081b61038a565b9050813561082881610745565b80825250602082013560208201526040820135604082015292915050565b600082601f83011261085757600080fd5b8135602061086761048483610721565b8281526060928302850182019282820191908785111561088657600080fd5b8387015b858110156108df5781818a0312156108a25760008081fd5b6108aa61038a565b81356108b581610745565b815281860135868201526040808301356108ce81610745565b90820152845292840192810161088a565b5090979650505050505050565b600080604083850312156108ff57600080fd5b823567ffffffffffffffff8082111561091757600080fd5b818501915085601f83011261092b57600080fd5b8135602061093b61048483610721565b82815260059290921b8401810191818101908984111561095a57600080fd5b8286015b84811015610a4b578035868111156109765760008081fd5b870160e0818d037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0018113156109ac5760008081fd5b6109b46103ad565b86830135898111156109c65760008081fd5b6109d48f898387010161076a565b8252506109e48e60408501610801565b8782015260a0830135898111156109fb5760008081fd5b610a098f8983870101610846565b60408301525060c083013589811115610a225760008081fd5b610a308f8983870101610465565b6060830152509101356080820152835291830191830161095e565b509650508601359250508082111561050857600080fd5b600060208284031215610a7457600080fd5b813567ffffffffffffffff811115610a8b57600080fd5b610a9784828501610465565b949350505050565b6040815260008351604080840152610aba6080840182610543565b905060208501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0848303016060850152610af58282610543565b9150508281036020840152610b0a8185610543565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082601f830112610b5357600080fd5b8151610b616104848261041f565b818152846020838601011115610b7657600080fd5b610a9782602083016020870161051f565b600060c08284031215610b9957600080fd5b610ba1610361565b90508151610bae81610745565b81526020820151610bbe81610745565b8060208301525060408201516040820152606082015160608201526080820151610be781610745565b608082015260a082015167ffffffffffffffff811115610c0657600080fd5b6107f584828501610b42565b600060608284031215610c2457600080fd5b610c2c61038a565b90508151610c3981610745565b80825250602082015160208201526040820151604082015292915050565b600082601f830112610c6857600080fd5b81516020610c7861048483610721565b82815260609283028501820192828201919087851115610c9757600080fd5b8387015b858110156108df5781818a031215610cb35760008081fd5b610cbb61038a565b8151610cc681610745565b81528186015186820152604080830151610cdf81610745565b908201528452928401928101610c9b565b600060208284031215610d0257600080fd5b815167ffffffffffffffff80821115610d1a57600080fd5b9083019060e08286031215610d2e57600080fd5b610d366103ad565b825182811115610d4557600080fd5b610d5187828601610b87565b825250610d618660208501610c12565b6020820152608083015182811115610d7857600080fd5b610d8487828601610c57565b60408301525060a083015182811115610d9c57600080fd5b610da887828601610b42565b60608301525060c09290920151608083015250939250505056fea26469706673582212200f8bfac10e493298054283c6a1044fad50f6979a90490fcbe07d79ecea4c1f8964736f6c63430008130033";
|
|
17
|
+
static readonly abi: readonly [{
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "OrdersLengthIncorrect";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [{
|
|
23
|
+
readonly internalType: "bytes";
|
|
24
|
+
readonly name: "order";
|
|
25
|
+
readonly type: "bytes";
|
|
26
|
+
}];
|
|
27
|
+
readonly name: "getReactor";
|
|
28
|
+
readonly outputs: readonly [{
|
|
29
|
+
readonly internalType: "contract IReactor";
|
|
30
|
+
readonly name: "reactor";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}];
|
|
33
|
+
readonly stateMutability: "pure";
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
}, {
|
|
36
|
+
readonly inputs: readonly [{
|
|
37
|
+
readonly internalType: "bytes";
|
|
38
|
+
readonly name: "order";
|
|
39
|
+
readonly type: "bytes";
|
|
40
|
+
}, {
|
|
41
|
+
readonly internalType: "bytes";
|
|
42
|
+
readonly name: "sig";
|
|
43
|
+
readonly type: "bytes";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "quote";
|
|
46
|
+
readonly outputs: readonly [{
|
|
47
|
+
readonly components: readonly [{
|
|
48
|
+
readonly components: readonly [{
|
|
49
|
+
readonly internalType: "contract IReactor";
|
|
50
|
+
readonly name: "reactor";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "swapper";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly internalType: "uint256";
|
|
58
|
+
readonly name: "nonce";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "deadline";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}, {
|
|
65
|
+
readonly internalType: "contract IValidationCallback";
|
|
66
|
+
readonly name: "additionalValidationContract";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly internalType: "bytes";
|
|
70
|
+
readonly name: "additionalValidationData";
|
|
71
|
+
readonly type: "bytes";
|
|
72
|
+
}];
|
|
73
|
+
readonly internalType: "struct OrderInfo";
|
|
74
|
+
readonly name: "info";
|
|
75
|
+
readonly type: "tuple";
|
|
76
|
+
}, {
|
|
77
|
+
readonly components: readonly [{
|
|
78
|
+
readonly internalType: "contract ERC20";
|
|
79
|
+
readonly name: "token";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}, {
|
|
82
|
+
readonly internalType: "uint256";
|
|
83
|
+
readonly name: "amount";
|
|
84
|
+
readonly type: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
readonly name: "maxAmount";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}];
|
|
90
|
+
readonly internalType: "struct InputToken";
|
|
91
|
+
readonly name: "input";
|
|
92
|
+
readonly type: "tuple";
|
|
93
|
+
}, {
|
|
94
|
+
readonly components: readonly [{
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly name: "token";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
}, {
|
|
99
|
+
readonly internalType: "uint256";
|
|
100
|
+
readonly name: "amount";
|
|
101
|
+
readonly type: "uint256";
|
|
102
|
+
}, {
|
|
103
|
+
readonly internalType: "address";
|
|
104
|
+
readonly name: "recipient";
|
|
105
|
+
readonly type: "address";
|
|
106
|
+
}];
|
|
107
|
+
readonly internalType: "struct OutputToken[]";
|
|
108
|
+
readonly name: "outputs";
|
|
109
|
+
readonly type: "tuple[]";
|
|
110
|
+
}, {
|
|
111
|
+
readonly internalType: "bytes";
|
|
112
|
+
readonly name: "sig";
|
|
113
|
+
readonly type: "bytes";
|
|
114
|
+
}, {
|
|
115
|
+
readonly internalType: "bytes32";
|
|
116
|
+
readonly name: "hash";
|
|
117
|
+
readonly type: "bytes32";
|
|
118
|
+
}];
|
|
119
|
+
readonly internalType: "struct ResolvedOrder";
|
|
120
|
+
readonly name: "result";
|
|
121
|
+
readonly type: "tuple";
|
|
122
|
+
}];
|
|
123
|
+
readonly stateMutability: "nonpayable";
|
|
124
|
+
readonly type: "function";
|
|
125
|
+
}, {
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly components: readonly [{
|
|
128
|
+
readonly components: readonly [{
|
|
129
|
+
readonly internalType: "contract IReactor";
|
|
130
|
+
readonly name: "reactor";
|
|
131
|
+
readonly type: "address";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
readonly name: "swapper";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly internalType: "uint256";
|
|
138
|
+
readonly name: "nonce";
|
|
139
|
+
readonly type: "uint256";
|
|
140
|
+
}, {
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
readonly name: "deadline";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
}, {
|
|
145
|
+
readonly internalType: "contract IValidationCallback";
|
|
146
|
+
readonly name: "additionalValidationContract";
|
|
147
|
+
readonly type: "address";
|
|
148
|
+
}, {
|
|
149
|
+
readonly internalType: "bytes";
|
|
150
|
+
readonly name: "additionalValidationData";
|
|
151
|
+
readonly type: "bytes";
|
|
152
|
+
}];
|
|
153
|
+
readonly internalType: "struct OrderInfo";
|
|
154
|
+
readonly name: "info";
|
|
155
|
+
readonly type: "tuple";
|
|
156
|
+
}, {
|
|
157
|
+
readonly components: readonly [{
|
|
158
|
+
readonly internalType: "contract ERC20";
|
|
159
|
+
readonly name: "token";
|
|
160
|
+
readonly type: "address";
|
|
161
|
+
}, {
|
|
162
|
+
readonly internalType: "uint256";
|
|
163
|
+
readonly name: "amount";
|
|
164
|
+
readonly type: "uint256";
|
|
165
|
+
}, {
|
|
166
|
+
readonly internalType: "uint256";
|
|
167
|
+
readonly name: "maxAmount";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
}];
|
|
170
|
+
readonly internalType: "struct InputToken";
|
|
171
|
+
readonly name: "input";
|
|
172
|
+
readonly type: "tuple";
|
|
173
|
+
}, {
|
|
174
|
+
readonly components: readonly [{
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
readonly name: "token";
|
|
177
|
+
readonly type: "address";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
readonly name: "amount";
|
|
181
|
+
readonly type: "uint256";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "address";
|
|
184
|
+
readonly name: "recipient";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
}];
|
|
187
|
+
readonly internalType: "struct OutputToken[]";
|
|
188
|
+
readonly name: "outputs";
|
|
189
|
+
readonly type: "tuple[]";
|
|
190
|
+
}, {
|
|
191
|
+
readonly internalType: "bytes";
|
|
192
|
+
readonly name: "sig";
|
|
193
|
+
readonly type: "bytes";
|
|
194
|
+
}, {
|
|
195
|
+
readonly internalType: "bytes32";
|
|
196
|
+
readonly name: "hash";
|
|
197
|
+
readonly type: "bytes32";
|
|
198
|
+
}];
|
|
199
|
+
readonly internalType: "struct ResolvedOrder[]";
|
|
200
|
+
readonly name: "resolvedOrders";
|
|
201
|
+
readonly type: "tuple[]";
|
|
202
|
+
}, {
|
|
203
|
+
readonly internalType: "bytes";
|
|
204
|
+
readonly name: "";
|
|
205
|
+
readonly type: "bytes";
|
|
206
|
+
}];
|
|
207
|
+
readonly name: "reactorCallback";
|
|
208
|
+
readonly outputs: readonly [];
|
|
209
|
+
readonly stateMutability: "pure";
|
|
210
|
+
readonly type: "function";
|
|
211
|
+
}];
|
|
212
|
+
static createInterface(): OrderQuoterInterface;
|
|
213
|
+
static connect(address: string, signerOrProvider: Signer | Provider): OrderQuoter;
|
|
214
|
+
}
|
|
215
|
+
export {};
|