@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
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
export declare const iMidasGatewayAdapterAbi: readonly [{
|
|
2
|
+
readonly type: "function";
|
|
3
|
+
readonly name: "acl";
|
|
4
|
+
readonly inputs: readonly [];
|
|
5
|
+
readonly outputs: readonly [{
|
|
6
|
+
readonly name: "";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
readonly internalType: "address";
|
|
9
|
+
}];
|
|
10
|
+
readonly stateMutability: "view";
|
|
11
|
+
}, {
|
|
12
|
+
readonly type: "function";
|
|
13
|
+
readonly name: "allowedInputTokens";
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly outputs: readonly [{
|
|
16
|
+
readonly name: "";
|
|
17
|
+
readonly type: "address[]";
|
|
18
|
+
readonly internalType: "address[]";
|
|
19
|
+
}];
|
|
20
|
+
readonly stateMutability: "view";
|
|
21
|
+
}, {
|
|
22
|
+
readonly type: "function";
|
|
23
|
+
readonly name: "allowedOutputTokens";
|
|
24
|
+
readonly inputs: readonly [];
|
|
25
|
+
readonly outputs: readonly [{
|
|
26
|
+
readonly name: "";
|
|
27
|
+
readonly type: "address[]";
|
|
28
|
+
readonly internalType: "address[]";
|
|
29
|
+
}];
|
|
30
|
+
readonly stateMutability: "view";
|
|
31
|
+
}, {
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "allowedPhantomTokens";
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly name: "";
|
|
37
|
+
readonly type: "address[]";
|
|
38
|
+
readonly internalType: "address[]";
|
|
39
|
+
}];
|
|
40
|
+
readonly stateMutability: "view";
|
|
41
|
+
}, {
|
|
42
|
+
readonly type: "function";
|
|
43
|
+
readonly name: "contractType";
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly outputs: readonly [{
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "bytes32";
|
|
48
|
+
readonly internalType: "bytes32";
|
|
49
|
+
}];
|
|
50
|
+
readonly stateMutability: "view";
|
|
51
|
+
}, {
|
|
52
|
+
readonly type: "function";
|
|
53
|
+
readonly name: "creditManager";
|
|
54
|
+
readonly inputs: readonly [];
|
|
55
|
+
readonly outputs: readonly [{
|
|
56
|
+
readonly name: "";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
readonly internalType: "address";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "view";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "function";
|
|
63
|
+
readonly name: "depositInstant";
|
|
64
|
+
readonly inputs: readonly [{
|
|
65
|
+
readonly name: "tokenIn";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
readonly internalType: "address";
|
|
68
|
+
}, {
|
|
69
|
+
readonly name: "amountToken";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
}, {
|
|
73
|
+
readonly name: "minReceiveAmount";
|
|
74
|
+
readonly type: "uint256";
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
}, {
|
|
77
|
+
readonly name: "";
|
|
78
|
+
readonly type: "bytes32";
|
|
79
|
+
readonly internalType: "bytes32";
|
|
80
|
+
}];
|
|
81
|
+
readonly outputs: readonly [{
|
|
82
|
+
readonly name: "";
|
|
83
|
+
readonly type: "bool";
|
|
84
|
+
readonly internalType: "bool";
|
|
85
|
+
}];
|
|
86
|
+
readonly stateMutability: "nonpayable";
|
|
87
|
+
}, {
|
|
88
|
+
readonly type: "function";
|
|
89
|
+
readonly name: "depositInstantDiff";
|
|
90
|
+
readonly inputs: readonly [{
|
|
91
|
+
readonly name: "tokenIn";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "leftoverAmount";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "rateMinRAY";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
readonly internalType: "uint256";
|
|
102
|
+
}];
|
|
103
|
+
readonly outputs: readonly [{
|
|
104
|
+
readonly name: "";
|
|
105
|
+
readonly type: "bool";
|
|
106
|
+
readonly internalType: "bool";
|
|
107
|
+
}];
|
|
108
|
+
readonly stateMutability: "nonpayable";
|
|
109
|
+
}, {
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
readonly name: "depositPhantomToken";
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly name: "";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
readonly internalType: "address";
|
|
116
|
+
}, {
|
|
117
|
+
readonly name: "";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
}];
|
|
121
|
+
readonly outputs: readonly [{
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "bool";
|
|
124
|
+
readonly internalType: "bool";
|
|
125
|
+
}];
|
|
126
|
+
readonly stateMutability: "view";
|
|
127
|
+
}, {
|
|
128
|
+
readonly type: "function";
|
|
129
|
+
readonly name: "gateway";
|
|
130
|
+
readonly inputs: readonly [];
|
|
131
|
+
readonly outputs: readonly [{
|
|
132
|
+
readonly name: "";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
readonly internalType: "address";
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "function";
|
|
139
|
+
readonly name: "isInputTokenAllowed";
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "token";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
readonly internalType: "address";
|
|
144
|
+
}];
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly name: "";
|
|
147
|
+
readonly type: "bool";
|
|
148
|
+
readonly internalType: "bool";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
}, {
|
|
152
|
+
readonly type: "function";
|
|
153
|
+
readonly name: "isOutputTokenAllowed";
|
|
154
|
+
readonly inputs: readonly [{
|
|
155
|
+
readonly name: "token";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
readonly internalType: "address";
|
|
158
|
+
}];
|
|
159
|
+
readonly outputs: readonly [{
|
|
160
|
+
readonly name: "";
|
|
161
|
+
readonly type: "bool";
|
|
162
|
+
readonly internalType: "bool";
|
|
163
|
+
}];
|
|
164
|
+
readonly stateMutability: "view";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "function";
|
|
167
|
+
readonly name: "mToken";
|
|
168
|
+
readonly inputs: readonly [];
|
|
169
|
+
readonly outputs: readonly [{
|
|
170
|
+
readonly name: "";
|
|
171
|
+
readonly type: "address";
|
|
172
|
+
readonly internalType: "address";
|
|
173
|
+
}];
|
|
174
|
+
readonly stateMutability: "view";
|
|
175
|
+
}, {
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
readonly name: "outputTokenToPhantomToken";
|
|
178
|
+
readonly inputs: readonly [{
|
|
179
|
+
readonly name: "";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
readonly internalType: "address";
|
|
182
|
+
}];
|
|
183
|
+
readonly outputs: readonly [{
|
|
184
|
+
readonly name: "";
|
|
185
|
+
readonly type: "address";
|
|
186
|
+
readonly internalType: "address";
|
|
187
|
+
}];
|
|
188
|
+
readonly stateMutability: "view";
|
|
189
|
+
}, {
|
|
190
|
+
readonly type: "function";
|
|
191
|
+
readonly name: "phantomTokenToOutputToken";
|
|
192
|
+
readonly inputs: readonly [{
|
|
193
|
+
readonly name: "";
|
|
194
|
+
readonly type: "address";
|
|
195
|
+
readonly internalType: "address";
|
|
196
|
+
}];
|
|
197
|
+
readonly outputs: readonly [{
|
|
198
|
+
readonly name: "";
|
|
199
|
+
readonly type: "address";
|
|
200
|
+
readonly internalType: "address";
|
|
201
|
+
}];
|
|
202
|
+
readonly stateMutability: "view";
|
|
203
|
+
}, {
|
|
204
|
+
readonly type: "function";
|
|
205
|
+
readonly name: "redeemInstant";
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly name: "tokenOut";
|
|
208
|
+
readonly type: "address";
|
|
209
|
+
readonly internalType: "address";
|
|
210
|
+
}, {
|
|
211
|
+
readonly name: "amountMTokenIn";
|
|
212
|
+
readonly type: "uint256";
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "minReceiveAmount";
|
|
216
|
+
readonly type: "uint256";
|
|
217
|
+
readonly internalType: "uint256";
|
|
218
|
+
}];
|
|
219
|
+
readonly outputs: readonly [{
|
|
220
|
+
readonly name: "";
|
|
221
|
+
readonly type: "bool";
|
|
222
|
+
readonly internalType: "bool";
|
|
223
|
+
}];
|
|
224
|
+
readonly stateMutability: "nonpayable";
|
|
225
|
+
}, {
|
|
226
|
+
readonly type: "function";
|
|
227
|
+
readonly name: "redeemInstantDiff";
|
|
228
|
+
readonly inputs: readonly [{
|
|
229
|
+
readonly name: "tokenOut";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
readonly internalType: "address";
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "leftoverAmount";
|
|
234
|
+
readonly type: "uint256";
|
|
235
|
+
readonly internalType: "uint256";
|
|
236
|
+
}, {
|
|
237
|
+
readonly name: "rateMinRAY";
|
|
238
|
+
readonly type: "uint256";
|
|
239
|
+
readonly internalType: "uint256";
|
|
240
|
+
}];
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly name: "";
|
|
243
|
+
readonly type: "bool";
|
|
244
|
+
readonly internalType: "bool";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "nonpayable";
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
readonly name: "redeemRequest";
|
|
250
|
+
readonly inputs: readonly [{
|
|
251
|
+
readonly name: "tokenOut";
|
|
252
|
+
readonly type: "address";
|
|
253
|
+
readonly internalType: "address";
|
|
254
|
+
}, {
|
|
255
|
+
readonly name: "amountMTokenIn";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
readonly internalType: "uint256";
|
|
258
|
+
}, {
|
|
259
|
+
readonly name: "extraData";
|
|
260
|
+
readonly type: "bytes";
|
|
261
|
+
readonly internalType: "bytes";
|
|
262
|
+
}];
|
|
263
|
+
readonly outputs: readonly [{
|
|
264
|
+
readonly name: "";
|
|
265
|
+
readonly type: "bool";
|
|
266
|
+
readonly internalType: "bool";
|
|
267
|
+
}];
|
|
268
|
+
readonly stateMutability: "nonpayable";
|
|
269
|
+
}, {
|
|
270
|
+
readonly type: "function";
|
|
271
|
+
readonly name: "redeemRequest";
|
|
272
|
+
readonly inputs: readonly [{
|
|
273
|
+
readonly name: "tokenOut";
|
|
274
|
+
readonly type: "address";
|
|
275
|
+
readonly internalType: "address";
|
|
276
|
+
}, {
|
|
277
|
+
readonly name: "amountMTokenIn";
|
|
278
|
+
readonly type: "uint256";
|
|
279
|
+
readonly internalType: "uint256";
|
|
280
|
+
}];
|
|
281
|
+
readonly outputs: readonly [{
|
|
282
|
+
readonly name: "";
|
|
283
|
+
readonly type: "bool";
|
|
284
|
+
readonly internalType: "bool";
|
|
285
|
+
}];
|
|
286
|
+
readonly stateMutability: "nonpayable";
|
|
287
|
+
}, {
|
|
288
|
+
readonly type: "function";
|
|
289
|
+
readonly name: "redeemRequestDiff";
|
|
290
|
+
readonly inputs: readonly [{
|
|
291
|
+
readonly name: "tokenOut";
|
|
292
|
+
readonly type: "address";
|
|
293
|
+
readonly internalType: "address";
|
|
294
|
+
}, {
|
|
295
|
+
readonly name: "leftoverAmount";
|
|
296
|
+
readonly type: "uint256";
|
|
297
|
+
readonly internalType: "uint256";
|
|
298
|
+
}];
|
|
299
|
+
readonly outputs: readonly [{
|
|
300
|
+
readonly name: "";
|
|
301
|
+
readonly type: "bool";
|
|
302
|
+
readonly internalType: "bool";
|
|
303
|
+
}];
|
|
304
|
+
readonly stateMutability: "nonpayable";
|
|
305
|
+
}, {
|
|
306
|
+
readonly type: "function";
|
|
307
|
+
readonly name: "redeemRequestDiff";
|
|
308
|
+
readonly inputs: readonly [{
|
|
309
|
+
readonly name: "tokenOut";
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
readonly internalType: "address";
|
|
312
|
+
}, {
|
|
313
|
+
readonly name: "leftoverAmount";
|
|
314
|
+
readonly type: "uint256";
|
|
315
|
+
readonly internalType: "uint256";
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "extraData";
|
|
318
|
+
readonly type: "bytes";
|
|
319
|
+
readonly internalType: "bytes";
|
|
320
|
+
}];
|
|
321
|
+
readonly outputs: readonly [{
|
|
322
|
+
readonly name: "";
|
|
323
|
+
readonly type: "bool";
|
|
324
|
+
readonly internalType: "bool";
|
|
325
|
+
}];
|
|
326
|
+
readonly stateMutability: "nonpayable";
|
|
327
|
+
}, {
|
|
328
|
+
readonly type: "function";
|
|
329
|
+
readonly name: "referrerId";
|
|
330
|
+
readonly inputs: readonly [];
|
|
331
|
+
readonly outputs: readonly [{
|
|
332
|
+
readonly name: "";
|
|
333
|
+
readonly type: "bytes32";
|
|
334
|
+
readonly internalType: "bytes32";
|
|
335
|
+
}];
|
|
336
|
+
readonly stateMutability: "view";
|
|
337
|
+
}, {
|
|
338
|
+
readonly type: "function";
|
|
339
|
+
readonly name: "serialize";
|
|
340
|
+
readonly inputs: readonly [];
|
|
341
|
+
readonly outputs: readonly [{
|
|
342
|
+
readonly name: "serializedData";
|
|
343
|
+
readonly type: "bytes";
|
|
344
|
+
readonly internalType: "bytes";
|
|
345
|
+
}];
|
|
346
|
+
readonly stateMutability: "view";
|
|
347
|
+
}, {
|
|
348
|
+
readonly type: "function";
|
|
349
|
+
readonly name: "setInputTokenAllowedStatusBatch";
|
|
350
|
+
readonly inputs: readonly [{
|
|
351
|
+
readonly name: "tokens";
|
|
352
|
+
readonly type: "address[]";
|
|
353
|
+
readonly internalType: "address[]";
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "allowed";
|
|
356
|
+
readonly type: "bool[]";
|
|
357
|
+
readonly internalType: "bool[]";
|
|
358
|
+
}];
|
|
359
|
+
readonly outputs: readonly [];
|
|
360
|
+
readonly stateMutability: "nonpayable";
|
|
361
|
+
}, {
|
|
362
|
+
readonly type: "function";
|
|
363
|
+
readonly name: "setOutputTokenAllowedStatusBatch";
|
|
364
|
+
readonly inputs: readonly [{
|
|
365
|
+
readonly name: "configs";
|
|
366
|
+
readonly type: "tuple[]";
|
|
367
|
+
readonly internalType: "struct IMidasGatewayAdapter.MidasAllowedTokenStatus[]";
|
|
368
|
+
readonly components: readonly [{
|
|
369
|
+
readonly name: "token";
|
|
370
|
+
readonly type: "address";
|
|
371
|
+
readonly internalType: "address";
|
|
372
|
+
}, {
|
|
373
|
+
readonly name: "phantomToken";
|
|
374
|
+
readonly type: "address";
|
|
375
|
+
readonly internalType: "address";
|
|
376
|
+
}, {
|
|
377
|
+
readonly name: "allowed";
|
|
378
|
+
readonly type: "bool";
|
|
379
|
+
readonly internalType: "bool";
|
|
380
|
+
}];
|
|
381
|
+
}];
|
|
382
|
+
readonly outputs: readonly [];
|
|
383
|
+
readonly stateMutability: "nonpayable";
|
|
384
|
+
}, {
|
|
385
|
+
readonly type: "function";
|
|
386
|
+
readonly name: "targetContract";
|
|
387
|
+
readonly inputs: readonly [];
|
|
388
|
+
readonly outputs: readonly [{
|
|
389
|
+
readonly name: "";
|
|
390
|
+
readonly type: "address";
|
|
391
|
+
readonly internalType: "address";
|
|
392
|
+
}];
|
|
393
|
+
readonly stateMutability: "view";
|
|
394
|
+
}, {
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
readonly name: "transferRedeemer";
|
|
397
|
+
readonly inputs: readonly [{
|
|
398
|
+
readonly name: "redeemer";
|
|
399
|
+
readonly type: "address";
|
|
400
|
+
readonly internalType: "address";
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "newAccount";
|
|
403
|
+
readonly type: "address";
|
|
404
|
+
readonly internalType: "address";
|
|
405
|
+
}];
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly name: "";
|
|
408
|
+
readonly type: "bool";
|
|
409
|
+
readonly internalType: "bool";
|
|
410
|
+
}];
|
|
411
|
+
readonly stateMutability: "nonpayable";
|
|
412
|
+
}, {
|
|
413
|
+
readonly type: "function";
|
|
414
|
+
readonly name: "version";
|
|
415
|
+
readonly inputs: readonly [];
|
|
416
|
+
readonly outputs: readonly [{
|
|
417
|
+
readonly name: "";
|
|
418
|
+
readonly type: "uint256";
|
|
419
|
+
readonly internalType: "uint256";
|
|
420
|
+
}];
|
|
421
|
+
readonly stateMutability: "view";
|
|
422
|
+
}, {
|
|
423
|
+
readonly type: "function";
|
|
424
|
+
readonly name: "withdraw";
|
|
425
|
+
readonly inputs: readonly [{
|
|
426
|
+
readonly name: "tokenOut";
|
|
427
|
+
readonly type: "address";
|
|
428
|
+
readonly internalType: "address";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "amount";
|
|
431
|
+
readonly type: "uint256";
|
|
432
|
+
readonly internalType: "uint256";
|
|
433
|
+
}];
|
|
434
|
+
readonly outputs: readonly [{
|
|
435
|
+
readonly name: "";
|
|
436
|
+
readonly type: "bool";
|
|
437
|
+
readonly internalType: "bool";
|
|
438
|
+
}];
|
|
439
|
+
readonly stateMutability: "nonpayable";
|
|
440
|
+
}, {
|
|
441
|
+
readonly type: "function";
|
|
442
|
+
readonly name: "withdrawFromRedeemer";
|
|
443
|
+
readonly inputs: readonly [{
|
|
444
|
+
readonly name: "redeemer";
|
|
445
|
+
readonly type: "address";
|
|
446
|
+
readonly internalType: "address";
|
|
447
|
+
}, {
|
|
448
|
+
readonly name: "tokenOut";
|
|
449
|
+
readonly type: "address";
|
|
450
|
+
readonly internalType: "address";
|
|
451
|
+
}, {
|
|
452
|
+
readonly name: "amount";
|
|
453
|
+
readonly type: "uint256";
|
|
454
|
+
readonly internalType: "uint256";
|
|
455
|
+
}];
|
|
456
|
+
readonly outputs: readonly [{
|
|
457
|
+
readonly name: "";
|
|
458
|
+
readonly type: "bool";
|
|
459
|
+
readonly internalType: "bool";
|
|
460
|
+
}];
|
|
461
|
+
readonly stateMutability: "nonpayable";
|
|
462
|
+
}, {
|
|
463
|
+
readonly type: "function";
|
|
464
|
+
readonly name: "withdrawPhantomToken";
|
|
465
|
+
readonly inputs: readonly [{
|
|
466
|
+
readonly name: "token";
|
|
467
|
+
readonly type: "address";
|
|
468
|
+
readonly internalType: "address";
|
|
469
|
+
}, {
|
|
470
|
+
readonly name: "amount";
|
|
471
|
+
readonly type: "uint256";
|
|
472
|
+
readonly internalType: "uint256";
|
|
473
|
+
}];
|
|
474
|
+
readonly outputs: readonly [{
|
|
475
|
+
readonly name: "";
|
|
476
|
+
readonly type: "bool";
|
|
477
|
+
readonly internalType: "bool";
|
|
478
|
+
}];
|
|
479
|
+
readonly stateMutability: "nonpayable";
|
|
480
|
+
}, {
|
|
481
|
+
readonly type: "event";
|
|
482
|
+
readonly name: "SetInputTokenAllowedStatus";
|
|
483
|
+
readonly inputs: readonly [{
|
|
484
|
+
readonly name: "token";
|
|
485
|
+
readonly type: "address";
|
|
486
|
+
readonly indexed: true;
|
|
487
|
+
readonly internalType: "address";
|
|
488
|
+
}, {
|
|
489
|
+
readonly name: "allowed";
|
|
490
|
+
readonly type: "bool";
|
|
491
|
+
readonly indexed: false;
|
|
492
|
+
readonly internalType: "bool";
|
|
493
|
+
}];
|
|
494
|
+
readonly anonymous: false;
|
|
495
|
+
}, {
|
|
496
|
+
readonly type: "event";
|
|
497
|
+
readonly name: "SetOutputTokenAllowedStatus";
|
|
498
|
+
readonly inputs: readonly [{
|
|
499
|
+
readonly name: "token";
|
|
500
|
+
readonly type: "address";
|
|
501
|
+
readonly indexed: true;
|
|
502
|
+
readonly internalType: "address";
|
|
503
|
+
}, {
|
|
504
|
+
readonly name: "phantomToken";
|
|
505
|
+
readonly type: "address";
|
|
506
|
+
readonly indexed: true;
|
|
507
|
+
readonly internalType: "address";
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "allowed";
|
|
510
|
+
readonly type: "bool";
|
|
511
|
+
readonly indexed: false;
|
|
512
|
+
readonly internalType: "bool";
|
|
513
|
+
}];
|
|
514
|
+
readonly anonymous: false;
|
|
515
|
+
}, {
|
|
516
|
+
readonly type: "error";
|
|
517
|
+
readonly name: "AddressIsNotContractException";
|
|
518
|
+
readonly inputs: readonly [{
|
|
519
|
+
readonly name: "";
|
|
520
|
+
readonly type: "address";
|
|
521
|
+
readonly internalType: "address";
|
|
522
|
+
}];
|
|
523
|
+
}, {
|
|
524
|
+
readonly type: "error";
|
|
525
|
+
readonly name: "CallerNotConfiguratorException";
|
|
526
|
+
readonly inputs: readonly [];
|
|
527
|
+
}, {
|
|
528
|
+
readonly type: "error";
|
|
529
|
+
readonly name: "CallerNotCreditFacadeException";
|
|
530
|
+
readonly inputs: readonly [];
|
|
531
|
+
}, {
|
|
532
|
+
readonly type: "error";
|
|
533
|
+
readonly name: "IncorrectArrayLengthException";
|
|
534
|
+
readonly inputs: readonly [];
|
|
535
|
+
}, {
|
|
536
|
+
readonly type: "error";
|
|
537
|
+
readonly name: "IncorrectStakedPhantomTokenException";
|
|
538
|
+
readonly inputs: readonly [];
|
|
539
|
+
}, {
|
|
540
|
+
readonly type: "error";
|
|
541
|
+
readonly name: "NotImplementedException";
|
|
542
|
+
readonly inputs: readonly [];
|
|
543
|
+
}, {
|
|
544
|
+
readonly type: "error";
|
|
545
|
+
readonly name: "PhantomTokenTokenOutMismatchException";
|
|
546
|
+
readonly inputs: readonly [];
|
|
547
|
+
}, {
|
|
548
|
+
readonly type: "error";
|
|
549
|
+
readonly name: "TokenNotAllowedException";
|
|
550
|
+
readonly inputs: readonly [];
|
|
551
|
+
}, {
|
|
552
|
+
readonly type: "error";
|
|
553
|
+
readonly name: "ZeroAddressException";
|
|
554
|
+
readonly inputs: readonly [];
|
|
555
|
+
}];
|
package/dist/types/plugins/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.d.ts
CHANGED
|
@@ -4,6 +4,16 @@ import type { DelayedWithdrawalClaim, DelayedWithdrawalRequest } from "../types.
|
|
|
4
4
|
import type { ConcreteAdapterContractOptions } from "./AbstractAdapter.js";
|
|
5
5
|
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
6
6
|
declare const abi: readonly [{
|
|
7
|
+
readonly type: "function";
|
|
8
|
+
readonly name: "acl";
|
|
9
|
+
readonly inputs: readonly [];
|
|
10
|
+
readonly outputs: readonly [{
|
|
11
|
+
readonly name: "";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
readonly internalType: "address";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "view";
|
|
16
|
+
}, {
|
|
7
17
|
readonly type: "function";
|
|
8
18
|
readonly name: "claim";
|
|
9
19
|
readonly inputs: readonly [{
|
|
@@ -41,11 +51,11 @@ declare const abi: readonly [{
|
|
|
41
51
|
readonly type: "function";
|
|
42
52
|
readonly name: "depositPhantomToken";
|
|
43
53
|
readonly inputs: readonly [{
|
|
44
|
-
readonly name: "
|
|
54
|
+
readonly name: "";
|
|
45
55
|
readonly type: "address";
|
|
46
56
|
readonly internalType: "address";
|
|
47
57
|
}, {
|
|
48
|
-
readonly name: "
|
|
58
|
+
readonly name: "";
|
|
49
59
|
readonly type: "uint256";
|
|
50
60
|
readonly internalType: "uint256";
|
|
51
61
|
}];
|
|
@@ -54,7 +64,7 @@ declare const abi: readonly [{
|
|
|
54
64
|
readonly type: "bool";
|
|
55
65
|
readonly internalType: "bool";
|
|
56
66
|
}];
|
|
57
|
-
readonly stateMutability: "
|
|
67
|
+
readonly stateMutability: "view";
|
|
58
68
|
}, {
|
|
59
69
|
readonly type: "function";
|
|
60
70
|
readonly name: "dsToken";
|
|
@@ -201,20 +211,32 @@ declare const abi: readonly [{
|
|
|
201
211
|
readonly type: "function";
|
|
202
212
|
readonly name: "withdrawPhantomToken";
|
|
203
213
|
readonly inputs: readonly [{
|
|
204
|
-
readonly name: "
|
|
214
|
+
readonly name: "";
|
|
205
215
|
readonly type: "address";
|
|
206
216
|
readonly internalType: "address";
|
|
207
217
|
}, {
|
|
208
|
-
readonly name: "
|
|
218
|
+
readonly name: "";
|
|
209
219
|
readonly type: "uint256";
|
|
210
220
|
readonly internalType: "uint256";
|
|
211
221
|
}];
|
|
212
222
|
readonly outputs: readonly [{
|
|
213
|
-
readonly name: "
|
|
223
|
+
readonly name: "";
|
|
214
224
|
readonly type: "bool";
|
|
215
225
|
readonly internalType: "bool";
|
|
216
226
|
}];
|
|
217
|
-
readonly stateMutability: "
|
|
227
|
+
readonly stateMutability: "view";
|
|
228
|
+
}, {
|
|
229
|
+
readonly type: "error";
|
|
230
|
+
readonly name: "AddressIsNotContractException";
|
|
231
|
+
readonly inputs: readonly [{
|
|
232
|
+
readonly name: "";
|
|
233
|
+
readonly type: "address";
|
|
234
|
+
readonly internalType: "address";
|
|
235
|
+
}];
|
|
236
|
+
}, {
|
|
237
|
+
readonly type: "error";
|
|
238
|
+
readonly name: "CallerNotCreditFacadeException";
|
|
239
|
+
readonly inputs: readonly [];
|
|
218
240
|
}, {
|
|
219
241
|
readonly type: "error";
|
|
220
242
|
readonly name: "IncorrectStakedPhantomTokenException";
|
|
@@ -223,6 +245,14 @@ declare const abi: readonly [{
|
|
|
223
245
|
readonly type: "error";
|
|
224
246
|
readonly name: "InvalidRedemptionGatewayException";
|
|
225
247
|
readonly inputs: readonly [];
|
|
248
|
+
}, {
|
|
249
|
+
readonly type: "error";
|
|
250
|
+
readonly name: "NotImplementedException";
|
|
251
|
+
readonly inputs: readonly [];
|
|
252
|
+
}, {
|
|
253
|
+
readonly type: "error";
|
|
254
|
+
readonly name: "ZeroAddressException";
|
|
255
|
+
readonly inputs: readonly [];
|
|
226
256
|
}];
|
|
227
257
|
type abi = typeof abi;
|
|
228
258
|
declare const protocolAbi: readonly [{
|