@gearbox-protocol/sdk 13.0.0-next.31 → 13.0.0-next.32

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.
@@ -22,6 +22,7 @@ __export(TokensMeta_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(TokensMeta_exports);
24
24
  var import_viem = require("viem");
25
+ var import_iSecuritizeDegenNFT = require("../../abi/310/iSecuritizeDegenNFT.js");
25
26
  var import_iSecuritizeKYCFactory = require("../../abi/310/iSecuritizeKYCFactory.js");
26
27
  var import_iStateSerializer = require("../../abi/iStateSerializer.js");
27
28
  var import_iVersion = require("../../abi/iVersion.js");
@@ -252,12 +253,25 @@ class TokensMeta extends import_utils.AddressMap {
252
253
  }
253
254
  }
254
255
  async #loadDSTokens(kycFactories) {
256
+ const degenNFTs = await this.#client.multicall({
257
+ contracts: kycFactories.map((address) => {
258
+ return {
259
+ address,
260
+ abi: import_iSecuritizeKYCFactory.iSecuritizeKYCFactoryAbi,
261
+ functionName: "getDegenNFT"
262
+ };
263
+ }),
264
+ allowFailure: false,
265
+ batchSize: 0
266
+ });
255
267
  const resp = await this.#client.multicall({
256
- contracts: kycFactories.map((address) => ({
257
- address,
258
- abi: import_iSecuritizeKYCFactory.iSecuritizeKYCFactoryAbi,
259
- functionName: "getDSTokens"
260
- })),
268
+ contracts: degenNFTs.map((address) => {
269
+ return {
270
+ address,
271
+ abi: import_iSecuritizeDegenNFT.iSecuritizeDegenNFTAbi,
272
+ functionName: "getDSTokens"
273
+ };
274
+ }),
261
275
  allowFailure: false,
262
276
  batchSize: 0
263
277
  });
@@ -2,6 +2,7 @@ import {
2
2
  decodeAbiParameters,
3
3
  erc20Abi
4
4
  } from "viem";
5
+ import { iSecuritizeDegenNFTAbi } from "../../abi/310/iSecuritizeDegenNFT.js";
5
6
  import { iSecuritizeKYCFactoryAbi } from "../../abi/310/iSecuritizeKYCFactory.js";
6
7
  import { iStateSerializerAbi } from "../../abi/iStateSerializer.js";
7
8
  import { iVersionAbi } from "../../abi/iVersion.js";
@@ -240,12 +241,25 @@ class TokensMeta extends AddressMap {
240
241
  }
241
242
  }
242
243
  async #loadDSTokens(kycFactories) {
244
+ const degenNFTs = await this.#client.multicall({
245
+ contracts: kycFactories.map((address) => {
246
+ return {
247
+ address,
248
+ abi: iSecuritizeKYCFactoryAbi,
249
+ functionName: "getDegenNFT"
250
+ };
251
+ }),
252
+ allowFailure: false,
253
+ batchSize: 0
254
+ });
243
255
  const resp = await this.#client.multicall({
244
- contracts: kycFactories.map((address) => ({
245
- address,
246
- abi: iSecuritizeKYCFactoryAbi,
247
- functionName: "getDSTokens"
248
- })),
256
+ contracts: degenNFTs.map((address) => {
257
+ return {
258
+ address,
259
+ abi: iSecuritizeDegenNFTAbi,
260
+ functionName: "getDSTokens"
261
+ };
262
+ }),
249
263
  allowFailure: false,
250
264
  batchSize: 0
251
265
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "13.0.0-next.31",
3
+ "version": "13.0.0-next.32",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",