@gearbox-protocol/sdk 14.12.0-test.1 → 14.12.0-test.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
- package/dist/cjs/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
- package/dist/cjs/abi/compressors/withdrawalCompressor.js +197 -1
- package/dist/cjs/abi/helpers/redemptionLogger.js +160 -0
- package/dist/cjs/abi/router/midasWorker.js +4 -4
- package/dist/cjs/dev/AccountOpener.js +2 -2
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +13 -5
- package/dist/cjs/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +2 -1
- package/dist/cjs/preview/preview/buildDelayedPreview.js +38 -16
- package/dist/cjs/sdk/accounts/liquidations/LiquidationsService.js +21 -0
- package/dist/cjs/sdk/accounts/liquidations/MultichainLiquidationsService.js +26 -0
- package/dist/cjs/sdk/accounts/liquidations/helpers.js +29 -2
- package/dist/cjs/sdk/accounts/withdrawal-compressor/intent-codec.js +4 -6
- package/dist/esm/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.js +85 -1
- package/dist/esm/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.js +85 -1
- package/dist/esm/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.js +85 -1
- package/dist/esm/abi/compressors/withdrawalCompressor.js +197 -1
- package/dist/esm/abi/helpers/redemptionLogger.js +136 -0
- package/dist/esm/abi/router/midasWorker.js +4 -4
- package/dist/esm/dev/AccountOpener.js +2 -2
- package/dist/esm/plugins/adapters/abi/actionAbi.js +13 -5
- package/dist/esm/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js +23 -8
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +2 -1
- package/dist/esm/preview/preview/buildDelayedPreview.js +41 -17
- package/dist/esm/sdk/accounts/liquidations/LiquidationsService.js +23 -1
- package/dist/esm/sdk/accounts/liquidations/MultichainLiquidationsService.js +26 -0
- package/dist/esm/sdk/accounts/liquidations/helpers.js +27 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/intent-codec.js +4 -6
- package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts +121 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts +121 -0
- package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts +121 -0
- package/dist/types/abi/compressors/withdrawalCompressor.d.ts +274 -0
- package/dist/types/abi/helpers/redemptionLogger.d.ts +167 -0
- package/dist/types/abi/router/midasWorker.d.ts +4 -4
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +274 -0
- package/dist/types/plugins/adapters/abi/actionAbi.d.ts +1 -1
- package/dist/types/plugins/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.d.ts +37 -7
- package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +37 -7
- package/dist/types/preview/preview/buildDelayedPreview.d.ts +8 -26
- package/dist/types/sdk/accounts/liquidations/LiquidationsService.d.ts +5 -1
- package/dist/types/sdk/accounts/liquidations/MultichainLiquidationsService.d.ts +5 -1
- package/dist/types/sdk/accounts/liquidations/helpers.d.ts +12 -0
- package/dist/types/sdk/accounts/liquidations/types.d.ts +55 -0
- package/dist/types/sdk/accounts/withdrawal-compressor/intent-codec.d.ts +1 -1
- package/dist/types/sdk/accounts/withdrawal-compressor/types.d.ts +4 -9
- package/package.json +1 -1
|
@@ -28,9 +28,35 @@ function pickMainAsset(ca, convert) {
|
|
|
28
28
|
}
|
|
29
29
|
return bestToken;
|
|
30
30
|
}
|
|
31
|
+
function toLiquidatorWithdrawals(current, network) {
|
|
32
|
+
const rows = [];
|
|
33
|
+
for (const w of current.claimable) {
|
|
34
|
+
for (const o of w.outputs) {
|
|
35
|
+
rows.push({
|
|
36
|
+
network,
|
|
37
|
+
sourceToken: w.token,
|
|
38
|
+
token: o.token,
|
|
39
|
+
amount: o.amount
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
for (const w of current.pending) {
|
|
44
|
+
for (const o of w.expectedOutputs) {
|
|
45
|
+
rows.push({
|
|
46
|
+
network,
|
|
47
|
+
sourceToken: w.token,
|
|
48
|
+
token: o.token,
|
|
49
|
+
amount: o.amount,
|
|
50
|
+
claimableAt: w.claimableAt
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return rows;
|
|
55
|
+
}
|
|
31
56
|
export {
|
|
32
57
|
DUST_THRESHOLD,
|
|
33
58
|
calcEstimatedProfit,
|
|
34
59
|
calcRepaymentAmount,
|
|
35
|
-
pickMainAsset
|
|
60
|
+
pickMainAsset,
|
|
61
|
+
toLiquidatorWithdrawals
|
|
36
62
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { decodeAbiParameters, encodeAbiParameters } from "viem";
|
|
2
|
-
const DELAYED_INTENT_VERSION =
|
|
2
|
+
const DELAYED_INTENT_VERSION = 1;
|
|
3
3
|
const DELAYED_INTENT_TYPES = {
|
|
4
4
|
INCREASE_LEVERAGE: 1,
|
|
5
5
|
DEPOSIT: 2,
|
|
@@ -25,7 +25,6 @@ function encodeDelayedIntent(intent) {
|
|
|
25
25
|
const version = DELAYED_INTENT_VERSION;
|
|
26
26
|
const intentType = DELAYED_INTENT_TYPES[intent.type];
|
|
27
27
|
switch (intent.type) {
|
|
28
|
-
case "INCREASE_LEVERAGE":
|
|
29
28
|
case "CLOSE_ACCOUNT":
|
|
30
29
|
return encodeAbiParameters(TO_PARAMS, [version, intentType, intent.to]);
|
|
31
30
|
case "WITHDRAW_COLLATERAL":
|
|
@@ -38,6 +37,7 @@ function encodeDelayedIntent(intent) {
|
|
|
38
37
|
intent.sourceToken,
|
|
39
38
|
intent.debtRepaid
|
|
40
39
|
]);
|
|
40
|
+
case "INCREASE_LEVERAGE":
|
|
41
41
|
case "DEPOSIT":
|
|
42
42
|
case "DEPOSIT_AND_INCREASE_LEVERAGE":
|
|
43
43
|
case "ADD_COLLATERAL":
|
|
@@ -55,10 +55,8 @@ function decodeDelayedIntent(data) {
|
|
|
55
55
|
throw new Error(`unsupported delayed intent version: ${version}`);
|
|
56
56
|
}
|
|
57
57
|
switch (intentType) {
|
|
58
|
-
case DELAYED_INTENT_TYPES.INCREASE_LEVERAGE:
|
|
59
|
-
|
|
60
|
-
return { type: "INCREASE_LEVERAGE", to };
|
|
61
|
-
}
|
|
58
|
+
case DELAYED_INTENT_TYPES.INCREASE_LEVERAGE:
|
|
59
|
+
return { type: "INCREASE_LEVERAGE" };
|
|
62
60
|
case DELAYED_INTENT_TYPES.DEPOSIT:
|
|
63
61
|
return { type: "DEPOSIT" };
|
|
64
62
|
case DELAYED_INTENT_TYPES.DEPOSIT_AND_INCREASE_LEVERAGE:
|
package/dist/types/abi/compressors/subcompressors/withdrawal/mellowWithdrawalSubcompressor.d.ts
CHANGED
|
@@ -104,9 +104,116 @@ export declare const mellowWithdrawalSubcompressorAbi: readonly [{
|
|
|
104
104
|
readonly name: "claimableAt";
|
|
105
105
|
readonly type: "uint256";
|
|
106
106
|
readonly internalType: "uint256";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "extraData";
|
|
109
|
+
readonly type: "bytes";
|
|
110
|
+
readonly internalType: "bytes";
|
|
107
111
|
}];
|
|
108
112
|
}];
|
|
109
113
|
readonly stateMutability: "view";
|
|
114
|
+
}, {
|
|
115
|
+
readonly type: "function";
|
|
116
|
+
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly name: "";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
readonly internalType: "address";
|
|
125
|
+
}];
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly name: "claimableWithdrawals";
|
|
128
|
+
readonly type: "tuple[]";
|
|
129
|
+
readonly internalType: "struct ClaimableWithdrawal[]";
|
|
130
|
+
readonly components: readonly [{
|
|
131
|
+
readonly name: "token";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "withdrawalPhantomToken";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "withdrawalTokenSpent";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "outputs";
|
|
144
|
+
readonly type: "tuple[]";
|
|
145
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
146
|
+
readonly components: readonly [{
|
|
147
|
+
readonly name: "token";
|
|
148
|
+
readonly type: "address";
|
|
149
|
+
readonly internalType: "address";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "isDelayed";
|
|
152
|
+
readonly type: "bool";
|
|
153
|
+
readonly internalType: "bool";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "amount";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
}];
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "claimCalls";
|
|
161
|
+
readonly type: "tuple[]";
|
|
162
|
+
readonly internalType: "struct MultiCall[]";
|
|
163
|
+
readonly components: readonly [{
|
|
164
|
+
readonly name: "target";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
readonly internalType: "address";
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "callData";
|
|
169
|
+
readonly type: "bytes";
|
|
170
|
+
readonly internalType: "bytes";
|
|
171
|
+
}];
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "extraData";
|
|
174
|
+
readonly type: "bytes";
|
|
175
|
+
readonly internalType: "bytes";
|
|
176
|
+
}];
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "pendingWithdrawals";
|
|
179
|
+
readonly type: "tuple[]";
|
|
180
|
+
readonly internalType: "struct PendingWithdrawal[]";
|
|
181
|
+
readonly components: readonly [{
|
|
182
|
+
readonly name: "token";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "withdrawalPhantomToken";
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
readonly internalType: "address";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "expectedOutputs";
|
|
191
|
+
readonly type: "tuple[]";
|
|
192
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
193
|
+
readonly components: readonly [{
|
|
194
|
+
readonly name: "token";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
readonly internalType: "address";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "isDelayed";
|
|
199
|
+
readonly type: "bool";
|
|
200
|
+
readonly internalType: "bool";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "amount";
|
|
203
|
+
readonly type: "uint256";
|
|
204
|
+
readonly internalType: "uint256";
|
|
205
|
+
}];
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "claimableAt";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "extraData";
|
|
212
|
+
readonly type: "bytes";
|
|
213
|
+
readonly internalType: "bytes";
|
|
214
|
+
}];
|
|
215
|
+
}];
|
|
216
|
+
readonly stateMutability: "pure";
|
|
110
217
|
}, {
|
|
111
218
|
readonly type: "function";
|
|
112
219
|
readonly name: "getWithdrawableAssets";
|
|
@@ -288,6 +395,20 @@ export declare const mellowWithdrawalSubcompressorAbi: readonly [{
|
|
|
288
395
|
}];
|
|
289
396
|
}];
|
|
290
397
|
readonly stateMutability: "view";
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "function";
|
|
400
|
+
readonly name: "getWithdrawalStatus";
|
|
401
|
+
readonly inputs: readonly [{
|
|
402
|
+
readonly name: "";
|
|
403
|
+
readonly type: "address";
|
|
404
|
+
readonly internalType: "address";
|
|
405
|
+
}];
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly name: "";
|
|
408
|
+
readonly type: "uint8";
|
|
409
|
+
readonly internalType: "enum WithdrawalStatus";
|
|
410
|
+
}];
|
|
411
|
+
readonly stateMutability: "pure";
|
|
291
412
|
}, {
|
|
292
413
|
readonly type: "function";
|
|
293
414
|
readonly name: "version";
|
package/dist/types/abi/compressors/subcompressors/withdrawal/midasWithdrawalSubcompressor.d.ts
CHANGED
|
@@ -104,6 +104,113 @@ export declare const midasWithdrawalSubcompressorAbi: readonly [{
|
|
|
104
104
|
readonly name: "claimableAt";
|
|
105
105
|
readonly type: "uint256";
|
|
106
106
|
readonly internalType: "uint256";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "extraData";
|
|
109
|
+
readonly type: "bytes";
|
|
110
|
+
readonly internalType: "bytes";
|
|
111
|
+
}];
|
|
112
|
+
}];
|
|
113
|
+
readonly stateMutability: "view";
|
|
114
|
+
}, {
|
|
115
|
+
readonly type: "function";
|
|
116
|
+
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly name: "account";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "token";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
readonly internalType: "address";
|
|
125
|
+
}];
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly name: "";
|
|
128
|
+
readonly type: "tuple[]";
|
|
129
|
+
readonly internalType: "struct ClaimableWithdrawal[]";
|
|
130
|
+
readonly components: readonly [{
|
|
131
|
+
readonly name: "token";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "withdrawalPhantomToken";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "withdrawalTokenSpent";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "outputs";
|
|
144
|
+
readonly type: "tuple[]";
|
|
145
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
146
|
+
readonly components: readonly [{
|
|
147
|
+
readonly name: "token";
|
|
148
|
+
readonly type: "address";
|
|
149
|
+
readonly internalType: "address";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "isDelayed";
|
|
152
|
+
readonly type: "bool";
|
|
153
|
+
readonly internalType: "bool";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "amount";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
}];
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "claimCalls";
|
|
161
|
+
readonly type: "tuple[]";
|
|
162
|
+
readonly internalType: "struct MultiCall[]";
|
|
163
|
+
readonly components: readonly [{
|
|
164
|
+
readonly name: "target";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
readonly internalType: "address";
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "callData";
|
|
169
|
+
readonly type: "bytes";
|
|
170
|
+
readonly internalType: "bytes";
|
|
171
|
+
}];
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "extraData";
|
|
174
|
+
readonly type: "bytes";
|
|
175
|
+
readonly internalType: "bytes";
|
|
176
|
+
}];
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "";
|
|
179
|
+
readonly type: "tuple[]";
|
|
180
|
+
readonly internalType: "struct PendingWithdrawal[]";
|
|
181
|
+
readonly components: readonly [{
|
|
182
|
+
readonly name: "token";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "withdrawalPhantomToken";
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
readonly internalType: "address";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "expectedOutputs";
|
|
191
|
+
readonly type: "tuple[]";
|
|
192
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
193
|
+
readonly components: readonly [{
|
|
194
|
+
readonly name: "token";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
readonly internalType: "address";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "isDelayed";
|
|
199
|
+
readonly type: "bool";
|
|
200
|
+
readonly internalType: "bool";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "amount";
|
|
203
|
+
readonly type: "uint256";
|
|
204
|
+
readonly internalType: "uint256";
|
|
205
|
+
}];
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "claimableAt";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "extraData";
|
|
212
|
+
readonly type: "bytes";
|
|
213
|
+
readonly internalType: "bytes";
|
|
107
214
|
}];
|
|
108
215
|
}];
|
|
109
216
|
readonly stateMutability: "view";
|
|
@@ -288,6 +395,20 @@ export declare const midasWithdrawalSubcompressorAbi: readonly [{
|
|
|
288
395
|
}];
|
|
289
396
|
}];
|
|
290
397
|
readonly stateMutability: "view";
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "function";
|
|
400
|
+
readonly name: "getWithdrawalStatus";
|
|
401
|
+
readonly inputs: readonly [{
|
|
402
|
+
readonly name: "redeemer";
|
|
403
|
+
readonly type: "address";
|
|
404
|
+
readonly internalType: "address";
|
|
405
|
+
}];
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly name: "";
|
|
408
|
+
readonly type: "uint8";
|
|
409
|
+
readonly internalType: "enum WithdrawalStatus";
|
|
410
|
+
}];
|
|
411
|
+
readonly stateMutability: "view";
|
|
291
412
|
}, {
|
|
292
413
|
readonly type: "function";
|
|
293
414
|
readonly name: "version";
|
package/dist/types/abi/compressors/subcompressors/withdrawal/securitizeRedemptionSubcompressor.d.ts
CHANGED
|
@@ -104,6 +104,113 @@ export declare const securitizeRedemptionSubcompressorAbi: readonly [{
|
|
|
104
104
|
readonly name: "claimableAt";
|
|
105
105
|
readonly type: "uint256";
|
|
106
106
|
readonly internalType: "uint256";
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "extraData";
|
|
109
|
+
readonly type: "bytes";
|
|
110
|
+
readonly internalType: "bytes";
|
|
111
|
+
}];
|
|
112
|
+
}];
|
|
113
|
+
readonly stateMutability: "view";
|
|
114
|
+
}, {
|
|
115
|
+
readonly type: "function";
|
|
116
|
+
readonly name: "getExternalAccountCurrentWithdrawals";
|
|
117
|
+
readonly inputs: readonly [{
|
|
118
|
+
readonly name: "account";
|
|
119
|
+
readonly type: "address";
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "token";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
readonly internalType: "address";
|
|
125
|
+
}];
|
|
126
|
+
readonly outputs: readonly [{
|
|
127
|
+
readonly name: "";
|
|
128
|
+
readonly type: "tuple[]";
|
|
129
|
+
readonly internalType: "struct ClaimableWithdrawal[]";
|
|
130
|
+
readonly components: readonly [{
|
|
131
|
+
readonly name: "token";
|
|
132
|
+
readonly type: "address";
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
}, {
|
|
135
|
+
readonly name: "withdrawalPhantomToken";
|
|
136
|
+
readonly type: "address";
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
}, {
|
|
139
|
+
readonly name: "withdrawalTokenSpent";
|
|
140
|
+
readonly type: "uint256";
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
}, {
|
|
143
|
+
readonly name: "outputs";
|
|
144
|
+
readonly type: "tuple[]";
|
|
145
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
146
|
+
readonly components: readonly [{
|
|
147
|
+
readonly name: "token";
|
|
148
|
+
readonly type: "address";
|
|
149
|
+
readonly internalType: "address";
|
|
150
|
+
}, {
|
|
151
|
+
readonly name: "isDelayed";
|
|
152
|
+
readonly type: "bool";
|
|
153
|
+
readonly internalType: "bool";
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "amount";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
}];
|
|
159
|
+
}, {
|
|
160
|
+
readonly name: "claimCalls";
|
|
161
|
+
readonly type: "tuple[]";
|
|
162
|
+
readonly internalType: "struct MultiCall[]";
|
|
163
|
+
readonly components: readonly [{
|
|
164
|
+
readonly name: "target";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
readonly internalType: "address";
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "callData";
|
|
169
|
+
readonly type: "bytes";
|
|
170
|
+
readonly internalType: "bytes";
|
|
171
|
+
}];
|
|
172
|
+
}, {
|
|
173
|
+
readonly name: "extraData";
|
|
174
|
+
readonly type: "bytes";
|
|
175
|
+
readonly internalType: "bytes";
|
|
176
|
+
}];
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "";
|
|
179
|
+
readonly type: "tuple[]";
|
|
180
|
+
readonly internalType: "struct PendingWithdrawal[]";
|
|
181
|
+
readonly components: readonly [{
|
|
182
|
+
readonly name: "token";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
readonly internalType: "address";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "withdrawalPhantomToken";
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
readonly internalType: "address";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "expectedOutputs";
|
|
191
|
+
readonly type: "tuple[]";
|
|
192
|
+
readonly internalType: "struct WithdrawalOutput[]";
|
|
193
|
+
readonly components: readonly [{
|
|
194
|
+
readonly name: "token";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
readonly internalType: "address";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "isDelayed";
|
|
199
|
+
readonly type: "bool";
|
|
200
|
+
readonly internalType: "bool";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "amount";
|
|
203
|
+
readonly type: "uint256";
|
|
204
|
+
readonly internalType: "uint256";
|
|
205
|
+
}];
|
|
206
|
+
}, {
|
|
207
|
+
readonly name: "claimableAt";
|
|
208
|
+
readonly type: "uint256";
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "extraData";
|
|
212
|
+
readonly type: "bytes";
|
|
213
|
+
readonly internalType: "bytes";
|
|
107
214
|
}];
|
|
108
215
|
}];
|
|
109
216
|
readonly stateMutability: "view";
|
|
@@ -288,6 +395,20 @@ export declare const securitizeRedemptionSubcompressorAbi: readonly [{
|
|
|
288
395
|
}];
|
|
289
396
|
}];
|
|
290
397
|
readonly stateMutability: "view";
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "function";
|
|
400
|
+
readonly name: "getWithdrawalStatus";
|
|
401
|
+
readonly inputs: readonly [{
|
|
402
|
+
readonly name: "redeemer";
|
|
403
|
+
readonly type: "address";
|
|
404
|
+
readonly internalType: "address";
|
|
405
|
+
}];
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly name: "";
|
|
408
|
+
readonly type: "uint8";
|
|
409
|
+
readonly internalType: "enum WithdrawalStatus";
|
|
410
|
+
}];
|
|
411
|
+
readonly stateMutability: "view";
|
|
291
412
|
}, {
|
|
292
413
|
readonly type: "function";
|
|
293
414
|
readonly name: "version";
|