@gearbox-protocol/sdk 14.12.0-next.39 → 14.12.0-next.40

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.
@@ -16,13 +16,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  var securitize_exports = {};
17
17
  module.exports = __toCommonJS(securitize_exports);
18
18
  __reExport(securitize_exports, require("./iBaseOnRamp.js"), module.exports);
19
- __reExport(securitize_exports, require("./iMidasGatewayAdapter.js"), module.exports);
20
19
  __reExport(securitize_exports, require("./iSecuritizeOnRamp.js"), module.exports);
21
20
  __reExport(securitize_exports, require("./iSecuritizeRedemptionGatewayV311.js"), module.exports);
22
21
  // Annotate the CommonJS export names for ESM import in node:
23
22
  0 && (module.exports = {
24
23
  ...require("./iBaseOnRamp.js"),
25
- ...require("./iMidasGatewayAdapter.js"),
26
24
  ...require("./iSecuritizeOnRamp.js"),
27
25
  ...require("./iSecuritizeRedemptionGatewayV311.js")
28
26
  });
@@ -1,4 +1,3 @@
1
1
  export * from "./iBaseOnRamp.js";
2
- export * from "./iMidasGatewayAdapter.js";
3
2
  export * from "./iSecuritizeOnRamp.js";
4
3
  export * from "./iSecuritizeRedemptionGatewayV311.js";
@@ -1,4 +1,3 @@
1
1
  export * from "./iBaseOnRamp.js";
2
- export * from "./iMidasGatewayAdapter.js";
3
2
  export * from "./iSecuritizeOnRamp.js";
4
3
  export * from "./iSecuritizeRedemptionGatewayV311.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "14.12.0-next.39",
3
+ "version": "14.12.0-next.40",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,354 +0,0 @@
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 iMidasGatewayAdapter_exports = {};
20
- __export(iMidasGatewayAdapter_exports, {
21
- iMidasGatewayAdapterAbi: () => iMidasGatewayAdapterAbi
22
- });
23
- module.exports = __toCommonJS(iMidasGatewayAdapter_exports);
24
- const iMidasGatewayAdapterAbi = [
25
- {
26
- type: "function",
27
- name: "acl",
28
- inputs: [],
29
- outputs: [{ name: "", type: "address", internalType: "address" }],
30
- stateMutability: "view"
31
- },
32
- {
33
- type: "function",
34
- name: "allowedInputTokens",
35
- inputs: [],
36
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
37
- stateMutability: "view"
38
- },
39
- {
40
- type: "function",
41
- name: "allowedOutputTokens",
42
- inputs: [],
43
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
44
- stateMutability: "view"
45
- },
46
- {
47
- type: "function",
48
- name: "allowedPhantomTokens",
49
- inputs: [],
50
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
51
- stateMutability: "view"
52
- },
53
- {
54
- type: "function",
55
- name: "contractType",
56
- inputs: [],
57
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
58
- stateMutability: "view"
59
- },
60
- {
61
- type: "function",
62
- name: "creditManager",
63
- inputs: [],
64
- outputs: [{ name: "", type: "address", internalType: "address" }],
65
- stateMutability: "view"
66
- },
67
- {
68
- type: "function",
69
- name: "depositInstant",
70
- inputs: [
71
- { name: "tokenIn", type: "address", internalType: "address" },
72
- { name: "amountToken", type: "uint256", internalType: "uint256" },
73
- { name: "minReceiveAmount", type: "uint256", internalType: "uint256" },
74
- { name: "", type: "bytes32", internalType: "bytes32" }
75
- ],
76
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
77
- stateMutability: "nonpayable"
78
- },
79
- {
80
- type: "function",
81
- name: "depositInstantDiff",
82
- inputs: [
83
- { name: "tokenIn", type: "address", internalType: "address" },
84
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
85
- { name: "rateMinRAY", type: "uint256", internalType: "uint256" }
86
- ],
87
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
88
- stateMutability: "nonpayable"
89
- },
90
- {
91
- type: "function",
92
- name: "depositPhantomToken",
93
- inputs: [
94
- { name: "", type: "address", internalType: "address" },
95
- { name: "", type: "uint256", internalType: "uint256" }
96
- ],
97
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
98
- stateMutability: "view"
99
- },
100
- {
101
- type: "function",
102
- name: "gateway",
103
- inputs: [],
104
- outputs: [{ name: "", type: "address", internalType: "address" }],
105
- stateMutability: "view"
106
- },
107
- {
108
- type: "function",
109
- name: "isInputTokenAllowed",
110
- inputs: [{ name: "token", type: "address", internalType: "address" }],
111
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
112
- stateMutability: "view"
113
- },
114
- {
115
- type: "function",
116
- name: "isOutputTokenAllowed",
117
- inputs: [{ name: "token", type: "address", internalType: "address" }],
118
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
119
- stateMutability: "view"
120
- },
121
- {
122
- type: "function",
123
- name: "mToken",
124
- inputs: [],
125
- outputs: [{ name: "", type: "address", internalType: "address" }],
126
- stateMutability: "view"
127
- },
128
- {
129
- type: "function",
130
- name: "outputTokenToPhantomToken",
131
- inputs: [{ name: "", type: "address", internalType: "address" }],
132
- outputs: [{ name: "", type: "address", internalType: "address" }],
133
- stateMutability: "view"
134
- },
135
- {
136
- type: "function",
137
- name: "phantomTokenToOutputToken",
138
- inputs: [{ name: "", type: "address", internalType: "address" }],
139
- outputs: [{ name: "", type: "address", internalType: "address" }],
140
- stateMutability: "view"
141
- },
142
- {
143
- type: "function",
144
- name: "redeemInstant",
145
- inputs: [
146
- { name: "tokenOut", type: "address", internalType: "address" },
147
- { name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
148
- { name: "minReceiveAmount", type: "uint256", internalType: "uint256" }
149
- ],
150
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
151
- stateMutability: "nonpayable"
152
- },
153
- {
154
- type: "function",
155
- name: "redeemInstantDiff",
156
- inputs: [
157
- { name: "tokenOut", type: "address", internalType: "address" },
158
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
159
- { name: "rateMinRAY", type: "uint256", internalType: "uint256" }
160
- ],
161
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
162
- stateMutability: "nonpayable"
163
- },
164
- {
165
- type: "function",
166
- name: "redeemRequest",
167
- inputs: [
168
- { name: "tokenOut", type: "address", internalType: "address" },
169
- { name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
170
- { name: "extraData", type: "bytes", internalType: "bytes" }
171
- ],
172
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
173
- stateMutability: "nonpayable"
174
- },
175
- {
176
- type: "function",
177
- name: "redeemRequest",
178
- inputs: [
179
- { name: "tokenOut", type: "address", internalType: "address" },
180
- { name: "amountMTokenIn", type: "uint256", internalType: "uint256" }
181
- ],
182
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
183
- stateMutability: "nonpayable"
184
- },
185
- {
186
- type: "function",
187
- name: "redeemRequestDiff",
188
- inputs: [
189
- { name: "tokenOut", type: "address", internalType: "address" },
190
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" }
191
- ],
192
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
193
- stateMutability: "nonpayable"
194
- },
195
- {
196
- type: "function",
197
- name: "redeemRequestDiff",
198
- inputs: [
199
- { name: "tokenOut", type: "address", internalType: "address" },
200
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
201
- { name: "extraData", type: "bytes", internalType: "bytes" }
202
- ],
203
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
204
- stateMutability: "nonpayable"
205
- },
206
- {
207
- type: "function",
208
- name: "referrerId",
209
- inputs: [],
210
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
211
- stateMutability: "view"
212
- },
213
- {
214
- type: "function",
215
- name: "serialize",
216
- inputs: [],
217
- outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
218
- stateMutability: "view"
219
- },
220
- {
221
- type: "function",
222
- name: "setInputTokenAllowedStatusBatch",
223
- inputs: [
224
- { name: "tokens", type: "address[]", internalType: "address[]" },
225
- { name: "allowed", type: "bool[]", internalType: "bool[]" }
226
- ],
227
- outputs: [],
228
- stateMutability: "nonpayable"
229
- },
230
- {
231
- type: "function",
232
- name: "setOutputTokenAllowedStatusBatch",
233
- inputs: [
234
- {
235
- name: "configs",
236
- type: "tuple[]",
237
- internalType: "struct IMidasGatewayAdapter.MidasAllowedTokenStatus[]",
238
- components: [
239
- { name: "token", type: "address", internalType: "address" },
240
- { name: "phantomToken", type: "address", internalType: "address" },
241
- { name: "allowed", type: "bool", internalType: "bool" }
242
- ]
243
- }
244
- ],
245
- outputs: [],
246
- stateMutability: "nonpayable"
247
- },
248
- {
249
- type: "function",
250
- name: "targetContract",
251
- inputs: [],
252
- outputs: [{ name: "", type: "address", internalType: "address" }],
253
- stateMutability: "view"
254
- },
255
- {
256
- type: "function",
257
- name: "transferRedeemer",
258
- inputs: [
259
- { name: "redeemer", type: "address", internalType: "address" },
260
- { name: "newAccount", type: "address", internalType: "address" }
261
- ],
262
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
263
- stateMutability: "nonpayable"
264
- },
265
- {
266
- type: "function",
267
- name: "version",
268
- inputs: [],
269
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
270
- stateMutability: "view"
271
- },
272
- {
273
- type: "function",
274
- name: "withdraw",
275
- inputs: [
276
- { name: "tokenOut", type: "address", internalType: "address" },
277
- { name: "amount", type: "uint256", internalType: "uint256" }
278
- ],
279
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
280
- stateMutability: "nonpayable"
281
- },
282
- {
283
- type: "function",
284
- name: "withdrawFromRedeemer",
285
- inputs: [
286
- { name: "redeemer", type: "address", internalType: "address" },
287
- { name: "tokenOut", type: "address", internalType: "address" },
288
- { name: "amount", type: "uint256", internalType: "uint256" }
289
- ],
290
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
291
- stateMutability: "nonpayable"
292
- },
293
- {
294
- type: "function",
295
- name: "withdrawPhantomToken",
296
- inputs: [
297
- { name: "token", type: "address", internalType: "address" },
298
- { name: "amount", type: "uint256", internalType: "uint256" }
299
- ],
300
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
301
- stateMutability: "nonpayable"
302
- },
303
- {
304
- type: "event",
305
- name: "SetInputTokenAllowedStatus",
306
- inputs: [
307
- {
308
- name: "token",
309
- type: "address",
310
- indexed: true,
311
- internalType: "address"
312
- },
313
- { name: "allowed", type: "bool", indexed: false, internalType: "bool" }
314
- ],
315
- anonymous: false
316
- },
317
- {
318
- type: "event",
319
- name: "SetOutputTokenAllowedStatus",
320
- inputs: [
321
- {
322
- name: "token",
323
- type: "address",
324
- indexed: true,
325
- internalType: "address"
326
- },
327
- {
328
- name: "phantomToken",
329
- type: "address",
330
- indexed: true,
331
- internalType: "address"
332
- },
333
- { name: "allowed", type: "bool", indexed: false, internalType: "bool" }
334
- ],
335
- anonymous: false
336
- },
337
- {
338
- type: "error",
339
- name: "AddressIsNotContractException",
340
- inputs: [{ name: "", type: "address", internalType: "address" }]
341
- },
342
- { type: "error", name: "CallerNotConfiguratorException", inputs: [] },
343
- { type: "error", name: "CallerNotCreditFacadeException", inputs: [] },
344
- { type: "error", name: "IncorrectArrayLengthException", inputs: [] },
345
- { type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] },
346
- { type: "error", name: "NotImplementedException", inputs: [] },
347
- { type: "error", name: "PhantomTokenTokenOutMismatchException", inputs: [] },
348
- { type: "error", name: "TokenNotAllowedException", inputs: [] },
349
- { type: "error", name: "ZeroAddressException", inputs: [] }
350
- ];
351
- // Annotate the CommonJS export names for ESM import in node:
352
- 0 && (module.exports = {
353
- iMidasGatewayAdapterAbi
354
- });
@@ -1,330 +0,0 @@
1
- const iMidasGatewayAdapterAbi = [
2
- {
3
- type: "function",
4
- name: "acl",
5
- inputs: [],
6
- outputs: [{ name: "", type: "address", internalType: "address" }],
7
- stateMutability: "view"
8
- },
9
- {
10
- type: "function",
11
- name: "allowedInputTokens",
12
- inputs: [],
13
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
14
- stateMutability: "view"
15
- },
16
- {
17
- type: "function",
18
- name: "allowedOutputTokens",
19
- inputs: [],
20
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
21
- stateMutability: "view"
22
- },
23
- {
24
- type: "function",
25
- name: "allowedPhantomTokens",
26
- inputs: [],
27
- outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
28
- stateMutability: "view"
29
- },
30
- {
31
- type: "function",
32
- name: "contractType",
33
- inputs: [],
34
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
35
- stateMutability: "view"
36
- },
37
- {
38
- type: "function",
39
- name: "creditManager",
40
- inputs: [],
41
- outputs: [{ name: "", type: "address", internalType: "address" }],
42
- stateMutability: "view"
43
- },
44
- {
45
- type: "function",
46
- name: "depositInstant",
47
- inputs: [
48
- { name: "tokenIn", type: "address", internalType: "address" },
49
- { name: "amountToken", type: "uint256", internalType: "uint256" },
50
- { name: "minReceiveAmount", type: "uint256", internalType: "uint256" },
51
- { name: "", type: "bytes32", internalType: "bytes32" }
52
- ],
53
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
54
- stateMutability: "nonpayable"
55
- },
56
- {
57
- type: "function",
58
- name: "depositInstantDiff",
59
- inputs: [
60
- { name: "tokenIn", type: "address", internalType: "address" },
61
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
62
- { name: "rateMinRAY", type: "uint256", internalType: "uint256" }
63
- ],
64
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
65
- stateMutability: "nonpayable"
66
- },
67
- {
68
- type: "function",
69
- name: "depositPhantomToken",
70
- inputs: [
71
- { name: "", type: "address", internalType: "address" },
72
- { name: "", type: "uint256", internalType: "uint256" }
73
- ],
74
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
75
- stateMutability: "view"
76
- },
77
- {
78
- type: "function",
79
- name: "gateway",
80
- inputs: [],
81
- outputs: [{ name: "", type: "address", internalType: "address" }],
82
- stateMutability: "view"
83
- },
84
- {
85
- type: "function",
86
- name: "isInputTokenAllowed",
87
- inputs: [{ name: "token", type: "address", internalType: "address" }],
88
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
89
- stateMutability: "view"
90
- },
91
- {
92
- type: "function",
93
- name: "isOutputTokenAllowed",
94
- inputs: [{ name: "token", type: "address", internalType: "address" }],
95
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
96
- stateMutability: "view"
97
- },
98
- {
99
- type: "function",
100
- name: "mToken",
101
- inputs: [],
102
- outputs: [{ name: "", type: "address", internalType: "address" }],
103
- stateMutability: "view"
104
- },
105
- {
106
- type: "function",
107
- name: "outputTokenToPhantomToken",
108
- inputs: [{ name: "", type: "address", internalType: "address" }],
109
- outputs: [{ name: "", type: "address", internalType: "address" }],
110
- stateMutability: "view"
111
- },
112
- {
113
- type: "function",
114
- name: "phantomTokenToOutputToken",
115
- inputs: [{ name: "", type: "address", internalType: "address" }],
116
- outputs: [{ name: "", type: "address", internalType: "address" }],
117
- stateMutability: "view"
118
- },
119
- {
120
- type: "function",
121
- name: "redeemInstant",
122
- inputs: [
123
- { name: "tokenOut", type: "address", internalType: "address" },
124
- { name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
125
- { name: "minReceiveAmount", type: "uint256", internalType: "uint256" }
126
- ],
127
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
128
- stateMutability: "nonpayable"
129
- },
130
- {
131
- type: "function",
132
- name: "redeemInstantDiff",
133
- inputs: [
134
- { name: "tokenOut", type: "address", internalType: "address" },
135
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
136
- { name: "rateMinRAY", type: "uint256", internalType: "uint256" }
137
- ],
138
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
139
- stateMutability: "nonpayable"
140
- },
141
- {
142
- type: "function",
143
- name: "redeemRequest",
144
- inputs: [
145
- { name: "tokenOut", type: "address", internalType: "address" },
146
- { name: "amountMTokenIn", type: "uint256", internalType: "uint256" },
147
- { name: "extraData", type: "bytes", internalType: "bytes" }
148
- ],
149
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
150
- stateMutability: "nonpayable"
151
- },
152
- {
153
- type: "function",
154
- name: "redeemRequest",
155
- inputs: [
156
- { name: "tokenOut", type: "address", internalType: "address" },
157
- { name: "amountMTokenIn", type: "uint256", internalType: "uint256" }
158
- ],
159
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
160
- stateMutability: "nonpayable"
161
- },
162
- {
163
- type: "function",
164
- name: "redeemRequestDiff",
165
- inputs: [
166
- { name: "tokenOut", type: "address", internalType: "address" },
167
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" }
168
- ],
169
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
170
- stateMutability: "nonpayable"
171
- },
172
- {
173
- type: "function",
174
- name: "redeemRequestDiff",
175
- inputs: [
176
- { name: "tokenOut", type: "address", internalType: "address" },
177
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
178
- { name: "extraData", type: "bytes", internalType: "bytes" }
179
- ],
180
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
181
- stateMutability: "nonpayable"
182
- },
183
- {
184
- type: "function",
185
- name: "referrerId",
186
- inputs: [],
187
- outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
188
- stateMutability: "view"
189
- },
190
- {
191
- type: "function",
192
- name: "serialize",
193
- inputs: [],
194
- outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
195
- stateMutability: "view"
196
- },
197
- {
198
- type: "function",
199
- name: "setInputTokenAllowedStatusBatch",
200
- inputs: [
201
- { name: "tokens", type: "address[]", internalType: "address[]" },
202
- { name: "allowed", type: "bool[]", internalType: "bool[]" }
203
- ],
204
- outputs: [],
205
- stateMutability: "nonpayable"
206
- },
207
- {
208
- type: "function",
209
- name: "setOutputTokenAllowedStatusBatch",
210
- inputs: [
211
- {
212
- name: "configs",
213
- type: "tuple[]",
214
- internalType: "struct IMidasGatewayAdapter.MidasAllowedTokenStatus[]",
215
- components: [
216
- { name: "token", type: "address", internalType: "address" },
217
- { name: "phantomToken", type: "address", internalType: "address" },
218
- { name: "allowed", type: "bool", internalType: "bool" }
219
- ]
220
- }
221
- ],
222
- outputs: [],
223
- stateMutability: "nonpayable"
224
- },
225
- {
226
- type: "function",
227
- name: "targetContract",
228
- inputs: [],
229
- outputs: [{ name: "", type: "address", internalType: "address" }],
230
- stateMutability: "view"
231
- },
232
- {
233
- type: "function",
234
- name: "transferRedeemer",
235
- inputs: [
236
- { name: "redeemer", type: "address", internalType: "address" },
237
- { name: "newAccount", type: "address", internalType: "address" }
238
- ],
239
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
240
- stateMutability: "nonpayable"
241
- },
242
- {
243
- type: "function",
244
- name: "version",
245
- inputs: [],
246
- outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
247
- stateMutability: "view"
248
- },
249
- {
250
- type: "function",
251
- name: "withdraw",
252
- inputs: [
253
- { name: "tokenOut", type: "address", internalType: "address" },
254
- { name: "amount", type: "uint256", internalType: "uint256" }
255
- ],
256
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
257
- stateMutability: "nonpayable"
258
- },
259
- {
260
- type: "function",
261
- name: "withdrawFromRedeemer",
262
- inputs: [
263
- { name: "redeemer", type: "address", internalType: "address" },
264
- { name: "tokenOut", type: "address", internalType: "address" },
265
- { name: "amount", type: "uint256", internalType: "uint256" }
266
- ],
267
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
268
- stateMutability: "nonpayable"
269
- },
270
- {
271
- type: "function",
272
- name: "withdrawPhantomToken",
273
- inputs: [
274
- { name: "token", type: "address", internalType: "address" },
275
- { name: "amount", type: "uint256", internalType: "uint256" }
276
- ],
277
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
278
- stateMutability: "nonpayable"
279
- },
280
- {
281
- type: "event",
282
- name: "SetInputTokenAllowedStatus",
283
- inputs: [
284
- {
285
- name: "token",
286
- type: "address",
287
- indexed: true,
288
- internalType: "address"
289
- },
290
- { name: "allowed", type: "bool", indexed: false, internalType: "bool" }
291
- ],
292
- anonymous: false
293
- },
294
- {
295
- type: "event",
296
- name: "SetOutputTokenAllowedStatus",
297
- inputs: [
298
- {
299
- name: "token",
300
- type: "address",
301
- indexed: true,
302
- internalType: "address"
303
- },
304
- {
305
- name: "phantomToken",
306
- type: "address",
307
- indexed: true,
308
- internalType: "address"
309
- },
310
- { name: "allowed", type: "bool", indexed: false, internalType: "bool" }
311
- ],
312
- anonymous: false
313
- },
314
- {
315
- type: "error",
316
- name: "AddressIsNotContractException",
317
- inputs: [{ name: "", type: "address", internalType: "address" }]
318
- },
319
- { type: "error", name: "CallerNotConfiguratorException", inputs: [] },
320
- { type: "error", name: "CallerNotCreditFacadeException", inputs: [] },
321
- { type: "error", name: "IncorrectArrayLengthException", inputs: [] },
322
- { type: "error", name: "IncorrectStakedPhantomTokenException", inputs: [] },
323
- { type: "error", name: "NotImplementedException", inputs: [] },
324
- { type: "error", name: "PhantomTokenTokenOutMismatchException", inputs: [] },
325
- { type: "error", name: "TokenNotAllowedException", inputs: [] },
326
- { type: "error", name: "ZeroAddressException", inputs: [] }
327
- ];
328
- export {
329
- iMidasGatewayAdapterAbi
330
- };
@@ -1,555 +0,0 @@
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
- }];