@gainsnetwork/sdk 0.2.28 → 0.2.29-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 +5 -0
- package/lib/constants.js +6 -1
- package/lib/contracts/utils/pairs.js +5 -0
- package/lib/trade/types.d.ts +6 -1
- package/lib/trade/types.js +5 -0
- package/package.json +1 -1
- 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/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/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/GNSTradingStorage.d.ts +0 -1387
- package/lib/contracts/types/generated/GNSTradingStorage.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/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/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/utils/openLimitOrders.d.ts +0 -8
- package/lib/contracts/utils/openLimitOrders.js +0 -88
- package/lib/trade/openLimitOrder.d.ts +0 -2
- package/lib/trade/openLimitOrder.js +0 -23
package/lib/constants.d.ts
CHANGED
|
@@ -275,6 +275,11 @@ export declare const pairs: {
|
|
|
275
275
|
"SUNDOG/USD": string;
|
|
276
276
|
"CAT/USD": string;
|
|
277
277
|
"BABYDOGE/USD": string;
|
|
278
|
+
"REEF/USD": string;
|
|
279
|
+
"CKB/USD": string;
|
|
280
|
+
"CATI/USD": string;
|
|
281
|
+
"LOOM/USD": string;
|
|
282
|
+
"ZETA/USD": string;
|
|
278
283
|
};
|
|
279
284
|
export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
|
|
280
285
|
export declare const tickerChanges: {
|
package/lib/constants.js
CHANGED
|
@@ -283,6 +283,11 @@ exports.pairs = {
|
|
|
283
283
|
"SUNDOG/USD": CRYPTO,
|
|
284
284
|
"CAT/USD": CRYPTO,
|
|
285
285
|
"BABYDOGE/USD": CRYPTO,
|
|
286
|
+
"REEF/USD": CRYPTO,
|
|
287
|
+
"CKB/USD": CRYPTO,
|
|
288
|
+
"CATI/USD": CRYPTO,
|
|
289
|
+
"LOOM/USD": CRYPTO,
|
|
290
|
+
"ZETA/USD": CRYPTO,
|
|
286
291
|
};
|
|
287
292
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
288
293
|
switch (groupIndex) {
|
|
@@ -318,7 +323,7 @@ exports.delistedPairIxs = new Set([
|
|
|
318
323
|
6, 31, 36, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
|
|
319
324
|
71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
|
|
320
325
|
97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163, 155,
|
|
321
|
-
15, 170, 239, 254, 230, 4, 275,
|
|
326
|
+
15, 170, 239, 254, 230, 4, 275, 276, 277, 278, 279, 280,
|
|
322
327
|
]);
|
|
323
328
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
324
329
|
exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
|
|
@@ -381,4 +381,9 @@ const PAIR_INDEX_TO_DESCRIPTION = {
|
|
|
381
381
|
[types_1.PairIndex.SUNDOGUSD]: "Sundog to US Dollar",
|
|
382
382
|
[types_1.PairIndex.CATUSD]: "Simon's Cat to US Dollar",
|
|
383
383
|
[types_1.PairIndex.BABYDOGEUSD]: "Baby Doge Coin to US Dollar",
|
|
384
|
+
[types_1.PairIndex.REEFUSD]: "Reef to US Dollar",
|
|
385
|
+
[types_1.PairIndex.CKBUSD]: "Nervos Network to US Dollar",
|
|
386
|
+
[types_1.PairIndex.CATIUSD]: "Catizen to US Dollar",
|
|
387
|
+
[types_1.PairIndex.LOOMUSD]: "Loom Network to US Dollar",
|
|
388
|
+
[types_1.PairIndex.ZETAUSD]: "ZetaChain to US Dollar",
|
|
384
389
|
};
|
package/lib/trade/types.d.ts
CHANGED
package/lib/trade/types.js
CHANGED
|
@@ -305,4 +305,9 @@ var PairIndex;
|
|
|
305
305
|
PairIndex[PairIndex["SUNDOGUSD"] = 273] = "SUNDOGUSD";
|
|
306
306
|
PairIndex[PairIndex["CATUSD"] = 274] = "CATUSD";
|
|
307
307
|
PairIndex[PairIndex["BABYDOGEUSD"] = 275] = "BABYDOGEUSD";
|
|
308
|
+
PairIndex[PairIndex["REEFUSD"] = 276] = "REEFUSD";
|
|
309
|
+
PairIndex[PairIndex["CKBUSD"] = 277] = "CKBUSD";
|
|
310
|
+
PairIndex[PairIndex["CATIUSD"] = 278] = "CATIUSD";
|
|
311
|
+
PairIndex[PairIndex["LOOMUSD"] = 279] = "LOOMUSD";
|
|
312
|
+
PairIndex[PairIndex["ZETAUSD"] = 280] = "ZETAUSD";
|
|
308
313
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|