@gearbox-protocol/sdk 14.5.5 → 14.5.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.
@@ -141,6 +141,271 @@ const iDSRegistryServiceAbi = [
141
141
  ],
142
142
  outputs: [],
143
143
  stateMutability: "nonpayable"
144
+ },
145
+ // Events below are copied from contract to interface
146
+ {
147
+ anonymous: false,
148
+ inputs: [
149
+ {
150
+ indexed: false,
151
+ internalType: "string",
152
+ name: "investorId",
153
+ type: "string"
154
+ },
155
+ {
156
+ indexed: false,
157
+ internalType: "address",
158
+ name: "sender",
159
+ type: "address"
160
+ }
161
+ ],
162
+ name: "DSRegistryServiceInvestorAdded",
163
+ type: "event"
164
+ },
165
+ {
166
+ anonymous: false,
167
+ inputs: [
168
+ {
169
+ indexed: false,
170
+ internalType: "string",
171
+ name: "investorId",
172
+ type: "string"
173
+ },
174
+ {
175
+ indexed: false,
176
+ internalType: "uint256",
177
+ name: "attributeId",
178
+ type: "uint256"
179
+ },
180
+ {
181
+ indexed: false,
182
+ internalType: "uint256",
183
+ name: "value",
184
+ type: "uint256"
185
+ },
186
+ {
187
+ indexed: false,
188
+ internalType: "uint256",
189
+ name: "expiry",
190
+ type: "uint256"
191
+ },
192
+ {
193
+ indexed: false,
194
+ internalType: "string",
195
+ name: "proofHash",
196
+ type: "string"
197
+ },
198
+ {
199
+ indexed: false,
200
+ internalType: "address",
201
+ name: "sender",
202
+ type: "address"
203
+ }
204
+ ],
205
+ name: "DSRegistryServiceInvestorAttributeChanged",
206
+ type: "event"
207
+ },
208
+ {
209
+ anonymous: false,
210
+ inputs: [
211
+ {
212
+ indexed: false,
213
+ internalType: "string",
214
+ name: "investorId",
215
+ type: "string"
216
+ },
217
+ {
218
+ indexed: false,
219
+ internalType: "string",
220
+ name: "country",
221
+ type: "string"
222
+ },
223
+ {
224
+ indexed: false,
225
+ internalType: "address",
226
+ name: "sender",
227
+ type: "address"
228
+ }
229
+ ],
230
+ name: "DSRegistryServiceInvestorCountryChanged",
231
+ type: "event"
232
+ },
233
+ {
234
+ anonymous: false,
235
+ inputs: [
236
+ {
237
+ indexed: false,
238
+ internalType: "string",
239
+ name: "investorId",
240
+ type: "string"
241
+ },
242
+ {
243
+ indexed: false,
244
+ internalType: "address",
245
+ name: "sender",
246
+ type: "address"
247
+ }
248
+ ],
249
+ name: "DSRegistryServiceInvestorRemoved",
250
+ type: "event"
251
+ },
252
+ {
253
+ anonymous: false,
254
+ inputs: [
255
+ {
256
+ indexed: false,
257
+ internalType: "address",
258
+ name: "omnibusWallet",
259
+ type: "address"
260
+ },
261
+ {
262
+ indexed: false,
263
+ internalType: "string",
264
+ name: "investorId",
265
+ type: "string"
266
+ },
267
+ {
268
+ indexed: false,
269
+ internalType: "contract IDSOmnibusWalletController",
270
+ name: "omnibusWalletController",
271
+ type: "address"
272
+ }
273
+ ],
274
+ name: "DSRegistryServiceOmnibusWalletAdded",
275
+ type: "event"
276
+ },
277
+ {
278
+ anonymous: false,
279
+ inputs: [
280
+ {
281
+ indexed: false,
282
+ internalType: "address",
283
+ name: "omnibusWallet",
284
+ type: "address"
285
+ },
286
+ {
287
+ indexed: false,
288
+ internalType: "string",
289
+ name: "investorId",
290
+ type: "string"
291
+ }
292
+ ],
293
+ name: "DSRegistryServiceOmnibusWalletRemoved",
294
+ type: "event"
295
+ },
296
+ {
297
+ anonymous: false,
298
+ inputs: [
299
+ {
300
+ indexed: false,
301
+ internalType: "address",
302
+ name: "wallet",
303
+ type: "address"
304
+ },
305
+ {
306
+ indexed: false,
307
+ internalType: "string",
308
+ name: "investorId",
309
+ type: "string"
310
+ },
311
+ {
312
+ indexed: false,
313
+ internalType: "address",
314
+ name: "sender",
315
+ type: "address"
316
+ }
317
+ ],
318
+ name: "DSRegistryServiceWalletAdded",
319
+ type: "event"
320
+ },
321
+ {
322
+ anonymous: false,
323
+ inputs: [
324
+ {
325
+ indexed: false,
326
+ internalType: "address",
327
+ name: "wallet",
328
+ type: "address"
329
+ },
330
+ {
331
+ indexed: false,
332
+ internalType: "string",
333
+ name: "investorId",
334
+ type: "string"
335
+ },
336
+ {
337
+ indexed: false,
338
+ internalType: "address",
339
+ name: "sender",
340
+ type: "address"
341
+ }
342
+ ],
343
+ name: "DSRegistryServiceWalletRemoved",
344
+ type: "event"
345
+ },
346
+ {
347
+ anonymous: false,
348
+ inputs: [
349
+ {
350
+ indexed: false,
351
+ internalType: "uint256",
352
+ name: "serviceId",
353
+ type: "uint256"
354
+ },
355
+ {
356
+ indexed: false,
357
+ internalType: "address",
358
+ name: "serviceAddress",
359
+ type: "address"
360
+ }
361
+ ],
362
+ name: "DSServiceSet",
363
+ type: "event"
364
+ },
365
+ {
366
+ anonymous: false,
367
+ inputs: [
368
+ {
369
+ indexed: false,
370
+ internalType: "uint64",
371
+ name: "version",
372
+ type: "uint64"
373
+ }
374
+ ],
375
+ name: "Initialized",
376
+ type: "event"
377
+ },
378
+ {
379
+ anonymous: false,
380
+ inputs: [
381
+ {
382
+ indexed: true,
383
+ internalType: "address",
384
+ name: "previousOwner",
385
+ type: "address"
386
+ },
387
+ {
388
+ indexed: true,
389
+ internalType: "address",
390
+ name: "newOwner",
391
+ type: "address"
392
+ }
393
+ ],
394
+ name: "OwnershipTransferred",
395
+ type: "event"
396
+ },
397
+ {
398
+ anonymous: false,
399
+ inputs: [
400
+ {
401
+ indexed: true,
402
+ internalType: "address",
403
+ name: "implementation",
404
+ type: "address"
405
+ }
406
+ ],
407
+ name: "Upgraded",
408
+ type: "event"
144
409
  }
145
410
  ];
146
411
  // Annotate the CommonJS export names for ESM import in node:
@@ -188,7 +188,28 @@ const iSecuritizeKYCFactoryAbi = [
188
188
  },
189
189
  {
190
190
  type: "function",
191
- name: "setFrozenStatus",
191
+ name: "setAllCreditAccountsFrozenStatus",
192
+ inputs: [
193
+ { name: "creditManager", type: "address", internalType: "address" },
194
+ { name: "investor", type: "address", internalType: "address" },
195
+ { name: "frozen", type: "bool", internalType: "bool" }
196
+ ],
197
+ outputs: [],
198
+ stateMutability: "nonpayable"
199
+ },
200
+ {
201
+ type: "function",
202
+ name: "setAllCreditAccountsFrozenStatus",
203
+ inputs: [
204
+ { name: "investor", type: "address", internalType: "address" },
205
+ { name: "frozen", type: "bool", internalType: "bool" }
206
+ ],
207
+ outputs: [],
208
+ stateMutability: "nonpayable"
209
+ },
210
+ {
211
+ type: "function",
212
+ name: "setCreditAccountFrozenStatus",
192
213
  inputs: [
193
214
  { name: "creditAccount", type: "address", internalType: "address" },
194
215
  { name: "frozen", type: "bool", internalType: "bool" }
@@ -198,10 +219,31 @@ const iSecuritizeKYCFactoryAbi = [
198
219
  },
199
220
  {
200
221
  type: "function",
201
- name: "setInvestor",
222
+ name: "transferAllCreditAccounts",
223
+ inputs: [
224
+ { name: "investor", type: "address", internalType: "address" },
225
+ { name: "newInvestor", type: "address", internalType: "address" }
226
+ ],
227
+ outputs: [],
228
+ stateMutability: "nonpayable"
229
+ },
230
+ {
231
+ type: "function",
232
+ name: "transferAllCreditAccounts",
233
+ inputs: [
234
+ { name: "creditManager", type: "address", internalType: "address" },
235
+ { name: "investor", type: "address", internalType: "address" },
236
+ { name: "newInvestor", type: "address", internalType: "address" }
237
+ ],
238
+ outputs: [],
239
+ stateMutability: "nonpayable"
240
+ },
241
+ {
242
+ type: "function",
243
+ name: "transferCreditAccount",
202
244
  inputs: [
203
245
  { name: "creditAccount", type: "address", internalType: "address" },
204
- { name: "investor", type: "address", internalType: "address" }
246
+ { name: "newInvestor", type: "address", internalType: "address" }
205
247
  ],
206
248
  outputs: [],
207
249
  stateMutability: "nonpayable"
@@ -215,7 +257,7 @@ const iSecuritizeKYCFactoryAbi = [
215
257
  },
216
258
  {
217
259
  type: "event",
218
- name: "CreateWallet",
260
+ name: "OpenKYCCreditAccount",
219
261
  inputs: [
220
262
  {
221
263
  name: "creditAccount",
@@ -240,7 +282,7 @@ const iSecuritizeKYCFactoryAbi = [
240
282
  },
241
283
  {
242
284
  type: "event",
243
- name: "SetFrozenStatus",
285
+ name: "SetCreditAccountFrozenStatus",
244
286
  inputs: [
245
287
  {
246
288
  name: "creditAccount",
@@ -254,7 +296,7 @@ const iSecuritizeKYCFactoryAbi = [
254
296
  },
255
297
  {
256
298
  type: "event",
257
- name: "SetInvestor",
299
+ name: "TransferCreditAccount",
258
300
  inputs: [
259
301
  {
260
302
  name: "creditAccount",
@@ -304,6 +346,11 @@ const iSecuritizeKYCFactoryAbi = [
304
346
  name: "InvalidUnderlyingTokenException",
305
347
  inputs: [{ name: "underlying", type: "address", internalType: "address" }]
306
348
  },
349
+ {
350
+ type: "error",
351
+ name: "TooManyCreditAccountsException",
352
+ inputs: [{ name: "investor", type: "address", internalType: "address" }]
353
+ },
307
354
  {
308
355
  type: "error",
309
356
  name: "UnknownCreditAccountException",
@@ -0,0 +1,41 @@
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 SecuritizeDegenNFT_exports = {};
20
+ __export(SecuritizeDegenNFT_exports, {
21
+ SecuritizeDegenNFT: () => SecuritizeDegenNFT
22
+ });
23
+ module.exports = __toCommonJS(SecuritizeDegenNFT_exports);
24
+ var import_iSecuritizeDegenNFT = require("../../../../abi/kyc/iSecuritizeDegenNFT.js");
25
+ var import_base = require("../../../base/index.js");
26
+ const abi = import_iSecuritizeDegenNFT.iSecuritizeDegenNFTAbi;
27
+ class SecuritizeDegenNFT extends import_base.BaseContract {
28
+ constructor(sdk, address) {
29
+ super(sdk, {
30
+ addr: address,
31
+ contractType: "DEGEN_NFT::SECURITIZE",
32
+ version: 310,
33
+ name: "SecuritizeDegenNFT",
34
+ abi
35
+ });
36
+ }
37
+ }
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ SecuritizeDegenNFT
41
+ });
@@ -26,6 +26,7 @@ var import_iSecuritizeKYCFactory = require("../../../../abi/kyc/iSecuritizeKYCFa
26
26
  var import_base = require("../../../base/index.js");
27
27
  var import_utils = require("../../../utils/index.js");
28
28
  var import_constants = require("./constants.js");
29
+ var import_SecuritizeDegenNFT = require("./SecuritizeDegenNFT.js");
29
30
  var import_types = require("./types.js");
30
31
  const abi = import_iSecuritizeKYCFactory.iSecuritizeKYCFactoryAbi;
31
32
  class SecuritizeKYCFactory extends import_base.BaseContract {
@@ -59,7 +60,7 @@ class SecuritizeKYCFactory extends import_base.BaseContract {
59
60
  data.baseParams.serializedParams
60
61
  );
61
62
  this.owner = decoded[0];
62
- this.degenNFT = decoded[1];
63
+ this.degenNFT = new import_SecuritizeDegenNFT.SecuritizeDegenNFT(sdk, decoded[1]);
63
64
  for (const t of data.tokens) {
64
65
  this.tokensMeta.upsert(t.addr, t);
65
66
  }
@@ -203,7 +204,7 @@ class SecuritizeKYCFactory extends import_base.BaseContract {
203
204
  return {
204
205
  ...super.stateHuman(_raw),
205
206
  owner: this.labelAddress(this.owner),
206
- degenNFT: this.labelAddress(this.degenNFT),
207
+ degenNFT: this.labelAddress(this.degenNFT.address),
207
208
  dsTokens: this.dsTokens.map((t) => ({
208
209
  ...this.tokensMeta.mustGet(t.address),
209
210
  registrar: this.labelAddress(t.registrar),
@@ -118,6 +118,271 @@ const iDSRegistryServiceAbi = [
118
118
  ],
119
119
  outputs: [],
120
120
  stateMutability: "nonpayable"
121
+ },
122
+ // Events below are copied from contract to interface
123
+ {
124
+ anonymous: false,
125
+ inputs: [
126
+ {
127
+ indexed: false,
128
+ internalType: "string",
129
+ name: "investorId",
130
+ type: "string"
131
+ },
132
+ {
133
+ indexed: false,
134
+ internalType: "address",
135
+ name: "sender",
136
+ type: "address"
137
+ }
138
+ ],
139
+ name: "DSRegistryServiceInvestorAdded",
140
+ type: "event"
141
+ },
142
+ {
143
+ anonymous: false,
144
+ inputs: [
145
+ {
146
+ indexed: false,
147
+ internalType: "string",
148
+ name: "investorId",
149
+ type: "string"
150
+ },
151
+ {
152
+ indexed: false,
153
+ internalType: "uint256",
154
+ name: "attributeId",
155
+ type: "uint256"
156
+ },
157
+ {
158
+ indexed: false,
159
+ internalType: "uint256",
160
+ name: "value",
161
+ type: "uint256"
162
+ },
163
+ {
164
+ indexed: false,
165
+ internalType: "uint256",
166
+ name: "expiry",
167
+ type: "uint256"
168
+ },
169
+ {
170
+ indexed: false,
171
+ internalType: "string",
172
+ name: "proofHash",
173
+ type: "string"
174
+ },
175
+ {
176
+ indexed: false,
177
+ internalType: "address",
178
+ name: "sender",
179
+ type: "address"
180
+ }
181
+ ],
182
+ name: "DSRegistryServiceInvestorAttributeChanged",
183
+ type: "event"
184
+ },
185
+ {
186
+ anonymous: false,
187
+ inputs: [
188
+ {
189
+ indexed: false,
190
+ internalType: "string",
191
+ name: "investorId",
192
+ type: "string"
193
+ },
194
+ {
195
+ indexed: false,
196
+ internalType: "string",
197
+ name: "country",
198
+ type: "string"
199
+ },
200
+ {
201
+ indexed: false,
202
+ internalType: "address",
203
+ name: "sender",
204
+ type: "address"
205
+ }
206
+ ],
207
+ name: "DSRegistryServiceInvestorCountryChanged",
208
+ type: "event"
209
+ },
210
+ {
211
+ anonymous: false,
212
+ inputs: [
213
+ {
214
+ indexed: false,
215
+ internalType: "string",
216
+ name: "investorId",
217
+ type: "string"
218
+ },
219
+ {
220
+ indexed: false,
221
+ internalType: "address",
222
+ name: "sender",
223
+ type: "address"
224
+ }
225
+ ],
226
+ name: "DSRegistryServiceInvestorRemoved",
227
+ type: "event"
228
+ },
229
+ {
230
+ anonymous: false,
231
+ inputs: [
232
+ {
233
+ indexed: false,
234
+ internalType: "address",
235
+ name: "omnibusWallet",
236
+ type: "address"
237
+ },
238
+ {
239
+ indexed: false,
240
+ internalType: "string",
241
+ name: "investorId",
242
+ type: "string"
243
+ },
244
+ {
245
+ indexed: false,
246
+ internalType: "contract IDSOmnibusWalletController",
247
+ name: "omnibusWalletController",
248
+ type: "address"
249
+ }
250
+ ],
251
+ name: "DSRegistryServiceOmnibusWalletAdded",
252
+ type: "event"
253
+ },
254
+ {
255
+ anonymous: false,
256
+ inputs: [
257
+ {
258
+ indexed: false,
259
+ internalType: "address",
260
+ name: "omnibusWallet",
261
+ type: "address"
262
+ },
263
+ {
264
+ indexed: false,
265
+ internalType: "string",
266
+ name: "investorId",
267
+ type: "string"
268
+ }
269
+ ],
270
+ name: "DSRegistryServiceOmnibusWalletRemoved",
271
+ type: "event"
272
+ },
273
+ {
274
+ anonymous: false,
275
+ inputs: [
276
+ {
277
+ indexed: false,
278
+ internalType: "address",
279
+ name: "wallet",
280
+ type: "address"
281
+ },
282
+ {
283
+ indexed: false,
284
+ internalType: "string",
285
+ name: "investorId",
286
+ type: "string"
287
+ },
288
+ {
289
+ indexed: false,
290
+ internalType: "address",
291
+ name: "sender",
292
+ type: "address"
293
+ }
294
+ ],
295
+ name: "DSRegistryServiceWalletAdded",
296
+ type: "event"
297
+ },
298
+ {
299
+ anonymous: false,
300
+ inputs: [
301
+ {
302
+ indexed: false,
303
+ internalType: "address",
304
+ name: "wallet",
305
+ type: "address"
306
+ },
307
+ {
308
+ indexed: false,
309
+ internalType: "string",
310
+ name: "investorId",
311
+ type: "string"
312
+ },
313
+ {
314
+ indexed: false,
315
+ internalType: "address",
316
+ name: "sender",
317
+ type: "address"
318
+ }
319
+ ],
320
+ name: "DSRegistryServiceWalletRemoved",
321
+ type: "event"
322
+ },
323
+ {
324
+ anonymous: false,
325
+ inputs: [
326
+ {
327
+ indexed: false,
328
+ internalType: "uint256",
329
+ name: "serviceId",
330
+ type: "uint256"
331
+ },
332
+ {
333
+ indexed: false,
334
+ internalType: "address",
335
+ name: "serviceAddress",
336
+ type: "address"
337
+ }
338
+ ],
339
+ name: "DSServiceSet",
340
+ type: "event"
341
+ },
342
+ {
343
+ anonymous: false,
344
+ inputs: [
345
+ {
346
+ indexed: false,
347
+ internalType: "uint64",
348
+ name: "version",
349
+ type: "uint64"
350
+ }
351
+ ],
352
+ name: "Initialized",
353
+ type: "event"
354
+ },
355
+ {
356
+ anonymous: false,
357
+ inputs: [
358
+ {
359
+ indexed: true,
360
+ internalType: "address",
361
+ name: "previousOwner",
362
+ type: "address"
363
+ },
364
+ {
365
+ indexed: true,
366
+ internalType: "address",
367
+ name: "newOwner",
368
+ type: "address"
369
+ }
370
+ ],
371
+ name: "OwnershipTransferred",
372
+ type: "event"
373
+ },
374
+ {
375
+ anonymous: false,
376
+ inputs: [
377
+ {
378
+ indexed: true,
379
+ internalType: "address",
380
+ name: "implementation",
381
+ type: "address"
382
+ }
383
+ ],
384
+ name: "Upgraded",
385
+ type: "event"
121
386
  }
122
387
  ];
123
388
  export {