@gainsnetwork/sdk 0.1.8 → 0.1.9
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.
|
@@ -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 = {
|
|
@@ -293,4 +293,5 @@ const PAIR_INDEX_TO_DESCRIPTION = {
|
|
|
293
293
|
[types_1.PairIndex.XPTUSD]: "Platinum to US Dollar",
|
|
294
294
|
[types_1.PairIndex.XPDUSD]: "Palladium to US Dollar",
|
|
295
295
|
[types_1.PairIndex.HGUSD]: "Copper to US Dollar",
|
|
296
|
+
[types_1.PairIndex.JUPUSD]: "Jupiter to US Dollar",
|
|
296
297
|
};
|
package/lib/trade/types.d.ts
CHANGED
package/lib/trade/types.js
CHANGED
|
@@ -205,4 +205,5 @@ var PairIndex;
|
|
|
205
205
|
PairIndex[PairIndex["XPTUSD"] = 188] = "XPTUSD";
|
|
206
206
|
PairIndex[PairIndex["XPDUSD"] = 189] = "XPDUSD";
|
|
207
207
|
PairIndex[PairIndex["HGUSD"] = 190] = "HGUSD";
|
|
208
|
+
PairIndex[PairIndex["JUPUSD"] = 191] = "JUPUSD";
|
|
208
209
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gainsnetwork/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Gains Network SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
"test:watch": "jest --watch",
|
|
17
17
|
"test": "jest --coverage",
|
|
18
18
|
"typecheck": "tsc --noEmit",
|
|
19
|
-
"generate-types": "typechain --target=ethers-v5 --out-dir ./src/contracts/types/generated ./abi/*.json"
|
|
19
|
+
"generate-types": "typechain --target=ethers-v5 --out-dir ./src/contracts/types/generated ./abi/*.json",
|
|
20
|
+
"prepublishOnly": "npm run build"
|
|
20
21
|
},
|
|
21
22
|
"repository": {
|
|
22
23
|
"type": "git",
|