From 326b99c4f9c7501988e95bc9c0dd15d29e0f52e9 Mon Sep 17 00:00:00 2001 From: Alex Stone Date: Wed, 13 Nov 2024 09:51:47 -0800 Subject: [PATCH] chore: Bump OpenAPI client --- lib/coinbase/client.rb | 9 +- lib/coinbase/client/api/addresses_api.rb | 2 +- lib/coinbase/client/api/assets_api.rb | 2 +- .../client/api/balance_history_api.rb | 2 +- .../client/api/contract_events_api.rb | 2 +- .../client/api/contract_invocations_api.rb | 2 +- .../client/api/external_addresses_api.rb | 2 +- lib/coinbase/client/api/fund_api.rb | 2 +- ...t_stake_api.rb => mpc_wallet_stake_api.rb} | 42 +- lib/coinbase/client/api/networks_api.rb | 2 +- .../client/api/onchain_identity_api.rb | 2 +- lib/coinbase/client/api/reputation_api.rb | 160 ++++++++ lib/coinbase/client/api/server_signers_api.rb | 2 +- .../client/api/smart_contracts_api.rb | 2 +- lib/coinbase/client/api/stake_api.rb | 159 +++++++- lib/coinbase/client/api/trades_api.rb | 2 +- .../client/api/transaction_history_api.rb | 2 +- lib/coinbase/client/api/transfers_api.rb | 2 +- lib/coinbase/client/api/users_api.rb | 2 +- lib/coinbase/client/api/validators_api.rb | 179 --------- lib/coinbase/client/api/wallets_api.rb | 2 +- lib/coinbase/client/api/webhooks_api.rb | 2 +- lib/coinbase/client/api_client.rb | 2 +- lib/coinbase/client/api_error.rb | 2 +- lib/coinbase/client/configuration.rb | 2 +- lib/coinbase/client/models/address.rb | 2 +- .../client/models/address_balance_list.rb | 2 +- .../models/address_historical_balance_list.rb | 2 +- lib/coinbase/client/models/address_list.rb | 2 +- .../client/models/address_reputation.rb | 232 +++++++++++ .../models/address_reputation_metadata.rb | 376 ++++++++++++++++++ lib/coinbase/client/models/address_risk.rb | 223 +++++++++++ .../client/models/address_transaction_list.rb | 2 +- lib/coinbase/client/models/asset.rb | 2 +- lib/coinbase/client/models/balance.rb | 2 +- .../broadcast_contract_invocation_request.rb | 2 +- .../broadcast_staking_operation_request.rb | 2 +- .../client/models/broadcast_trade_request.rb | 2 +- .../models/broadcast_transfer_request.rb | 2 +- .../models/build_staking_operation_request.rb | 3 +- lib/coinbase/client/models/contract_event.rb | 2 +- .../client/models/contract_event_list.rb | 2 +- .../client/models/contract_invocation.rb | 2 +- .../client/models/contract_invocation_list.rb | 2 +- .../client/models/create_address_request.rb | 2 +- .../create_contract_invocation_request.rb | 2 +- .../models/create_fund_operation_request.rb | 2 +- .../models/create_fund_quote_request.rb | 2 +- .../create_payload_signature_request.rb | 2 +- .../models/create_server_signer_request.rb | 2 +- .../models/create_smart_contract_request.rb | 2 +- .../create_staking_operation_request.rb | 3 +- .../client/models/create_trade_request.rb | 2 +- .../client/models/create_transfer_request.rb | 2 +- .../client/models/create_wallet_request.rb | 2 +- .../models/create_wallet_request_wallet.rb | 2 +- .../models/create_wallet_webhook_request.rb | 2 +- .../client/models/create_webhook_request.rb | 2 +- lib/coinbase/client/models/crypto_amount.rb | 2 +- .../models/deploy_smart_contract_request.rb | 2 +- .../client/models/erc20_transfer_event.rb | 2 +- .../client/models/erc721_transfer_event.rb | 2 +- lib/coinbase/client/models/error.rb | 2 +- .../client/models/ethereum_token_transfer.rb | 2 +- .../client/models/ethereum_transaction.rb | 2 +- .../models/ethereum_transaction_access.rb | 2 +- .../ethereum_transaction_access_list.rb | 2 +- .../ethereum_transaction_flattened_trace.rb | 2 +- .../models/ethereum_validator_metadata.rb | 2 +- .../client/models/faucet_transaction.rb | 2 +- lib/coinbase/client/models/feature_set.rb | 2 +- ...historical_staking_balances200_response.rb | 2 +- .../fetch_staking_rewards200_response.rb | 2 +- .../models/fetch_staking_rewards_request.rb | 2 +- lib/coinbase/client/models/fiat_amount.rb | 2 +- lib/coinbase/client/models/fund_operation.rb | 2 +- .../client/models/fund_operation_fees.rb | 2 +- .../client/models/fund_operation_list.rb | 2 +- lib/coinbase/client/models/fund_quote.rb | 2 +- .../models/get_staking_context_request.rb | 3 +- .../client/models/historical_balance.rb | 2 +- .../models/multi_token_contract_options.rb | 2 +- lib/coinbase/client/models/network.rb | 2 +- .../client/models/network_identifier.rb | 2 +- .../client/models/nft_contract_options.rb | 2 +- lib/coinbase/client/models/onchain_name.rb | 2 +- .../client/models/onchain_name_list.rb | 2 +- .../client/models/payload_signature.rb | 2 +- .../client/models/payload_signature_list.rb | 2 +- .../client/models/read_contract_request.rb | 2 +- .../client/models/seed_creation_event.rb | 2 +- .../models/seed_creation_event_result.rb | 2 +- lib/coinbase/client/models/server_signer.rb | 2 +- .../client/models/server_signer_event.rb | 2 +- .../models/server_signer_event_event.rb | 2 +- .../client/models/server_signer_event_list.rb | 2 +- .../client/models/server_signer_list.rb | 2 +- .../client/models/signature_creation_event.rb | 2 +- .../models/signature_creation_event_result.rb | 2 +- .../signed_voluntary_exit_message_metadata.rb | 2 +- lib/coinbase/client/models/smart_contract.rb | 2 +- .../client/models/smart_contract_list.rb | 2 +- .../client/models/smart_contract_options.rb | 2 +- .../client/models/smart_contract_type.rb | 2 +- lib/coinbase/client/models/solidity_value.rb | 6 +- lib/coinbase/client/models/sponsored_send.rb | 2 +- lib/coinbase/client/models/staking_balance.rb | 2 +- lib/coinbase/client/models/staking_context.rb | 2 +- .../client/models/staking_context_context.rb | 2 +- .../client/models/staking_operation.rb | 2 +- .../models/staking_operation_metadata.rb | 2 +- lib/coinbase/client/models/staking_reward.rb | 2 +- .../client/models/staking_reward_format.rb | 2 +- .../client/models/staking_reward_usd_value.rb | 2 +- .../client/models/token_contract_options.rb | 2 +- .../client/models/token_transfer_type.rb | 2 +- lib/coinbase/client/models/trade.rb | 2 +- lib/coinbase/client/models/trade_list.rb | 2 +- lib/coinbase/client/models/transaction.rb | 2 +- .../client/models/transaction_content.rb | 2 +- .../client/models/transaction_type.rb | 2 +- lib/coinbase/client/models/transfer.rb | 2 +- lib/coinbase/client/models/transfer_list.rb | 2 +- .../client/models/update_webhook_request.rb | 2 +- lib/coinbase/client/models/user.rb | 2 +- lib/coinbase/client/models/validator.rb | 2 +- .../client/models/validator_details.rb | 2 +- lib/coinbase/client/models/validator_list.rb | 2 +- .../client/models/validator_status.rb | 2 +- lib/coinbase/client/models/wallet.rb | 2 +- lib/coinbase/client/models/wallet_list.rb | 2 +- lib/coinbase/client/models/webhook.rb | 2 +- .../client/models/webhook_event_filter.rb | 2 +- .../client/models/webhook_event_type.rb | 2 +- .../models/webhook_event_type_filter.rb | 2 +- lib/coinbase/client/models/webhook_list.rb | 2 +- .../models/webhook_wallet_activity_filter.rb | 2 +- lib/coinbase/client/version.rb | 2 +- 138 files changed, 1311 insertions(+), 336 deletions(-) rename lib/coinbase/client/api/{wallet_stake_api.rb => mpc_wallet_stake_api.rb} (87%) create mode 100644 lib/coinbase/client/api/reputation_api.rb delete mode 100644 lib/coinbase/client/api/validators_api.rb create mode 100644 lib/coinbase/client/models/address_reputation.rb create mode 100644 lib/coinbase/client/models/address_reputation_metadata.rb create mode 100644 lib/coinbase/client/models/address_risk.rb diff --git a/lib/coinbase/client.rb b/lib/coinbase/client.rb index b40ebda5..d0a11450 100644 --- a/lib/coinbase/client.rb +++ b/lib/coinbase/client.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end @@ -21,6 +21,9 @@ Coinbase::Client.autoload :AddressBalanceList, 'coinbase/client/models/address_balance_list' Coinbase::Client.autoload :AddressHistoricalBalanceList, 'coinbase/client/models/address_historical_balance_list' Coinbase::Client.autoload :AddressList, 'coinbase/client/models/address_list' +Coinbase::Client.autoload :AddressReputation, 'coinbase/client/models/address_reputation' +Coinbase::Client.autoload :AddressReputationMetadata, 'coinbase/client/models/address_reputation_metadata' +Coinbase::Client.autoload :AddressRisk, 'coinbase/client/models/address_risk' Coinbase::Client.autoload :AddressTransactionList, 'coinbase/client/models/address_transaction_list' Coinbase::Client.autoload :Asset, 'coinbase/client/models/asset' Coinbase::Client.autoload :Balance, 'coinbase/client/models/balance' @@ -135,8 +138,10 @@ Coinbase::Client.autoload :ContractInvocationsApi, 'coinbase/client/api/contract_invocations_api' Coinbase::Client.autoload :ExternalAddressesApi, 'coinbase/client/api/external_addresses_api' Coinbase::Client.autoload :FundApi, 'coinbase/client/api/fund_api' +Coinbase::Client.autoload :MPCWalletStakeApi, 'coinbase/client/api/mpc_wallet_stake_api' Coinbase::Client.autoload :NetworksApi, 'coinbase/client/api/networks_api' Coinbase::Client.autoload :OnchainIdentityApi, 'coinbase/client/api/onchain_identity_api' +Coinbase::Client.autoload :ReputationApi, 'coinbase/client/api/reputation_api' Coinbase::Client.autoload :ServerSignersApi, 'coinbase/client/api/server_signers_api' Coinbase::Client.autoload :SmartContractsApi, 'coinbase/client/api/smart_contracts_api' Coinbase::Client.autoload :StakeApi, 'coinbase/client/api/stake_api' @@ -144,8 +149,6 @@ Coinbase::Client.autoload :TransactionHistoryApi, 'coinbase/client/api/transaction_history_api' Coinbase::Client.autoload :TransfersApi, 'coinbase/client/api/transfers_api' Coinbase::Client.autoload :UsersApi, 'coinbase/client/api/users_api' -Coinbase::Client.autoload :ValidatorsApi, 'coinbase/client/api/validators_api' -Coinbase::Client.autoload :WalletStakeApi, 'coinbase/client/api/wallet_stake_api' Coinbase::Client.autoload :WalletsApi, 'coinbase/client/api/wallets_api' Coinbase::Client.autoload :WebhooksApi, 'coinbase/client/api/webhooks_api' diff --git a/lib/coinbase/client/api/addresses_api.rb b/lib/coinbase/client/api/addresses_api.rb index 96e3e8e5..70f55c91 100644 --- a/lib/coinbase/client/api/addresses_api.rb +++ b/lib/coinbase/client/api/addresses_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/assets_api.rb b/lib/coinbase/client/api/assets_api.rb index 30854616..ad9e9593 100644 --- a/lib/coinbase/client/api/assets_api.rb +++ b/lib/coinbase/client/api/assets_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/balance_history_api.rb b/lib/coinbase/client/api/balance_history_api.rb index ba0be892..d66ab8fd 100644 --- a/lib/coinbase/client/api/balance_history_api.rb +++ b/lib/coinbase/client/api/balance_history_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/contract_events_api.rb b/lib/coinbase/client/api/contract_events_api.rb index b38bfed7..b155304b 100644 --- a/lib/coinbase/client/api/contract_events_api.rb +++ b/lib/coinbase/client/api/contract_events_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/contract_invocations_api.rb b/lib/coinbase/client/api/contract_invocations_api.rb index b97d63f4..224bb217 100644 --- a/lib/coinbase/client/api/contract_invocations_api.rb +++ b/lib/coinbase/client/api/contract_invocations_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/external_addresses_api.rb b/lib/coinbase/client/api/external_addresses_api.rb index 5e26ec39..d6c0f7ec 100644 --- a/lib/coinbase/client/api/external_addresses_api.rb +++ b/lib/coinbase/client/api/external_addresses_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/fund_api.rb b/lib/coinbase/client/api/fund_api.rb index 6c97f4bb..5bbe6a72 100644 --- a/lib/coinbase/client/api/fund_api.rb +++ b/lib/coinbase/client/api/fund_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/wallet_stake_api.rb b/lib/coinbase/client/api/mpc_wallet_stake_api.rb similarity index 87% rename from lib/coinbase/client/api/wallet_stake_api.rb rename to lib/coinbase/client/api/mpc_wallet_stake_api.rb index 8503ff99..40cedeb4 100644 --- a/lib/coinbase/client/api/wallet_stake_api.rb +++ b/lib/coinbase/client/api/mpc_wallet_stake_api.rb @@ -6,14 +6,14 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end require 'cgi' module Coinbase::Client - class WalletStakeApi + class MPCWalletStakeApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @@ -42,23 +42,23 @@ def broadcast_staking_operation(wallet_id, address_id, staking_operation_id, bro # @return [Array<(StakingOperation, Integer, Hash)>] StakingOperation data, response status code and response headers def broadcast_staking_operation_with_http_info(wallet_id, address_id, staking_operation_id, broadcast_staking_operation_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WalletStakeApi.broadcast_staking_operation ...' + @api_client.config.logger.debug 'Calling API: MPCWalletStakeApi.broadcast_staking_operation ...' end # verify the required parameter 'wallet_id' is set if @api_client.config.client_side_validation && wallet_id.nil? - fail ArgumentError, "Missing the required parameter 'wallet_id' when calling WalletStakeApi.broadcast_staking_operation" + fail ArgumentError, "Missing the required parameter 'wallet_id' when calling MPCWalletStakeApi.broadcast_staking_operation" end # verify the required parameter 'address_id' is set if @api_client.config.client_side_validation && address_id.nil? - fail ArgumentError, "Missing the required parameter 'address_id' when calling WalletStakeApi.broadcast_staking_operation" + fail ArgumentError, "Missing the required parameter 'address_id' when calling MPCWalletStakeApi.broadcast_staking_operation" end # verify the required parameter 'staking_operation_id' is set if @api_client.config.client_side_validation && staking_operation_id.nil? - fail ArgumentError, "Missing the required parameter 'staking_operation_id' when calling WalletStakeApi.broadcast_staking_operation" + fail ArgumentError, "Missing the required parameter 'staking_operation_id' when calling MPCWalletStakeApi.broadcast_staking_operation" end # verify the required parameter 'broadcast_staking_operation_request' is set if @api_client.config.client_side_validation && broadcast_staking_operation_request.nil? - fail ArgumentError, "Missing the required parameter 'broadcast_staking_operation_request' when calling WalletStakeApi.broadcast_staking_operation" + fail ArgumentError, "Missing the required parameter 'broadcast_staking_operation_request' when calling MPCWalletStakeApi.broadcast_staking_operation" end # resource path local_var_path = '/v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations/{staking_operation_id}/broadcast'.sub('{' + 'wallet_id' + '}', CGI.escape(wallet_id.to_s)).sub('{' + 'address_id' + '}', CGI.escape(address_id.to_s)).sub('{' + 'staking_operation_id' + '}', CGI.escape(staking_operation_id.to_s)) @@ -89,7 +89,7 @@ def broadcast_staking_operation_with_http_info(wallet_id, address_id, staking_op auth_names = opts[:debug_auth_names] || [] new_options = opts.merge( - :operation => :"WalletStakeApi.broadcast_staking_operation", + :operation => :"MPCWalletStakeApi.broadcast_staking_operation", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -100,7 +100,7 @@ def broadcast_staking_operation_with_http_info(wallet_id, address_id, staking_op data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: WalletStakeApi#broadcast_staking_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: MPCWalletStakeApi#broadcast_staking_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -126,19 +126,19 @@ def create_staking_operation(wallet_id, address_id, create_staking_operation_req # @return [Array<(StakingOperation, Integer, Hash)>] StakingOperation data, response status code and response headers def create_staking_operation_with_http_info(wallet_id, address_id, create_staking_operation_request, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WalletStakeApi.create_staking_operation ...' + @api_client.config.logger.debug 'Calling API: MPCWalletStakeApi.create_staking_operation ...' end # verify the required parameter 'wallet_id' is set if @api_client.config.client_side_validation && wallet_id.nil? - fail ArgumentError, "Missing the required parameter 'wallet_id' when calling WalletStakeApi.create_staking_operation" + fail ArgumentError, "Missing the required parameter 'wallet_id' when calling MPCWalletStakeApi.create_staking_operation" end # verify the required parameter 'address_id' is set if @api_client.config.client_side_validation && address_id.nil? - fail ArgumentError, "Missing the required parameter 'address_id' when calling WalletStakeApi.create_staking_operation" + fail ArgumentError, "Missing the required parameter 'address_id' when calling MPCWalletStakeApi.create_staking_operation" end # verify the required parameter 'create_staking_operation_request' is set if @api_client.config.client_side_validation && create_staking_operation_request.nil? - fail ArgumentError, "Missing the required parameter 'create_staking_operation_request' when calling WalletStakeApi.create_staking_operation" + fail ArgumentError, "Missing the required parameter 'create_staking_operation_request' when calling MPCWalletStakeApi.create_staking_operation" end # resource path local_var_path = '/v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations'.sub('{' + 'wallet_id' + '}', CGI.escape(wallet_id.to_s)).sub('{' + 'address_id' + '}', CGI.escape(address_id.to_s)) @@ -169,7 +169,7 @@ def create_staking_operation_with_http_info(wallet_id, address_id, create_stakin auth_names = opts[:debug_auth_names] || [] new_options = opts.merge( - :operation => :"WalletStakeApi.create_staking_operation", + :operation => :"MPCWalletStakeApi.create_staking_operation", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -180,7 +180,7 @@ def create_staking_operation_with_http_info(wallet_id, address_id, create_stakin data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: WalletStakeApi#create_staking_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: MPCWalletStakeApi#create_staking_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -206,19 +206,19 @@ def get_staking_operation(wallet_id, address_id, staking_operation_id, opts = {} # @return [Array<(StakingOperation, Integer, Hash)>] StakingOperation data, response status code and response headers def get_staking_operation_with_http_info(wallet_id, address_id, staking_operation_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WalletStakeApi.get_staking_operation ...' + @api_client.config.logger.debug 'Calling API: MPCWalletStakeApi.get_staking_operation ...' end # verify the required parameter 'wallet_id' is set if @api_client.config.client_side_validation && wallet_id.nil? - fail ArgumentError, "Missing the required parameter 'wallet_id' when calling WalletStakeApi.get_staking_operation" + fail ArgumentError, "Missing the required parameter 'wallet_id' when calling MPCWalletStakeApi.get_staking_operation" end # verify the required parameter 'address_id' is set if @api_client.config.client_side_validation && address_id.nil? - fail ArgumentError, "Missing the required parameter 'address_id' when calling WalletStakeApi.get_staking_operation" + fail ArgumentError, "Missing the required parameter 'address_id' when calling MPCWalletStakeApi.get_staking_operation" end # verify the required parameter 'staking_operation_id' is set if @api_client.config.client_side_validation && staking_operation_id.nil? - fail ArgumentError, "Missing the required parameter 'staking_operation_id' when calling WalletStakeApi.get_staking_operation" + fail ArgumentError, "Missing the required parameter 'staking_operation_id' when calling MPCWalletStakeApi.get_staking_operation" end # resource path local_var_path = '/v1/wallets/{wallet_id}/addresses/{address_id}/staking_operations/{staking_operation_id}'.sub('{' + 'wallet_id' + '}', CGI.escape(wallet_id.to_s)).sub('{' + 'address_id' + '}', CGI.escape(address_id.to_s)).sub('{' + 'staking_operation_id' + '}', CGI.escape(staking_operation_id.to_s)) @@ -244,7 +244,7 @@ def get_staking_operation_with_http_info(wallet_id, address_id, staking_operatio auth_names = opts[:debug_auth_names] || [] new_options = opts.merge( - :operation => :"WalletStakeApi.get_staking_operation", + :operation => :"MPCWalletStakeApi.get_staking_operation", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -255,7 +255,7 @@ def get_staking_operation_with_http_info(wallet_id, address_id, staking_operatio data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: WalletStakeApi#get_staking_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: MPCWalletStakeApi#get_staking_operation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end diff --git a/lib/coinbase/client/api/networks_api.rb b/lib/coinbase/client/api/networks_api.rb index dc8f47c1..c9726aa5 100644 --- a/lib/coinbase/client/api/networks_api.rb +++ b/lib/coinbase/client/api/networks_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/onchain_identity_api.rb b/lib/coinbase/client/api/onchain_identity_api.rb index 294cb3c8..9852713b 100644 --- a/lib/coinbase/client/api/onchain_identity_api.rb +++ b/lib/coinbase/client/api/onchain_identity_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/reputation_api.rb b/lib/coinbase/client/api/reputation_api.rb new file mode 100644 index 00000000..748f13a2 --- /dev/null +++ b/lib/coinbase/client/api/reputation_api.rb @@ -0,0 +1,160 @@ +=begin +#Coinbase Platform API + +#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 + +Generated by: https://openapi-generator.tech +Generator version: 7.9.0 + +=end + +require 'cgi' + +module Coinbase::Client + class ReputationApi + attr_accessor :api_client + + def initialize(api_client = ApiClient.default) + @api_client = api_client + end + # Get the onchain reputation of an external address + # Get the onchain reputation of an external address + # @param network_id [String] The ID of the blockchain network. + # @param address_id [String] The ID of the address to fetch the reputation for. + # @param [Hash] opts the optional parameters + # @return [AddressReputation] + def get_address_reputation(network_id, address_id, opts = {}) + data, _status_code, _headers = get_address_reputation_with_http_info(network_id, address_id, opts) + data + end + + # Get the onchain reputation of an external address + # Get the onchain reputation of an external address + # @param network_id [String] The ID of the blockchain network. + # @param address_id [String] The ID of the address to fetch the reputation for. + # @param [Hash] opts the optional parameters + # @return [Array<(AddressReputation, Integer, Hash)>] AddressReputation data, response status code and response headers + def get_address_reputation_with_http_info(network_id, address_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReputationApi.get_address_reputation ...' + end + # verify the required parameter 'network_id' is set + if @api_client.config.client_side_validation && network_id.nil? + fail ArgumentError, "Missing the required parameter 'network_id' when calling ReputationApi.get_address_reputation" + end + # verify the required parameter 'address_id' is set + if @api_client.config.client_side_validation && address_id.nil? + fail ArgumentError, "Missing the required parameter 'address_id' when calling ReputationApi.get_address_reputation" + end + # resource path + local_var_path = '/v1/networks/{network_id}/addresses/{address_id}/reputation'.sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'address_id' + '}', CGI.escape(address_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'AddressReputation' + + # auth_names + auth_names = opts[:debug_auth_names] || [] + + new_options = opts.merge( + :operation => :"ReputationApi.get_address_reputation", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReputationApi#get_address_reputation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # Get the risk of an address + # Get the risk of an address + # @param network_id [String] The ID of the blockchain network. + # @param address_id [String] The ID of the address to fetch the risk for. + # @param [Hash] opts the optional parameters + # @return [AddressRisk] + def get_address_risk(network_id, address_id, opts = {}) + data, _status_code, _headers = get_address_risk_with_http_info(network_id, address_id, opts) + data + end + + # Get the risk of an address + # Get the risk of an address + # @param network_id [String] The ID of the blockchain network. + # @param address_id [String] The ID of the address to fetch the risk for. + # @param [Hash] opts the optional parameters + # @return [Array<(AddressRisk, Integer, Hash)>] AddressRisk data, response status code and response headers + def get_address_risk_with_http_info(network_id, address_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: ReputationApi.get_address_risk ...' + end + # verify the required parameter 'network_id' is set + if @api_client.config.client_side_validation && network_id.nil? + fail ArgumentError, "Missing the required parameter 'network_id' when calling ReputationApi.get_address_risk" + end + # verify the required parameter 'address_id' is set + if @api_client.config.client_side_validation && address_id.nil? + fail ArgumentError, "Missing the required parameter 'address_id' when calling ReputationApi.get_address_risk" + end + # resource path + local_var_path = '/v1/networks/{network_id}/addresses/{address_id}/risk'.sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'address_id' + '}', CGI.escape(address_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'AddressRisk' + + # auth_names + auth_names = opts[:debug_auth_names] || [] + + new_options = opts.merge( + :operation => :"ReputationApi.get_address_risk", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ReputationApi#get_address_risk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + end +end diff --git a/lib/coinbase/client/api/server_signers_api.rb b/lib/coinbase/client/api/server_signers_api.rb index ca1375e3..d2aa3e3a 100644 --- a/lib/coinbase/client/api/server_signers_api.rb +++ b/lib/coinbase/client/api/server_signers_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/smart_contracts_api.rb b/lib/coinbase/client/api/smart_contracts_api.rb index cce423a2..b5bbba7d 100644 --- a/lib/coinbase/client/api/smart_contracts_api.rb +++ b/lib/coinbase/client/api/smart_contracts_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/stake_api.rb b/lib/coinbase/client/api/stake_api.rb index 591f8af5..aee9c8a4 100644 --- a/lib/coinbase/client/api/stake_api.rb +++ b/lib/coinbase/client/api/stake_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end @@ -419,5 +419,162 @@ def get_staking_context_with_http_info(get_staking_context_request, opts = {}) end return data, status_code, headers end + + # Get a validator belonging to the CDP project + # Get a validator belonging to the user for a given network, asset and id. + # @param network_id [String] The ID of the blockchain network. + # @param asset_id [String] The symbol of the asset to get the validator for. + # @param validator_id [String] The unique id of the validator to fetch details for. + # @param [Hash] opts the optional parameters + # @return [Validator] + def get_validator(network_id, asset_id, validator_id, opts = {}) + data, _status_code, _headers = get_validator_with_http_info(network_id, asset_id, validator_id, opts) + data + end + + # Get a validator belonging to the CDP project + # Get a validator belonging to the user for a given network, asset and id. + # @param network_id [String] The ID of the blockchain network. + # @param asset_id [String] The symbol of the asset to get the validator for. + # @param validator_id [String] The unique id of the validator to fetch details for. + # @param [Hash] opts the optional parameters + # @return [Array<(Validator, Integer, Hash)>] Validator data, response status code and response headers + def get_validator_with_http_info(network_id, asset_id, validator_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: StakeApi.get_validator ...' + end + # verify the required parameter 'network_id' is set + if @api_client.config.client_side_validation && network_id.nil? + fail ArgumentError, "Missing the required parameter 'network_id' when calling StakeApi.get_validator" + end + # verify the required parameter 'asset_id' is set + if @api_client.config.client_side_validation && asset_id.nil? + fail ArgumentError, "Missing the required parameter 'asset_id' when calling StakeApi.get_validator" + end + # verify the required parameter 'validator_id' is set + if @api_client.config.client_side_validation && validator_id.nil? + fail ArgumentError, "Missing the required parameter 'validator_id' when calling StakeApi.get_validator" + end + # resource path + local_var_path = '/v1/networks/{network_id}/assets/{asset_id}/validators/{validator_id}'.sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s)).sub('{' + 'validator_id' + '}', CGI.escape(validator_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'Validator' + + # auth_names + auth_names = opts[:debug_auth_names] || [] + + new_options = opts.merge( + :operation => :"StakeApi.get_validator", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: StakeApi#get_validator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + + # List validators belonging to the CDP project + # List validators belonging to the user for a given network and asset. + # @param network_id [String] The ID of the blockchain network. + # @param asset_id [String] The symbol of the asset to get the validators for. + # @param [Hash] opts the optional parameters + # @option opts [ValidatorStatus] :status A filter to list validators based on a status. + # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. + # @option opts [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. + # @return [ValidatorList] + def list_validators(network_id, asset_id, opts = {}) + data, _status_code, _headers = list_validators_with_http_info(network_id, asset_id, opts) + data + end + + # List validators belonging to the CDP project + # List validators belonging to the user for a given network and asset. + # @param network_id [String] The ID of the blockchain network. + # @param asset_id [String] The symbol of the asset to get the validators for. + # @param [Hash] opts the optional parameters + # @option opts [ValidatorStatus] :status A filter to list validators based on a status. + # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. + # @option opts [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. + # @return [Array<(ValidatorList, Integer, Hash)>] ValidatorList data, response status code and response headers + def list_validators_with_http_info(network_id, asset_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: StakeApi.list_validators ...' + end + # verify the required parameter 'network_id' is set + if @api_client.config.client_side_validation && network_id.nil? + fail ArgumentError, "Missing the required parameter 'network_id' when calling StakeApi.list_validators" + end + # verify the required parameter 'asset_id' is set + if @api_client.config.client_side_validation && asset_id.nil? + fail ArgumentError, "Missing the required parameter 'asset_id' when calling StakeApi.list_validators" + end + if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'].to_s.length > 5000 + fail ArgumentError, 'invalid value for "opts[:"page"]" when calling StakeApi.list_validators, the character length must be smaller than or equal to 5000.' + end + + # resource path + local_var_path = '/v1/networks/{network_id}/assets/{asset_id}/validators'.sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil? + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'ValidatorList' + + # auth_names + auth_names = opts[:debug_auth_names] || [] + + new_options = opts.merge( + :operation => :"StakeApi.list_validators", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: StakeApi#list_validators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end end end diff --git a/lib/coinbase/client/api/trades_api.rb b/lib/coinbase/client/api/trades_api.rb index 7431cd30..e4e13d8b 100644 --- a/lib/coinbase/client/api/trades_api.rb +++ b/lib/coinbase/client/api/trades_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/transaction_history_api.rb b/lib/coinbase/client/api/transaction_history_api.rb index 296ed051..64af84e3 100644 --- a/lib/coinbase/client/api/transaction_history_api.rb +++ b/lib/coinbase/client/api/transaction_history_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/transfers_api.rb b/lib/coinbase/client/api/transfers_api.rb index 2305439a..0d18b905 100644 --- a/lib/coinbase/client/api/transfers_api.rb +++ b/lib/coinbase/client/api/transfers_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/users_api.rb b/lib/coinbase/client/api/users_api.rb index 16989b87..b2fbe00e 100644 --- a/lib/coinbase/client/api/users_api.rb +++ b/lib/coinbase/client/api/users_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/validators_api.rb b/lib/coinbase/client/api/validators_api.rb deleted file mode 100644 index a9dd21fc..00000000 --- a/lib/coinbase/client/api/validators_api.rb +++ /dev/null @@ -1,179 +0,0 @@ -=begin -#Coinbase Platform API - -#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 - -Generated by: https://openapi-generator.tech -Generator version: 7.8.0 - -=end - -require 'cgi' - -module Coinbase::Client - class ValidatorsApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # Get a validator belonging to the CDP project - # Get a validator belonging to the user for a given network, asset and id. - # @param network_id [String] The ID of the blockchain network. - # @param asset_id [String] The symbol of the asset to get the validator for. - # @param validator_id [String] The unique id of the validator to fetch details for. - # @param [Hash] opts the optional parameters - # @return [Validator] - def get_validator(network_id, asset_id, validator_id, opts = {}) - data, _status_code, _headers = get_validator_with_http_info(network_id, asset_id, validator_id, opts) - data - end - - # Get a validator belonging to the CDP project - # Get a validator belonging to the user for a given network, asset and id. - # @param network_id [String] The ID of the blockchain network. - # @param asset_id [String] The symbol of the asset to get the validator for. - # @param validator_id [String] The unique id of the validator to fetch details for. - # @param [Hash] opts the optional parameters - # @return [Array<(Validator, Integer, Hash)>] Validator data, response status code and response headers - def get_validator_with_http_info(network_id, asset_id, validator_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ValidatorsApi.get_validator ...' - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling ValidatorsApi.get_validator" - end - # verify the required parameter 'asset_id' is set - if @api_client.config.client_side_validation && asset_id.nil? - fail ArgumentError, "Missing the required parameter 'asset_id' when calling ValidatorsApi.get_validator" - end - # verify the required parameter 'validator_id' is set - if @api_client.config.client_side_validation && validator_id.nil? - fail ArgumentError, "Missing the required parameter 'validator_id' when calling ValidatorsApi.get_validator" - end - # resource path - local_var_path = '/v1/networks/{network_id}/assets/{asset_id}/validators/{validator_id}'.sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s)).sub('{' + 'validator_id' + '}', CGI.escape(validator_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'Validator' - - # auth_names - auth_names = opts[:debug_auth_names] || [] - - new_options = opts.merge( - :operation => :"ValidatorsApi.get_validator", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ValidatorsApi#get_validator\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - - # List validators belonging to the CDP project - # List validators belonging to the user for a given network and asset. - # @param network_id [String] The ID of the blockchain network. - # @param asset_id [String] The symbol of the asset to get the validators for. - # @param [Hash] opts the optional parameters - # @option opts [ValidatorStatus] :status A filter to list validators based on a status. - # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. - # @option opts [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. - # @return [ValidatorList] - def list_validators(network_id, asset_id, opts = {}) - data, _status_code, _headers = list_validators_with_http_info(network_id, asset_id, opts) - data - end - - # List validators belonging to the CDP project - # List validators belonging to the user for a given network and asset. - # @param network_id [String] The ID of the blockchain network. - # @param asset_id [String] The symbol of the asset to get the validators for. - # @param [Hash] opts the optional parameters - # @option opts [ValidatorStatus] :status A filter to list validators based on a status. - # @option opts [Integer] :limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 50. - # @option opts [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. - # @return [Array<(ValidatorList, Integer, Hash)>] ValidatorList data, response status code and response headers - def list_validators_with_http_info(network_id, asset_id, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ValidatorsApi.list_validators ...' - end - # verify the required parameter 'network_id' is set - if @api_client.config.client_side_validation && network_id.nil? - fail ArgumentError, "Missing the required parameter 'network_id' when calling ValidatorsApi.list_validators" - end - # verify the required parameter 'asset_id' is set - if @api_client.config.client_side_validation && asset_id.nil? - fail ArgumentError, "Missing the required parameter 'asset_id' when calling ValidatorsApi.list_validators" - end - if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'].to_s.length > 5000 - fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ValidatorsApi.list_validators, the character length must be smaller than or equal to 5000.' - end - - # resource path - local_var_path = '/v1/networks/{network_id}/assets/{asset_id}/validators'.sub('{' + 'network_id' + '}', CGI.escape(network_id.to_s)).sub('{' + 'asset_id' + '}', CGI.escape(asset_id.to_s)) - - # query parameters - query_params = opts[:query_params] || {} - query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? - - # header parameters - header_params = opts[:header_params] || {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] - - # form parameters - form_params = opts[:form_params] || {} - - # http body (model) - post_body = opts[:debug_body] - - # return_type - return_type = opts[:debug_return_type] || 'ValidatorList' - - # auth_names - auth_names = opts[:debug_auth_names] || [] - - new_options = opts.merge( - :operation => :"ValidatorsApi.list_validators", - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => return_type - ) - - data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ValidatorsApi#list_validators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/lib/coinbase/client/api/wallets_api.rb b/lib/coinbase/client/api/wallets_api.rb index a9f05343..485495cb 100644 --- a/lib/coinbase/client/api/wallets_api.rb +++ b/lib/coinbase/client/api/wallets_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/webhooks_api.rb b/lib/coinbase/client/api/webhooks_api.rb index 7e225605..eba94e66 100644 --- a/lib/coinbase/client/api/webhooks_api.rb +++ b/lib/coinbase/client/api/webhooks_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api_client.rb b/lib/coinbase/client/api_client.rb index d9e2d924..5351423f 100644 --- a/lib/coinbase/client/api_client.rb +++ b/lib/coinbase/client/api_client.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api_error.rb b/lib/coinbase/client/api_error.rb index 9dc0c8ac..71136cbe 100644 --- a/lib/coinbase/client/api_error.rb +++ b/lib/coinbase/client/api_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/configuration.rb b/lib/coinbase/client/configuration.rb index 99b43b9f..252fdc88 100644 --- a/lib/coinbase/client/configuration.rb +++ b/lib/coinbase/client/configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/address.rb b/lib/coinbase/client/models/address.rb index 318294bb..7e2d230a 100644 --- a/lib/coinbase/client/models/address.rb +++ b/lib/coinbase/client/models/address.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/address_balance_list.rb b/lib/coinbase/client/models/address_balance_list.rb index 1eea0f0b..5f31e5d7 100644 --- a/lib/coinbase/client/models/address_balance_list.rb +++ b/lib/coinbase/client/models/address_balance_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/address_historical_balance_list.rb b/lib/coinbase/client/models/address_historical_balance_list.rb index ba326139..df3e91e8 100644 --- a/lib/coinbase/client/models/address_historical_balance_list.rb +++ b/lib/coinbase/client/models/address_historical_balance_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/address_list.rb b/lib/coinbase/client/models/address_list.rb index 8ba46521..641df5e7 100644 --- a/lib/coinbase/client/models/address_list.rb +++ b/lib/coinbase/client/models/address_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/address_reputation.rb b/lib/coinbase/client/models/address_reputation.rb new file mode 100644 index 00000000..a8a6b7de --- /dev/null +++ b/lib/coinbase/client/models/address_reputation.rb @@ -0,0 +1,232 @@ +=begin +#Coinbase Platform API + +#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 + +Generated by: https://openapi-generator.tech +Generator version: 7.9.0 + +=end + +require 'date' +require 'time' + +module Coinbase::Client + # The reputation score with metadata of a blockchain address. + class AddressReputation + # The reputation score of a wallet address which lie between 0 to 100. + attr_accessor :reputation_score + + attr_accessor :metadata + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'reputation_score' => :'reputation_score', + :'metadata' => :'metadata' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'reputation_score' => :'Integer', + :'metadata' => :'AddressReputationMetadata' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Coinbase::Client::AddressReputation` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Coinbase::Client::AddressReputation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'reputation_score') + self.reputation_score = attributes[:'reputation_score'] + end + + if attributes.key?(:'metadata') + self.metadata = attributes[:'metadata'] + else + self.metadata = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @metadata.nil? + invalid_properties.push('invalid value for "metadata", metadata cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @metadata.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + reputation_score == o.reputation_score && + metadata == o.metadata + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [reputation_score, metadata].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Coinbase::Client.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/coinbase/client/models/address_reputation_metadata.rb b/lib/coinbase/client/models/address_reputation_metadata.rb new file mode 100644 index 00000000..36c7bf44 --- /dev/null +++ b/lib/coinbase/client/models/address_reputation_metadata.rb @@ -0,0 +1,376 @@ +=begin +#Coinbase Platform API + +#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 + +Generated by: https://openapi-generator.tech +Generator version: 7.9.0 + +=end + +require 'date' +require 'time' + +module Coinbase::Client + # The metadata for the reputation score of onchain address. + class AddressReputationMetadata + # The total number of transactions performed by the address. + attr_accessor :total_transactions + + # The number of unique days the address was active. + attr_accessor :unique_days_active + + # The longest streak of consecutive active days. + attr_accessor :longest_active_streak + + # The current streak of consecutive active days. + attr_accessor :current_active_streak + + # The total number of days the address has been active. + attr_accessor :activity_period_days + + # The number of token swaps performed by the address. + attr_accessor :token_swaps_performed + + # The number of bridge transactions performed by the address. + attr_accessor :bridge_transactions_performed + + # The number of lend, borrow, or stake transactions performed by the address. + attr_accessor :lend_borrow_stake_transactions + + # The number of interactions with ENS contracts. + attr_accessor :ens_contract_interactions + + # The number of smart contracts deployed by the address. + attr_accessor :smart_contract_deployments + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'total_transactions' => :'total_transactions', + :'unique_days_active' => :'unique_days_active', + :'longest_active_streak' => :'longest_active_streak', + :'current_active_streak' => :'current_active_streak', + :'activity_period_days' => :'activity_period_days', + :'token_swaps_performed' => :'token_swaps_performed', + :'bridge_transactions_performed' => :'bridge_transactions_performed', + :'lend_borrow_stake_transactions' => :'lend_borrow_stake_transactions', + :'ens_contract_interactions' => :'ens_contract_interactions', + :'smart_contract_deployments' => :'smart_contract_deployments' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'total_transactions' => :'Integer', + :'unique_days_active' => :'Integer', + :'longest_active_streak' => :'Integer', + :'current_active_streak' => :'Integer', + :'activity_period_days' => :'Integer', + :'token_swaps_performed' => :'Integer', + :'bridge_transactions_performed' => :'Integer', + :'lend_borrow_stake_transactions' => :'Integer', + :'ens_contract_interactions' => :'Integer', + :'smart_contract_deployments' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Coinbase::Client::AddressReputationMetadata` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Coinbase::Client::AddressReputationMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'total_transactions') + self.total_transactions = attributes[:'total_transactions'] + else + self.total_transactions = nil + end + + if attributes.key?(:'unique_days_active') + self.unique_days_active = attributes[:'unique_days_active'] + else + self.unique_days_active = nil + end + + if attributes.key?(:'longest_active_streak') + self.longest_active_streak = attributes[:'longest_active_streak'] + else + self.longest_active_streak = nil + end + + if attributes.key?(:'current_active_streak') + self.current_active_streak = attributes[:'current_active_streak'] + else + self.current_active_streak = nil + end + + if attributes.key?(:'activity_period_days') + self.activity_period_days = attributes[:'activity_period_days'] + else + self.activity_period_days = nil + end + + if attributes.key?(:'token_swaps_performed') + self.token_swaps_performed = attributes[:'token_swaps_performed'] + else + self.token_swaps_performed = nil + end + + if attributes.key?(:'bridge_transactions_performed') + self.bridge_transactions_performed = attributes[:'bridge_transactions_performed'] + else + self.bridge_transactions_performed = nil + end + + if attributes.key?(:'lend_borrow_stake_transactions') + self.lend_borrow_stake_transactions = attributes[:'lend_borrow_stake_transactions'] + else + self.lend_borrow_stake_transactions = nil + end + + if attributes.key?(:'ens_contract_interactions') + self.ens_contract_interactions = attributes[:'ens_contract_interactions'] + else + self.ens_contract_interactions = nil + end + + if attributes.key?(:'smart_contract_deployments') + self.smart_contract_deployments = attributes[:'smart_contract_deployments'] + else + self.smart_contract_deployments = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @total_transactions.nil? + invalid_properties.push('invalid value for "total_transactions", total_transactions cannot be nil.') + end + + if @unique_days_active.nil? + invalid_properties.push('invalid value for "unique_days_active", unique_days_active cannot be nil.') + end + + if @longest_active_streak.nil? + invalid_properties.push('invalid value for "longest_active_streak", longest_active_streak cannot be nil.') + end + + if @current_active_streak.nil? + invalid_properties.push('invalid value for "current_active_streak", current_active_streak cannot be nil.') + end + + if @activity_period_days.nil? + invalid_properties.push('invalid value for "activity_period_days", activity_period_days cannot be nil.') + end + + if @token_swaps_performed.nil? + invalid_properties.push('invalid value for "token_swaps_performed", token_swaps_performed cannot be nil.') + end + + if @bridge_transactions_performed.nil? + invalid_properties.push('invalid value for "bridge_transactions_performed", bridge_transactions_performed cannot be nil.') + end + + if @lend_borrow_stake_transactions.nil? + invalid_properties.push('invalid value for "lend_borrow_stake_transactions", lend_borrow_stake_transactions cannot be nil.') + end + + if @ens_contract_interactions.nil? + invalid_properties.push('invalid value for "ens_contract_interactions", ens_contract_interactions cannot be nil.') + end + + if @smart_contract_deployments.nil? + invalid_properties.push('invalid value for "smart_contract_deployments", smart_contract_deployments cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @total_transactions.nil? + return false if @unique_days_active.nil? + return false if @longest_active_streak.nil? + return false if @current_active_streak.nil? + return false if @activity_period_days.nil? + return false if @token_swaps_performed.nil? + return false if @bridge_transactions_performed.nil? + return false if @lend_borrow_stake_transactions.nil? + return false if @ens_contract_interactions.nil? + return false if @smart_contract_deployments.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + total_transactions == o.total_transactions && + unique_days_active == o.unique_days_active && + longest_active_streak == o.longest_active_streak && + current_active_streak == o.current_active_streak && + activity_period_days == o.activity_period_days && + token_swaps_performed == o.token_swaps_performed && + bridge_transactions_performed == o.bridge_transactions_performed && + lend_borrow_stake_transactions == o.lend_borrow_stake_transactions && + ens_contract_interactions == o.ens_contract_interactions && + smart_contract_deployments == o.smart_contract_deployments + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [total_transactions, unique_days_active, longest_active_streak, current_active_streak, activity_period_days, token_swaps_performed, bridge_transactions_performed, lend_borrow_stake_transactions, ens_contract_interactions, smart_contract_deployments].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Coinbase::Client.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/coinbase/client/models/address_risk.rb b/lib/coinbase/client/models/address_risk.rb new file mode 100644 index 00000000..570f4385 --- /dev/null +++ b/lib/coinbase/client/models/address_risk.rb @@ -0,0 +1,223 @@ +=begin +#Coinbase Platform API + +#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 + +Generated by: https://openapi-generator.tech +Generator version: 7.9.0 + +=end + +require 'date' +require 'time' + +module Coinbase::Client + # The risk score of a blockchain address. + class AddressRisk + # The lower the score is, the higher the risk is. The score lies between -100 to 0. + attr_accessor :risk_score + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'risk_score' => :'risk_score' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'risk_score' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Coinbase::Client::AddressRisk` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Coinbase::Client::AddressRisk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'risk_score') + self.risk_score = attributes[:'risk_score'] + else + self.risk_score = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @risk_score.nil? + invalid_properties.push('invalid value for "risk_score", risk_score cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @risk_score.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + risk_score == o.risk_score + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [risk_score].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Coinbase::Client.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/coinbase/client/models/address_transaction_list.rb b/lib/coinbase/client/models/address_transaction_list.rb index 3c3a4c47..267c87d2 100644 --- a/lib/coinbase/client/models/address_transaction_list.rb +++ b/lib/coinbase/client/models/address_transaction_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/asset.rb b/lib/coinbase/client/models/asset.rb index 175f0f76..b6e16993 100644 --- a/lib/coinbase/client/models/asset.rb +++ b/lib/coinbase/client/models/asset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/balance.rb b/lib/coinbase/client/models/balance.rb index 08effe27..61badbcc 100644 --- a/lib/coinbase/client/models/balance.rb +++ b/lib/coinbase/client/models/balance.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/broadcast_contract_invocation_request.rb b/lib/coinbase/client/models/broadcast_contract_invocation_request.rb index 8732082a..b69c43cc 100644 --- a/lib/coinbase/client/models/broadcast_contract_invocation_request.rb +++ b/lib/coinbase/client/models/broadcast_contract_invocation_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/broadcast_staking_operation_request.rb b/lib/coinbase/client/models/broadcast_staking_operation_request.rb index b1cb50ca..eb82c471 100644 --- a/lib/coinbase/client/models/broadcast_staking_operation_request.rb +++ b/lib/coinbase/client/models/broadcast_staking_operation_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/broadcast_trade_request.rb b/lib/coinbase/client/models/broadcast_trade_request.rb index 4308a4ff..eb966c65 100644 --- a/lib/coinbase/client/models/broadcast_trade_request.rb +++ b/lib/coinbase/client/models/broadcast_trade_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/broadcast_transfer_request.rb b/lib/coinbase/client/models/broadcast_transfer_request.rb index 390bd005..b68f4be1 100644 --- a/lib/coinbase/client/models/broadcast_transfer_request.rb +++ b/lib/coinbase/client/models/broadcast_transfer_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/build_staking_operation_request.rb b/lib/coinbase/client/models/build_staking_operation_request.rb index 47674491..15ff48c2 100644 --- a/lib/coinbase/client/models/build_staking_operation_request.rb +++ b/lib/coinbase/client/models/build_staking_operation_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end @@ -27,6 +27,7 @@ class BuildStakingOperationRequest # The type of staking operation attr_accessor :action + # Additional options for the staking operation. attr_accessor :options # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/coinbase/client/models/contract_event.rb b/lib/coinbase/client/models/contract_event.rb index 221a6b39..1c937363 100644 --- a/lib/coinbase/client/models/contract_event.rb +++ b/lib/coinbase/client/models/contract_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/contract_event_list.rb b/lib/coinbase/client/models/contract_event_list.rb index acab7f72..a525dcaf 100644 --- a/lib/coinbase/client/models/contract_event_list.rb +++ b/lib/coinbase/client/models/contract_event_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/contract_invocation.rb b/lib/coinbase/client/models/contract_invocation.rb index 7b33d6af..a785e747 100644 --- a/lib/coinbase/client/models/contract_invocation.rb +++ b/lib/coinbase/client/models/contract_invocation.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/contract_invocation_list.rb b/lib/coinbase/client/models/contract_invocation_list.rb index 3f7056ce..6dc2a133 100644 --- a/lib/coinbase/client/models/contract_invocation_list.rb +++ b/lib/coinbase/client/models/contract_invocation_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_address_request.rb b/lib/coinbase/client/models/create_address_request.rb index 5e7e8f3a..9ee4372b 100644 --- a/lib/coinbase/client/models/create_address_request.rb +++ b/lib/coinbase/client/models/create_address_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_contract_invocation_request.rb b/lib/coinbase/client/models/create_contract_invocation_request.rb index 90f19f32..c4f798ec 100644 --- a/lib/coinbase/client/models/create_contract_invocation_request.rb +++ b/lib/coinbase/client/models/create_contract_invocation_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_fund_operation_request.rb b/lib/coinbase/client/models/create_fund_operation_request.rb index d8fee1ed..aaa57b47 100644 --- a/lib/coinbase/client/models/create_fund_operation_request.rb +++ b/lib/coinbase/client/models/create_fund_operation_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_fund_quote_request.rb b/lib/coinbase/client/models/create_fund_quote_request.rb index 23952537..cf171e84 100644 --- a/lib/coinbase/client/models/create_fund_quote_request.rb +++ b/lib/coinbase/client/models/create_fund_quote_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_payload_signature_request.rb b/lib/coinbase/client/models/create_payload_signature_request.rb index 6d16a516..ec433358 100644 --- a/lib/coinbase/client/models/create_payload_signature_request.rb +++ b/lib/coinbase/client/models/create_payload_signature_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_server_signer_request.rb b/lib/coinbase/client/models/create_server_signer_request.rb index c212b759..e7bf0377 100644 --- a/lib/coinbase/client/models/create_server_signer_request.rb +++ b/lib/coinbase/client/models/create_server_signer_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_smart_contract_request.rb b/lib/coinbase/client/models/create_smart_contract_request.rb index b13eec30..98706287 100644 --- a/lib/coinbase/client/models/create_smart_contract_request.rb +++ b/lib/coinbase/client/models/create_smart_contract_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_staking_operation_request.rb b/lib/coinbase/client/models/create_staking_operation_request.rb index 9a57dc78..2598b4fa 100644 --- a/lib/coinbase/client/models/create_staking_operation_request.rb +++ b/lib/coinbase/client/models/create_staking_operation_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end @@ -24,6 +24,7 @@ class CreateStakingOperationRequest # The type of staking operation. attr_accessor :action + # Additional options for the staking operation. attr_accessor :options # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/coinbase/client/models/create_trade_request.rb b/lib/coinbase/client/models/create_trade_request.rb index 9e2a48b8..9dd16d76 100644 --- a/lib/coinbase/client/models/create_trade_request.rb +++ b/lib/coinbase/client/models/create_trade_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_transfer_request.rb b/lib/coinbase/client/models/create_transfer_request.rb index d64c0893..f1798341 100644 --- a/lib/coinbase/client/models/create_transfer_request.rb +++ b/lib/coinbase/client/models/create_transfer_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_wallet_request.rb b/lib/coinbase/client/models/create_wallet_request.rb index 45c26d86..b7dc32ab 100644 --- a/lib/coinbase/client/models/create_wallet_request.rb +++ b/lib/coinbase/client/models/create_wallet_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_wallet_request_wallet.rb b/lib/coinbase/client/models/create_wallet_request_wallet.rb index 0fa7474a..f0d451bc 100644 --- a/lib/coinbase/client/models/create_wallet_request_wallet.rb +++ b/lib/coinbase/client/models/create_wallet_request_wallet.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_wallet_webhook_request.rb b/lib/coinbase/client/models/create_wallet_webhook_request.rb index e094dca2..11febcb8 100644 --- a/lib/coinbase/client/models/create_wallet_webhook_request.rb +++ b/lib/coinbase/client/models/create_wallet_webhook_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_webhook_request.rb b/lib/coinbase/client/models/create_webhook_request.rb index 1d0cd454..6db3a98a 100644 --- a/lib/coinbase/client/models/create_webhook_request.rb +++ b/lib/coinbase/client/models/create_webhook_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/crypto_amount.rb b/lib/coinbase/client/models/crypto_amount.rb index 41702fb7..64ab664c 100644 --- a/lib/coinbase/client/models/crypto_amount.rb +++ b/lib/coinbase/client/models/crypto_amount.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/deploy_smart_contract_request.rb b/lib/coinbase/client/models/deploy_smart_contract_request.rb index 9093f371..33e30cdd 100644 --- a/lib/coinbase/client/models/deploy_smart_contract_request.rb +++ b/lib/coinbase/client/models/deploy_smart_contract_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/erc20_transfer_event.rb b/lib/coinbase/client/models/erc20_transfer_event.rb index 47836dc9..e91d7efa 100644 --- a/lib/coinbase/client/models/erc20_transfer_event.rb +++ b/lib/coinbase/client/models/erc20_transfer_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/erc721_transfer_event.rb b/lib/coinbase/client/models/erc721_transfer_event.rb index 6864298c..30089b4a 100644 --- a/lib/coinbase/client/models/erc721_transfer_event.rb +++ b/lib/coinbase/client/models/erc721_transfer_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/error.rb b/lib/coinbase/client/models/error.rb index ecd035e8..f47f1801 100644 --- a/lib/coinbase/client/models/error.rb +++ b/lib/coinbase/client/models/error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/ethereum_token_transfer.rb b/lib/coinbase/client/models/ethereum_token_transfer.rb index f3f904cc..87de3bcf 100644 --- a/lib/coinbase/client/models/ethereum_token_transfer.rb +++ b/lib/coinbase/client/models/ethereum_token_transfer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/ethereum_transaction.rb b/lib/coinbase/client/models/ethereum_transaction.rb index 12820663..d426fa76 100644 --- a/lib/coinbase/client/models/ethereum_transaction.rb +++ b/lib/coinbase/client/models/ethereum_transaction.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/ethereum_transaction_access.rb b/lib/coinbase/client/models/ethereum_transaction_access.rb index 5b452abf..3e0680db 100644 --- a/lib/coinbase/client/models/ethereum_transaction_access.rb +++ b/lib/coinbase/client/models/ethereum_transaction_access.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/ethereum_transaction_access_list.rb b/lib/coinbase/client/models/ethereum_transaction_access_list.rb index 1b43540a..f40537f2 100644 --- a/lib/coinbase/client/models/ethereum_transaction_access_list.rb +++ b/lib/coinbase/client/models/ethereum_transaction_access_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb b/lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb index e8355a4d..630164ed 100644 --- a/lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb +++ b/lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/ethereum_validator_metadata.rb b/lib/coinbase/client/models/ethereum_validator_metadata.rb index 54aee44b..9de82e96 100644 --- a/lib/coinbase/client/models/ethereum_validator_metadata.rb +++ b/lib/coinbase/client/models/ethereum_validator_metadata.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/faucet_transaction.rb b/lib/coinbase/client/models/faucet_transaction.rb index d607f53c..87a7a266 100644 --- a/lib/coinbase/client/models/faucet_transaction.rb +++ b/lib/coinbase/client/models/faucet_transaction.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/feature_set.rb b/lib/coinbase/client/models/feature_set.rb index f85ed0d8..87eb5778 100644 --- a/lib/coinbase/client/models/feature_set.rb +++ b/lib/coinbase/client/models/feature_set.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/fetch_historical_staking_balances200_response.rb b/lib/coinbase/client/models/fetch_historical_staking_balances200_response.rb index 7d47744d..a84af518 100644 --- a/lib/coinbase/client/models/fetch_historical_staking_balances200_response.rb +++ b/lib/coinbase/client/models/fetch_historical_staking_balances200_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/fetch_staking_rewards200_response.rb b/lib/coinbase/client/models/fetch_staking_rewards200_response.rb index 3bc39dec..04684e23 100644 --- a/lib/coinbase/client/models/fetch_staking_rewards200_response.rb +++ b/lib/coinbase/client/models/fetch_staking_rewards200_response.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/fetch_staking_rewards_request.rb b/lib/coinbase/client/models/fetch_staking_rewards_request.rb index c8290f91..b17046f8 100644 --- a/lib/coinbase/client/models/fetch_staking_rewards_request.rb +++ b/lib/coinbase/client/models/fetch_staking_rewards_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/fiat_amount.rb b/lib/coinbase/client/models/fiat_amount.rb index 6fcbfc40..d2782bd7 100644 --- a/lib/coinbase/client/models/fiat_amount.rb +++ b/lib/coinbase/client/models/fiat_amount.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/fund_operation.rb b/lib/coinbase/client/models/fund_operation.rb index 9c6ea439..2c797907 100644 --- a/lib/coinbase/client/models/fund_operation.rb +++ b/lib/coinbase/client/models/fund_operation.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/fund_operation_fees.rb b/lib/coinbase/client/models/fund_operation_fees.rb index f27416e9..99bcd0d1 100644 --- a/lib/coinbase/client/models/fund_operation_fees.rb +++ b/lib/coinbase/client/models/fund_operation_fees.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/fund_operation_list.rb b/lib/coinbase/client/models/fund_operation_list.rb index 2e25b453..c7789dad 100644 --- a/lib/coinbase/client/models/fund_operation_list.rb +++ b/lib/coinbase/client/models/fund_operation_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/fund_quote.rb b/lib/coinbase/client/models/fund_quote.rb index 7e867d0f..07eaf115 100644 --- a/lib/coinbase/client/models/fund_quote.rb +++ b/lib/coinbase/client/models/fund_quote.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/get_staking_context_request.rb b/lib/coinbase/client/models/get_staking_context_request.rb index 71718d40..5edda018 100644 --- a/lib/coinbase/client/models/get_staking_context_request.rb +++ b/lib/coinbase/client/models/get_staking_context_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end @@ -24,6 +24,7 @@ class GetStakingContextRequest # The onchain address for which the staking context is being fetched attr_accessor :address_id + # Additional options for getting the staking context. This typically includes network specific fields. attr_accessor :options # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/coinbase/client/models/historical_balance.rb b/lib/coinbase/client/models/historical_balance.rb index 55f66a2d..fc88f20f 100644 --- a/lib/coinbase/client/models/historical_balance.rb +++ b/lib/coinbase/client/models/historical_balance.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/multi_token_contract_options.rb b/lib/coinbase/client/models/multi_token_contract_options.rb index 8f955667..abab258f 100644 --- a/lib/coinbase/client/models/multi_token_contract_options.rb +++ b/lib/coinbase/client/models/multi_token_contract_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/network.rb b/lib/coinbase/client/models/network.rb index 73c4eccb..d66729ab 100644 --- a/lib/coinbase/client/models/network.rb +++ b/lib/coinbase/client/models/network.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/network_identifier.rb b/lib/coinbase/client/models/network_identifier.rb index 3dc097b5..bdd04ba7 100644 --- a/lib/coinbase/client/models/network_identifier.rb +++ b/lib/coinbase/client/models/network_identifier.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/nft_contract_options.rb b/lib/coinbase/client/models/nft_contract_options.rb index 2f05c3ee..142d245c 100644 --- a/lib/coinbase/client/models/nft_contract_options.rb +++ b/lib/coinbase/client/models/nft_contract_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/onchain_name.rb b/lib/coinbase/client/models/onchain_name.rb index b4c04f45..1dd86d45 100644 --- a/lib/coinbase/client/models/onchain_name.rb +++ b/lib/coinbase/client/models/onchain_name.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/onchain_name_list.rb b/lib/coinbase/client/models/onchain_name_list.rb index 974c452b..57b72eb0 100644 --- a/lib/coinbase/client/models/onchain_name_list.rb +++ b/lib/coinbase/client/models/onchain_name_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/payload_signature.rb b/lib/coinbase/client/models/payload_signature.rb index 548f2631..fe9df04f 100644 --- a/lib/coinbase/client/models/payload_signature.rb +++ b/lib/coinbase/client/models/payload_signature.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/payload_signature_list.rb b/lib/coinbase/client/models/payload_signature_list.rb index 199f2d0d..ea692d0f 100644 --- a/lib/coinbase/client/models/payload_signature_list.rb +++ b/lib/coinbase/client/models/payload_signature_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/read_contract_request.rb b/lib/coinbase/client/models/read_contract_request.rb index 9e4ec52e..723093c3 100644 --- a/lib/coinbase/client/models/read_contract_request.rb +++ b/lib/coinbase/client/models/read_contract_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/seed_creation_event.rb b/lib/coinbase/client/models/seed_creation_event.rb index 7f90729a..a2f474f2 100644 --- a/lib/coinbase/client/models/seed_creation_event.rb +++ b/lib/coinbase/client/models/seed_creation_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/seed_creation_event_result.rb b/lib/coinbase/client/models/seed_creation_event_result.rb index 1f3d8f53..a6c79557 100644 --- a/lib/coinbase/client/models/seed_creation_event_result.rb +++ b/lib/coinbase/client/models/seed_creation_event_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/server_signer.rb b/lib/coinbase/client/models/server_signer.rb index 0d8765cd..9f405018 100644 --- a/lib/coinbase/client/models/server_signer.rb +++ b/lib/coinbase/client/models/server_signer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/server_signer_event.rb b/lib/coinbase/client/models/server_signer_event.rb index 7927c499..24e02c85 100644 --- a/lib/coinbase/client/models/server_signer_event.rb +++ b/lib/coinbase/client/models/server_signer_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/server_signer_event_event.rb b/lib/coinbase/client/models/server_signer_event_event.rb index 1c9bd8e8..7fbe5236 100644 --- a/lib/coinbase/client/models/server_signer_event_event.rb +++ b/lib/coinbase/client/models/server_signer_event_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/server_signer_event_list.rb b/lib/coinbase/client/models/server_signer_event_list.rb index 184f7929..91fb04da 100644 --- a/lib/coinbase/client/models/server_signer_event_list.rb +++ b/lib/coinbase/client/models/server_signer_event_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/server_signer_list.rb b/lib/coinbase/client/models/server_signer_list.rb index 36d86cae..bf15e068 100644 --- a/lib/coinbase/client/models/server_signer_list.rb +++ b/lib/coinbase/client/models/server_signer_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/signature_creation_event.rb b/lib/coinbase/client/models/signature_creation_event.rb index 3b734dfc..65749713 100644 --- a/lib/coinbase/client/models/signature_creation_event.rb +++ b/lib/coinbase/client/models/signature_creation_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/signature_creation_event_result.rb b/lib/coinbase/client/models/signature_creation_event_result.rb index 61c7a7a5..fed1aeb5 100644 --- a/lib/coinbase/client/models/signature_creation_event_result.rb +++ b/lib/coinbase/client/models/signature_creation_event_result.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb b/lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb index 2fe22ccb..ee090ba8 100644 --- a/lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb +++ b/lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/smart_contract.rb b/lib/coinbase/client/models/smart_contract.rb index b0d34525..9c8a3621 100644 --- a/lib/coinbase/client/models/smart_contract.rb +++ b/lib/coinbase/client/models/smart_contract.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/smart_contract_list.rb b/lib/coinbase/client/models/smart_contract_list.rb index af2e0608..a0e95b5d 100644 --- a/lib/coinbase/client/models/smart_contract_list.rb +++ b/lib/coinbase/client/models/smart_contract_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/smart_contract_options.rb b/lib/coinbase/client/models/smart_contract_options.rb index 185deeab..4ca54860 100644 --- a/lib/coinbase/client/models/smart_contract_options.rb +++ b/lib/coinbase/client/models/smart_contract_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/smart_contract_type.rb b/lib/coinbase/client/models/smart_contract_type.rb index 5b37d235..3d0f0bfd 100644 --- a/lib/coinbase/client/models/smart_contract_type.rb +++ b/lib/coinbase/client/models/smart_contract_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/solidity_value.rb b/lib/coinbase/client/models/solidity_value.rb index 39533e27..ee688923 100644 --- a/lib/coinbase/client/models/solidity_value.rb +++ b/lib/coinbase/client/models/solidity_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end @@ -132,7 +132,7 @@ def list_invalid_properties def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["uint8", "uint16", "uint32", "uint64", "uint128", "uint256", "int8", "int16", "int32", "int64", "int128", "int256", "address", "bool", "string", "bytes", "bytes1", "bytes2", "bytes3", "bytes4", "bytes5", "bytes6", "bytes7", "bytes8", "bytes9", "bytes10", "bytes11", "bytes12", "bytes13", "bytes14", "bytes15", "bytes16", "bytes17", "bytes18", "bytes19", "bytes20", "bytes21", "bytes22", "bytes23", "bytes24", "bytes25", "bytes26", "bytes27", "bytes28", "bytes29", "bytes30", "bytes31", "bytes32", "array", "tuple", "unknown_default_open_api"]) + type_validator = EnumAttributeValidator.new('String', ["uint8", "uint16", "uint32", "uint64", "uint128", "uint160", "uint256", "int8", "int16", "int24", "int32", "int56", "int64", "int128", "int256", "address", "bool", "string", "bytes", "bytes1", "bytes2", "bytes3", "bytes4", "bytes5", "bytes6", "bytes7", "bytes8", "bytes9", "bytes10", "bytes11", "bytes12", "bytes13", "bytes14", "bytes15", "bytes16", "bytes17", "bytes18", "bytes19", "bytes20", "bytes21", "bytes22", "bytes23", "bytes24", "bytes25", "bytes26", "bytes27", "bytes28", "bytes29", "bytes30", "bytes31", "bytes32", "array", "tuple", "unknown_default_open_api"]) return false unless type_validator.valid?(@type) true end @@ -140,7 +140,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["uint8", "uint16", "uint32", "uint64", "uint128", "uint256", "int8", "int16", "int32", "int64", "int128", "int256", "address", "bool", "string", "bytes", "bytes1", "bytes2", "bytes3", "bytes4", "bytes5", "bytes6", "bytes7", "bytes8", "bytes9", "bytes10", "bytes11", "bytes12", "bytes13", "bytes14", "bytes15", "bytes16", "bytes17", "bytes18", "bytes19", "bytes20", "bytes21", "bytes22", "bytes23", "bytes24", "bytes25", "bytes26", "bytes27", "bytes28", "bytes29", "bytes30", "bytes31", "bytes32", "array", "tuple", "unknown_default_open_api"]) + validator = EnumAttributeValidator.new('String', ["uint8", "uint16", "uint32", "uint64", "uint128", "uint160", "uint256", "int8", "int16", "int24", "int32", "int56", "int64", "int128", "int256", "address", "bool", "string", "bytes", "bytes1", "bytes2", "bytes3", "bytes4", "bytes5", "bytes6", "bytes7", "bytes8", "bytes9", "bytes10", "bytes11", "bytes12", "bytes13", "bytes14", "bytes15", "bytes16", "bytes17", "bytes18", "bytes19", "bytes20", "bytes21", "bytes22", "bytes23", "bytes24", "bytes25", "bytes26", "bytes27", "bytes28", "bytes29", "bytes30", "bytes31", "bytes32", "array", "tuple", "unknown_default_open_api"]) unless validator.valid?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." end diff --git a/lib/coinbase/client/models/sponsored_send.rb b/lib/coinbase/client/models/sponsored_send.rb index f181dcb1..3621c9a1 100644 --- a/lib/coinbase/client/models/sponsored_send.rb +++ b/lib/coinbase/client/models/sponsored_send.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/staking_balance.rb b/lib/coinbase/client/models/staking_balance.rb index 13a30e05..8138b63b 100644 --- a/lib/coinbase/client/models/staking_balance.rb +++ b/lib/coinbase/client/models/staking_balance.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/staking_context.rb b/lib/coinbase/client/models/staking_context.rb index 33fd9489..886b9168 100644 --- a/lib/coinbase/client/models/staking_context.rb +++ b/lib/coinbase/client/models/staking_context.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/staking_context_context.rb b/lib/coinbase/client/models/staking_context_context.rb index 3b33225d..e30e967b 100644 --- a/lib/coinbase/client/models/staking_context_context.rb +++ b/lib/coinbase/client/models/staking_context_context.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/staking_operation.rb b/lib/coinbase/client/models/staking_operation.rb index bc9c6b03..957ee980 100644 --- a/lib/coinbase/client/models/staking_operation.rb +++ b/lib/coinbase/client/models/staking_operation.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/staking_operation_metadata.rb b/lib/coinbase/client/models/staking_operation_metadata.rb index 0331074c..fe363328 100644 --- a/lib/coinbase/client/models/staking_operation_metadata.rb +++ b/lib/coinbase/client/models/staking_operation_metadata.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/staking_reward.rb b/lib/coinbase/client/models/staking_reward.rb index 22a9e3bd..a0294853 100644 --- a/lib/coinbase/client/models/staking_reward.rb +++ b/lib/coinbase/client/models/staking_reward.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/staking_reward_format.rb b/lib/coinbase/client/models/staking_reward_format.rb index b39b1f1a..0192ebf1 100644 --- a/lib/coinbase/client/models/staking_reward_format.rb +++ b/lib/coinbase/client/models/staking_reward_format.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/staking_reward_usd_value.rb b/lib/coinbase/client/models/staking_reward_usd_value.rb index f17be285..fe302155 100644 --- a/lib/coinbase/client/models/staking_reward_usd_value.rb +++ b/lib/coinbase/client/models/staking_reward_usd_value.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/token_contract_options.rb b/lib/coinbase/client/models/token_contract_options.rb index 8042abec..23f4f283 100644 --- a/lib/coinbase/client/models/token_contract_options.rb +++ b/lib/coinbase/client/models/token_contract_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/token_transfer_type.rb b/lib/coinbase/client/models/token_transfer_type.rb index 15e57153..f11a7e5a 100644 --- a/lib/coinbase/client/models/token_transfer_type.rb +++ b/lib/coinbase/client/models/token_transfer_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/trade.rb b/lib/coinbase/client/models/trade.rb index b55b9f6f..4623a974 100644 --- a/lib/coinbase/client/models/trade.rb +++ b/lib/coinbase/client/models/trade.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/trade_list.rb b/lib/coinbase/client/models/trade_list.rb index 71d1c47e..b2753265 100644 --- a/lib/coinbase/client/models/trade_list.rb +++ b/lib/coinbase/client/models/trade_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/transaction.rb b/lib/coinbase/client/models/transaction.rb index d276560c..c28c5b8f 100644 --- a/lib/coinbase/client/models/transaction.rb +++ b/lib/coinbase/client/models/transaction.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/transaction_content.rb b/lib/coinbase/client/models/transaction_content.rb index 9e95d51f..470b9689 100644 --- a/lib/coinbase/client/models/transaction_content.rb +++ b/lib/coinbase/client/models/transaction_content.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/transaction_type.rb b/lib/coinbase/client/models/transaction_type.rb index 40ae87fd..076605ec 100644 --- a/lib/coinbase/client/models/transaction_type.rb +++ b/lib/coinbase/client/models/transaction_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/transfer.rb b/lib/coinbase/client/models/transfer.rb index c27da9d7..7a0123e8 100644 --- a/lib/coinbase/client/models/transfer.rb +++ b/lib/coinbase/client/models/transfer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/transfer_list.rb b/lib/coinbase/client/models/transfer_list.rb index 3570d698..4ff23e36 100644 --- a/lib/coinbase/client/models/transfer_list.rb +++ b/lib/coinbase/client/models/transfer_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/update_webhook_request.rb b/lib/coinbase/client/models/update_webhook_request.rb index 0c57a282..25c850d5 100644 --- a/lib/coinbase/client/models/update_webhook_request.rb +++ b/lib/coinbase/client/models/update_webhook_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/user.rb b/lib/coinbase/client/models/user.rb index 8def38f5..1457faa5 100644 --- a/lib/coinbase/client/models/user.rb +++ b/lib/coinbase/client/models/user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/validator.rb b/lib/coinbase/client/models/validator.rb index c798bcfc..4984b6a1 100644 --- a/lib/coinbase/client/models/validator.rb +++ b/lib/coinbase/client/models/validator.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/validator_details.rb b/lib/coinbase/client/models/validator_details.rb index 992c6f39..9ab1bde6 100644 --- a/lib/coinbase/client/models/validator_details.rb +++ b/lib/coinbase/client/models/validator_details.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/validator_list.rb b/lib/coinbase/client/models/validator_list.rb index 5152eb64..8a99dcaf 100644 --- a/lib/coinbase/client/models/validator_list.rb +++ b/lib/coinbase/client/models/validator_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/validator_status.rb b/lib/coinbase/client/models/validator_status.rb index 51a12293..86c17282 100644 --- a/lib/coinbase/client/models/validator_status.rb +++ b/lib/coinbase/client/models/validator_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/wallet.rb b/lib/coinbase/client/models/wallet.rb index 84124f48..85f0a6f2 100644 --- a/lib/coinbase/client/models/wallet.rb +++ b/lib/coinbase/client/models/wallet.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/wallet_list.rb b/lib/coinbase/client/models/wallet_list.rb index 7b2e7976..11e2565e 100644 --- a/lib/coinbase/client/models/wallet_list.rb +++ b/lib/coinbase/client/models/wallet_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/webhook.rb b/lib/coinbase/client/models/webhook.rb index d7e47de9..ca3d666b 100644 --- a/lib/coinbase/client/models/webhook.rb +++ b/lib/coinbase/client/models/webhook.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/webhook_event_filter.rb b/lib/coinbase/client/models/webhook_event_filter.rb index a22eeff6..204b1496 100644 --- a/lib/coinbase/client/models/webhook_event_filter.rb +++ b/lib/coinbase/client/models/webhook_event_filter.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/webhook_event_type.rb b/lib/coinbase/client/models/webhook_event_type.rb index f3a6e1e2..df57b98c 100644 --- a/lib/coinbase/client/models/webhook_event_type.rb +++ b/lib/coinbase/client/models/webhook_event_type.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/webhook_event_type_filter.rb b/lib/coinbase/client/models/webhook_event_type_filter.rb index b4990f60..7e6dcbd2 100644 --- a/lib/coinbase/client/models/webhook_event_type_filter.rb +++ b/lib/coinbase/client/models/webhook_event_type_filter.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/webhook_list.rb b/lib/coinbase/client/models/webhook_list.rb index 53020130..6b575061 100644 --- a/lib/coinbase/client/models/webhook_list.rb +++ b/lib/coinbase/client/models/webhook_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/webhook_wallet_activity_filter.rb b/lib/coinbase/client/models/webhook_wallet_activity_filter.rb index 9448e09b..1f70afa4 100644 --- a/lib/coinbase/client/models/webhook_wallet_activity_filter.rb +++ b/lib/coinbase/client/models/webhook_wallet_activity_filter.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/version.rb b/lib/coinbase/client/version.rb index 8637593f..0eff73f9 100644 --- a/lib/coinbase/client/version.rb +++ b/lib/coinbase/client/version.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.8.0 +Generator version: 7.9.0 =end