@riocrypto/common-server 1.0.1934 → 1.0.1935

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,4 +1,4 @@
1
- import { FireblocksSDK } from "fireblocks-sdk";
1
+ import { FireblocksSDK, VaultAccountResponse } from "fireblocks-sdk";
2
2
  import { Crypto } from "@riocrypto/common";
3
3
  declare class FireblocksClient {
4
4
  fireblocks: FireblocksSDK;
@@ -17,6 +17,7 @@ declare class FireblocksClient {
17
17
  notes?: string;
18
18
  }): Promise<string>;
19
19
  getVaultCryptoBalance(vaultId: string, crypto: Crypto): Promise<number>;
20
+ getVaultAccount(vaultId: string): Promise<VaultAccountResponse>;
20
21
  getVaultCryptoAddress(vaultId: string, crypto: Crypto): Promise<string>;
21
22
  getTotalVaultUSDBalance(vaultId: string): Promise<number>;
22
23
  getTotalExchangesUSDBalance(): Promise<number>;
@@ -122,6 +122,12 @@ class FireblocksClient {
122
122
  return Number(vaultAsset.available) || 0;
123
123
  });
124
124
  }
125
+ getVaultAccount(vaultId) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const vaultAccount = yield this.fireblocks.getVaultAccountById(vaultId);
128
+ return vaultAccount;
129
+ });
130
+ }
125
131
  getVaultCryptoAddress(vaultId, crypto) {
126
132
  return __awaiter(this, void 0, void 0, function* () {
127
133
  const response = yield this.fireblocks.getDepositAddresses(vaultId, crypto);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1934",
3
+ "version": "1.0.1935",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",