@gainsnetwork/sdk 0.1.14-rc1 → 0.1.15-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/lib/constants.d.ts
CHANGED
|
@@ -204,6 +204,12 @@ export declare const pairs: {
|
|
|
204
204
|
"NTRN/USD": string;
|
|
205
205
|
"PYTH/USD": string;
|
|
206
206
|
"SC/USD": string;
|
|
207
|
+
"WIF/USD": string;
|
|
208
|
+
"PIXEL/USD": string;
|
|
209
|
+
"JTO/USD": string;
|
|
210
|
+
"MAVIA/USD": string;
|
|
211
|
+
"MYRO/USD": string;
|
|
212
|
+
"STG/USD": string;
|
|
207
213
|
};
|
|
208
214
|
export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
|
|
209
215
|
export declare const tickerChanges: {
|
package/lib/constants.js
CHANGED
|
@@ -212,6 +212,12 @@ exports.pairs = {
|
|
|
212
212
|
"NTRN/USD": CRYPTO,
|
|
213
213
|
"PYTH/USD": CRYPTO,
|
|
214
214
|
"SC/USD": CRYPTO,
|
|
215
|
+
"WIF/USD": CRYPTO,
|
|
216
|
+
"PIXEL/USD": CRYPTO,
|
|
217
|
+
"JTO/USD": CRYPTO,
|
|
218
|
+
"MAVIA/USD": CRYPTO,
|
|
219
|
+
"MYRO/USD": CRYPTO,
|
|
220
|
+
"STG/USD": CRYPTO,
|
|
215
221
|
};
|
|
216
222
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
217
223
|
switch (groupIndex) {
|
|
@@ -246,6 +252,6 @@ exports.delistedPairIxs = new Set([
|
|
|
246
252
|
6, 31, 36, 42, 45, 48, 50, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68,
|
|
247
253
|
69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
|
|
248
254
|
88, 89, 97, 99, 101, 106, 107, 108, 52, 131, 147, 157, 160, 179, 182, 183,
|
|
249
|
-
190, 194,
|
|
255
|
+
190, 194, 205, 206, 207, 208, 209, 210,
|
|
250
256
|
]);
|
|
251
257
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
@@ -5,3 +5,11 @@ export declare const fetchPairDepths: (contracts: Contracts, pairIxs: number[])
|
|
|
5
5
|
export declare const fetchFees: (contracts: Contracts, feeIxs: PairIndex[]) => Promise<Fee[]>;
|
|
6
6
|
export declare const fetchOpenInterest: (contracts: Contracts, pairIxs: number[]) => Promise<OpenInterest[]>;
|
|
7
7
|
export declare const getPairDescription: (pairIndex: PairIndex) => string;
|
|
8
|
+
/**
|
|
9
|
+
* "WIF/USD": CRYPTO,
|
|
10
|
+
"PIXEL/USD": CRYPTO,
|
|
11
|
+
"JTO/USD": CRYPTO,
|
|
12
|
+
"MAVIA/USD": CRYPTO,
|
|
13
|
+
"MYRO/USD": CRYPTO,
|
|
14
|
+
"STG/USD": CRYPTO,
|
|
15
|
+
*/
|
|
@@ -98,7 +98,7 @@ const fetchOpenInterest = (contracts, pairIxs) => __awaiter(void 0, void 0, void
|
|
|
98
98
|
});
|
|
99
99
|
exports.fetchOpenInterest = fetchOpenInterest;
|
|
100
100
|
const getPairDescription = (pairIndex) => {
|
|
101
|
-
return PAIR_INDEX_TO_DESCRIPTION[pairIndex] ||
|
|
101
|
+
return PAIR_INDEX_TO_DESCRIPTION[pairIndex] || "";
|
|
102
102
|
};
|
|
103
103
|
exports.getPairDescription = getPairDescription;
|
|
104
104
|
const PAIR_INDEX_TO_DESCRIPTION = {
|
|
@@ -307,4 +307,18 @@ const PAIR_INDEX_TO_DESCRIPTION = {
|
|
|
307
307
|
[types_1.PairIndex.NTRNUSD]: "Neutron to US Dollar",
|
|
308
308
|
[types_1.PairIndex.PYTHUSD]: "Pyth Network to US Dollar",
|
|
309
309
|
[types_1.PairIndex.SCUSD]: "Siacoin to US Dollar",
|
|
310
|
+
[types_1.PairIndex.WIFUSD]: "dogwifhat to US Dollar",
|
|
311
|
+
[types_1.PairIndex.PIXELUSD]: "Pixels to US Dollar",
|
|
312
|
+
[types_1.PairIndex.JTOUSD]: "Jito to US Dollar",
|
|
313
|
+
[types_1.PairIndex.MAVIAUSD]: "Heroes of Mavia to US Dollar",
|
|
314
|
+
[types_1.PairIndex.MYROUSD]: "Myro to US Dollar",
|
|
315
|
+
[types_1.PairIndex.STGUSD]: "Stargate to US Dollar",
|
|
310
316
|
};
|
|
317
|
+
/**
|
|
318
|
+
* "WIF/USD": CRYPTO,
|
|
319
|
+
"PIXEL/USD": CRYPTO,
|
|
320
|
+
"JTO/USD": CRYPTO,
|
|
321
|
+
"MAVIA/USD": CRYPTO,
|
|
322
|
+
"MYRO/USD": CRYPTO,
|
|
323
|
+
"STG/USD": CRYPTO,
|
|
324
|
+
*/
|
package/lib/trade/types.d.ts
CHANGED
package/lib/trade/types.js
CHANGED
|
@@ -219,4 +219,10 @@ var PairIndex;
|
|
|
219
219
|
PairIndex[PairIndex["NTRNUSD"] = 202] = "NTRNUSD";
|
|
220
220
|
PairIndex[PairIndex["PYTHUSD"] = 203] = "PYTHUSD";
|
|
221
221
|
PairIndex[PairIndex["SCUSD"] = 204] = "SCUSD";
|
|
222
|
+
PairIndex[PairIndex["WIFUSD"] = 205] = "WIFUSD";
|
|
223
|
+
PairIndex[PairIndex["PIXELUSD"] = 206] = "PIXELUSD";
|
|
224
|
+
PairIndex[PairIndex["JTOUSD"] = 207] = "JTOUSD";
|
|
225
|
+
PairIndex[PairIndex["MAVIAUSD"] = 208] = "MAVIAUSD";
|
|
226
|
+
PairIndex[PairIndex["MYROUSD"] = 209] = "MYROUSD";
|
|
227
|
+
PairIndex[PairIndex["STGUSD"] = 210] = "STGUSD";
|
|
222
228
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|