@gainsnetwork/sdk 0.2.0-rc3 → 0.2.0-rc5
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 +10 -1
- package/lib/constants.js +11 -3
- package/lib/contracts/addresses.json +8 -8
- package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +1911 -0
- package/lib/contracts/types/generated/GFarmTradingStorageV5.js +2 -0
- package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +1067 -0
- package/lib/contracts/types/generated/GNSBorrowingFees.js +2 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +533 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6.js +2 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +613 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +2 -0
- package/lib/contracts/types/generated/GNSTrading.d.ts +758 -0
- package/lib/contracts/types/generated/GNSTrading.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +875 -0
- package/lib/contracts/types/generated/GNSTradingCallbacks.js +2 -0
- package/lib/contracts/types/generated/GNSTradingStorage.d.ts +1387 -0
- package/lib/contracts/types/generated/GNSTradingStorage.js +2 -0
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +83 -0
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +2691 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +124 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +1784 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +100 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +1116 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +100 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +1003 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +113 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +1428 -0
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +96 -0
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +2241 -0
- package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +95 -0
- package/lib/contracts/types/generated/factories/GNSTrading__factory.js +1071 -0
- package/lib/contracts/utils/openTrades.d.ts +1 -0
- package/lib/contracts/utils/openTrades.js +29 -294
- package/lib/contracts/utils/pairs.js +10 -2
- package/lib/trade/types.d.ts +11 -2
- package/lib/trade/types.js +11 -2
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -220,8 +220,17 @@ export declare const pairs: {
|
|
|
220
220
|
"RONIN/USD": string;
|
|
221
221
|
"ENA/USD": string;
|
|
222
222
|
"W/USD": string;
|
|
223
|
-
"TNSR/USD": string;
|
|
224
223
|
"ZEUS/USD": string;
|
|
224
|
+
"TNSR/USD": string;
|
|
225
|
+
"TAO/USD": string;
|
|
226
|
+
"OMNI/USD": string;
|
|
227
|
+
"PRCL/USD": string;
|
|
228
|
+
"MERL/USD": string;
|
|
229
|
+
"SAFE/USD": string;
|
|
230
|
+
"SAGA/USD": string;
|
|
231
|
+
"LL/USD": string;
|
|
232
|
+
"MSN/USD": string;
|
|
233
|
+
"REZ/USD": string;
|
|
225
234
|
};
|
|
226
235
|
export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
|
|
227
236
|
export declare const tickerChanges: {
|
package/lib/constants.js
CHANGED
|
@@ -228,8 +228,17 @@ exports.pairs = {
|
|
|
228
228
|
"RONIN/USD": CRYPTO,
|
|
229
229
|
"ENA/USD": CRYPTO,
|
|
230
230
|
"W/USD": CRYPTO,
|
|
231
|
-
"TNSR/USD": CRYPTO,
|
|
232
231
|
"ZEUS/USD": CRYPTO,
|
|
232
|
+
"TNSR/USD": CRYPTO,
|
|
233
|
+
"TAO/USD": CRYPTO,
|
|
234
|
+
"OMNI/USD": CRYPTO,
|
|
235
|
+
"PRCL/USD": CRYPTO,
|
|
236
|
+
"MERL/USD": CRYPTO,
|
|
237
|
+
"SAFE/USD": CRYPTO,
|
|
238
|
+
"SAGA/USD": CRYPTO,
|
|
239
|
+
"LL/USD": CRYPTO,
|
|
240
|
+
"MSN/USD": CRYPTO,
|
|
241
|
+
"REZ/USD": CRYPTO,
|
|
233
242
|
};
|
|
234
243
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
235
244
|
switch (groupIndex) {
|
|
@@ -263,7 +272,6 @@ exports.stockSplits = {
|
|
|
263
272
|
exports.delistedPairIxs = new Set([
|
|
264
273
|
6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
|
|
265
274
|
70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
|
|
266
|
-
89, 97, 99, 101, 106,
|
|
267
|
-
221, 222,
|
|
275
|
+
89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229,
|
|
268
276
|
]);
|
|
269
277
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"gToken": "0xd3443ee1e91aF28e5FB858Fbd0D72A63bA8046E0"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"421614": {
|
|
37
37
|
"global": {
|
|
38
|
-
"gnsMultiCollatDiamond": "
|
|
38
|
+
"gnsMultiCollatDiamond": "0xd659a15812064C79E189fd950A189b15c75d3186"
|
|
39
39
|
},
|
|
40
40
|
"DAI": {
|
|
41
|
-
"gTokenOpenPnlFeed": "
|
|
42
|
-
"gToken": "
|
|
41
|
+
"gTokenOpenPnlFeed": "0x371a924C2DC433D0C83b67Ff71A4CBd2013b5046",
|
|
42
|
+
"gToken": "0xD6e33C7560009D60052d7A5E0476A8Db295bF8C7"
|
|
43
43
|
},
|
|
44
44
|
"ETH": {
|
|
45
|
-
"gTokenOpenPnlFeed": "
|
|
46
|
-
"gToken": "
|
|
45
|
+
"gTokenOpenPnlFeed": "0xab1042C2767461D59ABC9547b3B717ccae3Eb7C9",
|
|
46
|
+
"gToken": "0xfd7E69042812f3416C18261673b55eD005F67E01"
|
|
47
47
|
},
|
|
48
48
|
"USDC": {
|
|
49
|
-
"gTokenOpenPnlFeed": "
|
|
50
|
-
"gToken": "
|
|
49
|
+
"gTokenOpenPnlFeed": "0x38e6cEFcE96bdB65D64Fce8f4736b3763A5F9eD2",
|
|
50
|
+
"gToken": "0xb0C25646774Ad985B4f9ccD262623bA6D6F64677"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|