diff --git a/CHANGELOG.md b/CHANGELOG.md index cb56a6de..2535ddc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Added - Add `rlp_encoded_tx` field to `EthereumTransaction` interface +- Added create and update feature for `SmartContractEventActivity` webhook and its related event type filter. ## [0.10.0] - 2024-10-31 diff --git a/src/client/api.ts b/src/client/api.ts index 35961ae9..9735beff 100644 --- a/src/client/api.ts +++ b/src/client/api.ts @@ -5,7 +5,7 @@ * This is the OpenAPI 3.0 specification for the Coinbase Platform APIs, used in conjunction with the Coinbase Platform SDKs. * * The version of the OpenAPI document: 0.0.1-alpha - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -24,7 +24,7 @@ import type { RequestArgs } from './base'; import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** - * + * * @export * @interface Address */ @@ -61,13 +61,13 @@ export interface Address { 'index': number; } /** - * + * * @export * @interface AddressBalanceList */ export interface AddressBalanceList { /** - * + * * @type {Array} * @memberof AddressBalanceList */ @@ -92,13 +92,13 @@ export interface AddressBalanceList { 'total_count': number; } /** - * + * * @export * @interface AddressHistoricalBalanceList */ export interface AddressHistoricalBalanceList { /** - * + * * @type {Array} * @memberof AddressHistoricalBalanceList */ @@ -117,13 +117,13 @@ export interface AddressHistoricalBalanceList { 'next_page': string; } /** - * + * * @export * @interface AddressList */ export interface AddressList { /** - * + * * @type {Array
} * @memberof AddressList */ @@ -160,7 +160,7 @@ export interface AddressReputation { */ 'reputation_score': number; /** - * + * * @type {AddressReputationMetadata} * @memberof AddressReputation */ @@ -247,13 +247,13 @@ export interface AddressRisk { 'risk_score': number; } /** - * + * * @export * @interface AddressTransactionList */ export interface AddressTransactionList { /** - * + * * @type {Array} * @memberof AddressTransactionList */ @@ -315,14 +315,14 @@ export interface Balance { */ 'amount': string; /** - * + * * @type {Asset} * @memberof Balance */ 'asset': Asset; } /** - * + * * @export * @interface BroadcastContractInvocationRequest */ @@ -335,7 +335,7 @@ export interface BroadcastContractInvocationRequest { 'signed_payload': string; } /** - * + * * @export * @interface BroadcastStakingOperationRequest */ @@ -354,7 +354,7 @@ export interface BroadcastStakingOperationRequest { 'transaction_index': number; } /** - * + * * @export * @interface BroadcastTradeRequest */ @@ -373,7 +373,7 @@ export interface BroadcastTradeRequest { 'approve_transaction_signed_payload'?: string; } /** - * + * * @export * @interface BroadcastTransferRequest */ @@ -386,7 +386,7 @@ export interface BroadcastTransferRequest { 'signed_payload': string; } /** - * + * * @export * @interface BuildStakingOperationRequest */ @@ -593,20 +593,20 @@ export interface ContractInvocation { */ 'amount': string; /** - * + * * @type {Transaction} * @memberof ContractInvocation */ 'transaction': Transaction; } /** - * + * * @export * @interface ContractInvocationList */ export interface ContractInvocationList { /** - * + * * @type {Array} * @memberof ContractInvocationList */ @@ -631,7 +631,7 @@ export interface ContractInvocationList { 'total_count': number; } /** - * + * * @export * @interface CreateAddressRequest */ @@ -656,7 +656,7 @@ export interface CreateAddressRequest { 'address_index'?: number; } /** - * + * * @export * @interface CreateContractInvocationRequest */ @@ -693,7 +693,7 @@ export interface CreateContractInvocationRequest { 'amount'?: string; } /** - * + * * @export * @interface CreateFundOperationRequest */ @@ -718,7 +718,7 @@ export interface CreateFundOperationRequest { 'fund_quote_id'?: string; } /** - * + * * @export * @interface CreateFundQuoteRequest */ @@ -737,7 +737,7 @@ export interface CreateFundQuoteRequest { 'asset_id': string; } /** - * + * * @export * @interface CreatePayloadSignatureRequest */ @@ -756,7 +756,7 @@ export interface CreatePayloadSignatureRequest { 'signature'?: string; } /** - * + * * @export * @interface CreateServerSignerRequest */ @@ -781,19 +781,19 @@ export interface CreateServerSignerRequest { 'is_mpc': boolean; } /** - * + * * @export * @interface CreateSmartContractRequest */ export interface CreateSmartContractRequest { /** - * + * * @type {SmartContractType} * @memberof CreateSmartContractRequest */ 'type': SmartContractType; /** - * + * * @type {SmartContractOptions} * @memberof CreateSmartContractRequest */ @@ -802,7 +802,7 @@ export interface CreateSmartContractRequest { /** - * + * * @export * @interface CreateStakingOperationRequest */ @@ -833,7 +833,7 @@ export interface CreateStakingOperationRequest { 'options': { [key: string]: string; }; } /** - * + * * @export * @interface CreateTradeRequest */ @@ -858,7 +858,7 @@ export interface CreateTradeRequest { 'to_asset_id': string; } /** - * + * * @export * @interface CreateTransferRequest */ @@ -895,13 +895,13 @@ export interface CreateTransferRequest { 'gasless'?: boolean; } /** - * + * * @export * @interface CreateWalletRequest */ export interface CreateWalletRequest { /** - * + * * @type {CreateWalletRequestWallet} * @memberof CreateWalletRequest */ @@ -927,7 +927,7 @@ export interface CreateWalletRequestWallet { 'use_server_signer'?: boolean; } /** - * + * * @export * @interface CreateWalletWebhookRequest */ @@ -946,7 +946,7 @@ export interface CreateWalletWebhookRequest { 'signature_header'?: string; } /** - * + * * @export * @interface CreateWebhookRequest */ @@ -958,13 +958,13 @@ export interface CreateWebhookRequest { */ 'network_id': string; /** - * + * * @type {WebhookEventType} * @memberof CreateWebhookRequest */ 'event_type': WebhookEventType; /** - * + * * @type {WebhookEventTypeFilter} * @memberof CreateWebhookRequest */ @@ -1003,14 +1003,14 @@ export interface CryptoAmount { */ 'amount': string; /** - * + * * @type {Asset} * @memberof CryptoAmount */ 'asset': Asset; } /** - * + * * @export * @interface DeploySmartContractRequest */ @@ -1193,25 +1193,25 @@ export interface ERC721TransferEvent { 'tokenId'?: string; } /** - * + * * @export * @interface EthereumTokenTransfer */ export interface EthereumTokenTransfer { /** - * + * * @type {string} * @memberof EthereumTokenTransfer */ 'contract_address': string; /** - * + * * @type {string} * @memberof EthereumTokenTransfer */ 'from_address': string; /** - * + * * @type {string} * @memberof EthereumTokenTransfer */ @@ -1229,13 +1229,13 @@ export interface EthereumTokenTransfer { */ 'token_id'?: string; /** - * + * * @type {number} * @memberof EthereumTokenTransfer */ 'log_index': number; /** - * + * * @type {TokenTransferType} * @memberof EthereumTokenTransfer */ @@ -1244,7 +1244,7 @@ export interface EthereumTokenTransfer { /** - * + * * @export * @interface EthereumTransaction */ @@ -1328,19 +1328,19 @@ export interface EthereumTransaction { */ 'priority_fee_per_gas'?: number; /** - * + * * @type {EthereumTransactionAccessList} * @memberof EthereumTransaction */ 'transaction_access_list'?: EthereumTransactionAccessList; /** - * + * * @type {Array} * @memberof EthereumTransaction */ 'token_transfers'?: Array; /** - * + * * @type {Array} * @memberof EthereumTransaction */ @@ -1357,161 +1357,155 @@ export interface EthereumTransaction { * @memberof EthereumTransaction */ 'mint'?: string; - /** - * RLP encoded transaction as a hex string (prefixed with 0x) for native compatibility with popular eth clients such as etherjs, viem etc. - * @type {string} - * @memberof EthereumTransaction - */ - 'rlp_encoded_tx'?: string; } /** - * + * * @export * @interface EthereumTransactionAccess */ export interface EthereumTransactionAccess { /** - * + * * @type {string} * @memberof EthereumTransactionAccess */ 'address'?: string; /** - * + * * @type {Array} * @memberof EthereumTransactionAccess */ 'storage_keys'?: Array; } /** - * + * * @export * @interface EthereumTransactionAccessList */ export interface EthereumTransactionAccessList { /** - * + * * @type {Array} * @memberof EthereumTransactionAccessList */ 'access_list'?: Array; } /** - * + * * @export * @interface EthereumTransactionFlattenedTrace */ export interface EthereumTransactionFlattenedTrace { /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'error'?: string; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'type'?: string; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'from'?: string; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'to'?: string; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'value'?: string; /** - * + * * @type {number} * @memberof EthereumTransactionFlattenedTrace */ 'gas'?: number; /** - * + * * @type {number} * @memberof EthereumTransactionFlattenedTrace */ 'gas_used'?: number; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'input'?: string; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'output'?: string; /** - * + * * @type {number} * @memberof EthereumTransactionFlattenedTrace */ 'sub_traces'?: number; /** - * + * * @type {Array} * @memberof EthereumTransactionFlattenedTrace */ 'trace_address'?: Array; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'trace_type'?: string; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'call_type'?: string; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'trace_id'?: string; /** - * + * * @type {number} * @memberof EthereumTransactionFlattenedTrace */ 'status'?: number; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'block_hash'?: string; /** - * + * * @type {number} * @memberof EthereumTransactionFlattenedTrace */ 'block_number'?: number; /** - * + * * @type {string} * @memberof EthereumTransactionFlattenedTrace */ 'transaction_hash'?: string; /** - * + * * @type {number} * @memberof EthereumTransactionFlattenedTrace */ @@ -1566,13 +1560,13 @@ export interface EthereumValidatorMetadata { */ 'withdrawableEpoch': string; /** - * + * * @type {Balance} * @memberof EthereumValidatorMetadata */ 'balance': Balance; /** - * + * * @type {Balance} * @memberof EthereumValidatorMetadata */ @@ -1597,14 +1591,14 @@ export interface FaucetTransaction { */ 'transaction_link': string; /** - * + * * @type {Transaction} * @memberof FaucetTransaction */ 'transaction': Transaction; } /** - * + * * @export * @interface FeatureSet */ @@ -1647,13 +1641,13 @@ export interface FeatureSet { 'gasless_send': boolean; } /** - * + * * @export * @interface FetchHistoricalStakingBalances200Response */ export interface FetchHistoricalStakingBalances200Response { /** - * + * * @type {Array} * @memberof FetchHistoricalStakingBalances200Response */ @@ -1672,13 +1666,13 @@ export interface FetchHistoricalStakingBalances200Response { 'next_page': string; } /** - * + * * @export * @interface FetchStakingRewards200Response */ export interface FetchStakingRewards200Response { /** - * + * * @type {Array} * @memberof FetchStakingRewards200Response */ @@ -1697,7 +1691,7 @@ export interface FetchStakingRewards200Response { 'next_page': string; } /** - * + * * @export * @interface FetchStakingRewardsRequest */ @@ -1733,7 +1727,7 @@ export interface FetchStakingRewardsRequest { */ 'end_time': string; /** - * + * * @type {StakingRewardFormat} * @memberof FetchStakingRewardsRequest */ @@ -1791,19 +1785,19 @@ export interface FundOperation { */ 'address_id': string; /** - * + * * @type {CryptoAmount} * @memberof FundOperation */ 'crypto_amount': CryptoAmount; /** - * + * * @type {FiatAmount} * @memberof FundOperation */ 'fiat_amount': FiatAmount; /** - * + * * @type {FundOperationFees} * @memberof FundOperation */ @@ -1831,13 +1825,13 @@ export type FundOperationStatusEnum = typeof FundOperationStatusEnum[keyof typeo */ export interface FundOperationFees { /** - * + * * @type {FiatAmount} * @memberof FundOperationFees */ 'buy_fee': FiatAmount; /** - * + * * @type {CryptoAmount} * @memberof FundOperationFees */ @@ -1850,7 +1844,7 @@ export interface FundOperationFees { */ export interface FundOperationList { /** - * + * * @type {Array} * @memberof FundOperationList */ @@ -1905,13 +1899,13 @@ export interface FundQuote { */ 'address_id': string; /** - * + * * @type {CryptoAmount} * @memberof FundQuote */ 'crypto_amount': CryptoAmount; /** - * + * * @type {FiatAmount} * @memberof FundQuote */ @@ -1923,14 +1917,14 @@ export interface FundQuote { */ 'expires_at': string; /** - * + * * @type {FundOperationFees} * @memberof FundQuote */ 'fees': FundOperationFees; } /** - * + * * @export * @interface GetStakingContextRequest */ @@ -1985,7 +1979,7 @@ export interface HistoricalBalance { */ 'block_height': string; /** - * + * * @type {Asset} * @memberof HistoricalBalance */ @@ -2055,13 +2049,13 @@ export interface NFTContractOptions { 'base_uri': string; } /** - * + * * @export * @interface Network */ export interface Network { /** - * + * * @type {NetworkIdentifier} * @memberof Network */ @@ -2091,13 +2085,13 @@ export interface Network { */ 'is_testnet': boolean; /** - * + * * @type {Asset} * @memberof Network */ 'native_asset': Asset; /** - * + * * @type {FeatureSet} * @memberof Network */ @@ -2288,13 +2282,13 @@ export const PayloadSignatureStatusEnum = { export type PayloadSignatureStatusEnum = typeof PayloadSignatureStatusEnum[keyof typeof PayloadSignatureStatusEnum]; /** - * + * * @export * @interface PayloadSignatureList */ export interface PayloadSignatureList { /** - * + * * @type {Array} * @memberof PayloadSignatureList */ @@ -2319,7 +2313,7 @@ export interface PayloadSignatureList { 'total_count': number; } /** - * + * * @export * @interface ReadContractRequest */ @@ -2431,7 +2425,7 @@ export interface ServerSignerEvent { */ 'server_signer_id': string; /** - * + * * @type {ServerSignerEventEvent} * @memberof ServerSignerEvent */ @@ -2444,13 +2438,13 @@ export interface ServerSignerEvent { export type ServerSignerEventEvent = SeedCreationEvent | SignatureCreationEvent; /** - * + * * @export * @interface ServerSignerEventList */ export interface ServerSignerEventList { /** - * + * * @type {Array} * @memberof ServerSignerEventList */ @@ -2475,13 +2469,13 @@ export interface ServerSignerEventList { 'total_count': number; } /** - * + * * @export * @interface ServerSignerList */ export interface ServerSignerList { /** - * + * * @type {Array} * @memberof ServerSignerList */ @@ -2548,7 +2542,7 @@ export interface SignatureCreationEvent { */ 'signing_payload': string; /** - * + * * @type {TransactionType} * @memberof SignatureCreationEvent */ @@ -2587,7 +2581,7 @@ export interface SignatureCreationEventResult { */ 'address_id': string; /** - * + * * @type {TransactionType} * @memberof SignatureCreationEventResult */ @@ -2669,13 +2663,13 @@ export interface SmartContract { */ 'deployer_address': string; /** - * + * * @type {SmartContractType} * @memberof SmartContract */ 'type': SmartContractType; /** - * + * * @type {SmartContractOptions} * @memberof SmartContract */ @@ -2687,7 +2681,7 @@ export interface SmartContract { */ 'abi': string; /** - * + * * @type {Transaction} * @memberof SmartContract */ @@ -2696,13 +2690,128 @@ export interface SmartContract { /** - * + * Represents an event triggered by a smart contract activity on the blockchain. Contains information about the function, transaction, block, and involved addresses. + * @export + * @interface SmartContractActivityEvent + */ +export interface SmartContractActivityEvent { + /** + * Unique identifier for the webhook that triggered this event. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'webhookId'?: string; + /** + * Type of event, in this case, an ERC-721 token transfer. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'eventType'?: string; + /** + * Blockchain network where the event occurred. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'network'?: string; + /** + * Name of the project this smart contract belongs to. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'projectName'?: string; + /** + * Name of the contract. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'contractName'?: string; + /** + * Name of the function. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'func'?: string; + /** + * Signature of the function. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'sig'?: string; + /** + * First 4 bytes of the Transaction, a unique ID. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'fourBytes'?: string; + /** + * Address of the smart contract. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'contractAddress'?: string; + /** + * Hash of the block containing the transaction. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'blockHash'?: string; + /** + * Number of the block containing the transaction. + * @type {number} + * @memberof SmartContractActivityEvent + */ + 'blockNumber'?: number; + /** + * Timestamp when the block was mined. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'blockTime'?: string; + /** + * Hash of the transaction that triggered the event. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'transactionHash'?: string; + /** + * Position of the transaction within the block. + * @type {number} + * @memberof SmartContractActivityEvent + */ + 'transactionIndex'?: number; + /** + * Position of the event log within the transaction. + * @type {number} + * @memberof SmartContractActivityEvent + */ + 'logIndex'?: number; + /** + * Address of the initiator in the transfer. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'from'?: string; + /** + * Address of the recipient in the transfer. + * @type {string} + * @memberof SmartContractActivityEvent + */ + 'to'?: string; + /** + * Amount of tokens transferred, typically in the smallest unit (e.g., wei for Ethereum). + * @type {number} + * @memberof SmartContractActivityEvent + */ + 'value'?: number; +} +/** + * * @export * @interface SmartContractList */ export interface SmartContractList { /** - * + * * @type {Array} * @memberof SmartContractList */ @@ -2743,13 +2852,13 @@ export type SmartContractType = typeof SmartContractType[keyof typeof SmartContr /** - * + * * @export * @interface SolidityValue */ export interface SolidityValue { /** - * + * * @type {string} * @memberof SolidityValue */ @@ -2911,13 +3020,13 @@ export interface StakingBalance { */ 'date': string; /** - * + * * @type {Balance} * @memberof StakingBalance */ 'bonded_stake': Balance; /** - * + * * @type {Balance} * @memberof StakingBalance */ @@ -2936,32 +3045,32 @@ export interface StakingBalance { */ export interface StakingContext { /** - * + * * @type {StakingContextContext} * @memberof StakingContext */ 'context': StakingContextContext; } /** - * + * * @export * @interface StakingContextContext */ export interface StakingContextContext { /** - * + * * @type {Balance} * @memberof StakingContextContext */ 'stakeable_balance': Balance; /** - * + * * @type {Balance} * @memberof StakingContextContext */ 'unstakeable_balance': Balance; /** - * + * * @type {Balance} * @memberof StakingContextContext */ @@ -3010,7 +3119,7 @@ export interface StakingOperation { */ 'transactions': Array; /** - * + * * @type {StakingOperationMetadata} * @memberof StakingOperation */ @@ -3063,13 +3172,13 @@ export interface StakingReward { */ 'state': StakingRewardStateEnum; /** - * + * * @type {StakingRewardFormat} * @memberof StakingReward */ 'format': StakingRewardFormat; /** - * + * * @type {StakingRewardUSDValue} * @memberof StakingReward */ @@ -3200,7 +3309,7 @@ export interface Trade { */ 'from_amount': string; /** - * + * * @type {Asset} * @memberof Trade */ @@ -3212,32 +3321,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 */ @@ -3328,7 +3437,7 @@ export interface Transaction { */ 'status': TransactionStatusEnum; /** - * + * * @type {TransactionContent} * @memberof Transaction */ @@ -3353,7 +3462,7 @@ export type TransactionStatusEnum = typeof TransactionStatusEnum[keyof typeof Tr export type TransactionContent = EthereumTransaction; /** - * + * * @export * @enum {string} */ @@ -3408,7 +3517,7 @@ export interface Transfer { */ 'asset_id': string; /** - * + * * @type {Asset} * @memberof Transfer */ @@ -3420,13 +3529,13 @@ export interface Transfer { */ 'transfer_id': string; /** - * + * * @type {Transaction} * @memberof Transfer */ 'transaction'?: Transaction; /** - * + * * @type {SponsoredSend} * @memberof Transfer */ @@ -3473,13 +3582,13 @@ export const TransferStatusEnum = { export type TransferStatusEnum = typeof TransferStatusEnum[keyof typeof TransferStatusEnum]; /** - * + * * @export * @interface TransferList */ export interface TransferList { /** - * + * * @type {Array} * @memberof TransferList */ @@ -3504,13 +3613,13 @@ export interface TransferList { 'total_count': number; } /** - * + * * @export * @interface UpdateWebhookRequest */ export interface UpdateWebhookRequest { /** - * + * * @type {WebhookEventTypeFilter} * @memberof UpdateWebhookRequest */ @@ -3529,7 +3638,7 @@ export interface UpdateWebhookRequest { 'notification_uri'?: string; } /** - * + * * @export * @interface User */ @@ -3541,7 +3650,7 @@ export interface User { */ 'id': string; /** - * + * * @type {string} * @memberof User */ @@ -3572,13 +3681,13 @@ export interface Validator { */ 'asset_id': string; /** - * + * * @type {ValidatorStatus} * @memberof Validator */ 'status': ValidatorStatus; /** - * + * * @type {ValidatorDetails} * @memberof Validator */ @@ -3593,13 +3702,13 @@ export interface Validator { export type ValidatorDetails = EthereumValidatorMetadata; /** - * + * * @export * @interface ValidatorList */ export interface ValidatorList { /** - * + * * @type {Array} * @memberof ValidatorList */ @@ -3643,7 +3752,7 @@ export type ValidatorStatus = typeof ValidatorStatus[keyof typeof ValidatorStatu /** - * + * * @export * @interface Wallet */ @@ -3661,13 +3770,13 @@ export interface Wallet { */ 'network_id': string; /** - * + * * @type {Address} * @memberof Wallet */ 'default_address'?: Address; /** - * + * * @type {FeatureSet} * @memberof Wallet */ @@ -3694,7 +3803,7 @@ export type WalletServerSignerStatusEnum = typeof WalletServerSignerStatusEnum[k */ export interface WalletList { /** - * + * * @type {Array} * @memberof WalletList */ @@ -3737,13 +3846,13 @@ export interface Webhook { */ 'network_id'?: string; /** - * + * * @type {WebhookEventType} * @memberof Webhook */ 'event_type'?: WebhookEventType; /** - * + * * @type {WebhookEventTypeFilter} * @memberof Webhook */ @@ -3807,7 +3916,7 @@ export interface WebhookEventFilter { 'to_address'?: string; } /** - * + * * @export * @enum {string} */ @@ -3816,7 +3925,8 @@ export const WebhookEventType = { Unspecified: 'unspecified', Erc20Transfer: 'erc20_transfer', Erc721Transfer: 'erc721_transfer', - WalletActivity: 'wallet_activity' + WalletActivity: 'wallet_activity', + SmartContractEventActivity: 'smart_contract_event_activity' } as const; export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType]; @@ -3827,16 +3937,16 @@ export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEvent * The event_type_filter parameter specifies the criteria to filter events based on event type. * @export */ -export type WebhookEventTypeFilter = WebhookWalletActivityFilter; +export type WebhookEventTypeFilter = WebhookSmartContractEventFilter | WebhookWalletActivityFilter; /** - * + * * @export * @interface WebhookList */ export interface WebhookList { /** - * + * * @type {Array} * @memberof WebhookList */ @@ -3855,7 +3965,20 @@ export interface WebhookList { 'next_page'?: string; } /** - * Filter for wallet activity events. This filter allows the client to specify one or more wallet addresses to monitor for activities such as transactions, transfers, or other types of events that are associated with the specified addresses. + * Filter for smart contract events. This filter allows the client to specify smart contract addresses to monitor for activities such as contract function calls. + * @export + * @interface WebhookSmartContractEventFilter + */ +export interface WebhookSmartContractEventFilter { + /** + * A list of smart contract addresses to filter on. + * @type {Array} + * @memberof WebhookSmartContractEventFilter + */ + 'contract_addresses': Array; +} +/** + * Filter for wallet activity events. This filter allows the client to specify one or more wallet addresses to monitor for activities such as transactions, transfers, or other types of events that are associated with the specified addresses. * @export * @interface WebhookWalletActivityFilter */ @@ -3884,7 +4007,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} */ @@ -3905,7 +4028,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -3923,7 +4046,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura * @summary Create a new payload signature. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address of the address to sign the payload with. - * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] + * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -3947,7 +4070,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -3988,7 +4111,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}; @@ -4030,7 +4153,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}; @@ -4072,7 +4195,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}; @@ -4115,7 +4238,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4159,7 +4282,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4207,7 +4330,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4251,7 +4374,7 @@ export const AddressesApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -4275,7 +4398,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} */ @@ -4290,7 +4413,7 @@ export const AddressesApiFp = function(configuration?: Configuration) { * @summary Create a new payload signature. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address of the address to sign the payload with. - * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] + * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4420,7 +4543,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} */ @@ -4432,7 +4555,7 @@ export const AddressesApiFactory = function (configuration?: Configuration, base * @summary Create a new payload signature. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address of the address to sign the payload with. - * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] + * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4537,7 +4660,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 @@ -4549,7 +4672,7 @@ export interface AddressesApiInterface { * @summary Create a new payload signature. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address of the address to sign the payload with. - * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] + * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AddressesApiInterface @@ -4654,7 +4777,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 @@ -4668,7 +4791,7 @@ export class AddressesApi extends BaseAPI implements AddressesApiInterface { * @summary Create a new payload signature. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address of the address to sign the payload with. - * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] + * @param {CreatePayloadSignatureRequest} [createPayloadSignatureRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AddressesApi @@ -4813,7 +4936,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}; @@ -4961,7 +5084,7 @@ export const BalanceHistoryApiAxiosParamCreator = function (configuration?: Conf } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5147,7 +5270,7 @@ export const ContractEventsApiAxiosParamCreator = function (configuration?: Conf } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5283,7 +5406,7 @@ export const ContractInvocationsApiAxiosParamCreator = function (configuration?: * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the contract invocation belongs to. * @param {string} contractInvocationId The ID of the contract invocation to broadcast. - * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest + * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5312,7 +5435,7 @@ export const ContractInvocationsApiAxiosParamCreator = function (configuration?: const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -5330,7 +5453,7 @@ export const ContractInvocationsApiAxiosParamCreator = function (configuration?: * @summary Create a new contract invocation 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 invoke the contract from. - * @param {CreateContractInvocationRequest} createContractInvocationRequest + * @param {CreateContractInvocationRequest} createContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5356,7 +5479,7 @@ export const ContractInvocationsApiAxiosParamCreator = function (configuration?: const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -5401,7 +5524,7 @@ export const ContractInvocationsApiAxiosParamCreator = function (configuration?: const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5449,7 +5572,7 @@ export const ContractInvocationsApiAxiosParamCreator = function (configuration?: } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5475,7 +5598,7 @@ export const ContractInvocationsApiFp = function(configuration?: Configuration) * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the contract invocation belongs to. * @param {string} contractInvocationId The ID of the contract invocation to broadcast. - * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest + * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5490,7 +5613,7 @@ export const ContractInvocationsApiFp = function(configuration?: Configuration) * @summary Create a new contract invocation 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 invoke the contract from. - * @param {CreateContractInvocationRequest} createContractInvocationRequest + * @param {CreateContractInvocationRequest} createContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5547,7 +5670,7 @@ export const ContractInvocationsApiFactory = function (configuration?: Configura * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the contract invocation belongs to. * @param {string} contractInvocationId The ID of the contract invocation to broadcast. - * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest + * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5559,7 +5682,7 @@ export const ContractInvocationsApiFactory = function (configuration?: Configura * @summary Create a new contract invocation 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 invoke the contract from. - * @param {CreateContractInvocationRequest} createContractInvocationRequest + * @param {CreateContractInvocationRequest} createContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -5606,7 +5729,7 @@ export interface ContractInvocationsApiInterface { * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the contract invocation belongs to. * @param {string} contractInvocationId The ID of the contract invocation to broadcast. - * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest + * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContractInvocationsApiInterface @@ -5618,7 +5741,7 @@ export interface ContractInvocationsApiInterface { * @summary Create a new contract invocation 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 invoke the contract from. - * @param {CreateContractInvocationRequest} createContractInvocationRequest + * @param {CreateContractInvocationRequest} createContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContractInvocationsApiInterface @@ -5665,7 +5788,7 @@ export class ContractInvocationsApi extends BaseAPI implements ContractInvocatio * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address the contract invocation belongs to. * @param {string} contractInvocationId The ID of the contract invocation to broadcast. - * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest + * @param {BroadcastContractInvocationRequest} broadcastContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContractInvocationsApi @@ -5679,7 +5802,7 @@ export class ContractInvocationsApi extends BaseAPI implements ContractInvocatio * @summary Create a new contract invocation 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 invoke the contract from. - * @param {CreateContractInvocationRequest} createContractInvocationRequest + * @param {CreateContractInvocationRequest} createContractInvocationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ContractInvocationsApi @@ -5758,7 +5881,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}; @@ -5800,7 +5923,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}; @@ -5843,7 +5966,7 @@ export const ExternalAddressesApiAxiosParamCreator = function (configuration?: C } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -5891,7 +6014,7 @@ export const ExternalAddressesApiAxiosParamCreator = function (configuration?: C } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6169,7 +6292,7 @@ export const FundApiAxiosParamCreator = function (configuration?: Configuration) * @summary Create a new fund operation. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundOperationRequest} createFundOperationRequest + * @param {CreateFundOperationRequest} createFundOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6195,7 +6318,7 @@ export const FundApiAxiosParamCreator = function (configuration?: Configuration) const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -6213,7 +6336,7 @@ export const FundApiAxiosParamCreator = function (configuration?: Configuration) * @summary Create a Fund Operation quote. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundQuoteRequest} createFundQuoteRequest + * @param {CreateFundQuoteRequest} createFundQuoteRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6239,7 +6362,7 @@ export const FundApiAxiosParamCreator = function (configuration?: Configuration) const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -6284,7 +6407,7 @@ export const FundApiAxiosParamCreator = function (configuration?: Configuration) const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6332,7 +6455,7 @@ export const FundApiAxiosParamCreator = function (configuration?: Configuration) } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6357,7 +6480,7 @@ export const FundApiFp = function(configuration?: Configuration) { * @summary Create a new fund operation. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundOperationRequest} createFundOperationRequest + * @param {CreateFundOperationRequest} createFundOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6372,7 +6495,7 @@ export const FundApiFp = function(configuration?: Configuration) { * @summary Create a Fund Operation quote. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundQuoteRequest} createFundQuoteRequest + * @param {CreateFundQuoteRequest} createFundQuoteRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6428,7 +6551,7 @@ export const FundApiFactory = function (configuration?: Configuration, basePath? * @summary Create a new fund operation. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundOperationRequest} createFundOperationRequest + * @param {CreateFundOperationRequest} createFundOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6440,7 +6563,7 @@ export const FundApiFactory = function (configuration?: Configuration, basePath? * @summary Create a Fund Operation quote. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundQuoteRequest} createFundQuoteRequest + * @param {CreateFundQuoteRequest} createFundQuoteRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -6486,7 +6609,7 @@ export interface FundApiInterface { * @summary Create a new fund operation. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundOperationRequest} createFundOperationRequest + * @param {CreateFundOperationRequest} createFundOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FundApiInterface @@ -6498,7 +6621,7 @@ export interface FundApiInterface { * @summary Create a Fund Operation quote. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundQuoteRequest} createFundQuoteRequest + * @param {CreateFundQuoteRequest} createFundQuoteRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FundApiInterface @@ -6529,6 +6652,7 @@ export interface FundApiInterface { * @memberof FundApiInterface */ listFundOperations(walletId: string, addressId: string, limit?: number, page?: string, options?: RawAxiosRequestConfig): AxiosPromise; + } /** @@ -6543,7 +6667,7 @@ export class FundApi extends BaseAPI implements FundApiInterface { * @summary Create a new fund operation. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundOperationRequest} createFundOperationRequest + * @param {CreateFundOperationRequest} createFundOperationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FundApi @@ -6557,7 +6681,7 @@ export class FundApi extends BaseAPI implements FundApiInterface { * @summary Create a Fund Operation quote. * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The onchain address to be funded. - * @param {CreateFundQuoteRequest} createFundQuoteRequest + * @param {CreateFundQuoteRequest} createFundQuoteRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof FundApi @@ -6610,7 +6734,7 @@ export const MPCWalletStakeApiAxiosParamCreator = function (configuration?: Conf * @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} */ @@ -6639,7 +6763,7 @@ export const MPCWalletStakeApiAxiosParamCreator = function (configuration?: Conf const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -6657,7 +6781,7 @@ export const MPCWalletStakeApiAxiosParamCreator = function (configuration?: Conf * @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} */ @@ -6683,7 +6807,7 @@ export const MPCWalletStakeApiAxiosParamCreator = function (configuration?: Conf const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -6728,7 +6852,7 @@ export const MPCWalletStakeApiAxiosParamCreator = function (configuration?: Conf const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -6754,7 +6878,7 @@ export const MPCWalletStakeApiFp = 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} */ @@ -6769,7 +6893,7 @@ export const MPCWalletStakeApiFp = 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} */ @@ -6810,7 +6934,7 @@ export const MPCWalletStakeApiFactory = 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} */ @@ -6822,7 +6946,7 @@ export const MPCWalletStakeApiFactory = 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} */ @@ -6856,7 +6980,7 @@ export interface MPCWalletStakeApiInterface { * @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 MPCWalletStakeApiInterface @@ -6868,7 +6992,7 @@ export interface MPCWalletStakeApiInterface { * @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 MPCWalletStakeApiInterface @@ -6902,7 +7026,7 @@ export class MPCWalletStakeApi extends BaseAPI implements MPCWalletStakeApiInter * @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 MPCWalletStakeApi @@ -6916,7 +7040,7 @@ export class MPCWalletStakeApi extends BaseAPI implements MPCWalletStakeApiInter * @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 MPCWalletStakeApi @@ -6972,7 +7096,7 @@ export const NetworksApiAxiosParamCreator = function (configuration?: Configurat const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -7117,7 +7241,7 @@ export const OnchainIdentityApiAxiosParamCreator = function (configuration?: Con } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -7271,7 +7395,7 @@ export const ReputationApiAxiosParamCreator = function (configuration?: Configur const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -7309,7 +7433,7 @@ export const ReputationApiAxiosParamCreator = function (configuration?: Configur const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -7467,7 +7591,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} */ @@ -7485,7 +7609,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -7522,7 +7646,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}; @@ -7567,7 +7691,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -7607,7 +7731,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -7621,7 +7745,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} */ @@ -7642,7 +7766,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -7659,7 +7783,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} */ @@ -7680,7 +7804,7 @@ export const ServerSignersApiAxiosParamCreator = function (configuration?: Confi const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -7706,7 +7830,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} */ @@ -7763,7 +7887,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} */ @@ -7777,7 +7901,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} */ @@ -7800,7 +7924,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} */ @@ -7845,7 +7969,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} */ @@ -7856,7 +7980,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} */ @@ -7875,7 +7999,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 @@ -7920,7 +8044,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 @@ -7931,7 +8055,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 @@ -7950,7 +8074,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 @@ -8003,7 +8127,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 @@ -8016,7 +8140,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 @@ -8039,7 +8163,7 @@ export const SmartContractsApiAxiosParamCreator = function (configuration?: Conf * @summary Create a new smart contract * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to deploy the smart contract from. - * @param {CreateSmartContractRequest} createSmartContractRequest + * @param {CreateSmartContractRequest} createSmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8065,7 +8189,7 @@ export const SmartContractsApiAxiosParamCreator = function (configuration?: Conf const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -8084,7 +8208,7 @@ export const SmartContractsApiAxiosParamCreator = function (configuration?: Conf * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to broadcast the transaction from. * @param {string} smartContractId The UUID of the smart contract to broadcast the transaction to. - * @param {DeploySmartContractRequest} deploySmartContractRequest + * @param {DeploySmartContractRequest} deploySmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8113,7 +8237,7 @@ export const SmartContractsApiAxiosParamCreator = function (configuration?: Conf const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -8158,7 +8282,7 @@ export const SmartContractsApiAxiosParamCreator = function (configuration?: Conf const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -8196,7 +8320,7 @@ export const SmartContractsApiAxiosParamCreator = function (configuration?: Conf const localVarQueryParameter = {} as any; - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -8209,9 +8333,9 @@ export const SmartContractsApiAxiosParamCreator = function (configuration?: Conf /** * Perform a read operation on a smart contract without creating a transaction * @summary Read data from a smart contract - * @param {string} networkId - * @param {string} contractAddress - * @param {ReadContractRequest} readContractRequest + * @param {string} networkId + * @param {string} contractAddress + * @param {ReadContractRequest} readContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8237,7 +8361,7 @@ export const SmartContractsApiAxiosParamCreator = function (configuration?: Conf const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -8265,7 +8389,7 @@ export const SmartContractsApiFp = function(configuration?: Configuration) { * @summary Create a new smart contract * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to deploy the smart contract from. - * @param {CreateSmartContractRequest} createSmartContractRequest + * @param {CreateSmartContractRequest} createSmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8281,7 +8405,7 @@ export const SmartContractsApiFp = function(configuration?: Configuration) { * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to broadcast the transaction from. * @param {string} smartContractId The UUID of the smart contract to broadcast the transaction to. - * @param {DeploySmartContractRequest} deploySmartContractRequest + * @param {DeploySmartContractRequest} deploySmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8323,9 +8447,9 @@ export const SmartContractsApiFp = function(configuration?: Configuration) { /** * Perform a read operation on a smart contract without creating a transaction * @summary Read data from a smart contract - * @param {string} networkId - * @param {string} contractAddress - * @param {ReadContractRequest} readContractRequest + * @param {string} networkId + * @param {string} contractAddress + * @param {ReadContractRequest} readContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8350,7 +8474,7 @@ export const SmartContractsApiFactory = function (configuration?: Configuration, * @summary Create a new smart contract * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to deploy the smart contract from. - * @param {CreateSmartContractRequest} createSmartContractRequest + * @param {CreateSmartContractRequest} createSmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8363,7 +8487,7 @@ export const SmartContractsApiFactory = function (configuration?: Configuration, * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to broadcast the transaction from. * @param {string} smartContractId The UUID of the smart contract to broadcast the transaction to. - * @param {DeploySmartContractRequest} deploySmartContractRequest + * @param {DeploySmartContractRequest} deploySmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8396,9 +8520,9 @@ export const SmartContractsApiFactory = function (configuration?: Configuration, /** * Perform a read operation on a smart contract without creating a transaction * @summary Read data from a smart contract - * @param {string} networkId - * @param {string} contractAddress - * @param {ReadContractRequest} readContractRequest + * @param {string} networkId + * @param {string} contractAddress + * @param {ReadContractRequest} readContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -8419,7 +8543,7 @@ export interface SmartContractsApiInterface { * @summary Create a new smart contract * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to deploy the smart contract from. - * @param {CreateSmartContractRequest} createSmartContractRequest + * @param {CreateSmartContractRequest} createSmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SmartContractsApiInterface @@ -8432,7 +8556,7 @@ export interface SmartContractsApiInterface { * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to broadcast the transaction from. * @param {string} smartContractId The UUID of the smart contract to broadcast the transaction to. - * @param {DeploySmartContractRequest} deploySmartContractRequest + * @param {DeploySmartContractRequest} deploySmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SmartContractsApiInterface @@ -8465,9 +8589,9 @@ export interface SmartContractsApiInterface { /** * Perform a read operation on a smart contract without creating a transaction * @summary Read data from a smart contract - * @param {string} networkId - * @param {string} contractAddress - * @param {ReadContractRequest} readContractRequest + * @param {string} networkId + * @param {string} contractAddress + * @param {ReadContractRequest} readContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SmartContractsApiInterface @@ -8488,7 +8612,7 @@ export class SmartContractsApi extends BaseAPI implements SmartContractsApiInter * @summary Create a new smart contract * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to deploy the smart contract from. - * @param {CreateSmartContractRequest} createSmartContractRequest + * @param {CreateSmartContractRequest} createSmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SmartContractsApi @@ -8503,7 +8627,7 @@ export class SmartContractsApi extends BaseAPI implements SmartContractsApiInter * @param {string} walletId The ID of the wallet the address belongs to. * @param {string} addressId The ID of the address to broadcast the transaction from. * @param {string} smartContractId The UUID of the smart contract to broadcast the transaction to. - * @param {DeploySmartContractRequest} deploySmartContractRequest + * @param {DeploySmartContractRequest} deploySmartContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SmartContractsApi @@ -8542,9 +8666,9 @@ export class SmartContractsApi extends BaseAPI implements SmartContractsApiInter /** * Perform a read operation on a smart contract without creating a transaction * @summary Read data from a smart contract - * @param {string} networkId - * @param {string} contractAddress - * @param {ReadContractRequest} readContractRequest + * @param {string} networkId + * @param {string} contractAddress + * @param {ReadContractRequest} readContractRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SmartContractsApi @@ -8565,7 +8689,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} */ @@ -8585,7 +8709,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -8661,7 +8785,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -8674,7 +8798,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. @@ -8704,7 +8828,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration } - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -8749,7 +8873,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}; @@ -8762,7 +8886,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} */ @@ -8782,7 +8906,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -8827,7 +8951,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}; @@ -8880,7 +9004,7 @@ export const StakeApiAxiosParamCreator = function (configuration?: Configuration } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -8903,7 +9027,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} */ @@ -8935,7 +9059,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. @@ -8965,7 +9089,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} */ @@ -9020,7 +9144,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} */ @@ -9046,7 +9170,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. @@ -9070,7 +9194,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} */ @@ -9115,7 +9239,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 @@ -9141,7 +9265,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. @@ -9165,7 +9289,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 @@ -9210,7 +9334,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 @@ -9240,7 +9364,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. @@ -9268,7 +9392,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 @@ -9322,7 +9446,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} */ @@ -9351,7 +9475,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -9369,7 +9493,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} */ @@ -9395,7 +9519,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -9440,7 +9564,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}; @@ -9488,7 +9612,7 @@ export const TradesApiAxiosParamCreator = function (configuration?: Configuratio } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -9514,7 +9638,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} */ @@ -9529,7 +9653,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} */ @@ -9586,7 +9710,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} */ @@ -9598,7 +9722,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} */ @@ -9645,7 +9769,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 @@ -9657,7 +9781,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 @@ -9704,7 +9828,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 @@ -9718,7 +9842,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 @@ -9803,7 +9927,7 @@ export const TransactionHistoryApiAxiosParamCreator = function (configuration?: } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -9923,7 +10047,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} */ @@ -9952,7 +10076,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -9970,7 +10094,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} */ @@ -9996,7 +10120,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -10041,7 +10165,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}; @@ -10089,7 +10213,7 @@ export const TransfersApiAxiosParamCreator = function (configuration?: Configura } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -10115,7 +10239,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} */ @@ -10130,7 +10254,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} */ @@ -10187,7 +10311,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} */ @@ -10199,7 +10323,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} */ @@ -10246,7 +10370,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 @@ -10258,7 +10382,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 @@ -10305,7 +10429,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 @@ -10319,7 +10443,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 @@ -10386,7 +10510,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}; @@ -10487,7 +10611,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} */ @@ -10505,7 +10629,7 @@ export const WalletsApiAxiosParamCreator = function (configuration?: Configurati const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -10542,7 +10666,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}; @@ -10580,7 +10704,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}; @@ -10614,7 +10738,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}; @@ -10654,7 +10778,7 @@ export const WalletsApiAxiosParamCreator = function (configuration?: Configurati } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -10677,7 +10801,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} */ @@ -10754,7 +10878,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} */ @@ -10815,7 +10939,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 @@ -10876,7 +11000,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 @@ -10948,7 +11072,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat * Create a new webhook scoped to a wallet * @summary Create a new webhook scoped to a wallet * @param {string} walletId The ID of the wallet to create the webhook for. - * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] + * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -10969,7 +11093,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -10985,7 +11109,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} */ @@ -11003,7 +11127,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -11040,7 +11164,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}; @@ -11080,7 +11204,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat } - + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -11094,7 +11218,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} */ @@ -11115,7 +11239,7 @@ export const WebhooksApiAxiosParamCreator = function (configuration?: Configurat const localVarQueryParameter = {} as any; - + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -11142,7 +11266,7 @@ export const WebhooksApiFp = function(configuration?: Configuration) { * Create a new webhook scoped to a wallet * @summary Create a new webhook scoped to a wallet * @param {string} walletId The ID of the wallet to create the webhook for. - * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] + * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -11155,7 +11279,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} */ @@ -11196,7 +11320,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} */ @@ -11220,7 +11344,7 @@ export const WebhooksApiFactory = function (configuration?: Configuration, baseP * Create a new webhook scoped to a wallet * @summary Create a new webhook scoped to a wallet * @param {string} walletId The ID of the wallet to create the webhook for. - * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] + * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -11230,7 +11354,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} */ @@ -11262,7 +11386,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} */ @@ -11282,7 +11406,7 @@ export interface WebhooksApiInterface { * Create a new webhook scoped to a wallet * @summary Create a new webhook scoped to a wallet * @param {string} walletId The ID of the wallet to create the webhook for. - * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] + * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApiInterface @@ -11292,7 +11416,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 @@ -11324,7 +11448,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 @@ -11344,7 +11468,7 @@ export class WebhooksApi extends BaseAPI implements WebhooksApiInterface { * Create a new webhook scoped to a wallet * @summary Create a new webhook scoped to a wallet * @param {string} walletId The ID of the wallet to create the webhook for. - * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] + * @param {CreateWalletWebhookRequest} [createWalletWebhookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof WebhooksApi @@ -11356,7 +11480,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 @@ -11394,7 +11518,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 @@ -11405,4 +11529,3 @@ export class WebhooksApi extends BaseAPI implements WebhooksApiInterface { } - diff --git a/src/coinbase/types.ts b/src/coinbase/types.ts index 61a1131c..d168ddb9 100644 --- a/src/coinbase/types.ts +++ b/src/coinbase/types.ts @@ -1226,7 +1226,7 @@ export type CreateWebhookOptions = { export type UpdateWebhookOptions = { notificationUri?: string; eventFilters?: Array; - eventTypeFilter?: { addresses: string[] }; + eventTypeFilter?: WebhookEventTypeFilter; }; /** diff --git a/src/coinbase/webhook.ts b/src/coinbase/webhook.ts index b6a109d1..9c1196ad 100644 --- a/src/coinbase/webhook.ts +++ b/src/coinbase/webhook.ts @@ -3,6 +3,7 @@ import { WebhookEventType, WebhookEventFilter, WebhookEventTypeFilter, + WebhookWalletActivityFilter, } from "../client/api"; import { Coinbase } from "./coinbase"; import { @@ -50,7 +51,7 @@ export class Webhook { * @param options.networkId - The network ID for which the webhook is created. * @param options.notificationUri - The URI where notifications should be sent. * @param options.eventType - The type of event for the webhook. - * @param options.eventTypeFilter - Filter for wallet activity event type. + * @param options.eventTypeFilter - Filter for wallet or smart contract activity event types. * @param options.eventFilters - Filters applied to the events that determine which specific events trigger the webhook. * @returns A promise that resolves to a new instance of Webhook. */ @@ -188,6 +189,13 @@ export class Webhook { const finalNotificationUri = notificationUri ?? this.getNotificationURI(); const finalEventTypeFilter = eventTypeFilter ?? this.getEventTypeFilter(); + // wallet ID is required for wallet activity event type filter, but we do not support updating it just yet, this will be added in the future + if (this.getEventType() === WebhookEventType.WalletActivity) { + (finalEventTypeFilter as WebhookWalletActivityFilter).wallet_id = ( + (this.getEventTypeFilter() as WebhookWalletActivityFilter)?.wallet_id + ); + } + const result = await Coinbase.apiClients.webhook!.updateWebhook(this.getId()!, { notification_uri: finalNotificationUri, event_filters: this.getEventFilters()!, diff --git a/src/tests/wallet_test.ts b/src/tests/wallet_test.ts index 3e476d86..a0be6e72 100644 --- a/src/tests/wallet_test.ts +++ b/src/tests/wallet_test.ts @@ -26,6 +26,7 @@ import { StakingRewardStateEnum, StakingRewardFormat, FeatureSet, + WebhookWalletActivityFilter, } from "./../client"; import { VALID_ADDRESS_MODEL, @@ -1442,8 +1443,8 @@ describe("Wallet Class", () => { jest.spyOn(Wallet.prototype, "createWebhook").mockReturnValue(wh); const result = await wallet.createWebhook("https://example.com/callback"); expect(result).toBeInstanceOf(Webhook); - expect(result.getEventTypeFilter()?.wallet_id).toBe(walletModel.id); - expect(result.getEventTypeFilter()?.addresses).toStrictEqual([address1]); + expect((result.getEventTypeFilter() as WebhookWalletActivityFilter)?.wallet_id).toBe(walletModel.id); + expect((result.getEventTypeFilter() as WebhookWalletActivityFilter)?.addresses).toStrictEqual([address1]); expect(result.getEventType()).toBe("wallet_activity"); }); }); diff --git a/src/tests/webhook_test.ts b/src/tests/webhook_test.ts index fc171d51..3e326c8d 100644 --- a/src/tests/webhook_test.ts +++ b/src/tests/webhook_test.ts @@ -1,6 +1,6 @@ import { Webhook } from "../coinbase/webhook"; import { Coinbase } from "../coinbase/coinbase"; -import { Webhook as WebhookModel } from "../client/api"; +import { Webhook as WebhookModel, WebhookWalletActivityFilter } from "../client/api"; import { mockReturnRejectedValue } from "./utils"; import { APIError } from "../coinbase/api_error"; @@ -10,11 +10,28 @@ describe("Webhook", () => { network_id: "test-network", notification_uri: "https://example.com/callback", event_type: "erc20_transfer", + event_filters: [{ contract_address: "0x...", from_address: "0x...", to_address: "0x..." }], + }; + + const mockWalletActivityWebhookModel: WebhookModel = { + id: "test-id", + network_id: "test-network", + notification_uri: "https://example.com/callback", + event_type: "wallet_activity", event_type_filter: { addresses: ["0xa55C5950F7A3C42Fa5799B2Cac0e455774a07382"], - wallet_id: "w1", + wallet_id: "test-wallet-id", + }, + }; + + const mockContractActivityWebhookModel: WebhookModel = { + id: "test-id", + network_id: "test-network", + notification_uri: "https://example.com/callback", + event_type: "smart_contract_event_activity", + event_type_filter: { + contract_addresses: ["0xa55C5950F7A3C42Fa5799B2Cac0e455774a07382"], }, - event_filters: [{ contract_address: "0x...", from_address: "0x...", to_address: "0x..." }], }; beforeEach(() => { @@ -43,7 +60,7 @@ describe("Webhook", () => { describe(".init", () => { it("should throw an error if the model is null", () => { - expect(() => Webhook.init(null as any)).toThrow("Webhook model cannot be empty"); + expect(() => Webhook.init(null as never)).toThrow("Webhook model cannot be empty"); }); it("should create an instance of Webhook", () => { @@ -151,7 +168,6 @@ describe("Webhook", () => { networkId: "test-network", notificationUri: "https://example.com/callback", eventType: "erc20_transfer", - eventTypeFilter: { addresses: ["0x1..", "0x2.."] }, eventFilters: [{ contract_address: "0x...", from_address: "0x...", to_address: "0x..." }], }); @@ -159,7 +175,6 @@ describe("Webhook", () => { network_id: "test-network", notification_uri: "https://example.com/callback", event_type: "erc20_transfer", - event_type_filter: { addresses: ["0x1..", "0x2.."] }, event_filters: [{ contract_address: "0x...", from_address: "0x...", to_address: "0x..." }], }); expect(webhook).toBeInstanceOf(Webhook); @@ -206,10 +221,6 @@ describe("Webhook", () => { expect(Coinbase.apiClients.webhook!.updateWebhook).toHaveBeenCalledWith("test-id", { notification_uri: "https://new-url.com/callback", event_filters: [{ contract_address: "0x...", from_address: "0x...", to_address: "0x..." }], - event_type_filter: { - addresses: ["0xa55C5950F7A3C42Fa5799B2Cac0e455774a07382"], - wallet_id: "w1", - }, }); expect(webhook.getNotificationURI()).toBe("https://new-url.com/callback"); @@ -225,20 +236,13 @@ describe("Webhook", () => { }); expect(webhook.getNotificationURI()).toBe("https://example.com/callback"); - expect(webhook.getEventTypeFilter()?.addresses).toEqual(["0x1..", "0x2.."]); + expect((webhook.getEventTypeFilter() as WebhookWalletActivityFilter)?.addresses).toEqual([ + "0x1..", + "0x2..", + ]); }); it("should update both the webhook notification URI and the list of addresses monitoring", async () => { - const mockModel: WebhookModel = { - id: "test-id", - network_id: "test-network", - notification_uri: "https://example.com/callback", - event_type: "erc20_transfer", - event_type_filter: { - addresses: ["0xa55C5950F7A3C42Fa5799B2Cac0e455774a07382"], - }, - event_filters: [{ contract_address: "0x...", from_address: "0x...", to_address: "0x..." }], - }; - const webhook = Webhook.init(mockModel); + const webhook = Webhook.init(mockWalletActivityWebhookModel); await webhook.update({ notificationUri: "https://new-url.com/callback", eventTypeFilter: { addresses: ["0x1..", "0x2.."] }, @@ -246,12 +250,54 @@ describe("Webhook", () => { expect(Coinbase.apiClients.webhook!.updateWebhook).toHaveBeenCalledWith("test-id", { notification_uri: "https://new-url.com/callback", - event_filters: [{ contract_address: "0x...", from_address: "0x...", to_address: "0x..." }], - event_type_filter: { addresses: ["0x1..", "0x2.."] }, + event_type_filter: { addresses: ["0x1..", "0x2.."], wallet_id: "test-wallet-id" }, }); expect(webhook.getNotificationURI()).toBe("https://new-url.com/callback"); - expect(webhook.getEventTypeFilter()).toEqual({ addresses: ["0x1..", "0x2.."] }); + expect(webhook.getEventTypeFilter()).toEqual({ + addresses: ["0x1..", "0x2.."], + wallet_id: "test-wallet-id", + }); + }); + it("should update notification URI for contract webhook", async () => { + const webhook = Webhook.init(mockContractActivityWebhookModel); + await webhook.update({ + notificationUri: "https://new-url-for-contract-webhook.com/callback", + }); + + expect(Coinbase.apiClients.webhook!.updateWebhook).toHaveBeenCalledWith("test-id", { + notification_uri: "https://new-url-for-contract-webhook.com/callback", + event_type_filter: { + contract_addresses: ["0xa55C5950F7A3C42Fa5799B2Cac0e455774a07382"], + }, + }); + + expect(webhook.getNotificationURI()).toBe( + "https://new-url-for-contract-webhook.com/callback", + ); + expect(webhook.getEventTypeFilter()).toEqual({ + contract_addresses: ["0xa55C5950F7A3C42Fa5799B2Cac0e455774a07382"], + }); + }); + it("should update contract addresses for contract webhook", async () => { + const webhook = Webhook.init(mockContractActivityWebhookModel); + await webhook.update({ + eventTypeFilter: { + contract_addresses: ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"], + }, + }); + + expect(Coinbase.apiClients.webhook!.updateWebhook).toHaveBeenCalledWith("test-id", { + notification_uri: "https://example.com/callback", + event_type_filter: { + contract_addresses: ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"], + }, + }); + + expect(webhook.getNotificationURI()).toBe("https://example.com/callback"); + expect(webhook.getEventTypeFilter()).toEqual({ + contract_addresses: ["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"], + }); }); }); @@ -271,7 +317,7 @@ describe("Webhook", () => { const webhook = Webhook.init(mockModel); const stringRepresentation = webhook.toString(); expect(stringRepresentation).toBe( - `Webhook { id: 'test-id', networkId: 'test-network', eventType: 'erc20_transfer', eventFilter: [{"contract_address":"0x...","from_address":"0x...","to_address":"0x..."}], eventTypeFilter: {"addresses":["0xa55C5950F7A3C42Fa5799B2Cac0e455774a07382"],"wallet_id":"w1"}, notificationUri: 'https://example.com/callback', signatureHeader: 'undefined' }`, + `Webhook { id: 'test-id', networkId: 'test-network', eventType: 'erc20_transfer', eventFilter: [{"contract_address":"0x...","from_address":"0x...","to_address":"0x..."}], eventTypeFilter: undefined, notificationUri: 'https://example.com/callback', signatureHeader: 'undefined' }`, ); }); });