@gearbox-protocol/sdk 14.12.0-next.56 → 14.12.0-next.57
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/liquidationCompressor.js +43 -1
- package/dist/cjs/abi/compressors/rwaCompressor.js +4 -4
- package/dist/cjs/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +43 -1
- package/dist/cjs/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +43 -1
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +20 -0
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +20 -0
- package/dist/cjs/abi/compressors/withdrawalCompressor.js +30 -0
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +8 -2
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +8 -2
- package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +67 -36
- package/dist/esm/abi/compressors/liquidationCompressor.js +43 -1
- package/dist/esm/abi/compressors/rwaCompressor.js +4 -4
- package/dist/esm/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js +43 -1
- package/dist/esm/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js +43 -1
- package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +20 -0
- package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +20 -0
- package/dist/esm/abi/compressors/withdrawalCompressor.js +30 -0
- package/dist/esm/plugins/adapters/abi/actionAbi.js +8 -2
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +8 -2
- package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +67 -36
- package/dist/types/abi/compressors/liquidationCompressor.d.ts +36 -1
- package/dist/types/abi/compressors/rwaCompressor.d.ts +4 -4
- package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts +36 -1
- package/dist/types/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.d.ts +36 -1
- package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +16 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +16 -0
- package/dist/types/abi/compressors/withdrawalCompressor.d.ts +24 -0
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +24 -0
- package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +8 -5
- package/package.json +1 -1
package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts
CHANGED
|
@@ -67,6 +67,10 @@ declare const midasWithdrawalSubcompressorAbi: readonly [{
|
|
|
67
67
|
readonly type: "bytes";
|
|
68
68
|
readonly internalType: "bytes";
|
|
69
69
|
}];
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "redeemer";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
readonly internalType: "address";
|
|
70
74
|
}, {
|
|
71
75
|
readonly name: "extraData";
|
|
72
76
|
readonly type: "bytes";
|
|
@@ -105,6 +109,10 @@ declare const midasWithdrawalSubcompressorAbi: readonly [{
|
|
|
105
109
|
readonly name: "claimableAt";
|
|
106
110
|
readonly type: "uint256";
|
|
107
111
|
readonly internalType: "uint256";
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "redeemer";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
readonly internalType: "address";
|
|
108
116
|
}, {
|
|
109
117
|
readonly name: "extraData";
|
|
110
118
|
readonly type: "bytes";
|
|
@@ -170,6 +178,10 @@ declare const midasWithdrawalSubcompressorAbi: readonly [{
|
|
|
170
178
|
readonly type: "bytes";
|
|
171
179
|
readonly internalType: "bytes";
|
|
172
180
|
}];
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "redeemer";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
readonly internalType: "address";
|
|
173
185
|
}, {
|
|
174
186
|
readonly name: "extraData";
|
|
175
187
|
readonly type: "bytes";
|
|
@@ -208,6 +220,10 @@ declare const midasWithdrawalSubcompressorAbi: readonly [{
|
|
|
208
220
|
readonly name: "claimableAt";
|
|
209
221
|
readonly type: "uint256";
|
|
210
222
|
readonly internalType: "uint256";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "redeemer";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
readonly internalType: "address";
|
|
211
227
|
}, {
|
|
212
228
|
readonly name: "extraData";
|
|
213
229
|
readonly type: "bytes";
|
package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts
CHANGED
|
@@ -67,6 +67,10 @@ declare const securitizeRedemptionSubcompressorAbi: readonly [{
|
|
|
67
67
|
readonly type: "bytes";
|
|
68
68
|
readonly internalType: "bytes";
|
|
69
69
|
}];
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "redeemer";
|
|
72
|
+
readonly type: "address";
|
|
73
|
+
readonly internalType: "address";
|
|
70
74
|
}, {
|
|
71
75
|
readonly name: "extraData";
|
|
72
76
|
readonly type: "bytes";
|
|
@@ -105,6 +109,10 @@ declare const securitizeRedemptionSubcompressorAbi: readonly [{
|
|
|
105
109
|
readonly name: "claimableAt";
|
|
106
110
|
readonly type: "uint256";
|
|
107
111
|
readonly internalType: "uint256";
|
|
112
|
+
}, {
|
|
113
|
+
readonly name: "redeemer";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
readonly internalType: "address";
|
|
108
116
|
}, {
|
|
109
117
|
readonly name: "extraData";
|
|
110
118
|
readonly type: "bytes";
|
|
@@ -170,6 +178,10 @@ declare const securitizeRedemptionSubcompressorAbi: readonly [{
|
|
|
170
178
|
readonly type: "bytes";
|
|
171
179
|
readonly internalType: "bytes";
|
|
172
180
|
}];
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "redeemer";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
readonly internalType: "address";
|
|
173
185
|
}, {
|
|
174
186
|
readonly name: "extraData";
|
|
175
187
|
readonly type: "bytes";
|
|
@@ -208,6 +220,10 @@ declare const securitizeRedemptionSubcompressorAbi: readonly [{
|
|
|
208
220
|
readonly name: "claimableAt";
|
|
209
221
|
readonly type: "uint256";
|
|
210
222
|
readonly internalType: "uint256";
|
|
223
|
+
}, {
|
|
224
|
+
readonly name: "redeemer";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
readonly internalType: "address";
|
|
211
227
|
}, {
|
|
212
228
|
readonly name: "extraData";
|
|
213
229
|
readonly type: "bytes";
|
|
@@ -103,6 +103,10 @@ declare const withdrawalCompressorAbi: readonly [{
|
|
|
103
103
|
readonly type: "bytes";
|
|
104
104
|
readonly internalType: "bytes";
|
|
105
105
|
}];
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "redeemer";
|
|
108
|
+
readonly type: "address";
|
|
109
|
+
readonly internalType: "address";
|
|
106
110
|
}, {
|
|
107
111
|
readonly name: "extraData";
|
|
108
112
|
readonly type: "bytes";
|
|
@@ -141,6 +145,10 @@ declare const withdrawalCompressorAbi: readonly [{
|
|
|
141
145
|
readonly name: "claimableAt";
|
|
142
146
|
readonly type: "uint256";
|
|
143
147
|
readonly internalType: "uint256";
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "redeemer";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
readonly internalType: "address";
|
|
144
152
|
}, {
|
|
145
153
|
readonly name: "extraData";
|
|
146
154
|
readonly type: "bytes";
|
|
@@ -206,6 +214,10 @@ declare const withdrawalCompressorAbi: readonly [{
|
|
|
206
214
|
readonly type: "bytes";
|
|
207
215
|
readonly internalType: "bytes";
|
|
208
216
|
}];
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "redeemer";
|
|
219
|
+
readonly type: "address";
|
|
220
|
+
readonly internalType: "address";
|
|
209
221
|
}, {
|
|
210
222
|
readonly name: "extraData";
|
|
211
223
|
readonly type: "bytes";
|
|
@@ -244,6 +256,10 @@ declare const withdrawalCompressorAbi: readonly [{
|
|
|
244
256
|
readonly name: "claimableAt";
|
|
245
257
|
readonly type: "uint256";
|
|
246
258
|
readonly internalType: "uint256";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "redeemer";
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
readonly internalType: "address";
|
|
247
263
|
}, {
|
|
248
264
|
readonly name: "extraData";
|
|
249
265
|
readonly type: "bytes";
|
|
@@ -309,6 +325,10 @@ declare const withdrawalCompressorAbi: readonly [{
|
|
|
309
325
|
readonly type: "bytes";
|
|
310
326
|
readonly internalType: "bytes";
|
|
311
327
|
}];
|
|
328
|
+
}, {
|
|
329
|
+
readonly name: "redeemer";
|
|
330
|
+
readonly type: "address";
|
|
331
|
+
readonly internalType: "address";
|
|
312
332
|
}, {
|
|
313
333
|
readonly name: "extraData";
|
|
314
334
|
readonly type: "bytes";
|
|
@@ -347,6 +367,10 @@ declare const withdrawalCompressorAbi: readonly [{
|
|
|
347
367
|
readonly name: "claimableAt";
|
|
348
368
|
readonly type: "uint256";
|
|
349
369
|
readonly internalType: "uint256";
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "redeemer";
|
|
372
|
+
readonly type: "address";
|
|
373
|
+
readonly internalType: "address";
|
|
350
374
|
}, {
|
|
351
375
|
readonly name: "extraData";
|
|
352
376
|
readonly type: "bytes";
|
|
@@ -107,6 +107,10 @@ declare const abi: readonly [{
|
|
|
107
107
|
readonly type: "bytes";
|
|
108
108
|
readonly internalType: "bytes";
|
|
109
109
|
}];
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "redeemer";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
readonly internalType: "address";
|
|
110
114
|
}, {
|
|
111
115
|
readonly name: "extraData";
|
|
112
116
|
readonly type: "bytes";
|
|
@@ -145,6 +149,10 @@ declare const abi: readonly [{
|
|
|
145
149
|
readonly name: "claimableAt";
|
|
146
150
|
readonly type: "uint256";
|
|
147
151
|
readonly internalType: "uint256";
|
|
152
|
+
}, {
|
|
153
|
+
readonly name: "redeemer";
|
|
154
|
+
readonly type: "address";
|
|
155
|
+
readonly internalType: "address";
|
|
148
156
|
}, {
|
|
149
157
|
readonly name: "extraData";
|
|
150
158
|
readonly type: "bytes";
|
|
@@ -210,6 +218,10 @@ declare const abi: readonly [{
|
|
|
210
218
|
readonly type: "bytes";
|
|
211
219
|
readonly internalType: "bytes";
|
|
212
220
|
}];
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "redeemer";
|
|
223
|
+
readonly type: "address";
|
|
224
|
+
readonly internalType: "address";
|
|
213
225
|
}, {
|
|
214
226
|
readonly name: "extraData";
|
|
215
227
|
readonly type: "bytes";
|
|
@@ -248,6 +260,10 @@ declare const abi: readonly [{
|
|
|
248
260
|
readonly name: "claimableAt";
|
|
249
261
|
readonly type: "uint256";
|
|
250
262
|
readonly internalType: "uint256";
|
|
263
|
+
}, {
|
|
264
|
+
readonly name: "redeemer";
|
|
265
|
+
readonly type: "address";
|
|
266
|
+
readonly internalType: "address";
|
|
251
267
|
}, {
|
|
252
268
|
readonly name: "extraData";
|
|
253
269
|
readonly type: "bytes";
|
|
@@ -313,6 +329,10 @@ declare const abi: readonly [{
|
|
|
313
329
|
readonly type: "bytes";
|
|
314
330
|
readonly internalType: "bytes";
|
|
315
331
|
}];
|
|
332
|
+
}, {
|
|
333
|
+
readonly name: "redeemer";
|
|
334
|
+
readonly type: "address";
|
|
335
|
+
readonly internalType: "address";
|
|
316
336
|
}, {
|
|
317
337
|
readonly name: "extraData";
|
|
318
338
|
readonly type: "bytes";
|
|
@@ -351,6 +371,10 @@ declare const abi: readonly [{
|
|
|
351
371
|
readonly name: "claimableAt";
|
|
352
372
|
readonly type: "uint256";
|
|
353
373
|
readonly internalType: "uint256";
|
|
374
|
+
}, {
|
|
375
|
+
readonly name: "redeemer";
|
|
376
|
+
readonly type: "address";
|
|
377
|
+
readonly internalType: "address";
|
|
354
378
|
}, {
|
|
355
379
|
readonly name: "extraData";
|
|
356
380
|
readonly type: "bytes";
|
|
@@ -462,12 +462,12 @@ type protocolAbi = typeof protocolAbi;
|
|
|
462
462
|
declare class MidasRedemptionVaultAdapterContract extends AbstractAdapterContract<abi, protocolAbi> {
|
|
463
463
|
#private;
|
|
464
464
|
constructor(sdk: OnchainSDK, args: ConcreteAdapterContractOptions);
|
|
465
|
-
get gateway(): Address;
|
|
465
|
+
get gateway(): Address | undefined;
|
|
466
466
|
get mToken(): Address;
|
|
467
467
|
get allowedTokens(): {
|
|
468
468
|
token: Address;
|
|
469
|
-
phantomToken
|
|
470
|
-
}[];
|
|
469
|
+
phantomToken?: Address;
|
|
470
|
+
}[] | Address[];
|
|
471
471
|
stateHuman(raw?: boolean): {
|
|
472
472
|
address: string;
|
|
473
473
|
version: number;
|
|
@@ -476,10 +476,13 @@ declare class MidasRedemptionVaultAdapterContract extends AbstractAdapterContrac
|
|
|
476
476
|
targetContract?: string;
|
|
477
477
|
gateway: string | undefined;
|
|
478
478
|
mToken: string | undefined;
|
|
479
|
-
allowedTokens: {
|
|
479
|
+
allowedTokens: ({
|
|
480
480
|
token: string;
|
|
481
481
|
phantomToken: string;
|
|
482
|
-
}
|
|
482
|
+
} | {
|
|
483
|
+
phantomToken?: undefined;
|
|
484
|
+
token: string;
|
|
485
|
+
})[] | undefined;
|
|
483
486
|
};
|
|
484
487
|
protected applyBalanceChanges(balances: AssetsMap, decoded: DecodeFunctionDataReturnType<abi>): Promise<void>;
|
|
485
488
|
}
|