@typus/typus-sdk 1.2.83 → 1.2.84-tails-exp

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.
@@ -1,21 +0,0 @@
1
- export declare const WrappedToken: {
2
- [key: string]: string;
3
- };
4
- export declare const UnwrappedToken: {
5
- [key: string]: string;
6
- };
7
- export declare const MillionToken: {
8
- [key: string]: string;
9
- };
10
- export declare const RemoveMillionToken: {
11
- [key: string]: string;
12
- };
13
- export declare const LST: {
14
- [key: string]: string;
15
- };
16
- export declare const StableCoin: string[];
17
- export declare const getTokenName: ({ token, wrapped, million }: {
18
- token: string;
19
- wrapped?: boolean | undefined;
20
- million?: boolean | undefined;
21
- }) => string;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTokenName = exports.StableCoin = exports.LST = exports.RemoveMillionToken = exports.MillionToken = exports.UnwrappedToken = exports.WrappedToken = void 0;
4
- exports.WrappedToken = {
5
- ETH: "WETH",
6
- BTC: "WBTC",
7
- SOL: "WSOL",
8
- };
9
- exports.UnwrappedToken = {
10
- WETH: "ETH",
11
- WBTC: "BTC",
12
- WSOL: "SOL",
13
- };
14
- exports.MillionToken = {
15
- FUD: "MFUD",
16
- };
17
- exports.RemoveMillionToken = {
18
- MFUD: "FUD",
19
- };
20
- exports.LST = {
21
- AFSUI: "SUI",
22
- };
23
- exports.StableCoin = ["USDC", "USDT", "BUCK", "USDY"];
24
- var getTokenName = function (_a) {
25
- var _b, _c, _d, _e;
26
- var token = _a.token, wrapped = _a.wrapped, million = _a.million;
27
- var tokenName = token;
28
- if (wrapped) {
29
- tokenName = (_b = exports.WrappedToken[token]) !== null && _b !== void 0 ? _b : token;
30
- }
31
- else {
32
- tokenName = (_c = exports.UnwrappedToken[token]) !== null && _c !== void 0 ? _c : token;
33
- }
34
- return million ? (_d = exports.MillionToken[tokenName]) !== null && _d !== void 0 ? _d : tokenName : (_e = exports.RemoveMillionToken[tokenName]) !== null && _e !== void 0 ? _e : tokenName;
35
- };
36
- exports.getTokenName = getTokenName;
@@ -1,8 +0,0 @@
1
- import { Info } from "../view-function";
2
- export declare const Period: {
3
- [key: number]: string;
4
- };
5
- export declare const AbbrStrategyName: {
6
- [key: string]: string;
7
- };
8
- export declare const parseAssets: (info: Info) => string[];
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseAssets = exports.AbbrStrategyName = exports.Period = void 0;
4
- var token_1 = require("../../token");
5
- exports.Period = {
6
- 0: "daily",
7
- 1: "weekly",
8
- 2: "monthly",
9
- 3: "hourly",
10
- };
11
- exports.AbbrStrategyName = {
12
- 0: "Call",
13
- 1: "Put",
14
- 2: "Call Spread",
15
- 4: "Capped Call",
16
- 5: "Capped Put",
17
- 6: "Capped Call",
18
- };
19
- var parseAssets = function (info) {
20
- var dToken = info.depositToken, bToken = info.bidToken, oToken = info.settlementBase;
21
- return (0, token_1.typeArgsToAssets)([dToken, bToken, oToken]);
22
- };
23
- exports.parseAssets = parseAssets;