@gearbox-protocol/sdk 2.1.36 → 2.1.37

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.
Files changed (40) hide show
  1. package/lib/apy/curveAPY.js +2 -1
  2. package/lib/contracts/adapters.d.ts +1 -24
  3. package/lib/contracts/adapters.js +15 -26
  4. package/lib/contracts/contracts.d.ts +1 -112
  5. package/lib/contracts/contracts.js +15 -652
  6. package/lib/contracts/protocols.d.ts +1 -12
  7. package/lib/contracts/protocols.js +15 -14
  8. package/lib/contracts/utilsContracts.d.ts +1 -7
  9. package/lib/contracts/utilsContracts.js +15 -26
  10. package/lib/tokens/aave.d.ts +1 -20
  11. package/lib/tokens/aave.js +15 -60
  12. package/lib/tokens/balancer.d.ts +1 -12
  13. package/lib/tokens/balancer.js +15 -34
  14. package/lib/tokens/compound.d.ts +1 -11
  15. package/lib/tokens/compound.js +15 -36
  16. package/lib/tokens/convex.d.ts +1 -30
  17. package/lib/tokens/convex.js +15 -260
  18. package/lib/tokens/curveLP.d.ts +1 -27
  19. package/lib/tokens/curveLP.js +15 -139
  20. package/lib/tokens/decimals.d.ts +1 -2
  21. package/lib/tokens/decimals.js +15 -113
  22. package/lib/tokens/gear.d.ts +1 -14
  23. package/lib/tokens/gear.js +15 -45
  24. package/lib/tokens/index.d.ts +3 -0
  25. package/lib/tokens/index.js +19 -0
  26. package/lib/tokens/normal.d.ts +1 -9
  27. package/lib/tokens/normal.js +15 -192
  28. package/lib/tokens/quoted.d.ts +1 -3
  29. package/lib/tokens/quoted.js +15 -5
  30. package/lib/tokens/token.d.ts +1 -25
  31. package/lib/tokens/token.js +15 -303
  32. package/lib/tokens/tokenData.d.ts +1 -4
  33. package/lib/tokens/tokenData.js +16 -16
  34. package/lib/tokens/tokenType.d.ts +1 -15
  35. package/lib/tokens/tokenType.js +15 -17
  36. package/lib/tokens/yearn.d.ts +1 -26
  37. package/lib/tokens/yearn.js +15 -50
  38. package/package.json +2 -1
  39. package/lib/tokens/tokens.spec.d.ts +0 -1
  40. package/lib/tokens/tokens.spec.js +0 -151
@@ -1,16 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Protocols = void 0;
4
- var Protocols;
5
- (function (Protocols) {
6
- Protocols[Protocols["Uniswap"] = 0] = "Uniswap";
7
- Protocols[Protocols["Sushiswap"] = 1] = "Sushiswap";
8
- Protocols[Protocols["Curve"] = 2] = "Curve";
9
- Protocols[Protocols["Yearn"] = 3] = "Yearn";
10
- Protocols[Protocols["Convex"] = 4] = "Convex";
11
- Protocols[Protocols["Lido"] = 5] = "Lido";
12
- Protocols[Protocols["Gearbox"] = 6] = "Gearbox";
13
- Protocols[Protocols["Balancer"] = 7] = "Balancer";
14
- Protocols[Protocols["AaveV2"] = 8] = "AaveV2";
15
- Protocols[Protocols["CompoundV2"] = 9] = "CompoundV2";
16
- })(Protocols = exports.Protocols || (exports.Protocols = {}));
17
+ __exportStar(require("@gearbox-protocol/sdk-gov/lib/contracts/protocols"), exports);
@@ -1,7 +1 @@
1
- import { NetworkType } from "../core/chains";
2
- export declare const ADDRESS_PROVIDER: Record<NetworkType, string>;
3
- export declare const TIMELOCK: Record<NetworkType, string>;
4
- export declare const BLACKLIST_HELPER: Record<NetworkType, string>;
5
- export declare const DEGEN_NFT: Record<NetworkType, string>;
6
- export declare const CREATE2FACTORY: Record<NetworkType, string>;
7
- export declare const MULTISIG: Record<NetworkType, string>;
1
+ export * from "@gearbox-protocol/sdk-gov/lib/contracts/utilsContracts";
@@ -1,28 +1,17 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MULTISIG = exports.CREATE2FACTORY = exports.DEGEN_NFT = exports.BLACKLIST_HELPER = exports.TIMELOCK = exports.ADDRESS_PROVIDER = void 0;
4
- const constants_1 = require("../core/constants");
5
- exports.ADDRESS_PROVIDER = {
6
- Mainnet: "0xcF64698AFF7E5f27A11dff868AF228653ba53be0",
7
- Arbitrum: constants_1.NOT_DEPLOYED,
8
- };
9
- exports.TIMELOCK = {
10
- Mainnet: "0xa133C9A92Fb8dDB962Af1cbae58b2723A0bdf23b",
11
- Arbitrum: constants_1.NOT_DEPLOYED,
12
- };
13
- exports.BLACKLIST_HELPER = {
14
- Mainnet: "0xFfbF344741654a1B9Ab1286Cf05A42f275F67839",
15
- Arbitrum: constants_1.NOT_DEPLOYED,
16
- };
17
- exports.DEGEN_NFT = {
18
- Mainnet: "0xB829a5b349b01fc71aFE46E50dD6Ec0222A6E599",
19
- Arbitrum: constants_1.NOT_DEPLOYED,
20
- };
21
- exports.CREATE2FACTORY = {
22
- Mainnet: "0x59b7B8Dd9E6e1F934C9c3Def4a1Eb69Bc17Ec9cc",
23
- Arbitrum: constants_1.NOT_DEPLOYED,
24
- };
25
- exports.MULTISIG = {
26
- Mainnet: "0xA7D5DDc1b8557914F158076b228AA91eF613f1D5",
27
- Arbitrum: constants_1.NOT_DEPLOYED,
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
15
  };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("@gearbox-protocol/sdk-gov/lib/contracts/utilsContracts"), exports);
@@ -1,20 +1 @@
1
- import type { AaveV2PoolContract } from "../contracts/contracts";
2
- import { NormalToken } from "./normal";
3
- import type { TokenBase } from "./token";
4
- import { TokenType } from "./tokenType";
5
- export type AaveV2LPToken = "aDAI" | "aUSDC" | "aWETH" | "aUSDT";
6
- export type WrappedAaveV2LPToken = "waDAI" | "waUSDC" | "waWETH" | "waUSDT";
7
- export type AaveV2PoolTokenData = {
8
- symbol: AaveV2LPToken;
9
- type: TokenType.AAVE_V2_A_TOKEN;
10
- underlying: NormalToken;
11
- pool: AaveV2PoolContract;
12
- } & TokenBase;
13
- export type WrappedAaveV2PoolTokenData = {
14
- symbol: WrappedAaveV2LPToken;
15
- type: TokenType.WRAPPED_AAVE_V2_TOKEN;
16
- underlying: AaveV2LPToken;
17
- } & TokenBase;
18
- export declare const aaveV2Tokens: Record<AaveV2LPToken, AaveV2PoolTokenData>;
19
- export declare const wrappedAaveV2Tokens: Record<WrappedAaveV2LPToken, WrappedAaveV2PoolTokenData>;
20
- export declare const isAaveV2LPToken: (t: unknown) => t is AaveV2LPToken;
1
+ export * from "@gearbox-protocol/sdk-gov/lib/tokens/aave";
@@ -1,62 +1,17 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isAaveV2LPToken = exports.wrappedAaveV2Tokens = exports.aaveV2Tokens = void 0;
4
- const tokenType_1 = require("./tokenType");
5
- exports.aaveV2Tokens = {
6
- aDAI: {
7
- name: "AaveV2 aDAI",
8
- symbol: "aDAI",
9
- type: tokenType_1.TokenType.AAVE_V2_A_TOKEN,
10
- underlying: "DAI",
11
- pool: "AAVE_V2_DAI_POOL",
12
- },
13
- aUSDC: {
14
- name: "AaveV2 aUSDC",
15
- symbol: "aUSDC",
16
- type: tokenType_1.TokenType.AAVE_V2_A_TOKEN,
17
- underlying: "USDC",
18
- pool: "AAVE_V2_USDC_POOL",
19
- },
20
- aUSDT: {
21
- name: "AaveV2 aUSDT",
22
- symbol: "aUSDT",
23
- type: tokenType_1.TokenType.AAVE_V2_A_TOKEN,
24
- underlying: "USDT",
25
- pool: "AAVE_V2_USDT_POOL",
26
- },
27
- aWETH: {
28
- name: "AaveV2 aWETH",
29
- symbol: "aWETH",
30
- type: tokenType_1.TokenType.AAVE_V2_A_TOKEN,
31
- underlying: "WETH",
32
- pool: "AAVE_V2_WETH_POOL",
33
- },
34
- };
35
- exports.wrappedAaveV2Tokens = {
36
- waDAI: {
37
- name: "Wrapped AaveV2 aDAI",
38
- symbol: "waDAI",
39
- type: tokenType_1.TokenType.WRAPPED_AAVE_V2_TOKEN,
40
- underlying: "aDAI",
41
- },
42
- waUSDC: {
43
- name: "Wrapped AaveV2 aUSDC",
44
- symbol: "waUSDC",
45
- type: tokenType_1.TokenType.WRAPPED_AAVE_V2_TOKEN,
46
- underlying: "aUSDC",
47
- },
48
- waUSDT: {
49
- name: "Wrapped AaveV2 aUSDT",
50
- symbol: "waUSDT",
51
- type: tokenType_1.TokenType.WRAPPED_AAVE_V2_TOKEN,
52
- underlying: "aUSDT",
53
- },
54
- waWETH: {
55
- name: "Wrapped AaveV2 aWETH",
56
- symbol: "waWETH",
57
- type: tokenType_1.TokenType.WRAPPED_AAVE_V2_TOKEN,
58
- underlying: "aWETH",
59
- },
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
60
15
  };
61
- const isAaveV2LPToken = (t) => typeof t === "string" && !!exports.aaveV2Tokens[t];
62
- exports.isAaveV2LPToken = isAaveV2LPToken;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("@gearbox-protocol/sdk-gov/lib/tokens/aave"), exports);
@@ -1,12 +1 @@
1
- import { NormalToken } from "./normal";
2
- import type { TokenBase } from "./token";
3
- import { TokenType } from "./tokenType";
4
- export type BalancerLPToken = "50OHM_50DAI" | "50OHM_50WETH" | "OHM_wstETH" | "USDC_DAI_USDT";
5
- export type BalancerLpTokenData = {
6
- symbol: BalancerLPToken;
7
- type: TokenType.BALANCER_LP_TOKEN;
8
- underlying: Array<NormalToken | BalancerLPToken>;
9
- poolId: string;
10
- } & TokenBase;
11
- export declare const balancerLpTokens: Record<BalancerLPToken, BalancerLpTokenData>;
12
- export declare const isBalancerLPToken: (t: unknown) => t is BalancerLPToken;
1
+ export * from "@gearbox-protocol/sdk-gov/lib/tokens/balancer";
@@ -1,36 +1,17 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isBalancerLPToken = exports.balancerLpTokens = void 0;
4
- const tokenType_1 = require("./tokenType");
5
- exports.balancerLpTokens = {
6
- "50OHM_50DAI": {
7
- name: "Balancer 50OHM_50DAI",
8
- symbol: "50OHM_50DAI",
9
- type: tokenType_1.TokenType.BALANCER_LP_TOKEN,
10
- underlying: ["OHM", "DAI"],
11
- poolId: "0x76fcf0e8c7ff37a47a799fa2cd4c13cde0d981c90002000000000000000003d2",
12
- },
13
- "50OHM_50WETH": {
14
- name: "Balancer 50OHM_50WETH",
15
- symbol: "50OHM_50WETH",
16
- type: tokenType_1.TokenType.BALANCER_LP_TOKEN,
17
- underlying: ["OHM", "WETH"],
18
- poolId: "0xd1ec5e215e8148d76f4460e4097fd3d5ae0a35580002000000000000000003d3",
19
- },
20
- OHM_wstETH: {
21
- name: "Balancer OHM_wstETH",
22
- symbol: "OHM_wstETH",
23
- type: tokenType_1.TokenType.BALANCER_LP_TOKEN,
24
- underlying: ["OHM", "wstETH"],
25
- poolId: "0xd4f79ca0ac83192693bce4699d0c10c66aa6cf0f00020000000000000000047e",
26
- },
27
- USDC_DAI_USDT: {
28
- name: "Balancer USDC_DAI_USDT",
29
- symbol: "USDC_DAI_USDT",
30
- type: tokenType_1.TokenType.BALANCER_LP_TOKEN,
31
- underlying: ["USDC", "DAI", "USDT"],
32
- poolId: "0x79c58f70905f734641735bc61e45c19dd9ad60bc0000000000000000000004e7",
33
- },
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
34
15
  };
35
- const isBalancerLPToken = (t) => typeof t === "string" && !!exports.balancerLpTokens[t];
36
- exports.isBalancerLPToken = isBalancerLPToken;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("@gearbox-protocol/sdk-gov/lib/tokens/balancer"), exports);
@@ -1,11 +1 @@
1
- import { NormalToken } from "./normal";
2
- import type { TokenBase } from "./token";
3
- import { TokenType } from "./tokenType";
4
- export type CompoundV2LPToken = "cDAI" | "cUSDC" | "cETH" | "cUSDT" | "cLINK";
5
- export type CompoundV2PoolTokenData = {
6
- symbol: CompoundV2LPToken;
7
- type: TokenType.COMPOUND_V2_C_TOKEN;
8
- underlying: NormalToken;
9
- } & TokenBase;
10
- export declare const compoundV2Tokens: Record<CompoundV2LPToken, CompoundV2PoolTokenData>;
11
- export declare const isCompoundV2LPToken: (t: unknown) => t is CompoundV2LPToken;
1
+ export * from "@gearbox-protocol/sdk-gov/lib/tokens/compound";
@@ -1,38 +1,17 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isCompoundV2LPToken = exports.compoundV2Tokens = void 0;
4
- const tokenType_1 = require("./tokenType");
5
- exports.compoundV2Tokens = {
6
- cDAI: {
7
- name: "CompoundV2 cDAI",
8
- symbol: "cDAI",
9
- type: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN,
10
- underlying: "DAI",
11
- },
12
- cUSDC: {
13
- name: "CompoundV2 cUSDC",
14
- symbol: "cUSDC",
15
- type: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN,
16
- underlying: "USDC",
17
- },
18
- cUSDT: {
19
- name: "CompoundV2 cUSDT",
20
- symbol: "cUSDT",
21
- type: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN,
22
- underlying: "USDT",
23
- },
24
- cETH: {
25
- name: "CompoundV2 cETH",
26
- symbol: "cETH",
27
- type: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN,
28
- underlying: "WETH",
29
- },
30
- cLINK: {
31
- name: "CompoundV2 cLINK",
32
- symbol: "cLINK",
33
- type: tokenType_1.TokenType.COMPOUND_V2_C_TOKEN,
34
- underlying: "LINK",
35
- },
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
36
15
  };
37
- const isCompoundV2LPToken = (t) => typeof t === "string" && !!exports.compoundV2Tokens[t];
38
- exports.isCompoundV2LPToken = isCompoundV2LPToken;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("@gearbox-protocol/sdk-gov/lib/tokens/compound"), exports);
@@ -1,30 +1 @@
1
- import type { ConvexPoolContract, SupportedContract } from "../contracts/contracts";
2
- import type { CurveLPToken } from "./curveLP";
3
- import type { SupportedToken, TokenBase } from "./token";
4
- import { TokenType } from "./tokenType";
5
- export type ConvexLPToken = "cvx3Crv" | "cvxcrvFRAX" | "cvxsteCRV" | "cvxFRAX3CRV" | "cvxLUSD3CRV" | "cvxcrvPlain3andSUSD" | "cvxgusd3CRV" | "cvxOHMFRAXBP" | "cvxMIM_3LP3CRV" | "cvxcrvCRVETH" | "cvxcrvCVXETH" | "cvxcrvUSDTWBTCWETH" | "cvxLDOETH";
6
- export type ConvexStakedPhantomToken = "stkcvx3Crv" | "stkcvxcrvFRAX" | "stkcvxsteCRV" | "stkcvxFRAX3CRV" | "stkcvxLUSD3CRV" | "stkcvxcrvPlain3andSUSD" | "stkcvxgusd3CRV" | "stkcvxOHMFRAXBP" | "stkcvxMIM_3LP3CRV" | "stkcvxcrvCRVETH" | "stkcvxcrvCVXETH" | "stkcvxcrvUSDTWBTCWETH" | "stkcvxLDOETH";
7
- type BaseConvexToken = {
8
- pool: ConvexPoolContract;
9
- pid: number;
10
- underlying: CurveLPToken;
11
- } & TokenBase;
12
- export type ConvexLPTokenData = {
13
- symbol: ConvexLPToken;
14
- type: TokenType.CONVEX_LP_TOKEN;
15
- stakedToken: ConvexStakedPhantomToken;
16
- } & BaseConvexToken;
17
- export type ConvexPhantomTokenData = {
18
- symbol: ConvexStakedPhantomToken;
19
- type: TokenType.CONVEX_STAKED_TOKEN;
20
- lpToken: ConvexLPToken;
21
- } & BaseConvexToken;
22
- export declare const convexLpTokens: Record<ConvexLPToken, ConvexLPTokenData>;
23
- export declare const convexStakedPhantomTokens: Record<ConvexStakedPhantomToken, ConvexPhantomTokenData>;
24
- export declare const convexTokens: Record<ConvexLPToken | ConvexStakedPhantomToken, ConvexLPTokenData | ConvexPhantomTokenData>;
25
- export declare const isConvexToken: (t: unknown) => t is ConvexLPToken | ConvexStakedPhantomToken;
26
- export declare const isConvexLPToken: (t: unknown) => t is ConvexLPToken;
27
- export declare const isConvexStakedPhantomToken: (t: unknown) => t is ConvexStakedPhantomToken;
28
- export declare const convexPoolByPid: Record<number, SupportedContract>;
29
- export declare const convexLpTokenByPid: Record<number, SupportedToken>;
30
- export {};
1
+ export * from "@gearbox-protocol/sdk-gov/lib/tokens/convex";
@@ -1,262 +1,17 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convexLpTokenByPid = exports.convexPoolByPid = exports.isConvexStakedPhantomToken = exports.isConvexLPToken = exports.isConvexToken = exports.convexTokens = exports.convexStakedPhantomTokens = exports.convexLpTokens = void 0;
4
- const tokenType_1 = require("./tokenType");
5
- exports.convexLpTokens = {
6
- cvx3Crv: {
7
- name: "Convex cvx3Crv",
8
- symbol: "cvx3Crv",
9
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
10
- pool: "CONVEX_3CRV_POOL",
11
- pid: 9,
12
- underlying: "3Crv",
13
- stakedToken: "stkcvx3Crv",
14
- },
15
- cvxcrvFRAX: {
16
- name: "Convex cvxcrvFRAX",
17
- symbol: "cvxcrvFRAX",
18
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
19
- pool: "CONVEX_FRAX_USDC_POOL",
20
- pid: 100,
21
- underlying: "crvFRAX",
22
- stakedToken: "stkcvxcrvFRAX",
23
- },
24
- cvxsteCRV: {
25
- name: "Convex cvxsteCRV",
26
- symbol: "cvxsteCRV",
27
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
28
- pool: "CONVEX_STECRV_POOL",
29
- pid: 25,
30
- underlying: "steCRV",
31
- stakedToken: "stkcvxsteCRV",
32
- },
33
- cvxFRAX3CRV: {
34
- name: "Convex cvxFRAX3CRV-f",
35
- symbol: "cvxFRAX3CRV",
36
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
37
- pool: "CONVEX_FRAX3CRV_POOL",
38
- pid: 32,
39
- underlying: "FRAX3CRV",
40
- stakedToken: "stkcvxFRAX3CRV",
41
- },
42
- cvxLUSD3CRV: {
43
- name: "Convex cvxLUSD3CRV-f",
44
- symbol: "cvxLUSD3CRV",
45
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
46
- pool: "CONVEX_LUSD3CRV_POOL",
47
- pid: 33,
48
- underlying: "LUSD3CRV",
49
- stakedToken: "stkcvxLUSD3CRV",
50
- },
51
- cvxcrvPlain3andSUSD: {
52
- name: "Convex cvxcrvPlain3andSUSD",
53
- symbol: "cvxcrvPlain3andSUSD",
54
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
55
- pool: "CONVEX_SUSD_POOL",
56
- pid: 4,
57
- underlying: "crvPlain3andSUSD",
58
- stakedToken: "stkcvxcrvPlain3andSUSD",
59
- },
60
- cvxgusd3CRV: {
61
- name: "Convex cvxgusd3CRV",
62
- symbol: "cvxgusd3CRV",
63
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
64
- pool: "CONVEX_GUSD_POOL",
65
- pid: 10,
66
- underlying: "gusd3CRV",
67
- stakedToken: "stkcvxgusd3CRV",
68
- },
69
- cvxOHMFRAXBP: {
70
- name: "Convex cvxOHMFRAXBP",
71
- symbol: "cvxOHMFRAXBP",
72
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
73
- pool: "CONVEX_OHMFRAXBP_POOL",
74
- pid: 138,
75
- underlying: "OHMFRAXBP",
76
- stakedToken: "stkcvxOHMFRAXBP",
77
- },
78
- cvxMIM_3LP3CRV: {
79
- name: "Convex cvxMIM-3LP3CRV-f",
80
- symbol: "cvxMIM_3LP3CRV",
81
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
82
- pool: "CONVEX_MIM3CRV_POOL",
83
- pid: 40,
84
- underlying: "MIM_3LP3CRV",
85
- stakedToken: "stkcvxMIM_3LP3CRV",
86
- },
87
- cvxcrvCRVETH: {
88
- name: "Convex cvxcrvCRVETH",
89
- symbol: "cvxcrvCRVETH",
90
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
91
- pool: "CONVEX_CRVETH_POOL",
92
- pid: 61,
93
- underlying: "crvCRVETH",
94
- stakedToken: "stkcvxcrvCRVETH",
95
- },
96
- cvxcrvCVXETH: {
97
- name: "Convex cvxcrvCVXETH",
98
- symbol: "cvxcrvCVXETH",
99
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
100
- pool: "CONVEX_CVXETH_POOL",
101
- pid: 64,
102
- underlying: "crvCVXETH",
103
- stakedToken: "stkcvxcrvCVXETH",
104
- },
105
- cvxcrvUSDTWBTCWETH: {
106
- name: "Convex cvxcrvUSDTWBTCWETH",
107
- symbol: "cvxcrvUSDTWBTCWETH",
108
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
109
- pool: "CONVEX_3CRYPTO_POOL",
110
- pid: 188,
111
- underlying: "crvUSDTWBTCWETH",
112
- stakedToken: "stkcvxcrvUSDTWBTCWETH",
113
- },
114
- cvxLDOETH: {
115
- name: "Convex cvxLDOETH",
116
- symbol: "cvxLDOETH",
117
- type: tokenType_1.TokenType.CONVEX_LP_TOKEN,
118
- pool: "CONVEX_LDOETH_POOL",
119
- pid: 149,
120
- underlying: "LDOETH",
121
- stakedToken: "stkcvxLDOETH",
122
- },
123
- };
124
- exports.convexStakedPhantomTokens = {
125
- stkcvx3Crv: {
126
- name: "Convex stkcvx3Crv",
127
- symbol: "stkcvx3Crv",
128
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
129
- pool: "CONVEX_3CRV_POOL",
130
- pid: 9,
131
- underlying: "3Crv",
132
- lpToken: "cvx3Crv",
133
- },
134
- stkcvxcrvFRAX: {
135
- name: "Convex stkcvxcrvFRAX",
136
- symbol: "stkcvxcrvFRAX",
137
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
138
- pool: "CONVEX_FRAX_USDC_POOL",
139
- pid: 100,
140
- underlying: "crvFRAX",
141
- lpToken: "cvxcrvFRAX",
142
- },
143
- stkcvxsteCRV: {
144
- name: "Convex stkcvxsteCRV",
145
- symbol: "stkcvxsteCRV",
146
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
147
- pool: "CONVEX_STECRV_POOL",
148
- pid: 25,
149
- underlying: "steCRV",
150
- lpToken: "cvxsteCRV",
151
- },
152
- stkcvxFRAX3CRV: {
153
- name: "Convex stkcvxFRAX3CRV-f",
154
- symbol: "stkcvxFRAX3CRV",
155
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
156
- pool: "CONVEX_FRAX3CRV_POOL",
157
- pid: 32,
158
- underlying: "FRAX3CRV",
159
- lpToken: "cvxFRAX3CRV",
160
- },
161
- stkcvxLUSD3CRV: {
162
- name: "Convex stkcvxLUSD3CRV-f",
163
- symbol: "stkcvxLUSD3CRV",
164
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
165
- pool: "CONVEX_LUSD3CRV_POOL",
166
- pid: 33,
167
- underlying: "LUSD3CRV",
168
- lpToken: "cvxLUSD3CRV",
169
- },
170
- stkcvxcrvPlain3andSUSD: {
171
- name: "Convex stkcvxcrvPlain3andSUSD",
172
- symbol: "stkcvxcrvPlain3andSUSD",
173
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
174
- pool: "CONVEX_SUSD_POOL",
175
- pid: 4,
176
- underlying: "crvPlain3andSUSD",
177
- lpToken: "cvxcrvPlain3andSUSD",
178
- },
179
- stkcvxgusd3CRV: {
180
- name: "Convex stkcvxgusd3CRV",
181
- symbol: "stkcvxgusd3CRV",
182
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
183
- pool: "CONVEX_GUSD_POOL",
184
- pid: 10,
185
- underlying: "gusd3CRV",
186
- lpToken: "cvxgusd3CRV",
187
- },
188
- stkcvxOHMFRAXBP: {
189
- name: "Convex stkcvxOHMFRAXBP",
190
- symbol: "stkcvxOHMFRAXBP",
191
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
192
- pool: "CONVEX_OHMFRAXBP_POOL",
193
- pid: 138,
194
- underlying: "OHMFRAXBP",
195
- lpToken: "cvxOHMFRAXBP",
196
- },
197
- stkcvxMIM_3LP3CRV: {
198
- name: "Convex stkcvxMIM_3LP3CRV-f",
199
- symbol: "stkcvxMIM_3LP3CRV",
200
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
201
- pool: "CONVEX_MIM3CRV_POOL",
202
- pid: 40,
203
- underlying: "MIM_3LP3CRV",
204
- lpToken: "cvxMIM_3LP3CRV",
205
- },
206
- stkcvxcrvCRVETH: {
207
- name: "Convex stkcvxcrvCRVETH",
208
- symbol: "stkcvxcrvCRVETH",
209
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
210
- pool: "CONVEX_CRVETH_POOL",
211
- pid: 61,
212
- underlying: "crvCRVETH",
213
- lpToken: "cvxcrvCRVETH",
214
- },
215
- stkcvxcrvCVXETH: {
216
- name: "Convex stkcvxcrvCVXETH",
217
- symbol: "stkcvxcrvCVXETH",
218
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
219
- pool: "CONVEX_CVXETH_POOL",
220
- pid: 64,
221
- underlying: "crvCVXETH",
222
- lpToken: "cvxcrvCVXETH",
223
- },
224
- stkcvxcrvUSDTWBTCWETH: {
225
- name: "Convex stkcvxcrv3crypto",
226
- symbol: "stkcvxcrvUSDTWBTCWETH",
227
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
228
- pool: "CONVEX_3CRYPTO_POOL",
229
- pid: 188,
230
- underlying: "crvUSDTWBTCWETH",
231
- lpToken: "cvxcrvUSDTWBTCWETH",
232
- },
233
- stkcvxLDOETH: {
234
- name: "Convex stkcvxLDOETH",
235
- symbol: "stkcvxLDOETH",
236
- type: tokenType_1.TokenType.CONVEX_STAKED_TOKEN,
237
- pool: "CONVEX_LDOETH_POOL",
238
- pid: 149,
239
- underlying: "LDOETH",
240
- lpToken: "cvxLDOETH",
241
- },
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
242
15
  };
243
- exports.convexTokens = {
244
- ...exports.convexLpTokens,
245
- ...exports.convexStakedPhantomTokens,
246
- };
247
- const isConvexToken = (t) => typeof t === "string" &&
248
- !!exports.convexTokens[t];
249
- exports.isConvexToken = isConvexToken;
250
- const isConvexLPToken = (t) => typeof t === "string" && !!exports.convexLpTokens[t];
251
- exports.isConvexLPToken = isConvexLPToken;
252
- const isConvexStakedPhantomToken = (t) => typeof t === "string" &&
253
- !!exports.convexStakedPhantomTokens[t];
254
- exports.isConvexStakedPhantomToken = isConvexStakedPhantomToken;
255
- exports.convexPoolByPid = Object.values(exports.convexLpTokens).reduce((acc, value) => {
256
- acc[value.pid] = value.pool;
257
- return acc;
258
- }, {});
259
- exports.convexLpTokenByPid = Object.entries(exports.convexLpTokens).reduce((acc, [token, data]) => {
260
- acc[data.pid] = token;
261
- return acc;
262
- }, {});
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("@gearbox-protocol/sdk-gov/lib/tokens/convex"), exports);