New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fireblocks-sdk

Package Overview
Dependencies
Maintainers
6
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fireblocks-sdk - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4

2

dist/package.json
{
"name": "fireblocks-sdk",
"version": "3.1.3",
"version": "3.1.4",
"main": "dist/src/fireblocks-sdk.js",

@@ -5,0 +5,0 @@ "types": "dist/src/fireblocks-sdk.d.ts",

import { IAuthProvider } from "./iauth-provider";
import { AllocateFundsRequest, AssetResponse, AssetTypeResponse, CancelTransactionResponse, ConvertExchangeAssetResponse, CreateTransactionResponse, CreateTransferTicketArgs, CreateTransferTicketResponse, DeallocateFundsRequest, DepositAddressResponse, EstimateFeeResponse, EstimateTransactionFeeResponse, ExchangeResponse, ExecuteTermArgs, ExternalWalletAsset, FiatAccountResponse, GasStationInfo, GenerateAddressResponse, InternalWalletAsset, MaxSpendableAmountResponse, NetworkConnectionResponse, OffExchangeEntityResponse, OperationSuccessResponse, PagedVaultAccountsRequestFilters, PagedVaultAccountsResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, RequestOptions, ResendWebhooksResponse, TermResponse, TransactionArguments, TransactionFilter, TransactionPageFilter, TransactionPageResponse, TransactionResponse, TransferTicketResponse, User, ValidateAddressResponse, VaultAccountResponse, VaultAccountsFilter, VaultAssetResponse, VaultBalancesFilter, WalletContainerResponse, SetFeePayerConfiguration, FeePayerConfiguration, CreateWeb3ConnectionResponse, Session, NetworkConnectionRoutingPolicy, NetworkIdRoutingPolicy, NetworkIdResponse, TimePeriod, AuditsResponse, NFTOwnershipFilter, Token, TokenWithBalance, APIPagedResponse, CreateWalletConnectPayload, Web3ConnectionType, GetWeb3ConnectionsPayload, PublicKeyResponse, AllocateFundsResponse, SettleOffExchangeAccountResponse } from "./types";
import { AllocateFundsRequest, AssetResponse, AssetTypeResponse, CancelTransactionResponse, ConvertExchangeAssetResponse, CreateTransactionResponse, CreateTransferTicketArgs, CreateTransferTicketResponse, DeallocateFundsRequest, DepositAddressResponse, EstimateFeeResponse, EstimateTransactionFeeResponse, ExchangeResponse, ExecuteTermArgs, ExternalWalletAsset, FiatAccountResponse, GasStationInfo, GenerateAddressResponse, InternalWalletAsset, MaxSpendableAmountResponse, NetworkConnectionResponse, OffExchangeEntityResponse, OperationSuccessResponse, PagedVaultAccountsRequestFilters, PagedVaultAccountsResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, RequestOptions, ResendWebhooksResponse, TermResponse, TransactionArguments, TransactionFilter, TransactionPageFilter, TransactionPageResponse, TransactionResponse, TransferTicketResponse, User, ValidateAddressResponse, VaultAccountResponse, VaultAccountsFilter, VaultAssetResponse, VaultBalancesFilter, WalletContainerResponse, SetFeePayerConfiguration, FeePayerConfiguration, CreateWeb3ConnectionResponse, Session, NetworkConnectionRoutingPolicy, NetworkIdRoutingPolicy, NetworkIdResponse, TimePeriod, AuditsResponse, NFTOwnershipFilter, Token, TokenWithBalance, APIPagedResponse, CreateWalletConnectPayload, Web3ConnectionType, GetWeb3ConnectionsPayload, PublicKeyResponse, AllocateFundsResponse, SettleOffExchangeAccountResponse, GetNFTsFilter } from "./types";
import { AxiosProxyConfig } from "axios";

@@ -647,3 +647,3 @@ export * from "./types";

* @param payload.filter The filter object, containing properties as keys and the values to filter by as values
* @param payload.desc Should the results be ordered in ascending order (false) or descending (true)
* @param payload.order Should the results be ordered in ascending order (false) or descending (true)
*

@@ -697,13 +697,17 @@ * @returns An object containing the data returned and the cursor for the next page

*
* @param ids List of NFT tokens to fetch
* @param pageCursor
* @param pageSize
* @param filter.pageCursor
* @param filter.pageSize
* @param filter.ids
* @param filter.order
*/
getNFTs(ids: string[], pageCursor?: string, pageSize?: number): Promise<APIPagedResponse<Token>>;
getNFTs(filter: GetNFTsFilter): Promise<APIPagedResponse<Token>>;
/**
*
* Gets a list of owned NFT tokens
* @param filter.vaultAccountId The vault account ID
* @param filter.vaultAccountIds List of vault account IDs
* @param filter.blockchainDescriptor The blockchain descriptor (based on legacy asset)
* @param filter.collectionIds List of collection IDs
* @param filter.ids List of token ids to fetch
* @param filter.sort Sort by value
* @param filter.order Order value
*/

@@ -722,2 +726,3 @@ getOwnedNFTs(filter?: NFTOwnershipFilter): Promise<APIPagedResponse<TokenWithBalance>>;

refreshNFTOwnershipByVault(vaultAccountId: string, blockchainDescriptor: string): Promise<void>;
private getCommaSeparatedList;
}

@@ -1196,3 +1196,3 @@ "use strict";

* @param payload.filter The filter object, containing properties as keys and the values to filter by as values
* @param payload.desc Should the results be ordered in ascending order (false) or descending (true)
* @param payload.order Should the results be ordered in ascending order (false) or descending (true)
*

@@ -1249,12 +1249,15 @@ * @returns An object containing the data returned and the cursor for the next page

*
* @param ids List of NFT tokens to fetch
* @param pageCursor
* @param pageSize
* @param filter.pageCursor
* @param filter.pageSize
* @param filter.ids
* @param filter.order
*/
getNFTs(ids, pageCursor, pageSize) {
getNFTs(filter) {
return __awaiter(this, void 0, void 0, function* () {
const { pageCursor, pageSize, ids, order } = filter;
const queryParams = {
pageCursor,
pageSize,
ids: ids ? ids.join(",") : undefined,
ids: this.getCommaSeparatedList(ids),
order,
};

@@ -1267,5 +1270,8 @@ return yield this.apiClient.issueGetRequest(`/v1/nfts/tokens?${query_string_1.default.stringify(queryParams)}`);

* Gets a list of owned NFT tokens
* @param filter.vaultAccountId The vault account ID
* @param filter.vaultAccountIds List of vault account IDs
* @param filter.blockchainDescriptor The blockchain descriptor (based on legacy asset)
* @param filter.collectionIds List of collection IDs
* @param filter.ids List of token ids to fetch
* @param filter.sort Sort by value
* @param filter.order Order value
*/

@@ -1276,9 +1282,12 @@ getOwnedNFTs(filter) {

if (filter) {
const { blockchainDescriptor, vaultAccountId, ids, pageCursor, pageSize } = filter;
const { blockchainDescriptor, vaultAccountIds, collectionIds, ids, pageCursor, pageSize, sort, order } = filter;
const requestFilter = {
vaultAccountId,
vaultAccountIds: this.getCommaSeparatedList(vaultAccountIds),
blockchainDescriptor,
collectionIds: this.getCommaSeparatedList(collectionIds),
pageCursor,
pageSize,
ids: ids ? ids.join(",") : undefined,
ids: this.getCommaSeparatedList(ids),
sort: this.getCommaSeparatedList(sort),
order,
};

@@ -1309,4 +1318,7 @@ url += `?${query_string_1.default.stringify(requestFilter)}`;

}
getCommaSeparatedList(items) {
return items ? items.join(",") : undefined;
}
}
exports.FireblocksSDK = FireblocksSDK;
//# sourceMappingURL=fireblocks-sdk.js.map

@@ -424,7 +424,16 @@ export interface VaultAccountResponse {

blockchainDescriptor?: string;
vaultAccountId?: string;
vaultAccountIds?: string[];
collectionIds?: string[];
ids?: string[];
pageCursor?: string;
pageSize?: number;
sort?: GetOwnedNFTsSortValues[];
order?: OrderValues;
}
export interface GetNFTsFilter {
ids: string[];
pageCursor?: string;
pageSize?: number;
order?: OrderValues;
}
declare class MediaEntity {

@@ -460,2 +469,4 @@ url: string;

vaultAccountId: string;
ownershipStartTime: number;
ownershipLastUpdateTime: number;
}

@@ -839,2 +850,9 @@ export interface TransactionPageFilter {

}
export declare enum GetOwnedNFTsSortValues {
"ownershipLastUpdateTime" = "ownershipLastUpdateTime"
}
export declare enum OrderValues {
"ASC" = "ASC",
"DESC" = "DESC"
}
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimePeriod = exports.SettleResponseCode = exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.Web3ConnectionMethod = exports.Web3ConnectionType = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.NetworkDestType = exports.NetworkScheme = exports.FeeLevel = exports.Web3ConnectionFeeLevel = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0;
exports.OrderValues = exports.GetOwnedNFTsSortValues = exports.TimePeriod = exports.SettleResponseCode = exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.Web3ConnectionMethod = exports.Web3ConnectionType = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.NetworkDestType = exports.NetworkScheme = exports.FeeLevel = exports.Web3ConnectionFeeLevel = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0;
var VirtualAffiliation;

@@ -142,2 +142,11 @@ (function (VirtualAffiliation) {

})(TimePeriod = exports.TimePeriod || (exports.TimePeriod = {}));
var GetOwnedNFTsSortValues;
(function (GetOwnedNFTsSortValues) {
GetOwnedNFTsSortValues["ownershipLastUpdateTime"] = "ownershipLastUpdateTime";
})(GetOwnedNFTsSortValues = exports.GetOwnedNFTsSortValues || (exports.GetOwnedNFTsSortValues = {}));
var OrderValues;
(function (OrderValues) {
OrderValues["ASC"] = "ASC";
OrderValues["DESC"] = "DESC";
})(OrderValues = exports.OrderValues || (exports.OrderValues = {}));
//# sourceMappingURL=types.js.map
{
"name": "fireblocks-sdk",
"version": "3.1.3",
"version": "3.1.4",
"main": "dist/src/fireblocks-sdk.js",

@@ -5,0 +5,0 @@ "types": "dist/src/fireblocks-sdk.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc