@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.
- package/dist/cjs/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +6 -2
- package/dist/esm/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.js +6 -2
- package/dist/types/permissionless/core/bytecode.d.ts +1 -0
- package/dist/types/plugins/adapters/contracts/MidasRedemptionVaultAdapterContract.d.ts +4 -1
- package/package.json +1 -1
|
@@ -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 =
|
|
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 =
|
|
23
|
+
this.allowedTokens = decoded[4].map((token, index) => ({
|
|
24
|
+
token,
|
|
25
|
+
phantomToken: decoded[5][index]
|
|
26
|
+
}));
|
|
23
27
|
}
|
|
24
28
|
}
|
|
25
29
|
export {
|
|
@@ -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:
|
|
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 {};
|