@gearbox-protocol/sdk 14.12.0-next.56 → 14.12.0-next.58
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/ILiquidationCompressorV313.js +43 -1
- package/dist/cjs/abi/IWithdrawalCompressorV313.js +71 -41
- 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/cjs/sdk/accounts/liquidations/LiquidationsService.js +27 -43
- package/dist/cjs/sdk/accounts/liquidations/constants.js +1 -1
- package/dist/cjs/sdk/accounts/liquidations/helpers.js +4 -2
- package/dist/cjs/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +12 -0
- package/dist/cjs/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +10 -0
- package/dist/cjs/sdk/accounts/withdrawal-compressor/addresses.js +1 -1
- package/dist/esm/abi/ILiquidationCompressorV313.js +43 -1
- package/dist/esm/abi/IWithdrawalCompressorV313.js +71 -41
- 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/esm/sdk/accounts/liquidations/LiquidationsService.js +29 -45
- package/dist/esm/sdk/accounts/liquidations/constants.js +1 -1
- package/dist/esm/sdk/accounts/liquidations/helpers.js +4 -2
- package/dist/esm/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.js +12 -0
- package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +10 -0
- package/dist/esm/sdk/accounts/withdrawal-compressor/addresses.js +1 -1
- package/dist/types/abi/ILiquidationCompressorV313.d.ts +36 -1
- package/dist/types/abi/IWithdrawalCompressorV313.d.ts +62 -38
- 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/dist/types/sdk/accounts/liquidations/helpers.d.ts +8 -1
- package/dist/types/sdk/accounts/liquidations/types.d.ts +27 -5
- package/dist/types/sdk/accounts/withdrawal-compressor/AbstractWithdrawalCompressorContract.d.ts +3 -3
- package/dist/types/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.d.ts +62 -38
- package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { AddressMap } from "../../utils/AddressMap.js";
|
|
2
|
+
import "../../constants/addresses.js";
|
|
3
|
+
import "../../constants/index.js";
|
|
4
|
+
import { hexEq } from "../../utils/hex.js";
|
|
2
5
|
import "../../utils/index.js";
|
|
3
6
|
import { BaseContract } from "../../base/BaseContract.js";
|
|
4
7
|
import "../../base/index.js";
|
|
@@ -200,6 +203,13 @@ function toRequestableWithdrawal(resp) {
|
|
|
200
203
|
};
|
|
201
204
|
}
|
|
202
205
|
/**
|
|
206
|
+
* Normalizes the redeemer of a withdrawal: legacy compressors do not report
|
|
207
|
+
* one, and v313+ uses the zero address for "not applicable".
|
|
208
|
+
**/
|
|
209
|
+
function toRedeemer(redeemer) {
|
|
210
|
+
return !redeemer || hexEq(redeemer, "0x0000000000000000000000000000000000000000") ? void 0 : redeemer;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
203
213
|
* Normalizes a claimable withdrawal. The intent is decoded from `extraData`
|
|
204
214
|
* only when `creditManager` is provided (it is required to build
|
|
205
215
|
* {@link DelayedIntentExtended} and is only meaningful for credit account
|
|
@@ -217,6 +227,7 @@ function toClaimableWithdrawal(w, creditManager) {
|
|
|
217
227
|
withdrawalTokenSpent: w.withdrawalTokenSpent,
|
|
218
228
|
outputs: [...w.outputs],
|
|
219
229
|
claimCalls: [...w.claimCalls],
|
|
230
|
+
redeemer: toRedeemer(w.redeemer),
|
|
220
231
|
intent
|
|
221
232
|
};
|
|
222
233
|
}
|
|
@@ -235,6 +246,7 @@ function toPendingWithdrawal(w, creditManager) {
|
|
|
235
246
|
withdrawalPhantomToken: w.withdrawalPhantomToken,
|
|
236
247
|
expectedOutputs: [...w.expectedOutputs],
|
|
237
248
|
claimableAt: w.claimableAt,
|
|
249
|
+
redeemer: toRedeemer(w.redeemer),
|
|
238
250
|
intent
|
|
239
251
|
};
|
|
240
252
|
}
|
|
@@ -78,6 +78,11 @@ const iExternalWithdrawalsBatchAbi = [{
|
|
|
78
78
|
internalType: "bytes"
|
|
79
79
|
}]
|
|
80
80
|
},
|
|
81
|
+
{
|
|
82
|
+
name: "redeemer",
|
|
83
|
+
type: "address",
|
|
84
|
+
internalType: "address"
|
|
85
|
+
},
|
|
81
86
|
{
|
|
82
87
|
name: "extraData",
|
|
83
88
|
type: "bytes",
|
|
@@ -126,6 +131,11 @@ const iExternalWithdrawalsBatchAbi = [{
|
|
|
126
131
|
type: "uint256",
|
|
127
132
|
internalType: "uint256"
|
|
128
133
|
},
|
|
134
|
+
{
|
|
135
|
+
name: "redeemer",
|
|
136
|
+
type: "address",
|
|
137
|
+
internalType: "address"
|
|
138
|
+
},
|
|
129
139
|
{
|
|
130
140
|
name: "extraData",
|
|
131
141
|
type: "bytes",
|
|
@@ -39,7 +39,11 @@ declare const iLiquidationCompressorV313Abi: readonly [{
|
|
|
39
39
|
readonly type: "tuple";
|
|
40
40
|
readonly internalType: "struct LiquidationData";
|
|
41
41
|
readonly components: readonly [{
|
|
42
|
-
readonly name: "
|
|
42
|
+
readonly name: "requiredToken";
|
|
43
|
+
readonly type: "address";
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
}, {
|
|
46
|
+
readonly name: "requiredAmount";
|
|
43
47
|
readonly type: "uint256";
|
|
44
48
|
readonly internalType: "uint256";
|
|
45
49
|
}, {
|
|
@@ -84,6 +88,10 @@ declare const iLiquidationCompressorV313Abi: readonly [{
|
|
|
84
88
|
readonly name: "isLiquidatorEligible";
|
|
85
89
|
readonly type: "bool";
|
|
86
90
|
readonly internalType: "bool";
|
|
91
|
+
}, {
|
|
92
|
+
readonly name: "isCreditAccountFrozen";
|
|
93
|
+
readonly type: "bool";
|
|
94
|
+
readonly internalType: "bool";
|
|
87
95
|
}, {
|
|
88
96
|
readonly name: "kycProtocol";
|
|
89
97
|
readonly type: "string";
|
|
@@ -95,6 +103,33 @@ declare const iLiquidationCompressorV313Abi: readonly [{
|
|
|
95
103
|
}];
|
|
96
104
|
}];
|
|
97
105
|
readonly stateMutability: "nonpayable";
|
|
106
|
+
}, {
|
|
107
|
+
readonly type: "function";
|
|
108
|
+
readonly name: "getRWALiquidators";
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly name: "marketConfigurator";
|
|
111
|
+
readonly type: "address";
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
}];
|
|
114
|
+
readonly outputs: readonly [{
|
|
115
|
+
readonly name: "";
|
|
116
|
+
readonly type: "tuple[]";
|
|
117
|
+
readonly internalType: "struct RWALiquidatorInfo[]";
|
|
118
|
+
readonly components: readonly [{
|
|
119
|
+
readonly name: "gateway";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
readonly internalType: "address";
|
|
122
|
+
}, {
|
|
123
|
+
readonly name: "liquidatorAddress";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "contractType";
|
|
128
|
+
readonly type: "bytes32";
|
|
129
|
+
readonly internalType: "bytes32";
|
|
130
|
+
}];
|
|
131
|
+
}];
|
|
132
|
+
readonly stateMutability: "view";
|
|
98
133
|
}, {
|
|
99
134
|
readonly type: "function";
|
|
100
135
|
readonly name: "version";
|
|
@@ -63,6 +63,10 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
63
63
|
readonly type: "bytes";
|
|
64
64
|
readonly internalType: "bytes";
|
|
65
65
|
}];
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "redeemer";
|
|
68
|
+
readonly type: "address";
|
|
69
|
+
readonly internalType: "address";
|
|
66
70
|
}, {
|
|
67
71
|
readonly name: "extraData";
|
|
68
72
|
readonly type: "bytes";
|
|
@@ -101,6 +105,10 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
101
105
|
readonly name: "claimableAt";
|
|
102
106
|
readonly type: "uint256";
|
|
103
107
|
readonly internalType: "uint256";
|
|
108
|
+
}, {
|
|
109
|
+
readonly name: "redeemer";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
readonly internalType: "address";
|
|
104
112
|
}, {
|
|
105
113
|
readonly name: "extraData";
|
|
106
114
|
readonly type: "bytes";
|
|
@@ -112,9 +120,9 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
112
120
|
readonly type: "function";
|
|
113
121
|
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
114
122
|
readonly inputs: readonly [{
|
|
115
|
-
readonly name: "
|
|
116
|
-
readonly type: "address";
|
|
117
|
-
readonly internalType: "address";
|
|
123
|
+
readonly name: "withdrawalTokens";
|
|
124
|
+
readonly type: "address[]";
|
|
125
|
+
readonly internalType: "address[]";
|
|
118
126
|
}, {
|
|
119
127
|
readonly name: "account";
|
|
120
128
|
readonly type: "address";
|
|
@@ -166,6 +174,10 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
166
174
|
readonly type: "bytes";
|
|
167
175
|
readonly internalType: "bytes";
|
|
168
176
|
}];
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "redeemer";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
readonly internalType: "address";
|
|
169
181
|
}, {
|
|
170
182
|
readonly name: "extraData";
|
|
171
183
|
readonly type: "bytes";
|
|
@@ -204,6 +216,10 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
204
216
|
readonly name: "claimableAt";
|
|
205
217
|
readonly type: "uint256";
|
|
206
218
|
readonly internalType: "uint256";
|
|
219
|
+
}, {
|
|
220
|
+
readonly name: "redeemer";
|
|
221
|
+
readonly type: "address";
|
|
222
|
+
readonly internalType: "address";
|
|
207
223
|
}, {
|
|
208
224
|
readonly name: "extraData";
|
|
209
225
|
readonly type: "bytes";
|
|
@@ -215,9 +231,9 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
215
231
|
readonly type: "function";
|
|
216
232
|
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
217
233
|
readonly inputs: readonly [{
|
|
218
|
-
readonly name: "
|
|
219
|
-
readonly type: "address
|
|
220
|
-
readonly internalType: "address
|
|
234
|
+
readonly name: "withdrawalToken";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
readonly internalType: "address";
|
|
221
237
|
}, {
|
|
222
238
|
readonly name: "account";
|
|
223
239
|
readonly type: "address";
|
|
@@ -269,6 +285,10 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
269
285
|
readonly type: "bytes";
|
|
270
286
|
readonly internalType: "bytes";
|
|
271
287
|
}];
|
|
288
|
+
}, {
|
|
289
|
+
readonly name: "redeemer";
|
|
290
|
+
readonly type: "address";
|
|
291
|
+
readonly internalType: "address";
|
|
272
292
|
}, {
|
|
273
293
|
readonly name: "extraData";
|
|
274
294
|
readonly type: "bytes";
|
|
@@ -307,6 +327,10 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
307
327
|
readonly name: "claimableAt";
|
|
308
328
|
readonly type: "uint256";
|
|
309
329
|
readonly internalType: "uint256";
|
|
330
|
+
}, {
|
|
331
|
+
readonly name: "redeemer";
|
|
332
|
+
readonly type: "address";
|
|
333
|
+
readonly internalType: "address";
|
|
310
334
|
}, {
|
|
311
335
|
readonly name: "extraData";
|
|
312
336
|
readonly type: "bytes";
|
|
@@ -314,34 +338,6 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
314
338
|
}];
|
|
315
339
|
}];
|
|
316
340
|
readonly stateMutability: "view";
|
|
317
|
-
}, {
|
|
318
|
-
readonly type: "function";
|
|
319
|
-
readonly name: "getWithdrawalStatus";
|
|
320
|
-
readonly inputs: readonly [{
|
|
321
|
-
readonly name: "redeemer";
|
|
322
|
-
readonly type: "address";
|
|
323
|
-
readonly internalType: "address";
|
|
324
|
-
}];
|
|
325
|
-
readonly outputs: readonly [{
|
|
326
|
-
readonly name: "";
|
|
327
|
-
readonly type: "uint8";
|
|
328
|
-
readonly internalType: "enum WithdrawalStatus";
|
|
329
|
-
}];
|
|
330
|
-
readonly stateMutability: "view";
|
|
331
|
-
}, {
|
|
332
|
-
readonly type: "function";
|
|
333
|
-
readonly name: "getWithdrawalStatus";
|
|
334
|
-
readonly inputs: readonly [{
|
|
335
|
-
readonly name: "redeemers";
|
|
336
|
-
readonly type: "address[]";
|
|
337
|
-
readonly internalType: "address[]";
|
|
338
|
-
}];
|
|
339
|
-
readonly outputs: readonly [{
|
|
340
|
-
readonly name: "";
|
|
341
|
-
readonly type: "uint8[]";
|
|
342
|
-
readonly internalType: "enum WithdrawalStatus[]";
|
|
343
|
-
}];
|
|
344
|
-
readonly stateMutability: "view";
|
|
345
341
|
}, {
|
|
346
342
|
readonly type: "function";
|
|
347
343
|
readonly name: "getWithdrawableAssets";
|
|
@@ -461,10 +457,6 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
461
457
|
readonly name: "token";
|
|
462
458
|
readonly type: "address";
|
|
463
459
|
readonly internalType: "address";
|
|
464
|
-
}, {
|
|
465
|
-
readonly name: "withdrawalToken";
|
|
466
|
-
readonly type: "address";
|
|
467
|
-
readonly internalType: "address";
|
|
468
460
|
}, {
|
|
469
461
|
readonly name: "amount";
|
|
470
462
|
readonly type: "uint256";
|
|
@@ -530,6 +522,10 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
530
522
|
readonly name: "token";
|
|
531
523
|
readonly type: "address";
|
|
532
524
|
readonly internalType: "address";
|
|
525
|
+
}, {
|
|
526
|
+
readonly name: "withdrawalToken";
|
|
527
|
+
readonly type: "address";
|
|
528
|
+
readonly internalType: "address";
|
|
533
529
|
}, {
|
|
534
530
|
readonly name: "amount";
|
|
535
531
|
readonly type: "uint256";
|
|
@@ -584,6 +580,34 @@ declare const iWithdrawalCompressorV313Abi: readonly [{
|
|
|
584
580
|
}];
|
|
585
581
|
}];
|
|
586
582
|
readonly stateMutability: "view";
|
|
583
|
+
}, {
|
|
584
|
+
readonly type: "function";
|
|
585
|
+
readonly name: "getWithdrawalStatus";
|
|
586
|
+
readonly inputs: readonly [{
|
|
587
|
+
readonly name: "redeemers";
|
|
588
|
+
readonly type: "address[]";
|
|
589
|
+
readonly internalType: "address[]";
|
|
590
|
+
}];
|
|
591
|
+
readonly outputs: readonly [{
|
|
592
|
+
readonly name: "";
|
|
593
|
+
readonly type: "uint8[]";
|
|
594
|
+
readonly internalType: "enum WithdrawalStatus[]";
|
|
595
|
+
}];
|
|
596
|
+
readonly stateMutability: "view";
|
|
597
|
+
}, {
|
|
598
|
+
readonly type: "function";
|
|
599
|
+
readonly name: "getWithdrawalStatus";
|
|
600
|
+
readonly inputs: readonly [{
|
|
601
|
+
readonly name: "redeemer";
|
|
602
|
+
readonly type: "address";
|
|
603
|
+
readonly internalType: "address";
|
|
604
|
+
}];
|
|
605
|
+
readonly outputs: readonly [{
|
|
606
|
+
readonly name: "";
|
|
607
|
+
readonly type: "uint8";
|
|
608
|
+
readonly internalType: "enum WithdrawalStatus";
|
|
609
|
+
}];
|
|
610
|
+
readonly stateMutability: "view";
|
|
587
611
|
}, {
|
|
588
612
|
readonly type: "function";
|
|
589
613
|
readonly name: "version";
|
|
@@ -79,7 +79,11 @@ declare const liquidationCompressorAbi: readonly [{
|
|
|
79
79
|
readonly type: "tuple";
|
|
80
80
|
readonly internalType: "struct LiquidationData";
|
|
81
81
|
readonly components: readonly [{
|
|
82
|
-
readonly name: "
|
|
82
|
+
readonly name: "requiredToken";
|
|
83
|
+
readonly type: "address";
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "requiredAmount";
|
|
83
87
|
readonly type: "uint256";
|
|
84
88
|
readonly internalType: "uint256";
|
|
85
89
|
}, {
|
|
@@ -124,6 +128,10 @@ declare const liquidationCompressorAbi: readonly [{
|
|
|
124
128
|
readonly name: "isLiquidatorEligible";
|
|
125
129
|
readonly type: "bool";
|
|
126
130
|
readonly internalType: "bool";
|
|
131
|
+
}, {
|
|
132
|
+
readonly name: "isCreditAccountFrozen";
|
|
133
|
+
readonly type: "bool";
|
|
134
|
+
readonly internalType: "bool";
|
|
127
135
|
}, {
|
|
128
136
|
readonly name: "kycProtocol";
|
|
129
137
|
readonly type: "string";
|
|
@@ -135,6 +143,33 @@ declare const liquidationCompressorAbi: readonly [{
|
|
|
135
143
|
}];
|
|
136
144
|
}];
|
|
137
145
|
readonly stateMutability: "nonpayable";
|
|
146
|
+
}, {
|
|
147
|
+
readonly type: "function";
|
|
148
|
+
readonly name: "getRWALiquidators";
|
|
149
|
+
readonly inputs: readonly [{
|
|
150
|
+
readonly name: "marketConfigurator";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
}];
|
|
154
|
+
readonly outputs: readonly [{
|
|
155
|
+
readonly name: "liquidators";
|
|
156
|
+
readonly type: "tuple[]";
|
|
157
|
+
readonly internalType: "struct RWALiquidatorInfo[]";
|
|
158
|
+
readonly components: readonly [{
|
|
159
|
+
readonly name: "gateway";
|
|
160
|
+
readonly type: "address";
|
|
161
|
+
readonly internalType: "address";
|
|
162
|
+
}, {
|
|
163
|
+
readonly name: "liquidatorAddress";
|
|
164
|
+
readonly type: "address";
|
|
165
|
+
readonly internalType: "address";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "contractType";
|
|
168
|
+
readonly type: "bytes32";
|
|
169
|
+
readonly internalType: "bytes32";
|
|
170
|
+
}];
|
|
171
|
+
}];
|
|
172
|
+
readonly stateMutability: "view";
|
|
138
173
|
}, {
|
|
139
174
|
readonly type: "function";
|
|
140
175
|
readonly name: "liquidatableTypeToCompressorType";
|
|
@@ -220,17 +220,17 @@ declare const rwaCompressorAbi: readonly [{
|
|
|
220
220
|
}];
|
|
221
221
|
}, {
|
|
222
222
|
readonly type: "error";
|
|
223
|
-
readonly name: "
|
|
223
|
+
readonly name: "InvalidMarketConfiguratorException";
|
|
224
224
|
readonly inputs: readonly [{
|
|
225
|
-
readonly name: "
|
|
225
|
+
readonly name: "marketConfigurator";
|
|
226
226
|
readonly type: "address";
|
|
227
227
|
readonly internalType: "address";
|
|
228
228
|
}];
|
|
229
229
|
}, {
|
|
230
230
|
readonly type: "error";
|
|
231
|
-
readonly name: "
|
|
231
|
+
readonly name: "InvalidRWAFactoryException";
|
|
232
232
|
readonly inputs: readonly [{
|
|
233
|
-
readonly name: "
|
|
233
|
+
readonly name: "factory";
|
|
234
234
|
readonly type: "address";
|
|
235
235
|
readonly internalType: "address";
|
|
236
236
|
}];
|
package/dist/types/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.d.ts
CHANGED
|
@@ -43,7 +43,11 @@ declare const midasLiquidationSubcompressorAbi: readonly [{
|
|
|
43
43
|
readonly type: "tuple";
|
|
44
44
|
readonly internalType: "struct LiquidationData";
|
|
45
45
|
readonly components: readonly [{
|
|
46
|
-
readonly name: "
|
|
46
|
+
readonly name: "requiredToken";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "requiredAmount";
|
|
47
51
|
readonly type: "uint256";
|
|
48
52
|
readonly internalType: "uint256";
|
|
49
53
|
}, {
|
|
@@ -88,6 +92,10 @@ declare const midasLiquidationSubcompressorAbi: readonly [{
|
|
|
88
92
|
readonly name: "isLiquidatorEligible";
|
|
89
93
|
readonly type: "bool";
|
|
90
94
|
readonly internalType: "bool";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "isCreditAccountFrozen";
|
|
97
|
+
readonly type: "bool";
|
|
98
|
+
readonly internalType: "bool";
|
|
91
99
|
}, {
|
|
92
100
|
readonly name: "kycProtocol";
|
|
93
101
|
readonly type: "string";
|
|
@@ -99,6 +107,33 @@ declare const midasLiquidationSubcompressorAbi: readonly [{
|
|
|
99
107
|
}];
|
|
100
108
|
}];
|
|
101
109
|
readonly stateMutability: "nonpayable";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
readonly name: "getRWALiquidatorInfo";
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly name: "token";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}];
|
|
118
|
+
readonly outputs: readonly [{
|
|
119
|
+
readonly name: "info";
|
|
120
|
+
readonly type: "tuple";
|
|
121
|
+
readonly internalType: "struct RWALiquidatorInfo";
|
|
122
|
+
readonly components: readonly [{
|
|
123
|
+
readonly name: "gateway";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "liquidatorAddress";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "contractType";
|
|
132
|
+
readonly type: "bytes32";
|
|
133
|
+
readonly internalType: "bytes32";
|
|
134
|
+
}];
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
102
137
|
}, {
|
|
103
138
|
readonly type: "function";
|
|
104
139
|
readonly name: "version";
|
|
@@ -43,7 +43,11 @@ declare const securitizeLiquidationSubcompressorAbi: readonly [{
|
|
|
43
43
|
readonly type: "tuple";
|
|
44
44
|
readonly internalType: "struct LiquidationData";
|
|
45
45
|
readonly components: readonly [{
|
|
46
|
-
readonly name: "
|
|
46
|
+
readonly name: "requiredToken";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
readonly internalType: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "requiredAmount";
|
|
47
51
|
readonly type: "uint256";
|
|
48
52
|
readonly internalType: "uint256";
|
|
49
53
|
}, {
|
|
@@ -88,6 +92,10 @@ declare const securitizeLiquidationSubcompressorAbi: readonly [{
|
|
|
88
92
|
readonly name: "isLiquidatorEligible";
|
|
89
93
|
readonly type: "bool";
|
|
90
94
|
readonly internalType: "bool";
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "isCreditAccountFrozen";
|
|
97
|
+
readonly type: "bool";
|
|
98
|
+
readonly internalType: "bool";
|
|
91
99
|
}, {
|
|
92
100
|
readonly name: "kycProtocol";
|
|
93
101
|
readonly type: "string";
|
|
@@ -99,6 +107,33 @@ declare const securitizeLiquidationSubcompressorAbi: readonly [{
|
|
|
99
107
|
}];
|
|
100
108
|
}];
|
|
101
109
|
readonly stateMutability: "nonpayable";
|
|
110
|
+
}, {
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
readonly name: "getRWALiquidatorInfo";
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly name: "token";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
}];
|
|
118
|
+
readonly outputs: readonly [{
|
|
119
|
+
readonly name: "info";
|
|
120
|
+
readonly type: "tuple";
|
|
121
|
+
readonly internalType: "struct RWALiquidatorInfo";
|
|
122
|
+
readonly components: readonly [{
|
|
123
|
+
readonly name: "gateway";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly name: "liquidatorAddress";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
readonly internalType: "address";
|
|
130
|
+
}, {
|
|
131
|
+
readonly name: "contractType";
|
|
132
|
+
readonly type: "bytes32";
|
|
133
|
+
readonly internalType: "bytes32";
|
|
134
|
+
}];
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
102
137
|
}, {
|
|
103
138
|
readonly type: "function";
|
|
104
139
|
readonly name: "version";
|
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";
|