@gainsnetwork/sdk 0.2.23 → 0.2.25-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 +4 -0
- package/lib/constants.js +5 -1
- package/lib/contracts/utils/pairs.js +4 -0
- package/lib/trade/types.d.ts +5 -1
- package/lib/trade/types.js +4 -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/constants.d.ts
CHANGED
|
@@ -268,6 +268,10 @@ export declare const pairs: {
|
|
|
268
268
|
"DOGS/USD": string;
|
|
269
269
|
"SSV/USD": string;
|
|
270
270
|
"PONKE/USD": string;
|
|
271
|
+
"POL/USD": string;
|
|
272
|
+
"RDNT/USD": string;
|
|
273
|
+
"FLUX/USD": string;
|
|
274
|
+
"NEIRO/USD": string;
|
|
271
275
|
};
|
|
272
276
|
export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
|
|
273
277
|
export declare const tickerChanges: {
|
package/lib/constants.js
CHANGED
|
@@ -276,6 +276,10 @@ exports.pairs = {
|
|
|
276
276
|
"DOGS/USD": CRYPTO,
|
|
277
277
|
"SSV/USD": CRYPTO,
|
|
278
278
|
"PONKE/USD": CRYPTO,
|
|
279
|
+
"POL/USD": CRYPTO,
|
|
280
|
+
"RDNT/USD": CRYPTO,
|
|
281
|
+
"FLUX/USD": CRYPTO,
|
|
282
|
+
"NEIRO/USD": CRYPTO,
|
|
279
283
|
};
|
|
280
284
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
281
285
|
switch (groupIndex) {
|
|
@@ -311,7 +315,7 @@ exports.delistedPairIxs = new Set([
|
|
|
311
315
|
6, 31, 36, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
|
|
312
316
|
71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
|
|
313
317
|
97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163, 155,
|
|
314
|
-
15, 170, 239, 254, 230,
|
|
318
|
+
15, 170, 239, 254, 230, 269, 270, 271, 272,
|
|
315
319
|
]);
|
|
316
320
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
317
321
|
exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
|
|
@@ -374,4 +374,8 @@ const PAIR_INDEX_TO_DESCRIPTION = {
|
|
|
374
374
|
[types_1.PairIndex.DOGSUSD]: "DOGS to US Dollar",
|
|
375
375
|
[types_1.PairIndex.SSVUSD]: "ssv.network to US Dollar",
|
|
376
376
|
[types_1.PairIndex.PONKEUSD]: "Ponke to US Dollar",
|
|
377
|
+
[types_1.PairIndex.POLUSD]: "POL (ex-MATIC) to US Dollar",
|
|
378
|
+
[types_1.PairIndex.RDNTUSD]: "Radiant Capital to US Dollar",
|
|
379
|
+
[types_1.PairIndex.FLUXUSD]: "Flux to US Dollar",
|
|
380
|
+
[types_1.PairIndex.NEIROUSD]: "Neiro on ETH to US Dollar",
|
|
377
381
|
};
|
package/lib/trade/types.d.ts
CHANGED
package/lib/trade/types.js
CHANGED
|
@@ -298,4 +298,8 @@ var PairIndex;
|
|
|
298
298
|
PairIndex[PairIndex["DOGSUSD"] = 266] = "DOGSUSD";
|
|
299
299
|
PairIndex[PairIndex["SSVUSD"] = 267] = "SSVUSD";
|
|
300
300
|
PairIndex[PairIndex["PONKEUSD"] = 268] = "PONKEUSD";
|
|
301
|
+
PairIndex[PairIndex["POLUSD"] = 269] = "POLUSD";
|
|
302
|
+
PairIndex[PairIndex["RDNTUSD"] = 270] = "RDNTUSD";
|
|
303
|
+
PairIndex[PairIndex["FLUXUSD"] = 271] = "FLUXUSD";
|
|
304
|
+
PairIndex[PairIndex["NEIROUSD"] = 272] = "NEIROUSD";
|
|
301
305
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|