@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.
@@ -1,5 +1,5 @@
1
1
  import { Network } from '@cityofzion/blockchain-service';
2
- export type AvailableNetworkIds = 'mainnet' | 'testnet' | 'custom';
2
+ export type AvailableNetworkIds = 'mainnet' | 'testnet' | (string & {});
3
3
  export declare class BSNeo3Helper {
4
4
  #private;
5
5
  static MAINNET_NETWORK_IDS: AvailableNetworkIds[];
@@ -52,9 +52,14 @@ class FlamingoEDSNeo3 extends blockchain_service_1.CryptoCompareEDS {
52
52
  });
53
53
  }
54
54
  getTokenPriceHistory(params) {
55
- if (__classPrivateFieldGet(this, _FlamingoEDSNeo3_networkId, "f") !== 'mainnet')
56
- throw new Error('Exchange is only available on mainnet');
57
- return super.getTokenPriceHistory(params);
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* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/bs-neo3",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",