Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fireblocks-sdk

Package Overview
Dependencies
Maintainers
11
Versions
135
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 5.18.0 to 5.18.1

2

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

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

import { ApiClient } from "./api-client";
import { IAuthProvider } from "./iauth-provider";
import { AllocateFundsRequest, AssetResponse, AssetTypeResponse, CancelTransactionResponse, ConvertExchangeAssetResponse, CreateTransactionResponse, DeallocateFundsRequest, DepositAddressResponse, EstimateFeeResponse, EstimateTransactionFeeResponse, ExchangeResponse, ExternalWalletAsset, FiatAccountResponse, GasStationInfo, GenerateAddressResponse, InternalWalletAsset, MaxSpendableAmountResponse, MaxBip44IndexUsedResponse, PaginatedAddressesResponse, OptionalPaginatedAddressesRequestFilters, NetworkConnectionResponse, OffExchangeEntityResponse, OperationSuccessResponse, PagedVaultAccountsRequestFilters, PagedVaultAccountsResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, RequestOptions, ResendWebhooksResponse, TransactionArguments, TransactionFilter, TransactionPageFilter, TransactionPageResponse, TransactionResponse, User, ValidateAddressResponse, VaultAccountResponse, VaultAssetResponse, VaultBalancesFilter, WalletContainerResponse, SetFeePayerConfiguration, FeePayerConfiguration, CreateWeb3ConnectionResponse, Session, NetworkConnectionRoutingPolicy, NetworkIdRoutingPolicy, NetworkIdResponse, TimePeriod, AuditsResponse, NFTOwnershipFilter, NFTOwnedAssetsFilter, Token, TokenWithBalance, Web3PagedResponse, CreateWalletConnectPayload, Web3ConnectionType, GetWeb3ConnectionsPayload, PublicKeyResponse, AllocateFundsResponse, AddCollateralTransactionRequest, RemoveCollateralTransactionRequest, GetSettlementTransactionsResponse, SettlementRequest, SettlementResponse, GetNFTsFilter, SettleOffExchangeAccountResponse, PublicKeyInformation, DropTransactionResponse, GetAssetWalletsFilters, GetAssetWalletsResponse, TokenLink, IssueTokenRequest, NFTOwnershipStatus, NFTOwnershipStatusUpdatedPayload, NFTOwnedCollectionsFilter, CollectionOwnership, TravelRuleOptions, ValidateTravelRuleVaspInfo, ValidateTravelRuleResult, ValidateCreateTravelRuleTransaction, ValidateFullTravelRuleResult, TravelRuleVasp, TravelRuleVaspFilter, TravelRuleEncryptionOptions, SmartTransfersTicketResponse, SmartTransfersTicketCreatePayload, SmartTransfersTicketsResponse, SmartTransfersTicketsFilters, SmartTransfersTicketTermPayload, SmartTransfersTicketTermFundPayload, SmartTransfersTicketTermResponse, ConsoleUser, ApiUser, TRole, UsersGroup, SmartTransfersUserGroupsResponse, LeanContractTemplateDto, ContractTemplateDto, BatchTask, BatchJob, JobCreatedResponse, ContractUploadRequest, ContractDeployResponse, ContractDeployRequest, PendingTokenLinkDto, ExchangeAccountsPageFilter, PagedExchangeResponse, TAP, WriteCallFunctionDto, ReadCallFunctionDto, WriteCallFunctionResponseDto, ContractAbiResponseDto, DeployedContractResponseDto, LeanDeployedContractResponseDto, ParameterWithValueList, ScreeningTenantConfiguration, AuditLogsResponse } from "./types";
import { AllocateFundsRequest, AssetResponse, AssetTypeResponse, CancelTransactionResponse, ConvertExchangeAssetResponse, CreateTransactionResponse, DeallocateFundsRequest, DepositAddressResponse, EstimateFeeResponse, EstimateTransactionFeeResponse, ExchangeResponse, ExternalWalletAsset, FiatAccountResponse, GasStationInfo, GenerateAddressResponse, InternalWalletAsset, MaxSpendableAmountResponse, MaxBip44IndexUsedResponse, PaginatedAddressesResponse, OptionalPaginatedAddressesRequestFilters, NetworkConnectionResponse, OffExchangeEntityResponse, OperationSuccessResponse, PagedVaultAccountsRequestFilters, PagedVaultAccountsResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, RequestOptions, ResendWebhooksResponse, TransactionArguments, TransactionFilter, TransactionPageFilter, TransactionPageResponse, TransactionResponse, User, ValidateAddressResponse, VaultAccountResponse, VaultAssetResponse, VaultBalancesFilter, WalletContainerResponse, SetFeePayerConfiguration, FeePayerConfiguration, CreateWeb3ConnectionResponse, Session, NetworkConnectionRoutingPolicy, NetworkIdRoutingPolicy, NetworkIdResponse, TimePeriod, AuditsResponse, NFTOwnershipFilter, NFTOwnedAssetsFilter, Token, TokenWithBalance, Web3PagedResponse, CreateWalletConnectPayload, Web3ConnectionType, GetWeb3ConnectionsPayload, PublicKeyResponse, AllocateFundsResponse, AddCollateralTransactionRequest, RemoveCollateralTransactionRequest, GetSettlementTransactionsResponse, SettlementRequest, SettlementResponse, GetNFTsFilter, SettleOffExchangeAccountResponse, PublicKeyInformation, DropTransactionResponse, GetAssetWalletsFilters, GetAssetWalletsResponse, NFTOwnershipStatus, NFTOwnershipStatusUpdatedPayload, NFTOwnedCollectionsFilter, CollectionOwnership, TravelRuleOptions, ValidateTravelRuleVaspInfo, ValidateTravelRuleResult, ValidateCreateTravelRuleTransaction, ValidateFullTravelRuleResult, TravelRuleVasp, TravelRuleVaspFilter, TravelRuleEncryptionOptions, SmartTransfersTicketResponse, SmartTransfersTicketCreatePayload, SmartTransfersTicketsResponse, SmartTransfersTicketsFilters, SmartTransfersTicketTermPayload, SmartTransfersTicketTermFundPayload, SmartTransfersTicketTermResponse, ConsoleUser, ApiUser, TRole, UsersGroup, SmartTransfersUserGroupsResponse, LeanContractTemplateDto, ContractTemplateDto, BatchTask, BatchJob, JobCreatedResponse, ContractUploadRequest, ContractDeployResponse, ContractDeployRequest, ExchangeAccountsPageFilter, PagedExchangeResponse, TAP, WriteCallFunctionDto, ReadCallFunctionDto, WriteCallFunctionResponseDto, ContractAbiResponseDto, DeployedContractResponseDto, LeanDeployedContractResponseDto, ParameterWithValueList, ScreeningTenantConfiguration, AuditLogsResponse, TokenLink, IssueTokenRequest, TokenLinksCount, GetTokenLinksFilter, GetContractTemplatesFilter, SupportedContractTemplateType, AbiFunction } from "./types";
import { AxiosProxyConfig, AxiosResponse, InternalAxiosRequestConfig } from "axios";

@@ -861,10 +861,10 @@ import { NcwSdk } from "./ncw-sdk";

/**
*
* @param filter.pageCursor
* @param filter.pageSize
* @param filter.ids
* @param filter.sort
* @param filter.order
* @param {Object} payload
* @param payload.pageCursor
* @param payload.pageSize
* @param payload.ids
* @param payload.sort
* @param payload.order
*/
getNFTs(filter: GetNFTsFilter): Promise<Web3PagedResponse<Token>>;
getNFTs({ pageCursor, pageSize, ids, sort, order }: GetNFTsFilter): Promise<Web3PagedResponse<Token>>;
/**

@@ -940,16 +940,25 @@ *

* Get all contract templates
* @param limit
* @param offset
* @param {Object} payload The payload for getting the current tenant's sessions
* @param {ContractInitializationPhase} payload.initializationPhase The contract initialization phase
* @param {ContractTemplateType} payload.type The type of the contract templates you wish to retrieve. May contain more than one type
* @param {number} payload.pageSize The amount of results to return on the next page
* @param {string} payload.pageCursor The cursor for the next page
*
* @returns {LeanContractTemplateDto[]} A paginated array of contract templates
*/
getTemplateContracts(limit?: number, offset?: number): Promise<LeanContractTemplateDto[]>;
getContractTemplates({ initializationPhase, type, pageSize, pageCursor }?: GetContractTemplatesFilter): Promise<Web3PagedResponse<LeanContractTemplateDto>>;
/**
* Upload a new contract. This contract would be private and only your tenant can see it
* @param payload
*
* @returns {ContractTemplateDto}
*/
uploadTemplateContract(payload: ContractUploadRequest): Promise<ContractTemplateDto>;
uploadContractTemplate(payload: ContractUploadRequest): Promise<ContractTemplateDto>;
/**
* Get contract template by id
* @param contractId
*
* @returns {ContractTemplateDto}
*/
getTemplateContract(contractId: string): Promise<ContractTemplateDto>;
getContractTemplate(contractId: string): Promise<ContractTemplateDto>;
/**

@@ -959,3 +968,3 @@ * Delete a contract template by id

*/
deleteTemplateContract(contractId: string): Promise<void>;
deleteContractTemplate(contractId: string): Promise<void>;
/**

@@ -965,7 +974,11 @@ * Get contract template constructor by contract id

* @param withDocs
*
* @returns {ContractTemplateDto}
*/
getTemplateContractConstructor(contractId: string, withDocs?: boolean): Promise<ContractTemplateDto>;
getContractTemplateConstructor(contractId: string, withDocs?: boolean): Promise<ContractTemplateDto>;
/**
* Deploy a new contract by contract template id
* @param contractId
*
* @returns {ContractDeployResponse}
*/

@@ -977,2 +990,4 @@ deployContract(contractId: string, payload: ContractDeployRequest): Promise<ContractDeployResponse>;

* @param templateId
*
* @returns {LeanDeployedContractResponseDto[]}
*/

@@ -984,2 +999,4 @@ getContractsByFilter(templateId: string, blockchainId?: string): Promise<LeanDeployedContractResponseDto[]>;

* @param templateId
*
* @returns {DeployedContractResponseDto}
*/

@@ -991,8 +1008,20 @@ getContractByAddress(blockchainId: string, contractAddress: string): Promise<DeployedContractResponseDto>;

* @param templateId
*
* @returns {ContractAbiResponseDto}
*/
getContractAbi(blockchainId: string, contractAddress: string): Promise<ContractAbiResponseDto>;
/**
* Get contract ABI function by contractId
* @param contractId
* @param functionSignature
*
* @returns {AbiFunction}
*/
getContractAbiFunction(contractId: string, functionSignature: string): Promise<AbiFunction>;
/**
* Call contract read function
* @param blockchainId
* @param templateId
*
* @returns ParameterWithValueList
*/

@@ -1004,34 +1033,60 @@ readContractCallFunction(blockchainId: string, contractAddress: string, payload: ReadCallFunctionDto): Promise<ParameterWithValueList>;

* @param templateId
*
* @returns WriteCallFunctionResponseDto
*/
writeContractCallFunction(blockchainId: string, contractAddress: string, payload: WriteCallFunctionDto): Promise<WriteCallFunctionResponseDto>;
/**
* Issue a new token and link it to the tenant
* @param payload
* Creates a new asset and links it as a token.
*
* @param {IssueTokenRequest} payload - The payload containing information for token issuance.
*
* @returns {TokenLink} Response with created token ID
*/
issueNewToken(payload: IssueTokenRequest): Promise<PendingTokenLinkDto>;
issueNewToken(payload: IssueTokenRequest): Promise<TokenLink>;
/**
* Get all tokens linked to the tenant
* @param pageSize
* @param pageCursor
* Retrieves all linked tokens in a paginated format.
*
* @param {Object} payload - The payload for retrieving linked tokens
* @param {TokenLinkStatus} payload.status - The status of linked tokens (COMPLETED / PENDING)
* @param {number} payload.pageSize - The number of results to return on the next page
* @param {string} payload.pageCursor - The cursor for the next page
*
* @returns {TokenLink[]} A paginated array of linked tokens
*/
getLinkedTokens(pageSize?: number, pageCursor?: string): Promise<Web3PagedResponse<TokenLink>>;
getLinkedTokens({ status, pageSize, pageCursor }?: GetTokenLinksFilter): Promise<Web3PagedResponse<TokenLink>>;
/**
* Get the total count of linked tokens
* @returns TokenLinksCount
*/
getLinkedTokensCount(): Promise<TokenLinksCount>;
/**
* Link a token to the tenant
* @param assetId
* @param type
* @param refId
*
* @returns TokenLink
*/
linkToken(assetId: string): Promise<TokenLink>;
linkToken(type: SupportedContractTemplateType, refId: string): Promise<TokenLink>;
/**
* Get a token linked to the tenant by asset id
* @param assetId
* Get a linked token
* @param id
*
* @returns TokenLink
*/
getLinkedToken(assetId: string): Promise<TokenLink>;
getLinkedToken(id: string): Promise<TokenLink>;
/**
* Unlink a token from the tenant
* @param assetId
* Delete a token link
* @param id
*/
unlinkToken(assetId: string): Promise<TokenLink>;
unlinkToken(id: string): Promise<TokenLink>;
/**
* Get all pending tokens linked to the tenant
* Retrieves all pending linked tokens in a paginated format
*
* @param {Object} payload - The payload for retrieving pending linked tokens
* @param {number} payload.pageSize - The number of results to return on the next page
* @param {string} payload.pageCursor - The cursor for the next page
*
* @returns {TokenLink[]} A paginated array of pending linked tokens
*/
getPendingLinkedTokens(): Promise<PendingTokenLinkDto[]>;
getPendingLinkedTokens({ pageSize, pageCursor }?: GetTokenLinksFilter): Promise<Web3PagedResponse<TokenLink>>;
/**

@@ -1038,0 +1093,0 @@ * Validate VASP details for travel rule compliance

@@ -1065,3 +1065,3 @@ import { AxiosResponseHeaders } from "axios";

customerRefId?: number;
addressFormat: number;
addressFormat?: string;
legacyAddress?: string;

@@ -1434,2 +1434,32 @@ enterpriseAddress?: string;

}
export declare enum ContractTemplateType {
FUNGIBLE_TOKEN = "FUNGIBLE_TOKEN",
NON_FUNGIBLE_TOKEN = "NON_FUNGIBLE_TOKEN",
NON_TOKEN = "NON_TOKEN",
UUPS_PROXY = "UUPS_PROXY"
}
export type SupportedContractTemplateType = ContractTemplateType.FUNGIBLE_TOKEN | ContractTemplateType.NON_FUNGIBLE_TOKEN;
export declare enum ContractInitializationPhase {
ON_DEPLOYMENT = "ON_DEPLOYMENT",
POST_DEPLOYMENT = "POST_DEPLOYMENT"
}
export declare enum InputFieldMetadataTypes {
EncodedFunctionCallFieldType = "encodedFunctionCall",
DeployedContractAddressFieldType = "deployedContractAddress",
SupportedAssetAddressFieldType = "supportedAssetAddress"
}
export interface EncodedFunctionCallFieldMetadata {
templateId: string;
functionSignature: string;
}
export interface DeployedContractAddressFieldMetadata {
templateId: string;
}
export interface FieldMetadata {
type: string | InputFieldMetadataTypes;
info: EncodedFunctionCallFieldMetadata | DeployedContractAddressFieldMetadata;
}
export interface InputFieldsMetadata {
[contractMethod: string]: Record<string, FieldMetadata>;
}
export interface ContractUploadRequest {

@@ -1441,3 +1471,7 @@ name: string;

sourcecode: string;
type?: ContractTemplateType;
implementationContractId?: string;
initializationPhase: ContractInitializationPhase;
compilerOutputMetadata?: object;
inputFieldsMetadata?: InputFieldsMetadata;
docs?: ContractDoc;

@@ -1447,3 +1481,3 @@ abi?: AbiFunction[];

}
interface AbiFunction {
export interface AbiFunction {
name?: string;

@@ -1488,5 +1522,2 @@ stateMutability?: string;

txId: string;
assetId: string;
vaultAccountId: string;
contractId: string;
}

@@ -1507,3 +1538,2 @@ export interface LeanContractTemplateDto {

longDescription: string;
compilerOutputMetadata?: object;
abi: AbiFunction[];

@@ -1513,4 +1543,9 @@ attributes?: Record<string, string>;

owner?: string;
vendor?: VendorDto;
vendor?: VendorDto | null;
isPublic: boolean;
canDeploy: boolean;
type: ContractTemplateType;
implementationContractId?: string;
initializationPhase: ContractInitializationPhase;
compilerOutputMetadata?: object;
}

@@ -1532,14 +1567,27 @@ export interface LinkedTokenMetadata {

}
export declare enum TokenLinkStatus {
PENDING = "PENDING",
COMPLETED = "COMPLETED"
}
export interface TokenLink {
assetId: string;
assetMetadata?: LinkedTokenMetadata;
id: string;
type?: ContractTemplateType;
refId?: string;
status: TokenLinkStatus;
tokenMetadata?: LinkedTokenMetadata;
}
export interface PendingTokenLinkDto {
id: number;
txId?: string;
name?: string;
symbol?: string;
vaultAccountId?: string;
blockchainId?: string;
export interface GetTokenLinksFilter {
status?: TokenLinkStatus;
pageSize?: number;
pageCursor?: string;
}
export interface GetContractTemplatesFilter {
initializationPhase?: ContractInitializationPhase;
type?: ContractTemplateType;
pageSize?: number;
pageCursor?: string;
}
export interface TokenLinksCount {
count: number;
}
export interface LeanDeployedContractResponseDto {

@@ -1563,4 +1611,2 @@ contractAddress: string;

export interface IssueTokenRequest {
symbol: string;
name: string;
blockchainId: string;

@@ -1604,3 +1650,5 @@ vaultAccountId: string;

interface StellarRippleCreateParamsDto {
issuerAddress?: string;
symbol: string;
name: string;
issuerAddress: string;
}

@@ -1607,0 +1655,0 @@ interface ParameterWithValue {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TAP = exports.NCW = exports.SmartTransferTicketTermStatus = exports.SmartTransfersTicketStatus = exports.SmartTransfersTicketDirection = exports.BatchTask = exports.BatchJob = exports.BatchStatus = exports.NFTOwnershipWalletType = exports.NFTOwnershipStatus = exports.OrderValues = exports.GetOwnedAssetsSortValues = exports.GetOwnedCollectionsSortValues = exports.GetOwnedNFTsSortValues = exports.GetNFTsSortValues = exports.TimePeriod = exports.ExchangeReply = 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.ScreeningVerdict = exports.ScreeningTransactionStatus = exports.TransactionDirection = exports.PolicyApprovalStatus = exports.ScreeningAction = exports.TravelRuleAddressTypeCode = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0;
exports.TAP = exports.NCW = exports.SmartTransferTicketTermStatus = exports.SmartTransfersTicketStatus = exports.SmartTransfersTicketDirection = exports.BatchTask = exports.BatchJob = exports.BatchStatus = exports.TokenLinkStatus = exports.InputFieldMetadataTypes = exports.ContractInitializationPhase = exports.ContractTemplateType = exports.NFTOwnershipWalletType = exports.NFTOwnershipStatus = exports.OrderValues = exports.GetOwnedAssetsSortValues = exports.GetOwnedCollectionsSortValues = exports.GetOwnedNFTsSortValues = exports.GetNFTsSortValues = exports.TimePeriod = exports.ExchangeReply = 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.ScreeningVerdict = exports.ScreeningTransactionStatus = exports.TransactionDirection = exports.PolicyApprovalStatus = exports.ScreeningAction = exports.TravelRuleAddressTypeCode = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0;
var VirtualAffiliation;

@@ -229,2 +229,25 @@ (function (VirtualAffiliation) {

})(NFTOwnershipWalletType || (exports.NFTOwnershipWalletType = NFTOwnershipWalletType = {}));
var ContractTemplateType;
(function (ContractTemplateType) {
ContractTemplateType["FUNGIBLE_TOKEN"] = "FUNGIBLE_TOKEN";
ContractTemplateType["NON_FUNGIBLE_TOKEN"] = "NON_FUNGIBLE_TOKEN";
ContractTemplateType["NON_TOKEN"] = "NON_TOKEN";
ContractTemplateType["UUPS_PROXY"] = "UUPS_PROXY";
})(ContractTemplateType || (exports.ContractTemplateType = ContractTemplateType = {}));
var ContractInitializationPhase;
(function (ContractInitializationPhase) {
ContractInitializationPhase["ON_DEPLOYMENT"] = "ON_DEPLOYMENT";
ContractInitializationPhase["POST_DEPLOYMENT"] = "POST_DEPLOYMENT";
})(ContractInitializationPhase || (exports.ContractInitializationPhase = ContractInitializationPhase = {}));
var InputFieldMetadataTypes;
(function (InputFieldMetadataTypes) {
InputFieldMetadataTypes["EncodedFunctionCallFieldType"] = "encodedFunctionCall";
InputFieldMetadataTypes["DeployedContractAddressFieldType"] = "deployedContractAddress";
InputFieldMetadataTypes["SupportedAssetAddressFieldType"] = "supportedAssetAddress";
})(InputFieldMetadataTypes || (exports.InputFieldMetadataTypes = InputFieldMetadataTypes = {}));
var TokenLinkStatus;
(function (TokenLinkStatus) {
TokenLinkStatus["PENDING"] = "PENDING";
TokenLinkStatus["COMPLETED"] = "COMPLETED";
})(TokenLinkStatus || (exports.TokenLinkStatus = TokenLinkStatus = {}));
var BatchStatus;

@@ -231,0 +254,0 @@ (function (BatchStatus) {

{
"name": "fireblocks-sdk",
"version": "5.18.0",
"version": "5.18.1",
"main": "dist/src/fireblocks-sdk.js",

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

Sorry, the diff of this file is too big to display

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