diff --git a/src/client/api.ts b/src/client/api.ts index b390a1ab..2954b06e 100644 --- a/src/client/api.ts +++ b/src/client/api.ts @@ -113,31 +113,6 @@ export interface AddressHistoricalBalanceList { /** * * @export - * @interface AddressHistoricalBalanceList - */ -export interface AddressHistoricalBalanceList { - /** - * - * @type {Array} - * @memberof AddressHistoricalBalanceList - */ - 'data': Array; - /** - * True if this list has another page of items after this one that can be fetched. - * @type {boolean} - * @memberof AddressHistoricalBalanceList - */ - 'has_more': boolean; - /** - * The page token to be used to fetch the next page. - * @type {string} - * @memberof AddressHistoricalBalanceList - */ - 'next_page': string; -} -/** - * - * @export * @interface AddressList */ export interface AddressList { @@ -832,11 +807,7 @@ export interface HistoricalBalance { */ 'block_height': string; /** -<<<<<<< HEAD * -======= - * ->>>>>>> d0b08ae9e1c2b4c289fcc76952dd02d734648637 * @type {Asset} * @memberof HistoricalBalance */ @@ -1322,7 +1293,7 @@ export interface StakingReward { */ 'format': StakingRewardFormat; /** - * + * * @type {StakingRewardUSDValue} * @memberof StakingReward */ @@ -3000,58 +2971,6 @@ export const ExternalAddressesApiAxiosParamCreator = function (configuration?: C - setSearchParams(localVarUrlObj, localVarQueryParameter); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * List the historical balance of an asset in a specific address. - * @summary Get address balance history for asset - * @param {string} networkId The ID of the blockchain network - * @param {string} addressId The ID of the address to fetch the historical balance for. - * @param {string} assetId The symbol of the asset to fetch the historical balance for. - * @param {number} [limit] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - * @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. - * @throws {RequiredError} - */ - listAddressHistoricalBalance: async (networkId: string, addressId: string, assetId: string, limit?: number, page?: string, options: RawAxiosRequestConfig = {}): Promise => { - // verify required parameter 'networkId' is not null or undefined - assertParamExists('listAddressHistoricalBalance', 'networkId', networkId) - // verify required parameter 'addressId' is not null or undefined - assertParamExists('listAddressHistoricalBalance', 'addressId', addressId) - // verify required parameter 'assetId' is not null or undefined - assertParamExists('listAddressHistoricalBalance', 'assetId', assetId) - const localVarPath = `/v1/networks/{network_id}/addresses/{address_id}/balance_history/{asset_id}` - .replace(`{${"network_id"}}`, encodeURIComponent(String(networkId))) - .replace(`{${"address_id"}}`, encodeURIComponent(String(addressId))) - .replace(`{${"asset_id"}}`, encodeURIComponent(String(assetId))); - // 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}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - - setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; diff --git a/src/coinbase/historical_balance.ts b/src/coinbase/historical_balance.ts index b3a3d733..464d3389 100644 --- a/src/coinbase/historical_balance.ts +++ b/src/coinbase/historical_balance.ts @@ -2,7 +2,7 @@ import Decimal from "decimal.js"; import { HistoricalBalance as HistoricalBalanceModel } from "../client"; import { Asset } from "./asset"; -/** A representation of a balance. */ +/** A representation of historical balance. */ export class HistoricalBalance { public readonly amount: Decimal; public readonly blockHash: string; @@ -15,6 +15,8 @@ export class HistoricalBalance { * @ignore * @param {Decimal} amount - The amount of the balance. * @param {string} assetId - The asset ID. + * @param {Decimal} blockHeight - The block height at which the balance was recorded. + * @param {string} blockHash - The block hash at which the balance was recorded * @hideconstructor */ private constructor(amount: Decimal, blockHeight: Decimal, blockHash: string, asset: Asset) { diff --git a/src/coinbase/types.ts b/src/coinbase/types.ts index 8a702f19..b6eb90f0 100644 --- a/src/coinbase/types.ts +++ b/src/coinbase/types.ts @@ -321,13 +321,14 @@ export type ExternalAddressAPIClient = { /** * List the historical balance of an asset in a specific address. + * * @summary Get address balance history for asset - * @param {string} networkId The ID of the blockchain network - * @param {string} addressId The ID of the address to fetch the historical balance for. - * @param {string} assetId The symbol of the asset to fetch the historical balance for. - * @param {number} [limit] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. - * @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. + * @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(