@cityofzion/blockchain-service 1.5.0 → 1.7.0

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.
@@ -72,7 +72,7 @@ class CryptoCompareEDS {
72
72
  }
73
73
  getCurrencyRatio(currency) {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
- const { data } = yield axios_1.default.get(`https://api.flamingo.finance/fiat/exchange-rate?pair=USD_${currency}`);
75
+ const { data } = yield axios_1.default.get(`https://neo-api.b-cdn.net/flamingo/live-data/fiat-exchange-rate/USD_${currency}`);
76
76
  return data;
77
77
  });
78
78
  }
@@ -39,9 +39,9 @@ export interface BlockchainService<BSCustomName extends string = string, BSAvail
39
39
  blockchainDataService: BlockchainDataService;
40
40
  tokens: Token[];
41
41
  network: Network<BSAvailableNetworks>;
42
- clone: () => BlockchainService<BSCustomName, BSAvailableNetworks>;
42
+ testNetwork: (network: Network<BSAvailableNetworks>) => Promise<void>;
43
43
  setNetwork: (partialNetwork: Network<BSAvailableNetworks>) => void;
44
- generateAccountFromMnemonic(mnemonic: string | string, index: number): Account;
44
+ generateAccountFromMnemonic(mnemonic: string, index: number): Account;
45
45
  generateAccountFromKey(key: string): Account;
46
46
  decrypt(keyOrJson: string, password: string): Promise<Account>;
47
47
  encrypt(key: string, password: string): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityofzion/blockchain-service",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": "https://github.com/CityOfZion/blockchain-services",