@gainsnetwork/sdk 0.1.29-rc3 → 0.2.0-rc3
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/README.md +11 -11
- package/lib/constants.d.ts +252 -261
- package/lib/constants.js +269 -277
- package/lib/contracts/addresses.d.ts +3 -3
- package/lib/contracts/addresses.js +31 -31
- package/lib/contracts/addresses.json +53 -89
- package/lib/contracts/index.d.ts +8 -8
- package/lib/contracts/index.js +37 -40
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +5215 -1740
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.js +2 -2
- package/lib/contracts/types/generated/GToken.d.ts +1946 -1946
- package/lib/contracts/types/generated/GToken.js +2 -2
- package/lib/contracts/types/generated/GTokenOpenPnlFeed.d.ts +557 -557
- package/lib/contracts/types/generated/GTokenOpenPnlFeed.js +2 -2
- package/lib/contracts/types/generated/common.d.ts +22 -22
- package/lib/contracts/types/generated/common.js +2 -2
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +291 -144
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +11360 -3094
- package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.d.ts +59 -59
- package/lib/contracts/types/generated/factories/GTokenOpenPnlFeed__factory.js +765 -765
- package/lib/contracts/types/generated/factories/GToken__factory.d.ts +121 -121
- package/lib/contracts/types/generated/factories/GToken__factory.js +2944 -2944
- package/lib/contracts/types/generated/factories/index.d.ts +3 -10
- package/lib/contracts/types/generated/factories/index.js +12 -26
- package/lib/contracts/types/generated/index.d.ts +7 -21
- package/lib/contracts/types/generated/index.js +33 -47
- package/lib/contracts/types/index.d.ts +19 -27
- package/lib/contracts/types/index.js +10 -10
- package/lib/contracts/utils/borrowingFees.d.ts +8 -8
- package/lib/contracts/utils/borrowingFees.js +32 -28
- package/lib/contracts/utils/index.d.ts +3 -4
- package/lib/contracts/utils/index.js +19 -20
- package/lib/contracts/utils/openTrades.d.ts +9 -9
- package/lib/contracts/utils/openTrades.js +380 -188
- package/lib/contracts/utils/pairs.d.ts +7 -7
- package/lib/contracts/utils/pairs.js +339 -337
- package/lib/index.d.ts +7 -7
- package/lib/index.js +24 -24
- package/lib/markets/commodities.d.ts +1 -1
- package/lib/markets/commodities.js +31 -31
- package/lib/markets/crypto.d.ts +1 -1
- package/lib/markets/crypto.js +6 -6
- package/lib/markets/forex.d.ts +3 -3
- package/lib/markets/forex.js +45 -45
- package/lib/markets/index.d.ts +5 -5
- package/lib/markets/index.js +21 -21
- package/lib/markets/indices.d.ts +1 -1
- package/lib/markets/indices.js +6 -6
- package/lib/markets/stocks.d.ts +3 -3
- package/lib/markets/stocks.js +54 -54
- package/lib/trade/fees/borrowing/converter.d.ts +15 -13
- package/lib/trade/fees/borrowing/converter.js +35 -41
- package/lib/trade/fees/borrowing/index.d.ts +54 -55
- package/lib/trade/fees/borrowing/index.js +165 -171
- package/lib/trade/fees/borrowing/types.d.ts +30 -36
- package/lib/trade/fees/borrowing/types.js +2 -2
- package/lib/trade/fees/index.d.ts +4 -4
- package/lib/trade/fees/index.js +30 -30
- package/lib/trade/fees/tiers/index.d.ts +12 -12
- package/lib/trade/fees/tiers/index.js +51 -51
- package/lib/trade/fees/tiers/types.d.ts +8 -8
- package/lib/trade/fees/tiers/types.js +2 -2
- package/lib/trade/index.d.ts +7 -8
- package/lib/trade/index.js +23 -24
- package/lib/trade/liquidation.d.ts +3 -3
- package/lib/trade/liquidation.js +15 -16
- package/lib/trade/oiWindows.d.ts +3 -3
- package/lib/trade/oiWindows.js +20 -20
- package/lib/trade/pnl.d.ts +7 -7
- package/lib/trade/pnl.js +33 -33
- package/lib/trade/spread.d.ts +2 -2
- package/lib/trade/spread.js +22 -22
- package/lib/trade/types.d.ts +413 -429
- package/lib/trade/types.js +255 -249
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +17 -17
- package/lib/utils/packing.d.ts +2 -2
- package/lib/utils/packing.js +39 -39
- package/lib/vault/index.d.ts +8 -8
- package/lib/vault/index.js +10 -10
- package/package.json +105 -105
- package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +0 -1911
- package/lib/contracts/types/generated/GFarmTradingStorageV5.js +0 -2
- package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +0 -1067
- package/lib/contracts/types/generated/GNSBorrowingFees.js +0 -2
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +0 -1058
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +0 -2
- package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +0 -533
- package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
- package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +0 -911
- package/lib/contracts/types/generated/GNSPairInfosV6_1.js +0 -2
- package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +0 -660
- package/lib/contracts/types/generated/GNSPairsStorageV6.js +0 -2
- package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
- package/lib/contracts/types/generated/GNSTrading.js +0 -2
- package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
- package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +0 -821
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +0 -2
- package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
- package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
- package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +0 -1838
- package/lib/contracts/types/generated/GTokenV6_3_2.js +0 -2
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +0 -113
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +0 -1742
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +0 -98
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +0 -1485
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +0 -117
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +0 -1265
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +0 -82
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +0 -1326
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
- package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
- package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +0 -110
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +0 -2682
- package/lib/contracts/utils/openLimitOrders.d.ts +0 -8
- package/lib/contracts/utils/openLimitOrders.js +0 -88
- package/lib/trade/fees.d.ts +0 -15
- package/lib/trade/fees.js +0 -45
- package/lib/trade/openLimitOrder.d.ts +0 -2
- package/lib/trade/openLimitOrder.js +0 -23
|
@@ -1,337 +1,339 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getPairDescription = exports.fetchOpenInterest = exports.fetchFees = exports.fetchPairDepths = exports.fetchPairs = void 0;
|
|
13
|
-
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
14
|
-
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
15
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
16
|
-
const types_1 = require("../../trade/types");
|
|
17
|
-
const fetchPairs = (contracts, pairIxs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
-
if (!contracts) {
|
|
19
|
-
return [];
|
|
20
|
-
}
|
|
21
|
-
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
22
|
-
try {
|
|
23
|
-
const pairs = yield Promise.all(pairIxs.map(pairIndex => multiCollatContract.pairs(pairIndex)));
|
|
24
|
-
return pairs.map((pair, index) => {
|
|
25
|
-
return {
|
|
26
|
-
name: pair.from + "/" + pair.to,
|
|
27
|
-
from: pair.from,
|
|
28
|
-
to: pair.to,
|
|
29
|
-
feeIndex: parseInt(pair.feeIndex.toString()),
|
|
30
|
-
groupIndex: parseInt(pair.groupIndex.toString()),
|
|
31
|
-
pairIndex: pairIxs[index],
|
|
32
|
-
spreadP: parseFloat(pair.spreadP.toString()) / 1e12,
|
|
33
|
-
description: (0, exports.getPairDescription)(pairIxs[index]),
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
console.error(`Unexpected error while fetching pairs!`);
|
|
39
|
-
throw error;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
exports.fetchPairs = fetchPairs;
|
|
43
|
-
const fetchPairDepths = (contracts, pairIxs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
-
if (!contracts) {
|
|
45
|
-
return [];
|
|
46
|
-
}
|
|
47
|
-
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
48
|
-
try {
|
|
49
|
-
const pairParams = yield multiCollatContract.getPairDepths(pairIxs);
|
|
50
|
-
return pairParams.map(pair => {
|
|
51
|
-
return {
|
|
52
|
-
onePercentDepthAboveUsd: parseFloat(pair.onePercentDepthAboveUsd.toString()),
|
|
53
|
-
onePercentDepthBelowUsd: parseFloat(pair.onePercentDepthBelowUsd.toString()),
|
|
54
|
-
};
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
catch (error) {
|
|
58
|
-
console.error(`Unexpected error while fetching pairs!`);
|
|
59
|
-
throw error;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
exports.fetchPairDepths = fetchPairDepths;
|
|
63
|
-
const fetchFees = (contracts, feeIxs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
64
|
-
if (!contracts) {
|
|
65
|
-
return [];
|
|
66
|
-
}
|
|
67
|
-
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
68
|
-
try {
|
|
69
|
-
const fees = yield Promise.all(feeIxs.map(pairIndex => multiCollatContract.fees(pairIndex)));
|
|
70
|
-
return fees.map(fee => {
|
|
71
|
-
return {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
console.error(`Unexpected error while fetching pairs!`);
|
|
81
|
-
throw error;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
exports.fetchFees = fetchFees;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
[
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
[types_1.PairIndex.
|
|
117
|
-
[types_1.PairIndex.
|
|
118
|
-
[types_1.PairIndex.
|
|
119
|
-
[types_1.PairIndex.
|
|
120
|
-
[types_1.PairIndex.
|
|
121
|
-
[types_1.PairIndex.
|
|
122
|
-
[types_1.PairIndex.
|
|
123
|
-
[types_1.PairIndex.
|
|
124
|
-
[types_1.PairIndex.
|
|
125
|
-
[types_1.PairIndex.
|
|
126
|
-
[types_1.PairIndex.
|
|
127
|
-
[types_1.PairIndex.
|
|
128
|
-
[types_1.PairIndex.
|
|
129
|
-
[types_1.PairIndex.
|
|
130
|
-
[types_1.PairIndex.
|
|
131
|
-
[types_1.PairIndex.
|
|
132
|
-
[types_1.PairIndex.
|
|
133
|
-
[types_1.PairIndex.
|
|
134
|
-
[types_1.PairIndex.
|
|
135
|
-
[types_1.PairIndex.
|
|
136
|
-
[types_1.PairIndex.
|
|
137
|
-
[types_1.PairIndex.
|
|
138
|
-
[types_1.PairIndex.
|
|
139
|
-
[types_1.PairIndex.
|
|
140
|
-
[types_1.PairIndex.
|
|
141
|
-
[types_1.PairIndex.
|
|
142
|
-
[types_1.PairIndex.
|
|
143
|
-
[types_1.PairIndex.
|
|
144
|
-
[types_1.PairIndex.
|
|
145
|
-
[types_1.PairIndex.
|
|
146
|
-
[types_1.PairIndex.
|
|
147
|
-
[types_1.PairIndex.
|
|
148
|
-
[types_1.PairIndex.
|
|
149
|
-
[types_1.PairIndex.
|
|
150
|
-
[types_1.PairIndex.
|
|
151
|
-
[types_1.PairIndex.
|
|
152
|
-
[types_1.PairIndex.
|
|
153
|
-
[types_1.PairIndex.
|
|
154
|
-
[types_1.PairIndex.
|
|
155
|
-
[types_1.PairIndex.
|
|
156
|
-
[types_1.PairIndex.
|
|
157
|
-
[types_1.PairIndex.
|
|
158
|
-
[types_1.PairIndex.
|
|
159
|
-
[types_1.PairIndex.
|
|
160
|
-
[types_1.PairIndex.
|
|
161
|
-
[types_1.PairIndex.
|
|
162
|
-
[types_1.PairIndex.
|
|
163
|
-
[types_1.PairIndex.
|
|
164
|
-
[types_1.PairIndex.
|
|
165
|
-
[types_1.PairIndex.
|
|
166
|
-
[types_1.PairIndex.
|
|
167
|
-
[types_1.PairIndex.
|
|
168
|
-
[types_1.PairIndex.
|
|
169
|
-
[types_1.PairIndex.
|
|
170
|
-
[types_1.PairIndex.
|
|
171
|
-
[types_1.PairIndex.
|
|
172
|
-
[types_1.PairIndex.
|
|
173
|
-
[types_1.PairIndex.
|
|
174
|
-
[types_1.PairIndex.
|
|
175
|
-
[types_1.PairIndex.
|
|
176
|
-
[types_1.PairIndex.
|
|
177
|
-
[types_1.PairIndex.
|
|
178
|
-
[types_1.PairIndex.
|
|
179
|
-
[types_1.PairIndex.
|
|
180
|
-
[types_1.PairIndex.
|
|
181
|
-
[types_1.PairIndex.
|
|
182
|
-
[types_1.PairIndex.
|
|
183
|
-
[types_1.PairIndex.
|
|
184
|
-
[types_1.PairIndex.
|
|
185
|
-
[types_1.PairIndex.
|
|
186
|
-
[types_1.PairIndex.
|
|
187
|
-
[types_1.PairIndex.
|
|
188
|
-
[types_1.PairIndex.
|
|
189
|
-
[types_1.PairIndex.
|
|
190
|
-
[types_1.PairIndex.
|
|
191
|
-
[types_1.PairIndex.
|
|
192
|
-
[types_1.PairIndex.
|
|
193
|
-
[types_1.PairIndex.
|
|
194
|
-
[types_1.PairIndex.
|
|
195
|
-
[types_1.PairIndex.
|
|
196
|
-
[types_1.PairIndex.
|
|
197
|
-
[types_1.PairIndex.
|
|
198
|
-
[types_1.PairIndex.
|
|
199
|
-
[types_1.PairIndex.
|
|
200
|
-
[types_1.PairIndex.
|
|
201
|
-
[types_1.PairIndex.
|
|
202
|
-
[types_1.PairIndex.
|
|
203
|
-
[types_1.PairIndex.
|
|
204
|
-
[types_1.PairIndex.
|
|
205
|
-
[types_1.PairIndex.
|
|
206
|
-
[types_1.PairIndex.
|
|
207
|
-
[types_1.PairIndex.
|
|
208
|
-
[types_1.PairIndex.
|
|
209
|
-
[types_1.PairIndex.
|
|
210
|
-
[types_1.PairIndex.
|
|
211
|
-
[types_1.PairIndex.
|
|
212
|
-
[types_1.PairIndex.
|
|
213
|
-
[types_1.PairIndex.
|
|
214
|
-
[types_1.PairIndex.
|
|
215
|
-
[types_1.PairIndex.
|
|
216
|
-
[types_1.PairIndex.
|
|
217
|
-
[types_1.PairIndex.
|
|
218
|
-
[types_1.PairIndex.
|
|
219
|
-
[types_1.PairIndex.
|
|
220
|
-
[types_1.PairIndex.
|
|
221
|
-
[types_1.PairIndex.
|
|
222
|
-
[types_1.PairIndex.
|
|
223
|
-
[types_1.PairIndex.
|
|
224
|
-
[types_1.PairIndex.
|
|
225
|
-
[types_1.PairIndex.
|
|
226
|
-
[types_1.PairIndex.
|
|
227
|
-
[types_1.PairIndex.
|
|
228
|
-
[types_1.PairIndex.
|
|
229
|
-
[types_1.PairIndex.
|
|
230
|
-
[types_1.PairIndex.
|
|
231
|
-
[types_1.PairIndex.
|
|
232
|
-
[types_1.PairIndex.
|
|
233
|
-
[types_1.PairIndex.
|
|
234
|
-
[types_1.PairIndex.
|
|
235
|
-
[types_1.PairIndex.
|
|
236
|
-
[types_1.PairIndex.
|
|
237
|
-
[types_1.PairIndex.
|
|
238
|
-
[types_1.PairIndex.
|
|
239
|
-
[types_1.PairIndex.
|
|
240
|
-
[types_1.PairIndex.
|
|
241
|
-
[types_1.PairIndex.
|
|
242
|
-
[types_1.PairIndex.
|
|
243
|
-
[types_1.PairIndex.
|
|
244
|
-
[types_1.PairIndex.
|
|
245
|
-
[types_1.PairIndex.
|
|
246
|
-
[types_1.PairIndex.
|
|
247
|
-
[types_1.PairIndex.
|
|
248
|
-
[types_1.PairIndex.
|
|
249
|
-
[types_1.PairIndex.
|
|
250
|
-
[types_1.PairIndex.
|
|
251
|
-
[types_1.PairIndex.
|
|
252
|
-
[types_1.PairIndex.
|
|
253
|
-
[types_1.PairIndex.
|
|
254
|
-
[types_1.PairIndex.
|
|
255
|
-
[types_1.PairIndex.
|
|
256
|
-
[types_1.PairIndex.
|
|
257
|
-
[types_1.PairIndex.
|
|
258
|
-
[types_1.PairIndex.
|
|
259
|
-
[types_1.PairIndex.
|
|
260
|
-
[types_1.PairIndex.
|
|
261
|
-
[types_1.PairIndex.
|
|
262
|
-
[types_1.PairIndex.
|
|
263
|
-
[types_1.PairIndex.
|
|
264
|
-
[types_1.PairIndex.
|
|
265
|
-
[types_1.PairIndex.
|
|
266
|
-
[types_1.PairIndex.
|
|
267
|
-
[types_1.PairIndex.
|
|
268
|
-
[types_1.PairIndex.
|
|
269
|
-
[types_1.PairIndex.
|
|
270
|
-
[types_1.PairIndex.
|
|
271
|
-
[types_1.PairIndex.
|
|
272
|
-
[types_1.PairIndex.
|
|
273
|
-
[types_1.PairIndex.
|
|
274
|
-
[types_1.PairIndex.
|
|
275
|
-
[types_1.PairIndex.
|
|
276
|
-
[types_1.PairIndex.
|
|
277
|
-
[types_1.PairIndex.
|
|
278
|
-
[types_1.PairIndex.
|
|
279
|
-
[types_1.PairIndex.
|
|
280
|
-
[types_1.PairIndex.
|
|
281
|
-
[types_1.PairIndex.
|
|
282
|
-
[types_1.PairIndex.
|
|
283
|
-
[types_1.PairIndex.
|
|
284
|
-
[types_1.PairIndex.
|
|
285
|
-
[types_1.PairIndex.
|
|
286
|
-
[types_1.PairIndex.
|
|
287
|
-
[types_1.PairIndex.
|
|
288
|
-
[types_1.PairIndex.
|
|
289
|
-
[types_1.PairIndex.
|
|
290
|
-
[types_1.PairIndex.
|
|
291
|
-
[types_1.PairIndex.
|
|
292
|
-
[types_1.PairIndex.
|
|
293
|
-
[types_1.PairIndex.
|
|
294
|
-
[types_1.PairIndex.
|
|
295
|
-
[types_1.PairIndex.
|
|
296
|
-
[types_1.PairIndex.
|
|
297
|
-
[types_1.PairIndex.
|
|
298
|
-
[types_1.PairIndex.
|
|
299
|
-
[types_1.PairIndex.
|
|
300
|
-
[types_1.PairIndex.
|
|
301
|
-
[types_1.PairIndex.
|
|
302
|
-
[types_1.PairIndex.
|
|
303
|
-
[types_1.PairIndex.
|
|
304
|
-
[types_1.PairIndex.
|
|
305
|
-
[types_1.PairIndex.
|
|
306
|
-
[types_1.PairIndex.
|
|
307
|
-
[types_1.PairIndex.
|
|
308
|
-
[types_1.PairIndex.
|
|
309
|
-
[types_1.PairIndex.
|
|
310
|
-
[types_1.PairIndex.
|
|
311
|
-
[types_1.PairIndex.
|
|
312
|
-
[types_1.PairIndex.
|
|
313
|
-
[types_1.PairIndex.
|
|
314
|
-
[types_1.PairIndex.
|
|
315
|
-
[types_1.PairIndex.
|
|
316
|
-
[types_1.PairIndex.
|
|
317
|
-
[types_1.PairIndex.
|
|
318
|
-
[types_1.PairIndex.
|
|
319
|
-
[types_1.PairIndex.
|
|
320
|
-
[types_1.PairIndex.
|
|
321
|
-
[types_1.PairIndex.
|
|
322
|
-
[types_1.PairIndex.
|
|
323
|
-
[types_1.PairIndex.
|
|
324
|
-
[types_1.PairIndex.
|
|
325
|
-
[types_1.PairIndex.
|
|
326
|
-
[types_1.PairIndex.
|
|
327
|
-
[types_1.PairIndex.
|
|
328
|
-
[types_1.PairIndex.
|
|
329
|
-
[types_1.PairIndex.
|
|
330
|
-
[types_1.PairIndex.
|
|
331
|
-
[types_1.PairIndex.
|
|
332
|
-
[types_1.PairIndex.
|
|
333
|
-
[types_1.PairIndex.
|
|
334
|
-
[types_1.PairIndex.
|
|
335
|
-
[types_1.PairIndex.
|
|
336
|
-
[types_1.PairIndex.
|
|
337
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.getPairDescription = exports.fetchOpenInterest = exports.fetchFees = exports.fetchPairDepths = exports.fetchPairs = void 0;
|
|
13
|
+
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
14
|
+
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
15
|
+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
16
|
+
const types_1 = require("../../trade/types");
|
|
17
|
+
const fetchPairs = (contracts, pairIxs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
if (!contracts) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
22
|
+
try {
|
|
23
|
+
const pairs = yield Promise.all(pairIxs.map(pairIndex => multiCollatContract.pairs(pairIndex)));
|
|
24
|
+
return pairs.map((pair, index) => {
|
|
25
|
+
return {
|
|
26
|
+
name: pair.from + "/" + pair.to,
|
|
27
|
+
from: pair.from,
|
|
28
|
+
to: pair.to,
|
|
29
|
+
feeIndex: parseInt(pair.feeIndex.toString()),
|
|
30
|
+
groupIndex: parseInt(pair.groupIndex.toString()),
|
|
31
|
+
pairIndex: pairIxs[index],
|
|
32
|
+
spreadP: parseFloat(pair.spreadP.toString()) / 1e12,
|
|
33
|
+
description: (0, exports.getPairDescription)(pairIxs[index]),
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
console.error(`Unexpected error while fetching pairs!`);
|
|
39
|
+
throw error;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
exports.fetchPairs = fetchPairs;
|
|
43
|
+
const fetchPairDepths = (contracts, pairIxs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
+
if (!contracts) {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
48
|
+
try {
|
|
49
|
+
const pairParams = yield multiCollatContract.getPairDepths(pairIxs);
|
|
50
|
+
return pairParams.map(pair => {
|
|
51
|
+
return {
|
|
52
|
+
onePercentDepthAboveUsd: parseFloat(pair.onePercentDepthAboveUsd.toString()),
|
|
53
|
+
onePercentDepthBelowUsd: parseFloat(pair.onePercentDepthBelowUsd.toString()),
|
|
54
|
+
};
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
console.error(`Unexpected error while fetching pairs!`);
|
|
59
|
+
throw error;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
exports.fetchPairDepths = fetchPairDepths;
|
|
63
|
+
const fetchFees = (contracts, feeIxs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
64
|
+
if (!contracts) {
|
|
65
|
+
return [];
|
|
66
|
+
}
|
|
67
|
+
const { gnsMultiCollatDiamond: multiCollatContract } = contracts;
|
|
68
|
+
try {
|
|
69
|
+
const fees = yield Promise.all(feeIxs.map(pairIndex => multiCollatContract.fees(pairIndex)));
|
|
70
|
+
return fees.map(fee => {
|
|
71
|
+
return {
|
|
72
|
+
openFeeP: parseFloat(fee.openFeeP.toString()) / 1e12,
|
|
73
|
+
closeFeeP: parseFloat(fee.closeFeeP.toString()) / 1e12,
|
|
74
|
+
triggerOrderFeeP: parseFloat(fee.triggerOrderFeeP.toString()) / 1e12,
|
|
75
|
+
minPositionSizeUsd: parseFloat(fee.minPositionSizeUsd.toString()) / 1e18,
|
|
76
|
+
};
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
catch (error) {
|
|
80
|
+
console.error(`Unexpected error while fetching pairs!`);
|
|
81
|
+
throw error;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
exports.fetchFees = fetchFees;
|
|
85
|
+
// @todo test
|
|
86
|
+
const fetchOpenInterest = (collateralIndex, contracts, pairIxs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
87
|
+
if (pairIxs.length === 0) {
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
const { precision: collateralPrecision, precisionDelta: collateralPrecisionDelta, } = yield contracts.gnsMultiCollatDiamond.getCollateral(collateralIndex);
|
|
91
|
+
const precision = parseFloat(collateralPrecision.toString());
|
|
92
|
+
const precisionDelta = parseFloat(collateralPrecisionDelta.toString());
|
|
93
|
+
const openInterests = (yield contracts.gnsMultiCollatDiamond.getAllBorrowingPairs(collateralIndex))[1];
|
|
94
|
+
return pairIxs.map(pairIndex => {
|
|
95
|
+
const openInterest = openInterests[pairIndex];
|
|
96
|
+
if (!openInterest) {
|
|
97
|
+
return { long: 0, short: 0, max: 0 };
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
long: (parseFloat(openInterest[0].toString()) * precisionDelta) /
|
|
101
|
+
1e10 /
|
|
102
|
+
precision,
|
|
103
|
+
short: (parseFloat(openInterest[1].toString()) * precisionDelta) /
|
|
104
|
+
1e10 /
|
|
105
|
+
precision,
|
|
106
|
+
max: parseFloat(openInterest[2].toString()) / 1e10,
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
exports.fetchOpenInterest = fetchOpenInterest;
|
|
111
|
+
const getPairDescription = (pairIndex) => {
|
|
112
|
+
return PAIR_INDEX_TO_DESCRIPTION[pairIndex] || "";
|
|
113
|
+
};
|
|
114
|
+
exports.getPairDescription = getPairDescription;
|
|
115
|
+
const PAIR_INDEX_TO_DESCRIPTION = {
|
|
116
|
+
[types_1.PairIndex.BTCUSD]: "Bitcoin to US Dollar",
|
|
117
|
+
[types_1.PairIndex.ETHUSD]: "Ethereum to US Dollar",
|
|
118
|
+
[types_1.PairIndex.LINKUSD]: "Chainlink to US Dollar",
|
|
119
|
+
[types_1.PairIndex.DOGEUSD]: "Dogecoin to US Dollar",
|
|
120
|
+
[types_1.PairIndex.MATICUSD]: "Polygon to US Dollar",
|
|
121
|
+
[types_1.PairIndex.ADAUSD]: "Cardano to US Dollar",
|
|
122
|
+
[types_1.PairIndex.SUSHIUSD]: "Sushiswap to US Dollar",
|
|
123
|
+
[types_1.PairIndex.AAVEUSD]: "Aave to US Dollar",
|
|
124
|
+
[types_1.PairIndex.ALGOUSD]: "Algorand to US Dollar",
|
|
125
|
+
[types_1.PairIndex.BATUSD]: "Basic Attention Token to US Dollar",
|
|
126
|
+
[types_1.PairIndex.COMPUSD]: "Compound to US Dollar",
|
|
127
|
+
[types_1.PairIndex.DOTUSD]: "Polkadot to US Dollar",
|
|
128
|
+
[types_1.PairIndex.EOSUSD]: "EOS to US Dollar",
|
|
129
|
+
[types_1.PairIndex.LTCUSD]: "Litecoin to US Dollar",
|
|
130
|
+
[types_1.PairIndex.MANAUSD]: "Decentraland to US Dollar",
|
|
131
|
+
[types_1.PairIndex.OMGUSD]: "OMG Network to US Dollar",
|
|
132
|
+
[types_1.PairIndex.SNXUSD]: "Synthetix to US Dollar",
|
|
133
|
+
[types_1.PairIndex.UNIUSD]: "Uniswap to US Dollar",
|
|
134
|
+
[types_1.PairIndex.XLMUSD]: "Stellar to US Dollar",
|
|
135
|
+
[types_1.PairIndex.XRPUSD]: "Ripple to US Dollar",
|
|
136
|
+
[types_1.PairIndex.ZECUSD]: "Zcash to US Dollar",
|
|
137
|
+
[types_1.PairIndex.EURUSD]: "Euro to US Dollar",
|
|
138
|
+
[types_1.PairIndex.USDJPY]: "US Dollar to Japanese Yen",
|
|
139
|
+
[types_1.PairIndex.GBPUSD]: "British Pound to US Dollar",
|
|
140
|
+
[types_1.PairIndex.USDCHF]: "US Dollar to Swiss Franc",
|
|
141
|
+
[types_1.PairIndex.AUDUSD]: "Australian Dollar to US Dollar",
|
|
142
|
+
[types_1.PairIndex.USDCAD]: "US Dollar to Canadian Dollar",
|
|
143
|
+
[types_1.PairIndex.NZDUSD]: "New Zealand Dollar to US Dollar",
|
|
144
|
+
[types_1.PairIndex.EURCHF]: "Euro to Swiss Franc",
|
|
145
|
+
[types_1.PairIndex.EURJPY]: "Euro to Japanese Yen",
|
|
146
|
+
[types_1.PairIndex.EURGBP]: "Euro to British Pound",
|
|
147
|
+
[types_1.PairIndex.LUNAUSD]: "Terra to US Dollar",
|
|
148
|
+
[types_1.PairIndex.YFIUSD]: "Yearn.finance to US Dollar",
|
|
149
|
+
[types_1.PairIndex.SOLUSD]: "Solana to US Dollar",
|
|
150
|
+
[types_1.PairIndex.XTZUSD]: "Tezos to US Dollar",
|
|
151
|
+
[types_1.PairIndex.BCHUSD]: "Bitcoin Cash to US Dollar",
|
|
152
|
+
[types_1.PairIndex.BNTUSD]: "Bancor to US Dollar",
|
|
153
|
+
[types_1.PairIndex.CRVUSD]: "Curve DAO Token to US Dollar",
|
|
154
|
+
[types_1.PairIndex.DASHUSD]: "Dash to US Dollar",
|
|
155
|
+
[types_1.PairIndex.ETCUSD]: "Ethereum Classic to US Dollar",
|
|
156
|
+
[types_1.PairIndex.ICPUSD]: "Internet Computer to US Dollar",
|
|
157
|
+
[types_1.PairIndex.MKRUSD]: "Maker to US Dollar",
|
|
158
|
+
[types_1.PairIndex.NEOUSD]: "NEO to US Dollar",
|
|
159
|
+
[types_1.PairIndex.THETAUSD]: "Theta Network to US Dollar",
|
|
160
|
+
[types_1.PairIndex.TRXUSD]: "TRON to US Dollar",
|
|
161
|
+
[types_1.PairIndex.ZRXUSD]: "0x to US Dollar",
|
|
162
|
+
[types_1.PairIndex.SANDUSD]: "The Sandbox to US Dollar",
|
|
163
|
+
[types_1.PairIndex.BNBUSD]: "Binance Coin to US Dollar",
|
|
164
|
+
[types_1.PairIndex.AXSUSD]: "Axie Infinity to US Dollar",
|
|
165
|
+
[types_1.PairIndex.GRTUSD]: "The Graph to US Dollar",
|
|
166
|
+
[types_1.PairIndex.HBARUSD]: "Hedera Hashgraph to US Dollar",
|
|
167
|
+
[types_1.PairIndex.XMRUSD]: "Monero to US Dollar",
|
|
168
|
+
[types_1.PairIndex.ENJUSD]: "Enjin Coin to US Dollar",
|
|
169
|
+
[types_1.PairIndex.FTMUSD]: "Fantom to US Dollar",
|
|
170
|
+
[types_1.PairIndex.FTTUSD]: "FTX Token to US Dollar",
|
|
171
|
+
[types_1.PairIndex.APEUSD]: "ApeCoin to US Dollar",
|
|
172
|
+
[types_1.PairIndex.CHZUSD]: "Chiliz to US Dollar",
|
|
173
|
+
[types_1.PairIndex.SHIBUSD]: "Shiba Inu to US Dollar",
|
|
174
|
+
[types_1.PairIndex.AAPLUSD]: "Apple to US Dollar",
|
|
175
|
+
[types_1.PairIndex.FBUSD]: "Facebook to US Dollar",
|
|
176
|
+
[types_1.PairIndex.GOOGLUSD]: "Google to US Dollar",
|
|
177
|
+
[types_1.PairIndex.AMZNUSD]: "Amazon to US Dollar",
|
|
178
|
+
[types_1.PairIndex.MSFTUSD]: "Microsoft to US Dollar",
|
|
179
|
+
[types_1.PairIndex.TSLAUSD]: "Tesla to US Dollar",
|
|
180
|
+
[types_1.PairIndex.SNAPUSD]: "Snapchat to US Dollar",
|
|
181
|
+
[types_1.PairIndex.NVDAUSD]: "Nvidia to US Dollar",
|
|
182
|
+
[types_1.PairIndex.VUSD]: "Visa to US Dollar",
|
|
183
|
+
[types_1.PairIndex.MAUSD]: "Mastercard to US Dollar",
|
|
184
|
+
[types_1.PairIndex.PFEUSD]: "Pfizer to US Dollar",
|
|
185
|
+
[types_1.PairIndex.KOUSD]: "Coca-Cola to US Dollar",
|
|
186
|
+
[types_1.PairIndex.DISUSD]: "Disney to US Dollar",
|
|
187
|
+
[types_1.PairIndex.GMEUSD]: "GameStop to US Dollar",
|
|
188
|
+
[types_1.PairIndex.NKEUSD]: "Nike to US Dollar",
|
|
189
|
+
[types_1.PairIndex.AMDUSD]: "AMD to US Dollar",
|
|
190
|
+
[types_1.PairIndex.PYPLUSD]: "PayPal to US Dollar",
|
|
191
|
+
[types_1.PairIndex.ABNBUSD]: "Airbnb to US Dollar",
|
|
192
|
+
[types_1.PairIndex.BAUSD]: "Boeing to US Dollar",
|
|
193
|
+
[types_1.PairIndex.SBUXUSD]: "Starbucks to US Dollar",
|
|
194
|
+
[types_1.PairIndex.WMTUSD]: "Walmart to US Dollar",
|
|
195
|
+
[types_1.PairIndex.INTCUSD]: "Intel to US Dollar",
|
|
196
|
+
[types_1.PairIndex.MCDUSD]: "McDonald's to US Dollar",
|
|
197
|
+
[types_1.PairIndex.METAUSD]: "Meta Platforms to US Dollar",
|
|
198
|
+
[types_1.PairIndex.GOOGLUSD2]: "Google to US Dollar",
|
|
199
|
+
[types_1.PairIndex.GMEUSD2]: "GameStop to US Dollar",
|
|
200
|
+
[types_1.PairIndex.AMZNUSD2]: "Amazon to US Dollar",
|
|
201
|
+
[types_1.PairIndex.TSLAUSD2]: "Tesla to US Dollar",
|
|
202
|
+
[types_1.PairIndex.SPYUSD]: "SPDR S&P 500 ETF Trust to US Dollar",
|
|
203
|
+
[types_1.PairIndex.QQQUSD]: "Invesco QQQ Trust to US Dollar",
|
|
204
|
+
[types_1.PairIndex.IWMUSD]: "iShares Russell 2000 ETF to US Dollar",
|
|
205
|
+
[types_1.PairIndex.DIAUSD]: "SPDR Dow Jones Industrial Average ETF Trust to US Dollar",
|
|
206
|
+
[types_1.PairIndex.XAUUSD]: "Gold to US Dollar",
|
|
207
|
+
[types_1.PairIndex.XAGUSD]: "Silver to US Dollar",
|
|
208
|
+
[types_1.PairIndex.USDCNH]: "US Dollar to Chinese Yuan Offshore",
|
|
209
|
+
[types_1.PairIndex.USDSGD]: "US Dollar to Singapore Dollar",
|
|
210
|
+
[types_1.PairIndex.EURSEK]: "Euro to Swedish Krona",
|
|
211
|
+
[types_1.PairIndex.USDKRW]: "US Dollar to South Korean Won",
|
|
212
|
+
[types_1.PairIndex.EURNOK]: "Euro to Norwegian Krone",
|
|
213
|
+
[types_1.PairIndex.USDINR]: "US Dollar to Indian Rupee",
|
|
214
|
+
[types_1.PairIndex.USDMXN]: "US Dollar to Mexican Peso",
|
|
215
|
+
[types_1.PairIndex.USDTWD]: "US Dollar to Taiwan New Dollar",
|
|
216
|
+
[types_1.PairIndex.USDZAR]: "US Dollar to South African Rand",
|
|
217
|
+
[types_1.PairIndex.USDBRL]: "US Dollar to Brazilian Real",
|
|
218
|
+
[types_1.PairIndex.AVAXUSD]: "Avalanche to US Dollar",
|
|
219
|
+
[types_1.PairIndex.ATOMUSD]: "Cosmos to US Dollar",
|
|
220
|
+
[types_1.PairIndex.NEARUSD]: "NEAR Protocol to US Dollar",
|
|
221
|
+
[types_1.PairIndex.QNTUSD]: "Quant to US Dollar",
|
|
222
|
+
[types_1.PairIndex.IOTAUSD]: "IOTA to US Dollar",
|
|
223
|
+
[types_1.PairIndex.TONUSD]: "The Open Network to US Dollar",
|
|
224
|
+
[types_1.PairIndex.RPLUSD]: "Rocket Pool to US Dollar",
|
|
225
|
+
[types_1.PairIndex.ARBUSD]: "Arbitrum to US Dollar",
|
|
226
|
+
[types_1.PairIndex.EURAUD]: "Euro to Australian Dollar",
|
|
227
|
+
[types_1.PairIndex.EURNZD]: "Euro to New Zealand Dollar",
|
|
228
|
+
[types_1.PairIndex.EURCAD]: "Euro to Canadian Dollar",
|
|
229
|
+
[types_1.PairIndex.GBPAUD]: "British Pound to Australian Dollar",
|
|
230
|
+
[types_1.PairIndex.GBPNZD]: "British Pound to New Zealand Dollar",
|
|
231
|
+
[types_1.PairIndex.GBPCAD]: "British Pound to Canadian Dollar",
|
|
232
|
+
[types_1.PairIndex.GBPCHF]: "British Pound to Swiss Franc",
|
|
233
|
+
[types_1.PairIndex.GBPJPY]: "British Pound to Japanese Yen",
|
|
234
|
+
[types_1.PairIndex.AUDNZD]: "Australian Dollar to New Zealand Dollar",
|
|
235
|
+
[types_1.PairIndex.AUDCAD]: "Australian Dollar to Canadian Dollar",
|
|
236
|
+
[types_1.PairIndex.AUDCHF]: "Australian Dollar to Swiss Franc",
|
|
237
|
+
[types_1.PairIndex.AUDJPY]: "Australian Dollar to Japanese Yen",
|
|
238
|
+
[types_1.PairIndex.NZDCAD]: "New Zealand Dollar to Canadian Dollar",
|
|
239
|
+
[types_1.PairIndex.NZDCHF]: "New Zealand Dollar to Swiss Franc",
|
|
240
|
+
[types_1.PairIndex.NZDJPY]: "New Zealand Dollar to Japanese Yen",
|
|
241
|
+
[types_1.PairIndex.CADCHF]: "Canadian Dollar to Swiss Franc",
|
|
242
|
+
[types_1.PairIndex.CADJPY]: "Canadian Dollar to Japanese Yen",
|
|
243
|
+
[types_1.PairIndex.CHFJPY]: "Swiss Franc to Japanese Yen",
|
|
244
|
+
[types_1.PairIndex.LDOUSD]: "Lido DAO to US Dollar",
|
|
245
|
+
[types_1.PairIndex.INJUSD]: "Injective Protocol to US Dollar",
|
|
246
|
+
[types_1.PairIndex.RUNEUSD]: "THORChain to US Dollar",
|
|
247
|
+
[types_1.PairIndex.CAKEUSD]: "PancakeSwap to US Dollar",
|
|
248
|
+
[types_1.PairIndex.FXSUSD]: "Frax Share to US Dollar",
|
|
249
|
+
[types_1.PairIndex.TWTUSD]: "Trust Wallet Token to US Dollar",
|
|
250
|
+
[types_1.PairIndex.PEPEUSD]: "Pepe to US Dollar",
|
|
251
|
+
[types_1.PairIndex.DYDXUSD]: "dYdX to US Dollar",
|
|
252
|
+
[types_1.PairIndex.GMXUSD]: "GMX to US Dollar",
|
|
253
|
+
[types_1.PairIndex.FILUSD]: "Filecoin to US Dollar",
|
|
254
|
+
[types_1.PairIndex.APTUSD]: "Aptos to US Dollar",
|
|
255
|
+
[types_1.PairIndex.IMXUSD]: "Immutable X to US Dollar",
|
|
256
|
+
[types_1.PairIndex.VETUSD]: "VeChain to US Dollar",
|
|
257
|
+
[types_1.PairIndex.OPUSD]: "Optimism to US Dollar",
|
|
258
|
+
[types_1.PairIndex.RNDRUSD]: "Render Token to US Dollar",
|
|
259
|
+
[types_1.PairIndex.EGLDUSD]: "Elrond to US Dollar",
|
|
260
|
+
[types_1.PairIndex.TIAUSD]: "Tia to US Dollar",
|
|
261
|
+
[types_1.PairIndex.STXUSD]: "Stacks to US Dollar",
|
|
262
|
+
[types_1.PairIndex.FLOWUSD]: "Flow to US Dollar",
|
|
263
|
+
[types_1.PairIndex.KAVAUSD]: "Kava to US Dollar",
|
|
264
|
+
[types_1.PairIndex.GALAUSD]: "Gala to US Dollar",
|
|
265
|
+
[types_1.PairIndex.MINAUSD]: "Mina to US Dollar",
|
|
266
|
+
[types_1.PairIndex.ORDIUSD]: "Ordi to US Dollar",
|
|
267
|
+
[types_1.PairIndex.ILVUSD]: "Illuvium to US Dollar",
|
|
268
|
+
[types_1.PairIndex.KLAYUSD]: "Klaytn to US Dollar",
|
|
269
|
+
[types_1.PairIndex.SUIUSD]: "Sui to US Dollar",
|
|
270
|
+
[types_1.PairIndex.BLURUSD]: "Blur to US Dollar",
|
|
271
|
+
[types_1.PairIndex.FETUSD]: "Fetch.ai to US Dollar",
|
|
272
|
+
[types_1.PairIndex.CFXUSD]: "Conflux to US Dollar",
|
|
273
|
+
[types_1.PairIndex.BEAMUSD]: "Beam to US Dollar",
|
|
274
|
+
[types_1.PairIndex.ARUSD]: "Arweave to US Dollar",
|
|
275
|
+
[types_1.PairIndex.SEIUSD]: "Sei to US Dollar",
|
|
276
|
+
[types_1.PairIndex.BTTUSD]: "BitTorrent to US Dollar",
|
|
277
|
+
[types_1.PairIndex.ROSEUSD]: "Oasis Network to US Dollar",
|
|
278
|
+
[types_1.PairIndex.WOOUSD]: "WOO Network to US Dollar",
|
|
279
|
+
[types_1.PairIndex.AGIXUSD]: "SingularityNET to US Dollar",
|
|
280
|
+
[types_1.PairIndex.ZILUSD]: "Zilliqa to US Dollar",
|
|
281
|
+
[types_1.PairIndex.GMTUSD]: "STEPN to US Dollar",
|
|
282
|
+
[types_1.PairIndex.ASTRUSD]: "Astar to US Dollar",
|
|
283
|
+
[types_1.PairIndex.ONEINCHUSD]: "1inch to US Dollar",
|
|
284
|
+
[types_1.PairIndex.FLOKIUSD]: "Floki Inu to US Dollar",
|
|
285
|
+
[types_1.PairIndex.QTUMUSD]: "Qtum to US Dollar",
|
|
286
|
+
[types_1.PairIndex.OCEANUSD]: "Ocean Protocol to US Dollar",
|
|
287
|
+
[types_1.PairIndex.WLDUSD]: "Worldcoin to US Dollar",
|
|
288
|
+
[types_1.PairIndex.MASKUSD]: "Mask Network to US Dollar",
|
|
289
|
+
[types_1.PairIndex.CELOUSD]: "Celo to US Dollar",
|
|
290
|
+
[types_1.PairIndex.LRCUSD]: "Loopring to US Dollar",
|
|
291
|
+
[types_1.PairIndex.ENSUSD]: "Ethereum Name Service to US Dollar",
|
|
292
|
+
[types_1.PairIndex.MEMEUSD]: "Meme to US Dollar",
|
|
293
|
+
[types_1.PairIndex.ANKRUSD]: "Ankr to US Dollar",
|
|
294
|
+
[types_1.PairIndex.IOTXUSD]: "IoTeX to US Dollar",
|
|
295
|
+
[types_1.PairIndex.ICXUSD]: "ICON to US Dollar",
|
|
296
|
+
[types_1.PairIndex.KSMUSD]: "Kusama to US Dollar",
|
|
297
|
+
[types_1.PairIndex.RVNUSD]: "Ravencoin to US Dollar",
|
|
298
|
+
[types_1.PairIndex.ANTUSD]: "Aragon to US Dollar",
|
|
299
|
+
[types_1.PairIndex.WAVESUSD]: "Waves to US Dollar",
|
|
300
|
+
[types_1.PairIndex.SKLUSD]: "SKALE to US Dollar",
|
|
301
|
+
[types_1.PairIndex.SUPERUSD]: "SuperVerse to US Dollar",
|
|
302
|
+
[types_1.PairIndex.BALUSD]: "Balancer to US Dollar",
|
|
303
|
+
[types_1.PairIndex.WTIUSD]: "Oil to US Dollar",
|
|
304
|
+
[types_1.PairIndex.XPTUSD]: "Platinum to US Dollar",
|
|
305
|
+
[types_1.PairIndex.XPDUSD]: "Palladium to US Dollar",
|
|
306
|
+
[types_1.PairIndex.HGUSD]: "Copper to US Dollar",
|
|
307
|
+
[types_1.PairIndex.JUPUSD]: "Jupiter to US Dollar",
|
|
308
|
+
[types_1.PairIndex.MANTAUSD]: "Manta to US Dollar",
|
|
309
|
+
[types_1.PairIndex.BONKUSD]: "Bonk to US Dollar",
|
|
310
|
+
[types_1.PairIndex.PENDLEUSD]: "Pendle to US Dollar",
|
|
311
|
+
[types_1.PairIndex.OSMOUSD]: "Osmosis to US Dollar",
|
|
312
|
+
[types_1.PairIndex.ALTUSD]: "AltLayer to US Dollar",
|
|
313
|
+
[types_1.PairIndex.UMAUSD]: "UMA to US Dollar",
|
|
314
|
+
[types_1.PairIndex.MAGICUSD]: "Magic to US Dollar",
|
|
315
|
+
[types_1.PairIndex.API3USD]: "API3 to US Dollar",
|
|
316
|
+
[types_1.PairIndex.STRKUSD]: "Starknet to US Dollar",
|
|
317
|
+
[types_1.PairIndex.DYMUSD]: "Dymension to US Dollar",
|
|
318
|
+
[types_1.PairIndex.NTRNUSD]: "Neutron to US Dollar",
|
|
319
|
+
[types_1.PairIndex.PYTHUSD]: "Pyth Network to US Dollar",
|
|
320
|
+
[types_1.PairIndex.SCUSD]: "Siacoin to US Dollar",
|
|
321
|
+
[types_1.PairIndex.WIFUSD]: "dogwifhat to US Dollar",
|
|
322
|
+
[types_1.PairIndex.PIXELUSD]: "Pixels to US Dollar",
|
|
323
|
+
[types_1.PairIndex.JTOUSD]: "Jito to US Dollar",
|
|
324
|
+
[types_1.PairIndex.MAVIAUSD]: "Heroes of Mavia to US Dollar",
|
|
325
|
+
[types_1.PairIndex.MYROUSD]: "Myro to US Dollar",
|
|
326
|
+
[types_1.PairIndex.STGUSD]: "Stargate to US Dollar",
|
|
327
|
+
[types_1.PairIndex.BOMEUSD]: "Book Of Meme to US Dollar",
|
|
328
|
+
[types_1.PairIndex.ETHFIUSD]: "EtherFi to US Dollar",
|
|
329
|
+
[types_1.PairIndex.METISUSD]: "Metis to US Dollar",
|
|
330
|
+
[types_1.PairIndex.AEVOUSD]: "Aevo to US Dollar",
|
|
331
|
+
[types_1.PairIndex.ONDOUSD]: "Ondo to US Dollar",
|
|
332
|
+
[types_1.PairIndex.MNTUSD]: "Mantle to US Dollar",
|
|
333
|
+
[types_1.PairIndex.KASUSD]: "Kaspa to US Dollar",
|
|
334
|
+
[types_1.PairIndex.RONINUSD]: "Ronin to US Dollar",
|
|
335
|
+
[types_1.PairIndex.ENAUSD]: "Ethena to US Dollar",
|
|
336
|
+
[types_1.PairIndex.WUSD]: "Wormhole to US Dollar",
|
|
337
|
+
[types_1.PairIndex.TNSRUSD]: "Tensor to US Dollar",
|
|
338
|
+
[types_1.PairIndex.ZEUSUSD]: "Zeus to US Dollar",
|
|
339
|
+
};
|