fireblocks-sdk
Advanced tools
Comparing version 1.5.17 to 1.5.18
@@ -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, VaultAccountsFilter, RequestOptions, VaultBalancesFilter, ValidateAddressResponse, CreateVaultAssetResponse } 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, VaultBalancesFilter, ValidateAddressResponse, CreateVaultAssetResponse, RequestOptions, AllocateFundsRequest, DeallocateFundsRequest } from "./types"; | ||
export * from "./types"; | ||
@@ -343,2 +343,18 @@ export declare class FireblocksSDK { | ||
/** | ||
* allocate funds from you default balance to a private ledger | ||
* @param vaultAccountId | ||
* @param asset | ||
* @param vaultAccountId | ||
* @param asset | ||
* @param args | ||
*/ | ||
allocateFundsToPrivateLedger(vaultAccountId: string, asset: string, args: AllocateFundsRequest): Promise<any>; | ||
/** | ||
* deallocate funds from a private ledger to your default balance | ||
* @param vaultAccountId | ||
* @param asset | ||
* @param args | ||
*/ | ||
deallocateFundsFromPrivateLedger(vaultAccountId: string, asset: string, args: DeallocateFundsRequest): Promise<any>; | ||
/** | ||
* Get the public key information for a vault account | ||
@@ -345,0 +361,0 @@ * @param args |
@@ -668,2 +668,28 @@ "use strict"; | ||
/** | ||
* allocate funds from you default balance to a private ledger | ||
* @param vaultAccountId | ||
* @param asset | ||
* @param vaultAccountId | ||
* @param asset | ||
* @param args | ||
*/ | ||
allocateFundsToPrivateLedger(vaultAccountId, asset, args) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const url = `/v1/vault/accounts/${vaultAccountId}/${asset}/lock_allocation`; | ||
return yield this.apiClient.issuePostRequest(url, args); | ||
}); | ||
} | ||
/** | ||
* deallocate funds from a private ledger to your default balance | ||
* @param vaultAccountId | ||
* @param asset | ||
* @param args | ||
*/ | ||
deallocateFundsFromPrivateLedger(vaultAccountId, asset, args) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const url = `/v1/vault/accounts/${vaultAccountId}/${asset}/release_allocation`; | ||
return yield this.apiClient.issuePostRequest(url, args); | ||
}); | ||
} | ||
/** | ||
* Get the public key information for a vault account | ||
@@ -670,0 +696,0 @@ * @param args |
@@ -75,2 +75,4 @@ export interface VaultAccountResponse { | ||
id?: string; | ||
virtualId?: string; | ||
virtualType?: VirtualType; | ||
address?: string; | ||
@@ -81,2 +83,4 @@ } | ||
id: string; | ||
virtualId?: string; | ||
virtualType?: VirtualType; | ||
oneTimeAddress?: IOneTimeAddress; | ||
@@ -296,2 +300,6 @@ } | ||
} | ||
export declare enum VirtualType { | ||
OFF_EXCHANGE = "OFF_EXCHANGE", | ||
DEFAULT = "DEFAULT" | ||
} | ||
export declare enum TransactionOperation { | ||
@@ -306,2 +314,10 @@ TRANSFER = "TRANSFER", | ||
} | ||
export interface AllocateFundsRequest { | ||
allocationId: string; | ||
amount: string; | ||
} | ||
export interface DeallocateFundsRequest { | ||
allocationId: string; | ||
amount: string; | ||
} | ||
export interface CreateTransferTicketArgs { | ||
@@ -308,0 +324,0 @@ externalTicketId: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.TransactionOperation = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.FeeLevel = exports.SigningAlgorithm = void 0; | ||
exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.FeeLevel = exports.SigningAlgorithm = void 0; | ||
var SigningAlgorithm; | ||
@@ -61,2 +61,7 @@ (function (SigningAlgorithm) { | ||
})(PeerType = exports.PeerType || (exports.PeerType = {})); | ||
var VirtualType; | ||
(function (VirtualType) { | ||
VirtualType["OFF_EXCHANGE"] = "OFF_EXCHANGE"; | ||
VirtualType["DEFAULT"] = "DEFAULT"; | ||
})(VirtualType = exports.VirtualType || (exports.VirtualType = {})); | ||
var TransactionOperation; | ||
@@ -63,0 +68,0 @@ (function (TransactionOperation) { |
{ | ||
"name": "fireblocks-sdk", | ||
"version": "1.5.17", | ||
"version": "1.5.18", | ||
"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
87043
1805