@gearbox-protocol/sdk 11.3.0 → 11.3.1
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/kelpLRTWithdrawalSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/subcompressors/mellowFlexibleDepositSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/subcompressors/mellowFlexibleRedeemSubcompressor.js +187 -0
- package/dist/cjs/abi/compressors/withdrawalCompressor.js +42 -0
- package/dist/esm/abi/compressors/subcompressors/kelpLRTWithdrawalSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/subcompressors/mellowFlexibleDepositSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/subcompressors/mellowFlexibleRedeemSubcompressor.js +163 -0
- package/dist/esm/abi/compressors/withdrawalCompressor.js +42 -0
- package/dist/types/abi/compressors/subcompressors/kelpLRTWithdrawalSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/subcompressors/mellowFlexibleDepositSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/subcompressors/mellowFlexibleRedeemSubcompressor.d.ts +220 -0
- package/dist/types/abi/compressors/withdrawalCompressor.d.ts +69 -0
- package/dist/types/permissionless/bindings/compressors/withdrawal-compressor.d.ts +69 -0
- package/package.json +1 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var kelpLRTWithdrawalSubcompressor_exports = {};
|
|
20
|
+
__export(kelpLRTWithdrawalSubcompressor_exports, {
|
|
21
|
+
kelpLRTWithdrawalSubcompressorAbi: () => kelpLRTWithdrawalSubcompressorAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(kelpLRTWithdrawalSubcompressor_exports);
|
|
24
|
+
const kelpLRTWithdrawalSubcompressorAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "contractType",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "getCurrentWithdrawals",
|
|
35
|
+
inputs: [
|
|
36
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
37
|
+
{ name: "token", type: "address", internalType: "address" }
|
|
38
|
+
],
|
|
39
|
+
outputs: [
|
|
40
|
+
{
|
|
41
|
+
name: "",
|
|
42
|
+
type: "tuple[]",
|
|
43
|
+
internalType: "struct ClaimableWithdrawal[]",
|
|
44
|
+
components: [
|
|
45
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
46
|
+
{
|
|
47
|
+
name: "withdrawalPhantomToken",
|
|
48
|
+
type: "address",
|
|
49
|
+
internalType: "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "withdrawalTokenSpent",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
internalType: "uint256"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "outputs",
|
|
58
|
+
type: "tuple[]",
|
|
59
|
+
internalType: "struct WithdrawalOutput[]",
|
|
60
|
+
components: [
|
|
61
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
62
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
63
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "claimCalls",
|
|
68
|
+
type: "tuple[]",
|
|
69
|
+
internalType: "struct MultiCall[]",
|
|
70
|
+
components: [
|
|
71
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
72
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "",
|
|
79
|
+
type: "tuple[]",
|
|
80
|
+
internalType: "struct PendingWithdrawal[]",
|
|
81
|
+
components: [
|
|
82
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
83
|
+
{
|
|
84
|
+
name: "withdrawalPhantomToken",
|
|
85
|
+
type: "address",
|
|
86
|
+
internalType: "address"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "expectedOutputs",
|
|
90
|
+
type: "tuple[]",
|
|
91
|
+
internalType: "struct WithdrawalOutput[]",
|
|
92
|
+
components: [
|
|
93
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
94
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
95
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: "function",
|
|
106
|
+
name: "getWithdrawableAssets",
|
|
107
|
+
inputs: [
|
|
108
|
+
{ name: "", type: "address", internalType: "address" },
|
|
109
|
+
{ name: "token", type: "address", internalType: "address" }
|
|
110
|
+
],
|
|
111
|
+
outputs: [
|
|
112
|
+
{
|
|
113
|
+
name: "",
|
|
114
|
+
type: "tuple[]",
|
|
115
|
+
internalType: "struct WithdrawableAsset[]",
|
|
116
|
+
components: [
|
|
117
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
118
|
+
{
|
|
119
|
+
name: "withdrawalPhantomToken",
|
|
120
|
+
type: "address",
|
|
121
|
+
internalType: "address"
|
|
122
|
+
},
|
|
123
|
+
{ name: "underlying", type: "address", internalType: "address" },
|
|
124
|
+
{
|
|
125
|
+
name: "withdrawalLength",
|
|
126
|
+
type: "uint256",
|
|
127
|
+
internalType: "uint256"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
stateMutability: "view"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "function",
|
|
136
|
+
name: "getWithdrawalRequestResult",
|
|
137
|
+
inputs: [
|
|
138
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
139
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
140
|
+
{ name: "withdrawalToken", type: "address", internalType: "address" },
|
|
141
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
142
|
+
],
|
|
143
|
+
outputs: [
|
|
144
|
+
{
|
|
145
|
+
name: "requestableWithdrawal",
|
|
146
|
+
type: "tuple",
|
|
147
|
+
internalType: "struct RequestableWithdrawal",
|
|
148
|
+
components: [
|
|
149
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
150
|
+
{ name: "amountIn", type: "uint256", internalType: "uint256" },
|
|
151
|
+
{
|
|
152
|
+
name: "outputs",
|
|
153
|
+
type: "tuple[]",
|
|
154
|
+
internalType: "struct WithdrawalOutput[]",
|
|
155
|
+
components: [
|
|
156
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
157
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
158
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "requestCalls",
|
|
163
|
+
type: "tuple[]",
|
|
164
|
+
internalType: "struct MultiCall[]",
|
|
165
|
+
components: [
|
|
166
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
167
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
type: "function",
|
|
178
|
+
name: "version",
|
|
179
|
+
inputs: [],
|
|
180
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
181
|
+
stateMutability: "view"
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
185
|
+
0 && (module.exports = {
|
|
186
|
+
kelpLRTWithdrawalSubcompressorAbi
|
|
187
|
+
});
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var mellowFlexibleDepositSubcompressor_exports = {};
|
|
20
|
+
__export(mellowFlexibleDepositSubcompressor_exports, {
|
|
21
|
+
mellowFlexibleDepositSubcompressorAbi: () => mellowFlexibleDepositSubcompressorAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(mellowFlexibleDepositSubcompressor_exports);
|
|
24
|
+
const mellowFlexibleDepositSubcompressorAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "contractType",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "getCurrentWithdrawals",
|
|
35
|
+
inputs: [
|
|
36
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
37
|
+
{ name: "token", type: "address", internalType: "address" }
|
|
38
|
+
],
|
|
39
|
+
outputs: [
|
|
40
|
+
{
|
|
41
|
+
name: "",
|
|
42
|
+
type: "tuple[]",
|
|
43
|
+
internalType: "struct ClaimableWithdrawal[]",
|
|
44
|
+
components: [
|
|
45
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
46
|
+
{
|
|
47
|
+
name: "withdrawalPhantomToken",
|
|
48
|
+
type: "address",
|
|
49
|
+
internalType: "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "withdrawalTokenSpent",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
internalType: "uint256"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "outputs",
|
|
58
|
+
type: "tuple[]",
|
|
59
|
+
internalType: "struct WithdrawalOutput[]",
|
|
60
|
+
components: [
|
|
61
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
62
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
63
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "claimCalls",
|
|
68
|
+
type: "tuple[]",
|
|
69
|
+
internalType: "struct MultiCall[]",
|
|
70
|
+
components: [
|
|
71
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
72
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "",
|
|
79
|
+
type: "tuple[]",
|
|
80
|
+
internalType: "struct PendingWithdrawal[]",
|
|
81
|
+
components: [
|
|
82
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
83
|
+
{
|
|
84
|
+
name: "withdrawalPhantomToken",
|
|
85
|
+
type: "address",
|
|
86
|
+
internalType: "address"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "expectedOutputs",
|
|
90
|
+
type: "tuple[]",
|
|
91
|
+
internalType: "struct WithdrawalOutput[]",
|
|
92
|
+
components: [
|
|
93
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
94
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
95
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: "function",
|
|
106
|
+
name: "getWithdrawableAssets",
|
|
107
|
+
inputs: [
|
|
108
|
+
{ name: "", type: "address", internalType: "address" },
|
|
109
|
+
{ name: "token", type: "address", internalType: "address" }
|
|
110
|
+
],
|
|
111
|
+
outputs: [
|
|
112
|
+
{
|
|
113
|
+
name: "",
|
|
114
|
+
type: "tuple[]",
|
|
115
|
+
internalType: "struct WithdrawableAsset[]",
|
|
116
|
+
components: [
|
|
117
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
118
|
+
{
|
|
119
|
+
name: "withdrawalPhantomToken",
|
|
120
|
+
type: "address",
|
|
121
|
+
internalType: "address"
|
|
122
|
+
},
|
|
123
|
+
{ name: "underlying", type: "address", internalType: "address" },
|
|
124
|
+
{
|
|
125
|
+
name: "withdrawalLength",
|
|
126
|
+
type: "uint256",
|
|
127
|
+
internalType: "uint256"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
stateMutability: "view"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "function",
|
|
136
|
+
name: "getWithdrawalRequestResult",
|
|
137
|
+
inputs: [
|
|
138
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
139
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
140
|
+
{ name: "withdrawalToken", type: "address", internalType: "address" },
|
|
141
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
142
|
+
],
|
|
143
|
+
outputs: [
|
|
144
|
+
{
|
|
145
|
+
name: "requestableWithdrawal",
|
|
146
|
+
type: "tuple",
|
|
147
|
+
internalType: "struct RequestableWithdrawal",
|
|
148
|
+
components: [
|
|
149
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
150
|
+
{ name: "amountIn", type: "uint256", internalType: "uint256" },
|
|
151
|
+
{
|
|
152
|
+
name: "outputs",
|
|
153
|
+
type: "tuple[]",
|
|
154
|
+
internalType: "struct WithdrawalOutput[]",
|
|
155
|
+
components: [
|
|
156
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
157
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
158
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "requestCalls",
|
|
163
|
+
type: "tuple[]",
|
|
164
|
+
internalType: "struct MultiCall[]",
|
|
165
|
+
components: [
|
|
166
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
167
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
type: "function",
|
|
178
|
+
name: "version",
|
|
179
|
+
inputs: [],
|
|
180
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
181
|
+
stateMutability: "view"
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
185
|
+
0 && (module.exports = {
|
|
186
|
+
mellowFlexibleDepositSubcompressorAbi
|
|
187
|
+
});
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var mellowFlexibleRedeemSubcompressor_exports = {};
|
|
20
|
+
__export(mellowFlexibleRedeemSubcompressor_exports, {
|
|
21
|
+
mellowFlexibleRedeemSubcompressorAbi: () => mellowFlexibleRedeemSubcompressorAbi
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(mellowFlexibleRedeemSubcompressor_exports);
|
|
24
|
+
const mellowFlexibleRedeemSubcompressorAbi = [
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "contractType",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
|
|
30
|
+
stateMutability: "view"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: "function",
|
|
34
|
+
name: "getCurrentWithdrawals",
|
|
35
|
+
inputs: [
|
|
36
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
37
|
+
{ name: "token", type: "address", internalType: "address" }
|
|
38
|
+
],
|
|
39
|
+
outputs: [
|
|
40
|
+
{
|
|
41
|
+
name: "",
|
|
42
|
+
type: "tuple[]",
|
|
43
|
+
internalType: "struct ClaimableWithdrawal[]",
|
|
44
|
+
components: [
|
|
45
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
46
|
+
{
|
|
47
|
+
name: "withdrawalPhantomToken",
|
|
48
|
+
type: "address",
|
|
49
|
+
internalType: "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "withdrawalTokenSpent",
|
|
53
|
+
type: "uint256",
|
|
54
|
+
internalType: "uint256"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "outputs",
|
|
58
|
+
type: "tuple[]",
|
|
59
|
+
internalType: "struct WithdrawalOutput[]",
|
|
60
|
+
components: [
|
|
61
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
62
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
63
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "claimCalls",
|
|
68
|
+
type: "tuple[]",
|
|
69
|
+
internalType: "struct MultiCall[]",
|
|
70
|
+
components: [
|
|
71
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
72
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "",
|
|
79
|
+
type: "tuple[]",
|
|
80
|
+
internalType: "struct PendingWithdrawal[]",
|
|
81
|
+
components: [
|
|
82
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
83
|
+
{
|
|
84
|
+
name: "withdrawalPhantomToken",
|
|
85
|
+
type: "address",
|
|
86
|
+
internalType: "address"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "expectedOutputs",
|
|
90
|
+
type: "tuple[]",
|
|
91
|
+
internalType: "struct WithdrawalOutput[]",
|
|
92
|
+
components: [
|
|
93
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
94
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
95
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: "function",
|
|
106
|
+
name: "getWithdrawableAssets",
|
|
107
|
+
inputs: [
|
|
108
|
+
{ name: "", type: "address", internalType: "address" },
|
|
109
|
+
{ name: "token", type: "address", internalType: "address" }
|
|
110
|
+
],
|
|
111
|
+
outputs: [
|
|
112
|
+
{
|
|
113
|
+
name: "",
|
|
114
|
+
type: "tuple[]",
|
|
115
|
+
internalType: "struct WithdrawableAsset[]",
|
|
116
|
+
components: [
|
|
117
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
118
|
+
{
|
|
119
|
+
name: "withdrawalPhantomToken",
|
|
120
|
+
type: "address",
|
|
121
|
+
internalType: "address"
|
|
122
|
+
},
|
|
123
|
+
{ name: "underlying", type: "address", internalType: "address" },
|
|
124
|
+
{
|
|
125
|
+
name: "withdrawalLength",
|
|
126
|
+
type: "uint256",
|
|
127
|
+
internalType: "uint256"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
stateMutability: "view"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
type: "function",
|
|
136
|
+
name: "getWithdrawalRequestResult",
|
|
137
|
+
inputs: [
|
|
138
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
139
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
140
|
+
{ name: "withdrawalToken", type: "address", internalType: "address" },
|
|
141
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
142
|
+
],
|
|
143
|
+
outputs: [
|
|
144
|
+
{
|
|
145
|
+
name: "requestableWithdrawal",
|
|
146
|
+
type: "tuple",
|
|
147
|
+
internalType: "struct RequestableWithdrawal",
|
|
148
|
+
components: [
|
|
149
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
150
|
+
{ name: "amountIn", type: "uint256", internalType: "uint256" },
|
|
151
|
+
{
|
|
152
|
+
name: "outputs",
|
|
153
|
+
type: "tuple[]",
|
|
154
|
+
internalType: "struct WithdrawalOutput[]",
|
|
155
|
+
components: [
|
|
156
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
157
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
158
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: "requestCalls",
|
|
163
|
+
type: "tuple[]",
|
|
164
|
+
internalType: "struct MultiCall[]",
|
|
165
|
+
components: [
|
|
166
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
167
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
type: "function",
|
|
178
|
+
name: "version",
|
|
179
|
+
inputs: [],
|
|
180
|
+
outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
|
|
181
|
+
stateMutability: "view"
|
|
182
|
+
}
|
|
183
|
+
];
|
|
184
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
185
|
+
0 && (module.exports = {
|
|
186
|
+
mellowFlexibleRedeemSubcompressorAbi
|
|
187
|
+
});
|
|
@@ -192,6 +192,48 @@ const withdrawalCompressorAbi = [
|
|
|
192
192
|
],
|
|
193
193
|
stateMutability: "view"
|
|
194
194
|
},
|
|
195
|
+
{
|
|
196
|
+
type: "function",
|
|
197
|
+
name: "getWithdrawalRequestResult",
|
|
198
|
+
inputs: [
|
|
199
|
+
{ name: "creditAccount", type: "address", internalType: "address" },
|
|
200
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
201
|
+
{ name: "withdrawalToken", type: "address", internalType: "address" },
|
|
202
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
203
|
+
],
|
|
204
|
+
outputs: [
|
|
205
|
+
{
|
|
206
|
+
name: "withdrawal",
|
|
207
|
+
type: "tuple",
|
|
208
|
+
internalType: "struct RequestableWithdrawal",
|
|
209
|
+
components: [
|
|
210
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
211
|
+
{ name: "amountIn", type: "uint256", internalType: "uint256" },
|
|
212
|
+
{
|
|
213
|
+
name: "outputs",
|
|
214
|
+
type: "tuple[]",
|
|
215
|
+
internalType: "struct WithdrawalOutput[]",
|
|
216
|
+
components: [
|
|
217
|
+
{ name: "token", type: "address", internalType: "address" },
|
|
218
|
+
{ name: "isDelayed", type: "bool", internalType: "bool" },
|
|
219
|
+
{ name: "amount", type: "uint256", internalType: "uint256" }
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "requestCalls",
|
|
224
|
+
type: "tuple[]",
|
|
225
|
+
internalType: "struct MultiCall[]",
|
|
226
|
+
components: [
|
|
227
|
+
{ name: "target", type: "address", internalType: "address" },
|
|
228
|
+
{ name: "callData", type: "bytes", internalType: "bytes" }
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
{ name: "claimableAt", type: "uint256", internalType: "uint256" }
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
stateMutability: "view"
|
|
236
|
+
},
|
|
195
237
|
{
|
|
196
238
|
type: "function",
|
|
197
239
|
name: "owner",
|