@gearbox-protocol/sdk 10.2.7 → 10.2.8

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.
@@ -36,13 +36,17 @@ class MidasRedemptionVaultAdapterContract extends import_AbstractAdapter.Abstrac
36
36
  { type: "address", name: "targetContract" },
37
37
  { type: "address", name: "gateway" },
38
38
  { type: "address", name: "mToken" },
39
- { type: "address[]", name: "allowedTokens" }
39
+ { type: "address[]", name: "allowedTokens" },
40
+ { type: "address[]", name: "allowedPhantomTokens" }
40
41
  ],
41
42
  args.baseParams.serializedParams
42
43
  );
43
44
  this.gateway = decoded[2];
44
45
  this.mToken = decoded[3];
45
- this.allowedTokens = [...decoded[4]];
46
+ this.allowedTokens = decoded[4].map((token, index) => ({
47
+ token,
48
+ phantomToken: decoded[5][index]
49
+ }));
46
50
  }
47
51
  }
48
52
  // Annotate the CommonJS export names for ESM import in node:
@@ -13,13 +13,17 @@ class MidasRedemptionVaultAdapterContract extends AbstractAdapterContract {
13
13
  { type: "address", name: "targetContract" },
14
14
  { type: "address", name: "gateway" },
15
15
  { type: "address", name: "mToken" },
16
- { type: "address[]", name: "allowedTokens" }
16
+ { type: "address[]", name: "allowedTokens" },
17
+ { type: "address[]", name: "allowedPhantomTokens" }
17
18
  ],
18
19
  args.baseParams.serializedParams
19
20
  );
20
21
  this.gateway = decoded[2];
21
22
  this.mToken = decoded[3];
22
- this.allowedTokens = [...decoded[4]];
23
+ this.allowedTokens = decoded[4].map((token, index) => ({
24
+ token,
25
+ phantomToken: decoded[5][index]
26
+ }));
23
27
  }
24
28
  }
25
29
  export {
@@ -15,6 +15,7 @@ export interface BytecodeShort extends Omit<Bytecode, "initCode" | "transactionH
15
15
  auditorNames: string[];
16
16
  }
17
17
  export interface BytecodeExtended extends Bytecode {
18
+ verificationData?: unknown;
18
19
  deployments: Deployment[];
19
20
  audits: Audit[];
20
21
  }
@@ -7,7 +7,10 @@ type abi = typeof abi;
7
7
  export declare class MidasRedemptionVaultAdapterContract extends AbstractAdapterContract<abi> {
8
8
  readonly gateway: Address;
9
9
  readonly mToken: Address;
10
- readonly allowedTokens: Address[];
10
+ readonly allowedTokens: {
11
+ token: Address;
12
+ phantomToken: Address;
13
+ }[];
11
14
  constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
12
15
  }
13
16
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "10.2.7",
3
+ "version": "10.2.8",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",