/* tslint:disable */ /* eslint-disable */ /** * Fireblocks API * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) * * The version of the OpenAPI document: 1.6.2 * Contact: developers@fireblocks.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; import { convertToFireblocksResponse } from "../response/fireblocksResponse"; // URLSearchParams not necessarily used // @ts-ignore import { URL, URLSearchParams } from 'url'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; import { assertParamExistsAndNotEmpty } from '../utils/validation_utils'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore import { AccessRegistryCurrentStateResponse } from '../models'; // @ts-ignore import { AccessRegistrySummaryResponse } from '../models'; // @ts-ignore import { ActiveRolesResponse } from '../models'; // @ts-ignore import { AddressBalanceItemDto } from '../models'; // @ts-ignore import { AddressBalancePagedResponse } from '../models'; // @ts-ignore import { AddressNotAvailableError } from '../models'; // @ts-ignore import { AssetAlreadyExistHttpError } from '../models'; // @ts-ignore import { BalanceHistoryPagedResponse } from '../models'; // @ts-ignore import { CollectionBurnRequestDto } from '../models'; // @ts-ignore import { CollectionBurnResponseDto } from '../models'; // @ts-ignore import { CollectionDeployRequestDto } from '../models'; // @ts-ignore import { CollectionLinkDto } from '../models'; // @ts-ignore import { CollectionMintRequestDto } from '../models'; // @ts-ignore import { CollectionMintResponseDto } from '../models'; // @ts-ignore import { CreateMultichainTokenRequest } from '../models'; // @ts-ignore import { CreateTokenRequestDto } from '../models'; // @ts-ignore import { DeployLayerZeroAdaptersRequest } from '../models'; // @ts-ignore import { DeployLayerZeroAdaptersResponse } from '../models'; // @ts-ignore import { DeployableAddressResponse } from '../models'; // @ts-ignore import { DeployedContractNotFoundError } from '../models'; // @ts-ignore import { ErrorResponse } from '../models'; // @ts-ignore import { ErrorSchema } from '../models'; // @ts-ignore import { GetDeployableAddressRequest } from '../models'; // @ts-ignore import { GetLayerZeroDvnConfigResponse } from '../models'; // @ts-ignore import { GetLayerZeroPeersResponse } from '../models'; // @ts-ignore import { GetLinkedCollectionsPaginatedResponse } from '../models'; // @ts-ignore import { InvalidParamaterValueError } from '../models'; // @ts-ignore import { IssueTokenMultichainResponse } from '../models'; // @ts-ignore import { LinkedTokensCount } from '../models'; // @ts-ignore import { NotFoundException } from '../models'; // @ts-ignore import { OnchainTransactionsPagedResponse } from '../models'; // @ts-ignore import { OnchainTransfersPagedResponse } from '../models'; // @ts-ignore import { ReissueMultichainTokenRequest } from '../models'; // @ts-ignore import { RemoveLayerZeroAdaptersRequest } from '../models'; // @ts-ignore import { RemoveLayerZeroAdaptersResponse } from '../models'; // @ts-ignore import { RemoveLayerZeroPeersRequest } from '../models'; // @ts-ignore import { RemoveLayerZeroPeersResponse } from '../models'; // @ts-ignore import { SetLayerZeroDvnConfigRequest } from '../models'; // @ts-ignore import { SetLayerZeroDvnConfigResponse } from '../models'; // @ts-ignore import { SetLayerZeroPeersRequest } from '../models'; // @ts-ignore import { SetLayerZeroPeersResponse } from '../models'; // @ts-ignore import { TokenContractSummaryResponse } from '../models'; // @ts-ignore import { TokenLinkDto } from '../models'; // @ts-ignore import { TokenLinkExistsHttpError } from '../models'; // @ts-ignore import { TokenLinkNotMultichainCompatibleHttpError } from '../models'; // @ts-ignore import { TokenLinkRequestDto } from '../models'; // @ts-ignore import { TokensPaginatedResponse } from '../models'; // @ts-ignore import { TotalSupplyPagedResponse } from '../models'; // @ts-ignore import { ValidateLayerZeroChannelResponse } from '../models'; /** * TokenizationApi - axios parameter creator * @export */ export const TokenizationApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Burn tokens in a collection * @summary Burn tokens * @param {CollectionBurnRequestDto} collectionBurnRequestDto * @param {string} id The collection link id * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ burnCollectionToken: async (collectionBurnRequestDto: CollectionBurnRequestDto, id: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('burnCollectionToken', 'collectionBurnRequestDto', collectionBurnRequestDto) assertParamExistsAndNotEmpty('burnCollectionToken', 'id', id) const localVarPath = `/tokenization/collections/{id}/tokens/burn` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'burnCollectionToken'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(collectionBurnRequestDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Create a new collection and link it as a token. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor. * @summary Create a new collection * @param {CollectionDeployRequestDto} collectionDeployRequestDto * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createNewCollection: async (collectionDeployRequestDto: CollectionDeployRequestDto, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('createNewCollection', 'collectionDeployRequestDto', collectionDeployRequestDto) const localVarPath = `/tokenization/collections`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'createNewCollection'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(collectionDeployRequestDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Remove LayerZero adapters by deactivating and unlinking them. This endpoint revokes roles and deactivates the specified adapter contracts. * @summary Remove LayerZero adapters * @param {RemoveLayerZeroAdaptersRequest} removeLayerZeroAdaptersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateAndUnlinkAdapters: async (removeLayerZeroAdaptersRequest: RemoveLayerZeroAdaptersRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('deactivateAndUnlinkAdapters', 'removeLayerZeroAdaptersRequest', removeLayerZeroAdaptersRequest) const localVarPath = `/tokenization/multichain/bridge/layerzero`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'deactivateAndUnlinkAdapters'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(removeLayerZeroAdaptersRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Deploy LayerZero adapters for multichain token bridging functionality. This endpoint creates adapter contracts that enable cross-chain token transfers. * @summary Deploy LayerZero adapters * @param {DeployLayerZeroAdaptersRequest} deployLayerZeroAdaptersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deployAndLinkAdapters: async (deployLayerZeroAdaptersRequest: DeployLayerZeroAdaptersRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('deployAndLinkAdapters', 'deployLayerZeroAdaptersRequest', deployLayerZeroAdaptersRequest) const localVarPath = `/tokenization/multichain/bridge/layerzero`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'deployAndLinkAdapters'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(deployLayerZeroAdaptersRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get collection token details by id * @summary Get collection token details * @param {string} id The collection link id * @param {string} tokenId The tokenId as it appears on the blockchain * @param {*} [options] Override http request option. * @throws {RequiredError} */ fetchCollectionTokenDetails: async (id: string, tokenId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('fetchCollectionTokenDetails', 'id', id) assertParamExistsAndNotEmpty('fetchCollectionTokenDetails', 'tokenId', tokenId) const localVarPath = `/tokenization/collections/{id}/tokens/{tokenId}` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"tokenId"}}`, encodeURIComponent(String(tokenId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'fetchCollectionTokenDetails'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a collection by id * @summary Get a collection by id * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCollectionById: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getCollectionById', 'id', id) const localVarPath = `/tokenization/collections/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getCollectionById'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a deterministic address for contract deployment. The address is derived from the contract\'s bytecode and provided salt. This endpoint is used to get the address of a contract that will be deployed in the future. * @summary Get deterministic address for contract deployment * @param {GetDeployableAddressRequest} getDeployableAddressRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeployableAddress: async (getDeployableAddressRequest: GetDeployableAddressRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('getDeployableAddress', 'getDeployableAddressRequest', getDeployableAddressRequest) const localVarPath = `/tokenization/multichain/deterministic_address`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getDeployableAddress'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(getDeployableAddressRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieve the DVN (Data Verification Network) configuration for a specific adapter. Returns DVN configurations for channels between the source adapter and its peers. * @summary Get LayerZero DVN configuration * @param {string} adapterTokenLinkId The token link id of the adapter token link * @param {string} [peerAdapterTokenLinkId] Optional peer adapter token link ID to filter results * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLayerZeroDvnConfig: async (adapterTokenLinkId: string, peerAdapterTokenLinkId?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getLayerZeroDvnConfig', 'adapterTokenLinkId', adapterTokenLinkId) const localVarPath = `/tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/dvns` .replace(`{${"adapterTokenLinkId"}}`, encodeURIComponent(String(adapterTokenLinkId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getLayerZeroDvnConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (peerAdapterTokenLinkId !== undefined) { localVarQueryParameter['peerAdapterTokenLinkId'] = peerAdapterTokenLinkId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Retrieve the LayerZero peers configured for a specific adapter. Returns information about peer relationships for cross-chain communication. * @summary Get LayerZero peers * @param {string} adapterTokenLinkId The token link id of the adapter token link * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLayerZeroPeers: async (adapterTokenLinkId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getLayerZeroPeers', 'adapterTokenLinkId', adapterTokenLinkId) const localVarPath = `/tokenization/multichain/bridge/layerzero/config/{adapterTokenLinkId}/peers` .replace(`{${"adapterTokenLinkId"}}`, encodeURIComponent(String(adapterTokenLinkId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getLayerZeroPeers'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get collections (paginated). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get collections * @param {string} [pageCursor] Page cursor to get the next page, for example - \"MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==\" * @param {number} [pageSize] Number of items per page (max 100), requesting more then 100 will return 100 items * @param {any} [status] A comma separated list of statuses to filter. Default is \"COMPLETED\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLinkedCollections: async (pageCursor?: string, pageSize?: number, status?: any, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/tokenization/collections`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getLinkedCollections'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (status !== undefined) { for (const [key, value] of Object.entries(status)) { localVarQueryParameter[key] = value; } } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Return a linked token, with its status and metadata. * @summary Return a linked token * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLinkedToken: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getLinkedToken', 'id', id) const localVarPath = `/tokenization/tokens/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getLinkedToken'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Return all linked tokens (paginated) * @summary List all linked tokens * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page, requesting more then max will return max items * @param {any} [status] A comma separated list of statuses to filter. Default is \"COMPLETED\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLinkedTokens: async (pageCursor?: string, pageSize?: number, status?: any, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/tokenization/tokens`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getLinkedTokens'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (status !== undefined) { for (const [key, value] of Object.entries(status)) { localVarQueryParameter[key] = value; } } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get the total count of linked tokens * @summary Get the total count of linked tokens * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLinkedTokensCount: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/tokenization/tokens/count`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getLinkedTokensCount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the currently active addresses in the access registry (added but not removed). * @summary Get current state of addresses in an access registry * @param {string} id The token link id * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenAccessRegistryAddressesSortByEnum} [sortBy] Sorting field (enum). * @param {GetTokenAccessRegistryAddressesOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenAccessRegistryAddresses: async (id: string, pageCursor?: string, pageSize?: number, sortBy?: GetTokenAccessRegistryAddressesSortByEnum, order?: GetTokenAccessRegistryAddressesOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenAccessRegistryAddresses', 'id', id) const localVarPath = `/tokenization/access_registries/{id}/addresses` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenAccessRegistryAddresses'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (sortBy !== undefined) { localVarQueryParameter['sortBy'] = sortBy; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a summary of the current state of the access registry. * @summary Get summary of an access registry * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenAccessRegistrySummary: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenAccessRegistrySummary', 'id', id) const localVarPath = `/tokenization/access_registries/{id}/summary` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenAccessRegistrySummary'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the latest token balance for the specified account address. * @summary Get the latest balance for a specific account * @param {string} id The token link id * @param {string} accountAddress The account address to get balance history for * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenBalanceForAccount: async (id: string, accountAddress: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenBalanceForAccount', 'id', id) assertParamExistsAndNotEmpty('getTokenBalanceForAccount', 'accountAddress', accountAddress) const localVarPath = `/tokenization/tokens/{id}/balances/{accountAddress}` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenBalanceForAccount'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns paginated balance history for the specified account address with optional time-range filtering. * @summary Get balance history for a specific account * @param {string} id The token link id * @param {string} accountAddress The account address to get balance history for * @param {string} [startDate] Start date of the time range in ISO 8601 format * @param {string} [endDate] End date of the time range in ISO 8601 format * @param {GetTokenBalanceHistoryIntervalEnum} [interval] Time interval for grouping data * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenBalanceHistorySortByEnum} [sortBy] Sorting field (enum). Sorting only supported by \'blockTimestamp\' * @param {GetTokenBalanceHistoryOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenBalanceHistory: async (id: string, accountAddress: string, startDate?: string, endDate?: string, interval?: GetTokenBalanceHistoryIntervalEnum, pageCursor?: string, pageSize?: number, sortBy?: GetTokenBalanceHistorySortByEnum, order?: GetTokenBalanceHistoryOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenBalanceHistory', 'id', id) assertParamExistsAndNotEmpty('getTokenBalanceHistory', 'accountAddress', accountAddress) const localVarPath = `/tokenization/tokens/{id}/balances/{accountAddress}/history` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenBalanceHistory'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (startDate !== undefined) { localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ? (startDate as any).toISOString() : startDate; } if (endDate !== undefined) { localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ? (endDate as any).toISOString() : endDate; } if (interval !== undefined) { localVarQueryParameter['interval'] = interval; } if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (sortBy !== undefined) { localVarQueryParameter['sortBy'] = sortBy; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the latest balance for each unique address holding this token. * @summary Get latest balances for all holders of a token * @param {string} id The token link id * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenBalancesSortByEnum} [sortBy] Sorting field for balances * @param {GetTokenBalancesOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenBalances: async (id: string, pageCursor?: string, pageSize?: number, sortBy?: GetTokenBalancesSortByEnum, order?: GetTokenBalancesOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenBalances', 'id', id) const localVarPath = `/tokenization/tokens/{id}/balances` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenBalances'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (sortBy !== undefined) { localVarQueryParameter['sortBy'] = sortBy; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the total number of unique holders and the total supply for the token contract. * @summary Get onchain summary for a token * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenContractSummary: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenContractSummary', 'id', id) const localVarPath = `/tokenization/tokens/{id}/summary` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenContractSummary'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a list of currently active roles for the token contract. * @summary Get active RBAC roles for a token * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenRbac: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenRbac', 'id', id) const localVarPath = `/tokenization/tokens/{id}/rbac` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenRbac'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns paginated total supply history for the token contract with optional time-range filtering and binning. * @summary Get historical total supply for a token * @param {string} id The token link id * @param {string} [startDate] Start date of the time range in ISO 8601 format * @param {string} [endDate] End date of the time range in ISO 8601 format * @param {GetTokenTotalSupplyIntervalEnum} [interval] Time interval for grouping data * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenTotalSupplySortByEnum} [sortBy] Sorting field (enum). Sorting only supported by \'blockTimestamp\' * @param {GetTokenTotalSupplyOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenTotalSupply: async (id: string, startDate?: string, endDate?: string, interval?: GetTokenTotalSupplyIntervalEnum, pageCursor?: string, pageSize?: number, sortBy?: GetTokenTotalSupplySortByEnum, order?: GetTokenTotalSupplyOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenTotalSupply', 'id', id) const localVarPath = `/tokenization/tokens/{id}/total_supply` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenTotalSupply'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (startDate !== undefined) { localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ? (startDate as any).toISOString() : startDate; } if (endDate !== undefined) { localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ? (endDate as any).toISOString() : endDate; } if (interval !== undefined) { localVarQueryParameter['interval'] = interval; } if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (sortBy !== undefined) { localVarQueryParameter['sortBy'] = sortBy; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a paginated list of onchain transactions for the token contract, optionally filtered by date range. * @summary Get onchain transactions for a token * @param {string} id The token link id * @param {string} [startDate] Start date of the time range in ISO 8601 format * @param {string} [endDate] End date of the time range in ISO 8601 format * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenTransactionsSortByEnum} [sortBy] Sorting field (enum). * @param {GetTokenTransactionsOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenTransactions: async (id: string, startDate?: string, endDate?: string, pageCursor?: string, pageSize?: number, sortBy?: GetTokenTransactionsSortByEnum, order?: GetTokenTransactionsOrderEnum, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenTransactions', 'id', id) const localVarPath = `/tokenization/tokens/{id}/transactions` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenTransactions'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (startDate !== undefined) { localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ? (startDate as any).toISOString() : startDate; } if (endDate !== undefined) { localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ? (endDate as any).toISOString() : endDate; } if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (sortBy !== undefined) { localVarQueryParameter['sortBy'] = sortBy; } if (order !== undefined) { localVarQueryParameter['order'] = order; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns a paginated list of ERC20 transfer events for the token contract, optionally filtered by date range. * @summary Get onchain transfers for a token * @param {string} id The token link id * @param {string} [startDate] Start date of the time range in ISO 8601 format * @param {string} [endDate] End date of the time range in ISO 8601 format * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenTransfersSortByEnum} [sortBy] Sorting field for transfers * @param {GetTokenTransfersOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {string} [sender] Filter transfers by sender address * @param {string} [receiver] Filter transfers by receiver address * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenTransfers: async (id: string, startDate?: string, endDate?: string, pageCursor?: string, pageSize?: number, sortBy?: GetTokenTransfersSortByEnum, order?: GetTokenTransfersOrderEnum, sender?: string, receiver?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('getTokenTransfers', 'id', id) const localVarPath = `/tokenization/tokens/{id}/transfers` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'getTokenTransfers'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (startDate !== undefined) { localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ? (startDate as any).toISOString() : startDate; } if (endDate !== undefined) { localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ? (endDate as any).toISOString() : endDate; } if (pageCursor !== undefined) { localVarQueryParameter['pageCursor'] = pageCursor; } if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (sortBy !== undefined) { localVarQueryParameter['sortBy'] = sortBy; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (sender !== undefined) { localVarQueryParameter['sender'] = sender; } if (receiver !== undefined) { localVarQueryParameter['receiver'] = receiver; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor. * @summary Issue a new token * @param {CreateTokenRequestDto} createTokenRequestDto * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueNewToken: async (createTokenRequestDto: CreateTokenRequestDto, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('issueNewToken', 'createTokenRequestDto', createTokenRequestDto) const localVarPath = `/tokenization/tokens`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'issueNewToken'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createTokenRequestDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Facilitates the creation of a new token on one or more blockchains. * @summary Issue a token on one or more blockchains * @param {CreateMultichainTokenRequest} createMultichainTokenRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueTokenMultiChain: async (createMultichainTokenRequest: CreateMultichainTokenRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('issueTokenMultiChain', 'createMultichainTokenRequest', createMultichainTokenRequest) const localVarPath = `/tokenization/multichain/tokens`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'issueTokenMultiChain'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(createMultichainTokenRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Link an a contract * @summary Link a contract * @param {TokenLinkRequestDto} tokenLinkRequestDto * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ link: async (tokenLinkRequestDto: TokenLinkRequestDto, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('link', 'tokenLinkRequestDto', tokenLinkRequestDto) const localVarPath = `/tokenization/tokens/link`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'link'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(tokenLinkRequestDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Mint tokens and upload metadata * @summary Mint tokens * @param {CollectionMintRequestDto} collectionMintRequestDto * @param {string} id The collection link id * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mintCollectionToken: async (collectionMintRequestDto: CollectionMintRequestDto, id: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('mintCollectionToken', 'collectionMintRequestDto', collectionMintRequestDto) assertParamExistsAndNotEmpty('mintCollectionToken', 'id', id) const localVarPath = `/tokenization/collections/{id}/tokens/mint` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'mintCollectionToken'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(collectionMintRequestDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Reissue a multichain token. This endpoint allows you to reissue a token on one or more blockchains. The token must be initially issued using the issueTokenMultiChain endpoint. * @summary Reissue a multichain token * @param {ReissueMultichainTokenRequest} reissueMultichainTokenRequest * @param {string} tokenLinkId The ID of the token link * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ reIssueTokenMultiChain: async (reissueMultichainTokenRequest: ReissueMultichainTokenRequest, tokenLinkId: string, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('reIssueTokenMultiChain', 'reissueMultichainTokenRequest', reissueMultichainTokenRequest) assertParamExistsAndNotEmpty('reIssueTokenMultiChain', 'tokenLinkId', tokenLinkId) const localVarPath = `/tokenization/multichain/reissue/token/{tokenLinkId}` .replace(`{${"tokenLinkId"}}`, encodeURIComponent(String(tokenLinkId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'reIssueTokenMultiChain'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(reissueMultichainTokenRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Remove LayerZero peers to disconnect adapter contracts. This endpoint removes peer relationships between LayerZero adapters. * @summary Remove LayerZero peers * @param {RemoveLayerZeroPeersRequest} removeLayerZeroPeersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeLayerZeroPeers: async (removeLayerZeroPeersRequest: RemoveLayerZeroPeersRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('removeLayerZeroPeers', 'removeLayerZeroPeersRequest', removeLayerZeroPeersRequest) const localVarPath = `/tokenization/multichain/bridge/layerzero/config/peers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'removeLayerZeroPeers'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(removeLayerZeroPeersRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Configure DVN settings for LayerZero adapters. This endpoint sets up the DVN configuration for message verification between source and destination adapters. * @summary Set LayerZero DVN configuration * @param {SetLayerZeroDvnConfigRequest} setLayerZeroDvnConfigRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setLayerZeroDvnConfig: async (setLayerZeroDvnConfigRequest: SetLayerZeroDvnConfigRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setLayerZeroDvnConfig', 'setLayerZeroDvnConfigRequest', setLayerZeroDvnConfigRequest) const localVarPath = `/tokenization/multichain/bridge/layerzero/config/dvns`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setLayerZeroDvnConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(setLayerZeroDvnConfigRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Set LayerZero peers to establish connections between adapter contracts. This endpoint creates peer relationships that enable cross-chain communication. It sets the destination adapter as a peer of the source adapter. If `bidirectional` is true, it also sets the source adapter as a peer of the destination adapter(s). * @summary Set LayerZero peers * @param {SetLayerZeroPeersRequest} setLayerZeroPeersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setLayerZeroPeers: async (setLayerZeroPeersRequest: SetLayerZeroPeersRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExists('setLayerZeroPeers', 'setLayerZeroPeersRequest', setLayerZeroPeersRequest) const localVarPath = `/tokenization/multichain/bridge/layerzero/config/peers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'setLayerZeroPeers'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (idempotencyKey != null) { localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(setLayerZeroPeersRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed. * @summary Unlink a token * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlink: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('unlink', 'id', id) const localVarPath = `/tokenization/tokens/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'unlink'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Delete a collection link * @summary Delete a collection link * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlinkCollection: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('unlinkCollection', 'id', id) const localVarPath = `/tokenization/collections/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'unlinkCollection'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Validate the LayerZero channel configuration between adapters. This endpoint checks if the channel configuration is correct and returns any validation errors. * @summary Validate LayerZero channel configuration * @param {string} adapterTokenLinkId The token link ID of the adapter * @param {string} peerAdapterTokenLinkId Peer adapter token link ID to validate against * @param {*} [options] Override http request option. * @throws {RequiredError} */ validateLayerZeroChannelConfig: async (adapterTokenLinkId: string, peerAdapterTokenLinkId: string, options: RawAxiosRequestConfig = {}): Promise => { assertParamExistsAndNotEmpty('validateLayerZeroChannelConfig', 'adapterTokenLinkId', adapterTokenLinkId) assertParamExistsAndNotEmpty('validateLayerZeroChannelConfig', 'peerAdapterTokenLinkId', peerAdapterTokenLinkId) const localVarPath = `/tokenization/multichain/bridge/layerzero/validate`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; // Stamped onto the request config (not the headers, so it never goes on // the wire) so the response interceptor can name the operation in the // lifecycle warning. Key must match OPERATION_ID_CONFIG_KEY in utils/lifecycleWarning. (localVarRequestOptions as any).fireblocksOperationId = 'validateLayerZeroChannelConfig'; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (adapterTokenLinkId !== undefined) { localVarQueryParameter['adapterTokenLinkId'] = adapterTokenLinkId; } if (peerAdapterTokenLinkId !== undefined) { localVarQueryParameter['peerAdapterTokenLinkId'] = peerAdapterTokenLinkId; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * TokenizationApi - functional programming interface * @export */ export const TokenizationApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TokenizationApiAxiosParamCreator(configuration) return { /** * Burn tokens in a collection * @summary Burn tokens * @param {CollectionBurnRequestDto} collectionBurnRequestDto * @param {string} id The collection link id * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async burnCollectionToken(collectionBurnRequestDto: CollectionBurnRequestDto, id: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.burnCollectionToken(collectionBurnRequestDto, id, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.burnCollectionToken']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Create a new collection and link it as a token. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor. * @summary Create a new collection * @param {CollectionDeployRequestDto} collectionDeployRequestDto * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createNewCollection(collectionDeployRequestDto: CollectionDeployRequestDto, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createNewCollection(collectionDeployRequestDto, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.createNewCollection']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Remove LayerZero adapters by deactivating and unlinking them. This endpoint revokes roles and deactivates the specified adapter contracts. * @summary Remove LayerZero adapters * @param {RemoveLayerZeroAdaptersRequest} removeLayerZeroAdaptersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deactivateAndUnlinkAdapters(removeLayerZeroAdaptersRequest: RemoveLayerZeroAdaptersRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deactivateAndUnlinkAdapters(removeLayerZeroAdaptersRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.deactivateAndUnlinkAdapters']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Deploy LayerZero adapters for multichain token bridging functionality. This endpoint creates adapter contracts that enable cross-chain token transfers. * @summary Deploy LayerZero adapters * @param {DeployLayerZeroAdaptersRequest} deployLayerZeroAdaptersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deployAndLinkAdapters(deployLayerZeroAdaptersRequest: DeployLayerZeroAdaptersRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deployAndLinkAdapters(deployLayerZeroAdaptersRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.deployAndLinkAdapters']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get collection token details by id * @summary Get collection token details * @param {string} id The collection link id * @param {string} tokenId The tokenId as it appears on the blockchain * @param {*} [options] Override http request option. * @throws {RequiredError} */ async fetchCollectionTokenDetails(id: string, tokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.fetchCollectionTokenDetails(id, tokenId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.fetchCollectionTokenDetails']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get a collection by id * @summary Get a collection by id * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getCollectionById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCollectionById(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getCollectionById']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get a deterministic address for contract deployment. The address is derived from the contract\'s bytecode and provided salt. This endpoint is used to get the address of a contract that will be deployed in the future. * @summary Get deterministic address for contract deployment * @param {GetDeployableAddressRequest} getDeployableAddressRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDeployableAddress(getDeployableAddressRequest: GetDeployableAddressRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployableAddress(getDeployableAddressRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getDeployableAddress']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Retrieve the DVN (Data Verification Network) configuration for a specific adapter. Returns DVN configurations for channels between the source adapter and its peers. * @summary Get LayerZero DVN configuration * @param {string} adapterTokenLinkId The token link id of the adapter token link * @param {string} [peerAdapterTokenLinkId] Optional peer adapter token link ID to filter results * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLayerZeroDvnConfig(adapterTokenLinkId: string, peerAdapterTokenLinkId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLayerZeroDvnConfig(adapterTokenLinkId, peerAdapterTokenLinkId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getLayerZeroDvnConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Retrieve the LayerZero peers configured for a specific adapter. Returns information about peer relationships for cross-chain communication. * @summary Get LayerZero peers * @param {string} adapterTokenLinkId The token link id of the adapter token link * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLayerZeroPeers(adapterTokenLinkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLayerZeroPeers(adapterTokenLinkId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getLayerZeroPeers']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get collections (paginated). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get collections * @param {string} [pageCursor] Page cursor to get the next page, for example - \"MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==\" * @param {number} [pageSize] Number of items per page (max 100), requesting more then 100 will return 100 items * @param {any} [status] A comma separated list of statuses to filter. Default is \"COMPLETED\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLinkedCollections(pageCursor?: string, pageSize?: number, status?: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedCollections(pageCursor, pageSize, status, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getLinkedCollections']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Return a linked token, with its status and metadata. * @summary Return a linked token * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLinkedToken(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedToken(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getLinkedToken']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Return all linked tokens (paginated) * @summary List all linked tokens * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page, requesting more then max will return max items * @param {any} [status] A comma separated list of statuses to filter. Default is \"COMPLETED\" * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLinkedTokens(pageCursor?: string, pageSize?: number, status?: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedTokens(pageCursor, pageSize, status, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getLinkedTokens']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get the total count of linked tokens * @summary Get the total count of linked tokens * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getLinkedTokensCount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedTokensCount(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getLinkedTokensCount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the currently active addresses in the access registry (added but not removed). * @summary Get current state of addresses in an access registry * @param {string} id The token link id * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenAccessRegistryAddressesSortByEnum} [sortBy] Sorting field (enum). * @param {GetTokenAccessRegistryAddressesOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenAccessRegistryAddresses(id: string, pageCursor?: string, pageSize?: number, sortBy?: GetTokenAccessRegistryAddressesSortByEnum, order?: GetTokenAccessRegistryAddressesOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenAccessRegistryAddresses(id, pageCursor, pageSize, sortBy, order, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenAccessRegistryAddresses']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns a summary of the current state of the access registry. * @summary Get summary of an access registry * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenAccessRegistrySummary(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenAccessRegistrySummary(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenAccessRegistrySummary']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the latest token balance for the specified account address. * @summary Get the latest balance for a specific account * @param {string} id The token link id * @param {string} accountAddress The account address to get balance history for * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenBalanceForAccount(id: string, accountAddress: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenBalanceForAccount(id, accountAddress, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenBalanceForAccount']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns paginated balance history for the specified account address with optional time-range filtering. * @summary Get balance history for a specific account * @param {string} id The token link id * @param {string} accountAddress The account address to get balance history for * @param {string} [startDate] Start date of the time range in ISO 8601 format * @param {string} [endDate] End date of the time range in ISO 8601 format * @param {GetTokenBalanceHistoryIntervalEnum} [interval] Time interval for grouping data * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenBalanceHistorySortByEnum} [sortBy] Sorting field (enum). Sorting only supported by \'blockTimestamp\' * @param {GetTokenBalanceHistoryOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenBalanceHistory(id: string, accountAddress: string, startDate?: string, endDate?: string, interval?: GetTokenBalanceHistoryIntervalEnum, pageCursor?: string, pageSize?: number, sortBy?: GetTokenBalanceHistorySortByEnum, order?: GetTokenBalanceHistoryOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenBalanceHistory(id, accountAddress, startDate, endDate, interval, pageCursor, pageSize, sortBy, order, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenBalanceHistory']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the latest balance for each unique address holding this token. * @summary Get latest balances for all holders of a token * @param {string} id The token link id * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenBalancesSortByEnum} [sortBy] Sorting field for balances * @param {GetTokenBalancesOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenBalances(id: string, pageCursor?: string, pageSize?: number, sortBy?: GetTokenBalancesSortByEnum, order?: GetTokenBalancesOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenBalances(id, pageCursor, pageSize, sortBy, order, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenBalances']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns the total number of unique holders and the total supply for the token contract. * @summary Get onchain summary for a token * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenContractSummary(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenContractSummary(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenContractSummary']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns a list of currently active roles for the token contract. * @summary Get active RBAC roles for a token * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenRbac(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenRbac(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenRbac']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns paginated total supply history for the token contract with optional time-range filtering and binning. * @summary Get historical total supply for a token * @param {string} id The token link id * @param {string} [startDate] Start date of the time range in ISO 8601 format * @param {string} [endDate] End date of the time range in ISO 8601 format * @param {GetTokenTotalSupplyIntervalEnum} [interval] Time interval for grouping data * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenTotalSupplySortByEnum} [sortBy] Sorting field (enum). Sorting only supported by \'blockTimestamp\' * @param {GetTokenTotalSupplyOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenTotalSupply(id: string, startDate?: string, endDate?: string, interval?: GetTokenTotalSupplyIntervalEnum, pageCursor?: string, pageSize?: number, sortBy?: GetTokenTotalSupplySortByEnum, order?: GetTokenTotalSupplyOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenTotalSupply(id, startDate, endDate, interval, pageCursor, pageSize, sortBy, order, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenTotalSupply']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns a paginated list of onchain transactions for the token contract, optionally filtered by date range. * @summary Get onchain transactions for a token * @param {string} id The token link id * @param {string} [startDate] Start date of the time range in ISO 8601 format * @param {string} [endDate] End date of the time range in ISO 8601 format * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenTransactionsSortByEnum} [sortBy] Sorting field (enum). * @param {GetTokenTransactionsOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenTransactions(id: string, startDate?: string, endDate?: string, pageCursor?: string, pageSize?: number, sortBy?: GetTokenTransactionsSortByEnum, order?: GetTokenTransactionsOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenTransactions(id, startDate, endDate, pageCursor, pageSize, sortBy, order, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenTransactions']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Returns a paginated list of ERC20 transfer events for the token contract, optionally filtered by date range. * @summary Get onchain transfers for a token * @param {string} id The token link id * @param {string} [startDate] Start date of the time range in ISO 8601 format * @param {string} [endDate] End date of the time range in ISO 8601 format * @param {string} [pageCursor] Page cursor to get the next page * @param {number} [pageSize] Number of items per page (max 100), requesting more than 100 will return 100 items * @param {GetTokenTransfersSortByEnum} [sortBy] Sorting field for transfers * @param {GetTokenTransfersOrderEnum} [order] ASC / DESC ordering (default DESC) * @param {string} [sender] Filter transfers by sender address * @param {string} [receiver] Filter transfers by receiver address * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getTokenTransfers(id: string, startDate?: string, endDate?: string, pageCursor?: string, pageSize?: number, sortBy?: GetTokenTransfersSortByEnum, order?: GetTokenTransfersOrderEnum, sender?: string, receiver?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTokenTransfers(id, startDate, endDate, pageCursor, pageSize, sortBy, order, sender, receiver, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.getTokenTransfers']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor. * @summary Issue a new token * @param {CreateTokenRequestDto} createTokenRequestDto * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async issueNewToken(createTokenRequestDto: CreateTokenRequestDto, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.issueNewToken(createTokenRequestDto, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.issueNewToken']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Facilitates the creation of a new token on one or more blockchains. * @summary Issue a token on one or more blockchains * @param {CreateMultichainTokenRequest} createMultichainTokenRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async issueTokenMultiChain(createMultichainTokenRequest: CreateMultichainTokenRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.issueTokenMultiChain(createMultichainTokenRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.issueTokenMultiChain']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Link an a contract * @summary Link a contract * @param {TokenLinkRequestDto} tokenLinkRequestDto * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async link(tokenLinkRequestDto: TokenLinkRequestDto, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.link(tokenLinkRequestDto, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.link']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Mint tokens and upload metadata * @summary Mint tokens * @param {CollectionMintRequestDto} collectionMintRequestDto * @param {string} id The collection link id * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mintCollectionToken(collectionMintRequestDto: CollectionMintRequestDto, id: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mintCollectionToken(collectionMintRequestDto, id, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.mintCollectionToken']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Reissue a multichain token. This endpoint allows you to reissue a token on one or more blockchains. The token must be initially issued using the issueTokenMultiChain endpoint. * @summary Reissue a multichain token * @param {ReissueMultichainTokenRequest} reissueMultichainTokenRequest * @param {string} tokenLinkId The ID of the token link * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async reIssueTokenMultiChain(reissueMultichainTokenRequest: ReissueMultichainTokenRequest, tokenLinkId: string, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.reIssueTokenMultiChain(reissueMultichainTokenRequest, tokenLinkId, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.reIssueTokenMultiChain']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Remove LayerZero peers to disconnect adapter contracts. This endpoint removes peer relationships between LayerZero adapters. * @summary Remove LayerZero peers * @param {RemoveLayerZeroPeersRequest} removeLayerZeroPeersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async removeLayerZeroPeers(removeLayerZeroPeersRequest: RemoveLayerZeroPeersRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeLayerZeroPeers(removeLayerZeroPeersRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.removeLayerZeroPeers']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Configure DVN settings for LayerZero adapters. This endpoint sets up the DVN configuration for message verification between source and destination adapters. * @summary Set LayerZero DVN configuration * @param {SetLayerZeroDvnConfigRequest} setLayerZeroDvnConfigRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setLayerZeroDvnConfig(setLayerZeroDvnConfigRequest: SetLayerZeroDvnConfigRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setLayerZeroDvnConfig(setLayerZeroDvnConfigRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.setLayerZeroDvnConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Set LayerZero peers to establish connections between adapter contracts. This endpoint creates peer relationships that enable cross-chain communication. It sets the destination adapter as a peer of the source adapter. If `bidirectional` is true, it also sets the source adapter as a peer of the destination adapter(s). * @summary Set LayerZero peers * @param {SetLayerZeroPeersRequest} setLayerZeroPeersRequest * @param {string} [idempotencyKey] A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async setLayerZeroPeers(setLayerZeroPeersRequest: SetLayerZeroPeersRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setLayerZeroPeers(setLayerZeroPeersRequest, idempotencyKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.setLayerZeroPeers']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed. * @summary Unlink a token * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unlink(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unlink(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.unlink']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Delete a collection link * @summary Delete a collection link * @param {string} id The token link id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async unlinkCollection(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkCollection(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.unlinkCollection']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Validate the LayerZero channel configuration between adapters. This endpoint checks if the channel configuration is correct and returns any validation errors. * @summary Validate LayerZero channel configuration * @param {string} adapterTokenLinkId The token link ID of the adapter * @param {string} peerAdapterTokenLinkId Peer adapter token link ID to validate against * @param {*} [options] Override http request option. * @throws {RequiredError} */ async validateLayerZeroChannelConfig(adapterTokenLinkId: string, peerAdapterTokenLinkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.validateLayerZeroChannelConfig(adapterTokenLinkId, peerAdapterTokenLinkId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['TokenizationApi.validateLayerZeroChannelConfig']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; /** * TokenizationApi - factory interface * @export */ export const TokenizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TokenizationApiFp(configuration) return { /** * Burn tokens in a collection * @summary Burn tokens * @param {TokenizationApiBurnCollectionTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ burnCollectionToken(requestParameters: TokenizationApiBurnCollectionTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.burnCollectionToken(requestParameters.collectionBurnRequestDto, requestParameters.id, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Create a new collection and link it as a token. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor. * @summary Create a new collection * @param {TokenizationApiCreateNewCollectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createNewCollection(requestParameters: TokenizationApiCreateNewCollectionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createNewCollection(requestParameters.collectionDeployRequestDto, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Remove LayerZero adapters by deactivating and unlinking them. This endpoint revokes roles and deactivates the specified adapter contracts. * @summary Remove LayerZero adapters * @param {TokenizationApiDeactivateAndUnlinkAdaptersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deactivateAndUnlinkAdapters(requestParameters: TokenizationApiDeactivateAndUnlinkAdaptersRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deactivateAndUnlinkAdapters(requestParameters.removeLayerZeroAdaptersRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Deploy LayerZero adapters for multichain token bridging functionality. This endpoint creates adapter contracts that enable cross-chain token transfers. * @summary Deploy LayerZero adapters * @param {TokenizationApiDeployAndLinkAdaptersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deployAndLinkAdapters(requestParameters: TokenizationApiDeployAndLinkAdaptersRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deployAndLinkAdapters(requestParameters.deployLayerZeroAdaptersRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Get collection token details by id * @summary Get collection token details * @param {TokenizationApiFetchCollectionTokenDetailsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ fetchCollectionTokenDetails(requestParameters: TokenizationApiFetchCollectionTokenDetailsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.fetchCollectionTokenDetails(requestParameters.id, requestParameters.tokenId, options).then((request) => request(axios, basePath)); }, /** * Get a collection by id * @summary Get a collection by id * @param {TokenizationApiGetCollectionByIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getCollectionById(requestParameters: TokenizationApiGetCollectionByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCollectionById(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * Get a deterministic address for contract deployment. The address is derived from the contract\'s bytecode and provided salt. This endpoint is used to get the address of a contract that will be deployed in the future. * @summary Get deterministic address for contract deployment * @param {TokenizationApiGetDeployableAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeployableAddress(requestParameters: TokenizationApiGetDeployableAddressRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDeployableAddress(requestParameters.getDeployableAddressRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Retrieve the DVN (Data Verification Network) configuration for a specific adapter. Returns DVN configurations for channels between the source adapter and its peers. * @summary Get LayerZero DVN configuration * @param {TokenizationApiGetLayerZeroDvnConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLayerZeroDvnConfig(requestParameters: TokenizationApiGetLayerZeroDvnConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLayerZeroDvnConfig(requestParameters.adapterTokenLinkId, requestParameters.peerAdapterTokenLinkId, options).then((request) => request(axios, basePath)); }, /** * Retrieve the LayerZero peers configured for a specific adapter. Returns information about peer relationships for cross-chain communication. * @summary Get LayerZero peers * @param {TokenizationApiGetLayerZeroPeersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLayerZeroPeers(requestParameters: TokenizationApiGetLayerZeroPeersRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLayerZeroPeers(requestParameters.adapterTokenLinkId, options).then((request) => request(axios, basePath)); }, /** * Get collections (paginated). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get collections * @param {TokenizationApiGetLinkedCollectionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLinkedCollections(requestParameters: TokenizationApiGetLinkedCollectionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLinkedCollections(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(axios, basePath)); }, /** * Return a linked token, with its status and metadata. * @summary Return a linked token * @param {TokenizationApiGetLinkedTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLinkedToken(requestParameters: TokenizationApiGetLinkedTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLinkedToken(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * Return all linked tokens (paginated) * @summary List all linked tokens * @param {TokenizationApiGetLinkedTokensRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLinkedTokens(requestParameters: TokenizationApiGetLinkedTokensRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLinkedTokens(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(axios, basePath)); }, /** * Get the total count of linked tokens * @summary Get the total count of linked tokens * @param {*} [options] Override http request option. * @throws {RequiredError} */ getLinkedTokensCount(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLinkedTokensCount(options).then((request) => request(axios, basePath)); }, /** * Returns the currently active addresses in the access registry (added but not removed). * @summary Get current state of addresses in an access registry * @param {TokenizationApiGetTokenAccessRegistryAddressesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenAccessRegistryAddresses(requestParameters: TokenizationApiGetTokenAccessRegistryAddressesRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenAccessRegistryAddresses(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, options).then((request) => request(axios, basePath)); }, /** * Returns a summary of the current state of the access registry. * @summary Get summary of an access registry * @param {TokenizationApiGetTokenAccessRegistrySummaryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenAccessRegistrySummary(requestParameters: TokenizationApiGetTokenAccessRegistrySummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenAccessRegistrySummary(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * Returns the latest token balance for the specified account address. * @summary Get the latest balance for a specific account * @param {TokenizationApiGetTokenBalanceForAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenBalanceForAccount(requestParameters: TokenizationApiGetTokenBalanceForAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenBalanceForAccount(requestParameters.id, requestParameters.accountAddress, options).then((request) => request(axios, basePath)); }, /** * Returns paginated balance history for the specified account address with optional time-range filtering. * @summary Get balance history for a specific account * @param {TokenizationApiGetTokenBalanceHistoryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenBalanceHistory(requestParameters: TokenizationApiGetTokenBalanceHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenBalanceHistory(requestParameters.id, requestParameters.accountAddress, requestParameters.startDate, requestParameters.endDate, requestParameters.interval, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, options).then((request) => request(axios, basePath)); }, /** * Returns the latest balance for each unique address holding this token. * @summary Get latest balances for all holders of a token * @param {TokenizationApiGetTokenBalancesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenBalances(requestParameters: TokenizationApiGetTokenBalancesRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenBalances(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, options).then((request) => request(axios, basePath)); }, /** * Returns the total number of unique holders and the total supply for the token contract. * @summary Get onchain summary for a token * @param {TokenizationApiGetTokenContractSummaryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenContractSummary(requestParameters: TokenizationApiGetTokenContractSummaryRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenContractSummary(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * Returns a list of currently active roles for the token contract. * @summary Get active RBAC roles for a token * @param {TokenizationApiGetTokenRbacRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenRbac(requestParameters: TokenizationApiGetTokenRbacRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenRbac(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * Returns paginated total supply history for the token contract with optional time-range filtering and binning. * @summary Get historical total supply for a token * @param {TokenizationApiGetTokenTotalSupplyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenTotalSupply(requestParameters: TokenizationApiGetTokenTotalSupplyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenTotalSupply(requestParameters.id, requestParameters.startDate, requestParameters.endDate, requestParameters.interval, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, options).then((request) => request(axios, basePath)); }, /** * Returns a paginated list of onchain transactions for the token contract, optionally filtered by date range. * @summary Get onchain transactions for a token * @param {TokenizationApiGetTokenTransactionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenTransactions(requestParameters: TokenizationApiGetTokenTransactionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenTransactions(requestParameters.id, requestParameters.startDate, requestParameters.endDate, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, options).then((request) => request(axios, basePath)); }, /** * Returns a paginated list of ERC20 transfer events for the token contract, optionally filtered by date range. * @summary Get onchain transfers for a token * @param {TokenizationApiGetTokenTransfersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getTokenTransfers(requestParameters: TokenizationApiGetTokenTransfersRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTokenTransfers(requestParameters.id, requestParameters.startDate, requestParameters.endDate, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, requestParameters.sender, requestParameters.receiver, options).then((request) => request(axios, basePath)); }, /** * Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor. * @summary Issue a new token * @param {TokenizationApiIssueNewTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueNewToken(requestParameters: TokenizationApiIssueNewTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.issueNewToken(requestParameters.createTokenRequestDto, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Facilitates the creation of a new token on one or more blockchains. * @summary Issue a token on one or more blockchains * @param {TokenizationApiIssueTokenMultiChainRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ issueTokenMultiChain(requestParameters: TokenizationApiIssueTokenMultiChainRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.issueTokenMultiChain(requestParameters.createMultichainTokenRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Link an a contract * @summary Link a contract * @param {TokenizationApiLinkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ link(requestParameters: TokenizationApiLinkRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.link(requestParameters.tokenLinkRequestDto, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Mint tokens and upload metadata * @summary Mint tokens * @param {TokenizationApiMintCollectionTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ mintCollectionToken(requestParameters: TokenizationApiMintCollectionTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.mintCollectionToken(requestParameters.collectionMintRequestDto, requestParameters.id, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Reissue a multichain token. This endpoint allows you to reissue a token on one or more blockchains. The token must be initially issued using the issueTokenMultiChain endpoint. * @summary Reissue a multichain token * @param {TokenizationApiReIssueTokenMultiChainRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ reIssueTokenMultiChain(requestParameters: TokenizationApiReIssueTokenMultiChainRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.reIssueTokenMultiChain(requestParameters.reissueMultichainTokenRequest, requestParameters.tokenLinkId, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Remove LayerZero peers to disconnect adapter contracts. This endpoint removes peer relationships between LayerZero adapters. * @summary Remove LayerZero peers * @param {TokenizationApiRemoveLayerZeroPeersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ removeLayerZeroPeers(requestParameters: TokenizationApiRemoveLayerZeroPeersRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.removeLayerZeroPeers(requestParameters.removeLayerZeroPeersRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Configure DVN settings for LayerZero adapters. This endpoint sets up the DVN configuration for message verification between source and destination adapters. * @summary Set LayerZero DVN configuration * @param {TokenizationApiSetLayerZeroDvnConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setLayerZeroDvnConfig(requestParameters: TokenizationApiSetLayerZeroDvnConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setLayerZeroDvnConfig(requestParameters.setLayerZeroDvnConfigRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Set LayerZero peers to establish connections between adapter contracts. This endpoint creates peer relationships that enable cross-chain communication. It sets the destination adapter as a peer of the source adapter. If `bidirectional` is true, it also sets the source adapter as a peer of the destination adapter(s). * @summary Set LayerZero peers * @param {TokenizationApiSetLayerZeroPeersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ setLayerZeroPeers(requestParameters: TokenizationApiSetLayerZeroPeersRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setLayerZeroPeers(requestParameters.setLayerZeroPeersRequest, requestParameters.idempotencyKey, options).then((request) => request(axios, basePath)); }, /** * Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed. * @summary Unlink a token * @param {TokenizationApiUnlinkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlink(requestParameters: TokenizationApiUnlinkRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unlink(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * Delete a collection link * @summary Delete a collection link * @param {TokenizationApiUnlinkCollectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ unlinkCollection(requestParameters: TokenizationApiUnlinkCollectionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.unlinkCollection(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * Validate the LayerZero channel configuration between adapters. This endpoint checks if the channel configuration is correct and returns any validation errors. * @summary Validate LayerZero channel configuration * @param {TokenizationApiValidateLayerZeroChannelConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ validateLayerZeroChannelConfig(requestParameters: TokenizationApiValidateLayerZeroChannelConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.validateLayerZeroChannelConfig(requestParameters.adapterTokenLinkId, requestParameters.peerAdapterTokenLinkId, options).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for burnCollectionToken operation in TokenizationApi. * @export * @interface TokenizationApiBurnCollectionTokenRequest */ export interface TokenizationApiBurnCollectionTokenRequest { /** * * @type {CollectionBurnRequestDto} * @memberof TokenizationApiBurnCollectionToken */ readonly collectionBurnRequestDto: CollectionBurnRequestDto /** * The collection link id * @type {string} * @memberof TokenizationApiBurnCollectionToken */ readonly id: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiBurnCollectionToken */ readonly idempotencyKey?: string } /** * Request parameters for createNewCollection operation in TokenizationApi. * @export * @interface TokenizationApiCreateNewCollectionRequest */ export interface TokenizationApiCreateNewCollectionRequest { /** * * @type {CollectionDeployRequestDto} * @memberof TokenizationApiCreateNewCollection */ readonly collectionDeployRequestDto: CollectionDeployRequestDto /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiCreateNewCollection */ readonly idempotencyKey?: string } /** * Request parameters for deactivateAndUnlinkAdapters operation in TokenizationApi. * @export * @interface TokenizationApiDeactivateAndUnlinkAdaptersRequest */ export interface TokenizationApiDeactivateAndUnlinkAdaptersRequest { /** * * @type {RemoveLayerZeroAdaptersRequest} * @memberof TokenizationApiDeactivateAndUnlinkAdapters */ readonly removeLayerZeroAdaptersRequest: RemoveLayerZeroAdaptersRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiDeactivateAndUnlinkAdapters */ readonly idempotencyKey?: string } /** * Request parameters for deployAndLinkAdapters operation in TokenizationApi. * @export * @interface TokenizationApiDeployAndLinkAdaptersRequest */ export interface TokenizationApiDeployAndLinkAdaptersRequest { /** * * @type {DeployLayerZeroAdaptersRequest} * @memberof TokenizationApiDeployAndLinkAdapters */ readonly deployLayerZeroAdaptersRequest: DeployLayerZeroAdaptersRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiDeployAndLinkAdapters */ readonly idempotencyKey?: string } /** * Request parameters for fetchCollectionTokenDetails operation in TokenizationApi. * @export * @interface TokenizationApiFetchCollectionTokenDetailsRequest */ export interface TokenizationApiFetchCollectionTokenDetailsRequest { /** * The collection link id * @type {string} * @memberof TokenizationApiFetchCollectionTokenDetails */ readonly id: string /** * The tokenId as it appears on the blockchain * @type {string} * @memberof TokenizationApiFetchCollectionTokenDetails */ readonly tokenId: string } /** * Request parameters for getCollectionById operation in TokenizationApi. * @export * @interface TokenizationApiGetCollectionByIdRequest */ export interface TokenizationApiGetCollectionByIdRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetCollectionById */ readonly id: string } /** * Request parameters for getDeployableAddress operation in TokenizationApi. * @export * @interface TokenizationApiGetDeployableAddressRequest */ export interface TokenizationApiGetDeployableAddressRequest { /** * * @type {GetDeployableAddressRequest} * @memberof TokenizationApiGetDeployableAddress */ readonly getDeployableAddressRequest: GetDeployableAddressRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiGetDeployableAddress */ readonly idempotencyKey?: string } /** * Request parameters for getLayerZeroDvnConfig operation in TokenizationApi. * @export * @interface TokenizationApiGetLayerZeroDvnConfigRequest */ export interface TokenizationApiGetLayerZeroDvnConfigRequest { /** * The token link id of the adapter token link * @type {string} * @memberof TokenizationApiGetLayerZeroDvnConfig */ readonly adapterTokenLinkId: string /** * Optional peer adapter token link ID to filter results * @type {string} * @memberof TokenizationApiGetLayerZeroDvnConfig */ readonly peerAdapterTokenLinkId?: string } /** * Request parameters for getLayerZeroPeers operation in TokenizationApi. * @export * @interface TokenizationApiGetLayerZeroPeersRequest */ export interface TokenizationApiGetLayerZeroPeersRequest { /** * The token link id of the adapter token link * @type {string} * @memberof TokenizationApiGetLayerZeroPeers */ readonly adapterTokenLinkId: string } /** * Request parameters for getLinkedCollections operation in TokenizationApi. * @export * @interface TokenizationApiGetLinkedCollectionsRequest */ export interface TokenizationApiGetLinkedCollectionsRequest { /** * Page cursor to get the next page, for example - \"MjAyMy0xMi0xMyAyMDozNjowOC4zMDI=:MTEwMA==\" * @type {string} * @memberof TokenizationApiGetLinkedCollections */ readonly pageCursor?: string /** * Number of items per page (max 100), requesting more then 100 will return 100 items * @type {number} * @memberof TokenizationApiGetLinkedCollections */ readonly pageSize?: number /** * A comma separated list of statuses to filter. Default is \"COMPLETED\" * @type {any} * @memberof TokenizationApiGetLinkedCollections */ readonly status?: any } /** * Request parameters for getLinkedToken operation in TokenizationApi. * @export * @interface TokenizationApiGetLinkedTokenRequest */ export interface TokenizationApiGetLinkedTokenRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetLinkedToken */ readonly id: string } /** * Request parameters for getLinkedTokens operation in TokenizationApi. * @export * @interface TokenizationApiGetLinkedTokensRequest */ export interface TokenizationApiGetLinkedTokensRequest { /** * Page cursor to get the next page * @type {string} * @memberof TokenizationApiGetLinkedTokens */ readonly pageCursor?: string /** * Number of items per page, requesting more then max will return max items * @type {number} * @memberof TokenizationApiGetLinkedTokens */ readonly pageSize?: number /** * A comma separated list of statuses to filter. Default is \"COMPLETED\" * @type {any} * @memberof TokenizationApiGetLinkedTokens */ readonly status?: any } /** * Request parameters for getTokenAccessRegistryAddresses operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenAccessRegistryAddressesRequest */ export interface TokenizationApiGetTokenAccessRegistryAddressesRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenAccessRegistryAddresses */ readonly id: string /** * Page cursor to get the next page * @type {string} * @memberof TokenizationApiGetTokenAccessRegistryAddresses */ readonly pageCursor?: string /** * Number of items per page (max 100), requesting more than 100 will return 100 items * @type {number} * @memberof TokenizationApiGetTokenAccessRegistryAddresses */ readonly pageSize?: number /** * Sorting field (enum). * @type {'dateAdded' | 'address'} * @memberof TokenizationApiGetTokenAccessRegistryAddresses */ readonly sortBy?: GetTokenAccessRegistryAddressesSortByEnum /** * ASC / DESC ordering (default DESC) * @type {'ASC' | 'DESC'} * @memberof TokenizationApiGetTokenAccessRegistryAddresses */ readonly order?: GetTokenAccessRegistryAddressesOrderEnum } /** * Request parameters for getTokenAccessRegistrySummary operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenAccessRegistrySummaryRequest */ export interface TokenizationApiGetTokenAccessRegistrySummaryRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenAccessRegistrySummary */ readonly id: string } /** * Request parameters for getTokenBalanceForAccount operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenBalanceForAccountRequest */ export interface TokenizationApiGetTokenBalanceForAccountRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenBalanceForAccount */ readonly id: string /** * The account address to get balance history for * @type {string} * @memberof TokenizationApiGetTokenBalanceForAccount */ readonly accountAddress: string } /** * Request parameters for getTokenBalanceHistory operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenBalanceHistoryRequest */ export interface TokenizationApiGetTokenBalanceHistoryRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly id: string /** * The account address to get balance history for * @type {string} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly accountAddress: string /** * Start date of the time range in ISO 8601 format * @type {string} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly startDate?: string /** * End date of the time range in ISO 8601 format * @type {string} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly endDate?: string /** * Time interval for grouping data * @type {'HOUR' | 'DAY' | 'WEEK' | 'MONTH'} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly interval?: GetTokenBalanceHistoryIntervalEnum /** * Page cursor to get the next page * @type {string} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly pageCursor?: string /** * Number of items per page (max 100), requesting more than 100 will return 100 items * @type {number} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly pageSize?: number /** * Sorting field (enum). Sorting only supported by \'blockTimestamp\' * @type {'blockTimestamp'} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly sortBy?: GetTokenBalanceHistorySortByEnum /** * ASC / DESC ordering (default DESC) * @type {'ASC' | 'DESC'} * @memberof TokenizationApiGetTokenBalanceHistory */ readonly order?: GetTokenBalanceHistoryOrderEnum } /** * Request parameters for getTokenBalances operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenBalancesRequest */ export interface TokenizationApiGetTokenBalancesRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenBalances */ readonly id: string /** * Page cursor to get the next page * @type {string} * @memberof TokenizationApiGetTokenBalances */ readonly pageCursor?: string /** * Number of items per page (max 100), requesting more than 100 will return 100 items * @type {number} * @memberof TokenizationApiGetTokenBalances */ readonly pageSize?: number /** * Sorting field for balances * @type {'accountAddress' | 'blockTimestamp'} * @memberof TokenizationApiGetTokenBalances */ readonly sortBy?: GetTokenBalancesSortByEnum /** * ASC / DESC ordering (default DESC) * @type {'ASC' | 'DESC'} * @memberof TokenizationApiGetTokenBalances */ readonly order?: GetTokenBalancesOrderEnum } /** * Request parameters for getTokenContractSummary operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenContractSummaryRequest */ export interface TokenizationApiGetTokenContractSummaryRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenContractSummary */ readonly id: string } /** * Request parameters for getTokenRbac operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenRbacRequest */ export interface TokenizationApiGetTokenRbacRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenRbac */ readonly id: string } /** * Request parameters for getTokenTotalSupply operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenTotalSupplyRequest */ export interface TokenizationApiGetTokenTotalSupplyRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenTotalSupply */ readonly id: string /** * Start date of the time range in ISO 8601 format * @type {string} * @memberof TokenizationApiGetTokenTotalSupply */ readonly startDate?: string /** * End date of the time range in ISO 8601 format * @type {string} * @memberof TokenizationApiGetTokenTotalSupply */ readonly endDate?: string /** * Time interval for grouping data * @type {'HOUR' | 'DAY' | 'WEEK' | 'MONTH'} * @memberof TokenizationApiGetTokenTotalSupply */ readonly interval?: GetTokenTotalSupplyIntervalEnum /** * Page cursor to get the next page * @type {string} * @memberof TokenizationApiGetTokenTotalSupply */ readonly pageCursor?: string /** * Number of items per page (max 100), requesting more than 100 will return 100 items * @type {number} * @memberof TokenizationApiGetTokenTotalSupply */ readonly pageSize?: number /** * Sorting field (enum). Sorting only supported by \'blockTimestamp\' * @type {'blockTimestamp'} * @memberof TokenizationApiGetTokenTotalSupply */ readonly sortBy?: GetTokenTotalSupplySortByEnum /** * ASC / DESC ordering (default DESC) * @type {'ASC' | 'DESC'} * @memberof TokenizationApiGetTokenTotalSupply */ readonly order?: GetTokenTotalSupplyOrderEnum } /** * Request parameters for getTokenTransactions operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenTransactionsRequest */ export interface TokenizationApiGetTokenTransactionsRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenTransactions */ readonly id: string /** * Start date of the time range in ISO 8601 format * @type {string} * @memberof TokenizationApiGetTokenTransactions */ readonly startDate?: string /** * End date of the time range in ISO 8601 format * @type {string} * @memberof TokenizationApiGetTokenTransactions */ readonly endDate?: string /** * Page cursor to get the next page * @type {string} * @memberof TokenizationApiGetTokenTransactions */ readonly pageCursor?: string /** * Number of items per page (max 100), requesting more than 100 will return 100 items * @type {number} * @memberof TokenizationApiGetTokenTransactions */ readonly pageSize?: number /** * Sorting field (enum). * @type {'blockTimestamp' | 'blockNumber' | 'transactionHash'} * @memberof TokenizationApiGetTokenTransactions */ readonly sortBy?: GetTokenTransactionsSortByEnum /** * ASC / DESC ordering (default DESC) * @type {'ASC' | 'DESC'} * @memberof TokenizationApiGetTokenTransactions */ readonly order?: GetTokenTransactionsOrderEnum } /** * Request parameters for getTokenTransfers operation in TokenizationApi. * @export * @interface TokenizationApiGetTokenTransfersRequest */ export interface TokenizationApiGetTokenTransfersRequest { /** * The token link id * @type {string} * @memberof TokenizationApiGetTokenTransfers */ readonly id: string /** * Start date of the time range in ISO 8601 format * @type {string} * @memberof TokenizationApiGetTokenTransfers */ readonly startDate?: string /** * End date of the time range in ISO 8601 format * @type {string} * @memberof TokenizationApiGetTokenTransfers */ readonly endDate?: string /** * Page cursor to get the next page * @type {string} * @memberof TokenizationApiGetTokenTransfers */ readonly pageCursor?: string /** * Number of items per page (max 100), requesting more than 100 will return 100 items * @type {number} * @memberof TokenizationApiGetTokenTransfers */ readonly pageSize?: number /** * Sorting field for transfers * @type {'blockTimeStamp'} * @memberof TokenizationApiGetTokenTransfers */ readonly sortBy?: GetTokenTransfersSortByEnum /** * ASC / DESC ordering (default DESC) * @type {'ASC' | 'DESC'} * @memberof TokenizationApiGetTokenTransfers */ readonly order?: GetTokenTransfersOrderEnum /** * Filter transfers by sender address * @type {string} * @memberof TokenizationApiGetTokenTransfers */ readonly sender?: string /** * Filter transfers by receiver address * @type {string} * @memberof TokenizationApiGetTokenTransfers */ readonly receiver?: string } /** * Request parameters for issueNewToken operation in TokenizationApi. * @export * @interface TokenizationApiIssueNewTokenRequest */ export interface TokenizationApiIssueNewTokenRequest { /** * * @type {CreateTokenRequestDto} * @memberof TokenizationApiIssueNewToken */ readonly createTokenRequestDto: CreateTokenRequestDto /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiIssueNewToken */ readonly idempotencyKey?: string } /** * Request parameters for issueTokenMultiChain operation in TokenizationApi. * @export * @interface TokenizationApiIssueTokenMultiChainRequest */ export interface TokenizationApiIssueTokenMultiChainRequest { /** * * @type {CreateMultichainTokenRequest} * @memberof TokenizationApiIssueTokenMultiChain */ readonly createMultichainTokenRequest: CreateMultichainTokenRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiIssueTokenMultiChain */ readonly idempotencyKey?: string } /** * Request parameters for link operation in TokenizationApi. * @export * @interface TokenizationApiLinkRequest */ export interface TokenizationApiLinkRequest { /** * * @type {TokenLinkRequestDto} * @memberof TokenizationApiLink */ readonly tokenLinkRequestDto: TokenLinkRequestDto /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiLink */ readonly idempotencyKey?: string } /** * Request parameters for mintCollectionToken operation in TokenizationApi. * @export * @interface TokenizationApiMintCollectionTokenRequest */ export interface TokenizationApiMintCollectionTokenRequest { /** * * @type {CollectionMintRequestDto} * @memberof TokenizationApiMintCollectionToken */ readonly collectionMintRequestDto: CollectionMintRequestDto /** * The collection link id * @type {string} * @memberof TokenizationApiMintCollectionToken */ readonly id: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiMintCollectionToken */ readonly idempotencyKey?: string } /** * Request parameters for reIssueTokenMultiChain operation in TokenizationApi. * @export * @interface TokenizationApiReIssueTokenMultiChainRequest */ export interface TokenizationApiReIssueTokenMultiChainRequest { /** * * @type {ReissueMultichainTokenRequest} * @memberof TokenizationApiReIssueTokenMultiChain */ readonly reissueMultichainTokenRequest: ReissueMultichainTokenRequest /** * The ID of the token link * @type {string} * @memberof TokenizationApiReIssueTokenMultiChain */ readonly tokenLinkId: string /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiReIssueTokenMultiChain */ readonly idempotencyKey?: string } /** * Request parameters for removeLayerZeroPeers operation in TokenizationApi. * @export * @interface TokenizationApiRemoveLayerZeroPeersRequest */ export interface TokenizationApiRemoveLayerZeroPeersRequest { /** * * @type {RemoveLayerZeroPeersRequest} * @memberof TokenizationApiRemoveLayerZeroPeers */ readonly removeLayerZeroPeersRequest: RemoveLayerZeroPeersRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiRemoveLayerZeroPeers */ readonly idempotencyKey?: string } /** * Request parameters for setLayerZeroDvnConfig operation in TokenizationApi. * @export * @interface TokenizationApiSetLayerZeroDvnConfigRequest */ export interface TokenizationApiSetLayerZeroDvnConfigRequest { /** * * @type {SetLayerZeroDvnConfigRequest} * @memberof TokenizationApiSetLayerZeroDvnConfig */ readonly setLayerZeroDvnConfigRequest: SetLayerZeroDvnConfigRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiSetLayerZeroDvnConfig */ readonly idempotencyKey?: string } /** * Request parameters for setLayerZeroPeers operation in TokenizationApi. * @export * @interface TokenizationApiSetLayerZeroPeersRequest */ export interface TokenizationApiSetLayerZeroPeersRequest { /** * * @type {SetLayerZeroPeersRequest} * @memberof TokenizationApiSetLayerZeroPeers */ readonly setLayerZeroPeersRequest: SetLayerZeroPeersRequest /** * A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. * @type {string} * @memberof TokenizationApiSetLayerZeroPeers */ readonly idempotencyKey?: string } /** * Request parameters for unlink operation in TokenizationApi. * @export * @interface TokenizationApiUnlinkRequest */ export interface TokenizationApiUnlinkRequest { /** * The token link id * @type {string} * @memberof TokenizationApiUnlink */ readonly id: string } /** * Request parameters for unlinkCollection operation in TokenizationApi. * @export * @interface TokenizationApiUnlinkCollectionRequest */ export interface TokenizationApiUnlinkCollectionRequest { /** * The token link id * @type {string} * @memberof TokenizationApiUnlinkCollection */ readonly id: string } /** * Request parameters for validateLayerZeroChannelConfig operation in TokenizationApi. * @export * @interface TokenizationApiValidateLayerZeroChannelConfigRequest */ export interface TokenizationApiValidateLayerZeroChannelConfigRequest { /** * The token link ID of the adapter * @type {string} * @memberof TokenizationApiValidateLayerZeroChannelConfig */ readonly adapterTokenLinkId: string /** * Peer adapter token link ID to validate against * @type {string} * @memberof TokenizationApiValidateLayerZeroChannelConfig */ readonly peerAdapterTokenLinkId: string } /** * TokenizationApi - object-oriented interface * @export * @class TokenizationApi * @extends {BaseAPI} */ export class TokenizationApi extends BaseAPI { /** * Burn tokens in a collection * @summary Burn tokens * @param {TokenizationApiBurnCollectionTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public burnCollectionToken(requestParameters: TokenizationApiBurnCollectionTokenRequest) { return TokenizationApiFp(this.configuration).burnCollectionToken(requestParameters.collectionBurnRequestDto, requestParameters.id, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Create a new collection and link it as a token. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor. * @summary Create a new collection * @param {TokenizationApiCreateNewCollectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public createNewCollection(requestParameters: TokenizationApiCreateNewCollectionRequest) { return TokenizationApiFp(this.configuration).createNewCollection(requestParameters.collectionDeployRequestDto, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Remove LayerZero adapters by deactivating and unlinking them. This endpoint revokes roles and deactivates the specified adapter contracts. * @summary Remove LayerZero adapters * @param {TokenizationApiDeactivateAndUnlinkAdaptersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public deactivateAndUnlinkAdapters(requestParameters: TokenizationApiDeactivateAndUnlinkAdaptersRequest) { return TokenizationApiFp(this.configuration).deactivateAndUnlinkAdapters(requestParameters.removeLayerZeroAdaptersRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Deploy LayerZero adapters for multichain token bridging functionality. This endpoint creates adapter contracts that enable cross-chain token transfers. * @summary Deploy LayerZero adapters * @param {TokenizationApiDeployAndLinkAdaptersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public deployAndLinkAdapters(requestParameters: TokenizationApiDeployAndLinkAdaptersRequest) { return TokenizationApiFp(this.configuration).deployAndLinkAdapters(requestParameters.deployLayerZeroAdaptersRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get collection token details by id * @summary Get collection token details * @param {TokenizationApiFetchCollectionTokenDetailsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public fetchCollectionTokenDetails(requestParameters: TokenizationApiFetchCollectionTokenDetailsRequest) { return TokenizationApiFp(this.configuration).fetchCollectionTokenDetails(requestParameters.id, requestParameters.tokenId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get a collection by id * @summary Get a collection by id * @param {TokenizationApiGetCollectionByIdRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getCollectionById(requestParameters: TokenizationApiGetCollectionByIdRequest) { return TokenizationApiFp(this.configuration).getCollectionById(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get a deterministic address for contract deployment. The address is derived from the contract\'s bytecode and provided salt. This endpoint is used to get the address of a contract that will be deployed in the future. * @summary Get deterministic address for contract deployment * @param {TokenizationApiGetDeployableAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getDeployableAddress(requestParameters: TokenizationApiGetDeployableAddressRequest) { return TokenizationApiFp(this.configuration).getDeployableAddress(requestParameters.getDeployableAddressRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Retrieve the DVN (Data Verification Network) configuration for a specific adapter. Returns DVN configurations for channels between the source adapter and its peers. * @summary Get LayerZero DVN configuration * @param {TokenizationApiGetLayerZeroDvnConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getLayerZeroDvnConfig(requestParameters: TokenizationApiGetLayerZeroDvnConfigRequest) { return TokenizationApiFp(this.configuration).getLayerZeroDvnConfig(requestParameters.adapterTokenLinkId, requestParameters.peerAdapterTokenLinkId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Retrieve the LayerZero peers configured for a specific adapter. Returns information about peer relationships for cross-chain communication. * @summary Get LayerZero peers * @param {TokenizationApiGetLayerZeroPeersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getLayerZeroPeers(requestParameters: TokenizationApiGetLayerZeroPeersRequest) { return TokenizationApiFp(this.configuration).getLayerZeroPeers(requestParameters.adapterTokenLinkId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get collections (paginated). Endpoint Permission: Admin, Non-Signing Admin, Signer, Approver, Editor, Viewer. * @summary Get collections * @param {TokenizationApiGetLinkedCollectionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getLinkedCollections(requestParameters: TokenizationApiGetLinkedCollectionsRequest = {}) { return TokenizationApiFp(this.configuration).getLinkedCollections(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Return a linked token, with its status and metadata. * @summary Return a linked token * @param {TokenizationApiGetLinkedTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getLinkedToken(requestParameters: TokenizationApiGetLinkedTokenRequest) { return TokenizationApiFp(this.configuration).getLinkedToken(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Return all linked tokens (paginated) * @summary List all linked tokens * @param {TokenizationApiGetLinkedTokensRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getLinkedTokens(requestParameters: TokenizationApiGetLinkedTokensRequest = {}) { return TokenizationApiFp(this.configuration).getLinkedTokens(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Get the total count of linked tokens * @summary Get the total count of linked tokens * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getLinkedTokensCount() { return TokenizationApiFp(this.configuration).getLinkedTokensCount().then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the currently active addresses in the access registry (added but not removed). * @summary Get current state of addresses in an access registry * @param {TokenizationApiGetTokenAccessRegistryAddressesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenAccessRegistryAddresses(requestParameters: TokenizationApiGetTokenAccessRegistryAddressesRequest) { return TokenizationApiFp(this.configuration).getTokenAccessRegistryAddresses(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns a summary of the current state of the access registry. * @summary Get summary of an access registry * @param {TokenizationApiGetTokenAccessRegistrySummaryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenAccessRegistrySummary(requestParameters: TokenizationApiGetTokenAccessRegistrySummaryRequest) { return TokenizationApiFp(this.configuration).getTokenAccessRegistrySummary(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the latest token balance for the specified account address. * @summary Get the latest balance for a specific account * @param {TokenizationApiGetTokenBalanceForAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenBalanceForAccount(requestParameters: TokenizationApiGetTokenBalanceForAccountRequest) { return TokenizationApiFp(this.configuration).getTokenBalanceForAccount(requestParameters.id, requestParameters.accountAddress).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns paginated balance history for the specified account address with optional time-range filtering. * @summary Get balance history for a specific account * @param {TokenizationApiGetTokenBalanceHistoryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenBalanceHistory(requestParameters: TokenizationApiGetTokenBalanceHistoryRequest) { return TokenizationApiFp(this.configuration).getTokenBalanceHistory(requestParameters.id, requestParameters.accountAddress, requestParameters.startDate, requestParameters.endDate, requestParameters.interval, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the latest balance for each unique address holding this token. * @summary Get latest balances for all holders of a token * @param {TokenizationApiGetTokenBalancesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenBalances(requestParameters: TokenizationApiGetTokenBalancesRequest) { return TokenizationApiFp(this.configuration).getTokenBalances(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns the total number of unique holders and the total supply for the token contract. * @summary Get onchain summary for a token * @param {TokenizationApiGetTokenContractSummaryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenContractSummary(requestParameters: TokenizationApiGetTokenContractSummaryRequest) { return TokenizationApiFp(this.configuration).getTokenContractSummary(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns a list of currently active roles for the token contract. * @summary Get active RBAC roles for a token * @param {TokenizationApiGetTokenRbacRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenRbac(requestParameters: TokenizationApiGetTokenRbacRequest) { return TokenizationApiFp(this.configuration).getTokenRbac(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns paginated total supply history for the token contract with optional time-range filtering and binning. * @summary Get historical total supply for a token * @param {TokenizationApiGetTokenTotalSupplyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenTotalSupply(requestParameters: TokenizationApiGetTokenTotalSupplyRequest) { return TokenizationApiFp(this.configuration).getTokenTotalSupply(requestParameters.id, requestParameters.startDate, requestParameters.endDate, requestParameters.interval, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns a paginated list of onchain transactions for the token contract, optionally filtered by date range. * @summary Get onchain transactions for a token * @param {TokenizationApiGetTokenTransactionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenTransactions(requestParameters: TokenizationApiGetTokenTransactionsRequest) { return TokenizationApiFp(this.configuration).getTokenTransactions(requestParameters.id, requestParameters.startDate, requestParameters.endDate, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Returns a paginated list of ERC20 transfer events for the token contract, optionally filtered by date range. * @summary Get onchain transfers for a token * @param {TokenizationApiGetTokenTransfersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public getTokenTransfers(requestParameters: TokenizationApiGetTokenTransfersRequest) { return TokenizationApiFp(this.configuration).getTokenTransfers(requestParameters.id, requestParameters.startDate, requestParameters.endDate, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.sortBy, requestParameters.order, requestParameters.sender, requestParameters.receiver).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms. For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace. For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract. Returns the token link with status \"PENDING\" until the token is deployed or \"SUCCESS\" if no deployment is needed. Endpoint Permission: Owner, Admin, Non-Signing Admin, Signer, and Editor. * @summary Issue a new token * @param {TokenizationApiIssueNewTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public issueNewToken(requestParameters: TokenizationApiIssueNewTokenRequest) { return TokenizationApiFp(this.configuration).issueNewToken(requestParameters.createTokenRequestDto, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Facilitates the creation of a new token on one or more blockchains. * @summary Issue a token on one or more blockchains * @param {TokenizationApiIssueTokenMultiChainRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public issueTokenMultiChain(requestParameters: TokenizationApiIssueTokenMultiChainRequest) { return TokenizationApiFp(this.configuration).issueTokenMultiChain(requestParameters.createMultichainTokenRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Link an a contract * @summary Link a contract * @param {TokenizationApiLinkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public link(requestParameters: TokenizationApiLinkRequest) { return TokenizationApiFp(this.configuration).link(requestParameters.tokenLinkRequestDto, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Mint tokens and upload metadata * @summary Mint tokens * @param {TokenizationApiMintCollectionTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public mintCollectionToken(requestParameters: TokenizationApiMintCollectionTokenRequest) { return TokenizationApiFp(this.configuration).mintCollectionToken(requestParameters.collectionMintRequestDto, requestParameters.id, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Reissue a multichain token. This endpoint allows you to reissue a token on one or more blockchains. The token must be initially issued using the issueTokenMultiChain endpoint. * @summary Reissue a multichain token * @param {TokenizationApiReIssueTokenMultiChainRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public reIssueTokenMultiChain(requestParameters: TokenizationApiReIssueTokenMultiChainRequest) { return TokenizationApiFp(this.configuration).reIssueTokenMultiChain(requestParameters.reissueMultichainTokenRequest, requestParameters.tokenLinkId, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Remove LayerZero peers to disconnect adapter contracts. This endpoint removes peer relationships between LayerZero adapters. * @summary Remove LayerZero peers * @param {TokenizationApiRemoveLayerZeroPeersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public removeLayerZeroPeers(requestParameters: TokenizationApiRemoveLayerZeroPeersRequest) { return TokenizationApiFp(this.configuration).removeLayerZeroPeers(requestParameters.removeLayerZeroPeersRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Configure DVN settings for LayerZero adapters. This endpoint sets up the DVN configuration for message verification between source and destination adapters. * @summary Set LayerZero DVN configuration * @param {TokenizationApiSetLayerZeroDvnConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public setLayerZeroDvnConfig(requestParameters: TokenizationApiSetLayerZeroDvnConfigRequest) { return TokenizationApiFp(this.configuration).setLayerZeroDvnConfig(requestParameters.setLayerZeroDvnConfigRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Set LayerZero peers to establish connections between adapter contracts. This endpoint creates peer relationships that enable cross-chain communication. It sets the destination adapter as a peer of the source adapter. If `bidirectional` is true, it also sets the source adapter as a peer of the destination adapter(s). * @summary Set LayerZero peers * @param {TokenizationApiSetLayerZeroPeersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public setLayerZeroPeers(requestParameters: TokenizationApiSetLayerZeroPeersRequest) { return TokenizationApiFp(this.configuration).setLayerZeroPeers(requestParameters.setLayerZeroPeersRequest, requestParameters.idempotencyKey).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed. * @summary Unlink a token * @param {TokenizationApiUnlinkRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public unlink(requestParameters: TokenizationApiUnlinkRequest) { return TokenizationApiFp(this.configuration).unlink(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Delete a collection link * @summary Delete a collection link * @param {TokenizationApiUnlinkCollectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public unlinkCollection(requestParameters: TokenizationApiUnlinkCollectionRequest) { return TokenizationApiFp(this.configuration).unlinkCollection(requestParameters.id).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } /** * Validate the LayerZero channel configuration between adapters. This endpoint checks if the channel configuration is correct and returns any validation errors. * @summary Validate LayerZero channel configuration * @param {TokenizationApiValidateLayerZeroChannelConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TokenizationApi */ public validateLayerZeroChannelConfig(requestParameters: TokenizationApiValidateLayerZeroChannelConfigRequest) { return TokenizationApiFp(this.configuration).validateLayerZeroChannelConfig(requestParameters.adapterTokenLinkId, requestParameters.peerAdapterTokenLinkId).then((request) => request(this.axios, this.basePath)).then(convertToFireblocksResponse); } } /** * @export */ export const GetTokenAccessRegistryAddressesSortByEnum = { DateAdded: 'dateAdded', Address: 'address' } as const; export type GetTokenAccessRegistryAddressesSortByEnum = typeof GetTokenAccessRegistryAddressesSortByEnum[keyof typeof GetTokenAccessRegistryAddressesSortByEnum]; /** * @export */ export const GetTokenAccessRegistryAddressesOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetTokenAccessRegistryAddressesOrderEnum = typeof GetTokenAccessRegistryAddressesOrderEnum[keyof typeof GetTokenAccessRegistryAddressesOrderEnum]; /** * @export */ export const GetTokenBalanceHistoryIntervalEnum = { Hour: 'HOUR', Day: 'DAY', Week: 'WEEK', Month: 'MONTH' } as const; export type GetTokenBalanceHistoryIntervalEnum = typeof GetTokenBalanceHistoryIntervalEnum[keyof typeof GetTokenBalanceHistoryIntervalEnum]; /** * @export */ export const GetTokenBalanceHistorySortByEnum = { BlockTimestamp: 'blockTimestamp' } as const; export type GetTokenBalanceHistorySortByEnum = typeof GetTokenBalanceHistorySortByEnum[keyof typeof GetTokenBalanceHistorySortByEnum]; /** * @export */ export const GetTokenBalanceHistoryOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetTokenBalanceHistoryOrderEnum = typeof GetTokenBalanceHistoryOrderEnum[keyof typeof GetTokenBalanceHistoryOrderEnum]; /** * @export */ export const GetTokenBalancesSortByEnum = { AccountAddress: 'accountAddress', BlockTimestamp: 'blockTimestamp' } as const; export type GetTokenBalancesSortByEnum = typeof GetTokenBalancesSortByEnum[keyof typeof GetTokenBalancesSortByEnum]; /** * @export */ export const GetTokenBalancesOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetTokenBalancesOrderEnum = typeof GetTokenBalancesOrderEnum[keyof typeof GetTokenBalancesOrderEnum]; /** * @export */ export const GetTokenTotalSupplyIntervalEnum = { Hour: 'HOUR', Day: 'DAY', Week: 'WEEK', Month: 'MONTH' } as const; export type GetTokenTotalSupplyIntervalEnum = typeof GetTokenTotalSupplyIntervalEnum[keyof typeof GetTokenTotalSupplyIntervalEnum]; /** * @export */ export const GetTokenTotalSupplySortByEnum = { BlockTimestamp: 'blockTimestamp' } as const; export type GetTokenTotalSupplySortByEnum = typeof GetTokenTotalSupplySortByEnum[keyof typeof GetTokenTotalSupplySortByEnum]; /** * @export */ export const GetTokenTotalSupplyOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetTokenTotalSupplyOrderEnum = typeof GetTokenTotalSupplyOrderEnum[keyof typeof GetTokenTotalSupplyOrderEnum]; /** * @export */ export const GetTokenTransactionsSortByEnum = { BlockTimestamp: 'blockTimestamp', BlockNumber: 'blockNumber', TransactionHash: 'transactionHash' } as const; export type GetTokenTransactionsSortByEnum = typeof GetTokenTransactionsSortByEnum[keyof typeof GetTokenTransactionsSortByEnum]; /** * @export */ export const GetTokenTransactionsOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetTokenTransactionsOrderEnum = typeof GetTokenTransactionsOrderEnum[keyof typeof GetTokenTransactionsOrderEnum]; /** * @export */ export const GetTokenTransfersSortByEnum = { BlockTimeStamp: 'blockTimeStamp' } as const; export type GetTokenTransfersSortByEnum = typeof GetTokenTransfersSortByEnum[keyof typeof GetTokenTransfersSortByEnum]; /** * @export */ export const GetTokenTransfersOrderEnum = { Asc: 'ASC', Desc: 'DESC' } as const; export type GetTokenTransfersOrderEnum = typeof GetTokenTransfersOrderEnum[keyof typeof GetTokenTransfersOrderEnum];