@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/esm/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js
CHANGED
|
@@ -51,7 +51,12 @@ const midasLiquidationSubcompressorAbi = [
|
|
|
51
51
|
internalType: "struct LiquidationData",
|
|
52
52
|
components: [
|
|
53
53
|
{
|
|
54
|
-
name: "
|
|
54
|
+
name: "requiredToken",
|
|
55
|
+
type: "address",
|
|
56
|
+
internalType: "address"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "requiredAmount",
|
|
55
60
|
type: "uint256",
|
|
56
61
|
internalType: "uint256"
|
|
57
62
|
},
|
|
@@ -106,6 +111,11 @@ const midasLiquidationSubcompressorAbi = [
|
|
|
106
111
|
type: "bool",
|
|
107
112
|
internalType: "bool"
|
|
108
113
|
},
|
|
114
|
+
{
|
|
115
|
+
name: "isCreditAccountFrozen",
|
|
116
|
+
type: "bool",
|
|
117
|
+
internalType: "bool"
|
|
118
|
+
},
|
|
109
119
|
{
|
|
110
120
|
name: "kycProtocol",
|
|
111
121
|
type: "string",
|
|
@@ -120,6 +130,38 @@ const midasLiquidationSubcompressorAbi = [
|
|
|
120
130
|
}],
|
|
121
131
|
stateMutability: "nonpayable"
|
|
122
132
|
},
|
|
133
|
+
{
|
|
134
|
+
type: "function",
|
|
135
|
+
name: "getRWALiquidatorInfo",
|
|
136
|
+
inputs: [{
|
|
137
|
+
name: "token",
|
|
138
|
+
type: "address",
|
|
139
|
+
internalType: "address"
|
|
140
|
+
}],
|
|
141
|
+
outputs: [{
|
|
142
|
+
name: "info",
|
|
143
|
+
type: "tuple",
|
|
144
|
+
internalType: "struct RWALiquidatorInfo",
|
|
145
|
+
components: [
|
|
146
|
+
{
|
|
147
|
+
name: "gateway",
|
|
148
|
+
type: "address",
|
|
149
|
+
internalType: "address"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "liquidatorAddress",
|
|
153
|
+
type: "address",
|
|
154
|
+
internalType: "address"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "contractType",
|
|
158
|
+
type: "bytes32",
|
|
159
|
+
internalType: "bytes32"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}],
|
|
163
|
+
stateMutability: "view"
|
|
164
|
+
},
|
|
123
165
|
{
|
|
124
166
|
type: "function",
|
|
125
167
|
name: "version",
|
package/dist/esm/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js
CHANGED
|
@@ -51,7 +51,12 @@ const securitizeLiquidationSubcompressorAbi = [
|
|
|
51
51
|
internalType: "struct LiquidationData",
|
|
52
52
|
components: [
|
|
53
53
|
{
|
|
54
|
-
name: "
|
|
54
|
+
name: "requiredToken",
|
|
55
|
+
type: "address",
|
|
56
|
+
internalType: "address"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "requiredAmount",
|
|
55
60
|
type: "uint256",
|
|
56
61
|
internalType: "uint256"
|
|
57
62
|
},
|
|
@@ -106,6 +111,11 @@ const securitizeLiquidationSubcompressorAbi = [
|
|
|
106
111
|
type: "bool",
|
|
107
112
|
internalType: "bool"
|
|
108
113
|
},
|
|
114
|
+
{
|
|
115
|
+
name: "isCreditAccountFrozen",
|
|
116
|
+
type: "bool",
|
|
117
|
+
internalType: "bool"
|
|
118
|
+
},
|
|
109
119
|
{
|
|
110
120
|
name: "kycProtocol",
|
|
111
121
|
type: "string",
|
|
@@ -120,6 +130,38 @@ const securitizeLiquidationSubcompressorAbi = [
|
|
|
120
130
|
}],
|
|
121
131
|
stateMutability: "nonpayable"
|
|
122
132
|
},
|
|
133
|
+
{
|
|
134
|
+
type: "function",
|
|
135
|
+
name: "getRWALiquidatorInfo",
|
|
136
|
+
inputs: [{
|
|
137
|
+
name: "token",
|
|
138
|
+
type: "address",
|
|
139
|
+
internalType: "address"
|
|
140
|
+
}],
|
|
141
|
+
outputs: [{
|
|
142
|
+
name: "info",
|
|
143
|
+
type: "tuple",
|
|
144
|
+
internalType: "struct RWALiquidatorInfo",
|
|
145
|
+
components: [
|
|
146
|
+
{
|
|
147
|
+
name: "gateway",
|
|
148
|
+
type: "address",
|
|
149
|
+
internalType: "address"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "liquidatorAddress",
|
|
153
|
+
type: "address",
|
|
154
|
+
internalType: "address"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "contractType",
|
|
158
|
+
type: "bytes32",
|
|
159
|
+
internalType: "bytes32"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}],
|
|
163
|
+
stateMutability: "view"
|
|
164
|
+
},
|
|
123
165
|
{
|
|
124
166
|
type: "function",
|
|
125
167
|
name: "version",
|
|
@@ -79,6 +79,11 @@ const midasWithdrawalSubcompressorAbi = [
|
|
|
79
79
|
internalType: "bytes"
|
|
80
80
|
}]
|
|
81
81
|
},
|
|
82
|
+
{
|
|
83
|
+
name: "redeemer",
|
|
84
|
+
type: "address",
|
|
85
|
+
internalType: "address"
|
|
86
|
+
},
|
|
82
87
|
{
|
|
83
88
|
name: "extraData",
|
|
84
89
|
type: "bytes",
|
|
@@ -127,6 +132,11 @@ const midasWithdrawalSubcompressorAbi = [
|
|
|
127
132
|
type: "uint256",
|
|
128
133
|
internalType: "uint256"
|
|
129
134
|
},
|
|
135
|
+
{
|
|
136
|
+
name: "redeemer",
|
|
137
|
+
type: "address",
|
|
138
|
+
internalType: "address"
|
|
139
|
+
},
|
|
130
140
|
{
|
|
131
141
|
name: "extraData",
|
|
132
142
|
type: "bytes",
|
|
@@ -204,6 +214,11 @@ const midasWithdrawalSubcompressorAbi = [
|
|
|
204
214
|
internalType: "bytes"
|
|
205
215
|
}]
|
|
206
216
|
},
|
|
217
|
+
{
|
|
218
|
+
name: "redeemer",
|
|
219
|
+
type: "address",
|
|
220
|
+
internalType: "address"
|
|
221
|
+
},
|
|
207
222
|
{
|
|
208
223
|
name: "extraData",
|
|
209
224
|
type: "bytes",
|
|
@@ -252,6 +267,11 @@ const midasWithdrawalSubcompressorAbi = [
|
|
|
252
267
|
type: "uint256",
|
|
253
268
|
internalType: "uint256"
|
|
254
269
|
},
|
|
270
|
+
{
|
|
271
|
+
name: "redeemer",
|
|
272
|
+
type: "address",
|
|
273
|
+
internalType: "address"
|
|
274
|
+
},
|
|
255
275
|
{
|
|
256
276
|
name: "extraData",
|
|
257
277
|
type: "bytes",
|
package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js
CHANGED
|
@@ -79,6 +79,11 @@ const securitizeRedemptionSubcompressorAbi = [
|
|
|
79
79
|
internalType: "bytes"
|
|
80
80
|
}]
|
|
81
81
|
},
|
|
82
|
+
{
|
|
83
|
+
name: "redeemer",
|
|
84
|
+
type: "address",
|
|
85
|
+
internalType: "address"
|
|
86
|
+
},
|
|
82
87
|
{
|
|
83
88
|
name: "extraData",
|
|
84
89
|
type: "bytes",
|
|
@@ -127,6 +132,11 @@ const securitizeRedemptionSubcompressorAbi = [
|
|
|
127
132
|
type: "uint256",
|
|
128
133
|
internalType: "uint256"
|
|
129
134
|
},
|
|
135
|
+
{
|
|
136
|
+
name: "redeemer",
|
|
137
|
+
type: "address",
|
|
138
|
+
internalType: "address"
|
|
139
|
+
},
|
|
130
140
|
{
|
|
131
141
|
name: "extraData",
|
|
132
142
|
type: "bytes",
|
|
@@ -204,6 +214,11 @@ const securitizeRedemptionSubcompressorAbi = [
|
|
|
204
214
|
internalType: "bytes"
|
|
205
215
|
}]
|
|
206
216
|
},
|
|
217
|
+
{
|
|
218
|
+
name: "redeemer",
|
|
219
|
+
type: "address",
|
|
220
|
+
internalType: "address"
|
|
221
|
+
},
|
|
207
222
|
{
|
|
208
223
|
name: "extraData",
|
|
209
224
|
type: "bytes",
|
|
@@ -252,6 +267,11 @@ const securitizeRedemptionSubcompressorAbi = [
|
|
|
252
267
|
type: "uint256",
|
|
253
268
|
internalType: "uint256"
|
|
254
269
|
},
|
|
270
|
+
{
|
|
271
|
+
name: "redeemer",
|
|
272
|
+
type: "address",
|
|
273
|
+
internalType: "address"
|
|
274
|
+
},
|
|
255
275
|
{
|
|
256
276
|
name: "extraData",
|
|
257
277
|
type: "bytes",
|
|
@@ -118,6 +118,11 @@ const withdrawalCompressorAbi = [
|
|
|
118
118
|
internalType: "bytes"
|
|
119
119
|
}]
|
|
120
120
|
},
|
|
121
|
+
{
|
|
122
|
+
name: "redeemer",
|
|
123
|
+
type: "address",
|
|
124
|
+
internalType: "address"
|
|
125
|
+
},
|
|
121
126
|
{
|
|
122
127
|
name: "extraData",
|
|
123
128
|
type: "bytes",
|
|
@@ -166,6 +171,11 @@ const withdrawalCompressorAbi = [
|
|
|
166
171
|
type: "uint256",
|
|
167
172
|
internalType: "uint256"
|
|
168
173
|
},
|
|
174
|
+
{
|
|
175
|
+
name: "redeemer",
|
|
176
|
+
type: "address",
|
|
177
|
+
internalType: "address"
|
|
178
|
+
},
|
|
169
179
|
{
|
|
170
180
|
name: "extraData",
|
|
171
181
|
type: "bytes",
|
|
@@ -243,6 +253,11 @@ const withdrawalCompressorAbi = [
|
|
|
243
253
|
internalType: "bytes"
|
|
244
254
|
}]
|
|
245
255
|
},
|
|
256
|
+
{
|
|
257
|
+
name: "redeemer",
|
|
258
|
+
type: "address",
|
|
259
|
+
internalType: "address"
|
|
260
|
+
},
|
|
246
261
|
{
|
|
247
262
|
name: "extraData",
|
|
248
263
|
type: "bytes",
|
|
@@ -291,6 +306,11 @@ const withdrawalCompressorAbi = [
|
|
|
291
306
|
type: "uint256",
|
|
292
307
|
internalType: "uint256"
|
|
293
308
|
},
|
|
309
|
+
{
|
|
310
|
+
name: "redeemer",
|
|
311
|
+
type: "address",
|
|
312
|
+
internalType: "address"
|
|
313
|
+
},
|
|
294
314
|
{
|
|
295
315
|
name: "extraData",
|
|
296
316
|
type: "bytes",
|
|
@@ -368,6 +388,11 @@ const withdrawalCompressorAbi = [
|
|
|
368
388
|
internalType: "bytes"
|
|
369
389
|
}]
|
|
370
390
|
},
|
|
391
|
+
{
|
|
392
|
+
name: "redeemer",
|
|
393
|
+
type: "address",
|
|
394
|
+
internalType: "address"
|
|
395
|
+
},
|
|
371
396
|
{
|
|
372
397
|
name: "extraData",
|
|
373
398
|
type: "bytes",
|
|
@@ -416,6 +441,11 @@ const withdrawalCompressorAbi = [
|
|
|
416
441
|
type: "uint256",
|
|
417
442
|
internalType: "uint256"
|
|
418
443
|
},
|
|
444
|
+
{
|
|
445
|
+
name: "redeemer",
|
|
446
|
+
type: "address",
|
|
447
|
+
internalType: "address"
|
|
448
|
+
},
|
|
419
449
|
{
|
|
420
450
|
name: "extraData",
|
|
421
451
|
type: "bytes",
|
|
@@ -19,8 +19,14 @@ const adapterActionSignatures = {
|
|
|
19
19
|
["KELP_WITHDRAWAL"]: { 310: "function setTokensOutBatchStatus((address,address,bool)[])" },
|
|
20
20
|
["MELLOW_CLAIMER"]: { 310: "function setMultiVaultStatusBatch((address,address,bool)[])" },
|
|
21
21
|
["MELLOW_WRAPPER"]: { 310: "function setVaultStatusBatch((address,bool)[])" },
|
|
22
|
-
["MIDAS_ISSUANCE_VAULT"]: {
|
|
23
|
-
|
|
22
|
+
["MIDAS_ISSUANCE_VAULT"]: {
|
|
23
|
+
310: "function setTokenAllowedStatusBatch(address[],bool[])",
|
|
24
|
+
311: "function setInputTokenStatusBatch(address[],bool[])"
|
|
25
|
+
},
|
|
26
|
+
["MIDAS_REDEMPTION_VAULT"]: {
|
|
27
|
+
310: "function setTokenAllowedStatusBatch((address,address,bool)[])",
|
|
28
|
+
311: "function setOutputTokenStatusBatch(address[],bool[])"
|
|
29
|
+
},
|
|
24
30
|
["PENDLE_ROUTER"]: {
|
|
25
31
|
310: "function setPairStatusBatch((address,address,address,uint8)[])",
|
|
26
32
|
311: "function setPairStatusBatch((address,address,address,uint8,uint8)[])"
|
|
@@ -19,7 +19,10 @@ const adapterConstructorAbi = {
|
|
|
19
19
|
["INFINIFI_GATEWAY"]: { 310: BASIC_ADAPTER_ABI },
|
|
20
20
|
["LIDO_V1"]: { 310: BASIC_ADAPTER_ABI },
|
|
21
21
|
["LIDO_WSTETH_V1"]: { 310: BASIC_ADAPTER_ABI },
|
|
22
|
-
["MIDAS_REDEMPTION_VAULT"]: {
|
|
22
|
+
["MIDAS_REDEMPTION_VAULT"]: {
|
|
23
|
+
310: BASIC_ADAPTER_ABI,
|
|
24
|
+
311: BASIC_ADAPTER_ABI
|
|
25
|
+
},
|
|
23
26
|
["PENDLE_ROUTER"]: {
|
|
24
27
|
310: BASIC_ADAPTER_ABI,
|
|
25
28
|
311: BASIC_ADAPTER_ABI
|
|
@@ -64,7 +67,10 @@ const adapterConstructorAbi = {
|
|
|
64
67
|
311: PHANTOM_TOKEN_ADAPTER_ABI
|
|
65
68
|
},
|
|
66
69
|
["STAKING_REWARDS"]: { 312: STAKING_REWARDS_ADAPTER_ABI },
|
|
67
|
-
["MIDAS_ISSUANCE_VAULT"]: {
|
|
70
|
+
["MIDAS_ISSUANCE_VAULT"]: {
|
|
71
|
+
310: REFERER_ID_ADAPTER_ABI,
|
|
72
|
+
311: REFERER_ID_ADAPTER_ABI
|
|
73
|
+
},
|
|
68
74
|
["MIDAS_GATEWAY"]: { 311: REFERER_ID_ADAPTER_ABI }
|
|
69
75
|
};
|
|
70
76
|
//#endregion
|
|
@@ -8,6 +8,7 @@ import { decodeAbiParameters } from "viem";
|
|
|
8
8
|
const abi = iMidasRedemptionVaultAdapterV310Abi;
|
|
9
9
|
const protocolAbi = iMidasRedemptionVaultGatewayV310Abi;
|
|
10
10
|
var MidasRedemptionVaultAdapterContract = class extends AbstractAdapterContract {
|
|
11
|
+
#version;
|
|
11
12
|
#gateway;
|
|
12
13
|
#mToken;
|
|
13
14
|
#allowedTokens;
|
|
@@ -18,41 +19,68 @@ var MidasRedemptionVaultAdapterContract = class extends AbstractAdapterContract
|
|
|
18
19
|
protocolAbi
|
|
19
20
|
});
|
|
20
21
|
if (args.baseParams.serializedParams) {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
22
|
+
const version = Number(args.baseParams.version);
|
|
23
|
+
this.#version = version;
|
|
24
|
+
if (version <= 310) {
|
|
25
|
+
const decoded = decodeAbiParameters([
|
|
26
|
+
{
|
|
27
|
+
type: "address",
|
|
28
|
+
name: "creditManager"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: "address",
|
|
32
|
+
name: "targetContract"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: "address",
|
|
36
|
+
name: "gateway"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: "address",
|
|
40
|
+
name: "mToken"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: "address[]",
|
|
44
|
+
name: "allowedTokens"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: "address[]",
|
|
48
|
+
name: "allowedPhantomTokens"
|
|
49
|
+
}
|
|
50
|
+
], args.baseParams.serializedParams);
|
|
51
|
+
this.#gateway = decoded[2];
|
|
52
|
+
this.#mToken = decoded[3];
|
|
53
|
+
this.#allowedTokens = decoded[4].map((token, index) => ({
|
|
54
|
+
token,
|
|
55
|
+
phantomToken: decoded[5][index]
|
|
56
|
+
}));
|
|
57
|
+
} else {
|
|
58
|
+
const decoded = decodeAbiParameters([
|
|
59
|
+
{
|
|
60
|
+
type: "address",
|
|
61
|
+
name: "creditManager"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
type: "address",
|
|
65
|
+
name: "targetContract"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "address",
|
|
69
|
+
name: "mToken"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
type: "address[]",
|
|
73
|
+
name: "supportedInputTokens"
|
|
74
|
+
}
|
|
75
|
+
], args.baseParams.serializedParams);
|
|
76
|
+
this.#mToken = decoded[2];
|
|
77
|
+
this.#allowedTokens = [...decoded[3]];
|
|
78
|
+
}
|
|
53
79
|
}
|
|
54
80
|
}
|
|
55
81
|
get gateway() {
|
|
82
|
+
if (!this.#version) throw new MissingSerializedParamsError("version");
|
|
83
|
+
if (this.#version > 310) return void 0;
|
|
56
84
|
if (!this.#gateway) throw new MissingSerializedParamsError("gateway");
|
|
57
85
|
return this.#gateway;
|
|
58
86
|
}
|
|
@@ -69,10 +97,13 @@ var MidasRedemptionVaultAdapterContract = class extends AbstractAdapterContract
|
|
|
69
97
|
...super.stateHuman(raw),
|
|
70
98
|
gateway: this.#gateway ? this.labelAddress(this.#gateway) : void 0,
|
|
71
99
|
mToken: this.#mToken ? this.labelAddress(this.#mToken) : void 0,
|
|
72
|
-
allowedTokens: this.#allowedTokens?.map((t) =>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
100
|
+
allowedTokens: this.#allowedTokens?.map((t) => {
|
|
101
|
+
if (typeof t === "object") return {
|
|
102
|
+
token: this.labelAddress(t.token),
|
|
103
|
+
phantomToken: this.labelAddress(t.phantomToken)
|
|
104
|
+
};
|
|
105
|
+
return { token: this.labelAddress(t) };
|
|
106
|
+
})
|
|
76
107
|
};
|
|
77
108
|
}
|
|
78
109
|
async applyBalanceChanges(balances, decoded) {
|
|
@@ -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";
|