@gearbox-protocol/sdk 14.12.0-next.38 → 14.12.0-next.39
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/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +354 -0
- package/dist/cjs/plugins/adapters/abi/securitize/index.js +2 -0
- 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/plugins/adapters/abi/securitize/iMidasGatewayAdapter.js +330 -0
- package/dist/esm/plugins/adapters/abi/securitize/index.js +1 -0
- 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/abi/securitize/iMidasGatewayAdapter.d.ts +555 -0
- package/dist/types/plugins/adapters/abi/securitize/index.d.ts +1 -0
- package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts +37 -7
- package/package.json +1 -1
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
const iSecuritizeRedemptionGatewayAdapterV311Abi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "acl",
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
7
|
+
stateMutability: "view"
|
|
8
|
+
},
|
|
2
9
|
{
|
|
3
10
|
type: "function",
|
|
4
11
|
name: "claim",
|
|
@@ -26,11 +33,11 @@ const iSecuritizeRedemptionGatewayAdapterV311Abi = [
|
|
|
26
33
|
type: "function",
|
|
27
34
|
name: "depositPhantomToken",
|
|
28
35
|
inputs: [
|
|
29
|
-
{ name: "
|
|
30
|
-
{ name: "
|
|
36
|
+
{ name: "", type: "address", internalType: "address" },
|
|
37
|
+
{ name: "", type: "uint256", internalType: "uint256" }
|
|
31
38
|
],
|
|
32
39
|
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
33
|
-
stateMutability: "
|
|
40
|
+
stateMutability: "view"
|
|
34
41
|
},
|
|
35
42
|
{
|
|
36
43
|
type: "function",
|
|
@@ -126,14 +133,22 @@ const iSecuritizeRedemptionGatewayAdapterV311Abi = [
|
|
|
126
133
|
type: "function",
|
|
127
134
|
name: "withdrawPhantomToken",
|
|
128
135
|
inputs: [
|
|
129
|
-
{ name: "
|
|
130
|
-
{ name: "
|
|
136
|
+
{ name: "", type: "address", internalType: "address" },
|
|
137
|
+
{ name: "", type: "uint256", internalType: "uint256" }
|
|
131
138
|
],
|
|
132
|
-
outputs: [{ name: "
|
|
133
|
-
stateMutability: "
|
|
139
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
140
|
+
stateMutability: "view"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: "error",
|
|
144
|
+
name: "AddressIsNotContractException",
|
|
145
|
+
inputs: [{ name: "", type: "address", internalType: "address" }]
|
|
134
146
|
},
|
|
147
|
+
{ type: "error", name: "CallerNotCreditFacadeException", inputs: [] },
|
|
135
148
|
{ type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] },
|
|
136
|
-
{ type: "error", name: "InvalidRedemptionGatewayException", inputs: [] }
|
|
149
|
+
{ type: "error", name: "InvalidRedemptionGatewayException", inputs: [] },
|
|
150
|
+
{ type: "error", name: "NotImplementedException", inputs: [] },
|
|
151
|
+
{ type: "error", name: "ZeroAddressException", inputs: [] }
|
|
137
152
|
];
|
|
138
153
|
export {
|
|
139
154
|
iSecuritizeRedemptionGatewayAdapterV311Abi
|
|
@@ -133,7 +133,8 @@ const adapterConstructorAbi = {
|
|
|
133
133
|
310: PHANTOM_TOKEN_ADAPTER_ABI
|
|
134
134
|
},
|
|
135
135
|
[AdapterType.SECURITIZE_REDEMPTION]: {
|
|
136
|
-
310: PHANTOM_TOKEN_ADAPTER_ABI
|
|
136
|
+
310: PHANTOM_TOKEN_ADAPTER_ABI,
|
|
137
|
+
311: PHANTOM_TOKEN_ADAPTER_ABI
|
|
137
138
|
},
|
|
138
139
|
// other patterns
|
|
139
140
|
[AdapterType.STAKING_REWARDS]: {
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
const iMidasGatewayAdapterAbi = [
|
|
2
|
+
{
|
|
3
|
+
type: "function",
|
|
4
|
+
name: "acl",
|
|
5
|
+
inputs: [],
|
|
6
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
7
|
+
stateMutability: "view"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: "function",
|
|
11
|
+
name: "allowedInputTokens",
|
|
12
|
+
inputs: [],
|
|
13
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
14
|
+
stateMutability: "view"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
type: "function",
|
|
18
|
+
name: "allowedOutputTokens",
|
|
19
|
+
inputs: [],
|
|
20
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
21
|
+
stateMutability: "view"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "function",
|
|
25
|
+
name: "allowedPhantomTokens",
|
|
26
|
+
inputs: [],
|
|
27
|
+
outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
|
|
28
|
+
stateMutability: "view"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
type: "function",
|
|
32
|
+
name: "contractType",
|
|
33
|
+
inputs: [],
|
|
34
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
35
|
+
stateMutability: "view"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: "function",
|
|
39
|
+
name: "creditManager",
|
|
40
|
+
inputs: [],
|
|
41
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
42
|
+
stateMutability: "view"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: "function",
|
|
46
|
+
name: "depositInstant",
|
|
47
|
+
inputs: [
|
|
48
|
+
{ name: "tokenIn", type: "address", internalType: "address" },
|
|
49
|
+
{ name: "amountToken", type: "uint256", internalType: "uint256" },
|
|
50
|
+
{ name: "minReceiveAmount", type: "uint256", internalType: "uint256" },
|
|
51
|
+
{ name: "", type: "bytes32", internalType: "bytes32" }
|
|
52
|
+
],
|
|
53
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
54
|
+
stateMutability: "nonpayable"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: "function",
|
|
58
|
+
name: "depositInstantDiff",
|
|
59
|
+
inputs: [
|
|
60
|
+
{ name: "tokenIn", type: "address", internalType: "address" },
|
|
61
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
62
|
+
{ name: "rateMinRAY", type: "uint256", internalType: "uint256" }
|
|
63
|
+
],
|
|
64
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
65
|
+
stateMutability: "nonpayable"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "function",
|
|
69
|
+
name: "depositPhantomToken",
|
|
70
|
+
inputs: [
|
|
71
|
+
{ name: "", type: "address", internalType: "address" },
|
|
72
|
+
{ name: "", type: "uint256", internalType: "uint256" }
|
|
73
|
+
],
|
|
74
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
75
|
+
stateMutability: "view"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "function",
|
|
79
|
+
name: "gateway",
|
|
80
|
+
inputs: [],
|
|
81
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
82
|
+
stateMutability: "view"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: "function",
|
|
86
|
+
name: "isInputTokenAllowed",
|
|
87
|
+
inputs: [{ name: "token", type: "address", internalType: "address" }],
|
|
88
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
89
|
+
stateMutability: "view"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
type: "function",
|
|
93
|
+
name: "isOutputTokenAllowed",
|
|
94
|
+
inputs: [{ name: "token", type: "address", internalType: "address" }],
|
|
95
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
96
|
+
stateMutability: "view"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
type: "function",
|
|
100
|
+
name: "mToken",
|
|
101
|
+
inputs: [],
|
|
102
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
103
|
+
stateMutability: "view"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
type: "function",
|
|
107
|
+
name: "outputTokenToPhantomToken",
|
|
108
|
+
inputs: [{ name: "", type: "address", internalType: "address" }],
|
|
109
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
110
|
+
stateMutability: "view"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
type: "function",
|
|
114
|
+
name: "phantomTokenToOutputToken",
|
|
115
|
+
inputs: [{ name: "", type: "address", internalType: "address" }],
|
|
116
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
117
|
+
stateMutability: "view"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
type: "function",
|
|
121
|
+
name: "redeemInstant",
|
|
122
|
+
inputs: [
|
|
123
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
124
|
+
{ name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
|
|
125
|
+
{ name: "minReceiveAmount", type: "uint256", internalType: "uint256" }
|
|
126
|
+
],
|
|
127
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
128
|
+
stateMutability: "nonpayable"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
type: "function",
|
|
132
|
+
name: "redeemInstantDiff",
|
|
133
|
+
inputs: [
|
|
134
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
135
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
136
|
+
{ name: "rateMinRAY", type: "uint256", internalType: "uint256" }
|
|
137
|
+
],
|
|
138
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
139
|
+
stateMutability: "nonpayable"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
type: "function",
|
|
143
|
+
name: "redeemRequest",
|
|
144
|
+
inputs: [
|
|
145
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
146
|
+
{ name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
|
|
147
|
+
{ name: "extraData", type: "bytes", internalType: "bytes" }
|
|
148
|
+
],
|
|
149
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
150
|
+
stateMutability: "nonpayable"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
type: "function",
|
|
154
|
+
name: "redeemRequest",
|
|
155
|
+
inputs: [
|
|
156
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
157
|
+
{ name: "amountMTokenIn", type: "uint256", internalType: "uint256" }
|
|
158
|
+
],
|
|
159
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
160
|
+
stateMutability: "nonpayable"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
type: "function",
|
|
164
|
+
name: "redeemRequestDiff",
|
|
165
|
+
inputs: [
|
|
166
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
167
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" }
|
|
168
|
+
],
|
|
169
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
170
|
+
stateMutability: "nonpayable"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
type: "function",
|
|
174
|
+
name: "redeemRequestDiff",
|
|
175
|
+
inputs: [
|
|
176
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
177
|
+
{ name: "leftoverAmount", type: "uint256", internalType: "uint256" },
|
|
178
|
+
{ name: "extraData", type: "bytes", internalType: "bytes" }
|
|
179
|
+
],
|
|
180
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
181
|
+
stateMutability: "nonpayable"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
type: "function",
|
|
185
|
+
name: "referrerId",
|
|
186
|
+
inputs: [],
|
|
187
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
188
|
+
stateMutability: "view"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
type: "function",
|
|
192
|
+
name: "serialize",
|
|
193
|
+
inputs: [],
|
|
194
|
+
outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
|
|
195
|
+
stateMutability: "view"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
type: "function",
|
|
199
|
+
name: "setInputTokenAllowedStatusBatch",
|
|
200
|
+
inputs: [
|
|
201
|
+
{ name: "tokens", type: "address[]", internalType: "address[]" },
|
|
202
|
+
{ name: "allowed", type: "bool[]", internalType: "bool[]" }
|
|
203
|
+
],
|
|
204
|
+
outputs: [],
|
|
205
|
+
stateMutability: "nonpayable"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
type: "function",
|
|
209
|
+
name: "setOutputTokenAllowedStatusBatch",
|
|
210
|
+
inputs: [
|
|
211
|
+
{
|
|
212
|
+
name: "configs",
|
|
213
|
+
type: "tuple[]",
|
|
214
|
+
internalType: "struct IMidasGatewayAdapter.MidasAllowedTokenStatus[]",
|
|
215
|
+
components: [
|
|
216
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
217
|
+
{ name: "phantomToken", type: "address", internalType: "address" },
|
|
218
|
+
{ name: "allowed", type: "bool", internalType: "bool" }
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
outputs: [],
|
|
223
|
+
stateMutability: "nonpayable"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
type: "function",
|
|
227
|
+
name: "targetContract",
|
|
228
|
+
inputs: [],
|
|
229
|
+
outputs: [{ name: "", type: "address", internalType: "address" }],
|
|
230
|
+
stateMutability: "view"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
type: "function",
|
|
234
|
+
name: "transferRedeemer",
|
|
235
|
+
inputs: [
|
|
236
|
+
{ name: "redeemer", type: "address", internalType: "address" },
|
|
237
|
+
{ name: "newAccount", type: "address", internalType: "address" }
|
|
238
|
+
],
|
|
239
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
240
|
+
stateMutability: "nonpayable"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
type: "function",
|
|
244
|
+
name: "version",
|
|
245
|
+
inputs: [],
|
|
246
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
247
|
+
stateMutability: "view"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
type: "function",
|
|
251
|
+
name: "withdraw",
|
|
252
|
+
inputs: [
|
|
253
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
254
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
255
|
+
],
|
|
256
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
257
|
+
stateMutability: "nonpayable"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
type: "function",
|
|
261
|
+
name: "withdrawFromRedeemer",
|
|
262
|
+
inputs: [
|
|
263
|
+
{ name: "redeemer", type: "address", internalType: "address" },
|
|
264
|
+
{ name: "tokenOut", type: "address", internalType: "address" },
|
|
265
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
266
|
+
],
|
|
267
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
268
|
+
stateMutability: "nonpayable"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
type: "function",
|
|
272
|
+
name: "withdrawPhantomToken",
|
|
273
|
+
inputs: [
|
|
274
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
275
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
276
|
+
],
|
|
277
|
+
outputs: [{ name: "", type: "bool", internalType: "bool" }],
|
|
278
|
+
stateMutability: "nonpayable"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
type: "event",
|
|
282
|
+
name: "SetInputTokenAllowedStatus",
|
|
283
|
+
inputs: [
|
|
284
|
+
{
|
|
285
|
+
name: "token",
|
|
286
|
+
type: "address",
|
|
287
|
+
indexed: true,
|
|
288
|
+
internalType: "address"
|
|
289
|
+
},
|
|
290
|
+
{ name: "allowed", type: "bool", indexed: false, internalType: "bool" }
|
|
291
|
+
],
|
|
292
|
+
anonymous: false
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
type: "event",
|
|
296
|
+
name: "SetOutputTokenAllowedStatus",
|
|
297
|
+
inputs: [
|
|
298
|
+
{
|
|
299
|
+
name: "token",
|
|
300
|
+
type: "address",
|
|
301
|
+
indexed: true,
|
|
302
|
+
internalType: "address"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
name: "phantomToken",
|
|
306
|
+
type: "address",
|
|
307
|
+
indexed: true,
|
|
308
|
+
internalType: "address"
|
|
309
|
+
},
|
|
310
|
+
{ name: "allowed", type: "bool", indexed: false, internalType: "bool" }
|
|
311
|
+
],
|
|
312
|
+
anonymous: false
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
type: "error",
|
|
316
|
+
name: "AddressIsNotContractException",
|
|
317
|
+
inputs: [{ name: "", type: "address", internalType: "address" }]
|
|
318
|
+
},
|
|
319
|
+
{ type: "error", name: "CallerNotConfiguratorException", inputs: [] },
|
|
320
|
+
{ type: "error", name: "CallerNotCreditFacadeException", inputs: [] },
|
|
321
|
+
{ type: "error", name: "IncorrectArrayLengthException", inputs: [] },
|
|
322
|
+
{ type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] },
|
|
323
|
+
{ type: "error", name: "NotImplementedException", inputs: [] },
|
|
324
|
+
{ type: "error", name: "PhantomTokenTokenOutMismatchException", inputs: [] },
|
|
325
|
+
{ type: "error", name: "TokenNotAllowedException", inputs: [] },
|
|
326
|
+
{ type: "error", name: "ZeroAddressException", inputs: [] }
|
|
327
|
+
];
|
|
328
|
+
export {
|
|
329
|
+
iMidasGatewayAdapterAbi
|
|
330
|
+
};
|
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";
|