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