@gearbox-protocol/sdk 14.5.9 → 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;