@gearbox-protocol/sdk 11.2.1 → 11.3.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/dist/cjs/abi/router/infinifiWorker.js +541 -0
- package/dist/cjs/abi/router/uniswapV4Worker.js +574 -0
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +9 -0
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +9 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +17 -8
- package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +4 -4
- package/dist/cjs/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +2 -1
- package/dist/cjs/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +58 -0
- package/dist/cjs/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -1
- package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -1
- package/dist/cjs/plugins/adapters/contracts/UniswapV4AdapterContract.js +62 -0
- package/dist/cjs/plugins/adapters/types.js +3 -0
- package/dist/esm/abi/router/infinifiWorker.js +517 -0
- package/dist/esm/abi/router/uniswapV4Worker.js +550 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +9 -0
- package/dist/esm/plugins/adapters/abi/actionAbi.js +9 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +18 -9
- package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +3 -3
- package/dist/esm/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.js +2 -1
- package/dist/esm/plugins/adapters/contracts/InfinifiGatewayAdapterContract.js +34 -0
- package/dist/esm/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.js +2 -1
- package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +2 -1
- package/dist/esm/plugins/adapters/contracts/UniswapV4AdapterContract.js +38 -0
- package/dist/esm/plugins/adapters/types.js +3 -0
- package/dist/types/abi/router/infinifiWorker.d.ts +726 -0
- package/dist/types/abi/router/uniswapV4Worker.d.ts +774 -0
- package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +2 -2
- package/dist/types/plugins/adapters/contracts/BalancerV3RouterAdapterContract.d.ts +139 -13
- package/dist/types/plugins/adapters/contracts/BalancerV3WrapperAdapterContract.d.ts +117 -1
- package/dist/types/plugins/adapters/contracts/InfinifiGatewayAdapterContract.d.ts +351 -0
- package/dist/types/plugins/adapters/contracts/InfinifiUnwindingGatewayAdapterContract.d.ts +208 -0
- package/dist/types/plugins/adapters/contracts/MidasIssuanceVaultAdapterContract.d.ts +180 -1
- package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +276 -1
- package/dist/types/plugins/adapters/contracts/PendleRouterAdapterContract.d.ts +559 -0
- package/dist/types/plugins/adapters/contracts/UniswapV4AdapterContract.d.ts +320 -0
- package/dist/types/plugins/adapters/types.d.ts +4 -1
- package/package.json +2 -2
|
@@ -4,6 +4,300 @@ import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
|
4
4
|
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
5
|
import type { PendlePairStatus, PendleTokenType } from "./types.js";
|
|
6
6
|
declare const abi: readonly [{
|
|
7
|
+
readonly type: "function";
|
|
8
|
+
readonly inputs: readonly [{
|
|
9
|
+
readonly name: "receiver";
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly name: "market";
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "minLpOut";
|
|
18
|
+
readonly internalType: "uint256";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}, {
|
|
21
|
+
readonly name: "guessPtReceivedFromSy";
|
|
22
|
+
readonly internalType: "struct ApproxParams";
|
|
23
|
+
readonly type: "tuple";
|
|
24
|
+
readonly components: readonly [{
|
|
25
|
+
readonly name: "guessMin";
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
}, {
|
|
29
|
+
readonly name: "guessMax";
|
|
30
|
+
readonly internalType: "uint256";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "guessOffchain";
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "maxIteration";
|
|
38
|
+
readonly internalType: "uint256";
|
|
39
|
+
readonly type: "uint256";
|
|
40
|
+
}, {
|
|
41
|
+
readonly name: "eps";
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}];
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "input";
|
|
47
|
+
readonly internalType: "struct TokenInput";
|
|
48
|
+
readonly type: "tuple";
|
|
49
|
+
readonly components: readonly [{
|
|
50
|
+
readonly name: "tokenIn";
|
|
51
|
+
readonly internalType: "address";
|
|
52
|
+
readonly type: "address";
|
|
53
|
+
}, {
|
|
54
|
+
readonly name: "netTokenIn";
|
|
55
|
+
readonly internalType: "uint256";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "tokenMintSy";
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "pendleSwap";
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
readonly type: "address";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "swapData";
|
|
67
|
+
readonly internalType: "struct SwapData";
|
|
68
|
+
readonly type: "tuple";
|
|
69
|
+
readonly components: readonly [{
|
|
70
|
+
readonly name: "swapType";
|
|
71
|
+
readonly internalType: "enum SwapType";
|
|
72
|
+
readonly type: "uint8";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "extRouter";
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
readonly type: "address";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "extCalldata";
|
|
79
|
+
readonly internalType: "bytes";
|
|
80
|
+
readonly type: "bytes";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "needScale";
|
|
83
|
+
readonly internalType: "bool";
|
|
84
|
+
readonly type: "bool";
|
|
85
|
+
}];
|
|
86
|
+
}];
|
|
87
|
+
}, {
|
|
88
|
+
readonly name: "limit";
|
|
89
|
+
readonly internalType: "struct LimitOrderData";
|
|
90
|
+
readonly type: "tuple";
|
|
91
|
+
readonly components: readonly [{
|
|
92
|
+
readonly name: "limitRouter";
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly type: "address";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "epsSkipMarket";
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
readonly type: "uint256";
|
|
99
|
+
}, {
|
|
100
|
+
readonly name: "normalFills";
|
|
101
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
102
|
+
readonly type: "tuple[]";
|
|
103
|
+
readonly components: readonly [{
|
|
104
|
+
readonly name: "order";
|
|
105
|
+
readonly internalType: "struct Order";
|
|
106
|
+
readonly type: "tuple";
|
|
107
|
+
readonly components: readonly [{
|
|
108
|
+
readonly name: "salt";
|
|
109
|
+
readonly internalType: "uint256";
|
|
110
|
+
readonly type: "uint256";
|
|
111
|
+
}, {
|
|
112
|
+
readonly name: "expiry";
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
readonly type: "uint256";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "nonce";
|
|
117
|
+
readonly internalType: "uint256";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "orderType";
|
|
121
|
+
readonly internalType: "enum OrderType";
|
|
122
|
+
readonly type: "uint8";
|
|
123
|
+
}, {
|
|
124
|
+
readonly name: "token";
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
readonly type: "address";
|
|
127
|
+
}, {
|
|
128
|
+
readonly name: "YT";
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
readonly type: "address";
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "maker";
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
}, {
|
|
136
|
+
readonly name: "receiver";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly name: "makingAmount";
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
readonly type: "uint256";
|
|
143
|
+
}, {
|
|
144
|
+
readonly name: "lnImpliedRate";
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
readonly type: "uint256";
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "failSafeRate";
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly type: "uint256";
|
|
151
|
+
}, {
|
|
152
|
+
readonly name: "permit";
|
|
153
|
+
readonly internalType: "bytes";
|
|
154
|
+
readonly type: "bytes";
|
|
155
|
+
}];
|
|
156
|
+
}, {
|
|
157
|
+
readonly name: "signature";
|
|
158
|
+
readonly internalType: "bytes";
|
|
159
|
+
readonly type: "bytes";
|
|
160
|
+
}, {
|
|
161
|
+
readonly name: "makingAmount";
|
|
162
|
+
readonly internalType: "uint256";
|
|
163
|
+
readonly type: "uint256";
|
|
164
|
+
}];
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "flashFills";
|
|
167
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
168
|
+
readonly type: "tuple[]";
|
|
169
|
+
readonly components: readonly [{
|
|
170
|
+
readonly name: "order";
|
|
171
|
+
readonly internalType: "struct Order";
|
|
172
|
+
readonly type: "tuple";
|
|
173
|
+
readonly components: readonly [{
|
|
174
|
+
readonly name: "salt";
|
|
175
|
+
readonly internalType: "uint256";
|
|
176
|
+
readonly type: "uint256";
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "expiry";
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
readonly type: "uint256";
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "nonce";
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly type: "uint256";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "orderType";
|
|
187
|
+
readonly internalType: "enum OrderType";
|
|
188
|
+
readonly type: "uint8";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "token";
|
|
191
|
+
readonly internalType: "address";
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "YT";
|
|
195
|
+
readonly internalType: "address";
|
|
196
|
+
readonly type: "address";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "maker";
|
|
199
|
+
readonly internalType: "address";
|
|
200
|
+
readonly type: "address";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "receiver";
|
|
203
|
+
readonly internalType: "address";
|
|
204
|
+
readonly type: "address";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "makingAmount";
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "lnImpliedRate";
|
|
211
|
+
readonly internalType: "uint256";
|
|
212
|
+
readonly type: "uint256";
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "failSafeRate";
|
|
215
|
+
readonly internalType: "uint256";
|
|
216
|
+
readonly type: "uint256";
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "permit";
|
|
219
|
+
readonly internalType: "bytes";
|
|
220
|
+
readonly type: "bytes";
|
|
221
|
+
}];
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "signature";
|
|
224
|
+
readonly internalType: "bytes";
|
|
225
|
+
readonly type: "bytes";
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "makingAmount";
|
|
228
|
+
readonly internalType: "uint256";
|
|
229
|
+
readonly type: "uint256";
|
|
230
|
+
}];
|
|
231
|
+
}, {
|
|
232
|
+
readonly name: "optData";
|
|
233
|
+
readonly internalType: "bytes";
|
|
234
|
+
readonly type: "bytes";
|
|
235
|
+
}];
|
|
236
|
+
}];
|
|
237
|
+
readonly name: "addLiquiditySingleToken";
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "useSafePrices";
|
|
240
|
+
readonly internalType: "bool";
|
|
241
|
+
readonly type: "bool";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "nonpayable";
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly inputs: readonly [{
|
|
247
|
+
readonly name: "market";
|
|
248
|
+
readonly internalType: "address";
|
|
249
|
+
readonly type: "address";
|
|
250
|
+
}, {
|
|
251
|
+
readonly name: "minRateRAY";
|
|
252
|
+
readonly internalType: "uint256";
|
|
253
|
+
readonly type: "uint256";
|
|
254
|
+
}, {
|
|
255
|
+
readonly name: "guessPtReceivedFromSy";
|
|
256
|
+
readonly internalType: "struct ApproxParams";
|
|
257
|
+
readonly type: "tuple";
|
|
258
|
+
readonly components: readonly [{
|
|
259
|
+
readonly name: "guessMin";
|
|
260
|
+
readonly internalType: "uint256";
|
|
261
|
+
readonly type: "uint256";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "guessMax";
|
|
264
|
+
readonly internalType: "uint256";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "guessOffchain";
|
|
268
|
+
readonly internalType: "uint256";
|
|
269
|
+
readonly type: "uint256";
|
|
270
|
+
}, {
|
|
271
|
+
readonly name: "maxIteration";
|
|
272
|
+
readonly internalType: "uint256";
|
|
273
|
+
readonly type: "uint256";
|
|
274
|
+
}, {
|
|
275
|
+
readonly name: "eps";
|
|
276
|
+
readonly internalType: "uint256";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
}];
|
|
279
|
+
}, {
|
|
280
|
+
readonly name: "diffInput";
|
|
281
|
+
readonly internalType: "struct TokenDiffInput";
|
|
282
|
+
readonly type: "tuple";
|
|
283
|
+
readonly components: readonly [{
|
|
284
|
+
readonly name: "tokenIn";
|
|
285
|
+
readonly internalType: "address";
|
|
286
|
+
readonly type: "address";
|
|
287
|
+
}, {
|
|
288
|
+
readonly name: "leftoverTokenIn";
|
|
289
|
+
readonly internalType: "uint256";
|
|
290
|
+
readonly type: "uint256";
|
|
291
|
+
}];
|
|
292
|
+
}];
|
|
293
|
+
readonly name: "addLiquiditySingleTokenDiff";
|
|
294
|
+
readonly outputs: readonly [{
|
|
295
|
+
readonly name: "useSafePrices";
|
|
296
|
+
readonly internalType: "bool";
|
|
297
|
+
readonly type: "bool";
|
|
298
|
+
}];
|
|
299
|
+
readonly stateMutability: "nonpayable";
|
|
300
|
+
}, {
|
|
7
301
|
readonly type: "function";
|
|
8
302
|
readonly inputs: readonly [];
|
|
9
303
|
readonly name: "contractType";
|
|
@@ -43,6 +337,10 @@ declare const abi: readonly [{
|
|
|
43
337
|
readonly name: "pendleToken";
|
|
44
338
|
readonly internalType: "address";
|
|
45
339
|
readonly type: "address";
|
|
340
|
+
}, {
|
|
341
|
+
readonly name: "pendleTokenType";
|
|
342
|
+
readonly internalType: "enum PendleTokenType";
|
|
343
|
+
readonly type: "uint8";
|
|
46
344
|
}, {
|
|
47
345
|
readonly name: "status";
|
|
48
346
|
readonly internalType: "enum PendleStatus";
|
|
@@ -181,6 +479,250 @@ declare const abi: readonly [{
|
|
|
181
479
|
readonly type: "bool";
|
|
182
480
|
}];
|
|
183
481
|
readonly stateMutability: "nonpayable";
|
|
482
|
+
}, {
|
|
483
|
+
readonly type: "function";
|
|
484
|
+
readonly inputs: readonly [{
|
|
485
|
+
readonly name: "receiver";
|
|
486
|
+
readonly internalType: "address";
|
|
487
|
+
readonly type: "address";
|
|
488
|
+
}, {
|
|
489
|
+
readonly name: "market";
|
|
490
|
+
readonly internalType: "address";
|
|
491
|
+
readonly type: "address";
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "netLpToRemove";
|
|
494
|
+
readonly internalType: "uint256";
|
|
495
|
+
readonly type: "uint256";
|
|
496
|
+
}, {
|
|
497
|
+
readonly name: "output";
|
|
498
|
+
readonly internalType: "struct TokenOutput";
|
|
499
|
+
readonly type: "tuple";
|
|
500
|
+
readonly components: readonly [{
|
|
501
|
+
readonly name: "tokenOut";
|
|
502
|
+
readonly internalType: "address";
|
|
503
|
+
readonly type: "address";
|
|
504
|
+
}, {
|
|
505
|
+
readonly name: "minTokenOut";
|
|
506
|
+
readonly internalType: "uint256";
|
|
507
|
+
readonly type: "uint256";
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "tokenRedeemSy";
|
|
510
|
+
readonly internalType: "address";
|
|
511
|
+
readonly type: "address";
|
|
512
|
+
}, {
|
|
513
|
+
readonly name: "pendleSwap";
|
|
514
|
+
readonly internalType: "address";
|
|
515
|
+
readonly type: "address";
|
|
516
|
+
}, {
|
|
517
|
+
readonly name: "swapData";
|
|
518
|
+
readonly internalType: "struct SwapData";
|
|
519
|
+
readonly type: "tuple";
|
|
520
|
+
readonly components: readonly [{
|
|
521
|
+
readonly name: "swapType";
|
|
522
|
+
readonly internalType: "enum SwapType";
|
|
523
|
+
readonly type: "uint8";
|
|
524
|
+
}, {
|
|
525
|
+
readonly name: "extRouter";
|
|
526
|
+
readonly internalType: "address";
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
}, {
|
|
529
|
+
readonly name: "extCalldata";
|
|
530
|
+
readonly internalType: "bytes";
|
|
531
|
+
readonly type: "bytes";
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "needScale";
|
|
534
|
+
readonly internalType: "bool";
|
|
535
|
+
readonly type: "bool";
|
|
536
|
+
}];
|
|
537
|
+
}];
|
|
538
|
+
}, {
|
|
539
|
+
readonly name: "limit";
|
|
540
|
+
readonly internalType: "struct LimitOrderData";
|
|
541
|
+
readonly type: "tuple";
|
|
542
|
+
readonly components: readonly [{
|
|
543
|
+
readonly name: "limitRouter";
|
|
544
|
+
readonly internalType: "address";
|
|
545
|
+
readonly type: "address";
|
|
546
|
+
}, {
|
|
547
|
+
readonly name: "epsSkipMarket";
|
|
548
|
+
readonly internalType: "uint256";
|
|
549
|
+
readonly type: "uint256";
|
|
550
|
+
}, {
|
|
551
|
+
readonly name: "normalFills";
|
|
552
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
553
|
+
readonly type: "tuple[]";
|
|
554
|
+
readonly components: readonly [{
|
|
555
|
+
readonly name: "order";
|
|
556
|
+
readonly internalType: "struct Order";
|
|
557
|
+
readonly type: "tuple";
|
|
558
|
+
readonly components: readonly [{
|
|
559
|
+
readonly name: "salt";
|
|
560
|
+
readonly internalType: "uint256";
|
|
561
|
+
readonly type: "uint256";
|
|
562
|
+
}, {
|
|
563
|
+
readonly name: "expiry";
|
|
564
|
+
readonly internalType: "uint256";
|
|
565
|
+
readonly type: "uint256";
|
|
566
|
+
}, {
|
|
567
|
+
readonly name: "nonce";
|
|
568
|
+
readonly internalType: "uint256";
|
|
569
|
+
readonly type: "uint256";
|
|
570
|
+
}, {
|
|
571
|
+
readonly name: "orderType";
|
|
572
|
+
readonly internalType: "enum OrderType";
|
|
573
|
+
readonly type: "uint8";
|
|
574
|
+
}, {
|
|
575
|
+
readonly name: "token";
|
|
576
|
+
readonly internalType: "address";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
}, {
|
|
579
|
+
readonly name: "YT";
|
|
580
|
+
readonly internalType: "address";
|
|
581
|
+
readonly type: "address";
|
|
582
|
+
}, {
|
|
583
|
+
readonly name: "maker";
|
|
584
|
+
readonly internalType: "address";
|
|
585
|
+
readonly type: "address";
|
|
586
|
+
}, {
|
|
587
|
+
readonly name: "receiver";
|
|
588
|
+
readonly internalType: "address";
|
|
589
|
+
readonly type: "address";
|
|
590
|
+
}, {
|
|
591
|
+
readonly name: "makingAmount";
|
|
592
|
+
readonly internalType: "uint256";
|
|
593
|
+
readonly type: "uint256";
|
|
594
|
+
}, {
|
|
595
|
+
readonly name: "lnImpliedRate";
|
|
596
|
+
readonly internalType: "uint256";
|
|
597
|
+
readonly type: "uint256";
|
|
598
|
+
}, {
|
|
599
|
+
readonly name: "failSafeRate";
|
|
600
|
+
readonly internalType: "uint256";
|
|
601
|
+
readonly type: "uint256";
|
|
602
|
+
}, {
|
|
603
|
+
readonly name: "permit";
|
|
604
|
+
readonly internalType: "bytes";
|
|
605
|
+
readonly type: "bytes";
|
|
606
|
+
}];
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "signature";
|
|
609
|
+
readonly internalType: "bytes";
|
|
610
|
+
readonly type: "bytes";
|
|
611
|
+
}, {
|
|
612
|
+
readonly name: "makingAmount";
|
|
613
|
+
readonly internalType: "uint256";
|
|
614
|
+
readonly type: "uint256";
|
|
615
|
+
}];
|
|
616
|
+
}, {
|
|
617
|
+
readonly name: "flashFills";
|
|
618
|
+
readonly internalType: "struct FillOrderParams[]";
|
|
619
|
+
readonly type: "tuple[]";
|
|
620
|
+
readonly components: readonly [{
|
|
621
|
+
readonly name: "order";
|
|
622
|
+
readonly internalType: "struct Order";
|
|
623
|
+
readonly type: "tuple";
|
|
624
|
+
readonly components: readonly [{
|
|
625
|
+
readonly name: "salt";
|
|
626
|
+
readonly internalType: "uint256";
|
|
627
|
+
readonly type: "uint256";
|
|
628
|
+
}, {
|
|
629
|
+
readonly name: "expiry";
|
|
630
|
+
readonly internalType: "uint256";
|
|
631
|
+
readonly type: "uint256";
|
|
632
|
+
}, {
|
|
633
|
+
readonly name: "nonce";
|
|
634
|
+
readonly internalType: "uint256";
|
|
635
|
+
readonly type: "uint256";
|
|
636
|
+
}, {
|
|
637
|
+
readonly name: "orderType";
|
|
638
|
+
readonly internalType: "enum OrderType";
|
|
639
|
+
readonly type: "uint8";
|
|
640
|
+
}, {
|
|
641
|
+
readonly name: "token";
|
|
642
|
+
readonly internalType: "address";
|
|
643
|
+
readonly type: "address";
|
|
644
|
+
}, {
|
|
645
|
+
readonly name: "YT";
|
|
646
|
+
readonly internalType: "address";
|
|
647
|
+
readonly type: "address";
|
|
648
|
+
}, {
|
|
649
|
+
readonly name: "maker";
|
|
650
|
+
readonly internalType: "address";
|
|
651
|
+
readonly type: "address";
|
|
652
|
+
}, {
|
|
653
|
+
readonly name: "receiver";
|
|
654
|
+
readonly internalType: "address";
|
|
655
|
+
readonly type: "address";
|
|
656
|
+
}, {
|
|
657
|
+
readonly name: "makingAmount";
|
|
658
|
+
readonly internalType: "uint256";
|
|
659
|
+
readonly type: "uint256";
|
|
660
|
+
}, {
|
|
661
|
+
readonly name: "lnImpliedRate";
|
|
662
|
+
readonly internalType: "uint256";
|
|
663
|
+
readonly type: "uint256";
|
|
664
|
+
}, {
|
|
665
|
+
readonly name: "failSafeRate";
|
|
666
|
+
readonly internalType: "uint256";
|
|
667
|
+
readonly type: "uint256";
|
|
668
|
+
}, {
|
|
669
|
+
readonly name: "permit";
|
|
670
|
+
readonly internalType: "bytes";
|
|
671
|
+
readonly type: "bytes";
|
|
672
|
+
}];
|
|
673
|
+
}, {
|
|
674
|
+
readonly name: "signature";
|
|
675
|
+
readonly internalType: "bytes";
|
|
676
|
+
readonly type: "bytes";
|
|
677
|
+
}, {
|
|
678
|
+
readonly name: "makingAmount";
|
|
679
|
+
readonly internalType: "uint256";
|
|
680
|
+
readonly type: "uint256";
|
|
681
|
+
}];
|
|
682
|
+
}, {
|
|
683
|
+
readonly name: "optData";
|
|
684
|
+
readonly internalType: "bytes";
|
|
685
|
+
readonly type: "bytes";
|
|
686
|
+
}];
|
|
687
|
+
}];
|
|
688
|
+
readonly name: "removeLiquiditySingleToken";
|
|
689
|
+
readonly outputs: readonly [{
|
|
690
|
+
readonly name: "useSafePrices";
|
|
691
|
+
readonly internalType: "bool";
|
|
692
|
+
readonly type: "bool";
|
|
693
|
+
}];
|
|
694
|
+
readonly stateMutability: "nonpayable";
|
|
695
|
+
}, {
|
|
696
|
+
readonly type: "function";
|
|
697
|
+
readonly inputs: readonly [{
|
|
698
|
+
readonly name: "market";
|
|
699
|
+
readonly internalType: "address";
|
|
700
|
+
readonly type: "address";
|
|
701
|
+
}, {
|
|
702
|
+
readonly name: "leftoverLp";
|
|
703
|
+
readonly internalType: "uint256";
|
|
704
|
+
readonly type: "uint256";
|
|
705
|
+
}, {
|
|
706
|
+
readonly name: "diffOutput";
|
|
707
|
+
readonly internalType: "struct TokenDiffOutput";
|
|
708
|
+
readonly type: "tuple";
|
|
709
|
+
readonly components: readonly [{
|
|
710
|
+
readonly name: "tokenOut";
|
|
711
|
+
readonly internalType: "address";
|
|
712
|
+
readonly type: "address";
|
|
713
|
+
}, {
|
|
714
|
+
readonly name: "minRateRAY";
|
|
715
|
+
readonly internalType: "uint256";
|
|
716
|
+
readonly type: "uint256";
|
|
717
|
+
}];
|
|
718
|
+
}];
|
|
719
|
+
readonly name: "removeLiquiditySingleTokenDiff";
|
|
720
|
+
readonly outputs: readonly [{
|
|
721
|
+
readonly name: "useSafePrices";
|
|
722
|
+
readonly internalType: "bool";
|
|
723
|
+
readonly type: "bool";
|
|
724
|
+
}];
|
|
725
|
+
readonly stateMutability: "nonpayable";
|
|
184
726
|
}, {
|
|
185
727
|
readonly type: "function";
|
|
186
728
|
readonly inputs: readonly [];
|
|
@@ -209,6 +751,10 @@ declare const abi: readonly [{
|
|
|
209
751
|
readonly name: "pendleToken";
|
|
210
752
|
readonly internalType: "address";
|
|
211
753
|
readonly type: "address";
|
|
754
|
+
}, {
|
|
755
|
+
readonly name: "pendleTokenType";
|
|
756
|
+
readonly internalType: "enum PendleTokenType";
|
|
757
|
+
readonly type: "uint8";
|
|
212
758
|
}, {
|
|
213
759
|
readonly name: "status";
|
|
214
760
|
readonly internalType: "enum PendleStatus";
|
|
@@ -794,6 +1340,11 @@ declare const abi: readonly [{
|
|
|
794
1340
|
readonly internalType: "address";
|
|
795
1341
|
readonly type: "address";
|
|
796
1342
|
readonly indexed: true;
|
|
1343
|
+
}, {
|
|
1344
|
+
readonly name: "pendleTokenType";
|
|
1345
|
+
readonly internalType: "enum PendleTokenType";
|
|
1346
|
+
readonly type: "uint8";
|
|
1347
|
+
readonly indexed: false;
|
|
797
1348
|
}, {
|
|
798
1349
|
readonly name: "allowed";
|
|
799
1350
|
readonly internalType: "enum PendleStatus";
|
|
@@ -805,6 +1356,14 @@ declare const abi: readonly [{
|
|
|
805
1356
|
readonly type: "error";
|
|
806
1357
|
readonly inputs: readonly [];
|
|
807
1358
|
readonly name: "PairNotAllowedException";
|
|
1359
|
+
}, {
|
|
1360
|
+
readonly type: "error";
|
|
1361
|
+
readonly inputs: readonly [];
|
|
1362
|
+
readonly name: "PendleTokenIsNotPTException";
|
|
1363
|
+
}, {
|
|
1364
|
+
readonly type: "error";
|
|
1365
|
+
readonly inputs: readonly [];
|
|
1366
|
+
readonly name: "PendleTokenNotEqualToMarketException";
|
|
808
1367
|
}, {
|
|
809
1368
|
readonly type: "error";
|
|
810
1369
|
readonly inputs: readonly [];
|