@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.
@@ -0,0 +1,163 @@
1
+ const kelpLRTWithdrawalSubcompressorAbi = [
2
+ {
3
+ type: "function",
4
+ name: "contractType",
5
+ inputs: [],
6
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
7
+ stateMutability: "view"
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "getCurrentWithdrawals",
12
+ inputs: [
13
+ { name: "creditAccount", type: "address", internalType: "address" },
14
+ { name: "token", type: "address", internalType: "address" }
15
+ ],
16
+ outputs: [
17
+ {
18
+ name: "",
19
+ type: "tuple[]",
20
+ internalType: "struct ClaimableWithdrawal[]",
21
+ components: [
22
+ { name: "token", type: "address", internalType: "address" },
23
+ {
24
+ name: "withdrawalPhantomToken",
25
+ type: "address",
26
+ internalType: "address"
27
+ },
28
+ {
29
+ name: "withdrawalTokenSpent",
30
+ type: "uint256",
31
+ internalType: "uint256"
32
+ },
33
+ {
34
+ name: "outputs",
35
+ type: "tuple[]",
36
+ internalType: "struct WithdrawalOutput[]",
37
+ components: [
38
+ { name: "token", type: "address", internalType: "address" },
39
+ { name: "isDelayed", type: "bool", internalType: "bool" },
40
+ { name: "amount", type: "uint256", internalType: "uint256" }
41
+ ]
42
+ },
43
+ {
44
+ name: "claimCalls",
45
+ type: "tuple[]",
46
+ internalType: "struct MultiCall[]",
47
+ components: [
48
+ { name: "target", type: "address", internalType: "address" },
49
+ { name: "callData", type: "bytes", internalType: "bytes" }
50
+ ]
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ name: "",
56
+ type: "tuple[]",
57
+ internalType: "struct PendingWithdrawal[]",
58
+ components: [
59
+ { name: "token", type: "address", internalType: "address" },
60
+ {
61
+ name: "withdrawalPhantomToken",
62
+ type: "address",
63
+ internalType: "address"
64
+ },
65
+ {
66
+ name: "expectedOutputs",
67
+ type: "tuple[]",
68
+ internalType: "struct WithdrawalOutput[]",
69
+ components: [
70
+ { name: "token", type: "address", internalType: "address" },
71
+ { name: "isDelayed", type: "bool", internalType: "bool" },
72
+ { name: "amount", type: "uint256", internalType: "uint256" }
73
+ ]
74
+ },
75
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
76
+ ]
77
+ }
78
+ ],
79
+ stateMutability: "view"
80
+ },
81
+ {
82
+ type: "function",
83
+ name: "getWithdrawableAssets",
84
+ inputs: [
85
+ { name: "", type: "address", internalType: "address" },
86
+ { name: "token", type: "address", internalType: "address" }
87
+ ],
88
+ outputs: [
89
+ {
90
+ name: "",
91
+ type: "tuple[]",
92
+ internalType: "struct WithdrawableAsset[]",
93
+ components: [
94
+ { name: "token", type: "address", internalType: "address" },
95
+ {
96
+ name: "withdrawalPhantomToken",
97
+ type: "address",
98
+ internalType: "address"
99
+ },
100
+ { name: "underlying", type: "address", internalType: "address" },
101
+ {
102
+ name: "withdrawalLength",
103
+ type: "uint256",
104
+ internalType: "uint256"
105
+ }
106
+ ]
107
+ }
108
+ ],
109
+ stateMutability: "view"
110
+ },
111
+ {
112
+ type: "function",
113
+ name: "getWithdrawalRequestResult",
114
+ inputs: [
115
+ { name: "creditAccount", type: "address", internalType: "address" },
116
+ { name: "token", type: "address", internalType: "address" },
117
+ { name: "withdrawalToken", type: "address", internalType: "address" },
118
+ { name: "amount", type: "uint256", internalType: "uint256" }
119
+ ],
120
+ outputs: [
121
+ {
122
+ name: "requestableWithdrawal",
123
+ type: "tuple",
124
+ internalType: "struct RequestableWithdrawal",
125
+ components: [
126
+ { name: "token", type: "address", internalType: "address" },
127
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
128
+ {
129
+ name: "outputs",
130
+ type: "tuple[]",
131
+ internalType: "struct WithdrawalOutput[]",
132
+ components: [
133
+ { name: "token", type: "address", internalType: "address" },
134
+ { name: "isDelayed", type: "bool", internalType: "bool" },
135
+ { name: "amount", type: "uint256", internalType: "uint256" }
136
+ ]
137
+ },
138
+ {
139
+ name: "requestCalls",
140
+ type: "tuple[]",
141
+ internalType: "struct MultiCall[]",
142
+ components: [
143
+ { name: "target", type: "address", internalType: "address" },
144
+ { name: "callData", type: "bytes", internalType: "bytes" }
145
+ ]
146
+ },
147
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
148
+ ]
149
+ }
150
+ ],
151
+ stateMutability: "view"
152
+ },
153
+ {
154
+ type: "function",
155
+ name: "version",
156
+ inputs: [],
157
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
158
+ stateMutability: "view"
159
+ }
160
+ ];
161
+ export {
162
+ kelpLRTWithdrawalSubcompressorAbi
163
+ };
@@ -0,0 +1,163 @@
1
+ const mellowFlexibleDepositSubcompressorAbi = [
2
+ {
3
+ type: "function",
4
+ name: "contractType",
5
+ inputs: [],
6
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
7
+ stateMutability: "view"
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "getCurrentWithdrawals",
12
+ inputs: [
13
+ { name: "creditAccount", type: "address", internalType: "address" },
14
+ { name: "token", type: "address", internalType: "address" }
15
+ ],
16
+ outputs: [
17
+ {
18
+ name: "",
19
+ type: "tuple[]",
20
+ internalType: "struct ClaimableWithdrawal[]",
21
+ components: [
22
+ { name: "token", type: "address", internalType: "address" },
23
+ {
24
+ name: "withdrawalPhantomToken",
25
+ type: "address",
26
+ internalType: "address"
27
+ },
28
+ {
29
+ name: "withdrawalTokenSpent",
30
+ type: "uint256",
31
+ internalType: "uint256"
32
+ },
33
+ {
34
+ name: "outputs",
35
+ type: "tuple[]",
36
+ internalType: "struct WithdrawalOutput[]",
37
+ components: [
38
+ { name: "token", type: "address", internalType: "address" },
39
+ { name: "isDelayed", type: "bool", internalType: "bool" },
40
+ { name: "amount", type: "uint256", internalType: "uint256" }
41
+ ]
42
+ },
43
+ {
44
+ name: "claimCalls",
45
+ type: "tuple[]",
46
+ internalType: "struct MultiCall[]",
47
+ components: [
48
+ { name: "target", type: "address", internalType: "address" },
49
+ { name: "callData", type: "bytes", internalType: "bytes" }
50
+ ]
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ name: "",
56
+ type: "tuple[]",
57
+ internalType: "struct PendingWithdrawal[]",
58
+ components: [
59
+ { name: "token", type: "address", internalType: "address" },
60
+ {
61
+ name: "withdrawalPhantomToken",
62
+ type: "address",
63
+ internalType: "address"
64
+ },
65
+ {
66
+ name: "expectedOutputs",
67
+ type: "tuple[]",
68
+ internalType: "struct WithdrawalOutput[]",
69
+ components: [
70
+ { name: "token", type: "address", internalType: "address" },
71
+ { name: "isDelayed", type: "bool", internalType: "bool" },
72
+ { name: "amount", type: "uint256", internalType: "uint256" }
73
+ ]
74
+ },
75
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
76
+ ]
77
+ }
78
+ ],
79
+ stateMutability: "view"
80
+ },
81
+ {
82
+ type: "function",
83
+ name: "getWithdrawableAssets",
84
+ inputs: [
85
+ { name: "", type: "address", internalType: "address" },
86
+ { name: "token", type: "address", internalType: "address" }
87
+ ],
88
+ outputs: [
89
+ {
90
+ name: "",
91
+ type: "tuple[]",
92
+ internalType: "struct WithdrawableAsset[]",
93
+ components: [
94
+ { name: "token", type: "address", internalType: "address" },
95
+ {
96
+ name: "withdrawalPhantomToken",
97
+ type: "address",
98
+ internalType: "address"
99
+ },
100
+ { name: "underlying", type: "address", internalType: "address" },
101
+ {
102
+ name: "withdrawalLength",
103
+ type: "uint256",
104
+ internalType: "uint256"
105
+ }
106
+ ]
107
+ }
108
+ ],
109
+ stateMutability: "view"
110
+ },
111
+ {
112
+ type: "function",
113
+ name: "getWithdrawalRequestResult",
114
+ inputs: [
115
+ { name: "creditAccount", type: "address", internalType: "address" },
116
+ { name: "token", type: "address", internalType: "address" },
117
+ { name: "withdrawalToken", type: "address", internalType: "address" },
118
+ { name: "amount", type: "uint256", internalType: "uint256" }
119
+ ],
120
+ outputs: [
121
+ {
122
+ name: "requestableWithdrawal",
123
+ type: "tuple",
124
+ internalType: "struct RequestableWithdrawal",
125
+ components: [
126
+ { name: "token", type: "address", internalType: "address" },
127
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
128
+ {
129
+ name: "outputs",
130
+ type: "tuple[]",
131
+ internalType: "struct WithdrawalOutput[]",
132
+ components: [
133
+ { name: "token", type: "address", internalType: "address" },
134
+ { name: "isDelayed", type: "bool", internalType: "bool" },
135
+ { name: "amount", type: "uint256", internalType: "uint256" }
136
+ ]
137
+ },
138
+ {
139
+ name: "requestCalls",
140
+ type: "tuple[]",
141
+ internalType: "struct MultiCall[]",
142
+ components: [
143
+ { name: "target", type: "address", internalType: "address" },
144
+ { name: "callData", type: "bytes", internalType: "bytes" }
145
+ ]
146
+ },
147
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
148
+ ]
149
+ }
150
+ ],
151
+ stateMutability: "view"
152
+ },
153
+ {
154
+ type: "function",
155
+ name: "version",
156
+ inputs: [],
157
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
158
+ stateMutability: "view"
159
+ }
160
+ ];
161
+ export {
162
+ mellowFlexibleDepositSubcompressorAbi
163
+ };
@@ -0,0 +1,163 @@
1
+ const mellowFlexibleRedeemSubcompressorAbi = [
2
+ {
3
+ type: "function",
4
+ name: "contractType",
5
+ inputs: [],
6
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
7
+ stateMutability: "view"
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "getCurrentWithdrawals",
12
+ inputs: [
13
+ { name: "creditAccount", type: "address", internalType: "address" },
14
+ { name: "token", type: "address", internalType: "address" }
15
+ ],
16
+ outputs: [
17
+ {
18
+ name: "",
19
+ type: "tuple[]",
20
+ internalType: "struct ClaimableWithdrawal[]",
21
+ components: [
22
+ { name: "token", type: "address", internalType: "address" },
23
+ {
24
+ name: "withdrawalPhantomToken",
25
+ type: "address",
26
+ internalType: "address"
27
+ },
28
+ {
29
+ name: "withdrawalTokenSpent",
30
+ type: "uint256",
31
+ internalType: "uint256"
32
+ },
33
+ {
34
+ name: "outputs",
35
+ type: "tuple[]",
36
+ internalType: "struct WithdrawalOutput[]",
37
+ components: [
38
+ { name: "token", type: "address", internalType: "address" },
39
+ { name: "isDelayed", type: "bool", internalType: "bool" },
40
+ { name: "amount", type: "uint256", internalType: "uint256" }
41
+ ]
42
+ },
43
+ {
44
+ name: "claimCalls",
45
+ type: "tuple[]",
46
+ internalType: "struct MultiCall[]",
47
+ components: [
48
+ { name: "target", type: "address", internalType: "address" },
49
+ { name: "callData", type: "bytes", internalType: "bytes" }
50
+ ]
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ name: "",
56
+ type: "tuple[]",
57
+ internalType: "struct PendingWithdrawal[]",
58
+ components: [
59
+ { name: "token", type: "address", internalType: "address" },
60
+ {
61
+ name: "withdrawalPhantomToken",
62
+ type: "address",
63
+ internalType: "address"
64
+ },
65
+ {
66
+ name: "expectedOutputs",
67
+ type: "tuple[]",
68
+ internalType: "struct WithdrawalOutput[]",
69
+ components: [
70
+ { name: "token", type: "address", internalType: "address" },
71
+ { name: "isDelayed", type: "bool", internalType: "bool" },
72
+ { name: "amount", type: "uint256", internalType: "uint256" }
73
+ ]
74
+ },
75
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
76
+ ]
77
+ }
78
+ ],
79
+ stateMutability: "view"
80
+ },
81
+ {
82
+ type: "function",
83
+ name: "getWithdrawableAssets",
84
+ inputs: [
85
+ { name: "", type: "address", internalType: "address" },
86
+ { name: "token", type: "address", internalType: "address" }
87
+ ],
88
+ outputs: [
89
+ {
90
+ name: "",
91
+ type: "tuple[]",
92
+ internalType: "struct WithdrawableAsset[]",
93
+ components: [
94
+ { name: "token", type: "address", internalType: "address" },
95
+ {
96
+ name: "withdrawalPhantomToken",
97
+ type: "address",
98
+ internalType: "address"
99
+ },
100
+ { name: "underlying", type: "address", internalType: "address" },
101
+ {
102
+ name: "withdrawalLength",
103
+ type: "uint256",
104
+ internalType: "uint256"
105
+ }
106
+ ]
107
+ }
108
+ ],
109
+ stateMutability: "view"
110
+ },
111
+ {
112
+ type: "function",
113
+ name: "getWithdrawalRequestResult",
114
+ inputs: [
115
+ { name: "creditAccount", type: "address", internalType: "address" },
116
+ { name: "token", type: "address", internalType: "address" },
117
+ { name: "withdrawalToken", type: "address", internalType: "address" },
118
+ { name: "amount", type: "uint256", internalType: "uint256" }
119
+ ],
120
+ outputs: [
121
+ {
122
+ name: "requestableWithdrawal",
123
+ type: "tuple",
124
+ internalType: "struct RequestableWithdrawal",
125
+ components: [
126
+ { name: "token", type: "address", internalType: "address" },
127
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
128
+ {
129
+ name: "outputs",
130
+ type: "tuple[]",
131
+ internalType: "struct WithdrawalOutput[]",
132
+ components: [
133
+ { name: "token", type: "address", internalType: "address" },
134
+ { name: "isDelayed", type: "bool", internalType: "bool" },
135
+ { name: "amount", type: "uint256", internalType: "uint256" }
136
+ ]
137
+ },
138
+ {
139
+ name: "requestCalls",
140
+ type: "tuple[]",
141
+ internalType: "struct MultiCall[]",
142
+ components: [
143
+ { name: "target", type: "address", internalType: "address" },
144
+ { name: "callData", type: "bytes", internalType: "bytes" }
145
+ ]
146
+ },
147
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
148
+ ]
149
+ }
150
+ ],
151
+ stateMutability: "view"
152
+ },
153
+ {
154
+ type: "function",
155
+ name: "version",
156
+ inputs: [],
157
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
158
+ stateMutability: "view"
159
+ }
160
+ ];
161
+ export {
162
+ mellowFlexibleRedeemSubcompressorAbi
163
+ };
@@ -169,6 +169,48 @@ const withdrawalCompressorAbi = [
169
169
  ],
170
170
  stateMutability: "view"
171
171
  },
172
+ {
173
+ type: "function",
174
+ name: "getWithdrawalRequestResult",
175
+ inputs: [
176
+ { name: "creditAccount", type: "address", internalType: "address" },
177
+ { name: "token", type: "address", internalType: "address" },
178
+ { name: "withdrawalToken", type: "address", internalType: "address" },
179
+ { name: "amount", type: "uint256", internalType: "uint256" }
180
+ ],
181
+ outputs: [
182
+ {
183
+ name: "withdrawal",
184
+ type: "tuple",
185
+ internalType: "struct RequestableWithdrawal",
186
+ components: [
187
+ { name: "token", type: "address", internalType: "address" },
188
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
189
+ {
190
+ name: "outputs",
191
+ type: "tuple[]",
192
+ internalType: "struct WithdrawalOutput[]",
193
+ components: [
194
+ { name: "token", type: "address", internalType: "address" },
195
+ { name: "isDelayed", type: "bool", internalType: "bool" },
196
+ { name: "amount", type: "uint256", internalType: "uint256" }
197
+ ]
198
+ },
199
+ {
200
+ name: "requestCalls",
201
+ type: "tuple[]",
202
+ internalType: "struct MultiCall[]",
203
+ components: [
204
+ { name: "target", type: "address", internalType: "address" },
205
+ { name: "callData", type: "bytes", internalType: "bytes" }
206
+ ]
207
+ },
208
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
209
+ ]
210
+ }
211
+ ],
212
+ stateMutability: "view"
213
+ },
172
214
  {
173
215
  type: "function",
174
216
  name: "owner",