@gainsnetwork/sdk 0.2.9-rc1 → 0.2.11-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 -1
- package/lib/constants.js +6 -3
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +412 -892
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +94 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +852 -2130
- package/lib/contracts/utils/openTrades.js +2 -11
- package/lib/contracts/utils/pairs.d.ts +0 -1
- package/lib/contracts/utils/pairs.js +5 -18
- package/lib/trade/spread.d.ts +1 -8
- package/lib/trade/spread.js +6 -23
- package/lib/trade/types.d.ts +6 -11
- package/lib/trade/types.js +4 -0
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -250,6 +250,10 @@ export declare const pairs: {
|
|
|
250
250
|
"CORE/USD": string;
|
|
251
251
|
"JASMY/USD": string;
|
|
252
252
|
"DAR/USD": string;
|
|
253
|
+
"MEW/USD": string;
|
|
254
|
+
"DEGEN/USD": string;
|
|
255
|
+
"SLERF/USD": string;
|
|
256
|
+
"UXLINK/USD": string;
|
|
253
257
|
};
|
|
254
258
|
export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
|
|
255
259
|
export declare const tickerChanges: {
|
|
@@ -278,4 +282,3 @@ export declare const stockSplits: {
|
|
|
278
282
|
};
|
|
279
283
|
export declare const delistedPairIxs: Set<number>;
|
|
280
284
|
export declare const delistedGroupsIxs: Set<number>;
|
|
281
|
-
export declare const PROTECTION_CLOSE_FACTOR_BLOCKS = 1615;
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.delistedGroupsIxs = exports.delistedPairIxs = exports.stockSplits = exports.tickerChanges = exports.getAssetClassFromGroupIndex = exports.pairs = void 0;
|
|
4
4
|
const CRYPTO = "crypto";
|
|
5
5
|
const FOREX = "forex";
|
|
6
6
|
const STOCKS = "stocks";
|
|
@@ -258,6 +258,10 @@ exports.pairs = {
|
|
|
258
258
|
"CORE/USD": CRYPTO,
|
|
259
259
|
"JASMY/USD": CRYPTO,
|
|
260
260
|
"DAR/USD": CRYPTO,
|
|
261
|
+
"MEW/USD": CRYPTO,
|
|
262
|
+
"DEGEN/USD": CRYPTO,
|
|
263
|
+
"SLERF/USD": CRYPTO,
|
|
264
|
+
"UXLINK/USD": CRYPTO,
|
|
261
265
|
};
|
|
262
266
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
263
267
|
switch (groupIndex) {
|
|
@@ -292,7 +296,6 @@ exports.delistedPairIxs = new Set([
|
|
|
292
296
|
6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
|
|
293
297
|
70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
|
|
294
298
|
89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163,
|
|
295
|
-
155, 15, 170, 239,
|
|
299
|
+
155, 15, 170, 239, 251, 252, 253, 254,
|
|
296
300
|
]);
|
|
297
301
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
298
|
-
exports.PROTECTION_CLOSE_FACTOR_BLOCKS = 1615; // ~1615 blocks per 7 minutes on Arbitrum
|