@gainsnetwork/sdk 0.0.0-me-rc1
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/LICENSE +21 -0
- package/README.md +11 -0
- package/lib/backend/globalTrades/index.d.ts +11 -0
- package/lib/backend/globalTrades/index.js +69 -0
- package/lib/backend/index.d.ts +3 -0
- package/lib/backend/index.js +28 -0
- package/lib/backend/tradingVariables/backend.types.d.ts +337 -0
- package/lib/backend/tradingVariables/backend.types.js +2 -0
- package/lib/backend/tradingVariables/converter.d.ts +38 -0
- package/lib/backend/tradingVariables/converter.js +359 -0
- package/lib/backend/tradingVariables/index.d.ts +5 -0
- package/lib/backend/tradingVariables/index.js +98 -0
- package/lib/backend/tradingVariables/types.d.ts +115 -0
- package/lib/backend/tradingVariables/types.js +14 -0
- package/lib/constants.d.ts +483 -0
- package/lib/constants.js +516 -0
- package/lib/contracts/addresses.d.ts +3 -0
- package/lib/contracts/addresses.js +35 -0
- package/lib/contracts/addresses.json +266 -0
- package/lib/contracts/index.d.ts +14 -0
- package/lib/contracts/index.js +92 -0
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +9327 -0
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.js +2 -0
- package/lib/contracts/types/generated/GToken.d.ts +1917 -0
- package/lib/contracts/types/generated/GToken.js +2 -0
- package/lib/contracts/types/generated/GTokenOpenPnlFeed.d.ts +557 -0
- package/lib/contracts/types/generated/GTokenOpenPnlFeed.js +2 -0
- package/lib/contracts/types/generated/common.d.ts +22 -0
- package/lib/contracts/types/generated/common.js +2 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +276 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +21557 -0
- package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.d.ts +59 -0
- package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.js +765 -0
- package/lib/contracts/types/generated/factories/GToken__factory.d.ts +121 -0
- package/lib/contracts/types/generated/factories/GToken__factory.js +2867 -0
- package/lib/contracts/types/generated/factories/index.d.ts +3 -0
- package/lib/contracts/types/generated/factories/index.js +12 -0
- package/lib/contracts/types/generated/index.d.ts +7 -0
- package/lib/contracts/types/generated/index.js +33 -0
- package/lib/contracts/types/index.d.ts +37 -0
- package/lib/contracts/types/index.js +30 -0
- package/lib/contracts/utils/borrowingFees.d.ts +9 -0
- package/lib/contracts/utils/borrowingFees.js +43 -0
- package/lib/contracts/utils/index.d.ts +3 -0
- package/lib/contracts/utils/index.js +19 -0
- package/lib/contracts/utils/openTrades.d.ts +12 -0
- package/lib/contracts/utils/openTrades.js +172 -0
- package/lib/contracts/utils/pairs.d.ts +18 -0
- package/lib/contracts/utils/pairs.js +602 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +30 -0
- package/lib/markets/collateral/converter.d.ts +5 -0
- package/lib/markets/collateral/converter.js +11 -0
- package/lib/markets/collateral/index.d.ts +1 -0
- package/lib/markets/collateral/index.js +17 -0
- package/lib/markets/collateral/types.d.ts +7 -0
- package/lib/markets/collateral/types.js +2 -0
- package/lib/markets/commodities.d.ts +1 -0
- package/lib/markets/commodities.js +7 -0
- package/lib/markets/crypto.d.ts +1 -0
- package/lib/markets/crypto.js +6 -0
- package/lib/markets/forex.d.ts +3 -0
- package/lib/markets/forex.js +8 -0
- package/lib/markets/holdingFees/index.d.ts +46 -0
- package/lib/markets/holdingFees/index.js +104 -0
- package/lib/markets/holdingFees/types.d.ts +23 -0
- package/lib/markets/holdingFees/types.js +5 -0
- package/lib/markets/index.d.ts +11 -0
- package/lib/markets/index.js +27 -0
- package/lib/markets/indices.d.ts +1 -0
- package/lib/markets/indices.js +6 -0
- package/lib/markets/leverage/builder.d.ts +12 -0
- package/lib/markets/leverage/builder.js +25 -0
- package/lib/markets/leverage/getMarketLeverageRestrictions.d.ts +7 -0
- package/lib/markets/leverage/getMarketLeverageRestrictions.js +38 -0
- package/lib/markets/leverage/index.d.ts +3 -0
- package/lib/markets/leverage/index.js +19 -0
- package/lib/markets/leverage/types.d.ts +15 -0
- package/lib/markets/leverage/types.js +2 -0
- package/lib/markets/oi/converter.d.ts +62 -0
- package/lib/markets/oi/converter.js +111 -0
- package/lib/markets/oi/index.d.ts +49 -0
- package/lib/markets/oi/index.js +77 -0
- package/lib/markets/oi/types.d.ts +89 -0
- package/lib/markets/oi/types.js +6 -0
- package/lib/markets/price/builder.d.ts +25 -0
- package/lib/markets/price/builder.js +69 -0
- package/lib/markets/price/index.d.ts +7 -0
- package/lib/markets/price/index.js +23 -0
- package/lib/markets/price/marketPrice.d.ts +13 -0
- package/lib/markets/price/marketPrice.js +35 -0
- package/lib/markets/price/signedPrices.d.ts +36 -0
- package/lib/markets/price/signedPrices.js +181 -0
- package/lib/markets/price/types.d.ts +50 -0
- package/lib/markets/price/types.js +5 -0
- package/lib/markets/schedules/builders.d.ts +7 -0
- package/lib/markets/schedules/builders.js +81 -0
- package/lib/markets/schedules/checkers.d.ts +7 -0
- package/lib/markets/schedules/checkers.js +36 -0
- package/lib/markets/schedules/holidays.d.ts +4 -0
- package/lib/markets/schedules/holidays.js +77 -0
- package/lib/markets/schedules/index.d.ts +9 -0
- package/lib/markets/schedules/index.js +45 -0
- package/lib/markets/schedules/types.d.ts +43 -0
- package/lib/markets/schedules/types.js +37 -0
- package/lib/markets/stocks.d.ts +3 -0
- package/lib/markets/stocks.js +15 -0
- package/lib/pricing/depthBands.d.ts +39 -0
- package/lib/pricing/depthBands.js +94 -0
- package/lib/pricing/index.d.ts +4 -0
- package/lib/pricing/index.js +20 -0
- package/lib/trade/counterTrade/index.d.ts +2 -0
- package/lib/trade/counterTrade/index.js +18 -0
- package/lib/trade/counterTrade/types.d.ts +7 -0
- package/lib/trade/counterTrade/types.js +2 -0
- package/lib/trade/counterTrade/validateCounterTrade.d.ts +10 -0
- package/lib/trade/counterTrade/validateCounterTrade.js +29 -0
- package/lib/trade/effectiveLeverage/getTradeNewEffectiveLeverage.d.ts +20 -0
- package/lib/trade/effectiveLeverage/getTradeNewEffectiveLeverage.js +42 -0
- package/lib/trade/effectiveLeverage/index.d.ts +2 -0
- package/lib/trade/effectiveLeverage/index.js +21 -0
- package/lib/trade/effectiveLeverage/types.d.ts +30 -0
- package/lib/trade/effectiveLeverage/types.js +2 -0
- package/lib/trade/fees/borrowing/builder.d.ts +14 -0
- package/lib/trade/fees/borrowing/builder.js +33 -0
- package/lib/trade/fees/borrowing/converter.d.ts +17 -0
- package/lib/trade/fees/borrowing/converter.js +46 -0
- package/lib/trade/fees/borrowing/index.d.ts +81 -0
- package/lib/trade/fees/borrowing/index.js +259 -0
- package/lib/trade/fees/borrowing/types.d.ts +36 -0
- package/lib/trade/fees/borrowing/types.js +2 -0
- package/lib/trade/fees/borrowingV2/builder.d.ts +6 -0
- package/lib/trade/fees/borrowingV2/builder.js +23 -0
- package/lib/trade/fees/borrowingV2/converter.d.ts +75 -0
- package/lib/trade/fees/borrowingV2/converter.js +132 -0
- package/lib/trade/fees/borrowingV2/fetcher.d.ts +76 -0
- package/lib/trade/fees/borrowingV2/fetcher.js +179 -0
- package/lib/trade/fees/borrowingV2/index.d.ts +48 -0
- package/lib/trade/fees/borrowingV2/index.js +112 -0
- package/lib/trade/fees/borrowingV2/types.d.ts +95 -0
- package/lib/trade/fees/borrowingV2/types.js +5 -0
- package/lib/trade/fees/converter.d.ts +48 -0
- package/lib/trade/fees/converter.js +114 -0
- package/lib/trade/fees/fundingFees/builder.d.ts +9 -0
- package/lib/trade/fees/fundingFees/builder.js +38 -0
- package/lib/trade/fees/fundingFees/converter.d.ts +102 -0
- package/lib/trade/fees/fundingFees/converter.js +196 -0
- package/lib/trade/fees/fundingFees/fetcher.d.ts +66 -0
- package/lib/trade/fees/fundingFees/fetcher.js +141 -0
- package/lib/trade/fees/fundingFees/index.d.ts +124 -0
- package/lib/trade/fees/fundingFees/index.js +309 -0
- package/lib/trade/fees/fundingFees/pairContext.d.ts +33 -0
- package/lib/trade/fees/fundingFees/pairContext.js +17 -0
- package/lib/trade/fees/fundingFees/types.d.ts +77 -0
- package/lib/trade/fees/fundingFees/types.js +5 -0
- package/lib/trade/fees/index.d.ts +11 -0
- package/lib/trade/fees/index.js +87 -0
- package/lib/trade/fees/tiers/converter.d.ts +64 -0
- package/lib/trade/fees/tiers/converter.js +100 -0
- package/lib/trade/fees/tiers/index.d.ts +46 -0
- package/lib/trade/fees/tiers/index.js +135 -0
- package/lib/trade/fees/tiers/types.d.ts +22 -0
- package/lib/trade/fees/tiers/types.js +8 -0
- package/lib/trade/fees/trading/builder.d.ts +19 -0
- package/lib/trade/fees/trading/builder.js +21 -0
- package/lib/trade/fees/trading/converter.d.ts +32 -0
- package/lib/trade/fees/trading/converter.js +47 -0
- package/lib/trade/fees/trading/index.d.ts +62 -0
- package/lib/trade/fees/trading/index.js +157 -0
- package/lib/trade/fees/trading/types.d.ts +46 -0
- package/lib/trade/fees/trading/types.js +5 -0
- package/lib/trade/index.d.ts +10 -0
- package/lib/trade/index.js +26 -0
- package/lib/trade/liquidation/builder.d.ts +25 -0
- package/lib/trade/liquidation/builder.js +58 -0
- package/lib/trade/liquidation/converter.d.ts +23 -0
- package/lib/trade/liquidation/converter.js +46 -0
- package/lib/trade/liquidation/index.d.ts +29 -0
- package/lib/trade/liquidation/index.js +216 -0
- package/lib/trade/liquidation/types.d.ts +38 -0
- package/lib/trade/liquidation/types.js +2 -0
- package/lib/trade/oiWindows.d.ts +3 -0
- package/lib/trade/oiWindows.js +19 -0
- package/lib/trade/pnl/builder.d.ts +16 -0
- package/lib/trade/pnl/builder.js +43 -0
- package/lib/trade/pnl/converter.d.ts +47 -0
- package/lib/trade/pnl/converter.js +72 -0
- package/lib/trade/pnl/index.d.ts +91 -0
- package/lib/trade/pnl/index.js +301 -0
- package/lib/trade/pnl/types.d.ts +79 -0
- package/lib/trade/pnl/types.js +5 -0
- package/lib/trade/priceImpact/close/builder.d.ts +23 -0
- package/lib/trade/priceImpact/close/builder.js +44 -0
- package/lib/trade/priceImpact/close/index.d.ts +22 -0
- package/lib/trade/priceImpact/close/index.js +137 -0
- package/lib/trade/priceImpact/close/types.d.ts +47 -0
- package/lib/trade/priceImpact/close/types.js +5 -0
- package/lib/trade/priceImpact/cumulVol/builder.d.ts +22 -0
- package/lib/trade/priceImpact/cumulVol/builder.js +53 -0
- package/lib/trade/priceImpact/cumulVol/converter.d.ts +94 -0
- package/lib/trade/priceImpact/cumulVol/converter.js +155 -0
- package/lib/trade/priceImpact/cumulVol/index.d.ts +109 -0
- package/lib/trade/priceImpact/cumulVol/index.js +316 -0
- package/lib/trade/priceImpact/cumulVol/types.d.ts +11 -0
- package/lib/trade/priceImpact/cumulVol/types.js +2 -0
- package/lib/trade/priceImpact/index.d.ts +21 -0
- package/lib/trade/priceImpact/index.js +79 -0
- package/lib/trade/priceImpact/open/builder.d.ts +21 -0
- package/lib/trade/priceImpact/open/builder.js +42 -0
- package/lib/trade/priceImpact/open/index.d.ts +23 -0
- package/lib/trade/priceImpact/open/index.js +82 -0
- package/lib/trade/priceImpact/open/types.d.ts +45 -0
- package/lib/trade/priceImpact/open/types.js +5 -0
- package/lib/trade/priceImpact/skew/builder.d.ts +12 -0
- package/lib/trade/priceImpact/skew/builder.js +27 -0
- package/lib/trade/priceImpact/skew/converter.d.ts +46 -0
- package/lib/trade/priceImpact/skew/converter.js +81 -0
- package/lib/trade/priceImpact/skew/fetcher.d.ts +60 -0
- package/lib/trade/priceImpact/skew/fetcher.js +160 -0
- package/lib/trade/priceImpact/skew/index.d.ts +53 -0
- package/lib/trade/priceImpact/skew/index.js +148 -0
- package/lib/trade/priceImpact/skew/types.d.ts +44 -0
- package/lib/trade/priceImpact/skew/types.js +5 -0
- package/lib/trade/spread.d.ts +5 -0
- package/lib/trade/spread.js +19 -0
- package/lib/trade/types.d.ts +777 -0
- package/lib/trade/types.js +478 -0
- package/lib/trade/utils.d.ts +18 -0
- package/lib/trade/utils.js +30 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/packing.d.ts +2 -0
- package/lib/utils/packing.js +39 -0
- package/lib/vault/index.d.ts +10 -0
- package/lib/vault/index.js +10 -0
- package/package.json +106 -0
|
@@ -0,0 +1,602 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPairDescription = exports.fetchOpenInterest = exports.fetchFees = exports.fetchDepthBandsMappingDecoded = exports.fetchDepthBandsMapping = exports.fetchPairDepthBandsDecoded = exports.fetchPairDepthBands = exports.fetchPairs = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
6
|
+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
7
|
+
const types_1 = require("../../trade/types");
|
|
8
|
+
const fetchPairs = async (contracts, pairIxs) => {
|
|
9
|
+
if (!contracts) {
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
12
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
13
|
+
try {
|
|
14
|
+
const pairs = await Promise.all(pairIxs.map(pairIndex => multiCollatContract.pairs(pairIndex)));
|
|
15
|
+
return pairs.map((pair, index) => {
|
|
16
|
+
return {
|
|
17
|
+
name: pair.from + "/" + pair.to,
|
|
18
|
+
from: pair.from,
|
|
19
|
+
to: pair.to,
|
|
20
|
+
feeIndex: parseInt(pair.feeIndex.toString()),
|
|
21
|
+
groupIndex: parseInt(pair.groupIndex.toString()),
|
|
22
|
+
pairIndex: pairIxs[index],
|
|
23
|
+
spreadP: parseFloat(pair.spreadP.toString()) / 1e12,
|
|
24
|
+
description: (0, exports.getPairDescription)(pairIxs[index]),
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
console.error(`Unexpected error while fetching pairs!`);
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.fetchPairs = fetchPairs;
|
|
34
|
+
const fetchPairDepthBands = async (contracts, pairIxs) => {
|
|
35
|
+
if (!contracts || pairIxs.length === 0) {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
39
|
+
try {
|
|
40
|
+
// Returns array of PairDepthBands structs (encoded slots)
|
|
41
|
+
return await multiCollatContract.getPairDepthBandsArray(pairIxs);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
console.error(`Unexpected error while fetching pair depth bands!`);
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.fetchPairDepthBands = fetchPairDepthBands;
|
|
49
|
+
const fetchPairDepthBandsDecoded = async (contracts, pairIxs) => {
|
|
50
|
+
if (!contracts || pairIxs.length === 0) {
|
|
51
|
+
return {
|
|
52
|
+
totalDepthAboveUsd: [],
|
|
53
|
+
totalDepthBelowUsd: [],
|
|
54
|
+
bandsAbove: [],
|
|
55
|
+
bandsBelow: [],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
59
|
+
try {
|
|
60
|
+
// Returns decoded values
|
|
61
|
+
// Using quoted signature for overloaded function
|
|
62
|
+
const [totalDepthAboveUsd, totalDepthBelowUsd, bandsAbove, bandsBelow] = await multiCollatContract.getPairDepthBandsDecodedArray(pairIxs);
|
|
63
|
+
return {
|
|
64
|
+
totalDepthAboveUsd: totalDepthAboveUsd.map((v) => parseFloat(v.toString())),
|
|
65
|
+
totalDepthBelowUsd: totalDepthBelowUsd.map((v) => parseFloat(v.toString())),
|
|
66
|
+
bandsAbove: bandsAbove.map((bands) => bands.map((b) => parseInt(b.toString()))),
|
|
67
|
+
bandsBelow: bandsBelow.map((bands) => bands.map((b) => parseInt(b.toString()))),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
console.error(`Unexpected error while fetching decoded pair depth bands!`);
|
|
72
|
+
throw error;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
exports.fetchPairDepthBandsDecoded = fetchPairDepthBandsDecoded;
|
|
76
|
+
const fetchDepthBandsMapping = async (contracts) => {
|
|
77
|
+
if (!contracts) {
|
|
78
|
+
return { slot1: "0", slot2: "0" };
|
|
79
|
+
}
|
|
80
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
81
|
+
try {
|
|
82
|
+
// Returns two uint256 slots
|
|
83
|
+
const [slot1, slot2] = await multiCollatContract.getDepthBandsMapping();
|
|
84
|
+
return {
|
|
85
|
+
slot1: slot1.toString(),
|
|
86
|
+
slot2: slot2.toString(),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
console.error(`Unexpected error while fetching depth bands mapping!`);
|
|
91
|
+
throw error;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
exports.fetchDepthBandsMapping = fetchDepthBandsMapping;
|
|
95
|
+
const fetchDepthBandsMappingDecoded = async (contracts) => {
|
|
96
|
+
if (!contracts) {
|
|
97
|
+
return [];
|
|
98
|
+
}
|
|
99
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
100
|
+
try {
|
|
101
|
+
// Returns array of 30 uint16 values
|
|
102
|
+
const bands = await multiCollatContract.getDepthBandsMappingDecoded();
|
|
103
|
+
return bands.map((b) => parseInt(b.toString()));
|
|
104
|
+
}
|
|
105
|
+
catch (error) {
|
|
106
|
+
console.error(`Unexpected error while fetching decoded depth bands mapping!`);
|
|
107
|
+
throw error;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
exports.fetchDepthBandsMappingDecoded = fetchDepthBandsMappingDecoded;
|
|
111
|
+
const fetchFees = async (contracts, feeIxs) => {
|
|
112
|
+
if (!contracts) {
|
|
113
|
+
return [];
|
|
114
|
+
}
|
|
115
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
116
|
+
try {
|
|
117
|
+
const fees = await Promise.all(feeIxs.map(pairIndex => multiCollatContract.fees(pairIndex)));
|
|
118
|
+
return fees.map(fee => {
|
|
119
|
+
return {
|
|
120
|
+
totalPositionSizeFeeP: parseFloat(fee.totalPositionSizeFeeP.toString()) / 1e12,
|
|
121
|
+
totalLiqCollateralFeeP: parseFloat(fee.totalLiqCollateralFeeP.toString()) / 1e12,
|
|
122
|
+
oraclePositionSizeFeeP: parseFloat(fee.oraclePositionSizeFeeP.toString()) / 1e12,
|
|
123
|
+
minPositionSizeUsd: parseFloat(fee.minPositionSizeUsd.toString()) / 1e3,
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
catch (error) {
|
|
128
|
+
console.error(`Unexpected error while fetching pairs!`);
|
|
129
|
+
throw error;
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
exports.fetchFees = fetchFees;
|
|
133
|
+
const fetchOpenInterest = async (contracts, collateralIndex, pairIxs) => {
|
|
134
|
+
if (pairIxs.length === 0) {
|
|
135
|
+
return [];
|
|
136
|
+
}
|
|
137
|
+
const openInterests = (await contracts.gnsMultiCollatDiamond.getAllBorrowingPairs(collateralIndex))[1];
|
|
138
|
+
return pairIxs.map(pairIndex => {
|
|
139
|
+
const openInterest = openInterests[pairIndex];
|
|
140
|
+
if (!openInterest) {
|
|
141
|
+
return { long: 0, short: 0, max: 0 };
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
long: parseFloat(openInterest[0].toString()) / 1e10,
|
|
145
|
+
short: parseFloat(openInterest[1].toString()) / 1e10,
|
|
146
|
+
max: parseFloat(openInterest[2].toString()) / 1e10,
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
exports.fetchOpenInterest = fetchOpenInterest;
|
|
151
|
+
const getPairDescription = (pairIndex) => {
|
|
152
|
+
return PAIR_INDEX_TO_DESCRIPTION[pairIndex] || "";
|
|
153
|
+
};
|
|
154
|
+
exports.getPairDescription = getPairDescription;
|
|
155
|
+
const PAIR_INDEX_TO_DESCRIPTION = {
|
|
156
|
+
[types_1.PairIndex.BTCUSD]: "Bitcoin to US Dollar",
|
|
157
|
+
[types_1.PairIndex.ETHUSD]: "Ethereum to US Dollar",
|
|
158
|
+
[types_1.PairIndex.LINKUSD]: "Chainlink to US Dollar",
|
|
159
|
+
[types_1.PairIndex.DOGEUSD]: "Dogecoin to US Dollar",
|
|
160
|
+
[types_1.PairIndex.MATICUSD]: "Polygon to US Dollar",
|
|
161
|
+
[types_1.PairIndex.ADAUSD]: "Cardano to US Dollar",
|
|
162
|
+
[types_1.PairIndex.SUSHIUSD]: "Sushiswap to US Dollar",
|
|
163
|
+
[types_1.PairIndex.AAVEUSD]: "Aave to US Dollar",
|
|
164
|
+
[types_1.PairIndex.ALGOUSD]: "Algorand to US Dollar",
|
|
165
|
+
[types_1.PairIndex.BATUSD]: "Basic Attention Token to US Dollar",
|
|
166
|
+
[types_1.PairIndex.COMPUSD]: "Compound to US Dollar",
|
|
167
|
+
[types_1.PairIndex.DOTUSD]: "Polkadot to US Dollar",
|
|
168
|
+
[types_1.PairIndex.EOSUSD]: "EOS to US Dollar",
|
|
169
|
+
[types_1.PairIndex.LTCUSD]: "Litecoin to US Dollar",
|
|
170
|
+
[types_1.PairIndex.MANAUSD]: "Decentraland to US Dollar",
|
|
171
|
+
[types_1.PairIndex.OMGUSD]: "OMG Network to US Dollar",
|
|
172
|
+
[types_1.PairIndex.SNXUSD]: "Synthetix to US Dollar",
|
|
173
|
+
[types_1.PairIndex.UNIUSD]: "Uniswap to US Dollar",
|
|
174
|
+
[types_1.PairIndex.XLMUSD]: "Stellar to US Dollar",
|
|
175
|
+
[types_1.PairIndex.XRPUSD]: "Ripple to US Dollar",
|
|
176
|
+
[types_1.PairIndex.ZECUSD]: "Zcash to US Dollar",
|
|
177
|
+
[types_1.PairIndex.EURUSD]: "Euro to US Dollar",
|
|
178
|
+
[types_1.PairIndex.USDJPY]: "US Dollar to Japanese Yen",
|
|
179
|
+
[types_1.PairIndex.GBPUSD]: "British Pound to US Dollar",
|
|
180
|
+
[types_1.PairIndex.USDCHF]: "US Dollar to Swiss Franc",
|
|
181
|
+
[types_1.PairIndex.AUDUSD]: "Australian Dollar to US Dollar",
|
|
182
|
+
[types_1.PairIndex.USDCAD]: "US Dollar to Canadian Dollar",
|
|
183
|
+
[types_1.PairIndex.NZDUSD]: "New Zealand Dollar to US Dollar",
|
|
184
|
+
[types_1.PairIndex.EURCHF]: "Euro to Swiss Franc",
|
|
185
|
+
[types_1.PairIndex.EURJPY]: "Euro to Japanese Yen",
|
|
186
|
+
[types_1.PairIndex.EURGBP]: "Euro to British Pound",
|
|
187
|
+
[types_1.PairIndex.LUNAUSD]: "Terra to US Dollar",
|
|
188
|
+
[types_1.PairIndex.YFIUSD]: "Yearn.finance to US Dollar",
|
|
189
|
+
[types_1.PairIndex.SOLUSD]: "Solana to US Dollar",
|
|
190
|
+
[types_1.PairIndex.XTZUSD]: "Tezos to US Dollar",
|
|
191
|
+
[types_1.PairIndex.BCHUSD]: "Bitcoin Cash to US Dollar",
|
|
192
|
+
[types_1.PairIndex.BNTUSD]: "Bancor to US Dollar",
|
|
193
|
+
[types_1.PairIndex.CRVUSD]: "Curve DAO Token to US Dollar",
|
|
194
|
+
[types_1.PairIndex.DASHUSD]: "Dash to US Dollar",
|
|
195
|
+
[types_1.PairIndex.ETCUSD]: "Ethereum Classic to US Dollar",
|
|
196
|
+
[types_1.PairIndex.ICPUSD]: "Internet Computer to US Dollar",
|
|
197
|
+
[types_1.PairIndex.MKRUSD]: "Maker to US Dollar",
|
|
198
|
+
[types_1.PairIndex.NEOUSD]: "NEO to US Dollar",
|
|
199
|
+
[types_1.PairIndex.THETAUSD]: "Theta Network to US Dollar",
|
|
200
|
+
[types_1.PairIndex.TRXUSD]: "TRON to US Dollar",
|
|
201
|
+
[types_1.PairIndex.ZRXUSD]: "0x to US Dollar",
|
|
202
|
+
[types_1.PairIndex.SANDUSD]: "The Sandbox to US Dollar",
|
|
203
|
+
[types_1.PairIndex.BNBUSD]: "Binance Coin to US Dollar",
|
|
204
|
+
[types_1.PairIndex.AXSUSD]: "Axie Infinity to US Dollar",
|
|
205
|
+
[types_1.PairIndex.GRTUSD]: "The Graph to US Dollar",
|
|
206
|
+
[types_1.PairIndex.HBARUSD]: "Hedera Hashgraph to US Dollar",
|
|
207
|
+
[types_1.PairIndex.XMRUSD]: "Monero to US Dollar",
|
|
208
|
+
[types_1.PairIndex.ENJUSD]: "Enjin Coin to US Dollar",
|
|
209
|
+
[types_1.PairIndex.FTMUSD]: "Fantom to US Dollar",
|
|
210
|
+
[types_1.PairIndex.FTTUSD]: "FTX Token to US Dollar",
|
|
211
|
+
[types_1.PairIndex.APEUSD]: "ApeCoin to US Dollar",
|
|
212
|
+
[types_1.PairIndex.CHZUSD]: "Chiliz to US Dollar",
|
|
213
|
+
[types_1.PairIndex.SHIBUSD]: "Shiba Inu to US Dollar",
|
|
214
|
+
[types_1.PairIndex.AAPLUSD]: "Apple to US Dollar",
|
|
215
|
+
[types_1.PairIndex.FBUSD]: "Facebook to US Dollar",
|
|
216
|
+
[types_1.PairIndex.GOOGLUSD]: "Google to US Dollar",
|
|
217
|
+
[types_1.PairIndex.AMZNUSD]: "Amazon to US Dollar",
|
|
218
|
+
[types_1.PairIndex.MSFTUSD]: "Microsoft to US Dollar",
|
|
219
|
+
[types_1.PairIndex.TSLAUSD]: "Tesla to US Dollar",
|
|
220
|
+
[types_1.PairIndex.SNAPUSD]: "Snapchat to US Dollar",
|
|
221
|
+
[types_1.PairIndex.NVDAUSD]: "Nvidia to US Dollar",
|
|
222
|
+
[types_1.PairIndex.VUSD]: "Visa to US Dollar",
|
|
223
|
+
[types_1.PairIndex.MAUSD]: "Mastercard to US Dollar",
|
|
224
|
+
[types_1.PairIndex.PFEUSD]: "Pfizer to US Dollar",
|
|
225
|
+
[types_1.PairIndex.KOUSD]: "Coca-Cola to US Dollar",
|
|
226
|
+
[types_1.PairIndex.DISUSD]: "Disney to US Dollar",
|
|
227
|
+
[types_1.PairIndex.GMEUSD]: "GameStop to US Dollar",
|
|
228
|
+
[types_1.PairIndex.NKEUSD]: "Nike to US Dollar",
|
|
229
|
+
[types_1.PairIndex.AMDUSD]: "AMD to US Dollar",
|
|
230
|
+
[types_1.PairIndex.PYPLUSD]: "PayPal to US Dollar",
|
|
231
|
+
[types_1.PairIndex.ABNBUSD]: "Airbnb to US Dollar",
|
|
232
|
+
[types_1.PairIndex.BAUSD]: "Boeing to US Dollar",
|
|
233
|
+
[types_1.PairIndex.SBUXUSD]: "Starbucks to US Dollar",
|
|
234
|
+
[types_1.PairIndex.WMTUSD]: "Walmart to US Dollar",
|
|
235
|
+
[types_1.PairIndex.INTCUSD]: "Intel to US Dollar",
|
|
236
|
+
[types_1.PairIndex.MCDUSD]: "McDonald's to US Dollar",
|
|
237
|
+
[types_1.PairIndex.METAUSD]: "Meta Platforms to US Dollar",
|
|
238
|
+
[types_1.PairIndex.GOOGLUSD2]: "Google to US Dollar",
|
|
239
|
+
[types_1.PairIndex.GMEUSD2]: "GameStop to US Dollar",
|
|
240
|
+
[types_1.PairIndex.AMZNUSD2]: "Amazon to US Dollar",
|
|
241
|
+
[types_1.PairIndex.TSLAUSD2]: "Tesla to US Dollar",
|
|
242
|
+
[types_1.PairIndex.SPYUSD]: "SPDR S&P 500 ETF Trust to US Dollar",
|
|
243
|
+
[types_1.PairIndex.QQQUSD]: "Invesco QQQ Trust to US Dollar",
|
|
244
|
+
[types_1.PairIndex.IWMUSD]: "iShares Russell 2000 ETF to US Dollar",
|
|
245
|
+
[types_1.PairIndex.DIAUSD]: "SPDR Dow Jones Industrial Average ETF Trust to US Dollar",
|
|
246
|
+
[types_1.PairIndex.XAUUSD]: "Gold to US Dollar",
|
|
247
|
+
[types_1.PairIndex.XAGUSD]: "Silver to US Dollar",
|
|
248
|
+
[types_1.PairIndex.USDCNH]: "US Dollar to Chinese Yuan Offshore",
|
|
249
|
+
[types_1.PairIndex.USDSGD]: "US Dollar to Singapore Dollar",
|
|
250
|
+
[types_1.PairIndex.EURSEK]: "Euro to Swedish Krona",
|
|
251
|
+
[types_1.PairIndex.USDKRW]: "US Dollar to South Korean Won",
|
|
252
|
+
[types_1.PairIndex.EURNOK]: "Euro to Norwegian Krone",
|
|
253
|
+
[types_1.PairIndex.USDINR]: "US Dollar to Indian Rupee",
|
|
254
|
+
[types_1.PairIndex.USDMXN]: "US Dollar to Mexican Peso",
|
|
255
|
+
[types_1.PairIndex.USDTWD]: "US Dollar to Taiwan New Dollar",
|
|
256
|
+
[types_1.PairIndex.USDZAR]: "US Dollar to South African Rand",
|
|
257
|
+
[types_1.PairIndex.USDBRL]: "US Dollar to Brazilian Real",
|
|
258
|
+
[types_1.PairIndex.AVAXUSD]: "Avalanche to US Dollar",
|
|
259
|
+
[types_1.PairIndex.ATOMUSD]: "Cosmos to US Dollar",
|
|
260
|
+
[types_1.PairIndex.NEARUSD]: "NEAR Protocol to US Dollar",
|
|
261
|
+
[types_1.PairIndex.QNTUSD]: "Quant to US Dollar",
|
|
262
|
+
[types_1.PairIndex.IOTAUSD]: "IOTA to US Dollar",
|
|
263
|
+
[types_1.PairIndex.TONUSD]: "The Open Network to US Dollar",
|
|
264
|
+
[types_1.PairIndex.RPLUSD]: "Rocket Pool to US Dollar",
|
|
265
|
+
[types_1.PairIndex.ARBUSD]: "Arbitrum to US Dollar",
|
|
266
|
+
[types_1.PairIndex.EURAUD]: "Euro to Australian Dollar",
|
|
267
|
+
[types_1.PairIndex.EURNZD]: "Euro to New Zealand Dollar",
|
|
268
|
+
[types_1.PairIndex.EURCAD]: "Euro to Canadian Dollar",
|
|
269
|
+
[types_1.PairIndex.GBPAUD]: "British Pound to Australian Dollar",
|
|
270
|
+
[types_1.PairIndex.GBPNZD]: "British Pound to New Zealand Dollar",
|
|
271
|
+
[types_1.PairIndex.GBPCAD]: "British Pound to Canadian Dollar",
|
|
272
|
+
[types_1.PairIndex.GBPCHF]: "British Pound to Swiss Franc",
|
|
273
|
+
[types_1.PairIndex.GBPJPY]: "British Pound to Japanese Yen",
|
|
274
|
+
[types_1.PairIndex.AUDNZD]: "Australian Dollar to New Zealand Dollar",
|
|
275
|
+
[types_1.PairIndex.AUDCAD]: "Australian Dollar to Canadian Dollar",
|
|
276
|
+
[types_1.PairIndex.AUDCHF]: "Australian Dollar to Swiss Franc",
|
|
277
|
+
[types_1.PairIndex.AUDJPY]: "Australian Dollar to Japanese Yen",
|
|
278
|
+
[types_1.PairIndex.NZDCAD]: "New Zealand Dollar to Canadian Dollar",
|
|
279
|
+
[types_1.PairIndex.NZDCHF]: "New Zealand Dollar to Swiss Franc",
|
|
280
|
+
[types_1.PairIndex.NZDJPY]: "New Zealand Dollar to Japanese Yen",
|
|
281
|
+
[types_1.PairIndex.CADCHF]: "Canadian Dollar to Swiss Franc",
|
|
282
|
+
[types_1.PairIndex.CADJPY]: "Canadian Dollar to Japanese Yen",
|
|
283
|
+
[types_1.PairIndex.CHFJPY]: "Swiss Franc to Japanese Yen",
|
|
284
|
+
[types_1.PairIndex.LDOUSD]: "Lido DAO to US Dollar",
|
|
285
|
+
[types_1.PairIndex.INJUSD]: "Injective Protocol to US Dollar",
|
|
286
|
+
[types_1.PairIndex.RUNEUSD]: "THORChain to US Dollar",
|
|
287
|
+
[types_1.PairIndex.CAKEUSD]: "PancakeSwap to US Dollar",
|
|
288
|
+
[types_1.PairIndex.FXSUSD]: "Frax Share to US Dollar",
|
|
289
|
+
[types_1.PairIndex.TWTUSD]: "Trust Wallet Token to US Dollar",
|
|
290
|
+
[types_1.PairIndex.PEPEUSD]: "Pepe to US Dollar",
|
|
291
|
+
[types_1.PairIndex.DYDXUSD]: "dYdX to US Dollar",
|
|
292
|
+
[types_1.PairIndex.GMXUSD]: "GMX to US Dollar",
|
|
293
|
+
[types_1.PairIndex.FILUSD]: "Filecoin to US Dollar",
|
|
294
|
+
[types_1.PairIndex.APTUSD]: "Aptos to US Dollar",
|
|
295
|
+
[types_1.PairIndex.IMXUSD]: "Immutable X to US Dollar",
|
|
296
|
+
[types_1.PairIndex.VETUSD]: "VeChain to US Dollar",
|
|
297
|
+
[types_1.PairIndex.OPUSD]: "Optimism to US Dollar",
|
|
298
|
+
[types_1.PairIndex.RNDRUSD]: "Render Token to US Dollar",
|
|
299
|
+
[types_1.PairIndex.EGLDUSD]: "Elrond to US Dollar",
|
|
300
|
+
[types_1.PairIndex.TIAUSD]: "Tia to US Dollar",
|
|
301
|
+
[types_1.PairIndex.STXUSD]: "Stacks to US Dollar",
|
|
302
|
+
[types_1.PairIndex.FLOWUSD]: "Flow to US Dollar",
|
|
303
|
+
[types_1.PairIndex.KAVAUSD]: "Kava to US Dollar",
|
|
304
|
+
[types_1.PairIndex.GALAUSD]: "Gala to US Dollar",
|
|
305
|
+
[types_1.PairIndex.MINAUSD]: "Mina to US Dollar",
|
|
306
|
+
[types_1.PairIndex.ORDIUSD]: "Ordi to US Dollar",
|
|
307
|
+
[types_1.PairIndex.ILVUSD]: "Illuvium to US Dollar",
|
|
308
|
+
[types_1.PairIndex.KLAYUSD]: "Klaytn to US Dollar",
|
|
309
|
+
[types_1.PairIndex.SUIUSD]: "Sui to US Dollar",
|
|
310
|
+
[types_1.PairIndex.BLURUSD]: "Blur to US Dollar",
|
|
311
|
+
[types_1.PairIndex.FETUSD]: "Fetch.ai to US Dollar",
|
|
312
|
+
[types_1.PairIndex.CFXUSD]: "Conflux to US Dollar",
|
|
313
|
+
[types_1.PairIndex.BEAMUSD]: "Beam to US Dollar",
|
|
314
|
+
[types_1.PairIndex.ARUSD]: "Arweave to US Dollar",
|
|
315
|
+
[types_1.PairIndex.SEIUSD]: "Sei to US Dollar",
|
|
316
|
+
[types_1.PairIndex.BTTUSD]: "BitTorrent to US Dollar",
|
|
317
|
+
[types_1.PairIndex.ROSEUSD]: "Oasis Network to US Dollar",
|
|
318
|
+
[types_1.PairIndex.WOOUSD]: "WOO Network to US Dollar",
|
|
319
|
+
[types_1.PairIndex.AGIXUSD]: "SingularityNET to US Dollar",
|
|
320
|
+
[types_1.PairIndex.ZILUSD]: "Zilliqa to US Dollar",
|
|
321
|
+
[types_1.PairIndex.GMTUSD]: "STEPN to US Dollar",
|
|
322
|
+
[types_1.PairIndex.ASTRUSD]: "Astar to US Dollar",
|
|
323
|
+
[types_1.PairIndex.ONEINCHUSD]: "1inch to US Dollar",
|
|
324
|
+
[types_1.PairIndex.FLOKIUSD]: "Floki Inu to US Dollar",
|
|
325
|
+
[types_1.PairIndex.QTUMUSD]: "Qtum to US Dollar",
|
|
326
|
+
[types_1.PairIndex.OCEANUSD]: "Ocean Protocol to US Dollar",
|
|
327
|
+
[types_1.PairIndex.WLDUSD]: "Worldcoin to US Dollar",
|
|
328
|
+
[types_1.PairIndex.MASKUSD]: "Mask Network to US Dollar",
|
|
329
|
+
[types_1.PairIndex.CELOUSD]: "Celo to US Dollar",
|
|
330
|
+
[types_1.PairIndex.LRCUSD]: "Loopring to US Dollar",
|
|
331
|
+
[types_1.PairIndex.ENSUSD]: "Ethereum Name Service to US Dollar",
|
|
332
|
+
[types_1.PairIndex.MEMEUSD]: "Meme to US Dollar",
|
|
333
|
+
[types_1.PairIndex.ANKRUSD]: "Ankr to US Dollar",
|
|
334
|
+
[types_1.PairIndex.IOTXUSD]: "IoTeX to US Dollar",
|
|
335
|
+
[types_1.PairIndex.ICXUSD]: "ICON to US Dollar",
|
|
336
|
+
[types_1.PairIndex.KSMUSD]: "Kusama to US Dollar",
|
|
337
|
+
[types_1.PairIndex.RVNUSD]: "Ravencoin to US Dollar",
|
|
338
|
+
[types_1.PairIndex.ANTUSD]: "Aragon to US Dollar",
|
|
339
|
+
[types_1.PairIndex.WAVESUSD]: "Waves to US Dollar",
|
|
340
|
+
[types_1.PairIndex.SKLUSD]: "SKALE to US Dollar",
|
|
341
|
+
[types_1.PairIndex.SUPERUSD]: "SuperVerse to US Dollar",
|
|
342
|
+
[types_1.PairIndex.BALUSD]: "Balancer to US Dollar",
|
|
343
|
+
[types_1.PairIndex.WTIUSD]: "Oil to US Dollar",
|
|
344
|
+
[types_1.PairIndex.XPTUSD]: "Platinum to US Dollar",
|
|
345
|
+
[types_1.PairIndex.XPDUSD]: "Palladium to US Dollar",
|
|
346
|
+
[types_1.PairIndex.HGUSD]: "Copper to US Dollar",
|
|
347
|
+
[types_1.PairIndex.JUPUSD]: "Jupiter to US Dollar",
|
|
348
|
+
[types_1.PairIndex.MANTAUSD]: "Manta to US Dollar",
|
|
349
|
+
[types_1.PairIndex.BONKUSD]: "Bonk to US Dollar",
|
|
350
|
+
[types_1.PairIndex.PENDLEUSD]: "Pendle to US Dollar",
|
|
351
|
+
[types_1.PairIndex.OSMOUSD]: "Osmosis to US Dollar",
|
|
352
|
+
[types_1.PairIndex.ALTUSD]: "AltLayer to US Dollar",
|
|
353
|
+
[types_1.PairIndex.UMAUSD]: "UMA to US Dollar",
|
|
354
|
+
[types_1.PairIndex.MAGICUSD]: "Magic to US Dollar",
|
|
355
|
+
[types_1.PairIndex.API3USD]: "API3 to US Dollar",
|
|
356
|
+
[types_1.PairIndex.STRKUSD]: "Starknet to US Dollar",
|
|
357
|
+
[types_1.PairIndex.DYMUSD]: "Dymension to US Dollar",
|
|
358
|
+
[types_1.PairIndex.NTRNUSD]: "Neutron to US Dollar",
|
|
359
|
+
[types_1.PairIndex.PYTHUSD]: "Pyth Network to US Dollar",
|
|
360
|
+
[types_1.PairIndex.SCUSD]: "Siacoin to US Dollar",
|
|
361
|
+
[types_1.PairIndex.WIFUSD]: "dogwifhat to US Dollar",
|
|
362
|
+
[types_1.PairIndex.PIXELUSD]: "Pixels to US Dollar",
|
|
363
|
+
[types_1.PairIndex.JTOUSD]: "Jito to US Dollar",
|
|
364
|
+
[types_1.PairIndex.MAVIAUSD]: "Heroes of Mavia to US Dollar",
|
|
365
|
+
[types_1.PairIndex.MYROUSD]: "Myro to US Dollar",
|
|
366
|
+
[types_1.PairIndex.STGUSD]: "Stargate to US Dollar",
|
|
367
|
+
[types_1.PairIndex.BOMEUSD]: "Book Of Meme to US Dollar",
|
|
368
|
+
[types_1.PairIndex.ETHFIUSD]: "EtherFi to US Dollar",
|
|
369
|
+
[types_1.PairIndex.METISUSD]: "Metis to US Dollar",
|
|
370
|
+
[types_1.PairIndex.AEVOUSD]: "Aevo to US Dollar",
|
|
371
|
+
[types_1.PairIndex.ONDOUSD]: "Ondo to US Dollar",
|
|
372
|
+
[types_1.PairIndex.MNTUSD]: "Mantle to US Dollar",
|
|
373
|
+
[types_1.PairIndex.KASUSD]: "Kaspa to US Dollar",
|
|
374
|
+
[types_1.PairIndex.RONINUSD]: "Ronin to US Dollar",
|
|
375
|
+
[types_1.PairIndex.ENAUSD]: "Ethena to US Dollar",
|
|
376
|
+
[types_1.PairIndex.WUSD]: "Wormhole to US Dollar",
|
|
377
|
+
[types_1.PairIndex.ZEUSUSD]: "Zeus to US Dollar",
|
|
378
|
+
[types_1.PairIndex.TNSRUSD]: "Tensor to US Dollar",
|
|
379
|
+
[types_1.PairIndex.TAOUSD]: "Bittensor to US Dollar",
|
|
380
|
+
[types_1.PairIndex.OMNIUSD]: "Omni Network to US Dollar",
|
|
381
|
+
[types_1.PairIndex.PRCLUSD]: "Parcl to US Dollar",
|
|
382
|
+
[types_1.PairIndex.MERLUSD]: "Merlin Chain to US Dollar",
|
|
383
|
+
[types_1.PairIndex.SAFEUSD]: "Safe to US Dollar",
|
|
384
|
+
[types_1.PairIndex.SAGAUSD]: "Saga to US Dollar",
|
|
385
|
+
[types_1.PairIndex.LLUSD]: "Light Link to US Dollar",
|
|
386
|
+
[types_1.PairIndex.MSNUSD]: "Meson Network to US Dollar",
|
|
387
|
+
[types_1.PairIndex.REZUSD]: "Renzo to US Dollar",
|
|
388
|
+
[types_1.PairIndex.NOTUSD]: "Notcoin to US Dollar",
|
|
389
|
+
[types_1.PairIndex.IOUSD]: "Ionet to US Dollar",
|
|
390
|
+
[types_1.PairIndex.BRETTUSD]: "Brett to US Dollar",
|
|
391
|
+
[types_1.PairIndex.ATHUSD]: "Aethir to US Dollar",
|
|
392
|
+
[types_1.PairIndex.ZROUSD]: "LayerZero to US Dollar",
|
|
393
|
+
[types_1.PairIndex.ZKUSD]: "ZKsync to US Dollar",
|
|
394
|
+
[types_1.PairIndex.LISTAUSD]: "Lista DAO to US Dollar",
|
|
395
|
+
[types_1.PairIndex.BLASTUSD]: "Blast to US Dollar",
|
|
396
|
+
[types_1.PairIndex.RATSUSD]: "Rats to US Dollar",
|
|
397
|
+
[types_1.PairIndex.BNXUSD]: "BinaryX to US Dollar",
|
|
398
|
+
[types_1.PairIndex.PEOPLEUSD]: "Constitution DAO to US Dollar",
|
|
399
|
+
[types_1.PairIndex.TURBOUSD]: "Turbo to US Dollar",
|
|
400
|
+
[types_1.PairIndex.SATSUSD]: "SATS Ordinals to US Dollar",
|
|
401
|
+
[types_1.PairIndex.POPCATUSD]: "Popcat to US Dollar",
|
|
402
|
+
[types_1.PairIndex.MOGUSD]: "Mog Coin to US Dollar",
|
|
403
|
+
[types_1.PairIndex.OMUSD]: "Mantra Chain to US Dollar",
|
|
404
|
+
[types_1.PairIndex.COREUSD]: "Core to US Dollar",
|
|
405
|
+
[types_1.PairIndex.JASMYUSD]: "Jasmy Coin to US Dollar",
|
|
406
|
+
[types_1.PairIndex.DARUSD]: "Mines of Dalarnia to US Dollar",
|
|
407
|
+
[types_1.PairIndex.MEWUSD]: "cat in a dogs world to US Dollar",
|
|
408
|
+
[types_1.PairIndex.DEGENUSD]: "Degen to US Dollar",
|
|
409
|
+
[types_1.PairIndex.SLERFUSD]: "Slerf to US Dollar",
|
|
410
|
+
[types_1.PairIndex.UXLINKUSD]: "UXLINK to US Dollar",
|
|
411
|
+
[types_1.PairIndex.AVAILUSD]: "Avail to US Dollar",
|
|
412
|
+
[types_1.PairIndex.BANANAUSD]: "Banana Gun to US Dollar",
|
|
413
|
+
[types_1.PairIndex.RAREUSD]: "SuperRare to US Dollar",
|
|
414
|
+
[types_1.PairIndex.SYSUSD]: "Syscoin to US Dollar",
|
|
415
|
+
[types_1.PairIndex.NMRUSD]: "Numeraire to US Dollar",
|
|
416
|
+
[types_1.PairIndex.RSRUSD]: "Reserve Rights to US Dollar",
|
|
417
|
+
[types_1.PairIndex.SYNUSD]: "Synapse to US Dollar",
|
|
418
|
+
[types_1.PairIndex.AUCTIONUSD]: "Bounce to US Dollar",
|
|
419
|
+
[types_1.PairIndex.ALICEUSD]: "My Neighbor Alice to US Dollar",
|
|
420
|
+
[types_1.PairIndex.SUNUSD]: "Sun to US Dollar",
|
|
421
|
+
[types_1.PairIndex.TRBUSD]: "Tellor tributes to US Dollar",
|
|
422
|
+
[types_1.PairIndex.DOGSUSD]: "DOGS to US Dollar",
|
|
423
|
+
[types_1.PairIndex.SSVUSD]: "ssv.network to US Dollar",
|
|
424
|
+
[types_1.PairIndex.PONKEUSD]: "Ponke to US Dollar",
|
|
425
|
+
[types_1.PairIndex.POLUSD]: "POL (ex-MATIC) to US Dollar",
|
|
426
|
+
[types_1.PairIndex.RDNTUSD]: "Radiant Capital to US Dollar",
|
|
427
|
+
[types_1.PairIndex.FLUXUSD]: "Flux to US Dollar",
|
|
428
|
+
[types_1.PairIndex.NEIROUSD]: "Neiro on ETH to US Dollar",
|
|
429
|
+
[types_1.PairIndex.SUNDOGUSD]: "Sundog to US Dollar",
|
|
430
|
+
[types_1.PairIndex.CATUSD]: "Simon's Cat to US Dollar",
|
|
431
|
+
[types_1.PairIndex.BABYDOGEUSD]: "Baby Doge Coin to US Dollar",
|
|
432
|
+
[types_1.PairIndex.REEFUSD]: "Reef to US Dollar",
|
|
433
|
+
[types_1.PairIndex.CKBUSD]: "Nervos Network to US Dollar",
|
|
434
|
+
[types_1.PairIndex.CATIUSD]: "Catizen to US Dollar",
|
|
435
|
+
[types_1.PairIndex.LOOMUSD]: "Loom Network to US Dollar",
|
|
436
|
+
[types_1.PairIndex.ZETAUSD]: "ZetaChain to US Dollar",
|
|
437
|
+
[types_1.PairIndex.HMSTRUSD]: "Hamster Kombat to US Dollar",
|
|
438
|
+
[types_1.PairIndex.EIGENUSD]: "EigenLayer to US Dollar",
|
|
439
|
+
[types_1.PairIndex.POLYXUSD]: "Polymesh to US Dollar",
|
|
440
|
+
[types_1.PairIndex.MOODENGUSD]: "Moo Deng to US Dollar",
|
|
441
|
+
[types_1.PairIndex.MOTHERUSD]: "Mother Iggy to US Dollar",
|
|
442
|
+
[types_1.PairIndex.AEROUSD]: "Aerodrome Finance to US Dollar",
|
|
443
|
+
[types_1.PairIndex.CVCUSD]: "Civic to US Dollar",
|
|
444
|
+
[types_1.PairIndex.NEIROCTOUSD]: "Neiro CTO to US Dollar",
|
|
445
|
+
[types_1.PairIndex.ARKUSD]: "Ark to US Dollar",
|
|
446
|
+
[types_1.PairIndex.NPCUSD]: "Non-Playable Coin to US Dollar",
|
|
447
|
+
[types_1.PairIndex.ORBSUSD]: "ORBS to US Dollar",
|
|
448
|
+
[types_1.PairIndex.APUUSD]: "Apu Apustaja to US Dollar",
|
|
449
|
+
[types_1.PairIndex.BSVUSD]: "Bitcoin SV to US Dollar",
|
|
450
|
+
[types_1.PairIndex.HIPPOUSD]: "sudeng to US Dollar",
|
|
451
|
+
[types_1.PairIndex.GOATUSD]: "Goatseus Maximus to US Dollar",
|
|
452
|
+
[types_1.PairIndex.DOGUSD]: "DOG GO TO THE MOON (Runes) to US Dollar",
|
|
453
|
+
[types_1.PairIndex.HOTUSD]: "Holo to US Dollar",
|
|
454
|
+
[types_1.PairIndex.STORJUSD]: "Storj to US Dollar",
|
|
455
|
+
[types_1.PairIndex.RAYUSD]: "Raydium to US Dollar",
|
|
456
|
+
[types_1.PairIndex.BTCDEGEN]: "Bitcoin to US Dollar",
|
|
457
|
+
[types_1.PairIndex.PNUTUSD]: "Peanut the Squirrel to US Dollar",
|
|
458
|
+
[types_1.PairIndex.ACTUSD]: "The AI Prophecy to US Dollar",
|
|
459
|
+
[types_1.PairIndex.GRASSUSD]: "Grass to US Dollar",
|
|
460
|
+
[types_1.PairIndex.ZENUSD]: "Horizen to US Dollar",
|
|
461
|
+
[types_1.PairIndex.LUMIAUSD]: "Lumia to US Dollar",
|
|
462
|
+
[types_1.PairIndex.ALPHUSD]: "Alephium to US Dollar",
|
|
463
|
+
[types_1.PairIndex.VIRTUALUSD]: "Virtuals Protocol to US Dollar",
|
|
464
|
+
[types_1.PairIndex.SPXUSD]: "SPX6900 to US Dollar",
|
|
465
|
+
[types_1.PairIndex.ACXUSD]: "Across Protocol to US Dollar",
|
|
466
|
+
[types_1.PairIndex.CHILLGUYUSD]: "Just a chill guy to US Dollar",
|
|
467
|
+
[types_1.PairIndex.CHEXUSD]: "CHEX to US Dollar",
|
|
468
|
+
[types_1.PairIndex.BITCOINUSD]: "HarryPotterObamaSonic10Inu to US Dollar",
|
|
469
|
+
[types_1.PairIndex.ETHDEGEN]: "Ethereum to US Dollar",
|
|
470
|
+
[types_1.PairIndex.SOLDEGEN]: "Solana to US Dollar",
|
|
471
|
+
[types_1.PairIndex.MOVEUSD]: "Movement to US Dollar",
|
|
472
|
+
[types_1.PairIndex.MEUSD]: "Magic Eden to US Dollar",
|
|
473
|
+
[types_1.PairIndex.COWUSD]: "CoW Protocol to US Dollar",
|
|
474
|
+
[types_1.PairIndex.AVAUSD]: "Travala to US Dollar",
|
|
475
|
+
[types_1.PairIndex.USUALUSD]: "Usual to US Dollar",
|
|
476
|
+
[types_1.PairIndex.PENGUUSD]: "Pudgy Penguins to US Dollar",
|
|
477
|
+
[types_1.PairIndex.FARTCOINUSD]: "Fartcoin to US Dollar",
|
|
478
|
+
[types_1.PairIndex.ZEREBROUSD]: "Zerebro to US Dollar",
|
|
479
|
+
[types_1.PairIndex.AI16ZUSD]: "ai16z to US Dollar",
|
|
480
|
+
[types_1.PairIndex.AIXBTUSD]: "aixbt by Virtuals to US Dollar",
|
|
481
|
+
[types_1.PairIndex.BIOUSD]: "Bio Protocol to US Dollar",
|
|
482
|
+
[types_1.PairIndex.XRPDEGEN]: "Ripple to US Dollar",
|
|
483
|
+
[types_1.PairIndex.BNBDEGEN]: "Binance Coin to US Dollar",
|
|
484
|
+
[types_1.PairIndex.TRUMPUSD]: "Official Trump to US Dollar",
|
|
485
|
+
[types_1.PairIndex.MELANIAUSD]: "Melania Meme to US Dollar",
|
|
486
|
+
[types_1.PairIndex.MODEUSD]: "Mode to US Dollar",
|
|
487
|
+
[types_1.PairIndex.HYPEUSD]: "Hyperliquid to US Dollar",
|
|
488
|
+
[types_1.PairIndex.SUSD]: "Sonic (prev. FTM) to US Dollar",
|
|
489
|
+
[types_1.PairIndex.ARCUSD]: "AI Rig Complex to US Dollar",
|
|
490
|
+
[types_1.PairIndex.ARKMUSD]: "Arkham to US Dollar",
|
|
491
|
+
[types_1.PairIndex.GRIFFAINUSD]: "GRIFFAIN to US Dollar",
|
|
492
|
+
[types_1.PairIndex.SWARMSUSD]: "Swarms to US Dollar",
|
|
493
|
+
[types_1.PairIndex.ANIMEUSD]: "Animecoin to US Dollar",
|
|
494
|
+
[types_1.PairIndex.PLUMEUSD]: "Plume to US Dollar",
|
|
495
|
+
[types_1.PairIndex.VVVUSD]: "Venice Token to US Dollar",
|
|
496
|
+
[types_1.PairIndex.VINEUSD]: "Vine coin to US Dollar",
|
|
497
|
+
[types_1.PairIndex.TOSHIUSD]: "Toshi to US Dollar",
|
|
498
|
+
[types_1.PairIndex.BERAUSD]: "Berachain to US Dollar",
|
|
499
|
+
[types_1.PairIndex.LAYERUSD]: "Solayer to US Dollar",
|
|
500
|
+
[types_1.PairIndex.CHEEMSUSD]: "Cheems Token to US Dollar",
|
|
501
|
+
[types_1.PairIndex.SOLVUSD]: "Solv Protocol to US Dollar",
|
|
502
|
+
[types_1.PairIndex.TSTUSD]: "Test to US Dollar",
|
|
503
|
+
[types_1.PairIndex.IPUSD]: "Story to US Dollar",
|
|
504
|
+
[types_1.PairIndex.KAITOUSD]: "KAITO to US Dollar",
|
|
505
|
+
[types_1.PairIndex.ELXUSD]: "Elixir to US Dollar",
|
|
506
|
+
[types_1.PairIndex.PIUSD]: "Pi Network to US Dollar",
|
|
507
|
+
[types_1.PairIndex.SHELLUSD]: "MyShell to US Dollar",
|
|
508
|
+
[types_1.PairIndex.BMTUSD]: "Bubblemaps to US Dollar",
|
|
509
|
+
[types_1.PairIndex.BROCCOLIUSD]: "CZ'S Dog to US Dollar",
|
|
510
|
+
[types_1.PairIndex.TUTUSD]: "Tutorial to US Dollar",
|
|
511
|
+
[types_1.PairIndex.GPSUSD]: "GoPlus Security to US Dollar",
|
|
512
|
+
[types_1.PairIndex.REDUSD]: "RedStone to US Dollar",
|
|
513
|
+
[types_1.PairIndex.MUBARAKUSD]: "Mubarak to US Dollar",
|
|
514
|
+
[types_1.PairIndex.FORMUSD]: "Four to US Dollar",
|
|
515
|
+
[types_1.PairIndex.WALUSD]: "Walrus to US Dollar",
|
|
516
|
+
[types_1.PairIndex.NILUSD]: "Nillion to US Dollar",
|
|
517
|
+
[types_1.PairIndex.PARTIUSD]: "Particle Network to US Dollar",
|
|
518
|
+
[types_1.PairIndex.SIRENUSD]: "Siren to US Dollar",
|
|
519
|
+
[types_1.PairIndex.BANANAS31]: "Banana For Scale to US Dollar",
|
|
520
|
+
[types_1.PairIndex.HYPERUSD]: "Hyperlane to US Dollar",
|
|
521
|
+
[types_1.PairIndex.PROMPTUSD]: "Wayfinder to US Dollar",
|
|
522
|
+
[types_1.PairIndex.RFCUSD]: "Retard Finder Coin to US Dollar",
|
|
523
|
+
[types_1.PairIndex.WCTUSD]: "WalletConnect Token to US Dollar",
|
|
524
|
+
[types_1.PairIndex.BIGTIMEUSD]: "Big Time to US Dollar",
|
|
525
|
+
[types_1.PairIndex.BABYUSD]: "Babylon to US Dollar",
|
|
526
|
+
[types_1.PairIndex.COOKIEUSD]: "Cookie DAO to US Dollar",
|
|
527
|
+
[types_1.PairIndex.KMNOUSD]: "Kamino to US Dollar",
|
|
528
|
+
[types_1.PairIndex.INITUSD]: "Initia to US Dollar",
|
|
529
|
+
[types_1.PairIndex.SYRUPUSD]: "Maple Finance to US Dollar",
|
|
530
|
+
[types_1.PairIndex.SIGNUSD]: "Sign to US Dollar",
|
|
531
|
+
[types_1.PairIndex.ZORAUSD]: "ZORA to US Dollar",
|
|
532
|
+
[types_1.PairIndex.COINUSD]: "Coinbase to US Dollar",
|
|
533
|
+
[types_1.PairIndex.HOODUSD]: "Robinhood Markets to US Dollar",
|
|
534
|
+
[types_1.PairIndex.MSTRUSD]: "MicroStrategy Inc to US Dollar",
|
|
535
|
+
[types_1.PairIndex.NFLXUSD]: "Netflix to US Dollar",
|
|
536
|
+
[types_1.PairIndex.LAUNCHCOINUSD]: "Launch Coin on Believe to US Dollar",
|
|
537
|
+
[types_1.PairIndex.NXPCUSD]: "NEXPACE to US Dollar",
|
|
538
|
+
[types_1.PairIndex.SOPHUSD]: "Sophon to US Dollar",
|
|
539
|
+
[types_1.PairIndex.LPTUSD]: "Livepeer to US Dollar",
|
|
540
|
+
[types_1.PairIndex.BVIVUSD]: "Bitcoin Volmex Implied Volatility 30 Day Index to US Dollar",
|
|
541
|
+
[types_1.PairIndex.EVIVUSD]: "Ethereum Volmex Implied Volatility 30 Day Index to US Dollar",
|
|
542
|
+
[types_1.PairIndex.CRCLUSD]: "Circle Internet Group to US Dollar",
|
|
543
|
+
[types_1.PairIndex.RESOLVUSD]: "Resolv to US Dollar",
|
|
544
|
+
[types_1.PairIndex.SQDUSD]: "Subsquid to US Dollar",
|
|
545
|
+
[types_1.PairIndex.TAIKOUSD]: "Taiko to US Dollar",
|
|
546
|
+
[types_1.PairIndex.HOMEUSD]: "Defi App to US Dollar",
|
|
547
|
+
[types_1.PairIndex.BUSD]: "BUILDon to US Dollar",
|
|
548
|
+
[types_1.PairIndex.HUMAUSD]: "Huma Finance to US Dollar",
|
|
549
|
+
[types_1.PairIndex.SBETUSD]: "Sharplink Gaming Inc to US Dollar",
|
|
550
|
+
[types_1.PairIndex.PLTRUSD]: "Palantir Technologies to US Dollar",
|
|
551
|
+
[types_1.PairIndex.BIDUUSD]: "Baidu to US Dollar",
|
|
552
|
+
[types_1.PairIndex.ROKUUSD]: "Roku to US Dollar",
|
|
553
|
+
[types_1.PairIndex.LMTUSD]: "Lockheed Martin to US Dollar",
|
|
554
|
+
[types_1.PairIndex.RIOTUSD]: "Riot Platforms to US Dollar",
|
|
555
|
+
[types_1.PairIndex.MARAUSD]: "MARA Holdings to US Dollar",
|
|
556
|
+
[types_1.PairIndex.LOKAUSD]: "League of Kingdoms Arena to US Dollar",
|
|
557
|
+
[types_1.PairIndex.STOUSD]: "StakeStone to US Dollar",
|
|
558
|
+
[types_1.PairIndex.FUNUSD]: "FUNToken to US Dollar",
|
|
559
|
+
[types_1.PairIndex.KNCUSD]: "Kyber Network Crystal v2 to US Dollar",
|
|
560
|
+
[types_1.PairIndex.HUSD]: "Humanity Protocol to US Dollar",
|
|
561
|
+
[types_1.PairIndex.ICNTUSD]: "Impossible Cloud Network to US Dollar",
|
|
562
|
+
[types_1.PairIndex.NEWTUSD]: "Newton Protocol to US Dollar",
|
|
563
|
+
[types_1.PairIndex.PUMPUSD]: "Pump.fun to US Dollar",
|
|
564
|
+
[types_1.PairIndex.SAROSUSD]: "Saros to US Dollar",
|
|
565
|
+
[types_1.PairIndex.SPKUSD]: "Spark to US Dollar",
|
|
566
|
+
[types_1.PairIndex.ERAUSD]: "Caldera to US Dollar",
|
|
567
|
+
[types_1.PairIndex.BGSCUSD]: "BugsCoin to US Dollar",
|
|
568
|
+
[types_1.PairIndex.TAGUSD]: "TAGGER to US Dollar",
|
|
569
|
+
[types_1.PairIndex.WLFIUSD]: "World Liberty Financial to US Dollar",
|
|
570
|
+
[types_1.PairIndex.ASTERUSD]: "Aster to US Dollar",
|
|
571
|
+
[types_1.PairIndex.OKBUSD]: "OKB to US Dollar",
|
|
572
|
+
[types_1.PairIndex.CROUSD]: "Cronos to US Dollar",
|
|
573
|
+
[types_1.PairIndex.SKYUSD]: "Sky to US Dollar",
|
|
574
|
+
[types_1.PairIndex.XPLUSD]: "Plasma to US Dollar",
|
|
575
|
+
[types_1.PairIndex.AVNTUSD]: "Avantis to US Dollar",
|
|
576
|
+
[types_1.PairIndex.APEXUSD]: "ApeX Protocol to US Dollar",
|
|
577
|
+
[types_1.PairIndex.ORDERUSD]: "Orderly to US Dollar",
|
|
578
|
+
[types_1.PairIndex.DRIFTUSD]: "Drift to US Dollar",
|
|
579
|
+
[types_1.PairIndex.MYXUSD]: "MYX Finance to US Dollar",
|
|
580
|
+
[types_1.PairIndex.NOMUSD]: "Nomina to US Dollar",
|
|
581
|
+
[types_1.PairIndex.FLUIDUSD]: "Fluid to US Dollar",
|
|
582
|
+
[types_1.PairIndex.LQTYUSD]: "Liquity to US Dollar",
|
|
583
|
+
[types_1.PairIndex.L3USD]: "Layer3 to US Dollar",
|
|
584
|
+
[types_1.PairIndex.CAMPUSD]: "Camp Network to US Dollar",
|
|
585
|
+
[types_1.PairIndex.SOMIUSD]: "Somnia to US Dollar",
|
|
586
|
+
[types_1.PairIndex.HEMIUSD]: "Hemi to US Dollar",
|
|
587
|
+
[types_1.PairIndex.FFUSD]: "Falcon Finance to US Dollar",
|
|
588
|
+
[types_1.PairIndex.USELESSUSD]: "Useless Coin to US Dollar",
|
|
589
|
+
[types_1.PairIndex.MONUSD]: "Monad to US Dollar",
|
|
590
|
+
[types_1.PairIndex.METUSD]: "Meteora to US Dollar",
|
|
591
|
+
[types_1.PairIndex.TURTLEUSD]: "Turtle to US Dollar",
|
|
592
|
+
[types_1.PairIndex.SPX500USD]: "S&P500 to US Dollar",
|
|
593
|
+
[types_1.PairIndex.NAS100USD]: "NASDAQ 100 to US Dollar",
|
|
594
|
+
[types_1.PairIndex.USA30USD]: "Down Jones 30 to US Dollar",
|
|
595
|
+
[types_1.PairIndex.NFLXUSD2]: "Netflix to US Dollar",
|
|
596
|
+
[types_1.PairIndex.STABLEUSD]: "Stable to US Dollar",
|
|
597
|
+
[types_1.PairIndex.VOOIUSD]: "VOOI to US Dollar",
|
|
598
|
+
[types_1.PairIndex.LITUSD]: "Lighter to US Dollar",
|
|
599
|
+
[types_1.PairIndex.DUSKUSD]: "DUSK to US Dollar",
|
|
600
|
+
[types_1.PairIndex.SCRTUSD]: "Secret to US Dollar",
|
|
601
|
+
[types_1.PairIndex.DCRUSD]: "Decred to US Dollar",
|
|
602
|
+
};
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./trade";
|
|
2
|
+
export * from "./contracts";
|
|
3
|
+
export * from "./markets";
|
|
4
|
+
export * from "./constants";
|
|
5
|
+
export * from "./utils";
|
|
6
|
+
export * from "./vault";
|
|
7
|
+
export * from "./backend";
|
|
8
|
+
export * from "./pricing";
|
|
9
|
+
export * from "./trade/fees/borrowing/index";
|
|
10
|
+
export { ContractsVersion } from "./contracts/types";
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ContractsVersion = void 0;
|
|
18
|
+
__exportStar(require("./trade"), exports);
|
|
19
|
+
__exportStar(require("./contracts"), exports);
|
|
20
|
+
__exportStar(require("./markets"), exports);
|
|
21
|
+
__exportStar(require("./constants"), exports);
|
|
22
|
+
__exportStar(require("./utils"), exports);
|
|
23
|
+
__exportStar(require("./vault"), exports);
|
|
24
|
+
__exportStar(require("./backend"), exports);
|
|
25
|
+
__exportStar(require("./pricing"), exports);
|
|
26
|
+
// Not sure why this is needed, but it is. Barrel imports are not working.
|
|
27
|
+
__exportStar(require("./trade/fees/borrowing/index"), exports);
|
|
28
|
+
// Export ContractsVersion for frontend usage
|
|
29
|
+
var types_1 = require("./contracts/types");
|
|
30
|
+
Object.defineProperty(exports, "ContractsVersion", { enumerable: true, get: function () { return types_1.ContractsVersion; } });
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ITradingStorage } from "src/contracts/types/generated/GNSMultiCollatDiamond";
|
|
2
|
+
import { CollateralConfig } from "./types";
|
|
3
|
+
export declare const convertCollateralConfig: (collateral: ITradingStorage.CollateralStructOutput & {
|
|
4
|
+
decimals: number;
|
|
5
|
+
}) => CollateralConfig;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertCollateralConfig = void 0;
|
|
4
|
+
const convertCollateralConfig = (collateral) => ({
|
|
5
|
+
collateral: collateral.collateral,
|
|
6
|
+
isActive: collateral.isActive,
|
|
7
|
+
precision: Number(collateral.precision),
|
|
8
|
+
precisionDelta: Number(collateral.precisionDelta),
|
|
9
|
+
decimals: collateral.decimals,
|
|
10
|
+
});
|
|
11
|
+
exports.convertCollateralConfig = convertCollateralConfig;
|