fireblocks-sdk
Advanced tools
Comparing version 1.5.10 to 1.5.11
@@ -1,2 +0,2 @@ | ||
import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, WalletAssetResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse, CreateTransferTicketArgs, TransferTicketResponse, TermResponse, ExecuteTermArgs, CreateTransferTicketResponse, EstimateTransactionFeeResponse, EstimateFeeResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, GasStationInfo, MaxSpendableAmountResponse } from "./types"; | ||
import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, WalletAssetResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse, CreateTransferTicketArgs, TransferTicketResponse, TermResponse, ExecuteTermArgs, CreateTransferTicketResponse, EstimateTransactionFeeResponse, EstimateFeeResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, GasStationInfo, MaxSpendableAmountResponse, VaultAccountsFilter } from "./types"; | ||
export * from "./types"; | ||
@@ -21,3 +21,3 @@ export declare class FireblocksSDK { | ||
*/ | ||
getVaultAccounts(): Promise<VaultAccountResponse[]>; | ||
getVaultAccounts(filter?: VaultAccountsFilter): Promise<VaultAccountResponse[]>; | ||
/** | ||
@@ -361,5 +361,9 @@ * @deprecated Replaced by getVaultAccountById. | ||
/** | ||
* Get max spendable amount per asset and vault. | ||
* Get max spendable amount per asset and vault | ||
*/ | ||
getMaxSpendableAmount(vaultAccountId: string, assetId: string, manualSigning?: Boolean): Promise<MaxSpendableAmountResponse>; | ||
/** | ||
* Get all vault assets balance overview | ||
*/ | ||
getVaultAssetsBalance(filter: VaultAccountsFilter): Promise<AssetResponse>; | ||
} |
@@ -55,5 +55,6 @@ "use strict"; | ||
*/ | ||
getVaultAccounts() { | ||
getVaultAccounts(filter) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issueGetRequest("/v1/vault/accounts"); | ||
const url = `/v1/vault/accounts?${query_string_1.default.stringify(filter)}`; | ||
return yield this.apiClient.issueGetRequest(url); | ||
}); | ||
@@ -710,3 +711,3 @@ } | ||
/** | ||
* Get max spendable amount per asset and vault. | ||
* Get max spendable amount per asset and vault | ||
*/ | ||
@@ -722,4 +723,13 @@ getMaxSpendableAmount(vaultAccountId, assetId, manualSigning) { | ||
} | ||
/** | ||
* Get all vault assets balance overview | ||
*/ | ||
getVaultAssetsBalance(filter) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const url = `/v1/vault/assets?${query_string_1.default.stringify(filter)}`; | ||
return yield this.apiClient.issueGetRequest(url); | ||
}); | ||
} | ||
} | ||
exports.FireblocksSDK = FireblocksSDK; | ||
//# sourceMappingURL=fireblocks-sdk.js.map |
@@ -288,3 +288,4 @@ export interface VaultAccountResponse { | ||
FIAT_ACCOUNT = "FIAT_ACCOUNT", | ||
COMPOUND = "COMPOUND" | ||
COMPOUND = "COMPOUND", | ||
ONE_TIME_ADDRESS = "ONE_TIME_ADDRESS" | ||
} | ||
@@ -381,2 +382,6 @@ export declare enum TransactionOperation { | ||
} | ||
export interface VaultAccountsFilter { | ||
namePrefix?: string; | ||
nameSuffix?: string; | ||
} | ||
export {}; |
@@ -59,2 +59,3 @@ "use strict"; | ||
PeerType["COMPOUND"] = "COMPOUND"; | ||
PeerType["ONE_TIME_ADDRESS"] = "ONE_TIME_ADDRESS"; | ||
})(PeerType = exports.PeerType || (exports.PeerType = {})); | ||
@@ -61,0 +62,0 @@ var TransactionOperation; |
{ | ||
"name": "fireblocks-sdk", | ||
"version": "1.5.10", | ||
"version": "1.5.11", | ||
"main": "dist/fireblocks-sdk.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/fireblocks-sdk.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
82023
1698