@riocrypto/common-server 1.0.1099 → 1.0.1100

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.
@@ -6,7 +6,7 @@ declare class FireblocksClient {
6
6
  estimateWithdrawFee(crypto: Crypto, address: string, amountCrypto: number): Promise<string | undefined>;
7
7
  withdrawFromExchange(crypto: Crypto, address: string, amountCrypto: number): Promise<void>;
8
8
  withdrawFromVault(crypto: Crypto, address: string, amountCrypto: number): Promise<string>;
9
- getVaultCryptoBalance(crypto: Crypto): Promise<number>;
9
+ getVaultCryptoBalance(vaultId: string, crypto: Crypto): Promise<number>;
10
10
  getExchangeCryptoBalance(crypto: Crypto): Promise<number>;
11
11
  getExchangeFiatBalance(): Promise<number>;
12
12
  getTransactions(vaultId: string, crypto: Crypto, nextPage?: string): Promise<any>;
@@ -75,9 +75,9 @@ class FireblocksClient {
75
75
  return response.id;
76
76
  });
77
77
  }
78
- getVaultCryptoBalance(crypto) {
78
+ getVaultCryptoBalance(vaultId, crypto) {
79
79
  return __awaiter(this, void 0, void 0, function* () {
80
- const vaultAsset = yield this.fireblocks.getVaultAccountAsset("2", crypto);
80
+ const vaultAsset = yield this.fireblocks.getVaultAccountAsset(vaultId, crypto);
81
81
  return Number(vaultAsset.available) || 0;
82
82
  });
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1099",
3
+ "version": "1.0.1100",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@aws-sdk/client-s3": "^3.297.0",
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
- "@riocrypto/common": "^1.0.939",
29
+ "@riocrypto/common": "^1.0.940",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",