@gearbox-protocol/sdk 3.0.0-next.265 → 3.0.0-next.267
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/contracts/index.sol +1 -0
- package/lib/apy/index.d.ts +1 -6
- package/lib/apy/index.js +0 -20
- package/lib/core/creditAccount.d.ts +1 -1
- package/lib/core/endpoint.d.ts +1 -0
- package/lib/core/endpoint.js +4 -1
- package/lib/pathfinder/pathfinder.d.ts +13 -1
- package/lib/pathfinder/pathfinder.js +74 -11
- package/lib/types/IPToken.d.ts +21 -0
- package/lib/types/{IPendleSY.js → IPToken.js} +11 -4
- package/lib/types/IPendleMarket.d.ts +3 -27
- package/lib/types/IPendleMarket.js +3 -19
- package/lib/types/IPendleRouter.d.ts +536 -0
- package/lib/types/IPendleRouter.js +370 -0
- package/lib/types/IPendleRouterAdapter.d.ts +831 -0
- package/lib/types/IPendleRouterAdapter.js +572 -0
- package/lib/types/IPendleRouterAdapterEvents.d.ts +26 -0
- package/lib/types/IPendleRouterAdapterEvents.js +39 -0
- package/lib/types/IPendleRouterAdapterExceptions.d.ts +9 -0
- package/lib/types/IPendleRouterAdapterExceptions.js +10 -0
- package/lib/types/{IPendleYT.d.ts → IRouterComponent.d.ts} +8 -8
- package/lib/types/{IPendleYT.js → IRouterComponent.js} +8 -8
- package/lib/types/IRouterStatic.d.ts +128 -0
- package/lib/types/IRouterStatic.js +68 -0
- package/lib/types/ISwapper.d.ts +100 -0
- package/lib/types/ISwapper.js +75 -0
- package/lib/types/IYToken.d.ts +21 -0
- package/lib/types/IYToken.js +22 -0
- package/lib/types/PendleSwapper.d.ts +182 -0
- package/lib/types/PendleSwapper.js +130 -0
- package/lib/types/RouterComponentConfigurator.d.ts +61 -0
- package/lib/types/RouterComponentConfigurator.js +48 -0
- package/lib/types/index.d.ts +11 -2
- package/lib/types/index.js +11 -2
- package/package.json +5 -5
- package/lib/apy/curveAPY.d.ts +0 -61
- package/lib/apy/curveAPY.js +0 -143
- package/lib/apy/defiLamaAPY.d.ts +0 -3
- package/lib/apy/defiLamaAPY.js +0 -85
- package/lib/apy/lidoAPY.d.ts +0 -4
- package/lib/apy/lidoAPY.js +0 -19
- package/lib/apy/pendleAPY.d.ts +0 -5
- package/lib/apy/pendleAPY.js +0 -26
- package/lib/apy/skyAPY.d.ts +0 -5
- package/lib/apy/skyAPY.js +0 -28
- package/lib/apy/yearnAPY.d.ts +0 -3
- package/lib/apy/yearnAPY.js +0 -38
- package/lib/types/IPendleSY.d.ts +0 -11
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
export declare const iPendleRouterAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly name: "receiver";
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly type: "address";
|
|
7
|
+
}, {
|
|
8
|
+
readonly name: "YT";
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly type: "address";
|
|
11
|
+
}, {
|
|
12
|
+
readonly name: "netPyIn";
|
|
13
|
+
readonly internalType: "uint256";
|
|
14
|
+
readonly type: "uint256";
|
|
15
|
+
}, {
|
|
16
|
+
readonly name: "output";
|
|
17
|
+
readonly internalType: "struct TokenOutput";
|
|
18
|
+
readonly type: "tuple";
|
|
19
|
+
readonly components: readonly [{
|
|
20
|
+
readonly name: "tokenOut";
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly name: "minTokenOut";
|
|
25
|
+
readonly internalType: "uint256";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
}, {
|
|
28
|
+
readonly name: "tokenRedeemSy";
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly name: "pendleSwap";
|
|
33
|
+
readonly internalType: "address";
|
|
34
|
+
readonly type: "address";
|
|
35
|
+
}, {
|
|
36
|
+
readonly name: "swapData";
|
|
37
|
+
readonly internalType: "struct SwapData";
|
|
38
|
+
readonly type: "tuple";
|
|
39
|
+
readonly components: readonly [{
|
|
40
|
+
readonly name: "swapType";
|
|
41
|
+
readonly internalType: "enum SwapType";
|
|
42
|
+
readonly type: "uint8";
|
|
43
|
+
}, {
|
|
44
|
+
readonly name: "extRouter";
|
|
45
|
+
readonly internalType: "address";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly name: "extCalldata";
|
|
49
|
+
readonly internalType: "bytes";
|
|
50
|
+
readonly type: "bytes";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "needScale";
|
|
53
|
+
readonly internalType: "bool";
|
|
54
|
+
readonly type: "bool";
|
|
55
|
+
}];
|
|
56
|
+
}];
|
|
57
|
+
}];
|
|
58
|
+
readonly name: "redeemPyToToken";
|
|
59
|
+
readonly outputs: readonly [{
|
|
60
|
+
readonly name: "netTokenOut";
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly type: "uint256";
|
|
63
|
+
}, {
|
|
64
|
+
readonly name: "netSyInterm";
|
|
65
|
+
readonly internalType: "uint256";
|
|
66
|
+
readonly type: "uint256";
|
|
67
|
+
}];
|
|
68
|
+
readonly stateMutability: "nonpayable";
|
|
69
|
+
}, {
|
|
70
|
+
readonly type: "function";
|
|
71
|
+
readonly inputs: readonly [{
|
|
72
|
+
readonly name: "receiver";
|
|
73
|
+
readonly internalType: "address";
|
|
74
|
+
readonly type: "address";
|
|
75
|
+
}, {
|
|
76
|
+
readonly name: "market";
|
|
77
|
+
readonly internalType: "address";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
}, {
|
|
80
|
+
readonly name: "exactPtIn";
|
|
81
|
+
readonly internalType: "uint256";
|
|
82
|
+
readonly type: "uint256";
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "output";
|
|
85
|
+
readonly internalType: "struct TokenOutput";
|
|
86
|
+
readonly type: "tuple";
|
|
87
|
+
readonly components: readonly [{
|
|
88
|
+
readonly name: "tokenOut";
|
|
89
|
+
readonly internalType: "address";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "minTokenOut";
|
|
93
|
+
readonly internalType: "uint256";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "tokenRedeemSy";
|
|
97
|
+
readonly internalType: "address";
|
|
98
|
+
readonly type: "address";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "pendleSwap";
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}, {
|
|
104
|
+
readonly name: "swapData";
|
|
105
|
+
readonly internalType: "struct SwapData";
|
|
106
|
+
readonly type: "tuple";
|
|
107
|
+
readonly components: readonly [{
|
|
108
|
+
readonly name: "swapType";
|
|
109
|
+
readonly internalType: "enum SwapType";
|
|
110
|
+
readonly type: "uint8";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "extRouter";
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "extCalldata";
|
|
117
|
+
readonly internalType: "bytes";
|
|
118
|
+
readonly type: "bytes";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "needScale";
|
|
121
|
+
readonly internalType: "bool";
|
|
122
|
+
readonly type: "bool";
|
|
123
|
+
}];
|
|
124
|
+
}];
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "limit";
|
|
127
|
+
readonly internalType: "struct LimitOrderData";
|
|
128
|
+
readonly type: "tuple";
|
|
129
|
+
readonly components: readonly [{
|
|
130
|
+
readonly name: "limitRouter";
|
|
131
|
+
readonly internalType: "address";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "epsSkipMarket";
|
|
135
|
+
readonly internalType: "uint256";
|
|
136
|
+
readonly type: "uint256";
|
|
137
|
+
}, {
|
|
138
|
+
readonly name: "normalFills";
|
|
139
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
140
|
+
readonly type: "tuple[]";
|
|
141
|
+
readonly components: readonly [{
|
|
142
|
+
readonly name: "order";
|
|
143
|
+
readonly internalType: "struct Order";
|
|
144
|
+
readonly type: "tuple";
|
|
145
|
+
readonly components: readonly [{
|
|
146
|
+
readonly name: "salt";
|
|
147
|
+
readonly internalType: "uint256";
|
|
148
|
+
readonly type: "uint256";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "expiry";
|
|
151
|
+
readonly internalType: "uint256";
|
|
152
|
+
readonly type: "uint256";
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "nonce";
|
|
155
|
+
readonly internalType: "uint256";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "orderType";
|
|
159
|
+
readonly internalType: "enum OrderType";
|
|
160
|
+
readonly type: "uint8";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "token";
|
|
163
|
+
readonly internalType: "address";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "YT";
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "maker";
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}, {
|
|
174
|
+
readonly name: "receiver";
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
readonly type: "address";
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "makingAmount";
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "lnImpliedRate";
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly type: "uint256";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "failSafeRate";
|
|
187
|
+
readonly internalType: "uint256";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "permit";
|
|
191
|
+
readonly internalType: "bytes";
|
|
192
|
+
readonly type: "bytes";
|
|
193
|
+
}];
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "signature";
|
|
196
|
+
readonly internalType: "bytes";
|
|
197
|
+
readonly type: "bytes";
|
|
198
|
+
}, {
|
|
199
|
+
readonly name: "makingAmount";
|
|
200
|
+
readonly internalType: "uint256";
|
|
201
|
+
readonly type: "uint256";
|
|
202
|
+
}];
|
|
203
|
+
}, {
|
|
204
|
+
readonly name: "flashFills";
|
|
205
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
206
|
+
readonly type: "tuple[]";
|
|
207
|
+
readonly components: readonly [{
|
|
208
|
+
readonly name: "order";
|
|
209
|
+
readonly internalType: "struct Order";
|
|
210
|
+
readonly type: "tuple";
|
|
211
|
+
readonly components: readonly [{
|
|
212
|
+
readonly name: "salt";
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly type: "uint256";
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "expiry";
|
|
217
|
+
readonly internalType: "uint256";
|
|
218
|
+
readonly type: "uint256";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "nonce";
|
|
221
|
+
readonly internalType: "uint256";
|
|
222
|
+
readonly type: "uint256";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "orderType";
|
|
225
|
+
readonly internalType: "enum OrderType";
|
|
226
|
+
readonly type: "uint8";
|
|
227
|
+
}, {
|
|
228
|
+
readonly name: "token";
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
}, {
|
|
232
|
+
readonly name: "YT";
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "maker";
|
|
237
|
+
readonly internalType: "address";
|
|
238
|
+
readonly type: "address";
|
|
239
|
+
}, {
|
|
240
|
+
readonly name: "receiver";
|
|
241
|
+
readonly internalType: "address";
|
|
242
|
+
readonly type: "address";
|
|
243
|
+
}, {
|
|
244
|
+
readonly name: "makingAmount";
|
|
245
|
+
readonly internalType: "uint256";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}, {
|
|
248
|
+
readonly name: "lnImpliedRate";
|
|
249
|
+
readonly internalType: "uint256";
|
|
250
|
+
readonly type: "uint256";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "failSafeRate";
|
|
253
|
+
readonly internalType: "uint256";
|
|
254
|
+
readonly type: "uint256";
|
|
255
|
+
}, {
|
|
256
|
+
readonly name: "permit";
|
|
257
|
+
readonly internalType: "bytes";
|
|
258
|
+
readonly type: "bytes";
|
|
259
|
+
}];
|
|
260
|
+
}, {
|
|
261
|
+
readonly name: "signature";
|
|
262
|
+
readonly internalType: "bytes";
|
|
263
|
+
readonly type: "bytes";
|
|
264
|
+
}, {
|
|
265
|
+
readonly name: "makingAmount";
|
|
266
|
+
readonly internalType: "uint256";
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
}];
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "optData";
|
|
271
|
+
readonly internalType: "bytes";
|
|
272
|
+
readonly type: "bytes";
|
|
273
|
+
}];
|
|
274
|
+
}];
|
|
275
|
+
readonly name: "swapExactPtForToken";
|
|
276
|
+
readonly outputs: readonly [{
|
|
277
|
+
readonly name: "netTokenOut";
|
|
278
|
+
readonly internalType: "uint256";
|
|
279
|
+
readonly type: "uint256";
|
|
280
|
+
}, {
|
|
281
|
+
readonly name: "netSyFee";
|
|
282
|
+
readonly internalType: "uint256";
|
|
283
|
+
readonly type: "uint256";
|
|
284
|
+
}, {
|
|
285
|
+
readonly name: "netSyInterm";
|
|
286
|
+
readonly internalType: "uint256";
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
}];
|
|
289
|
+
readonly stateMutability: "nonpayable";
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "function";
|
|
292
|
+
readonly inputs: readonly [{
|
|
293
|
+
readonly name: "receiver";
|
|
294
|
+
readonly internalType: "address";
|
|
295
|
+
readonly type: "address";
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "market";
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
readonly type: "address";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "minPtOut";
|
|
302
|
+
readonly internalType: "uint256";
|
|
303
|
+
readonly type: "uint256";
|
|
304
|
+
}, {
|
|
305
|
+
readonly name: "guessPtOut";
|
|
306
|
+
readonly internalType: "struct ApproxParams";
|
|
307
|
+
readonly type: "tuple";
|
|
308
|
+
readonly components: readonly [{
|
|
309
|
+
readonly name: "guessMin";
|
|
310
|
+
readonly internalType: "uint256";
|
|
311
|
+
readonly type: "uint256";
|
|
312
|
+
}, {
|
|
313
|
+
readonly name: "guessMax";
|
|
314
|
+
readonly internalType: "uint256";
|
|
315
|
+
readonly type: "uint256";
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "guessOffchain";
|
|
318
|
+
readonly internalType: "uint256";
|
|
319
|
+
readonly type: "uint256";
|
|
320
|
+
}, {
|
|
321
|
+
readonly name: "maxIteration";
|
|
322
|
+
readonly internalType: "uint256";
|
|
323
|
+
readonly type: "uint256";
|
|
324
|
+
}, {
|
|
325
|
+
readonly name: "eps";
|
|
326
|
+
readonly internalType: "uint256";
|
|
327
|
+
readonly type: "uint256";
|
|
328
|
+
}];
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "input";
|
|
331
|
+
readonly internalType: "struct TokenInput";
|
|
332
|
+
readonly type: "tuple";
|
|
333
|
+
readonly components: readonly [{
|
|
334
|
+
readonly name: "tokenIn";
|
|
335
|
+
readonly internalType: "address";
|
|
336
|
+
readonly type: "address";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "netTokenIn";
|
|
339
|
+
readonly internalType: "uint256";
|
|
340
|
+
readonly type: "uint256";
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "tokenMintSy";
|
|
343
|
+
readonly internalType: "address";
|
|
344
|
+
readonly type: "address";
|
|
345
|
+
}, {
|
|
346
|
+
readonly name: "pendleSwap";
|
|
347
|
+
readonly internalType: "address";
|
|
348
|
+
readonly type: "address";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "swapData";
|
|
351
|
+
readonly internalType: "struct SwapData";
|
|
352
|
+
readonly type: "tuple";
|
|
353
|
+
readonly components: readonly [{
|
|
354
|
+
readonly name: "swapType";
|
|
355
|
+
readonly internalType: "enum SwapType";
|
|
356
|
+
readonly type: "uint8";
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "extRouter";
|
|
359
|
+
readonly internalType: "address";
|
|
360
|
+
readonly type: "address";
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "extCalldata";
|
|
363
|
+
readonly internalType: "bytes";
|
|
364
|
+
readonly type: "bytes";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "needScale";
|
|
367
|
+
readonly internalType: "bool";
|
|
368
|
+
readonly type: "bool";
|
|
369
|
+
}];
|
|
370
|
+
}];
|
|
371
|
+
}, {
|
|
372
|
+
readonly name: "limit";
|
|
373
|
+
readonly internalType: "struct LimitOrderData";
|
|
374
|
+
readonly type: "tuple";
|
|
375
|
+
readonly components: readonly [{
|
|
376
|
+
readonly name: "limitRouter";
|
|
377
|
+
readonly internalType: "address";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
}, {
|
|
380
|
+
readonly name: "epsSkipMarket";
|
|
381
|
+
readonly internalType: "uint256";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
}, {
|
|
384
|
+
readonly name: "normalFills";
|
|
385
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
386
|
+
readonly type: "tuple[]";
|
|
387
|
+
readonly components: readonly [{
|
|
388
|
+
readonly name: "order";
|
|
389
|
+
readonly internalType: "struct Order";
|
|
390
|
+
readonly type: "tuple";
|
|
391
|
+
readonly components: readonly [{
|
|
392
|
+
readonly name: "salt";
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
readonly type: "uint256";
|
|
395
|
+
}, {
|
|
396
|
+
readonly name: "expiry";
|
|
397
|
+
readonly internalType: "uint256";
|
|
398
|
+
readonly type: "uint256";
|
|
399
|
+
}, {
|
|
400
|
+
readonly name: "nonce";
|
|
401
|
+
readonly internalType: "uint256";
|
|
402
|
+
readonly type: "uint256";
|
|
403
|
+
}, {
|
|
404
|
+
readonly name: "orderType";
|
|
405
|
+
readonly internalType: "enum OrderType";
|
|
406
|
+
readonly type: "uint8";
|
|
407
|
+
}, {
|
|
408
|
+
readonly name: "token";
|
|
409
|
+
readonly internalType: "address";
|
|
410
|
+
readonly type: "address";
|
|
411
|
+
}, {
|
|
412
|
+
readonly name: "YT";
|
|
413
|
+
readonly internalType: "address";
|
|
414
|
+
readonly type: "address";
|
|
415
|
+
}, {
|
|
416
|
+
readonly name: "maker";
|
|
417
|
+
readonly internalType: "address";
|
|
418
|
+
readonly type: "address";
|
|
419
|
+
}, {
|
|
420
|
+
readonly name: "receiver";
|
|
421
|
+
readonly internalType: "address";
|
|
422
|
+
readonly type: "address";
|
|
423
|
+
}, {
|
|
424
|
+
readonly name: "makingAmount";
|
|
425
|
+
readonly internalType: "uint256";
|
|
426
|
+
readonly type: "uint256";
|
|
427
|
+
}, {
|
|
428
|
+
readonly name: "lnImpliedRate";
|
|
429
|
+
readonly internalType: "uint256";
|
|
430
|
+
readonly type: "uint256";
|
|
431
|
+
}, {
|
|
432
|
+
readonly name: "failSafeRate";
|
|
433
|
+
readonly internalType: "uint256";
|
|
434
|
+
readonly type: "uint256";
|
|
435
|
+
}, {
|
|
436
|
+
readonly name: "permit";
|
|
437
|
+
readonly internalType: "bytes";
|
|
438
|
+
readonly type: "bytes";
|
|
439
|
+
}];
|
|
440
|
+
}, {
|
|
441
|
+
readonly name: "signature";
|
|
442
|
+
readonly internalType: "bytes";
|
|
443
|
+
readonly type: "bytes";
|
|
444
|
+
}, {
|
|
445
|
+
readonly name: "makingAmount";
|
|
446
|
+
readonly internalType: "uint256";
|
|
447
|
+
readonly type: "uint256";
|
|
448
|
+
}];
|
|
449
|
+
}, {
|
|
450
|
+
readonly name: "flashFills";
|
|
451
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
452
|
+
readonly type: "tuple[]";
|
|
453
|
+
readonly components: readonly [{
|
|
454
|
+
readonly name: "order";
|
|
455
|
+
readonly internalType: "struct Order";
|
|
456
|
+
readonly type: "tuple";
|
|
457
|
+
readonly components: readonly [{
|
|
458
|
+
readonly name: "salt";
|
|
459
|
+
readonly internalType: "uint256";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
}, {
|
|
462
|
+
readonly name: "expiry";
|
|
463
|
+
readonly internalType: "uint256";
|
|
464
|
+
readonly type: "uint256";
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "nonce";
|
|
467
|
+
readonly internalType: "uint256";
|
|
468
|
+
readonly type: "uint256";
|
|
469
|
+
}, {
|
|
470
|
+
readonly name: "orderType";
|
|
471
|
+
readonly internalType: "enum OrderType";
|
|
472
|
+
readonly type: "uint8";
|
|
473
|
+
}, {
|
|
474
|
+
readonly name: "token";
|
|
475
|
+
readonly internalType: "address";
|
|
476
|
+
readonly type: "address";
|
|
477
|
+
}, {
|
|
478
|
+
readonly name: "YT";
|
|
479
|
+
readonly internalType: "address";
|
|
480
|
+
readonly type: "address";
|
|
481
|
+
}, {
|
|
482
|
+
readonly name: "maker";
|
|
483
|
+
readonly internalType: "address";
|
|
484
|
+
readonly type: "address";
|
|
485
|
+
}, {
|
|
486
|
+
readonly name: "receiver";
|
|
487
|
+
readonly internalType: "address";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "makingAmount";
|
|
491
|
+
readonly internalType: "uint256";
|
|
492
|
+
readonly type: "uint256";
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "lnImpliedRate";
|
|
495
|
+
readonly internalType: "uint256";
|
|
496
|
+
readonly type: "uint256";
|
|
497
|
+
}, {
|
|
498
|
+
readonly name: "failSafeRate";
|
|
499
|
+
readonly internalType: "uint256";
|
|
500
|
+
readonly type: "uint256";
|
|
501
|
+
}, {
|
|
502
|
+
readonly name: "permit";
|
|
503
|
+
readonly internalType: "bytes";
|
|
504
|
+
readonly type: "bytes";
|
|
505
|
+
}];
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "signature";
|
|
508
|
+
readonly internalType: "bytes";
|
|
509
|
+
readonly type: "bytes";
|
|
510
|
+
}, {
|
|
511
|
+
readonly name: "makingAmount";
|
|
512
|
+
readonly internalType: "uint256";
|
|
513
|
+
readonly type: "uint256";
|
|
514
|
+
}];
|
|
515
|
+
}, {
|
|
516
|
+
readonly name: "optData";
|
|
517
|
+
readonly internalType: "bytes";
|
|
518
|
+
readonly type: "bytes";
|
|
519
|
+
}];
|
|
520
|
+
}];
|
|
521
|
+
readonly name: "swapExactTokenForPt";
|
|
522
|
+
readonly outputs: readonly [{
|
|
523
|
+
readonly name: "netPtOut";
|
|
524
|
+
readonly internalType: "uint256";
|
|
525
|
+
readonly type: "uint256";
|
|
526
|
+
}, {
|
|
527
|
+
readonly name: "netSyFee";
|
|
528
|
+
readonly internalType: "uint256";
|
|
529
|
+
readonly type: "uint256";
|
|
530
|
+
}, {
|
|
531
|
+
readonly name: "netSyInterm";
|
|
532
|
+
readonly internalType: "uint256";
|
|
533
|
+
readonly type: "uint256";
|
|
534
|
+
}];
|
|
535
|
+
readonly stateMutability: "payable";
|
|
536
|
+
}];
|