@floorlaunchpad/sdk-evm 0.0.0-stage → 0.1.0
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 +61 -0
- package/README.md +154 -2
- package/dist/abi/floor.d.ts +1315 -0
- package/dist/abi/floor.d.ts.map +1 -0
- package/dist/abi/floor.js +154 -0
- package/dist/abi/floor.js.map +1 -0
- package/dist/abi/generated.d.ts +12824 -0
- package/dist/abi/generated.d.ts.map +1 -0
- package/dist/abi/generated.js +1264 -0
- package/dist/abi/generated.js.map +1 -0
- package/dist/abi/index.d.ts +2 -0
- package/dist/abi/index.d.ts.map +1 -0
- package/dist/abi/index.js +2 -0
- package/dist/abi/index.js.map +1 -0
- package/dist/adapter.d.ts +89 -0
- package/dist/adapter.d.ts.map +1 -0
- package/dist/adapter.js +250 -0
- package/dist/adapter.js.map +1 -0
- package/dist/deployments.d.ts +154 -0
- package/dist/deployments.d.ts.map +1 -0
- package/dist/deployments.js +368 -0
- package/dist/deployments.js.map +1 -0
- package/dist/errors.d.ts +56 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +42 -0
- package/dist/errors.js.map +1 -0
- package/dist/events.d.ts +45 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +78 -0
- package/dist/events.js.map +1 -0
- package/dist/fees.d.ts +100 -0
- package/dist/fees.d.ts.map +1 -0
- package/dist/fees.js +156 -0
- package/dist/fees.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/pool.d.ts +63 -0
- package/dist/pool.d.ts.map +1 -0
- package/dist/pool.js +118 -0
- package/dist/pool.js.map +1 -0
- package/dist/reads.d.ts +107 -0
- package/dist/reads.d.ts.map +1 -0
- package/dist/reads.js +201 -0
- package/dist/reads.js.map +1 -0
- package/dist/router.d.ts +99 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +132 -0
- package/dist/router.js.map +1 -0
- package/dist/sale.d.ts +79 -0
- package/dist/sale.d.ts.map +1 -0
- package/dist/sale.js +123 -0
- package/dist/sale.js.map +1 -0
- package/dist/send.d.ts +64 -0
- package/dist/send.d.ts.map +1 -0
- package/dist/send.js +137 -0
- package/dist/send.js.map +1 -0
- package/dist/simulate.d.ts +180 -0
- package/dist/simulate.d.ts.map +1 -0
- package/dist/simulate.js +270 -0
- package/dist/simulate.js.map +1 -0
- package/dist/trade.d.ts +140 -0
- package/dist/trade.d.ts.map +1 -0
- package/dist/trade.js +170 -0
- package/dist/trade.js.map +1 -0
- package/package.json +43 -4
|
@@ -0,0 +1,1315 @@
|
|
|
1
|
+
export * from './generated.js';
|
|
2
|
+
export declare const POOL_STATE_UNDECODED_TAIL: readonly [];
|
|
3
|
+
export declare const POOL_STATE_WORDS: number;
|
|
4
|
+
export declare const POOL_STATE_ENGINE_WORDS: number;
|
|
5
|
+
/** `FloorSwapRatchet.swapAndRatchet` takes the `sweep` field; the name is kept for callers that picked the sweep build. */
|
|
6
|
+
export declare const FLOOR_SWAP_RATCHET_SWEEP_ABI: readonly [{
|
|
7
|
+
readonly type: "function";
|
|
8
|
+
readonly name: "PERMIT2";
|
|
9
|
+
readonly stateMutability: "view";
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly outputs: readonly [{
|
|
12
|
+
readonly name: "";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}];
|
|
15
|
+
}, {
|
|
16
|
+
readonly type: "function";
|
|
17
|
+
readonly name: "hook";
|
|
18
|
+
readonly stateMutability: "view";
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly outputs: readonly [{
|
|
21
|
+
readonly name: "";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
}, {
|
|
25
|
+
readonly type: "function";
|
|
26
|
+
readonly name: "router";
|
|
27
|
+
readonly stateMutability: "view";
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly name: "";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}];
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "function";
|
|
35
|
+
readonly name: "swapAndRatchet";
|
|
36
|
+
readonly stateMutability: "payable";
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly name: "s";
|
|
39
|
+
readonly type: "tuple";
|
|
40
|
+
readonly components: readonly [{
|
|
41
|
+
readonly name: "poolId";
|
|
42
|
+
readonly type: "bytes32";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "tokenIn";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "amountIn";
|
|
48
|
+
readonly type: "uint256";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "tokenOut";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "minOut";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
}, {
|
|
56
|
+
readonly name: "routerCalldata";
|
|
57
|
+
readonly type: "bytes";
|
|
58
|
+
}, {
|
|
59
|
+
readonly name: "ratchet";
|
|
60
|
+
readonly type: "bool";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "sweep";
|
|
63
|
+
readonly type: "bool";
|
|
64
|
+
}];
|
|
65
|
+
}];
|
|
66
|
+
readonly outputs: readonly [{
|
|
67
|
+
readonly name: "amountOut";
|
|
68
|
+
readonly type: "uint256";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "tip";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
}, {
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
readonly name: "swapAndRatchetWithPermit";
|
|
76
|
+
readonly stateMutability: "payable";
|
|
77
|
+
readonly inputs: readonly [{
|
|
78
|
+
readonly name: "s";
|
|
79
|
+
readonly type: "tuple";
|
|
80
|
+
readonly components: readonly [{
|
|
81
|
+
readonly name: "poolId";
|
|
82
|
+
readonly type: "bytes32";
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "tokenIn";
|
|
85
|
+
readonly type: "address";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "amountIn";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "tokenOut";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
}, {
|
|
93
|
+
readonly name: "minOut";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "routerCalldata";
|
|
97
|
+
readonly type: "bytes";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "ratchet";
|
|
100
|
+
readonly type: "bool";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "sweep";
|
|
103
|
+
readonly type: "bool";
|
|
104
|
+
}];
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "permit";
|
|
107
|
+
readonly type: "tuple";
|
|
108
|
+
readonly components: readonly [{
|
|
109
|
+
readonly name: "details";
|
|
110
|
+
readonly type: "tuple";
|
|
111
|
+
readonly components: readonly [{
|
|
112
|
+
readonly name: "token";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
}, {
|
|
115
|
+
readonly name: "amount";
|
|
116
|
+
readonly type: "uint160";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "expiration";
|
|
119
|
+
readonly type: "uint48";
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "nonce";
|
|
122
|
+
readonly type: "uint48";
|
|
123
|
+
}];
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "spender";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "sigDeadline";
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}];
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "signature";
|
|
133
|
+
readonly type: "bytes";
|
|
134
|
+
}];
|
|
135
|
+
readonly outputs: readonly [{
|
|
136
|
+
readonly name: "amountOut";
|
|
137
|
+
readonly type: "uint256";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "tip";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
}];
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "event";
|
|
144
|
+
readonly name: "RatchetFailed";
|
|
145
|
+
readonly anonymous: false;
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly name: "poolId";
|
|
148
|
+
readonly type: "bytes32";
|
|
149
|
+
readonly indexed: true;
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "reason";
|
|
152
|
+
readonly type: "bytes";
|
|
153
|
+
readonly indexed: false;
|
|
154
|
+
}];
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "event";
|
|
157
|
+
readonly name: "SwapAndRatchet";
|
|
158
|
+
readonly anonymous: false;
|
|
159
|
+
readonly inputs: readonly [{
|
|
160
|
+
readonly name: "trader";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
readonly indexed: true;
|
|
163
|
+
}, {
|
|
164
|
+
readonly name: "poolId";
|
|
165
|
+
readonly type: "bytes32";
|
|
166
|
+
readonly indexed: true;
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "tokenIn";
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
readonly indexed: false;
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "tokenOut";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
readonly indexed: false;
|
|
175
|
+
}, {
|
|
176
|
+
readonly name: "amountInSpent";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
readonly indexed: false;
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "amountOut";
|
|
181
|
+
readonly type: "uint256";
|
|
182
|
+
readonly indexed: false;
|
|
183
|
+
}, {
|
|
184
|
+
readonly name: "ratchet";
|
|
185
|
+
readonly type: "uint8";
|
|
186
|
+
readonly indexed: false;
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "tip";
|
|
189
|
+
readonly type: "uint256";
|
|
190
|
+
readonly indexed: false;
|
|
191
|
+
}];
|
|
192
|
+
}, {
|
|
193
|
+
readonly type: "event";
|
|
194
|
+
readonly name: "SweepFailed";
|
|
195
|
+
readonly anonymous: false;
|
|
196
|
+
readonly inputs: readonly [{
|
|
197
|
+
readonly name: "poolId";
|
|
198
|
+
readonly type: "bytes32";
|
|
199
|
+
readonly indexed: true;
|
|
200
|
+
}, {
|
|
201
|
+
readonly name: "reason";
|
|
202
|
+
readonly type: "bytes";
|
|
203
|
+
readonly indexed: false;
|
|
204
|
+
}];
|
|
205
|
+
}, {
|
|
206
|
+
readonly type: "event";
|
|
207
|
+
readonly name: "SweepTipped";
|
|
208
|
+
readonly anonymous: false;
|
|
209
|
+
readonly inputs: readonly [{
|
|
210
|
+
readonly name: "trader";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
readonly indexed: true;
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "poolId";
|
|
215
|
+
readonly type: "bytes32";
|
|
216
|
+
readonly indexed: true;
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "tip";
|
|
219
|
+
readonly type: "uint256";
|
|
220
|
+
readonly indexed: false;
|
|
221
|
+
}];
|
|
222
|
+
}, {
|
|
223
|
+
readonly type: "error";
|
|
224
|
+
readonly name: "AddressEmptyCode";
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly name: "target";
|
|
227
|
+
readonly type: "address";
|
|
228
|
+
}];
|
|
229
|
+
}, {
|
|
230
|
+
readonly type: "error";
|
|
231
|
+
readonly name: "AddressInsufficientBalance";
|
|
232
|
+
readonly inputs: readonly [{
|
|
233
|
+
readonly name: "account";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}];
|
|
236
|
+
}, {
|
|
237
|
+
readonly type: "error";
|
|
238
|
+
readonly name: "AmountTooLarge";
|
|
239
|
+
readonly inputs: readonly [];
|
|
240
|
+
}, {
|
|
241
|
+
readonly type: "error";
|
|
242
|
+
readonly name: "BadConfig";
|
|
243
|
+
readonly inputs: readonly [];
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "error";
|
|
246
|
+
readonly name: "BadPermit";
|
|
247
|
+
readonly inputs: readonly [];
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "error";
|
|
250
|
+
readonly name: "BadValue";
|
|
251
|
+
readonly inputs: readonly [];
|
|
252
|
+
}, {
|
|
253
|
+
readonly type: "error";
|
|
254
|
+
readonly name: "FailedInnerCall";
|
|
255
|
+
readonly inputs: readonly [];
|
|
256
|
+
}, {
|
|
257
|
+
readonly type: "error";
|
|
258
|
+
readonly name: "NotInCall";
|
|
259
|
+
readonly inputs: readonly [];
|
|
260
|
+
}, {
|
|
261
|
+
readonly type: "error";
|
|
262
|
+
readonly name: "PayoutFailed";
|
|
263
|
+
readonly inputs: readonly [];
|
|
264
|
+
}, {
|
|
265
|
+
readonly type: "error";
|
|
266
|
+
readonly name: "RatchetOutOfGas";
|
|
267
|
+
readonly inputs: readonly [];
|
|
268
|
+
}, {
|
|
269
|
+
readonly type: "error";
|
|
270
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
271
|
+
readonly inputs: readonly [];
|
|
272
|
+
}, {
|
|
273
|
+
readonly type: "error";
|
|
274
|
+
readonly name: "SafeERC20FailedOperation";
|
|
275
|
+
readonly inputs: readonly [{
|
|
276
|
+
readonly name: "token";
|
|
277
|
+
readonly type: "address";
|
|
278
|
+
}];
|
|
279
|
+
}, {
|
|
280
|
+
readonly type: "error";
|
|
281
|
+
readonly name: "SameToken";
|
|
282
|
+
readonly inputs: readonly [];
|
|
283
|
+
}, {
|
|
284
|
+
readonly type: "error";
|
|
285
|
+
readonly name: "ShortFill";
|
|
286
|
+
readonly inputs: readonly [{
|
|
287
|
+
readonly name: "amountOut";
|
|
288
|
+
readonly type: "uint256";
|
|
289
|
+
}, {
|
|
290
|
+
readonly name: "minOut";
|
|
291
|
+
readonly type: "uint256";
|
|
292
|
+
}];
|
|
293
|
+
}, {
|
|
294
|
+
readonly type: "error";
|
|
295
|
+
readonly name: "SwapFailed";
|
|
296
|
+
readonly inputs: readonly [{
|
|
297
|
+
readonly name: "reason";
|
|
298
|
+
readonly type: "bytes";
|
|
299
|
+
}];
|
|
300
|
+
}, {
|
|
301
|
+
readonly type: "error";
|
|
302
|
+
readonly name: "SweepOutOfGas";
|
|
303
|
+
readonly inputs: readonly [];
|
|
304
|
+
}, {
|
|
305
|
+
readonly type: "error";
|
|
306
|
+
readonly name: "UnknownPool";
|
|
307
|
+
readonly inputs: readonly [];
|
|
308
|
+
}, {
|
|
309
|
+
readonly type: "error";
|
|
310
|
+
readonly name: "ZeroAmount";
|
|
311
|
+
readonly inputs: readonly [];
|
|
312
|
+
}];
|
|
313
|
+
export declare const TRADER_REFERRALS_ABI: readonly [{
|
|
314
|
+
readonly type: "function";
|
|
315
|
+
readonly name: "NATIVE_SEND_GAS";
|
|
316
|
+
readonly stateMutability: "view";
|
|
317
|
+
readonly inputs: readonly [];
|
|
318
|
+
readonly outputs: readonly [{
|
|
319
|
+
readonly name: "";
|
|
320
|
+
readonly type: "uint256";
|
|
321
|
+
}];
|
|
322
|
+
}, {
|
|
323
|
+
readonly type: "function";
|
|
324
|
+
readonly name: "TRADER_LINK_TYPEHASH";
|
|
325
|
+
readonly stateMutability: "view";
|
|
326
|
+
readonly inputs: readonly [];
|
|
327
|
+
readonly outputs: readonly [{
|
|
328
|
+
readonly name: "";
|
|
329
|
+
readonly type: "bytes32";
|
|
330
|
+
}];
|
|
331
|
+
}, {
|
|
332
|
+
readonly type: "function";
|
|
333
|
+
readonly name: "acceptGovernance";
|
|
334
|
+
readonly stateMutability: "nonpayable";
|
|
335
|
+
readonly inputs: readonly [];
|
|
336
|
+
readonly outputs: readonly [];
|
|
337
|
+
}, {
|
|
338
|
+
readonly type: "function";
|
|
339
|
+
readonly name: "attestor";
|
|
340
|
+
readonly stateMutability: "view";
|
|
341
|
+
readonly inputs: readonly [];
|
|
342
|
+
readonly outputs: readonly [{
|
|
343
|
+
readonly name: "";
|
|
344
|
+
readonly type: "address";
|
|
345
|
+
}];
|
|
346
|
+
}, {
|
|
347
|
+
readonly type: "function";
|
|
348
|
+
readonly name: "claim";
|
|
349
|
+
readonly stateMutability: "nonpayable";
|
|
350
|
+
readonly inputs: readonly [{
|
|
351
|
+
readonly name: "referrer";
|
|
352
|
+
readonly type: "address";
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "quote";
|
|
355
|
+
readonly type: "address";
|
|
356
|
+
}, {
|
|
357
|
+
readonly name: "pools";
|
|
358
|
+
readonly type: "bytes32[]";
|
|
359
|
+
}];
|
|
360
|
+
readonly outputs: readonly [{
|
|
361
|
+
readonly name: "paid";
|
|
362
|
+
readonly type: "uint256";
|
|
363
|
+
}];
|
|
364
|
+
}, {
|
|
365
|
+
readonly type: "function";
|
|
366
|
+
readonly name: "eip712Domain";
|
|
367
|
+
readonly stateMutability: "view";
|
|
368
|
+
readonly inputs: readonly [];
|
|
369
|
+
readonly outputs: readonly [{
|
|
370
|
+
readonly name: "fields";
|
|
371
|
+
readonly type: "bytes1";
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "name";
|
|
374
|
+
readonly type: "string";
|
|
375
|
+
}, {
|
|
376
|
+
readonly name: "version";
|
|
377
|
+
readonly type: "string";
|
|
378
|
+
}, {
|
|
379
|
+
readonly name: "chainId";
|
|
380
|
+
readonly type: "uint256";
|
|
381
|
+
}, {
|
|
382
|
+
readonly name: "verifyingContract";
|
|
383
|
+
readonly type: "address";
|
|
384
|
+
}, {
|
|
385
|
+
readonly name: "salt";
|
|
386
|
+
readonly type: "bytes32";
|
|
387
|
+
}, {
|
|
388
|
+
readonly name: "extensions";
|
|
389
|
+
readonly type: "uint256[]";
|
|
390
|
+
}];
|
|
391
|
+
}, {
|
|
392
|
+
readonly type: "function";
|
|
393
|
+
readonly name: "governance";
|
|
394
|
+
readonly stateMutability: "view";
|
|
395
|
+
readonly inputs: readonly [];
|
|
396
|
+
readonly outputs: readonly [{
|
|
397
|
+
readonly name: "";
|
|
398
|
+
readonly type: "address";
|
|
399
|
+
}];
|
|
400
|
+
}, {
|
|
401
|
+
readonly type: "function";
|
|
402
|
+
readonly name: "held";
|
|
403
|
+
readonly stateMutability: "view";
|
|
404
|
+
readonly inputs: readonly [{
|
|
405
|
+
readonly name: "";
|
|
406
|
+
readonly type: "address";
|
|
407
|
+
}];
|
|
408
|
+
readonly outputs: readonly [{
|
|
409
|
+
readonly name: "";
|
|
410
|
+
readonly type: "uint256";
|
|
411
|
+
}];
|
|
412
|
+
}, {
|
|
413
|
+
readonly type: "function";
|
|
414
|
+
readonly name: "hook";
|
|
415
|
+
readonly stateMutability: "view";
|
|
416
|
+
readonly inputs: readonly [];
|
|
417
|
+
readonly outputs: readonly [{
|
|
418
|
+
readonly name: "";
|
|
419
|
+
readonly type: "address";
|
|
420
|
+
}];
|
|
421
|
+
}, {
|
|
422
|
+
readonly type: "function";
|
|
423
|
+
readonly name: "intake";
|
|
424
|
+
readonly stateMutability: "nonpayable";
|
|
425
|
+
readonly inputs: readonly [{
|
|
426
|
+
readonly name: "amount";
|
|
427
|
+
readonly type: "uint256";
|
|
428
|
+
}];
|
|
429
|
+
readonly outputs: readonly [];
|
|
430
|
+
}, {
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
readonly name: "intake";
|
|
433
|
+
readonly stateMutability: "payable";
|
|
434
|
+
readonly inputs: readonly [];
|
|
435
|
+
readonly outputs: readonly [];
|
|
436
|
+
}, {
|
|
437
|
+
readonly type: "function";
|
|
438
|
+
readonly name: "intakeSaleReferral";
|
|
439
|
+
readonly stateMutability: "payable";
|
|
440
|
+
readonly inputs: readonly [{
|
|
441
|
+
readonly name: "quote";
|
|
442
|
+
readonly type: "address";
|
|
443
|
+
}, {
|
|
444
|
+
readonly name: "who";
|
|
445
|
+
readonly type: "address";
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "fee";
|
|
448
|
+
readonly type: "uint256";
|
|
449
|
+
}];
|
|
450
|
+
readonly outputs: readonly [{
|
|
451
|
+
readonly name: "sum";
|
|
452
|
+
readonly type: "uint256";
|
|
453
|
+
}];
|
|
454
|
+
}, {
|
|
455
|
+
readonly type: "function";
|
|
456
|
+
readonly name: "link";
|
|
457
|
+
readonly stateMutability: "nonpayable";
|
|
458
|
+
readonly inputs: readonly [{
|
|
459
|
+
readonly name: "trader";
|
|
460
|
+
readonly type: "address";
|
|
461
|
+
}, {
|
|
462
|
+
readonly name: "tier1";
|
|
463
|
+
readonly type: "address";
|
|
464
|
+
}, {
|
|
465
|
+
readonly name: "tier2";
|
|
466
|
+
readonly type: "address";
|
|
467
|
+
}, {
|
|
468
|
+
readonly name: "tier3";
|
|
469
|
+
readonly type: "address";
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "deadline";
|
|
472
|
+
readonly type: "uint256";
|
|
473
|
+
}, {
|
|
474
|
+
readonly name: "sig";
|
|
475
|
+
readonly type: "bytes";
|
|
476
|
+
}];
|
|
477
|
+
readonly outputs: readonly [];
|
|
478
|
+
}, {
|
|
479
|
+
readonly type: "function";
|
|
480
|
+
readonly name: "linkOf";
|
|
481
|
+
readonly stateMutability: "view";
|
|
482
|
+
readonly inputs: readonly [{
|
|
483
|
+
readonly name: "trader";
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
}];
|
|
486
|
+
readonly outputs: readonly [{
|
|
487
|
+
readonly name: "tier1";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "tier2";
|
|
491
|
+
readonly type: "address";
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "tier3";
|
|
494
|
+
readonly type: "address";
|
|
495
|
+
}];
|
|
496
|
+
}, {
|
|
497
|
+
readonly type: "function";
|
|
498
|
+
readonly name: "nativeScale";
|
|
499
|
+
readonly stateMutability: "view";
|
|
500
|
+
readonly inputs: readonly [];
|
|
501
|
+
readonly outputs: readonly [{
|
|
502
|
+
readonly name: "";
|
|
503
|
+
readonly type: "uint256";
|
|
504
|
+
}];
|
|
505
|
+
}, {
|
|
506
|
+
readonly type: "function";
|
|
507
|
+
readonly name: "nativeToken";
|
|
508
|
+
readonly stateMutability: "view";
|
|
509
|
+
readonly inputs: readonly [];
|
|
510
|
+
readonly outputs: readonly [{
|
|
511
|
+
readonly name: "";
|
|
512
|
+
readonly type: "bool";
|
|
513
|
+
}];
|
|
514
|
+
}, {
|
|
515
|
+
readonly type: "function";
|
|
516
|
+
readonly name: "pendingGovernance";
|
|
517
|
+
readonly stateMutability: "view";
|
|
518
|
+
readonly inputs: readonly [];
|
|
519
|
+
readonly outputs: readonly [{
|
|
520
|
+
readonly name: "";
|
|
521
|
+
readonly type: "address";
|
|
522
|
+
}];
|
|
523
|
+
}, {
|
|
524
|
+
readonly type: "function";
|
|
525
|
+
readonly name: "pushTo";
|
|
526
|
+
readonly stateMutability: "nonpayable";
|
|
527
|
+
readonly inputs: readonly [{
|
|
528
|
+
readonly name: "trader";
|
|
529
|
+
readonly type: "address";
|
|
530
|
+
}];
|
|
531
|
+
readonly outputs: readonly [];
|
|
532
|
+
}, {
|
|
533
|
+
readonly type: "function";
|
|
534
|
+
readonly name: "setAttestor";
|
|
535
|
+
readonly stateMutability: "nonpayable";
|
|
536
|
+
readonly inputs: readonly [{
|
|
537
|
+
readonly name: "next";
|
|
538
|
+
readonly type: "address";
|
|
539
|
+
}];
|
|
540
|
+
readonly outputs: readonly [];
|
|
541
|
+
}, {
|
|
542
|
+
readonly type: "function";
|
|
543
|
+
readonly name: "setGovernance";
|
|
544
|
+
readonly stateMutability: "nonpayable";
|
|
545
|
+
readonly inputs: readonly [{
|
|
546
|
+
readonly name: "next";
|
|
547
|
+
readonly type: "address";
|
|
548
|
+
}];
|
|
549
|
+
readonly outputs: readonly [];
|
|
550
|
+
}, {
|
|
551
|
+
readonly type: "function";
|
|
552
|
+
readonly name: "weth";
|
|
553
|
+
readonly stateMutability: "view";
|
|
554
|
+
readonly inputs: readonly [];
|
|
555
|
+
readonly outputs: readonly [{
|
|
556
|
+
readonly name: "";
|
|
557
|
+
readonly type: "address";
|
|
558
|
+
}];
|
|
559
|
+
}, {
|
|
560
|
+
readonly type: "event";
|
|
561
|
+
readonly name: "AttestorChanged";
|
|
562
|
+
readonly anonymous: false;
|
|
563
|
+
readonly inputs: readonly [{
|
|
564
|
+
readonly name: "previous";
|
|
565
|
+
readonly type: "address";
|
|
566
|
+
readonly indexed: true;
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "attestor";
|
|
569
|
+
readonly type: "address";
|
|
570
|
+
readonly indexed: true;
|
|
571
|
+
}];
|
|
572
|
+
}, {
|
|
573
|
+
readonly type: "event";
|
|
574
|
+
readonly name: "EIP712DomainChanged";
|
|
575
|
+
readonly anonymous: false;
|
|
576
|
+
readonly inputs: readonly [];
|
|
577
|
+
}, {
|
|
578
|
+
readonly type: "event";
|
|
579
|
+
readonly name: "GovernanceChanged";
|
|
580
|
+
readonly anonymous: false;
|
|
581
|
+
readonly inputs: readonly [{
|
|
582
|
+
readonly name: "previous";
|
|
583
|
+
readonly type: "address";
|
|
584
|
+
readonly indexed: true;
|
|
585
|
+
}, {
|
|
586
|
+
readonly name: "governance";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
readonly indexed: true;
|
|
589
|
+
}, {
|
|
590
|
+
readonly name: "accepted";
|
|
591
|
+
readonly type: "bool";
|
|
592
|
+
readonly indexed: false;
|
|
593
|
+
}];
|
|
594
|
+
}, {
|
|
595
|
+
readonly type: "event";
|
|
596
|
+
readonly name: "ReferralIntake";
|
|
597
|
+
readonly anonymous: false;
|
|
598
|
+
readonly inputs: readonly [{
|
|
599
|
+
readonly name: "from";
|
|
600
|
+
readonly type: "address";
|
|
601
|
+
readonly indexed: true;
|
|
602
|
+
}, {
|
|
603
|
+
readonly name: "quote";
|
|
604
|
+
readonly type: "address";
|
|
605
|
+
readonly indexed: true;
|
|
606
|
+
}, {
|
|
607
|
+
readonly name: "amount";
|
|
608
|
+
readonly type: "uint256";
|
|
609
|
+
readonly indexed: false;
|
|
610
|
+
}];
|
|
611
|
+
}, {
|
|
612
|
+
readonly type: "event";
|
|
613
|
+
readonly name: "TraderLinked";
|
|
614
|
+
readonly anonymous: false;
|
|
615
|
+
readonly inputs: readonly [{
|
|
616
|
+
readonly name: "trader";
|
|
617
|
+
readonly type: "address";
|
|
618
|
+
readonly indexed: true;
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "tier1";
|
|
621
|
+
readonly type: "address";
|
|
622
|
+
readonly indexed: true;
|
|
623
|
+
}, {
|
|
624
|
+
readonly name: "tier2";
|
|
625
|
+
readonly type: "address";
|
|
626
|
+
readonly indexed: false;
|
|
627
|
+
}, {
|
|
628
|
+
readonly name: "tier3";
|
|
629
|
+
readonly type: "address";
|
|
630
|
+
readonly indexed: false;
|
|
631
|
+
}];
|
|
632
|
+
}, {
|
|
633
|
+
readonly type: "event";
|
|
634
|
+
readonly name: "TraderReferralClaimed";
|
|
635
|
+
readonly anonymous: false;
|
|
636
|
+
readonly inputs: readonly [{
|
|
637
|
+
readonly name: "referrer";
|
|
638
|
+
readonly type: "address";
|
|
639
|
+
readonly indexed: true;
|
|
640
|
+
}, {
|
|
641
|
+
readonly name: "quote";
|
|
642
|
+
readonly type: "address";
|
|
643
|
+
readonly indexed: true;
|
|
644
|
+
}, {
|
|
645
|
+
readonly name: "paid";
|
|
646
|
+
readonly type: "uint256";
|
|
647
|
+
readonly indexed: false;
|
|
648
|
+
}, {
|
|
649
|
+
readonly name: "leftOwed";
|
|
650
|
+
readonly type: "uint256";
|
|
651
|
+
readonly indexed: false;
|
|
652
|
+
}];
|
|
653
|
+
}, {
|
|
654
|
+
readonly type: "error";
|
|
655
|
+
readonly name: "AddressEmptyCode";
|
|
656
|
+
readonly inputs: readonly [{
|
|
657
|
+
readonly name: "target";
|
|
658
|
+
readonly type: "address";
|
|
659
|
+
}];
|
|
660
|
+
}, {
|
|
661
|
+
readonly type: "error";
|
|
662
|
+
readonly name: "AddressInsufficientBalance";
|
|
663
|
+
readonly inputs: readonly [{
|
|
664
|
+
readonly name: "account";
|
|
665
|
+
readonly type: "address";
|
|
666
|
+
}];
|
|
667
|
+
}, {
|
|
668
|
+
readonly type: "error";
|
|
669
|
+
readonly name: "AlreadyLinked";
|
|
670
|
+
readonly inputs: readonly [];
|
|
671
|
+
}, {
|
|
672
|
+
readonly type: "error";
|
|
673
|
+
readonly name: "AttestorIsGovernance";
|
|
674
|
+
readonly inputs: readonly [];
|
|
675
|
+
}, {
|
|
676
|
+
readonly type: "error";
|
|
677
|
+
readonly name: "BadConfig";
|
|
678
|
+
readonly inputs: readonly [];
|
|
679
|
+
}, {
|
|
680
|
+
readonly type: "error";
|
|
681
|
+
readonly name: "BadQuote";
|
|
682
|
+
readonly inputs: readonly [{
|
|
683
|
+
readonly name: "quote";
|
|
684
|
+
readonly type: "address";
|
|
685
|
+
}];
|
|
686
|
+
}, {
|
|
687
|
+
readonly type: "error";
|
|
688
|
+
readonly name: "BadShape";
|
|
689
|
+
readonly inputs: readonly [];
|
|
690
|
+
}, {
|
|
691
|
+
readonly type: "error";
|
|
692
|
+
readonly name: "BadSigner";
|
|
693
|
+
readonly inputs: readonly [];
|
|
694
|
+
}, {
|
|
695
|
+
readonly type: "error";
|
|
696
|
+
readonly name: "BadValue";
|
|
697
|
+
readonly inputs: readonly [];
|
|
698
|
+
}, {
|
|
699
|
+
readonly type: "error";
|
|
700
|
+
readonly name: "ECDSAInvalidSignature";
|
|
701
|
+
readonly inputs: readonly [];
|
|
702
|
+
}, {
|
|
703
|
+
readonly type: "error";
|
|
704
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
705
|
+
readonly inputs: readonly [{
|
|
706
|
+
readonly name: "length";
|
|
707
|
+
readonly type: "uint256";
|
|
708
|
+
}];
|
|
709
|
+
}, {
|
|
710
|
+
readonly type: "error";
|
|
711
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
712
|
+
readonly inputs: readonly [{
|
|
713
|
+
readonly name: "s";
|
|
714
|
+
readonly type: "bytes32";
|
|
715
|
+
}];
|
|
716
|
+
}, {
|
|
717
|
+
readonly type: "error";
|
|
718
|
+
readonly name: "Expired";
|
|
719
|
+
readonly inputs: readonly [];
|
|
720
|
+
}, {
|
|
721
|
+
readonly type: "error";
|
|
722
|
+
readonly name: "FailedInnerCall";
|
|
723
|
+
readonly inputs: readonly [];
|
|
724
|
+
}, {
|
|
725
|
+
readonly type: "error";
|
|
726
|
+
readonly name: "GovernanceIsAttestor";
|
|
727
|
+
readonly inputs: readonly [];
|
|
728
|
+
}, {
|
|
729
|
+
readonly type: "error";
|
|
730
|
+
readonly name: "InexactQuoteTransfer";
|
|
731
|
+
readonly inputs: readonly [];
|
|
732
|
+
}, {
|
|
733
|
+
readonly type: "error";
|
|
734
|
+
readonly name: "InvalidShortString";
|
|
735
|
+
readonly inputs: readonly [];
|
|
736
|
+
}, {
|
|
737
|
+
readonly type: "error";
|
|
738
|
+
readonly name: "NativePayFailed";
|
|
739
|
+
readonly inputs: readonly [{
|
|
740
|
+
readonly name: "to";
|
|
741
|
+
readonly type: "address";
|
|
742
|
+
}];
|
|
743
|
+
}, {
|
|
744
|
+
readonly type: "error";
|
|
745
|
+
readonly name: "NotGovernance";
|
|
746
|
+
readonly inputs: readonly [];
|
|
747
|
+
}, {
|
|
748
|
+
readonly type: "error";
|
|
749
|
+
readonly name: "NotLaunch";
|
|
750
|
+
readonly inputs: readonly [{
|
|
751
|
+
readonly name: "caller";
|
|
752
|
+
readonly type: "address";
|
|
753
|
+
}];
|
|
754
|
+
}, {
|
|
755
|
+
readonly type: "error";
|
|
756
|
+
readonly name: "NotLinked";
|
|
757
|
+
readonly inputs: readonly [];
|
|
758
|
+
}, {
|
|
759
|
+
readonly type: "error";
|
|
760
|
+
readonly name: "NotPendingGovernance";
|
|
761
|
+
readonly inputs: readonly [];
|
|
762
|
+
}, {
|
|
763
|
+
readonly type: "error";
|
|
764
|
+
readonly name: "NotPoolVault";
|
|
765
|
+
readonly inputs: readonly [{
|
|
766
|
+
readonly name: "caller";
|
|
767
|
+
readonly type: "address";
|
|
768
|
+
}];
|
|
769
|
+
}, {
|
|
770
|
+
readonly type: "error";
|
|
771
|
+
readonly name: "ReentrancyGuardReentrantCall";
|
|
772
|
+
readonly inputs: readonly [];
|
|
773
|
+
}, {
|
|
774
|
+
readonly type: "error";
|
|
775
|
+
readonly name: "ReentrantQuoteTransfer";
|
|
776
|
+
readonly inputs: readonly [];
|
|
777
|
+
}, {
|
|
778
|
+
readonly type: "error";
|
|
779
|
+
readonly name: "SafeERC20FailedOperation";
|
|
780
|
+
readonly inputs: readonly [{
|
|
781
|
+
readonly name: "token";
|
|
782
|
+
readonly type: "address";
|
|
783
|
+
}];
|
|
784
|
+
}, {
|
|
785
|
+
readonly type: "error";
|
|
786
|
+
readonly name: "StringTooLong";
|
|
787
|
+
readonly inputs: readonly [{
|
|
788
|
+
readonly name: "str";
|
|
789
|
+
readonly type: "string";
|
|
790
|
+
}];
|
|
791
|
+
}, {
|
|
792
|
+
readonly type: "error";
|
|
793
|
+
readonly name: "WethPayFailed";
|
|
794
|
+
readonly inputs: readonly [{
|
|
795
|
+
readonly name: "to";
|
|
796
|
+
readonly type: "address";
|
|
797
|
+
}];
|
|
798
|
+
}, {
|
|
799
|
+
readonly type: "error";
|
|
800
|
+
readonly name: "ZeroAttestor";
|
|
801
|
+
readonly inputs: readonly [];
|
|
802
|
+
}, {
|
|
803
|
+
readonly type: "error";
|
|
804
|
+
readonly name: "ZeroGovernance";
|
|
805
|
+
readonly inputs: readonly [];
|
|
806
|
+
}];
|
|
807
|
+
/** `SwapAndRatchet.ratchet`: what the ratchet step did. */
|
|
808
|
+
export declare const RATCHET_RESULT: {
|
|
809
|
+
readonly NotAsked: 0;
|
|
810
|
+
readonly NothingDue: 1;
|
|
811
|
+
readonly Ran: 2;
|
|
812
|
+
readonly Failed: 3;
|
|
813
|
+
};
|
|
814
|
+
export declare const POOL_MANAGER_ABI: readonly [{
|
|
815
|
+
readonly type: "event";
|
|
816
|
+
readonly name: "Swap";
|
|
817
|
+
readonly inputs: readonly [{
|
|
818
|
+
readonly name: "id";
|
|
819
|
+
readonly type: "bytes32";
|
|
820
|
+
readonly indexed: true;
|
|
821
|
+
}, {
|
|
822
|
+
readonly name: "sender";
|
|
823
|
+
readonly type: "address";
|
|
824
|
+
readonly indexed: true;
|
|
825
|
+
}, {
|
|
826
|
+
readonly name: "amount0";
|
|
827
|
+
readonly type: "int128";
|
|
828
|
+
readonly indexed: false;
|
|
829
|
+
}, {
|
|
830
|
+
readonly name: "amount1";
|
|
831
|
+
readonly type: "int128";
|
|
832
|
+
readonly indexed: false;
|
|
833
|
+
}, {
|
|
834
|
+
readonly name: "sqrtPriceX96";
|
|
835
|
+
readonly type: "uint160";
|
|
836
|
+
readonly indexed: false;
|
|
837
|
+
}, {
|
|
838
|
+
readonly name: "liquidity";
|
|
839
|
+
readonly type: "uint128";
|
|
840
|
+
readonly indexed: false;
|
|
841
|
+
}, {
|
|
842
|
+
readonly name: "tick";
|
|
843
|
+
readonly type: "int24";
|
|
844
|
+
readonly indexed: false;
|
|
845
|
+
}, {
|
|
846
|
+
readonly name: "fee";
|
|
847
|
+
readonly type: "uint24";
|
|
848
|
+
readonly indexed: false;
|
|
849
|
+
}];
|
|
850
|
+
}];
|
|
851
|
+
export declare const PERMIT2_ABI: readonly [{
|
|
852
|
+
readonly type: "function";
|
|
853
|
+
readonly name: "approve";
|
|
854
|
+
readonly stateMutability: "nonpayable";
|
|
855
|
+
readonly inputs: readonly [{
|
|
856
|
+
readonly name: "token";
|
|
857
|
+
readonly type: "address";
|
|
858
|
+
}, {
|
|
859
|
+
readonly name: "spender";
|
|
860
|
+
readonly type: "address";
|
|
861
|
+
}, {
|
|
862
|
+
readonly name: "amount";
|
|
863
|
+
readonly type: "uint160";
|
|
864
|
+
}, {
|
|
865
|
+
readonly name: "expiration";
|
|
866
|
+
readonly type: "uint48";
|
|
867
|
+
}];
|
|
868
|
+
readonly outputs: readonly [];
|
|
869
|
+
}, {
|
|
870
|
+
readonly type: "function";
|
|
871
|
+
readonly name: "allowance";
|
|
872
|
+
readonly stateMutability: "view";
|
|
873
|
+
readonly inputs: readonly [{
|
|
874
|
+
readonly name: "user";
|
|
875
|
+
readonly type: "address";
|
|
876
|
+
}, {
|
|
877
|
+
readonly name: "token";
|
|
878
|
+
readonly type: "address";
|
|
879
|
+
}, {
|
|
880
|
+
readonly name: "spender";
|
|
881
|
+
readonly type: "address";
|
|
882
|
+
}];
|
|
883
|
+
readonly outputs: readonly [{
|
|
884
|
+
readonly name: "amount";
|
|
885
|
+
readonly type: "uint160";
|
|
886
|
+
}, {
|
|
887
|
+
readonly name: "expiration";
|
|
888
|
+
readonly type: "uint48";
|
|
889
|
+
}, {
|
|
890
|
+
readonly name: "nonce";
|
|
891
|
+
readonly type: "uint48";
|
|
892
|
+
}];
|
|
893
|
+
}];
|
|
894
|
+
export declare const POOL_STATE_ABI: readonly [{
|
|
895
|
+
readonly type: "function";
|
|
896
|
+
readonly name: "extsload";
|
|
897
|
+
readonly stateMutability: "view";
|
|
898
|
+
readonly inputs: readonly [{
|
|
899
|
+
readonly name: "slot";
|
|
900
|
+
readonly type: "bytes32";
|
|
901
|
+
}];
|
|
902
|
+
readonly outputs: readonly [{
|
|
903
|
+
readonly type: "bytes32";
|
|
904
|
+
}];
|
|
905
|
+
}];
|
|
906
|
+
export declare const POOL_STATE_BATCH_ABI: readonly [{
|
|
907
|
+
readonly type: "function";
|
|
908
|
+
readonly name: "extsload";
|
|
909
|
+
readonly stateMutability: "view";
|
|
910
|
+
readonly inputs: readonly [{
|
|
911
|
+
readonly name: "slots";
|
|
912
|
+
readonly type: "bytes32[]";
|
|
913
|
+
}];
|
|
914
|
+
readonly outputs: readonly [{
|
|
915
|
+
readonly type: "bytes32[]";
|
|
916
|
+
}];
|
|
917
|
+
}];
|
|
918
|
+
export declare const SWAP_ROUTER_ABI: readonly [{
|
|
919
|
+
readonly type: "function";
|
|
920
|
+
readonly name: "swap";
|
|
921
|
+
readonly stateMutability: "payable";
|
|
922
|
+
readonly inputs: readonly [{
|
|
923
|
+
readonly name: "key";
|
|
924
|
+
readonly type: "tuple";
|
|
925
|
+
readonly components: readonly [{
|
|
926
|
+
readonly name: "currency0";
|
|
927
|
+
readonly type: "address";
|
|
928
|
+
}, {
|
|
929
|
+
readonly name: "currency1";
|
|
930
|
+
readonly type: "address";
|
|
931
|
+
}, {
|
|
932
|
+
readonly name: "fee";
|
|
933
|
+
readonly type: "uint24";
|
|
934
|
+
}, {
|
|
935
|
+
readonly name: "tickSpacing";
|
|
936
|
+
readonly type: "int24";
|
|
937
|
+
}, {
|
|
938
|
+
readonly name: "hooks";
|
|
939
|
+
readonly type: "address";
|
|
940
|
+
}];
|
|
941
|
+
}, {
|
|
942
|
+
readonly name: "params";
|
|
943
|
+
readonly type: "tuple";
|
|
944
|
+
readonly components: readonly [{
|
|
945
|
+
readonly name: "zeroForOne";
|
|
946
|
+
readonly type: "bool";
|
|
947
|
+
}, {
|
|
948
|
+
readonly name: "amountSpecified";
|
|
949
|
+
readonly type: "int256";
|
|
950
|
+
}, {
|
|
951
|
+
readonly name: "sqrtPriceLimitX96";
|
|
952
|
+
readonly type: "uint160";
|
|
953
|
+
}];
|
|
954
|
+
}, {
|
|
955
|
+
readonly name: "testSettings";
|
|
956
|
+
readonly type: "tuple";
|
|
957
|
+
readonly components: readonly [{
|
|
958
|
+
readonly name: "takeClaims";
|
|
959
|
+
readonly type: "bool";
|
|
960
|
+
}, {
|
|
961
|
+
readonly name: "settleUsingBurn";
|
|
962
|
+
readonly type: "bool";
|
|
963
|
+
}];
|
|
964
|
+
}, {
|
|
965
|
+
readonly name: "hookData";
|
|
966
|
+
readonly type: "bytes";
|
|
967
|
+
}];
|
|
968
|
+
readonly outputs: readonly [{
|
|
969
|
+
readonly type: "int256";
|
|
970
|
+
}];
|
|
971
|
+
}];
|
|
972
|
+
export declare const UNIVERSAL_ROUTER_ABI: readonly [{
|
|
973
|
+
readonly type: "function";
|
|
974
|
+
readonly name: "execute";
|
|
975
|
+
readonly stateMutability: "payable";
|
|
976
|
+
readonly inputs: readonly [{
|
|
977
|
+
readonly name: "commands";
|
|
978
|
+
readonly type: "bytes";
|
|
979
|
+
}, {
|
|
980
|
+
readonly name: "inputs";
|
|
981
|
+
readonly type: "bytes[]";
|
|
982
|
+
}, {
|
|
983
|
+
readonly name: "deadline";
|
|
984
|
+
readonly type: "uint256";
|
|
985
|
+
}];
|
|
986
|
+
readonly outputs: readonly [];
|
|
987
|
+
}];
|
|
988
|
+
export declare const V4_QUOTER_ABI: readonly [{
|
|
989
|
+
readonly type: "function";
|
|
990
|
+
readonly name: "quoteExactInputSingle";
|
|
991
|
+
readonly stateMutability: "nonpayable";
|
|
992
|
+
readonly inputs: readonly [{
|
|
993
|
+
readonly name: "params";
|
|
994
|
+
readonly type: "tuple";
|
|
995
|
+
readonly components: readonly [{
|
|
996
|
+
readonly name: "poolKey";
|
|
997
|
+
readonly type: "tuple";
|
|
998
|
+
readonly components: readonly [{
|
|
999
|
+
readonly name: "currency0";
|
|
1000
|
+
readonly type: "address";
|
|
1001
|
+
}, {
|
|
1002
|
+
readonly name: "currency1";
|
|
1003
|
+
readonly type: "address";
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly name: "fee";
|
|
1006
|
+
readonly type: "uint24";
|
|
1007
|
+
}, {
|
|
1008
|
+
readonly name: "tickSpacing";
|
|
1009
|
+
readonly type: "int24";
|
|
1010
|
+
}, {
|
|
1011
|
+
readonly name: "hooks";
|
|
1012
|
+
readonly type: "address";
|
|
1013
|
+
}];
|
|
1014
|
+
}, {
|
|
1015
|
+
readonly name: "zeroForOne";
|
|
1016
|
+
readonly type: "bool";
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly name: "exactAmount";
|
|
1019
|
+
readonly type: "uint128";
|
|
1020
|
+
}, {
|
|
1021
|
+
readonly name: "hookData";
|
|
1022
|
+
readonly type: "bytes";
|
|
1023
|
+
}];
|
|
1024
|
+
}];
|
|
1025
|
+
readonly outputs: readonly [{
|
|
1026
|
+
readonly name: "amountOut";
|
|
1027
|
+
readonly type: "uint256";
|
|
1028
|
+
}, {
|
|
1029
|
+
readonly name: "gasEstimate";
|
|
1030
|
+
readonly type: "uint256";
|
|
1031
|
+
}];
|
|
1032
|
+
}, {
|
|
1033
|
+
readonly type: "function";
|
|
1034
|
+
readonly name: "quoteExactOutputSingle";
|
|
1035
|
+
readonly stateMutability: "nonpayable";
|
|
1036
|
+
readonly inputs: readonly [{
|
|
1037
|
+
readonly name: "params";
|
|
1038
|
+
readonly type: "tuple";
|
|
1039
|
+
readonly components: readonly [{
|
|
1040
|
+
readonly name: "poolKey";
|
|
1041
|
+
readonly type: "tuple";
|
|
1042
|
+
readonly components: readonly [{
|
|
1043
|
+
readonly name: "currency0";
|
|
1044
|
+
readonly type: "address";
|
|
1045
|
+
}, {
|
|
1046
|
+
readonly name: "currency1";
|
|
1047
|
+
readonly type: "address";
|
|
1048
|
+
}, {
|
|
1049
|
+
readonly name: "fee";
|
|
1050
|
+
readonly type: "uint24";
|
|
1051
|
+
}, {
|
|
1052
|
+
readonly name: "tickSpacing";
|
|
1053
|
+
readonly type: "int24";
|
|
1054
|
+
}, {
|
|
1055
|
+
readonly name: "hooks";
|
|
1056
|
+
readonly type: "address";
|
|
1057
|
+
}];
|
|
1058
|
+
}, {
|
|
1059
|
+
readonly name: "zeroForOne";
|
|
1060
|
+
readonly type: "bool";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly name: "exactAmount";
|
|
1063
|
+
readonly type: "uint128";
|
|
1064
|
+
}, {
|
|
1065
|
+
readonly name: "hookData";
|
|
1066
|
+
readonly type: "bytes";
|
|
1067
|
+
}];
|
|
1068
|
+
}];
|
|
1069
|
+
readonly outputs: readonly [{
|
|
1070
|
+
readonly name: "amountIn";
|
|
1071
|
+
readonly type: "uint256";
|
|
1072
|
+
}, {
|
|
1073
|
+
readonly name: "gasEstimate";
|
|
1074
|
+
readonly type: "uint256";
|
|
1075
|
+
}];
|
|
1076
|
+
}, {
|
|
1077
|
+
readonly type: "function";
|
|
1078
|
+
readonly name: "quoteExactInput";
|
|
1079
|
+
readonly stateMutability: "nonpayable";
|
|
1080
|
+
readonly inputs: readonly [{
|
|
1081
|
+
readonly name: "params";
|
|
1082
|
+
readonly type: "tuple";
|
|
1083
|
+
readonly components: readonly [{
|
|
1084
|
+
readonly name: "exactCurrency";
|
|
1085
|
+
readonly type: "address";
|
|
1086
|
+
}, {
|
|
1087
|
+
readonly name: "path";
|
|
1088
|
+
readonly type: "tuple[]";
|
|
1089
|
+
readonly components: readonly [{
|
|
1090
|
+
readonly name: "intermediateCurrency";
|
|
1091
|
+
readonly type: "address";
|
|
1092
|
+
}, {
|
|
1093
|
+
readonly name: "fee";
|
|
1094
|
+
readonly type: "uint24";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly name: "tickSpacing";
|
|
1097
|
+
readonly type: "int24";
|
|
1098
|
+
}, {
|
|
1099
|
+
readonly name: "hooks";
|
|
1100
|
+
readonly type: "address";
|
|
1101
|
+
}, {
|
|
1102
|
+
readonly name: "hookData";
|
|
1103
|
+
readonly type: "bytes";
|
|
1104
|
+
}];
|
|
1105
|
+
}, {
|
|
1106
|
+
readonly name: "exactAmount";
|
|
1107
|
+
readonly type: "uint128";
|
|
1108
|
+
}];
|
|
1109
|
+
}];
|
|
1110
|
+
readonly outputs: readonly [{
|
|
1111
|
+
readonly name: "amountOut";
|
|
1112
|
+
readonly type: "uint256";
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly name: "gasEstimate";
|
|
1115
|
+
readonly type: "uint256";
|
|
1116
|
+
}];
|
|
1117
|
+
}, {
|
|
1118
|
+
readonly type: "function";
|
|
1119
|
+
readonly name: "quoteExactOutput";
|
|
1120
|
+
readonly stateMutability: "nonpayable";
|
|
1121
|
+
readonly inputs: readonly [{
|
|
1122
|
+
readonly name: "params";
|
|
1123
|
+
readonly type: "tuple";
|
|
1124
|
+
readonly components: readonly [{
|
|
1125
|
+
readonly name: "exactCurrency";
|
|
1126
|
+
readonly type: "address";
|
|
1127
|
+
}, {
|
|
1128
|
+
readonly name: "path";
|
|
1129
|
+
readonly type: "tuple[]";
|
|
1130
|
+
readonly components: readonly [{
|
|
1131
|
+
readonly name: "intermediateCurrency";
|
|
1132
|
+
readonly type: "address";
|
|
1133
|
+
}, {
|
|
1134
|
+
readonly name: "fee";
|
|
1135
|
+
readonly type: "uint24";
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly name: "tickSpacing";
|
|
1138
|
+
readonly type: "int24";
|
|
1139
|
+
}, {
|
|
1140
|
+
readonly name: "hooks";
|
|
1141
|
+
readonly type: "address";
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly name: "hookData";
|
|
1144
|
+
readonly type: "bytes";
|
|
1145
|
+
}];
|
|
1146
|
+
}, {
|
|
1147
|
+
readonly name: "exactAmount";
|
|
1148
|
+
readonly type: "uint128";
|
|
1149
|
+
}];
|
|
1150
|
+
}];
|
|
1151
|
+
readonly outputs: readonly [{
|
|
1152
|
+
readonly name: "amountIn";
|
|
1153
|
+
readonly type: "uint256";
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly name: "gasEstimate";
|
|
1156
|
+
readonly type: "uint256";
|
|
1157
|
+
}];
|
|
1158
|
+
}, {
|
|
1159
|
+
readonly type: "function";
|
|
1160
|
+
readonly name: "poolManager";
|
|
1161
|
+
readonly stateMutability: "view";
|
|
1162
|
+
readonly inputs: readonly [];
|
|
1163
|
+
readonly outputs: readonly [{
|
|
1164
|
+
readonly type: "address";
|
|
1165
|
+
}];
|
|
1166
|
+
}];
|
|
1167
|
+
export declare const V3_QUOTER_V2_ABI: readonly [{
|
|
1168
|
+
readonly type: "function";
|
|
1169
|
+
readonly name: "quoteExactInputSingle";
|
|
1170
|
+
readonly stateMutability: "nonpayable";
|
|
1171
|
+
readonly inputs: readonly [{
|
|
1172
|
+
readonly name: "params";
|
|
1173
|
+
readonly type: "tuple";
|
|
1174
|
+
readonly components: readonly [{
|
|
1175
|
+
readonly name: "tokenIn";
|
|
1176
|
+
readonly type: "address";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly name: "tokenOut";
|
|
1179
|
+
readonly type: "address";
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly name: "amountIn";
|
|
1182
|
+
readonly type: "uint256";
|
|
1183
|
+
}, {
|
|
1184
|
+
readonly name: "fee";
|
|
1185
|
+
readonly type: "uint24";
|
|
1186
|
+
}, {
|
|
1187
|
+
readonly name: "sqrtPriceLimitX96";
|
|
1188
|
+
readonly type: "uint160";
|
|
1189
|
+
}];
|
|
1190
|
+
}];
|
|
1191
|
+
readonly outputs: readonly [{
|
|
1192
|
+
readonly name: "amountOut";
|
|
1193
|
+
readonly type: "uint256";
|
|
1194
|
+
}, {
|
|
1195
|
+
readonly name: "sqrtPriceX96After";
|
|
1196
|
+
readonly type: "uint160";
|
|
1197
|
+
}, {
|
|
1198
|
+
readonly name: "initializedTicksCrossed";
|
|
1199
|
+
readonly type: "uint32";
|
|
1200
|
+
}, {
|
|
1201
|
+
readonly name: "gasEstimate";
|
|
1202
|
+
readonly type: "uint256";
|
|
1203
|
+
}];
|
|
1204
|
+
}, {
|
|
1205
|
+
readonly type: "function";
|
|
1206
|
+
readonly name: "quoteExactOutputSingle";
|
|
1207
|
+
readonly stateMutability: "nonpayable";
|
|
1208
|
+
readonly inputs: readonly [{
|
|
1209
|
+
readonly name: "params";
|
|
1210
|
+
readonly type: "tuple";
|
|
1211
|
+
readonly components: readonly [{
|
|
1212
|
+
readonly name: "tokenIn";
|
|
1213
|
+
readonly type: "address";
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly name: "tokenOut";
|
|
1216
|
+
readonly type: "address";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly name: "amount";
|
|
1219
|
+
readonly type: "uint256";
|
|
1220
|
+
}, {
|
|
1221
|
+
readonly name: "fee";
|
|
1222
|
+
readonly type: "uint24";
|
|
1223
|
+
}, {
|
|
1224
|
+
readonly name: "sqrtPriceLimitX96";
|
|
1225
|
+
readonly type: "uint160";
|
|
1226
|
+
}];
|
|
1227
|
+
}];
|
|
1228
|
+
readonly outputs: readonly [{
|
|
1229
|
+
readonly name: "amountIn";
|
|
1230
|
+
readonly type: "uint256";
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly name: "sqrtPriceX96After";
|
|
1233
|
+
readonly type: "uint160";
|
|
1234
|
+
}, {
|
|
1235
|
+
readonly name: "initializedTicksCrossed";
|
|
1236
|
+
readonly type: "uint32";
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly name: "gasEstimate";
|
|
1239
|
+
readonly type: "uint256";
|
|
1240
|
+
}];
|
|
1241
|
+
}, {
|
|
1242
|
+
readonly type: "function";
|
|
1243
|
+
readonly name: "quoteExactInput";
|
|
1244
|
+
readonly stateMutability: "nonpayable";
|
|
1245
|
+
readonly inputs: readonly [{
|
|
1246
|
+
readonly name: "path";
|
|
1247
|
+
readonly type: "bytes";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly name: "amountIn";
|
|
1250
|
+
readonly type: "uint256";
|
|
1251
|
+
}];
|
|
1252
|
+
readonly outputs: readonly [{
|
|
1253
|
+
readonly name: "amountOut";
|
|
1254
|
+
readonly type: "uint256";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly name: "sqrtPriceX96AfterList";
|
|
1257
|
+
readonly type: "uint160[]";
|
|
1258
|
+
}, {
|
|
1259
|
+
readonly name: "initializedTicksCrossedList";
|
|
1260
|
+
readonly type: "uint32[]";
|
|
1261
|
+
}, {
|
|
1262
|
+
readonly name: "gasEstimate";
|
|
1263
|
+
readonly type: "uint256";
|
|
1264
|
+
}];
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly type: "function";
|
|
1267
|
+
readonly name: "quoteExactOutput";
|
|
1268
|
+
readonly stateMutability: "nonpayable";
|
|
1269
|
+
readonly inputs: readonly [{
|
|
1270
|
+
readonly name: "path";
|
|
1271
|
+
readonly type: "bytes";
|
|
1272
|
+
}, {
|
|
1273
|
+
readonly name: "amountOut";
|
|
1274
|
+
readonly type: "uint256";
|
|
1275
|
+
}];
|
|
1276
|
+
readonly outputs: readonly [{
|
|
1277
|
+
readonly name: "amountIn";
|
|
1278
|
+
readonly type: "uint256";
|
|
1279
|
+
}, {
|
|
1280
|
+
readonly name: "sqrtPriceX96AfterList";
|
|
1281
|
+
readonly type: "uint160[]";
|
|
1282
|
+
}, {
|
|
1283
|
+
readonly name: "initializedTicksCrossedList";
|
|
1284
|
+
readonly type: "uint32[]";
|
|
1285
|
+
}, {
|
|
1286
|
+
readonly name: "gasEstimate";
|
|
1287
|
+
readonly type: "uint256";
|
|
1288
|
+
}];
|
|
1289
|
+
}];
|
|
1290
|
+
export declare const V4_ROUTER_ABI: readonly [{
|
|
1291
|
+
readonly type: "function";
|
|
1292
|
+
readonly name: "executeActionsAndSweepExcessETH";
|
|
1293
|
+
readonly stateMutability: "payable";
|
|
1294
|
+
readonly inputs: readonly [{
|
|
1295
|
+
readonly name: "params";
|
|
1296
|
+
readonly type: "bytes";
|
|
1297
|
+
}];
|
|
1298
|
+
readonly outputs: readonly [];
|
|
1299
|
+
}];
|
|
1300
|
+
export declare const V4_QUOTER_ERRORS_ABI: readonly [{
|
|
1301
|
+
readonly type: "error";
|
|
1302
|
+
readonly name: "UnexpectedRevertBytes";
|
|
1303
|
+
readonly inputs: readonly [{
|
|
1304
|
+
readonly name: "revertData";
|
|
1305
|
+
readonly type: "bytes";
|
|
1306
|
+
}];
|
|
1307
|
+
}, {
|
|
1308
|
+
readonly type: "error";
|
|
1309
|
+
readonly name: "NotEnoughLiquidity";
|
|
1310
|
+
readonly inputs: readonly [{
|
|
1311
|
+
readonly name: "poolId";
|
|
1312
|
+
readonly type: "bytes32";
|
|
1313
|
+
}];
|
|
1314
|
+
}];
|
|
1315
|
+
//# sourceMappingURL=floor.d.ts.map
|