@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
|
@@ -47,7 +47,12 @@ const iLiquidationCompressorV313Abi = [
|
|
|
47
47
|
internalType: "struct LiquidationData",
|
|
48
48
|
components: [
|
|
49
49
|
{
|
|
50
|
-
name: "
|
|
50
|
+
name: "requiredToken",
|
|
51
|
+
type: "address",
|
|
52
|
+
internalType: "address"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "requiredAmount",
|
|
51
56
|
type: "uint256",
|
|
52
57
|
internalType: "uint256"
|
|
53
58
|
},
|
|
@@ -102,6 +107,11 @@ const iLiquidationCompressorV313Abi = [
|
|
|
102
107
|
type: "bool",
|
|
103
108
|
internalType: "bool"
|
|
104
109
|
},
|
|
110
|
+
{
|
|
111
|
+
name: "isCreditAccountFrozen",
|
|
112
|
+
type: "bool",
|
|
113
|
+
internalType: "bool"
|
|
114
|
+
},
|
|
105
115
|
{
|
|
106
116
|
name: "kycProtocol",
|
|
107
117
|
type: "string",
|
|
@@ -116,6 +126,38 @@ const iLiquidationCompressorV313Abi = [
|
|
|
116
126
|
}],
|
|
117
127
|
stateMutability: "nonpayable"
|
|
118
128
|
},
|
|
129
|
+
{
|
|
130
|
+
type: "function",
|
|
131
|
+
name: "getRWALiquidators",
|
|
132
|
+
inputs: [{
|
|
133
|
+
name: "marketConfigurator",
|
|
134
|
+
type: "address",
|
|
135
|
+
internalType: "address"
|
|
136
|
+
}],
|
|
137
|
+
outputs: [{
|
|
138
|
+
name: "",
|
|
139
|
+
type: "tuple[]",
|
|
140
|
+
internalType: "struct RWALiquidatorInfo[]",
|
|
141
|
+
components: [
|
|
142
|
+
{
|
|
143
|
+
name: "gateway",
|
|
144
|
+
type: "address",
|
|
145
|
+
internalType: "address"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "liquidatorAddress",
|
|
149
|
+
type: "address",
|
|
150
|
+
internalType: "address"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "contractType",
|
|
154
|
+
type: "bytes32",
|
|
155
|
+
internalType: "bytes32"
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}],
|
|
159
|
+
stateMutability: "view"
|
|
160
|
+
},
|
|
119
161
|
{
|
|
120
162
|
type: "function",
|
|
121
163
|
name: "version",
|
|
@@ -76,6 +76,11 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
76
76
|
internalType: "bytes"
|
|
77
77
|
}]
|
|
78
78
|
},
|
|
79
|
+
{
|
|
80
|
+
name: "redeemer",
|
|
81
|
+
type: "address",
|
|
82
|
+
internalType: "address"
|
|
83
|
+
},
|
|
79
84
|
{
|
|
80
85
|
name: "extraData",
|
|
81
86
|
type: "bytes",
|
|
@@ -124,6 +129,11 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
124
129
|
type: "uint256",
|
|
125
130
|
internalType: "uint256"
|
|
126
131
|
},
|
|
132
|
+
{
|
|
133
|
+
name: "redeemer",
|
|
134
|
+
type: "address",
|
|
135
|
+
internalType: "address"
|
|
136
|
+
},
|
|
127
137
|
{
|
|
128
138
|
name: "extraData",
|
|
129
139
|
type: "bytes",
|
|
@@ -137,9 +147,9 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
137
147
|
type: "function",
|
|
138
148
|
name: "getExternalAccountCurrentWithdrawals",
|
|
139
149
|
inputs: [{
|
|
140
|
-
name: "
|
|
141
|
-
type: "address",
|
|
142
|
-
internalType: "address"
|
|
150
|
+
name: "withdrawalTokens",
|
|
151
|
+
type: "address[]",
|
|
152
|
+
internalType: "address[]"
|
|
143
153
|
}, {
|
|
144
154
|
name: "account",
|
|
145
155
|
type: "address",
|
|
@@ -201,6 +211,11 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
201
211
|
internalType: "bytes"
|
|
202
212
|
}]
|
|
203
213
|
},
|
|
214
|
+
{
|
|
215
|
+
name: "redeemer",
|
|
216
|
+
type: "address",
|
|
217
|
+
internalType: "address"
|
|
218
|
+
},
|
|
204
219
|
{
|
|
205
220
|
name: "extraData",
|
|
206
221
|
type: "bytes",
|
|
@@ -249,6 +264,11 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
249
264
|
type: "uint256",
|
|
250
265
|
internalType: "uint256"
|
|
251
266
|
},
|
|
267
|
+
{
|
|
268
|
+
name: "redeemer",
|
|
269
|
+
type: "address",
|
|
270
|
+
internalType: "address"
|
|
271
|
+
},
|
|
252
272
|
{
|
|
253
273
|
name: "extraData",
|
|
254
274
|
type: "bytes",
|
|
@@ -262,9 +282,9 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
262
282
|
type: "function",
|
|
263
283
|
name: "getExternalAccountCurrentWithdrawals",
|
|
264
284
|
inputs: [{
|
|
265
|
-
name: "
|
|
266
|
-
type: "address
|
|
267
|
-
internalType: "address
|
|
285
|
+
name: "withdrawalToken",
|
|
286
|
+
type: "address",
|
|
287
|
+
internalType: "address"
|
|
268
288
|
}, {
|
|
269
289
|
name: "account",
|
|
270
290
|
type: "address",
|
|
@@ -326,6 +346,11 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
326
346
|
internalType: "bytes"
|
|
327
347
|
}]
|
|
328
348
|
},
|
|
349
|
+
{
|
|
350
|
+
name: "redeemer",
|
|
351
|
+
type: "address",
|
|
352
|
+
internalType: "address"
|
|
353
|
+
},
|
|
329
354
|
{
|
|
330
355
|
name: "extraData",
|
|
331
356
|
type: "bytes",
|
|
@@ -374,6 +399,11 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
374
399
|
type: "uint256",
|
|
375
400
|
internalType: "uint256"
|
|
376
401
|
},
|
|
402
|
+
{
|
|
403
|
+
name: "redeemer",
|
|
404
|
+
type: "address",
|
|
405
|
+
internalType: "address"
|
|
406
|
+
},
|
|
377
407
|
{
|
|
378
408
|
name: "extraData",
|
|
379
409
|
type: "bytes",
|
|
@@ -383,36 +413,6 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
383
413
|
}],
|
|
384
414
|
stateMutability: "view"
|
|
385
415
|
},
|
|
386
|
-
{
|
|
387
|
-
type: "function",
|
|
388
|
-
name: "getWithdrawalStatus",
|
|
389
|
-
inputs: [{
|
|
390
|
-
name: "redeemer",
|
|
391
|
-
type: "address",
|
|
392
|
-
internalType: "address"
|
|
393
|
-
}],
|
|
394
|
-
outputs: [{
|
|
395
|
-
name: "",
|
|
396
|
-
type: "uint8",
|
|
397
|
-
internalType: "enum WithdrawalStatus"
|
|
398
|
-
}],
|
|
399
|
-
stateMutability: "view"
|
|
400
|
-
},
|
|
401
|
-
{
|
|
402
|
-
type: "function",
|
|
403
|
-
name: "getWithdrawalStatus",
|
|
404
|
-
inputs: [{
|
|
405
|
-
name: "redeemers",
|
|
406
|
-
type: "address[]",
|
|
407
|
-
internalType: "address[]"
|
|
408
|
-
}],
|
|
409
|
-
outputs: [{
|
|
410
|
-
name: "",
|
|
411
|
-
type: "uint8[]",
|
|
412
|
-
internalType: "enum WithdrawalStatus[]"
|
|
413
|
-
}],
|
|
414
|
-
stateMutability: "view"
|
|
415
|
-
},
|
|
416
416
|
{
|
|
417
417
|
type: "function",
|
|
418
418
|
name: "getWithdrawableAssets",
|
|
@@ -559,11 +559,6 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
559
559
|
type: "address",
|
|
560
560
|
internalType: "address"
|
|
561
561
|
},
|
|
562
|
-
{
|
|
563
|
-
name: "withdrawalToken",
|
|
564
|
-
type: "address",
|
|
565
|
-
internalType: "address"
|
|
566
|
-
},
|
|
567
562
|
{
|
|
568
563
|
name: "amount",
|
|
569
564
|
type: "uint256",
|
|
@@ -644,6 +639,11 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
644
639
|
type: "address",
|
|
645
640
|
internalType: "address"
|
|
646
641
|
},
|
|
642
|
+
{
|
|
643
|
+
name: "withdrawalToken",
|
|
644
|
+
type: "address",
|
|
645
|
+
internalType: "address"
|
|
646
|
+
},
|
|
647
647
|
{
|
|
648
648
|
name: "amount",
|
|
649
649
|
type: "uint256",
|
|
@@ -710,6 +710,36 @@ const iWithdrawalCompressorV313Abi = [
|
|
|
710
710
|
}],
|
|
711
711
|
stateMutability: "view"
|
|
712
712
|
},
|
|
713
|
+
{
|
|
714
|
+
type: "function",
|
|
715
|
+
name: "getWithdrawalStatus",
|
|
716
|
+
inputs: [{
|
|
717
|
+
name: "redeemers",
|
|
718
|
+
type: "address[]",
|
|
719
|
+
internalType: "address[]"
|
|
720
|
+
}],
|
|
721
|
+
outputs: [{
|
|
722
|
+
name: "",
|
|
723
|
+
type: "uint8[]",
|
|
724
|
+
internalType: "enum WithdrawalStatus[]"
|
|
725
|
+
}],
|
|
726
|
+
stateMutability: "view"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
type: "function",
|
|
730
|
+
name: "getWithdrawalStatus",
|
|
731
|
+
inputs: [{
|
|
732
|
+
name: "redeemer",
|
|
733
|
+
type: "address",
|
|
734
|
+
internalType: "address"
|
|
735
|
+
}],
|
|
736
|
+
outputs: [{
|
|
737
|
+
name: "",
|
|
738
|
+
type: "uint8",
|
|
739
|
+
internalType: "enum WithdrawalStatus"
|
|
740
|
+
}],
|
|
741
|
+
stateMutability: "view"
|
|
742
|
+
},
|
|
713
743
|
{
|
|
714
744
|
type: "function",
|
|
715
745
|
name: "version",
|
|
@@ -90,7 +90,12 @@ const liquidationCompressorAbi = [
|
|
|
90
90
|
internalType: "struct LiquidationData",
|
|
91
91
|
components: [
|
|
92
92
|
{
|
|
93
|
-
name: "
|
|
93
|
+
name: "requiredToken",
|
|
94
|
+
type: "address",
|
|
95
|
+
internalType: "address"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "requiredAmount",
|
|
94
99
|
type: "uint256",
|
|
95
100
|
internalType: "uint256"
|
|
96
101
|
},
|
|
@@ -145,6 +150,11 @@ const liquidationCompressorAbi = [
|
|
|
145
150
|
type: "bool",
|
|
146
151
|
internalType: "bool"
|
|
147
152
|
},
|
|
153
|
+
{
|
|
154
|
+
name: "isCreditAccountFrozen",
|
|
155
|
+
type: "bool",
|
|
156
|
+
internalType: "bool"
|
|
157
|
+
},
|
|
148
158
|
{
|
|
149
159
|
name: "kycProtocol",
|
|
150
160
|
type: "string",
|
|
@@ -159,6 +169,38 @@ const liquidationCompressorAbi = [
|
|
|
159
169
|
}],
|
|
160
170
|
stateMutability: "nonpayable"
|
|
161
171
|
},
|
|
172
|
+
{
|
|
173
|
+
type: "function",
|
|
174
|
+
name: "getRWALiquidators",
|
|
175
|
+
inputs: [{
|
|
176
|
+
name: "marketConfigurator",
|
|
177
|
+
type: "address",
|
|
178
|
+
internalType: "address"
|
|
179
|
+
}],
|
|
180
|
+
outputs: [{
|
|
181
|
+
name: "liquidators",
|
|
182
|
+
type: "tuple[]",
|
|
183
|
+
internalType: "struct RWALiquidatorInfo[]",
|
|
184
|
+
components: [
|
|
185
|
+
{
|
|
186
|
+
name: "gateway",
|
|
187
|
+
type: "address",
|
|
188
|
+
internalType: "address"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: "liquidatorAddress",
|
|
192
|
+
type: "address",
|
|
193
|
+
internalType: "address"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: "contractType",
|
|
197
|
+
type: "bytes32",
|
|
198
|
+
internalType: "bytes32"
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
}],
|
|
202
|
+
stateMutability: "view"
|
|
203
|
+
},
|
|
162
204
|
{
|
|
163
205
|
type: "function",
|
|
164
206
|
name: "liquidatableTypeToCompressorType",
|
|
@@ -260,18 +260,18 @@ const rwaCompressorAbi = [
|
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
type: "error",
|
|
263
|
-
name: "
|
|
263
|
+
name: "InvalidMarketConfiguratorException",
|
|
264
264
|
inputs: [{
|
|
265
|
-
name: "
|
|
265
|
+
name: "marketConfigurator",
|
|
266
266
|
type: "address",
|
|
267
267
|
internalType: "address"
|
|
268
268
|
}]
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
271
|
type: "error",
|
|
272
|
-
name: "
|
|
272
|
+
name: "InvalidRWAFactoryException",
|
|
273
273
|
inputs: [{
|
|
274
|
-
name: "
|
|
274
|
+
name: "factory",
|
|
275
275
|
type: "address",
|
|
276
276
|
internalType: "address"
|
|
277
277
|
}]
|
package/dist/cjs/abi/compressors/subcompressors/liquidation/midasLiquidationSubcompressor.js
CHANGED
|
@@ -52,7 +52,12 @@ const midasLiquidationSubcompressorAbi = [
|
|
|
52
52
|
internalType: "struct LiquidationData",
|
|
53
53
|
components: [
|
|
54
54
|
{
|
|
55
|
-
name: "
|
|
55
|
+
name: "requiredToken",
|
|
56
|
+
type: "address",
|
|
57
|
+
internalType: "address"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "requiredAmount",
|
|
56
61
|
type: "uint256",
|
|
57
62
|
internalType: "uint256"
|
|
58
63
|
},
|
|
@@ -107,6 +112,11 @@ const midasLiquidationSubcompressorAbi = [
|
|
|
107
112
|
type: "bool",
|
|
108
113
|
internalType: "bool"
|
|
109
114
|
},
|
|
115
|
+
{
|
|
116
|
+
name: "isCreditAccountFrozen",
|
|
117
|
+
type: "bool",
|
|
118
|
+
internalType: "bool"
|
|
119
|
+
},
|
|
110
120
|
{
|
|
111
121
|
name: "kycProtocol",
|
|
112
122
|
type: "string",
|
|
@@ -121,6 +131,38 @@ const midasLiquidationSubcompressorAbi = [
|
|
|
121
131
|
}],
|
|
122
132
|
stateMutability: "nonpayable"
|
|
123
133
|
},
|
|
134
|
+
{
|
|
135
|
+
type: "function",
|
|
136
|
+
name: "getRWALiquidatorInfo",
|
|
137
|
+
inputs: [{
|
|
138
|
+
name: "token",
|
|
139
|
+
type: "address",
|
|
140
|
+
internalType: "address"
|
|
141
|
+
}],
|
|
142
|
+
outputs: [{
|
|
143
|
+
name: "info",
|
|
144
|
+
type: "tuple",
|
|
145
|
+
internalType: "struct RWALiquidatorInfo",
|
|
146
|
+
components: [
|
|
147
|
+
{
|
|
148
|
+
name: "gateway",
|
|
149
|
+
type: "address",
|
|
150
|
+
internalType: "address"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "liquidatorAddress",
|
|
154
|
+
type: "address",
|
|
155
|
+
internalType: "address"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "contractType",
|
|
159
|
+
type: "bytes32",
|
|
160
|
+
internalType: "bytes32"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}],
|
|
164
|
+
stateMutability: "view"
|
|
165
|
+
},
|
|
124
166
|
{
|
|
125
167
|
type: "function",
|
|
126
168
|
name: "version",
|
package/dist/cjs/abi/compressors/subcompressors/liquidation/securitizeLiquidationSubcompressor.js
CHANGED
|
@@ -52,7 +52,12 @@ const securitizeLiquidationSubcompressorAbi = [
|
|
|
52
52
|
internalType: "struct LiquidationData",
|
|
53
53
|
components: [
|
|
54
54
|
{
|
|
55
|
-
name: "
|
|
55
|
+
name: "requiredToken",
|
|
56
|
+
type: "address",
|
|
57
|
+
internalType: "address"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "requiredAmount",
|
|
56
61
|
type: "uint256",
|
|
57
62
|
internalType: "uint256"
|
|
58
63
|
},
|
|
@@ -107,6 +112,11 @@ const securitizeLiquidationSubcompressorAbi = [
|
|
|
107
112
|
type: "bool",
|
|
108
113
|
internalType: "bool"
|
|
109
114
|
},
|
|
115
|
+
{
|
|
116
|
+
name: "isCreditAccountFrozen",
|
|
117
|
+
type: "bool",
|
|
118
|
+
internalType: "bool"
|
|
119
|
+
},
|
|
110
120
|
{
|
|
111
121
|
name: "kycProtocol",
|
|
112
122
|
type: "string",
|
|
@@ -121,6 +131,38 @@ const securitizeLiquidationSubcompressorAbi = [
|
|
|
121
131
|
}],
|
|
122
132
|
stateMutability: "nonpayable"
|
|
123
133
|
},
|
|
134
|
+
{
|
|
135
|
+
type: "function",
|
|
136
|
+
name: "getRWALiquidatorInfo",
|
|
137
|
+
inputs: [{
|
|
138
|
+
name: "token",
|
|
139
|
+
type: "address",
|
|
140
|
+
internalType: "address"
|
|
141
|
+
}],
|
|
142
|
+
outputs: [{
|
|
143
|
+
name: "info",
|
|
144
|
+
type: "tuple",
|
|
145
|
+
internalType: "struct RWALiquidatorInfo",
|
|
146
|
+
components: [
|
|
147
|
+
{
|
|
148
|
+
name: "gateway",
|
|
149
|
+
type: "address",
|
|
150
|
+
internalType: "address"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "liquidatorAddress",
|
|
154
|
+
type: "address",
|
|
155
|
+
internalType: "address"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "contractType",
|
|
159
|
+
type: "bytes32",
|
|
160
|
+
internalType: "bytes32"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}],
|
|
164
|
+
stateMutability: "view"
|
|
165
|
+
},
|
|
124
166
|
{
|
|
125
167
|
type: "function",
|
|
126
168
|
name: "version",
|
|
@@ -80,6 +80,11 @@ const midasWithdrawalSubcompressorAbi = [
|
|
|
80
80
|
internalType: "bytes"
|
|
81
81
|
}]
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
name: "redeemer",
|
|
85
|
+
type: "address",
|
|
86
|
+
internalType: "address"
|
|
87
|
+
},
|
|
83
88
|
{
|
|
84
89
|
name: "extraData",
|
|
85
90
|
type: "bytes",
|
|
@@ -128,6 +133,11 @@ const midasWithdrawalSubcompressorAbi = [
|
|
|
128
133
|
type: "uint256",
|
|
129
134
|
internalType: "uint256"
|
|
130
135
|
},
|
|
136
|
+
{
|
|
137
|
+
name: "redeemer",
|
|
138
|
+
type: "address",
|
|
139
|
+
internalType: "address"
|
|
140
|
+
},
|
|
131
141
|
{
|
|
132
142
|
name: "extraData",
|
|
133
143
|
type: "bytes",
|
|
@@ -205,6 +215,11 @@ const midasWithdrawalSubcompressorAbi = [
|
|
|
205
215
|
internalType: "bytes"
|
|
206
216
|
}]
|
|
207
217
|
},
|
|
218
|
+
{
|
|
219
|
+
name: "redeemer",
|
|
220
|
+
type: "address",
|
|
221
|
+
internalType: "address"
|
|
222
|
+
},
|
|
208
223
|
{
|
|
209
224
|
name: "extraData",
|
|
210
225
|
type: "bytes",
|
|
@@ -253,6 +268,11 @@ const midasWithdrawalSubcompressorAbi = [
|
|
|
253
268
|
type: "uint256",
|
|
254
269
|
internalType: "uint256"
|
|
255
270
|
},
|
|
271
|
+
{
|
|
272
|
+
name: "redeemer",
|
|
273
|
+
type: "address",
|
|
274
|
+
internalType: "address"
|
|
275
|
+
},
|
|
256
276
|
{
|
|
257
277
|
name: "extraData",
|
|
258
278
|
type: "bytes",
|
package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js
CHANGED
|
@@ -80,6 +80,11 @@ const securitizeRedemptionSubcompressorAbi = [
|
|
|
80
80
|
internalType: "bytes"
|
|
81
81
|
}]
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
name: "redeemer",
|
|
85
|
+
type: "address",
|
|
86
|
+
internalType: "address"
|
|
87
|
+
},
|
|
83
88
|
{
|
|
84
89
|
name: "extraData",
|
|
85
90
|
type: "bytes",
|
|
@@ -128,6 +133,11 @@ const securitizeRedemptionSubcompressorAbi = [
|
|
|
128
133
|
type: "uint256",
|
|
129
134
|
internalType: "uint256"
|
|
130
135
|
},
|
|
136
|
+
{
|
|
137
|
+
name: "redeemer",
|
|
138
|
+
type: "address",
|
|
139
|
+
internalType: "address"
|
|
140
|
+
},
|
|
131
141
|
{
|
|
132
142
|
name: "extraData",
|
|
133
143
|
type: "bytes",
|
|
@@ -205,6 +215,11 @@ const securitizeRedemptionSubcompressorAbi = [
|
|
|
205
215
|
internalType: "bytes"
|
|
206
216
|
}]
|
|
207
217
|
},
|
|
218
|
+
{
|
|
219
|
+
name: "redeemer",
|
|
220
|
+
type: "address",
|
|
221
|
+
internalType: "address"
|
|
222
|
+
},
|
|
208
223
|
{
|
|
209
224
|
name: "extraData",
|
|
210
225
|
type: "bytes",
|
|
@@ -253,6 +268,11 @@ const securitizeRedemptionSubcompressorAbi = [
|
|
|
253
268
|
type: "uint256",
|
|
254
269
|
internalType: "uint256"
|
|
255
270
|
},
|
|
271
|
+
{
|
|
272
|
+
name: "redeemer",
|
|
273
|
+
type: "address",
|
|
274
|
+
internalType: "address"
|
|
275
|
+
},
|
|
256
276
|
{
|
|
257
277
|
name: "extraData",
|
|
258
278
|
type: "bytes",
|
|
@@ -119,6 +119,11 @@ const withdrawalCompressorAbi = [
|
|
|
119
119
|
internalType: "bytes"
|
|
120
120
|
}]
|
|
121
121
|
},
|
|
122
|
+
{
|
|
123
|
+
name: "redeemer",
|
|
124
|
+
type: "address",
|
|
125
|
+
internalType: "address"
|
|
126
|
+
},
|
|
122
127
|
{
|
|
123
128
|
name: "extraData",
|
|
124
129
|
type: "bytes",
|
|
@@ -167,6 +172,11 @@ const withdrawalCompressorAbi = [
|
|
|
167
172
|
type: "uint256",
|
|
168
173
|
internalType: "uint256"
|
|
169
174
|
},
|
|
175
|
+
{
|
|
176
|
+
name: "redeemer",
|
|
177
|
+
type: "address",
|
|
178
|
+
internalType: "address"
|
|
179
|
+
},
|
|
170
180
|
{
|
|
171
181
|
name: "extraData",
|
|
172
182
|
type: "bytes",
|
|
@@ -244,6 +254,11 @@ const withdrawalCompressorAbi = [
|
|
|
244
254
|
internalType: "bytes"
|
|
245
255
|
}]
|
|
246
256
|
},
|
|
257
|
+
{
|
|
258
|
+
name: "redeemer",
|
|
259
|
+
type: "address",
|
|
260
|
+
internalType: "address"
|
|
261
|
+
},
|
|
247
262
|
{
|
|
248
263
|
name: "extraData",
|
|
249
264
|
type: "bytes",
|
|
@@ -292,6 +307,11 @@ const withdrawalCompressorAbi = [
|
|
|
292
307
|
type: "uint256",
|
|
293
308
|
internalType: "uint256"
|
|
294
309
|
},
|
|
310
|
+
{
|
|
311
|
+
name: "redeemer",
|
|
312
|
+
type: "address",
|
|
313
|
+
internalType: "address"
|
|
314
|
+
},
|
|
295
315
|
{
|
|
296
316
|
name: "extraData",
|
|
297
317
|
type: "bytes",
|
|
@@ -369,6 +389,11 @@ const withdrawalCompressorAbi = [
|
|
|
369
389
|
internalType: "bytes"
|
|
370
390
|
}]
|
|
371
391
|
},
|
|
392
|
+
{
|
|
393
|
+
name: "redeemer",
|
|
394
|
+
type: "address",
|
|
395
|
+
internalType: "address"
|
|
396
|
+
},
|
|
372
397
|
{
|
|
373
398
|
name: "extraData",
|
|
374
399
|
type: "bytes",
|
|
@@ -417,6 +442,11 @@ const withdrawalCompressorAbi = [
|
|
|
417
442
|
type: "uint256",
|
|
418
443
|
internalType: "uint256"
|
|
419
444
|
},
|
|
445
|
+
{
|
|
446
|
+
name: "redeemer",
|
|
447
|
+
type: "address",
|
|
448
|
+
internalType: "address"
|
|
449
|
+
},
|
|
420
450
|
{
|
|
421
451
|
name: "extraData",
|
|
422
452
|
type: "bytes",
|
|
@@ -20,8 +20,14 @@ const adapterActionSignatures = {
|
|
|
20
20
|
["KELP_WITHDRAWAL"]: { 310: "function setTokensOutBatchStatus((address,address,bool)[])" },
|
|
21
21
|
["MELLOW_CLAIMER"]: { 310: "function setMultiVaultStatusBatch((address,address,bool)[])" },
|
|
22
22
|
["MELLOW_WRAPPER"]: { 310: "function setVaultStatusBatch((address,bool)[])" },
|
|
23
|
-
["MIDAS_ISSUANCE_VAULT"]: {
|
|
24
|
-
|
|
23
|
+
["MIDAS_ISSUANCE_VAULT"]: {
|
|
24
|
+
310: "function setTokenAllowedStatusBatch(address[],bool[])",
|
|
25
|
+
311: "function setInputTokenStatusBatch(address[],bool[])"
|
|
26
|
+
},
|
|
27
|
+
["MIDAS_REDEMPTION_VAULT"]: {
|
|
28
|
+
310: "function setTokenAllowedStatusBatch((address,address,bool)[])",
|
|
29
|
+
311: "function setOutputTokenStatusBatch(address[],bool[])"
|
|
30
|
+
},
|
|
25
31
|
["PENDLE_ROUTER"]: {
|
|
26
32
|
310: "function setPairStatusBatch((address,address,address,uint8)[])",
|
|
27
33
|
311: "function setPairStatusBatch((address,address,address,uint8,uint8)[])"
|
|
@@ -20,7 +20,10 @@ const adapterConstructorAbi = {
|
|
|
20
20
|
["INFINIFI_GATEWAY"]: { 310: require_plugins_adapters_abi_conctructorAbiPatterns.BASIC_ADAPTER_ABI },
|
|
21
21
|
["LIDO_V1"]: { 310: require_plugins_adapters_abi_conctructorAbiPatterns.BASIC_ADAPTER_ABI },
|
|
22
22
|
["LIDO_WSTETH_V1"]: { 310: require_plugins_adapters_abi_conctructorAbiPatterns.BASIC_ADAPTER_ABI },
|
|
23
|
-
["MIDAS_REDEMPTION_VAULT"]: {
|
|
23
|
+
["MIDAS_REDEMPTION_VAULT"]: {
|
|
24
|
+
310: require_plugins_adapters_abi_conctructorAbiPatterns.BASIC_ADAPTER_ABI,
|
|
25
|
+
311: require_plugins_adapters_abi_conctructorAbiPatterns.BASIC_ADAPTER_ABI
|
|
26
|
+
},
|
|
24
27
|
["PENDLE_ROUTER"]: {
|
|
25
28
|
310: require_plugins_adapters_abi_conctructorAbiPatterns.BASIC_ADAPTER_ABI,
|
|
26
29
|
311: require_plugins_adapters_abi_conctructorAbiPatterns.BASIC_ADAPTER_ABI
|
|
@@ -65,7 +68,10 @@ const adapterConstructorAbi = {
|
|
|
65
68
|
311: require_plugins_adapters_abi_conctructorAbiPatterns.PHANTOM_TOKEN_ADAPTER_ABI
|
|
66
69
|
},
|
|
67
70
|
["STAKING_REWARDS"]: { 312: require_plugins_adapters_abi_conctructorAbiPatterns.STAKING_REWARDS_ADAPTER_ABI },
|
|
68
|
-
["MIDAS_ISSUANCE_VAULT"]: {
|
|
71
|
+
["MIDAS_ISSUANCE_VAULT"]: {
|
|
72
|
+
310: require_plugins_adapters_abi_conctructorAbiPatterns.REFERER_ID_ADAPTER_ABI,
|
|
73
|
+
311: require_plugins_adapters_abi_conctructorAbiPatterns.REFERER_ID_ADAPTER_ABI
|
|
74
|
+
},
|
|
69
75
|
["MIDAS_GATEWAY"]: { 311: require_plugins_adapters_abi_conctructorAbiPatterns.REFERER_ID_ADAPTER_ABI }
|
|
70
76
|
};
|
|
71
77
|
//#endregion
|