@riocrypto/common-server 1.0.1940 → 1.0.1941
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, VaultAccountResponse } from "fireblocks-sdk";
|
|
1
|
+
import { ExchangeResponse, FireblocksSDK, VaultAccountResponse } from "fireblocks-sdk";
|
|
2
2
|
import { Crypto } from "@riocrypto/common";
|
|
3
3
|
declare class FireblocksClient {
|
|
4
4
|
fireblocks: FireblocksSDK;
|
|
@@ -18,6 +18,7 @@ declare class FireblocksClient {
|
|
|
18
18
|
}): Promise<string>;
|
|
19
19
|
getVaultCryptoBalance(vaultId: string, crypto: Crypto): Promise<number>;
|
|
20
20
|
getVaultAccount(vaultId: string): Promise<VaultAccountResponse>;
|
|
21
|
+
getExchangeAccount(exchangeId: string): Promise<ExchangeResponse>;
|
|
21
22
|
getVaultCryptoAddress(vaultId: string, crypto: Crypto): Promise<string>;
|
|
22
23
|
getTotalVaultUSDBalance(vaultId: string): Promise<number>;
|
|
23
24
|
getTotalExchangesUSDBalance(): Promise<number>;
|
|
@@ -128,6 +128,12 @@ class FireblocksClient {
|
|
|
128
128
|
return vaultAccount;
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
+
getExchangeAccount(exchangeId) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const exchangeAccount = yield this.fireblocks.getExchangeAccountById(exchangeId);
|
|
134
|
+
return exchangeAccount;
|
|
135
|
+
});
|
|
136
|
+
}
|
|
131
137
|
getVaultCryptoAddress(vaultId, crypto) {
|
|
132
138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
139
|
const response = yield this.fireblocks.getDepositAddresses(vaultId, crypto);
|