@cityofzion/bs-neo3 1.0.2 → 1.0.3
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/dist/FlamingoEDSNeo3.js +8 -3
- package/package.json +1 -1
package/dist/FlamingoEDSNeo3.js
CHANGED
|
@@ -52,9 +52,14 @@ class FlamingoEDSNeo3 extends blockchain_service_1.CryptoCompareEDS {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
getTokenPriceHistory(params) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
const _super = Object.create(null, {
|
|
56
|
+
getTokenPriceHistory: { get: () => super.getTokenPriceHistory }
|
|
57
|
+
});
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
if (__classPrivateFieldGet(this, _FlamingoEDSNeo3_networkId, "f") !== 'mainnet')
|
|
60
|
+
throw new Error('Exchange is only available on mainnet');
|
|
61
|
+
return yield _super.getTokenPriceHistory.call(this, params);
|
|
62
|
+
});
|
|
58
63
|
}
|
|
59
64
|
getCurrencyRatio(currency) {
|
|
60
65
|
return __awaiter(this, void 0, void 0, function* () {
|