@gearbox-protocol/sdk 11.5.1 → 11.6.0
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/abi/router/kelpLRTDepositPoolWorker.js +541 -0
- package/dist/cjs/permissionless/bindings/instance-manager.js +11 -0
- package/dist/cjs/plugins/adapters/AdaptersPlugin.js +8 -0
- package/dist/cjs/plugins/adapters/abi/actionAbi.js +6 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbi.js +14 -0
- package/dist/cjs/plugins/adapters/abi/conctructorAbiPatterns.js +15 -0
- package/dist/cjs/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +45 -0
- package/dist/cjs/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +49 -0
- package/dist/cjs/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +51 -0
- package/dist/cjs/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +48 -0
- package/dist/cjs/plugins/adapters/contracts/index.js +8 -0
- package/dist/cjs/plugins/adapters/types.js +4 -0
- package/dist/esm/abi/router/kelpLRTDepositPoolWorker.js +517 -0
- package/dist/esm/permissionless/bindings/instance-manager.js +11 -0
- package/dist/esm/plugins/adapters/AdaptersPlugin.js +12 -0
- package/dist/esm/plugins/adapters/abi/actionAbi.js +6 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbi.js +16 -0
- package/dist/esm/plugins/adapters/abi/conctructorAbiPatterns.js +13 -0
- package/dist/esm/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.js +21 -0
- package/dist/esm/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.js +25 -0
- package/dist/esm/plugins/adapters/contracts/MellowDepositQueueAdapterContract.js +27 -0
- package/dist/esm/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.js +24 -0
- package/dist/esm/plugins/adapters/contracts/index.js +4 -0
- package/dist/esm/plugins/adapters/types.js +4 -0
- package/dist/types/abi/router/kelpLRTDepositPoolWorker.d.ts +726 -0
- package/dist/types/plugins/adapters/abi/conctructorAbiPatterns.d.ts +23 -0
- package/dist/types/plugins/adapters/contracts/KelpLRTDepositPoolAdapterContract.d.ts +11 -0
- package/dist/types/plugins/adapters/contracts/KelpLRTWithdrawalManagerAdapterContract.d.ts +14 -0
- package/dist/types/plugins/adapters/contracts/MellowDepositQueueAdapterContract.d.ts +13 -0
- package/dist/types/plugins/adapters/contracts/MellowRedeemQueueAdapterContract.d.ts +12 -0
- package/dist/types/plugins/adapters/contracts/index.d.ts +4 -0
- package/dist/types/plugins/adapters/types.d.ts +5 -1
- package/package.json +1 -1
|
@@ -55,6 +55,16 @@ export declare const UINT_REFERRAL_ADAPTER_ABI: readonly [{
|
|
|
55
55
|
readonly type: "uint16";
|
|
56
56
|
readonly name: "referral";
|
|
57
57
|
}];
|
|
58
|
+
export declare const STRING_REFERRAL_ADAPTER_ABI: readonly [{
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
readonly name: "creditManager";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "address";
|
|
63
|
+
readonly name: "target";
|
|
64
|
+
}, {
|
|
65
|
+
readonly type: "string";
|
|
66
|
+
readonly name: "referral";
|
|
67
|
+
}];
|
|
58
68
|
export declare const REFERER_ID_ADAPTER_ABI: readonly [{
|
|
59
69
|
readonly type: "address";
|
|
60
70
|
readonly name: "creditManager";
|
|
@@ -120,3 +130,16 @@ export declare const STAKING_REWARDS_ADAPTER_ABI: readonly [{
|
|
|
120
130
|
readonly type: "uint16";
|
|
121
131
|
readonly name: "referral";
|
|
122
132
|
}];
|
|
133
|
+
export declare const MELLOW_DEPOSIT_ADAPTER_ABI: readonly [{
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
readonly name: "creditManager";
|
|
136
|
+
}, {
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
readonly name: "target";
|
|
139
|
+
}, {
|
|
140
|
+
readonly type: "address";
|
|
141
|
+
readonly name: "referral";
|
|
142
|
+
}, {
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
readonly name: "phantomToken";
|
|
145
|
+
}];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
declare const abi: readonly [];
|
|
6
|
+
type abi = typeof abi;
|
|
7
|
+
export declare class KelpLRTDepositPoolAdapterContract extends AbstractAdapterContract<abi> {
|
|
8
|
+
readonly allowedAssets: Address[];
|
|
9
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
declare const abi: readonly [];
|
|
6
|
+
type abi = typeof abi;
|
|
7
|
+
export declare class KelpLRTWithdrawalManagerAdapterContract extends AbstractAdapterContract<abi> {
|
|
8
|
+
readonly allowedTokensOut: {
|
|
9
|
+
tokenOut: Address;
|
|
10
|
+
phantomToken: Address;
|
|
11
|
+
}[];
|
|
12
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
declare const abi: readonly [];
|
|
6
|
+
type abi = typeof abi;
|
|
7
|
+
export declare class MellowDepositQueueAdapterContract extends AbstractAdapterContract<abi> {
|
|
8
|
+
readonly asset: Address;
|
|
9
|
+
readonly phantomToken: Address;
|
|
10
|
+
readonly referral: Address;
|
|
11
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { GearboxSDK } from "../../../sdk/index.js";
|
|
3
|
+
import type { AbstractAdapterContractOptions } from "./AbstractAdapter.js";
|
|
4
|
+
import { AbstractAdapterContract } from "./AbstractAdapter.js";
|
|
5
|
+
declare const abi: readonly [];
|
|
6
|
+
type abi = typeof abi;
|
|
7
|
+
export declare class MellowRedeemQueueAdapterContract extends AbstractAdapterContract<abi> {
|
|
8
|
+
readonly vaultToken: Address;
|
|
9
|
+
readonly phantomToken: Address;
|
|
10
|
+
constructor(sdk: GearboxSDK, args: Omit<AbstractAdapterContractOptions<abi>, "abi">);
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -19,11 +19,15 @@ export * from "./FluidDexAdapterContract.js";
|
|
|
19
19
|
export * from "./InfinifiGatewayAdapterContract.js";
|
|
20
20
|
export * from "./InfinifiUnwindingGatewayAdapterContract.js";
|
|
21
21
|
export * from "./InfraredVaultAdapterContract.js";
|
|
22
|
+
export * from "./KelpLRTDepositPoolAdapterContract.js";
|
|
23
|
+
export * from "./KelpLRTWithdrawalManagerAdapterContract.js";
|
|
22
24
|
export * from "./KodiakIslandGatewayAdapterContract.js";
|
|
23
25
|
export * from "./LidoV1AdapterContract.js";
|
|
24
26
|
export * from "./MellowClaimerAdapterContract.js";
|
|
27
|
+
export * from "./MellowDepositQueueAdapterContract.js";
|
|
25
28
|
export * from "./MellowDVVAdapterContract.js";
|
|
26
29
|
export * from "./MellowERC4626VaultAdapterContract.js";
|
|
30
|
+
export * from "./MellowRedeemQueueAdapterContract.js";
|
|
27
31
|
export * from "./MellowVaultAdapterContract.js";
|
|
28
32
|
export * from "./MellowWrapperAdapterContract.js";
|
|
29
33
|
export * from "./MidasIssuanceVaultAdapterContract.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AbiParameter } from "viem";
|
|
2
2
|
export type VersionedAbi = Record<number, readonly AbiParameter[]>;
|
|
3
3
|
export type AdapterContractTypeLegacy = "AD_AAVE_V3_LENDING_POOL" | "AD_BALANCER_VAULT" | "AD_CAMELOT_V3_ROUTER" | "AD_CONVEX_L2_BOOSTER" | "AD_CONVEX_L2_REWARD_POOL" | "AD_CONVEX_V1_BASE_REWARD_POOL" | "AD_CONVEX_V1_BOOSTER" | "AD_CURVE_STABLE_NG" | "AD_CURVE_V1_2ASSETS" | "AD_CURVE_V1_3ASSETS" | "AD_CURVE_V1_4ASSETS" | "AD_CURVE_V1_EXCHANGE_ONLY" | "AD_CURVE_V1_STECRV_POOL" | "AD_CURVE_V1_WRAPPER" | "AD_DAI_USDS_EXCHANGE" | "AD_EQUALIZER_ROUTER" | "AD_ERC4626_VAULT" | "AD_LIDO_V1" | "AD_LIDO_WSTETH_V1" | "AD_MELLOW_ERC4626_VAULT" | "AD_MELLOW_LRT_VAULT" | "AD_PENDLE_ROUTER" | "AD_STAKING_REWARDS" | "AD_SYMBIOTIC_DEFAULT_COLLATERAL" | "AD_UNISWAP_V2_ROUTER" | "AD_UNISWAP_V3_ROUTER" | "AD_VELODROME_V2_ROUTER" | "AD_YEARN_V2" | "AD_ZIRCUIT_POOL";
|
|
4
|
-
export type AdapterContractType = "ADAPTER::ACCOUNT_MIGRATOR" | "ADAPTER::BALANCER_V3_ROUTER" | "ADAPTER::BALANCER_V3_WRAPPER" | "ADAPTER::BALANCER_VAULT" | "ADAPTER::CAMELOT_V3_ROUTER" | "ADAPTER::CURVE_STABLE_NG" | "ADAPTER::CURVE_V1_2ASSETS" | "ADAPTER::CURVE_V1_3ASSETS" | "ADAPTER::CURVE_V1_4ASSETS" | "ADAPTER::CURVE_V1_STECRV_POOL" | "ADAPTER::CURVE_V1_WRAPPER" | "ADAPTER::CVX_V1_BASE_REWARD_POOL" | "ADAPTER::CVX_V1_BOOSTER" | "ADAPTER::DAI_USDS_EXCHANGE" | "ADAPTER::EQUALIZER_ROUTER" | "ADAPTER::ERC4626_VAULT" | "ADAPTER::ERC4626_VAULT_REFERRAL" | "ADAPTER::FLUID_DEX" | "ADAPTER::INFINIFI_GATEWAY" | "ADAPTER::INFINIFI_UNWINDING" | "ADAPTER::INFRARED_VAULT" | "ADAPTER::KODIAK_ISLAND_GATEWAY" | "ADAPTER::LIDO_V1" | "ADAPTER::LIDO_WSTETH_V1" | "ADAPTER::MELLOW_CLAIMER" | "ADAPTER::MELLOW_DVV" | "ADAPTER::MELLOW_ERC4626_VAULT" | "ADAPTER::MELLOW_LRT_VAULT" | "ADAPTER::MELLOW_WRAPPER" | "ADAPTER::MIDAS_ISSUANCE_VAULT" | "ADAPTER::MIDAS_REDEMPTION_VAULT" | "ADAPTER::PENDLE_ROUTER" | "ADAPTER::STAKING_REWARDS" | "ADAPTER::TRADERJOE_ROUTER" | "ADAPTER::UNISWAP_V2_ROUTER" | "ADAPTER::UNISWAP_V3_ROUTER" | "ADAPTER::UNISWAP_V4_GATEWAY" | "ADAPTER::UPSHIFT_VAULT" | "ADAPTER::VELODROME_V2_ROUTER" | "ADAPTER::YEARN_V2";
|
|
4
|
+
export type AdapterContractType = "ADAPTER::ACCOUNT_MIGRATOR" | "ADAPTER::BALANCER_V3_ROUTER" | "ADAPTER::BALANCER_V3_WRAPPER" | "ADAPTER::BALANCER_VAULT" | "ADAPTER::CAMELOT_V3_ROUTER" | "ADAPTER::CURVE_STABLE_NG" | "ADAPTER::CURVE_V1_2ASSETS" | "ADAPTER::CURVE_V1_3ASSETS" | "ADAPTER::CURVE_V1_4ASSETS" | "ADAPTER::CURVE_V1_STECRV_POOL" | "ADAPTER::CURVE_V1_WRAPPER" | "ADAPTER::CVX_V1_BASE_REWARD_POOL" | "ADAPTER::CVX_V1_BOOSTER" | "ADAPTER::DAI_USDS_EXCHANGE" | "ADAPTER::EQUALIZER_ROUTER" | "ADAPTER::ERC4626_VAULT" | "ADAPTER::ERC4626_VAULT_REFERRAL" | "ADAPTER::FLUID_DEX" | "ADAPTER::INFINIFI_GATEWAY" | "ADAPTER::INFINIFI_UNWINDING" | "ADAPTER::INFRARED_VAULT" | "ADAPTER::KELP_DEPOSIT_POOL" | "ADAPTER::KELP_WITHDRAWAL" | "ADAPTER::KODIAK_ISLAND_GATEWAY" | "ADAPTER::LIDO_V1" | "ADAPTER::LIDO_WSTETH_V1" | "ADAPTER::MELLOW_CLAIMER" | "ADAPTER::MELLOW_DVV" | "ADAPTER::MELLOW_ERC4626_VAULT" | "ADAPTER::MELLOW_LRT_VAULT" | "ADAPTER::MELLOW_WRAPPER" | "ADAPTER::MELLOW_DEPOSIT_QUEUE" | "ADAPTER::MELLOW_REDEEM_QUEUE" | "ADAPTER::MIDAS_ISSUANCE_VAULT" | "ADAPTER::MIDAS_REDEMPTION_VAULT" | "ADAPTER::PENDLE_ROUTER" | "ADAPTER::STAKING_REWARDS" | "ADAPTER::TRADERJOE_ROUTER" | "ADAPTER::UNISWAP_V2_ROUTER" | "ADAPTER::UNISWAP_V3_ROUTER" | "ADAPTER::UNISWAP_V4_GATEWAY" | "ADAPTER::UPSHIFT_VAULT" | "ADAPTER::VELODROME_V2_ROUTER" | "ADAPTER::YEARN_V2";
|
|
5
5
|
export declare enum AdapterType {
|
|
6
6
|
ACCOUNT_MIGRATOR = "ACCOUNT_MIGRATOR",
|
|
7
7
|
BALANCER_V3_ROUTER = "BALANCER_V3_ROUTER",
|
|
@@ -24,6 +24,8 @@ export declare enum AdapterType {
|
|
|
24
24
|
INFINIFI_GATEWAY = "INFINIFI_GATEWAY",
|
|
25
25
|
INFINIFI_UNWINDING = "INFINIFI_UNWINDING",
|
|
26
26
|
INFRARED_VAULT = "INFRARED_VAULT",
|
|
27
|
+
KELP_DEPOSIT = "KELP_DEPOSIT",
|
|
28
|
+
KELP_WITHDRAWAL = "KELP_WITHDRAWAL",
|
|
27
29
|
KODIAK_ISLAND_GATEWAY = "KODIAK_ISLAND_GATEWAY",
|
|
28
30
|
LIDO_V1 = "LIDO_V1",
|
|
29
31
|
LIDO_WSTETH_V1 = "LIDO_WSTETH_V1",
|
|
@@ -32,6 +34,8 @@ export declare enum AdapterType {
|
|
|
32
34
|
MELLOW_ERC4626_VAULT = "MELLOW_ERC4626_VAULT",
|
|
33
35
|
MELLOW_LRT_VAULT = "MELLOW_LRT_VAULT",
|
|
34
36
|
MELLOW_WRAPPER = "MELLOW_WRAPPER",
|
|
37
|
+
MELLOW_DEPOSIT = "MELLOW_DEPOSIT",
|
|
38
|
+
MELLOW_REDEEM = "MELLOW_REDEEM",
|
|
35
39
|
MIDAS_ISSUANCE_VAULT = "MIDAS_ISSUANCE_VAULT",
|
|
36
40
|
MIDAS_REDEMPTION_VAULT = "MIDAS_REDEMPTION_VAULT",
|
|
37
41
|
PENDLE_ROUTER = "PENDLE_ROUTER",
|