diff --git a/package-lock.json b/package-lock.json index 9e1a0381..0ccfb078 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5965,4 +5965,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/client/api.ts b/src/client/api.ts index a59e6c7c..2954b06e 100644 --- a/src/client/api.ts +++ b/src/client/api.ts @@ -24,7 +24,7 @@ import type { RequestArgs } from './base'; import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** - * + * * @export * @interface Address */ @@ -55,13 +55,13 @@ export interface Address { 'address_id': string; } /** - * + * * @export * @interface AddressBalanceList */ export interface AddressBalanceList { /** - * + * * @type {Array} * @memberof AddressBalanceList */ @@ -86,13 +86,13 @@ export interface AddressBalanceList { 'total_count': number; } /** - * + * * @export * @interface AddressHistoricalBalanceList */ export interface AddressHistoricalBalanceList { /** - * + * * @type {Array} * @memberof AddressHistoricalBalanceList */ @@ -111,13 +111,13 @@ export interface AddressHistoricalBalanceList { 'next_page': string; } /** - * + * * @export * @interface AddressList */ export interface AddressList { /** - * + * * @type {Array
} * @memberof AddressList */ @@ -185,14 +185,14 @@ export interface Balance { */ 'amount': string; /** - * + * * @type {Asset} * @memberof Balance */ 'asset': Asset; } /** - * + * * @export * @interface BroadcastStakingOperationRequest */ @@ -211,7 +211,7 @@ export interface BroadcastStakingOperationRequest { 'transaction_index': number; } /** - * + * * @export * @interface BroadcastTradeRequest */ @@ -230,7 +230,7 @@ export interface BroadcastTradeRequest { 'approve_transaction_signed_payload'?: string; } /** - * + * * @export * @interface BroadcastTransferRequest */ @@ -243,7 +243,7 @@ export interface BroadcastTransferRequest { 'signed_payload': string; } /** - * + * * @export * @interface BuildStakingOperationRequest */ @@ -273,7 +273,7 @@ export interface BuildStakingOperationRequest { */ 'action': string; /** - * + * * @type {{ [key: string]: string; }} * @memberof BuildStakingOperationRequest */ @@ -390,7 +390,7 @@ export interface ContractEventList { 'has_more': boolean; } /** - * + * * @export * @interface CreateAddressRequest */ @@ -409,7 +409,7 @@ export interface CreateAddressRequest { 'attestation'?: string; } /** - * + * * @export * @interface CreateServerSignerRequest */ @@ -434,7 +434,7 @@ export interface CreateServerSignerRequest { 'is_mpc': boolean; } /** - * + * * @export * @interface CreateStakingOperationRequest */ @@ -458,14 +458,14 @@ export interface CreateStakingOperationRequest { */ 'action': string; /** - * + * * @type {{ [key: string]: string; }} * @memberof CreateStakingOperationRequest */ 'options': { [key: string]: string; }; } /** - * + * * @export * @interface CreateTradeRequest */ @@ -490,7 +490,7 @@ export interface CreateTradeRequest { 'to_asset_id': string; } /** - * + * * @export * @interface CreateTransferRequest */ @@ -521,13 +521,13 @@ export interface CreateTransferRequest { 'destination': string; } /** - * + * * @export * @interface CreateWalletRequest */ export interface CreateWalletRequest { /** - * + * * @type {CreateWalletRequestWallet} * @memberof CreateWalletRequest */ @@ -553,7 +553,7 @@ export interface CreateWalletRequestWallet { 'use_server_signer'?: boolean; } /** - * + * * @export * @interface CreateWebhookRequest */ @@ -565,7 +565,7 @@ export interface CreateWebhookRequest { */ 'network_id': string; /** - * + * * @type {WebhookEventType} * @memberof CreateWebhookRequest */ @@ -634,13 +634,13 @@ export interface EthereumValidatorMetadata { */ 'withdrawableEpoch': string; /** - * + * * @type {Balance} * @memberof EthereumValidatorMetadata */ 'balance': Balance; /** - * + * * @type {Balance} * @memberof EthereumValidatorMetadata */ @@ -682,13 +682,13 @@ export type Feature = typeof Feature[keyof typeof Feature]; /** - * + * * @export * @interface FetchStakingRewards200Response */ export interface FetchStakingRewards200Response { /** - * + * * @type {Array} * @memberof FetchStakingRewards200Response */ @@ -707,7 +707,7 @@ export interface FetchStakingRewards200Response { 'next_page': string; } /** - * + * * @export * @interface FetchStakingRewardsRequest */ @@ -743,7 +743,7 @@ export interface FetchStakingRewardsRequest { */ 'end_time': string; /** - * + * * @type {StakingRewardFormat} * @memberof FetchStakingRewardsRequest */ @@ -752,7 +752,7 @@ export interface FetchStakingRewardsRequest { /** - * + * * @export * @interface GetStakingContextRequest */ @@ -776,7 +776,7 @@ export interface GetStakingContextRequest { */ 'address_id': string; /** - * + * * @type {{ [key: string]: string; }} * @memberof GetStakingContextRequest */ @@ -807,7 +807,7 @@ export interface HistoricalBalance { */ 'block_height': string; /** - * + * * @type {Asset} * @memberof HistoricalBalance */ @@ -839,19 +839,19 @@ export interface ModelError { */ export interface NativeEthStakingContext { /** - * + * * @type {Balance} * @memberof NativeEthStakingContext */ 'stakeable_balance': Balance; /** - * + * * @type {Balance} * @memberof NativeEthStakingContext */ 'unstakeable_balance': Balance; /** - * + * * @type {Balance} * @memberof NativeEthStakingContext */ @@ -864,19 +864,19 @@ export interface NativeEthStakingContext { */ export interface PartialEthStakingContext { /** - * + * * @type {Balance} * @memberof PartialEthStakingContext */ 'stakeable_balance': Balance; /** - * + * * @type {Balance} * @memberof PartialEthStakingContext */ 'unstakeable_balance': Balance; /** - * + * * @type {Balance} * @memberof PartialEthStakingContext */ @@ -970,7 +970,7 @@ export interface ServerSignerEvent { */ 'server_signer_id': string; /** - * + * * @type {ServerSignerEventEvent} * @memberof ServerSignerEvent */ @@ -983,13 +983,13 @@ export interface ServerSignerEvent { export type ServerSignerEventEvent = SeedCreationEvent | SignatureCreationEvent; /** - * + * * @export * @interface ServerSignerEventList */ export interface ServerSignerEventList { /** - * + * * @type {Array} * @memberof ServerSignerEventList */ @@ -1014,13 +1014,13 @@ export interface ServerSignerEventList { 'total_count': number; } /** - * + * * @export * @interface ServerSignerList */ export interface ServerSignerList { /** - * + * * @type {Array} * @memberof ServerSignerList */ @@ -1087,7 +1087,7 @@ export interface SignatureCreationEvent { */ 'signing_payload': string; /** - * + * * @type {TransactionType} * @memberof SignatureCreationEvent */ @@ -1126,7 +1126,7 @@ export interface SignatureCreationEventResult { */ 'address_id': string; /** - * + * * @type {TransactionType} * @memberof SignatureCreationEventResult */ @@ -1178,7 +1178,7 @@ export interface SignedVoluntaryExitMessageMetadata { */ export interface StakingContext { /** - * + * * @type {StakingContextContext} * @memberof StakingContext */ @@ -1233,7 +1233,7 @@ export interface StakingOperation { */ 'transactions': Array; /** - * + * * @type {StakingOperationMetadata} * @memberof StakingOperation */ @@ -1287,13 +1287,13 @@ export interface StakingReward { */ 'state': StakingRewardStateEnum; /** - * + * * @type {StakingRewardFormat} * @memberof StakingReward */ 'format': StakingRewardFormat; /** - * + * * @type {StakingRewardUSDValue} * @memberof StakingReward */ @@ -1383,7 +1383,7 @@ export interface Trade { */ 'from_amount': string; /** - * + * * @type {Asset} * @memberof Trade */ @@ -1395,32 +1395,32 @@ export interface Trade { */ 'to_amount': string; /** - * + * * @type {Asset} * @memberof Trade */ 'to_asset': Asset; /** - * + * * @type {Transaction} * @memberof Trade */ 'transaction': Transaction; /** - * + * * @type {Transaction} * @memberof Trade */ 'approve_transaction'?: Transaction; } /** - * + * * @export * @interface TradeList */ export interface TradeList { /** - * + * * @type {Array} * @memberof TradeList */ @@ -1505,7 +1505,7 @@ export const TransactionStatusEnum = { export type TransactionStatusEnum = typeof TransactionStatusEnum[keyof typeof TransactionStatusEnum]; /** - * + * * @export * @enum {string} */ @@ -1560,7 +1560,7 @@ export interface Transfer { */ 'asset_id': string; /** - * + * * @type {Asset} * @memberof Transfer */ @@ -1572,7 +1572,7 @@ export interface Transfer { */ 'transfer_id': string; /** - * + * * @type {Transaction} * @memberof Transfer */ @@ -1613,13 +1613,13 @@ export const TransferStatusEnum = { export type TransferStatusEnum = typeof TransferStatusEnum[keyof typeof TransferStatusEnum]; /** - * + * * @export * @interface TransferList */ export interface TransferList { /** - * + * * @type {Array} * @memberof TransferList */ @@ -1644,7 +1644,7 @@ export interface TransferList { 'total_count': number; } /** - * + * * @export * @interface UpdateWebhookRequest */ @@ -1656,7 +1656,7 @@ export interface UpdateWebhookRequest { */ 'network_id'?: string; /** - * + * * @type {WebhookEventType} * @memberof UpdateWebhookRequest */ @@ -1677,7 +1677,7 @@ export interface UpdateWebhookRequest { /** - * + * * @export * @interface User */ @@ -1689,7 +1689,7 @@ export interface User { */ 'id': string; /** - * + * * @type {string} * @memberof User */ @@ -1726,7 +1726,7 @@ export interface Validator { */ 'status': string; /** - * + * * @type {ValidatorDetails} * @memberof Validator */ @@ -1739,13 +1739,13 @@ export interface Validator { export type ValidatorDetails = EthereumValidatorMetadata; /** - * + * * @export * @interface ValidatorList */ export interface ValidatorList { /** - * + * * @type {Array} * @memberof ValidatorList */ @@ -1764,7 +1764,7 @@ export interface ValidatorList { 'next_page': string; } /** - * + * * @export * @interface Wallet */ @@ -1782,7 +1782,7 @@ export interface Wallet { */ 'network_id': string; /** - * + * * @type {Address} * @memberof Wallet */ @@ -1815,7 +1815,7 @@ export type WalletServerSignerStatusEnum = typeof WalletServerSignerStatusEnum[k */ export interface WalletList { /** - * + * * @type {Array} * @memberof WalletList */ @@ -1858,7 +1858,7 @@ export interface Webhook { */ 'network_id'?: string; /** - * + * * @type {WebhookEventType} * @memberof Webhook */ @@ -1916,7 +1916,7 @@ export interface WebhookEventFilter { 'to_address'?: string; } /** - * + * * @export * @enum {string} */ @@ -1931,13 +1931,13 @@ export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEvent /** - * + * * @export * @interface WebhookList */ export interface WebhookList { /** - * + * * @type {Array} * @memberof WebhookList */ @@ -1966,7 +1966,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura * Create a new address scoped to the wallet. * @summary Create a new address * @param {string} walletId The ID of the wallet to create the address in. - * @param {CreateAddressRequest} [createAddressRequest] + * @param {CreateAddressRequest} [createAddressRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1987,7 +1987,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -2028,7 +2028,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2070,7 +2070,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2113,7 +2113,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2157,7 +2157,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2195,7 +2195,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2219,7 +2219,7 @@ export const AddressesApiFp = function(configuration?: Configuration) { * Create a new address scoped to the wallet. * @summary Create a new address * @param {string} walletId The ID of the wallet to create the address in. - * @param {CreateAddressRequest} [createAddressRequest] + * @param {CreateAddressRequest} [createAddressRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2316,7 +2316,7 @@ export const AddressesApiFactory = function (configuration?: Configuration, base * Create a new address scoped to the wallet. * @summary Create a new address * @param {string} walletId The ID of the wallet to create the address in. - * @param {CreateAddressRequest} [createAddressRequest] + * @param {CreateAddressRequest} [createAddressRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2394,7 +2394,7 @@ export interface AddressesApiInterface { * Create a new address scoped to the wallet. * @summary Create a new address * @param {string} walletId The ID of the wallet to create the address in. - * @param {CreateAddressRequest} [createAddressRequest] + * @param {CreateAddressRequest} [createAddressRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AddressesApiInterface @@ -2472,7 +2472,7 @@ export class AddressesApi extends BaseAPI implements AddressesApiInterface { * Create a new address scoped to the wallet. * @summary Create a new address * @param {string} walletId The ID of the wallet to create the address in. - * @param {CreateAddressRequest} [createAddressRequest] + * @param {CreateAddressRequest} [createAddressRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AddressesApi @@ -2586,7 +2586,7 @@ export const AssetsApiAxiosParamCreator = function (configuration?: Configuratio const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2756,7 +2756,7 @@ export const ContractEventsApiAxiosParamCreator = function (configuration?: Conf } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2918,7 +2918,7 @@ export const ExternalAddressesApiAxiosParamCreator = function (configuration?: C const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -2970,7 +2970,7 @@ export const ExternalAddressesApiAxiosParamCreator = function (configuration?: C } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3013,7 +3013,7 @@ export const ExternalAddressesApiAxiosParamCreator = function (configuration?: C } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3051,7 +3051,7 @@ export const ExternalAddressesApiAxiosParamCreator = function (configuration?: C const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3327,7 +3327,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi /** * Create a new Server-Signer * @summary Create a new Server-Signer - * @param {CreateServerSignerRequest} [createServerSignerRequest] + * @param {CreateServerSignerRequest} [createServerSignerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3345,7 +3345,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -3382,7 +3382,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3426,7 +3426,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3466,7 +3466,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -3480,7 +3480,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SeedCreationEventResult} [seedCreationEventResult] + * @param {SeedCreationEventResult} [seedCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3501,7 +3501,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -3518,7 +3518,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SignatureCreationEventResult} [signatureCreationEventResult] + * @param {SignatureCreationEventResult} [signatureCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3539,7 +3539,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -3565,7 +3565,7 @@ export const ServerSignersApiFp = function(configuration?: Configuration) { /** * Create a new Server-Signer * @summary Create a new Server-Signer - * @param {CreateServerSignerRequest} [createServerSignerRequest] + * @param {CreateServerSignerRequest} [createServerSignerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3621,7 +3621,7 @@ export const ServerSignersApiFp = function(configuration?: Configuration) { * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SeedCreationEventResult} [seedCreationEventResult] + * @param {SeedCreationEventResult} [seedCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3635,7 +3635,7 @@ export const ServerSignersApiFp = function(configuration?: Configuration) { * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SignatureCreationEventResult} [signatureCreationEventResult] + * @param {SignatureCreationEventResult} [signatureCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3658,7 +3658,7 @@ export const ServerSignersApiFactory = function (configuration?: Configuration, /** * Create a new Server-Signer * @summary Create a new Server-Signer - * @param {CreateServerSignerRequest} [createServerSignerRequest] + * @param {CreateServerSignerRequest} [createServerSignerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3702,7 +3702,7 @@ export const ServerSignersApiFactory = function (configuration?: Configuration, * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SeedCreationEventResult} [seedCreationEventResult] + * @param {SeedCreationEventResult} [seedCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3713,7 +3713,7 @@ export const ServerSignersApiFactory = function (configuration?: Configuration, * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SignatureCreationEventResult} [signatureCreationEventResult] + * @param {SignatureCreationEventResult} [signatureCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3732,7 +3732,7 @@ export interface ServerSignersApiInterface { /** * Create a new Server-Signer * @summary Create a new Server-Signer - * @param {CreateServerSignerRequest} [createServerSignerRequest] + * @param {CreateServerSignerRequest} [createServerSignerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ServerSignersApiInterface @@ -3776,7 +3776,7 @@ export interface ServerSignersApiInterface { * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SeedCreationEventResult} [seedCreationEventResult] + * @param {SeedCreationEventResult} [seedCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ServerSignersApiInterface @@ -3787,7 +3787,7 @@ export interface ServerSignersApiInterface { * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SignatureCreationEventResult} [signatureCreationEventResult] + * @param {SignatureCreationEventResult} [signatureCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ServerSignersApiInterface @@ -3806,7 +3806,7 @@ export class ServerSignersApi extends BaseAPI implements ServerSignersApiInterfa /** * Create a new Server-Signer * @summary Create a new Server-Signer - * @param {CreateServerSignerRequest} [createServerSignerRequest] + * @param {CreateServerSignerRequest} [createServerSignerRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ServerSignersApi @@ -3858,7 +3858,7 @@ export class ServerSignersApi extends BaseAPI implements ServerSignersApiInterfa * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SeedCreationEventResult} [seedCreationEventResult] + * @param {SeedCreationEventResult} [seedCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ServerSignersApi @@ -3871,7 +3871,7 @@ export class ServerSignersApi extends BaseAPI implements ServerSignersApiInterfa * Submit the result of a server signer event * @summary Submit the result of a server signer event * @param {string} serverSignerId The ID of the server signer to submit the event result for - * @param {SignatureCreationEventResult} [signatureCreationEventResult] + * @param {SignatureCreationEventResult} [signatureCreationEventResult] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ServerSignersApi @@ -3895,7 +3895,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the staking operation belongs to. * @param {string} stakingOperationId The ID of the staking operation to broadcast. - * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest + * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3924,7 +3924,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -3940,7 +3940,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration /** * Build a new staking operation * @summary Build a new staking operation - * @param {BuildStakingOperationRequest} buildStakingOperationRequest + * @param {BuildStakingOperationRequest} buildStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3960,7 +3960,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -3978,7 +3978,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration * @summary Create a new staking operation for an address * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to create the staking operation for. - * @param {CreateStakingOperationRequest} createStakingOperationRequest + * @param {CreateStakingOperationRequest} createStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4004,7 +4004,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -4020,7 +4020,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration /** * Fetch staking rewards for a list of addresses * @summary Fetch staking rewards - * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest + * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest * @param {number} [limit] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. * @param {string} [page] A cursor for pagination across multiple pages of results. Don\'t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. * @param {*} [options] Override http request option. @@ -4050,7 +4050,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration } - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -4095,7 +4095,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4108,7 +4108,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration /** * Get staking context for an address * @summary Get staking context - * @param {GetStakingContextRequest} getStakingContextRequest + * @param {GetStakingContextRequest} getStakingContextRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4128,7 +4128,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -4173,7 +4173,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4199,7 +4199,7 @@ export const StakeApiFp = function(configuration?: Configuration) { * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the staking operation belongs to. * @param {string} stakingOperationId The ID of the staking operation to broadcast. - * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest + * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4212,7 +4212,7 @@ export const StakeApiFp = function(configuration?: Configuration) { /** * Build a new staking operation * @summary Build a new staking operation - * @param {BuildStakingOperationRequest} buildStakingOperationRequest + * @param {BuildStakingOperationRequest} buildStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4227,7 +4227,7 @@ export const StakeApiFp = function(configuration?: Configuration) { * @summary Create a new staking operation for an address * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to create the staking operation for. - * @param {CreateStakingOperationRequest} createStakingOperationRequest + * @param {CreateStakingOperationRequest} createStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4240,7 +4240,7 @@ export const StakeApiFp = function(configuration?: Configuration) { /** * Fetch staking rewards for a list of addresses * @summary Fetch staking rewards - * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest + * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest * @param {number} [limit] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. * @param {string} [page] A cursor for pagination across multiple pages of results. Don\'t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. * @param {*} [options] Override http request option. @@ -4270,7 +4270,7 @@ export const StakeApiFp = function(configuration?: Configuration) { /** * Get staking context for an address * @summary Get staking context - * @param {GetStakingContextRequest} getStakingContextRequest + * @param {GetStakingContextRequest} getStakingContextRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4311,7 +4311,7 @@ export const StakeApiFactory = function (configuration?: Configuration, basePath * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the staking operation belongs to. * @param {string} stakingOperationId The ID of the staking operation to broadcast. - * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest + * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4321,7 +4321,7 @@ export const StakeApiFactory = function (configuration?: Configuration, basePath /** * Build a new staking operation * @summary Build a new staking operation - * @param {BuildStakingOperationRequest} buildStakingOperationRequest + * @param {BuildStakingOperationRequest} buildStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4333,7 +4333,7 @@ export const StakeApiFactory = function (configuration?: Configuration, basePath * @summary Create a new staking operation for an address * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to create the staking operation for. - * @param {CreateStakingOperationRequest} createStakingOperationRequest + * @param {CreateStakingOperationRequest} createStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4343,7 +4343,7 @@ export const StakeApiFactory = function (configuration?: Configuration, basePath /** * Fetch staking rewards for a list of addresses * @summary Fetch staking rewards - * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest + * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest * @param {number} [limit] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. * @param {string} [page] A cursor for pagination across multiple pages of results. Don\'t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. * @param {*} [options] Override http request option. @@ -4367,7 +4367,7 @@ export const StakeApiFactory = function (configuration?: Configuration, basePath /** * Get staking context for an address * @summary Get staking context - * @param {GetStakingContextRequest} getStakingContextRequest + * @param {GetStakingContextRequest} getStakingContextRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4401,7 +4401,7 @@ export interface StakeApiInterface { * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the staking operation belongs to. * @param {string} stakingOperationId The ID of the staking operation to broadcast. - * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest + * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakeApiInterface @@ -4411,7 +4411,7 @@ export interface StakeApiInterface { /** * Build a new staking operation * @summary Build a new staking operation - * @param {BuildStakingOperationRequest} buildStakingOperationRequest + * @param {BuildStakingOperationRequest} buildStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakeApiInterface @@ -4423,7 +4423,7 @@ export interface StakeApiInterface { * @summary Create a new staking operation for an address * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to create the staking operation for. - * @param {CreateStakingOperationRequest} createStakingOperationRequest + * @param {CreateStakingOperationRequest} createStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakeApiInterface @@ -4433,7 +4433,7 @@ export interface StakeApiInterface { /** * Fetch staking rewards for a list of addresses * @summary Fetch staking rewards - * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest + * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest * @param {number} [limit] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. * @param {string} [page] A cursor for pagination across multiple pages of results. Don\'t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. * @param {*} [options] Override http request option. @@ -4457,7 +4457,7 @@ export interface StakeApiInterface { /** * Get staking context for an address * @summary Get staking context - * @param {GetStakingContextRequest} getStakingContextRequest + * @param {GetStakingContextRequest} getStakingContextRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakeApiInterface @@ -4491,7 +4491,7 @@ export class StakeApi extends BaseAPI implements StakeApiInterface { * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the staking operation belongs to. * @param {string} stakingOperationId The ID of the staking operation to broadcast. - * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest + * @param {BroadcastStakingOperationRequest} broadcastStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakeApi @@ -4503,7 +4503,7 @@ export class StakeApi extends BaseAPI implements StakeApiInterface { /** * Build a new staking operation * @summary Build a new staking operation - * @param {BuildStakingOperationRequest} buildStakingOperationRequest + * @param {BuildStakingOperationRequest} buildStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakeApi @@ -4517,7 +4517,7 @@ export class StakeApi extends BaseAPI implements StakeApiInterface { * @summary Create a new staking operation for an address * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to create the staking operation for. - * @param {CreateStakingOperationRequest} createStakingOperationRequest + * @param {CreateStakingOperationRequest} createStakingOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakeApi @@ -4529,7 +4529,7 @@ export class StakeApi extends BaseAPI implements StakeApiInterface { /** * Fetch staking rewards for a list of addresses * @summary Fetch staking rewards - * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest + * @param {FetchStakingRewardsRequest} fetchStakingRewardsRequest * @param {number} [limit] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. * @param {string} [page] A cursor for pagination across multiple pages of results. Don\'t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. * @param {*} [options] Override http request option. @@ -4557,7 +4557,7 @@ export class StakeApi extends BaseAPI implements StakeApiInterface { /** * Get staking context for an address * @summary Get staking context - * @param {GetStakingContextRequest} getStakingContextRequest + * @param {GetStakingContextRequest} getStakingContextRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof StakeApi @@ -4595,7 +4595,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the trade belongs to * @param {string} tradeId The ID of the trade to broadcast - * @param {BroadcastTradeRequest} broadcastTradeRequest + * @param {BroadcastTradeRequest} broadcastTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4624,7 +4624,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -4642,7 +4642,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio * @summary Create a new trade for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to conduct the trade from - * @param {CreateTradeRequest} createTradeRequest + * @param {CreateTradeRequest} createTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4668,7 +4668,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -4713,7 +4713,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4761,7 +4761,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4787,7 +4787,7 @@ export const TradesApiFp = function(configuration?: Configuration) { * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the trade belongs to * @param {string} tradeId The ID of the trade to broadcast - * @param {BroadcastTradeRequest} broadcastTradeRequest + * @param {BroadcastTradeRequest} broadcastTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4802,7 +4802,7 @@ export const TradesApiFp = function(configuration?: Configuration) { * @summary Create a new trade for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to conduct the trade from - * @param {CreateTradeRequest} createTradeRequest + * @param {CreateTradeRequest} createTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4859,7 +4859,7 @@ export const TradesApiFactory = function (configuration?: Configuration, basePat * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the trade belongs to * @param {string} tradeId The ID of the trade to broadcast - * @param {BroadcastTradeRequest} broadcastTradeRequest + * @param {BroadcastTradeRequest} broadcastTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4871,7 +4871,7 @@ export const TradesApiFactory = function (configuration?: Configuration, basePat * @summary Create a new trade for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to conduct the trade from - * @param {CreateTradeRequest} createTradeRequest + * @param {CreateTradeRequest} createTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4918,7 +4918,7 @@ export interface TradesApiInterface { * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the trade belongs to * @param {string} tradeId The ID of the trade to broadcast - * @param {BroadcastTradeRequest} broadcastTradeRequest + * @param {BroadcastTradeRequest} broadcastTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradesApiInterface @@ -4930,7 +4930,7 @@ export interface TradesApiInterface { * @summary Create a new trade for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to conduct the trade from - * @param {CreateTradeRequest} createTradeRequest + * @param {CreateTradeRequest} createTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradesApiInterface @@ -4977,7 +4977,7 @@ export class TradesApi extends BaseAPI implements TradesApiInterface { * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the trade belongs to * @param {string} tradeId The ID of the trade to broadcast - * @param {BroadcastTradeRequest} broadcastTradeRequest + * @param {BroadcastTradeRequest} broadcastTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradesApi @@ -4991,7 +4991,7 @@ export class TradesApi extends BaseAPI implements TradesApiInterface { * @summary Create a new trade for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to conduct the trade from - * @param {CreateTradeRequest} createTradeRequest + * @param {CreateTradeRequest} createTradeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TradesApi @@ -5044,7 +5044,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the transfer belongs to * @param {string} transferId The ID of the transfer to broadcast - * @param {BroadcastTransferRequest} broadcastTransferRequest + * @param {BroadcastTransferRequest} broadcastTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5073,7 +5073,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -5091,7 +5091,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura * @summary Create a new transfer for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to transfer from - * @param {CreateTransferRequest} createTransferRequest + * @param {CreateTransferRequest} createTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5117,7 +5117,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -5162,7 +5162,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5210,7 +5210,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5236,7 +5236,7 @@ export const TransfersApiFp = function(configuration?: Configuration) { * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the transfer belongs to * @param {string} transferId The ID of the transfer to broadcast - * @param {BroadcastTransferRequest} broadcastTransferRequest + * @param {BroadcastTransferRequest} broadcastTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5251,7 +5251,7 @@ export const TransfersApiFp = function(configuration?: Configuration) { * @summary Create a new transfer for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to transfer from - * @param {CreateTransferRequest} createTransferRequest + * @param {CreateTransferRequest} createTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5308,7 +5308,7 @@ export const TransfersApiFactory = function (configuration?: Configuration, base * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the transfer belongs to * @param {string} transferId The ID of the transfer to broadcast - * @param {BroadcastTransferRequest} broadcastTransferRequest + * @param {BroadcastTransferRequest} broadcastTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5320,7 +5320,7 @@ export const TransfersApiFactory = function (configuration?: Configuration, base * @summary Create a new transfer for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to transfer from - * @param {CreateTransferRequest} createTransferRequest + * @param {CreateTransferRequest} createTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5367,7 +5367,7 @@ export interface TransfersApiInterface { * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the transfer belongs to * @param {string} transferId The ID of the transfer to broadcast - * @param {BroadcastTransferRequest} broadcastTransferRequest + * @param {BroadcastTransferRequest} broadcastTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransfersApiInterface @@ -5379,7 +5379,7 @@ export interface TransfersApiInterface { * @summary Create a new transfer for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to transfer from - * @param {CreateTransferRequest} createTransferRequest + * @param {CreateTransferRequest} createTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransfersApiInterface @@ -5426,7 +5426,7 @@ export class TransfersApi extends BaseAPI implements TransfersApiInterface { * @param {string} walletId The ID of the wallet the address belongs to * @param {string} addressId The ID of the address the transfer belongs to * @param {string} transferId The ID of the transfer to broadcast - * @param {BroadcastTransferRequest} broadcastTransferRequest + * @param {BroadcastTransferRequest} broadcastTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransfersApi @@ -5440,7 +5440,7 @@ export class TransfersApi extends BaseAPI implements TransfersApiInterface { * @summary Create a new transfer for an address * @param {string} walletId The ID of the wallet the source address belongs to * @param {string} addressId The ID of the address to transfer from - * @param {CreateTransferRequest} createTransferRequest + * @param {CreateTransferRequest} createTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransfersApi @@ -5507,7 +5507,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5637,7 +5637,7 @@ export const ValidatorsApiAxiosParamCreator = function (configuration?: Configur const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5690,7 +5690,7 @@ export const ValidatorsApiAxiosParamCreator = function (configuration?: Configur } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5864,7 +5864,7 @@ export const WalletsApiAxiosParamCreator = function (configuration?: Configurati /** * Create a new wallet scoped to the user. * @summary Create a new wallet - * @param {CreateWalletRequest} [createWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5882,7 +5882,7 @@ export const WalletsApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -5919,7 +5919,7 @@ export const WalletsApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5957,7 +5957,7 @@ export const WalletsApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5991,7 +5991,7 @@ export const WalletsApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6031,7 +6031,7 @@ export const WalletsApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6054,7 +6054,7 @@ export const WalletsApiFp = function(configuration?: Configuration) { /** * Create a new wallet scoped to the user. * @summary Create a new wallet - * @param {CreateWalletRequest} [createWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6131,7 +6131,7 @@ export const WalletsApiFactory = function (configuration?: Configuration, basePa /** * Create a new wallet scoped to the user. * @summary Create a new wallet - * @param {CreateWalletRequest} [createWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6192,7 +6192,7 @@ export interface WalletsApiInterface { /** * Create a new wallet scoped to the user. * @summary Create a new wallet - * @param {CreateWalletRequest} [createWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WalletsApiInterface @@ -6253,7 +6253,7 @@ export class WalletsApi extends BaseAPI implements WalletsApiInterface { /** * Create a new wallet scoped to the user. * @summary Create a new wallet - * @param {CreateWalletRequest} [createWalletRequest] + * @param {CreateWalletRequest} [createWalletRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WalletsApi @@ -6324,7 +6324,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat /** * Create a new webhook * @summary Create a new webhook - * @param {CreateWebhookRequest} [createWebhookRequest] + * @param {CreateWebhookRequest} [createWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6342,7 +6342,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -6379,7 +6379,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6419,7 +6419,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6433,7 +6433,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat * Update a webhook * @summary Update a webhook * @param {string} webhookId The Webhook id that needs to be updated - * @param {UpdateWebhookRequest} [updateWebhookRequest] + * @param {UpdateWebhookRequest} [updateWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6454,7 +6454,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -6480,7 +6480,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { /** * Create a new webhook * @summary Create a new webhook - * @param {CreateWebhookRequest} [createWebhookRequest] + * @param {CreateWebhookRequest} [createWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6521,7 +6521,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { * Update a webhook * @summary Update a webhook * @param {string} webhookId The Webhook id that needs to be updated - * @param {UpdateWebhookRequest} [updateWebhookRequest] + * @param {UpdateWebhookRequest} [updateWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6544,7 +6544,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP /** * Create a new webhook * @summary Create a new webhook - * @param {CreateWebhookRequest} [createWebhookRequest] + * @param {CreateWebhookRequest} [createWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6576,7 +6576,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP * Update a webhook * @summary Update a webhook * @param {string} webhookId The Webhook id that needs to be updated - * @param {UpdateWebhookRequest} [updateWebhookRequest] + * @param {UpdateWebhookRequest} [updateWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6595,7 +6595,7 @@ export interface WebhooksApiInterface { /** * Create a new webhook * @summary Create a new webhook - * @param {CreateWebhookRequest} [createWebhookRequest] + * @param {CreateWebhookRequest} [createWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApiInterface @@ -6627,7 +6627,7 @@ export interface WebhooksApiInterface { * Update a webhook * @summary Update a webhook * @param {string} webhookId The Webhook id that needs to be updated - * @param {UpdateWebhookRequest} [updateWebhookRequest] + * @param {UpdateWebhookRequest} [updateWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApiInterface @@ -6646,7 +6646,7 @@ export class WebhooksApi extends BaseAPI implements WebhooksApiInterface { /** * Create a new webhook * @summary Create a new webhook - * @param {CreateWebhookRequest} [createWebhookRequest] + * @param {CreateWebhookRequest} [createWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi @@ -6684,7 +6684,7 @@ export class WebhooksApi extends BaseAPI implements WebhooksApiInterface { * Update a webhook * @summary Update a webhook * @param {string} webhookId The Webhook id that needs to be updated - * @param {UpdateWebhookRequest} [updateWebhookRequest] + * @param {UpdateWebhookRequest} [updateWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi diff --git a/src/client/common.ts b/src/client/common.ts index 179ba101..ed8926ba 100644 --- a/src/client/common.ts +++ b/src/client/common.ts @@ -89,17 +89,17 @@ function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: an if (typeof parameter === "object") { if (Array.isArray(parameter)) { (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); - } + } else { - Object.keys(parameter).forEach(currentKey => + Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) ); } - } + } else { if (urlSearchParams.has(key)) { urlSearchParams.append(key, parameter); - } + } else { urlSearchParams.set(key, parameter); } diff --git a/src/coinbase/address.ts b/src/coinbase/address.ts index e28a4804..4a9df4fe 100644 --- a/src/coinbase/address.ts +++ b/src/coinbase/address.ts @@ -4,6 +4,7 @@ import { Asset } from "./asset"; import { Balance } from "./balance"; import { BalanceMap } from "./balance_map"; import { FaucetTransaction } from "./faucet_transaction"; +import { HistoricalBalance } from "./historical_balance"; import { Amount, StakeOptionsMode } from "./types"; import { formatDate, getWeekBackDate } from "./utils"; import { StakingRewardFormat } from "../client"; @@ -79,6 +80,64 @@ export class Address { return Balance.fromModelAndAssetId(response.data, assetId).amount; } + /** + * Returns the historical balance of the provided asset. + * + * @param assetId - The asset ID. + * @param limit - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + * @param page - A cursor for pagination across multiple pages of results. Don\'t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. + * @returns The list of historical balance of the asset and next page token. + */ + public async listHistoricalBalance( + assetId: string, + limit?: number, + page?: string, + ): Promise<[HistoricalBalance[], string]> { + const historyList: HistoricalBalance[] = []; + + if (limit !== undefined) { + const response = await Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance( + this.getNetworkId(), + this.getId(), + Asset.primaryDenomination(assetId), + limit, + page ? page : undefined, + ); + response.data.data.forEach(historicalBalanceModel => { + const historicalBalance = HistoricalBalance.fromModel(historicalBalanceModel); + historyList.push(historicalBalance); + }); + + return [historyList, response.data.next_page]; + } + + const queue: string[] = [""]; + + while (queue.length > 0) { + const page = queue.shift(); + const response = await Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance( + this.getNetworkId(), + this.getId(), + Asset.primaryDenomination(assetId), + 100, + page ? page : undefined, + ); + + response.data.data.forEach(historicalBalanceModel => { + const historicalBalance = HistoricalBalance.fromModel(historicalBalanceModel); + historyList.push(historicalBalance); + }); + + if (response.data.has_more) { + if (response.data.next_page) { + queue.push(response.data.next_page); + } + } + } + + return [historyList, ""]; + } + /** * Lists the staking rewards for the address. * diff --git a/src/coinbase/historical_balance.ts b/src/coinbase/historical_balance.ts new file mode 100644 index 00000000..4ae69f36 --- /dev/null +++ b/src/coinbase/historical_balance.ts @@ -0,0 +1,44 @@ +import Decimal from "decimal.js"; +import { HistoricalBalance as HistoricalBalanceModel } from "../client"; +import { Asset } from "./asset"; + +/** A representation of historical balance. */ +export class HistoricalBalance { + public readonly amount: Decimal; + public readonly blockHash: string; + public readonly blockHeight: Decimal; + public readonly asset: Asset; + + /** + * Private constructor to prevent direct instantiation outside of the factory methods. + * + * @ignore + * @param {Decimal} amount - The amount of the balance. + * @param {Decimal} blockHeight - The block height at which the balance was recorded. + * @param {string} blockHash - The block hash at which the balance was recorded + * @param {string} asset - The asset we want to fetch. + * @hideconstructor + */ + private constructor(amount: Decimal, blockHeight: Decimal, blockHash: string, asset: Asset) { + this.amount = amount; + this.blockHeight = blockHeight; + this.blockHash = blockHash; + this.asset = asset; + } + + /** + * Converts a BalanceModel into a Balance object. + * + * @param {HistoricalBalanceModel} model - The historical balance model object. + * @returns {HistoricalBalance} The HistoricalBalance object. + */ + public static fromModel(model: HistoricalBalanceModel): HistoricalBalance { + const asset = Asset.fromModel(model.asset); + return new HistoricalBalance( + asset.fromAtomicAmount(new Decimal(model.amount)), + new Decimal(model.block_height), + model.block_hash, + asset, + ); + } +} diff --git a/src/coinbase/types.ts b/src/coinbase/types.ts index eb4c59f7..b6eb90f0 100644 --- a/src/coinbase/types.ts +++ b/src/coinbase/types.ts @@ -9,6 +9,7 @@ import { CreateWalletRequest, BroadcastTransferRequest, CreateTransferRequest, + AddressHistoricalBalanceList, TransferList, User as UserModel, Wallet as WalletModel, @@ -318,6 +319,27 @@ export type ExternalAddressAPIClient = { options?: RawAxiosRequestConfig, ): AxiosPromise; + /** + * List the historical balance of an asset in a specific address. + * + * @summary Get address balance history for asset + * @param networkId - The ID of the blockchain network + * @param addressId - The ID of the address to fetch the historical balance for. + * @param assetId - The symbol of the asset to fetch the historical balance for. + * @param limit - A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + * @param page - A cursor for pagination across multiple pages of results. Don\'t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results. + * @param options - Override http request option. + * @throws {RequiredError} + */ + listAddressHistoricalBalance( + networkId: string, + addressId: string, + assetId: string, + limit?: number, + page?: string, + options?: RawAxiosRequestConfig, + ): AxiosPromise; + /** * Get the balance of an asset in an external address * diff --git a/src/tests/external_address_test.ts b/src/tests/external_address_test.ts index a3a7ff30..a438b3c8 100644 --- a/src/tests/external_address_test.ts +++ b/src/tests/external_address_test.ts @@ -15,6 +15,8 @@ import { import { AddressBalanceList, Balance, + AddressHistoricalBalanceList, + HistoricalBalance, FetchStakingRewards200Response, StakingContext as StakingContextModel, StakingOperation as StakingOperationModel, @@ -439,6 +441,113 @@ describe("ExternalAddress", () => { }); }); + describe(".listHistoricalBalance", () => { + beforeEach(() => { + const mockHistoricalBalanceResponse: AddressHistoricalBalanceList = { + data: [ + { + amount: "1000000", + block_hash: "0x0dadd465fb063ceb78babbb30abbc6bfc0730d0c57a53e8f6dc778dafcea568f", + block_height:"12345", + asset: { + asset_id: "usdc", + network_id: Coinbase.networks.EthereumHolesky, + decimals: 6, + }, + }, + { + amount: "5000000", + block_hash: "0x5c05a37dcb4910b22a775fc9480f8422d9d615ad7a6a0aa9d8778ff8cc300986", + block_height:"67890", + asset: { + asset_id: "usdc", + network_id: Coinbase.networks.EthereumHolesky, + decimals: 6, + }, + }, + ], + has_more: false, + next_page: "", + }; + Coinbase.apiClients.externalAddress = externalAddressApiMock; + Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance = + mockReturnValue(mockHistoricalBalanceResponse); + }); + + it("should return results with USDC historical balance", async () => { + const [history, nextPage] = await address.listHistoricalBalance(Coinbase.assets.Usdc); + expect(history.length).toEqual(2); + expect(history[0].amount).toEqual(new Decimal(1)); + expect(history[1].amount).toEqual(new Decimal(5)); + expect( + Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance, + ).toHaveBeenCalledTimes(1); + expect(Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance).toHaveBeenCalledWith( + address.getNetworkId(), + address.getId(), + Coinbase.assets.Usdc, + 100, + undefined, + ); + expect(nextPage).toEqual("") + }); + + it("should return empty if no historical balance found", async () => { + Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance = mockReturnValue({ + data: [], + has_more: false, + next_page: "", + }); + const [history, nextPage] = await address.listHistoricalBalance(Coinbase.assets.Usdc); + expect(history.length).toEqual(0); + expect( + Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance, + ).toHaveBeenCalledTimes(1); + expect(Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance).toHaveBeenCalledWith( + address.getNetworkId(), + address.getId(), + Coinbase.assets.Usdc, + 100, + undefined, + ); + expect(nextPage).toEqual("") + }); + + it("should return results with USDC historical balance and next page", async () => { + Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance = mockReturnValue({ + data: [ + { + amount: "5000000", + block_hash: "0x5c05a37dcb4910b22a775fc9480f8422d9d615ad7a6a0aa9d8778ff8cc300986", + block_height:"67890", + asset: { + asset_id: "usdc", + network_id: Coinbase.networks.EthereumHolesky, + decimals: 6, + }, + }, + ], + has_more: true, + next_page: "next page", + }); + + const [history, nextPage] = await address.listHistoricalBalance(Coinbase.assets.Usdc, 1); + expect(history.length).toEqual(1); + expect(history[0].amount).toEqual(new Decimal(5)); + expect( + Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance, + ).toHaveBeenCalledTimes(1); + expect(Coinbase.apiClients.externalAddress!.listAddressHistoricalBalance).toHaveBeenCalledWith( + address.getNetworkId(), + address.getId(), + Coinbase.assets.Usdc, + 1, + undefined, + ); + expect(nextPage).toEqual("next page") + }); + }); + describe(".getBalance", () => { beforeEach(() => { const mockWalletBalance: Balance = { diff --git a/src/tests/historical_balance_test.ts b/src/tests/historical_balance_test.ts new file mode 100644 index 00000000..35bf98ff --- /dev/null +++ b/src/tests/historical_balance_test.ts @@ -0,0 +1,31 @@ +import { HistoricalBalance } from "../coinbase/historical_balance"; +import { HistoricalBalance as HistoricalBalanceModel } from "../client"; +import { Decimal } from "decimal.js"; +import { Coinbase } from "../coinbase/coinbase"; + +describe("HistoricalBalance", () => { + describe("#fromModel", () => { + const amount = new Decimal(1); + const historyModel: HistoricalBalanceModel = { + amount: "1000000000000000000", + block_hash: "0x0dadd465fb063ceb78babbb30abbc6bfc0730d0c57a53e8f6dc778dafcea568f", + block_height: "11349306", + asset: { + asset_id: Coinbase.assets.Eth, + network_id: Coinbase.networks.BaseSepolia, + decimals: 18, + contract_address: "0x", + }, + }; + + const historicalBalance = HistoricalBalance.fromModel(historyModel); + + it("returns a new Balance object with the correct amount", () => { + expect(historicalBalance.amount).toEqual(amount); + }); + + it("returns a new Balance object with the correct asset_id", () => { + expect(historicalBalance.asset.assetId).toBe(Coinbase.assets.Eth); + }); + }); +}); diff --git a/src/tests/utils.ts b/src/tests/utils.ts index 95737bf4..cb63e7f1 100644 --- a/src/tests/utils.ts +++ b/src/tests/utils.ts @@ -433,6 +433,7 @@ export const externalAddressApiMock = { listExternalAddressBalances: jest.fn(), getExternalAddressBalance: jest.fn(), requestExternalFaucetFunds: jest.fn(), + listAddressHistoricalBalance: jest.fn(), }; export const serverSignersApiMock = { diff --git a/yarn.lock b/yarn.lock index 14e41233..1b4702b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3505,4 +3505,4 @@ yn@3.1.1: yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== \ No newline at end of file