@gearbox-protocol/sdk 18.2.0-next.1 → 18.2.0-next.2

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.
@@ -0,0 +1,533 @@
1
+ //#region src/abi/compressors/subcompressors/withdrawal/treehouseWithdrawalSubcompressor.ts
2
+ const treehouseWithdrawalSubcompressorAbi = [
3
+ {
4
+ type: "function",
5
+ name: "contractType",
6
+ inputs: [],
7
+ outputs: [{
8
+ name: "",
9
+ type: "bytes32",
10
+ internalType: "bytes32"
11
+ }],
12
+ stateMutability: "view"
13
+ },
14
+ {
15
+ type: "function",
16
+ name: "getCurrentWithdrawals",
17
+ inputs: [{
18
+ name: "creditAccount",
19
+ type: "address",
20
+ internalType: "address"
21
+ }, {
22
+ name: "token",
23
+ type: "address",
24
+ internalType: "address"
25
+ }],
26
+ outputs: [{
27
+ name: "",
28
+ type: "tuple[]",
29
+ internalType: "struct ClaimableWithdrawal[]",
30
+ components: [
31
+ {
32
+ name: "token",
33
+ type: "address",
34
+ internalType: "address"
35
+ },
36
+ {
37
+ name: "withdrawalPhantomToken",
38
+ type: "address",
39
+ internalType: "address"
40
+ },
41
+ {
42
+ name: "withdrawalTokenSpent",
43
+ type: "uint256",
44
+ internalType: "uint256"
45
+ },
46
+ {
47
+ name: "outputs",
48
+ type: "tuple[]",
49
+ internalType: "struct WithdrawalOutput[]",
50
+ components: [
51
+ {
52
+ name: "token",
53
+ type: "address",
54
+ internalType: "address"
55
+ },
56
+ {
57
+ name: "isDelayed",
58
+ type: "bool",
59
+ internalType: "bool"
60
+ },
61
+ {
62
+ name: "amount",
63
+ type: "uint256",
64
+ internalType: "uint256"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ name: "claimCalls",
70
+ type: "tuple[]",
71
+ internalType: "struct MultiCall[]",
72
+ components: [{
73
+ name: "target",
74
+ type: "address",
75
+ internalType: "address"
76
+ }, {
77
+ name: "callData",
78
+ type: "bytes",
79
+ internalType: "bytes"
80
+ }]
81
+ },
82
+ {
83
+ name: "redeemer",
84
+ type: "address",
85
+ internalType: "address"
86
+ },
87
+ {
88
+ name: "extraData",
89
+ type: "bytes",
90
+ internalType: "bytes"
91
+ }
92
+ ]
93
+ }, {
94
+ name: "",
95
+ type: "tuple[]",
96
+ internalType: "struct PendingWithdrawal[]",
97
+ components: [
98
+ {
99
+ name: "token",
100
+ type: "address",
101
+ internalType: "address"
102
+ },
103
+ {
104
+ name: "withdrawalPhantomToken",
105
+ type: "address",
106
+ internalType: "address"
107
+ },
108
+ {
109
+ name: "expectedOutputs",
110
+ type: "tuple[]",
111
+ internalType: "struct WithdrawalOutput[]",
112
+ components: [
113
+ {
114
+ name: "token",
115
+ type: "address",
116
+ internalType: "address"
117
+ },
118
+ {
119
+ name: "isDelayed",
120
+ type: "bool",
121
+ internalType: "bool"
122
+ },
123
+ {
124
+ name: "amount",
125
+ type: "uint256",
126
+ internalType: "uint256"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ name: "claimableAt",
132
+ type: "uint256",
133
+ internalType: "uint256"
134
+ },
135
+ {
136
+ name: "redeemer",
137
+ type: "address",
138
+ internalType: "address"
139
+ },
140
+ {
141
+ name: "extraData",
142
+ type: "bytes",
143
+ internalType: "bytes"
144
+ }
145
+ ]
146
+ }],
147
+ stateMutability: "view"
148
+ },
149
+ {
150
+ type: "function",
151
+ name: "getExternalAccountCurrentWithdrawals",
152
+ inputs: [{
153
+ name: "account",
154
+ type: "address",
155
+ internalType: "address"
156
+ }, {
157
+ name: "token",
158
+ type: "address",
159
+ internalType: "address"
160
+ }],
161
+ outputs: [{
162
+ name: "",
163
+ type: "tuple[]",
164
+ internalType: "struct ClaimableWithdrawal[]",
165
+ components: [
166
+ {
167
+ name: "token",
168
+ type: "address",
169
+ internalType: "address"
170
+ },
171
+ {
172
+ name: "withdrawalPhantomToken",
173
+ type: "address",
174
+ internalType: "address"
175
+ },
176
+ {
177
+ name: "withdrawalTokenSpent",
178
+ type: "uint256",
179
+ internalType: "uint256"
180
+ },
181
+ {
182
+ name: "outputs",
183
+ type: "tuple[]",
184
+ internalType: "struct WithdrawalOutput[]",
185
+ components: [
186
+ {
187
+ name: "token",
188
+ type: "address",
189
+ internalType: "address"
190
+ },
191
+ {
192
+ name: "isDelayed",
193
+ type: "bool",
194
+ internalType: "bool"
195
+ },
196
+ {
197
+ name: "amount",
198
+ type: "uint256",
199
+ internalType: "uint256"
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ name: "claimCalls",
205
+ type: "tuple[]",
206
+ internalType: "struct MultiCall[]",
207
+ components: [{
208
+ name: "target",
209
+ type: "address",
210
+ internalType: "address"
211
+ }, {
212
+ name: "callData",
213
+ type: "bytes",
214
+ internalType: "bytes"
215
+ }]
216
+ },
217
+ {
218
+ name: "redeemer",
219
+ type: "address",
220
+ internalType: "address"
221
+ },
222
+ {
223
+ name: "extraData",
224
+ type: "bytes",
225
+ internalType: "bytes"
226
+ }
227
+ ]
228
+ }, {
229
+ name: "",
230
+ type: "tuple[]",
231
+ internalType: "struct PendingWithdrawal[]",
232
+ components: [
233
+ {
234
+ name: "token",
235
+ type: "address",
236
+ internalType: "address"
237
+ },
238
+ {
239
+ name: "withdrawalPhantomToken",
240
+ type: "address",
241
+ internalType: "address"
242
+ },
243
+ {
244
+ name: "expectedOutputs",
245
+ type: "tuple[]",
246
+ internalType: "struct WithdrawalOutput[]",
247
+ components: [
248
+ {
249
+ name: "token",
250
+ type: "address",
251
+ internalType: "address"
252
+ },
253
+ {
254
+ name: "isDelayed",
255
+ type: "bool",
256
+ internalType: "bool"
257
+ },
258
+ {
259
+ name: "amount",
260
+ type: "uint256",
261
+ internalType: "uint256"
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ name: "claimableAt",
267
+ type: "uint256",
268
+ internalType: "uint256"
269
+ },
270
+ {
271
+ name: "redeemer",
272
+ type: "address",
273
+ internalType: "address"
274
+ },
275
+ {
276
+ name: "extraData",
277
+ type: "bytes",
278
+ internalType: "bytes"
279
+ }
280
+ ]
281
+ }],
282
+ stateMutability: "view"
283
+ },
284
+ {
285
+ type: "function",
286
+ name: "getWithdrawableAssets",
287
+ inputs: [{
288
+ name: "",
289
+ type: "address",
290
+ internalType: "address"
291
+ }, {
292
+ name: "token",
293
+ type: "address",
294
+ internalType: "address"
295
+ }],
296
+ outputs: [{
297
+ name: "",
298
+ type: "tuple[]",
299
+ internalType: "struct WithdrawableAsset[]",
300
+ components: [
301
+ {
302
+ name: "token",
303
+ type: "address",
304
+ internalType: "address"
305
+ },
306
+ {
307
+ name: "withdrawalPhantomToken",
308
+ type: "address",
309
+ internalType: "address"
310
+ },
311
+ {
312
+ name: "underlying",
313
+ type: "address",
314
+ internalType: "address"
315
+ },
316
+ {
317
+ name: "withdrawalLength",
318
+ type: "uint256",
319
+ internalType: "uint256"
320
+ },
321
+ {
322
+ name: "maxWithdrawals",
323
+ type: "uint256",
324
+ internalType: "uint256"
325
+ }
326
+ ]
327
+ }],
328
+ stateMutability: "view"
329
+ },
330
+ {
331
+ type: "function",
332
+ name: "getWithdrawalRequestResult",
333
+ inputs: [
334
+ {
335
+ name: "creditAccount",
336
+ type: "address",
337
+ internalType: "address"
338
+ },
339
+ {
340
+ name: "token",
341
+ type: "address",
342
+ internalType: "address"
343
+ },
344
+ {
345
+ name: "withdrawalToken",
346
+ type: "address",
347
+ internalType: "address"
348
+ },
349
+ {
350
+ name: "amount",
351
+ type: "uint256",
352
+ internalType: "uint256"
353
+ },
354
+ {
355
+ name: "extraData",
356
+ type: "bytes",
357
+ internalType: "bytes"
358
+ }
359
+ ],
360
+ outputs: [{
361
+ name: "requestableWithdrawal",
362
+ type: "tuple",
363
+ internalType: "struct RequestableWithdrawal",
364
+ components: [
365
+ {
366
+ name: "token",
367
+ type: "address",
368
+ internalType: "address"
369
+ },
370
+ {
371
+ name: "amountIn",
372
+ type: "uint256",
373
+ internalType: "uint256"
374
+ },
375
+ {
376
+ name: "outputs",
377
+ type: "tuple[]",
378
+ internalType: "struct WithdrawalOutput[]",
379
+ components: [
380
+ {
381
+ name: "token",
382
+ type: "address",
383
+ internalType: "address"
384
+ },
385
+ {
386
+ name: "isDelayed",
387
+ type: "bool",
388
+ internalType: "bool"
389
+ },
390
+ {
391
+ name: "amount",
392
+ type: "uint256",
393
+ internalType: "uint256"
394
+ }
395
+ ]
396
+ },
397
+ {
398
+ name: "requestCalls",
399
+ type: "tuple[]",
400
+ internalType: "struct MultiCall[]",
401
+ components: [{
402
+ name: "target",
403
+ type: "address",
404
+ internalType: "address"
405
+ }, {
406
+ name: "callData",
407
+ type: "bytes",
408
+ internalType: "bytes"
409
+ }]
410
+ },
411
+ {
412
+ name: "claimableAt",
413
+ type: "uint256",
414
+ internalType: "uint256"
415
+ }
416
+ ]
417
+ }],
418
+ stateMutability: "view"
419
+ },
420
+ {
421
+ type: "function",
422
+ name: "getWithdrawalRequestResult",
423
+ inputs: [
424
+ {
425
+ name: "creditAccount",
426
+ type: "address",
427
+ internalType: "address"
428
+ },
429
+ {
430
+ name: "token",
431
+ type: "address",
432
+ internalType: "address"
433
+ },
434
+ {
435
+ name: "withdrawalToken",
436
+ type: "address",
437
+ internalType: "address"
438
+ },
439
+ {
440
+ name: "amount",
441
+ type: "uint256",
442
+ internalType: "uint256"
443
+ }
444
+ ],
445
+ outputs: [{
446
+ name: "requestableWithdrawal",
447
+ type: "tuple",
448
+ internalType: "struct RequestableWithdrawal",
449
+ components: [
450
+ {
451
+ name: "token",
452
+ type: "address",
453
+ internalType: "address"
454
+ },
455
+ {
456
+ name: "amountIn",
457
+ type: "uint256",
458
+ internalType: "uint256"
459
+ },
460
+ {
461
+ name: "outputs",
462
+ type: "tuple[]",
463
+ internalType: "struct WithdrawalOutput[]",
464
+ components: [
465
+ {
466
+ name: "token",
467
+ type: "address",
468
+ internalType: "address"
469
+ },
470
+ {
471
+ name: "isDelayed",
472
+ type: "bool",
473
+ internalType: "bool"
474
+ },
475
+ {
476
+ name: "amount",
477
+ type: "uint256",
478
+ internalType: "uint256"
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ name: "requestCalls",
484
+ type: "tuple[]",
485
+ internalType: "struct MultiCall[]",
486
+ components: [{
487
+ name: "target",
488
+ type: "address",
489
+ internalType: "address"
490
+ }, {
491
+ name: "callData",
492
+ type: "bytes",
493
+ internalType: "bytes"
494
+ }]
495
+ },
496
+ {
497
+ name: "claimableAt",
498
+ type: "uint256",
499
+ internalType: "uint256"
500
+ }
501
+ ]
502
+ }],
503
+ stateMutability: "view"
504
+ },
505
+ {
506
+ type: "function",
507
+ name: "getWithdrawalStatus",
508
+ inputs: [{
509
+ name: "redeemer",
510
+ type: "address",
511
+ internalType: "address"
512
+ }],
513
+ outputs: [{
514
+ name: "",
515
+ type: "uint8",
516
+ internalType: "enum WithdrawalStatus"
517
+ }],
518
+ stateMutability: "view"
519
+ },
520
+ {
521
+ type: "function",
522
+ name: "version",
523
+ inputs: [],
524
+ outputs: [{
525
+ name: "",
526
+ type: "uint256",
527
+ internalType: "uint256"
528
+ }],
529
+ stateMutability: "view"
530
+ }
531
+ ];
532
+ //#endregion
533
+ export { treehouseWithdrawalSubcompressorAbi };