@cityofzion/bs-neo3 1.0.1 → 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/BSNeo3Helper.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Network } from '@cityofzion/blockchain-service';
|
|
2
|
-
export type AvailableNetworkIds = 'mainnet' | 'testnet' |
|
|
2
|
+
export type AvailableNetworkIds = 'mainnet' | 'testnet' | (string & {});
|
|
3
3
|
export declare class BSNeo3Helper {
|
|
4
4
|
#private;
|
|
5
5
|
static MAINNET_NETWORK_IDS: AvailableNetworkIds[];
|
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* () {
|