@gearbox-protocol/sdk 14.5.8 → 14.5.10

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,351 @@
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 iBaseOnRamp_exports = {};
20
+ __export(iBaseOnRamp_exports, {
21
+ iBaseOnRampAbi: () => iBaseOnRampAbi
22
+ });
23
+ module.exports = __toCommonJS(iBaseOnRamp_exports);
24
+ const iBaseOnRampAbi = [
25
+ {
26
+ inputs: [],
27
+ name: "InsufficientERC20BalanceError",
28
+ type: "error"
29
+ },
30
+ {
31
+ inputs: [],
32
+ name: "InvalidEIP712SignatureError",
33
+ type: "error"
34
+ },
35
+ {
36
+ inputs: [],
37
+ name: "InvestorNotRegisteredError",
38
+ type: "error"
39
+ },
40
+ {
41
+ inputs: [],
42
+ name: "InvestorSubscriptionDisabledError",
43
+ type: "error"
44
+ },
45
+ {
46
+ inputs: [],
47
+ name: "MinSubscriptionAmountError",
48
+ type: "error"
49
+ },
50
+ {
51
+ inputs: [],
52
+ name: "NonPositiveAmountError",
53
+ type: "error"
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: "NonZeroAddressError",
58
+ type: "error"
59
+ },
60
+ {
61
+ inputs: [],
62
+ name: "NonZeroNavRateError",
63
+ type: "error"
64
+ },
65
+ {
66
+ inputs: [],
67
+ name: "SameValueError",
68
+ type: "error"
69
+ },
70
+ {
71
+ inputs: [],
72
+ name: "SignatureDeadlineExpiredError",
73
+ type: "error"
74
+ },
75
+ {
76
+ inputs: [],
77
+ name: "SlippageControlError",
78
+ type: "error"
79
+ },
80
+ {
81
+ anonymous: false,
82
+ inputs: [
83
+ {
84
+ indexed: true,
85
+ internalType: "address",
86
+ name: "oldProvider",
87
+ type: "address"
88
+ },
89
+ {
90
+ indexed: true,
91
+ internalType: "address",
92
+ name: "newProvider",
93
+ type: "address"
94
+ }
95
+ ],
96
+ name: "AssetProviderUpdated",
97
+ type: "event"
98
+ },
99
+ {
100
+ anonymous: false,
101
+ inputs: [
102
+ {
103
+ indexed: false,
104
+ internalType: "uint16",
105
+ name: "chainId",
106
+ type: "uint16"
107
+ },
108
+ {
109
+ indexed: false,
110
+ internalType: "address",
111
+ name: "bridge",
112
+ type: "address"
113
+ }
114
+ ],
115
+ name: "BridgeParamsUpdated",
116
+ type: "event"
117
+ },
118
+ {
119
+ anonymous: false,
120
+ inputs: [
121
+ {
122
+ indexed: false,
123
+ internalType: "bool",
124
+ name: "newValue",
125
+ type: "bool"
126
+ }
127
+ ],
128
+ name: "InvestorSubscriptionUpdated",
129
+ type: "event"
130
+ },
131
+ {
132
+ anonymous: false,
133
+ inputs: [
134
+ {
135
+ indexed: false,
136
+ internalType: "uint256",
137
+ name: "oldValue",
138
+ type: "uint256"
139
+ },
140
+ {
141
+ indexed: false,
142
+ internalType: "uint256",
143
+ name: "newValue",
144
+ type: "uint256"
145
+ }
146
+ ],
147
+ name: "MinSubscriptionAmountUpdated",
148
+ type: "event"
149
+ },
150
+ {
151
+ anonymous: false,
152
+ inputs: [
153
+ {
154
+ indexed: true,
155
+ internalType: "address",
156
+ name: "oldProvider",
157
+ type: "address"
158
+ },
159
+ {
160
+ indexed: true,
161
+ internalType: "address",
162
+ name: "newProvider",
163
+ type: "address"
164
+ }
165
+ ],
166
+ name: "NavProviderUpdated",
167
+ type: "event"
168
+ },
169
+ {
170
+ anonymous: false,
171
+ inputs: [
172
+ {
173
+ indexed: true,
174
+ internalType: "address",
175
+ name: "from",
176
+ type: "address"
177
+ },
178
+ {
179
+ indexed: false,
180
+ internalType: "uint256",
181
+ name: "dsTokenValue",
182
+ type: "uint256"
183
+ },
184
+ {
185
+ indexed: false,
186
+ internalType: "uint256",
187
+ name: "liquidityValue",
188
+ type: "uint256"
189
+ },
190
+ {
191
+ indexed: true,
192
+ internalType: "address",
193
+ name: "newWalletTo",
194
+ type: "address"
195
+ },
196
+ {
197
+ indexed: false,
198
+ internalType: "uint256",
199
+ name: "rate",
200
+ type: "uint256"
201
+ },
202
+ {
203
+ indexed: false,
204
+ internalType: "uint256",
205
+ name: "fee",
206
+ type: "uint256"
207
+ },
208
+ {
209
+ indexed: true,
210
+ internalType: "address",
211
+ name: "liquidityToken",
212
+ type: "address"
213
+ }
214
+ ],
215
+ name: "Swap",
216
+ type: "event"
217
+ },
218
+ {
219
+ anonymous: false,
220
+ inputs: [
221
+ {
222
+ indexed: false,
223
+ internalType: "bool",
224
+ name: "newValue",
225
+ type: "bool"
226
+ }
227
+ ],
228
+ name: "TwoStepTransferUpdated",
229
+ type: "event"
230
+ },
231
+ {
232
+ inputs: [
233
+ {
234
+ internalType: "address",
235
+ name: "_dsToken",
236
+ type: "address"
237
+ },
238
+ {
239
+ internalType: "address",
240
+ name: "_liquidity",
241
+ type: "address"
242
+ },
243
+ {
244
+ internalType: "address",
245
+ name: "_navProvider",
246
+ type: "address"
247
+ },
248
+ {
249
+ internalType: "address",
250
+ name: "_feeManager",
251
+ type: "address"
252
+ },
253
+ {
254
+ internalType: "address",
255
+ name: "_custodianWallet",
256
+ type: "address"
257
+ }
258
+ ],
259
+ name: "initialize",
260
+ outputs: [],
261
+ stateMutability: "nonpayable",
262
+ type: "function"
263
+ },
264
+ {
265
+ inputs: [
266
+ {
267
+ internalType: "bool",
268
+ name: "_investorSubscription",
269
+ type: "bool"
270
+ }
271
+ ],
272
+ name: "toggleInvestorSubscription",
273
+ outputs: [],
274
+ stateMutability: "nonpayable",
275
+ type: "function"
276
+ },
277
+ {
278
+ inputs: [
279
+ {
280
+ internalType: "bool",
281
+ name: "_twoStepTransfer",
282
+ type: "bool"
283
+ }
284
+ ],
285
+ name: "toggleTwoStepTransfer",
286
+ outputs: [],
287
+ stateMutability: "nonpayable",
288
+ type: "function"
289
+ },
290
+ {
291
+ inputs: [
292
+ {
293
+ internalType: "address",
294
+ name: "_assetProvider",
295
+ type: "address"
296
+ }
297
+ ],
298
+ name: "updateAssetProvider",
299
+ outputs: [],
300
+ stateMutability: "nonpayable",
301
+ type: "function"
302
+ },
303
+ {
304
+ inputs: [
305
+ {
306
+ internalType: "uint16",
307
+ name: "_chainId",
308
+ type: "uint16"
309
+ },
310
+ {
311
+ internalType: "address",
312
+ name: "_bridge",
313
+ type: "address"
314
+ }
315
+ ],
316
+ name: "updateBridgeParams",
317
+ outputs: [],
318
+ stateMutability: "nonpayable",
319
+ type: "function"
320
+ },
321
+ {
322
+ inputs: [
323
+ {
324
+ internalType: "uint256",
325
+ name: "_minSubscriptionAmount",
326
+ type: "uint256"
327
+ }
328
+ ],
329
+ name: "updateMinSubscriptionAmount",
330
+ outputs: [],
331
+ stateMutability: "nonpayable",
332
+ type: "function"
333
+ },
334
+ {
335
+ inputs: [
336
+ {
337
+ internalType: "address",
338
+ name: "_navProvider",
339
+ type: "address"
340
+ }
341
+ ],
342
+ name: "updateNavProvider",
343
+ outputs: [],
344
+ stateMutability: "nonpayable",
345
+ type: "function"
346
+ }
347
+ ];
348
+ // Annotate the CommonJS export names for ESM import in node:
349
+ 0 && (module.exports = {
350
+ iBaseOnRampAbi
351
+ });
@@ -23,11 +23,12 @@ __export(SecuritizeOnRampAdapterContract_exports, {
23
23
  module.exports = __toCommonJS(SecuritizeOnRampAdapterContract_exports);
24
24
  var import_viem = require("viem");
25
25
  var import_sdk = require("../../../sdk/index.js");
26
+ var import_iBaseOnRamp = require("../abi/securitize/iBaseOnRamp.js");
26
27
  var import_iSecuritizeOnRamp = require("../abi/securitize/iSecuritizeOnRamp.js");
27
28
  var import_iSecuritizeOnRampAdapter = require("../abi/securitize/iSecuritizeOnRampAdapter.js");
28
29
  var import_AbstractAdapter = require("./AbstractAdapter.js");
29
30
  const abi = import_iSecuritizeOnRampAdapter.iSecuritizeOnRampAdapterAbi;
30
- const protocolAbi = import_iSecuritizeOnRamp.iSecuritizeOnRampAbi;
31
+ const protocolAbi = [...import_iSecuritizeOnRamp.iSecuritizeOnRampAbi, ...import_iBaseOnRamp.iBaseOnRampAbi];
31
32
  class SecuritizeOnRampAdapterContract extends import_AbstractAdapter.AbstractAdapterContract {
32
33
  #dsToken;
33
34
  #liquidityToken;
@@ -0,0 +1,170 @@
1
+ const iDefaultAccountFactoryV3Abi = [
2
+ {
3
+ type: "function",
4
+ name: "addCreditManager",
5
+ inputs: [
6
+ { name: "creditManager", type: "address", internalType: "address" }
7
+ ],
8
+ outputs: [],
9
+ stateMutability: "nonpayable"
10
+ },
11
+ {
12
+ type: "function",
13
+ name: "contractType",
14
+ inputs: [],
15
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
16
+ stateMutability: "view"
17
+ },
18
+ {
19
+ type: "function",
20
+ name: "delay",
21
+ inputs: [],
22
+ outputs: [{ name: "", type: "uint40", internalType: "uint40" }],
23
+ stateMutability: "view"
24
+ },
25
+ {
26
+ type: "function",
27
+ name: "rescue",
28
+ inputs: [
29
+ { name: "creditAccount", type: "address", internalType: "address" },
30
+ { name: "target", type: "address", internalType: "address" },
31
+ { name: "data", type: "bytes", internalType: "bytes" }
32
+ ],
33
+ outputs: [],
34
+ stateMutability: "nonpayable"
35
+ },
36
+ {
37
+ type: "function",
38
+ name: "returnCreditAccount",
39
+ inputs: [
40
+ { name: "creditAccount", type: "address", internalType: "address" }
41
+ ],
42
+ outputs: [],
43
+ stateMutability: "nonpayable"
44
+ },
45
+ {
46
+ type: "function",
47
+ name: "serialize",
48
+ inputs: [],
49
+ outputs: [{ name: "serializedData", type: "bytes", internalType: "bytes" }],
50
+ stateMutability: "view"
51
+ },
52
+ {
53
+ type: "function",
54
+ name: "takeCreditAccount",
55
+ inputs: [
56
+ { name: "", type: "uint256", internalType: "uint256" },
57
+ { name: "", type: "uint256", internalType: "uint256" }
58
+ ],
59
+ outputs: [
60
+ { name: "creditAccount", type: "address", internalType: "address" }
61
+ ],
62
+ stateMutability: "nonpayable"
63
+ },
64
+ {
65
+ type: "function",
66
+ name: "version",
67
+ inputs: [],
68
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
69
+ stateMutability: "view"
70
+ },
71
+ {
72
+ type: "event",
73
+ name: "AddCreditManager",
74
+ inputs: [
75
+ {
76
+ name: "creditManager",
77
+ type: "address",
78
+ indexed: true,
79
+ internalType: "address"
80
+ },
81
+ {
82
+ name: "masterCreditAccount",
83
+ type: "address",
84
+ indexed: false,
85
+ internalType: "address"
86
+ }
87
+ ],
88
+ anonymous: false
89
+ },
90
+ {
91
+ type: "event",
92
+ name: "DeployCreditAccount",
93
+ inputs: [
94
+ {
95
+ name: "creditAccount",
96
+ type: "address",
97
+ indexed: true,
98
+ internalType: "address"
99
+ },
100
+ {
101
+ name: "creditManager",
102
+ type: "address",
103
+ indexed: true,
104
+ internalType: "address"
105
+ }
106
+ ],
107
+ anonymous: false
108
+ },
109
+ {
110
+ type: "event",
111
+ name: "Rescue",
112
+ inputs: [
113
+ {
114
+ name: "creditAccount",
115
+ type: "address",
116
+ indexed: true,
117
+ internalType: "address"
118
+ },
119
+ {
120
+ name: "target",
121
+ type: "address",
122
+ indexed: true,
123
+ internalType: "address"
124
+ },
125
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
126
+ ],
127
+ anonymous: false
128
+ },
129
+ {
130
+ type: "event",
131
+ name: "ReturnCreditAccount",
132
+ inputs: [
133
+ {
134
+ name: "creditAccount",
135
+ type: "address",
136
+ indexed: true,
137
+ internalType: "address"
138
+ },
139
+ {
140
+ name: "creditManager",
141
+ type: "address",
142
+ indexed: true,
143
+ internalType: "address"
144
+ }
145
+ ],
146
+ anonymous: false
147
+ },
148
+ {
149
+ type: "event",
150
+ name: "TakeCreditAccount",
151
+ inputs: [
152
+ {
153
+ name: "creditAccount",
154
+ type: "address",
155
+ indexed: true,
156
+ internalType: "address"
157
+ },
158
+ {
159
+ name: "creditManager",
160
+ type: "address",
161
+ indexed: true,
162
+ internalType: "address"
163
+ }
164
+ ],
165
+ anonymous: false
166
+ }
167
+ ];
168
+ export {
169
+ iDefaultAccountFactoryV3Abi
170
+ };