@gearbox-protocol/sdk 0.0.44 → 0.0.45
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/lib/core/token.d.ts +1 -2
- package/lib/core/token.js +2 -2
- package/lib/core/tokenData.d.ts +0 -4
- package/package.json +1 -1
- package/src/core/token.ts +1 -1
- package/src/core/tokenData.ts +0 -6
package/lib/core/token.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NetworkType } from "./constants";
|
|
2
2
|
import { ConvexPoolContract } from "./contracts";
|
|
3
3
|
import { TradeAction } from "./tradeTypes";
|
|
4
|
-
declare enum TokenType {
|
|
4
|
+
export declare enum TokenType {
|
|
5
5
|
CONNECTOR = 0,
|
|
6
6
|
NORMAL_TOKEN = 1,
|
|
7
7
|
CURVE_LP = 2,
|
|
@@ -70,4 +70,3 @@ export declare type TokenDataI = {
|
|
|
70
70
|
};
|
|
71
71
|
export declare const supportedTokens: Record<SupportedToken, TokenDataI>;
|
|
72
72
|
export declare const tokenDataByNetwork: Record<NetworkType, Record<SupportedToken, string>>;
|
|
73
|
-
export {};
|
package/lib/core/token.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.tokenDataByNetwork = exports.supportedTokens = exports.priority = void 0;
|
|
4
|
+
exports.tokenDataByNetwork = exports.supportedTokens = exports.priority = exports.TokenType = void 0;
|
|
5
5
|
var tradeTypes_1 = require("./tradeTypes");
|
|
6
6
|
var TokenType;
|
|
7
7
|
(function (TokenType) {
|
|
@@ -14,7 +14,7 @@ var TokenType;
|
|
|
14
14
|
TokenType[TokenType["YEARN_VAULT_OF_META_CURVE_LP"] = 6] = "YEARN_VAULT_OF_META_CURVE_LP";
|
|
15
15
|
TokenType[TokenType["CONVEX_LP_TOKEN"] = 7] = "CONVEX_LP_TOKEN";
|
|
16
16
|
TokenType[TokenType["CONVEX_STAKED_PHANTOM_TOKEN"] = 8] = "CONVEX_STAKED_PHANTOM_TOKEN";
|
|
17
|
-
})(TokenType || (TokenType = {}));
|
|
17
|
+
})(TokenType = exports.TokenType || (exports.TokenType = {}));
|
|
18
18
|
exports.priority = (_a = {},
|
|
19
19
|
_a[TokenType.CONNECTOR] = 1,
|
|
20
20
|
_a[TokenType.NORMAL_TOKEN] = 2,
|
package/lib/core/tokenData.d.ts
CHANGED
|
@@ -19,10 +19,6 @@ export interface TokenAllowance {
|
|
|
19
19
|
id: string;
|
|
20
20
|
allowance: BigNumber;
|
|
21
21
|
}
|
|
22
|
-
export declare type TokenType = "core" | "stable" | "volatile" | "lp";
|
|
23
|
-
export interface TokenSavedData {
|
|
24
|
-
type: TokenType;
|
|
25
|
-
}
|
|
26
22
|
export declare const WETHToken: Record<NetworkType, string>;
|
|
27
23
|
export declare const connectors: Record<NetworkType, Array<SupportedToken>>;
|
|
28
24
|
export declare function getConnectors(networkType: NetworkType): string[];
|
package/package.json
CHANGED
package/src/core/token.ts
CHANGED
package/src/core/tokenData.ts
CHANGED
|
@@ -39,12 +39,6 @@ export interface TokenAllowance {
|
|
|
39
39
|
allowance: BigNumber;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
export type TokenType = "core" | "stable" | "volatile" | "lp";
|
|
43
|
-
|
|
44
|
-
export interface TokenSavedData {
|
|
45
|
-
type: TokenType;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
42
|
export const WETHToken: Record<NetworkType, string> = {
|
|
49
43
|
Mainnet: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
|
50
44
|
Kovan: "0xd0a1e359811322d97991e03f863a0c30c2cf029c",
|