@gearbox-protocol/sdk 14.11.10 → 14.11.12
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/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +83 -0
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +83 -0
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +83 -0
- package/dist/cjs/abi/compressors/withdrawalCompressor.js +172 -0
- package/dist/cjs/abi/router/midasWorker.js +4 -4
- package/dist/cjs/dev/AccountOpener.js +2 -2
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +0 -6
- package/dist/cjs/plugins/adapters/contracts/MidasGatewayAdapterContract.js +19 -29
- package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +83 -0
- package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +83 -0
- package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +83 -0
- package/dist/esm/abi/compressors/withdrawalCompressor.js +172 -0
- package/dist/esm/abi/router/midasWorker.js +4 -4
- package/dist/esm/dev/AccountOpener.js +2 -2
- package/dist/esm/plugins/adapters/abi/actionAbi.js +0 -6
- package/dist/esm/plugins/adapters/contracts/MidasGatewayAdapterContract.js +19 -29
- package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +117 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +117 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +117 -0
- package/dist/types/abi/compressors/withdrawalCompressor.d.ts +234 -0
- package/dist/types/abi/router/midasWorker.d.ts +4 -4
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +234 -0
- package/dist/types/plugins/adapters/contracts/MidasGatewayAdapterContract.d.ts +4 -10
- package/package.json +1 -1
|
@@ -149,6 +149,212 @@ declare const abi: readonly [{
|
|
|
149
149
|
}];
|
|
150
150
|
}];
|
|
151
151
|
readonly stateMutability: "view";
|
|
152
|
+
}, {
|
|
153
|
+
readonly type: "function";
|
|
154
|
+
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
155
|
+
readonly inputs: readonly [{
|
|
156
|
+
readonly name: "withdrawalTokens";
|
|
157
|
+
readonly type: "address[]";
|
|
158
|
+
readonly internalType: "address[]";
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "account";
|
|
161
|
+
readonly type: "address";
|
|
162
|
+
readonly internalType: "address";
|
|
163
|
+
}];
|
|
164
|
+
readonly outputs: readonly [{
|
|
165
|
+
readonly name: "";
|
|
166
|
+
readonly type: "tuple[]";
|
|
167
|
+
readonly internalType: "struct ClaimableWithdrawal[]";
|
|
168
|
+
readonly components: readonly [{
|
|
169
|
+
readonly name: "token";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "withdrawalPhantomToken";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
}, {
|
|
177
|
+
readonly name: "withdrawalTokenSpent";
|
|
178
|
+
readonly type: "uint256";
|
|
179
|
+
readonly internalType: "uint256";
|
|
180
|
+
}, {
|
|
181
|
+
readonly name: "outputs";
|
|
182
|
+
readonly type: "tuple[]";
|
|
183
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
184
|
+
readonly components: readonly [{
|
|
185
|
+
readonly name: "token";
|
|
186
|
+
readonly type: "address";
|
|
187
|
+
readonly internalType: "address";
|
|
188
|
+
}, {
|
|
189
|
+
readonly name: "isDelayed";
|
|
190
|
+
readonly type: "bool";
|
|
191
|
+
readonly internalType: "bool";
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "amount";
|
|
194
|
+
readonly type: "uint256";
|
|
195
|
+
readonly internalType: "uint256";
|
|
196
|
+
}];
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "claimCalls";
|
|
199
|
+
readonly type: "tuple[]";
|
|
200
|
+
readonly internalType: "struct MultiCall[]";
|
|
201
|
+
readonly components: readonly [{
|
|
202
|
+
readonly name: "target";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
readonly internalType: "address";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "callData";
|
|
207
|
+
readonly type: "bytes";
|
|
208
|
+
readonly internalType: "bytes";
|
|
209
|
+
}];
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "extraData";
|
|
212
|
+
readonly type: "bytes";
|
|
213
|
+
readonly internalType: "bytes";
|
|
214
|
+
}];
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "";
|
|
217
|
+
readonly type: "tuple[]";
|
|
218
|
+
readonly internalType: "struct PendingWithdrawal[]";
|
|
219
|
+
readonly components: readonly [{
|
|
220
|
+
readonly name: "token";
|
|
221
|
+
readonly type: "address";
|
|
222
|
+
readonly internalType: "address";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "withdrawalPhantomToken";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
}, {
|
|
228
|
+
readonly name: "expectedOutputs";
|
|
229
|
+
readonly type: "tuple[]";
|
|
230
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
231
|
+
readonly components: readonly [{
|
|
232
|
+
readonly name: "token";
|
|
233
|
+
readonly type: "address";
|
|
234
|
+
readonly internalType: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "isDelayed";
|
|
237
|
+
readonly type: "bool";
|
|
238
|
+
readonly internalType: "bool";
|
|
239
|
+
}, {
|
|
240
|
+
readonly name: "amount";
|
|
241
|
+
readonly type: "uint256";
|
|
242
|
+
readonly internalType: "uint256";
|
|
243
|
+
}];
|
|
244
|
+
}, {
|
|
245
|
+
readonly name: "claimableAt";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
readonly internalType: "uint256";
|
|
248
|
+
}, {
|
|
249
|
+
readonly name: "extraData";
|
|
250
|
+
readonly type: "bytes";
|
|
251
|
+
readonly internalType: "bytes";
|
|
252
|
+
}];
|
|
253
|
+
}];
|
|
254
|
+
readonly stateMutability: "view";
|
|
255
|
+
}, {
|
|
256
|
+
readonly type: "function";
|
|
257
|
+
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
258
|
+
readonly inputs: readonly [{
|
|
259
|
+
readonly name: "withdrawalToken";
|
|
260
|
+
readonly type: "address";
|
|
261
|
+
readonly internalType: "address";
|
|
262
|
+
}, {
|
|
263
|
+
readonly name: "account";
|
|
264
|
+
readonly type: "address";
|
|
265
|
+
readonly internalType: "address";
|
|
266
|
+
}];
|
|
267
|
+
readonly outputs: readonly [{
|
|
268
|
+
readonly name: "";
|
|
269
|
+
readonly type: "tuple[]";
|
|
270
|
+
readonly internalType: "struct ClaimableWithdrawal[]";
|
|
271
|
+
readonly components: readonly [{
|
|
272
|
+
readonly name: "token";
|
|
273
|
+
readonly type: "address";
|
|
274
|
+
readonly internalType: "address";
|
|
275
|
+
}, {
|
|
276
|
+
readonly name: "withdrawalPhantomToken";
|
|
277
|
+
readonly type: "address";
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
}, {
|
|
280
|
+
readonly name: "withdrawalTokenSpent";
|
|
281
|
+
readonly type: "uint256";
|
|
282
|
+
readonly internalType: "uint256";
|
|
283
|
+
}, {
|
|
284
|
+
readonly name: "outputs";
|
|
285
|
+
readonly type: "tuple[]";
|
|
286
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
287
|
+
readonly components: readonly [{
|
|
288
|
+
readonly name: "token";
|
|
289
|
+
readonly type: "address";
|
|
290
|
+
readonly internalType: "address";
|
|
291
|
+
}, {
|
|
292
|
+
readonly name: "isDelayed";
|
|
293
|
+
readonly type: "bool";
|
|
294
|
+
readonly internalType: "bool";
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "amount";
|
|
297
|
+
readonly type: "uint256";
|
|
298
|
+
readonly internalType: "uint256";
|
|
299
|
+
}];
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "claimCalls";
|
|
302
|
+
readonly type: "tuple[]";
|
|
303
|
+
readonly internalType: "struct MultiCall[]";
|
|
304
|
+
readonly components: readonly [{
|
|
305
|
+
readonly name: "target";
|
|
306
|
+
readonly type: "address";
|
|
307
|
+
readonly internalType: "address";
|
|
308
|
+
}, {
|
|
309
|
+
readonly name: "callData";
|
|
310
|
+
readonly type: "bytes";
|
|
311
|
+
readonly internalType: "bytes";
|
|
312
|
+
}];
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "extraData";
|
|
315
|
+
readonly type: "bytes";
|
|
316
|
+
readonly internalType: "bytes";
|
|
317
|
+
}];
|
|
318
|
+
}, {
|
|
319
|
+
readonly name: "";
|
|
320
|
+
readonly type: "tuple[]";
|
|
321
|
+
readonly internalType: "struct PendingWithdrawal[]";
|
|
322
|
+
readonly components: readonly [{
|
|
323
|
+
readonly name: "token";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
readonly internalType: "address";
|
|
326
|
+
}, {
|
|
327
|
+
readonly name: "withdrawalPhantomToken";
|
|
328
|
+
readonly type: "address";
|
|
329
|
+
readonly internalType: "address";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "expectedOutputs";
|
|
332
|
+
readonly type: "tuple[]";
|
|
333
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
334
|
+
readonly components: readonly [{
|
|
335
|
+
readonly name: "token";
|
|
336
|
+
readonly type: "address";
|
|
337
|
+
readonly internalType: "address";
|
|
338
|
+
}, {
|
|
339
|
+
readonly name: "isDelayed";
|
|
340
|
+
readonly type: "bool";
|
|
341
|
+
readonly internalType: "bool";
|
|
342
|
+
}, {
|
|
343
|
+
readonly name: "amount";
|
|
344
|
+
readonly type: "uint256";
|
|
345
|
+
readonly internalType: "uint256";
|
|
346
|
+
}];
|
|
347
|
+
}, {
|
|
348
|
+
readonly name: "claimableAt";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
readonly internalType: "uint256";
|
|
351
|
+
}, {
|
|
352
|
+
readonly name: "extraData";
|
|
353
|
+
readonly type: "bytes";
|
|
354
|
+
readonly internalType: "bytes";
|
|
355
|
+
}];
|
|
356
|
+
}];
|
|
357
|
+
readonly stateMutability: "view";
|
|
152
358
|
}, {
|
|
153
359
|
readonly type: "function";
|
|
154
360
|
readonly name: "getWithdrawableAssets";
|
|
@@ -391,6 +597,34 @@ declare const abi: readonly [{
|
|
|
391
597
|
}];
|
|
392
598
|
}];
|
|
393
599
|
readonly stateMutability: "view";
|
|
600
|
+
}, {
|
|
601
|
+
readonly type: "function";
|
|
602
|
+
readonly name: "getWithdrawalStatus";
|
|
603
|
+
readonly inputs: readonly [{
|
|
604
|
+
readonly name: "redeemers";
|
|
605
|
+
readonly type: "address[]";
|
|
606
|
+
readonly internalType: "address[]";
|
|
607
|
+
}];
|
|
608
|
+
readonly outputs: readonly [{
|
|
609
|
+
readonly name: "";
|
|
610
|
+
readonly type: "uint8[]";
|
|
611
|
+
readonly internalType: "enum WithdrawalStatus[]";
|
|
612
|
+
}];
|
|
613
|
+
readonly stateMutability: "view";
|
|
614
|
+
}, {
|
|
615
|
+
readonly type: "function";
|
|
616
|
+
readonly name: "getWithdrawalStatus";
|
|
617
|
+
readonly inputs: readonly [{
|
|
618
|
+
readonly name: "redeemer";
|
|
619
|
+
readonly type: "address";
|
|
620
|
+
readonly internalType: "address";
|
|
621
|
+
}];
|
|
622
|
+
readonly outputs: readonly [{
|
|
623
|
+
readonly name: "";
|
|
624
|
+
readonly type: "uint8";
|
|
625
|
+
readonly internalType: "enum WithdrawalStatus";
|
|
626
|
+
}];
|
|
627
|
+
readonly stateMutability: "view";
|
|
394
628
|
}, {
|
|
395
629
|
readonly type: "function";
|
|
396
630
|
readonly name: "owner";
|
|
@@ -1119,21 +1119,15 @@ export declare class MidasGatewayAdapterContract extends AbstractAdapterContract
|
|
|
1119
1119
|
constructor(options: ConstructOptions, args: ConcreteAdapterContractOptions);
|
|
1120
1120
|
get gateway(): Address;
|
|
1121
1121
|
get mToken(): Address;
|
|
1122
|
-
get
|
|
1123
|
-
|
|
1124
|
-
phantomToken: Address;
|
|
1125
|
-
}[];
|
|
1122
|
+
get quoteToken(): Address;
|
|
1123
|
+
get phantomToken(): Address;
|
|
1126
1124
|
get referralId(): Hex;
|
|
1127
|
-
get allowedInputTokens(): Address[];
|
|
1128
1125
|
stateHuman(raw?: boolean): {
|
|
1129
1126
|
gateway: string | undefined;
|
|
1130
1127
|
mToken: string | undefined;
|
|
1128
|
+
quoteToken: string | undefined;
|
|
1129
|
+
phantomToken: string | undefined;
|
|
1131
1130
|
referralId: `0x${string}` | undefined;
|
|
1132
|
-
allowedInputTokens: string[] | undefined;
|
|
1133
|
-
allowedTokens: {
|
|
1134
|
-
token: string;
|
|
1135
|
-
phantomToken: string;
|
|
1136
|
-
}[] | undefined;
|
|
1137
1131
|
creditManager?: string;
|
|
1138
1132
|
targetContract?: string;
|
|
1139
1133
|
address: string;
|