@gearbox-protocol/sdk 14.11.4 → 14.11.6

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.
@@ -71,7 +71,8 @@ const mellowWithdrawalSubcompressorAbi = [
71
71
  { name: "target", type: "address", internalType: "address" },
72
72
  { name: "callData", type: "bytes", internalType: "bytes" }
73
73
  ]
74
- }
74
+ },
75
+ { name: "extraData", type: "bytes", internalType: "bytes" }
75
76
  ]
76
77
  },
77
78
  {
@@ -132,6 +133,49 @@ const mellowWithdrawalSubcompressorAbi = [
132
133
  ],
133
134
  stateMutability: "view"
134
135
  },
136
+ {
137
+ type: "function",
138
+ name: "getWithdrawalRequestResult",
139
+ inputs: [
140
+ { name: "creditAccount", type: "address", internalType: "address" },
141
+ { name: "token", type: "address", internalType: "address" },
142
+ { name: "withdrawalToken", type: "address", internalType: "address" },
143
+ { name: "amount", type: "uint256", internalType: "uint256" },
144
+ { name: "", type: "bytes", internalType: "bytes" }
145
+ ],
146
+ outputs: [
147
+ {
148
+ name: "requestableWithdrawal",
149
+ type: "tuple",
150
+ internalType: "struct RequestableWithdrawal",
151
+ components: [
152
+ { name: "token", type: "address", internalType: "address" },
153
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
154
+ {
155
+ name: "outputs",
156
+ type: "tuple[]",
157
+ internalType: "struct WithdrawalOutput[]",
158
+ components: [
159
+ { name: "token", type: "address", internalType: "address" },
160
+ { name: "isDelayed", type: "bool", internalType: "bool" },
161
+ { name: "amount", type: "uint256", internalType: "uint256" }
162
+ ]
163
+ },
164
+ {
165
+ name: "requestCalls",
166
+ type: "tuple[]",
167
+ internalType: "struct MultiCall[]",
168
+ components: [
169
+ { name: "target", type: "address", internalType: "address" },
170
+ { name: "callData", type: "bytes", internalType: "bytes" }
171
+ ]
172
+ },
173
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
174
+ ]
175
+ }
176
+ ],
177
+ stateMutability: "view"
178
+ },
135
179
  {
136
180
  type: "function",
137
181
  name: "getWithdrawalRequestResult",
@@ -71,7 +71,8 @@ const midasWithdrawalSubcompressorAbi = [
71
71
  { name: "target", type: "address", internalType: "address" },
72
72
  { name: "callData", type: "bytes", internalType: "bytes" }
73
73
  ]
74
- }
74
+ },
75
+ { name: "extraData", type: "bytes", internalType: "bytes" }
75
76
  ]
76
77
  },
77
78
  {
@@ -132,6 +133,49 @@ const midasWithdrawalSubcompressorAbi = [
132
133
  ],
133
134
  stateMutability: "view"
134
135
  },
136
+ {
137
+ type: "function",
138
+ name: "getWithdrawalRequestResult",
139
+ inputs: [
140
+ { name: "creditAccount", type: "address", internalType: "address" },
141
+ { name: "token", type: "address", internalType: "address" },
142
+ { name: "withdrawalToken", type: "address", internalType: "address" },
143
+ { name: "amount", type: "uint256", internalType: "uint256" },
144
+ { name: "extraData", type: "bytes", internalType: "bytes" }
145
+ ],
146
+ outputs: [
147
+ {
148
+ name: "requestableWithdrawal",
149
+ type: "tuple",
150
+ internalType: "struct RequestableWithdrawal",
151
+ components: [
152
+ { name: "token", type: "address", internalType: "address" },
153
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
154
+ {
155
+ name: "outputs",
156
+ type: "tuple[]",
157
+ internalType: "struct WithdrawalOutput[]",
158
+ components: [
159
+ { name: "token", type: "address", internalType: "address" },
160
+ { name: "isDelayed", type: "bool", internalType: "bool" },
161
+ { name: "amount", type: "uint256", internalType: "uint256" }
162
+ ]
163
+ },
164
+ {
165
+ name: "requestCalls",
166
+ type: "tuple[]",
167
+ internalType: "struct MultiCall[]",
168
+ components: [
169
+ { name: "target", type: "address", internalType: "address" },
170
+ { name: "callData", type: "bytes", internalType: "bytes" }
171
+ ]
172
+ },
173
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
174
+ ]
175
+ }
176
+ ],
177
+ stateMutability: "view"
178
+ },
135
179
  {
136
180
  type: "function",
137
181
  name: "getWithdrawalRequestResult",
@@ -71,7 +71,8 @@ const securitizeRedemptionSubcompressorAbi = [
71
71
  { name: "target", type: "address", internalType: "address" },
72
72
  { name: "callData", type: "bytes", internalType: "bytes" }
73
73
  ]
74
- }
74
+ },
75
+ { name: "extraData", type: "bytes", internalType: "bytes" }
75
76
  ]
76
77
  },
77
78
  {
@@ -132,6 +133,49 @@ const securitizeRedemptionSubcompressorAbi = [
132
133
  ],
133
134
  stateMutability: "view"
134
135
  },
136
+ {
137
+ type: "function",
138
+ name: "getWithdrawalRequestResult",
139
+ inputs: [
140
+ { name: "creditAccount", type: "address", internalType: "address" },
141
+ { name: "token", type: "address", internalType: "address" },
142
+ { name: "withdrawalToken", type: "address", internalType: "address" },
143
+ { name: "amount", type: "uint256", internalType: "uint256" },
144
+ { name: "extraData", type: "bytes", internalType: "bytes" }
145
+ ],
146
+ outputs: [
147
+ {
148
+ name: "requestableWithdrawal",
149
+ type: "tuple",
150
+ internalType: "struct RequestableWithdrawal",
151
+ components: [
152
+ { name: "token", type: "address", internalType: "address" },
153
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
154
+ {
155
+ name: "outputs",
156
+ type: "tuple[]",
157
+ internalType: "struct WithdrawalOutput[]",
158
+ components: [
159
+ { name: "token", type: "address", internalType: "address" },
160
+ { name: "isDelayed", type: "bool", internalType: "bool" },
161
+ { name: "amount", type: "uint256", internalType: "uint256" }
162
+ ]
163
+ },
164
+ {
165
+ name: "requestCalls",
166
+ type: "tuple[]",
167
+ internalType: "struct MultiCall[]",
168
+ components: [
169
+ { name: "target", type: "address", internalType: "address" },
170
+ { name: "callData", type: "bytes", internalType: "bytes" }
171
+ ]
172
+ },
173
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
174
+ ]
175
+ }
176
+ ],
177
+ stateMutability: "view"
178
+ },
135
179
  {
136
180
  type: "function",
137
181
  name: "getWithdrawalRequestResult",
@@ -92,7 +92,8 @@ const withdrawalCompressorAbi = [
92
92
  { name: "target", type: "address", internalType: "address" },
93
93
  { name: "callData", type: "bytes", internalType: "bytes" }
94
94
  ]
95
- }
95
+ },
96
+ { name: "extraData", type: "bytes", internalType: "bytes" }
96
97
  ]
97
98
  },
98
99
  {
@@ -152,6 +153,49 @@ const withdrawalCompressorAbi = [
152
153
  ],
153
154
  stateMutability: "view"
154
155
  },
156
+ {
157
+ type: "function",
158
+ name: "getWithdrawalRequestResult",
159
+ inputs: [
160
+ { name: "creditAccount", type: "address", internalType: "address" },
161
+ { name: "token", type: "address", internalType: "address" },
162
+ { name: "withdrawalToken", type: "address", internalType: "address" },
163
+ { name: "amount", type: "uint256", internalType: "uint256" },
164
+ { name: "extraData", type: "bytes", internalType: "bytes" }
165
+ ],
166
+ outputs: [
167
+ {
168
+ name: "withdrawal",
169
+ type: "tuple",
170
+ internalType: "struct RequestableWithdrawal",
171
+ components: [
172
+ { name: "token", type: "address", internalType: "address" },
173
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
174
+ {
175
+ name: "outputs",
176
+ type: "tuple[]",
177
+ internalType: "struct WithdrawalOutput[]",
178
+ components: [
179
+ { name: "token", type: "address", internalType: "address" },
180
+ { name: "isDelayed", type: "bool", internalType: "bool" },
181
+ { name: "amount", type: "uint256", internalType: "uint256" }
182
+ ]
183
+ },
184
+ {
185
+ name: "requestCalls",
186
+ type: "tuple[]",
187
+ internalType: "struct MultiCall[]",
188
+ components: [
189
+ { name: "target", type: "address", internalType: "address" },
190
+ { name: "callData", type: "bytes", internalType: "bytes" }
191
+ ]
192
+ },
193
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
194
+ ]
195
+ }
196
+ ],
197
+ stateMutability: "view"
198
+ },
155
199
  {
156
200
  type: "function",
157
201
  name: "getWithdrawalRequestResult",
@@ -0,0 +1,160 @@
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 redemptionLogger_exports = {};
20
+ __export(redemptionLogger_exports, {
21
+ redemptionLoggerAbi: () => redemptionLoggerAbi
22
+ });
23
+ module.exports = __toCommonJS(redemptionLogger_exports);
24
+ const redemptionLoggerAbi = [
25
+ {
26
+ type: "constructor",
27
+ inputs: [{ name: "_owner", type: "address", internalType: "address" }],
28
+ stateMutability: "nonpayable"
29
+ },
30
+ {
31
+ type: "function",
32
+ name: "allowedGateways",
33
+ inputs: [{ name: "", type: "address", internalType: "address" }],
34
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
35
+ stateMutability: "view"
36
+ },
37
+ {
38
+ type: "function",
39
+ name: "contractType",
40
+ inputs: [],
41
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
42
+ stateMutability: "view"
43
+ },
44
+ {
45
+ type: "function",
46
+ name: "logRedemption",
47
+ inputs: [
48
+ { name: "creditAccount", type: "address", internalType: "address" },
49
+ { name: "redeemer", type: "address", internalType: "address" },
50
+ { name: "extraData", type: "bytes", internalType: "bytes" }
51
+ ],
52
+ outputs: [],
53
+ stateMutability: "nonpayable"
54
+ },
55
+ {
56
+ type: "function",
57
+ name: "owner",
58
+ inputs: [],
59
+ outputs: [{ name: "", type: "address", internalType: "address" }],
60
+ stateMutability: "view"
61
+ },
62
+ {
63
+ type: "function",
64
+ name: "redemptionLogs",
65
+ inputs: [{ name: "redeemer", type: "address", internalType: "address" }],
66
+ outputs: [
67
+ {
68
+ name: "",
69
+ type: "tuple",
70
+ internalType: "struct IRedemptionLogger.RedemptionLog",
71
+ components: [
72
+ { name: "creditAccount", type: "address", internalType: "address" },
73
+ { name: "redeemer", type: "address", internalType: "address" },
74
+ { name: "extraData", type: "bytes", internalType: "bytes" }
75
+ ]
76
+ }
77
+ ],
78
+ stateMutability: "view"
79
+ },
80
+ {
81
+ type: "function",
82
+ name: "renounceOwnership",
83
+ inputs: [],
84
+ outputs: [],
85
+ stateMutability: "nonpayable"
86
+ },
87
+ {
88
+ type: "function",
89
+ name: "setGatewayAllowed",
90
+ inputs: [
91
+ { name: "gateway", type: "address", internalType: "address" },
92
+ { name: "allowed", type: "bool", internalType: "bool" }
93
+ ],
94
+ outputs: [],
95
+ stateMutability: "nonpayable"
96
+ },
97
+ {
98
+ type: "function",
99
+ name: "transferOwnership",
100
+ inputs: [{ name: "newOwner", type: "address", internalType: "address" }],
101
+ outputs: [],
102
+ stateMutability: "nonpayable"
103
+ },
104
+ {
105
+ type: "function",
106
+ name: "version",
107
+ inputs: [],
108
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
109
+ stateMutability: "view"
110
+ },
111
+ {
112
+ type: "event",
113
+ name: "OwnershipTransferred",
114
+ inputs: [
115
+ {
116
+ name: "previousOwner",
117
+ type: "address",
118
+ indexed: true,
119
+ internalType: "address"
120
+ },
121
+ {
122
+ name: "newOwner",
123
+ type: "address",
124
+ indexed: true,
125
+ internalType: "address"
126
+ }
127
+ ],
128
+ anonymous: false
129
+ },
130
+ {
131
+ type: "event",
132
+ name: "RedemptionLogged",
133
+ inputs: [
134
+ {
135
+ name: "creditAccount",
136
+ type: "address",
137
+ indexed: true,
138
+ internalType: "address"
139
+ },
140
+ {
141
+ name: "redeemer",
142
+ type: "address",
143
+ indexed: true,
144
+ internalType: "address"
145
+ },
146
+ {
147
+ name: "extraData",
148
+ type: "bytes",
149
+ indexed: false,
150
+ internalType: "bytes"
151
+ }
152
+ ],
153
+ anonymous: false
154
+ },
155
+ { type: "error", name: "GatewayNotAllowedException", inputs: [] }
156
+ ];
157
+ // Annotate the CommonJS export names for ESM import in node:
158
+ 0 && (module.exports = {
159
+ redemptionLoggerAbi
160
+ });
@@ -48,7 +48,8 @@ const mellowWithdrawalSubcompressorAbi = [
48
48
  { name: "target", type: "address", internalType: "address" },
49
49
  { name: "callData", type: "bytes", internalType: "bytes" }
50
50
  ]
51
- }
51
+ },
52
+ { name: "extraData", type: "bytes", internalType: "bytes" }
52
53
  ]
53
54
  },
54
55
  {
@@ -109,6 +110,49 @@ const mellowWithdrawalSubcompressorAbi = [
109
110
  ],
110
111
  stateMutability: "view"
111
112
  },
113
+ {
114
+ type: "function",
115
+ name: "getWithdrawalRequestResult",
116
+ inputs: [
117
+ { name: "creditAccount", type: "address", internalType: "address" },
118
+ { name: "token", type: "address", internalType: "address" },
119
+ { name: "withdrawalToken", type: "address", internalType: "address" },
120
+ { name: "amount", type: "uint256", internalType: "uint256" },
121
+ { name: "", type: "bytes", internalType: "bytes" }
122
+ ],
123
+ outputs: [
124
+ {
125
+ name: "requestableWithdrawal",
126
+ type: "tuple",
127
+ internalType: "struct RequestableWithdrawal",
128
+ components: [
129
+ { name: "token", type: "address", internalType: "address" },
130
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
131
+ {
132
+ name: "outputs",
133
+ type: "tuple[]",
134
+ internalType: "struct WithdrawalOutput[]",
135
+ components: [
136
+ { name: "token", type: "address", internalType: "address" },
137
+ { name: "isDelayed", type: "bool", internalType: "bool" },
138
+ { name: "amount", type: "uint256", internalType: "uint256" }
139
+ ]
140
+ },
141
+ {
142
+ name: "requestCalls",
143
+ type: "tuple[]",
144
+ internalType: "struct MultiCall[]",
145
+ components: [
146
+ { name: "target", type: "address", internalType: "address" },
147
+ { name: "callData", type: "bytes", internalType: "bytes" }
148
+ ]
149
+ },
150
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
151
+ ]
152
+ }
153
+ ],
154
+ stateMutability: "view"
155
+ },
112
156
  {
113
157
  type: "function",
114
158
  name: "getWithdrawalRequestResult",
@@ -48,7 +48,8 @@ const midasWithdrawalSubcompressorAbi = [
48
48
  { name: "target", type: "address", internalType: "address" },
49
49
  { name: "callData", type: "bytes", internalType: "bytes" }
50
50
  ]
51
- }
51
+ },
52
+ { name: "extraData", type: "bytes", internalType: "bytes" }
52
53
  ]
53
54
  },
54
55
  {
@@ -109,6 +110,49 @@ const midasWithdrawalSubcompressorAbi = [
109
110
  ],
110
111
  stateMutability: "view"
111
112
  },
113
+ {
114
+ type: "function",
115
+ name: "getWithdrawalRequestResult",
116
+ inputs: [
117
+ { name: "creditAccount", type: "address", internalType: "address" },
118
+ { name: "token", type: "address", internalType: "address" },
119
+ { name: "withdrawalToken", type: "address", internalType: "address" },
120
+ { name: "amount", type: "uint256", internalType: "uint256" },
121
+ { name: "extraData", type: "bytes", internalType: "bytes" }
122
+ ],
123
+ outputs: [
124
+ {
125
+ name: "requestableWithdrawal",
126
+ type: "tuple",
127
+ internalType: "struct RequestableWithdrawal",
128
+ components: [
129
+ { name: "token", type: "address", internalType: "address" },
130
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
131
+ {
132
+ name: "outputs",
133
+ type: "tuple[]",
134
+ internalType: "struct WithdrawalOutput[]",
135
+ components: [
136
+ { name: "token", type: "address", internalType: "address" },
137
+ { name: "isDelayed", type: "bool", internalType: "bool" },
138
+ { name: "amount", type: "uint256", internalType: "uint256" }
139
+ ]
140
+ },
141
+ {
142
+ name: "requestCalls",
143
+ type: "tuple[]",
144
+ internalType: "struct MultiCall[]",
145
+ components: [
146
+ { name: "target", type: "address", internalType: "address" },
147
+ { name: "callData", type: "bytes", internalType: "bytes" }
148
+ ]
149
+ },
150
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
151
+ ]
152
+ }
153
+ ],
154
+ stateMutability: "view"
155
+ },
112
156
  {
113
157
  type: "function",
114
158
  name: "getWithdrawalRequestResult",
@@ -48,7 +48,8 @@ const securitizeRedemptionSubcompressorAbi = [
48
48
  { name: "target", type: "address", internalType: "address" },
49
49
  { name: "callData", type: "bytes", internalType: "bytes" }
50
50
  ]
51
- }
51
+ },
52
+ { name: "extraData", type: "bytes", internalType: "bytes" }
52
53
  ]
53
54
  },
54
55
  {
@@ -109,6 +110,49 @@ const securitizeRedemptionSubcompressorAbi = [
109
110
  ],
110
111
  stateMutability: "view"
111
112
  },
113
+ {
114
+ type: "function",
115
+ name: "getWithdrawalRequestResult",
116
+ inputs: [
117
+ { name: "creditAccount", type: "address", internalType: "address" },
118
+ { name: "token", type: "address", internalType: "address" },
119
+ { name: "withdrawalToken", type: "address", internalType: "address" },
120
+ { name: "amount", type: "uint256", internalType: "uint256" },
121
+ { name: "extraData", type: "bytes", internalType: "bytes" }
122
+ ],
123
+ outputs: [
124
+ {
125
+ name: "requestableWithdrawal",
126
+ type: "tuple",
127
+ internalType: "struct RequestableWithdrawal",
128
+ components: [
129
+ { name: "token", type: "address", internalType: "address" },
130
+ { name: "amountIn", type: "uint256", internalType: "uint256" },
131
+ {
132
+ name: "outputs",
133
+ type: "tuple[]",
134
+ internalType: "struct WithdrawalOutput[]",
135
+ components: [
136
+ { name: "token", type: "address", internalType: "address" },
137
+ { name: "isDelayed", type: "bool", internalType: "bool" },
138
+ { name: "amount", type: "uint256", internalType: "uint256" }
139
+ ]
140
+ },
141
+ {
142
+ name: "requestCalls",
143
+ type: "tuple[]",
144
+ internalType: "struct MultiCall[]",
145
+ components: [
146
+ { name: "target", type: "address", internalType: "address" },
147
+ { name: "callData", type: "bytes", internalType: "bytes" }
148
+ ]
149
+ },
150
+ { name: "claimableAt", type: "uint256", internalType: "uint256" }
151
+ ]
152
+ }
153
+ ],
154
+ stateMutability: "view"
155
+ },
112
156
  {
113
157
  type: "function",
114
158
  name: "getWithdrawalRequestResult",
@@ -69,7 +69,8 @@ const withdrawalCompressorAbi = [
69
69
  { name: "target", type: "address", internalType: "address" },
70
70
  { name: "callData", type: "bytes", internalType: "bytes" }
71
71
  ]
72
- }
72
+ },
73
+ { name: "extraData", type: "bytes", internalType: "bytes" }
73
74
  ]
74
75
  },
75
76
  {
@@ -129,6 +130,49 @@ const withdrawalCompressorAbi = [
129
130
  ],
130
131
  stateMutability: "view"
131
132
  },
133
+ {
134
+ type: "function",
135
+ name: "getWithdrawalRequestResult",
136
+ inputs: [
137
+ { name: "creditAccount", type: "address", internalType: "address" },
138
+ { name: "token", type: "address", internalType: "address" },
139
+ { name: "withdrawalToken", type: "address", internalType: "address" },
140
+ { name: "amount", type: "uint256", internalType: "uint256" },
141
+ { name: "extraData", type: "bytes", internalType: "bytes" }
142
+ ],
143
+ outputs: [
144
+ {
145
+ name: "withdrawal",
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
+ },
132
176
  {
133
177
  type: "function",
134
178
  name: "getWithdrawalRequestResult",