diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index 4972524b..38664030 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.4 - name: Install dependencies run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 81f8023d..25878771 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.7 + ruby-version: 3.4 - name: Install dependencies run: | diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index c3eb5744..d9b1261b 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby: ['2.7', '3.0', '3.1', '3.2', '3.3'] + ruby: ['3.0', '3.1', '3.2', '3.3', '3.4'] steps: - uses: actions/checkout@v2 diff --git a/.rubocop.yml b/.rubocop.yml index 0c00e1e5..73392ce3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,7 +4,7 @@ require: AllCops: NewCops: enable SuggestExtensions: false - TargetRubyVersion: 2.7 + TargetRubyVersion: 3.0 Exclude: # Exclude autogenerated files. - "lib/coinbase/client.rb" diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c7a1dee..e98aaac2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.14.0] - 2025-01-14 + +### Added +- Add `skip_batching` option to `Wallet.transfer` to allow for lower latency gasless transfers. + +### Breaking +- Removed support for EOL Ruby v2.7 + ## [0.13.0] - 2024-12-19 ### Added @@ -216,4 +224,4 @@ Initial release of the Coinbase Ruby SDK. Purely client-side implementation. - Wallet creation and export - Address creation - Send and receive ETH -- Supported networks: Base Sepolia +- Supported networks: Base Sepolia \ No newline at end of file diff --git a/README.md b/README.md index 6b889e99..52e0b9f6 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ The SDK supports various verbs on Developer-custodied Wallets across multiple ne Make sure that your developer environment satisfies all of the requirements before proceeding through the quickstart. -### Ruby 2.7+ +### Ruby 3+ -The Coinbase server-side SDK requires Ruby 2.7 or higher (we recommend 2.7.5). To view your currently installed version of Ruby, run +The Coinbase server-side SDK requires Ruby 3.0 or higher. To view your currently installed version of Ruby, run the following from the command-line: ```bash @@ -30,11 +30,11 @@ ruby -v We recommend installing and managing Ruby versions with `rbenv`. See [Using Package Managers](https://github.com/rbenv/rbenv?tab=readme-ov-file#homebrew) in the rbenv README for instructions on how to install `rbenv`. -Once `rbenv` has been installed, you can install and use Ruby 2.7.5 by running the following commands: +Once `rbenv` has been installed, you can install and use Ruby v3 by running the following commands: ```bash -rbenv install 2.7.5 -rbenv global 2.7.5 +rbenv install 3.3.0 +rbenv global 3.3.0 ``` ### Rbsecp256k1 Gem @@ -218,6 +218,12 @@ puts "Wallet successfully created: #{wallet3}" transfer = wallet1.transfer(0.00001, :usdc, wallet3, gasless: true).wait! ``` +By default, gasless transfers are batched with other transfers, and might take longer to submit. If you want to opt out of batching, you can set the `skip_batching` option to `True`, which will submit the transaction immediately. + +```ruby +transfer = wallet1.transfer(0.00001, "usdc", wallet3, gasless: true, skip_batching: true).wait! +``` + ## Listing Transfers ``` @@ -334,11 +340,11 @@ See [External Addresses docs](./docs/external-addresses.md) for more information ### Ruby Version -Developing in this repository requires Ruby >= 2.7.0. To install this on an M2 Mac, +Developing in this repository requires Ruby >= 3.0.0. To install this on an M2 Mac, run the [following command](https://github.com/rbenv/ruby-build/discussions/2034): ```bash -RUBY_CFLAGS=-DUSE_FFI_CLOSURE_ALLOC rbenv install 2.7.0 +RUBY_CFLAGS=-DUSE_FFI_CLOSURE_ALLOC rbenv install 3.3.0 ``` ### Set-up diff --git a/coinbase.gemspec b/coinbase.gemspec index 0d9431c0..8c529496 100644 --- a/coinbase.gemspec +++ b/coinbase.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |spec| spec.email = 'yuga.cohler@coinbase.com' spec.homepage = 'https://github.com/coinbase/coinbase-sdk-ruby' spec.license = 'Apache-2.0' - spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0') + spec.required_ruby_version = Gem::Requirement.new('>= 3.0.0') spec.metadata['rubygems_mfa_required'] = 'true' diff --git a/lib/coinbase/address/wallet_address.rb b/lib/coinbase/address/wallet_address.rb index 6fa19ecd..e3f6ce15 100644 --- a/lib/coinbase/address/wallet_address.rb +++ b/lib/coinbase/address/wallet_address.rb @@ -41,9 +41,11 @@ def key=(key) # default address. If a String, interprets it as the address ID. # @param gasless [Boolean] Whether gas fee for the transfer should be covered by Coinbase. # Defaults to false. Check the API documentation for network and asset support. - # Whether the transfer should be gasless. Defaults to false. + # @param skip_batching [Boolean] When true, the Transfer will be submitted immediately. + # Otherwise, the Transfer will be batched. + # Defaults to false. Note: requires gasless option to be set to true. # @return [Coinbase::Transfer] The Transfer object. - def transfer(amount, asset_id, destination, gasless: false) + def transfer(amount, asset_id, destination, gasless: false, skip_batching: false) ensure_can_sign! ensure_sufficient_balance!(amount, asset_id) @@ -54,7 +56,8 @@ def transfer(amount, asset_id, destination, gasless: false) destination: destination, network: network, wallet_id: wallet_id, - gasless: gasless + gasless: gasless, + skip_batching: skip_batching ) # If a server signer is managing keys, it will sign and broadcast the underlying transfer transaction out of band. diff --git a/lib/coinbase/client.rb b/lib/coinbase/client.rb index 0e9811b5..cafd00f6 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.10.0 +Generator version: 7.9.0 =end @@ -30,6 +30,7 @@ Coinbase::Client.autoload :BroadcastExternalTransferRequest, 'coinbase/client/models/broadcast_external_transfer_request' Coinbase::Client.autoload :BroadcastStakingOperationRequest, 'coinbase/client/models/broadcast_staking_operation_request' Coinbase::Client.autoload :BroadcastTradeRequest, 'coinbase/client/models/broadcast_trade_request' +Coinbase::Client.autoload :BroadcastTransferRequest, 'coinbase/client/models/broadcast_transfer_request' Coinbase::Client.autoload :BuildStakingOperationRequest, 'coinbase/client/models/build_staking_operation_request' Coinbase::Client.autoload :ContractEvent, 'coinbase/client/models/contract_event' Coinbase::Client.autoload :ContractEventList, 'coinbase/client/models/contract_event_list' diff --git a/lib/coinbase/client/api/addresses_api.rb b/lib/coinbase/client/api/addresses_api.rb index 5e98bf3c..4317bb7e 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.10.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 f6c86cec..347c7818 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.10.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 b184c488..bebf00df 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.10.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 1e4a277f..40d755c3 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.10.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 704f3724..a78ce170 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.10.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 17aa6223..5211e5a4 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.10.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 b868c803..facc54cd 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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/mpc_wallet_stake_api.rb b/lib/coinbase/client/api/mpc_wallet_stake_api.rb index b57a8828..607c8277 100644 --- a/lib/coinbase/client/api/mpc_wallet_stake_api.rb +++ b/lib/coinbase/client/api/mpc_wallet_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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/networks_api.rb b/lib/coinbase/client/api/networks_api.rb index c9de56aa..c76fe501 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.10.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 e34428ad..4757e4b3 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.10.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 index 896516d3..072c5574 100644 --- a/lib/coinbase/client/api/reputation_api.rb +++ b/lib/coinbase/client/api/reputation_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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/server_signers_api.rb b/lib/coinbase/client/api/server_signers_api.rb index 64f93b65..b68858f0 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.10.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 822bb910..238583fb 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.10.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 fbd428d4..b182fe82 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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/trades_api.rb b/lib/coinbase/client/api/trades_api.rb index a8733997..03cbea9c 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.10.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 c4f5f0b0..29b91fac 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.10.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 a190a3a5..5fce0799 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.10.0 +Generator version: 7.9.0 =end @@ -24,11 +24,11 @@ def initialize(api_client = ApiClient.default) # @param wallet_id [String] The ID of the wallet the address belongs to # @param address_id [String] The ID of the address the transfer belongs to # @param transfer_id [String] The ID of the transfer to broadcast - # @param broadcast_external_transfer_request [BroadcastExternalTransferRequest] + # @param broadcast_transfer_request [BroadcastTransferRequest] # @param [Hash] opts the optional parameters # @return [Transfer] - def broadcast_transfer(wallet_id, address_id, transfer_id, broadcast_external_transfer_request, opts = {}) - data, _status_code, _headers = broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_external_transfer_request, opts) + def broadcast_transfer(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts = {}) + data, _status_code, _headers = broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts) data end @@ -37,10 +37,10 @@ def broadcast_transfer(wallet_id, address_id, transfer_id, broadcast_external_tr # @param wallet_id [String] The ID of the wallet the address belongs to # @param address_id [String] The ID of the address the transfer belongs to # @param transfer_id [String] The ID of the transfer to broadcast - # @param broadcast_external_transfer_request [BroadcastExternalTransferRequest] + # @param broadcast_transfer_request [BroadcastTransferRequest] # @param [Hash] opts the optional parameters # @return [Array<(Transfer, Integer, Hash)>] Transfer data, response status code and response headers - def broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_external_transfer_request, opts = {}) + def broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TransfersApi.broadcast_transfer ...' end @@ -56,9 +56,9 @@ def broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadc if @api_client.config.client_side_validation && transfer_id.nil? fail ArgumentError, "Missing the required parameter 'transfer_id' when calling TransfersApi.broadcast_transfer" end - # verify the required parameter 'broadcast_external_transfer_request' is set - if @api_client.config.client_side_validation && broadcast_external_transfer_request.nil? - fail ArgumentError, "Missing the required parameter 'broadcast_external_transfer_request' when calling TransfersApi.broadcast_transfer" + # verify the required parameter 'broadcast_transfer_request' is set + if @api_client.config.client_side_validation && broadcast_transfer_request.nil? + fail ArgumentError, "Missing the required parameter 'broadcast_transfer_request' when calling TransfersApi.broadcast_transfer" end # resource path local_var_path = '/v1/wallets/{wallet_id}/addresses/{address_id}/transfers/{transfer_id}/broadcast'.sub('{' + 'wallet_id' + '}', CGI.escape(wallet_id.to_s)).sub('{' + 'address_id' + '}', CGI.escape(address_id.to_s)).sub('{' + 'transfer_id' + '}', CGI.escape(transfer_id.to_s)) @@ -80,7 +80,7 @@ def broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadc form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:debug_body] || @api_client.object_to_http_body(broadcast_external_transfer_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(broadcast_transfer_request) # return_type return_type = opts[:debug_return_type] || 'Transfer' diff --git a/lib/coinbase/client/api/users_api.rb b/lib/coinbase/client/api/users_api.rb index 4c0898f5..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api/wallets_api.rb b/lib/coinbase/client/api/wallets_api.rb index 55fde466..a6ce1abd 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.10.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 6de86c8e..9e804eff 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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api_client.rb b/lib/coinbase/client/api_client.rb index 2844c8b3..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/api_error.rb b/lib/coinbase/client/api_error.rb index 4e169b7d..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/configuration.rb b/lib/coinbase/client/configuration.rb index a68dc151..bebffa82 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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/address.rb b/lib/coinbase/client/models/address.rb index ec4561f5..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.10.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 a6c2af81..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.10.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 203515c3..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.10.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 3b24d30e..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.10.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 index 39a47b1e..6adb2ad1 100644 --- a/lib/coinbase/client/models/address_reputation.rb +++ b/lib/coinbase/client/models/address_reputation.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 0.0.1-alpha Generated by: https://openapi-generator.tech -Generator version: 7.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/address_reputation_metadata.rb b/lib/coinbase/client/models/address_reputation_metadata.rb index 2749bbf3..36c7bf44 100644 --- a/lib/coinbase/client/models/address_reputation_metadata.rb +++ b/lib/coinbase/client/models/address_reputation_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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/address_transaction_list.rb b/lib/coinbase/client/models/address_transaction_list.rb index 64fd96f1..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/asset.rb b/lib/coinbase/client/models/asset.rb index 19433954..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/balance.rb b/lib/coinbase/client/models/balance.rb index 07345217..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.10.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 759a1cd2..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/broadcast_external_transfer_request.rb b/lib/coinbase/client/models/broadcast_external_transfer_request.rb index 08305502..b095549b 100644 --- a/lib/coinbase/client/models/broadcast_external_transfer_request.rb +++ b/lib/coinbase/client/models/broadcast_external_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.10.0 +Generator version: 7.9.0 =end @@ -15,7 +15,7 @@ module Coinbase::Client class BroadcastExternalTransferRequest - # The hex-encoded signed payload of the transfer + # The hex-encoded signed payload of the external transfer attr_accessor :signed_payload # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/coinbase/client/models/broadcast_staking_operation_request.rb b/lib/coinbase/client/models/broadcast_staking_operation_request.rb index 0f3ebb0a..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.10.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 434eae76..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.10.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 new file mode 100644 index 00000000..b68f4be1 --- /dev/null +++ b/lib/coinbase/client/models/broadcast_transfer_request.rb @@ -0,0 +1,222 @@ +=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 + class BroadcastTransferRequest + # The hex-encoded signed payload of the transfer + attr_accessor :signed_payload + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'signed_payload' => :'signed_payload' + } + 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 + { + :'signed_payload' => :'String' + } + 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::BroadcastTransferRequest` 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::BroadcastTransferRequest`. 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?(:'signed_payload') + self.signed_payload = attributes[:'signed_payload'] + else + self.signed_payload = 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 @signed_payload.nil? + invalid_properties.push('invalid value for "signed_payload", signed_payload 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 @signed_payload.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 && + signed_payload == o.signed_payload + 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 + [signed_payload].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/build_staking_operation_request.rb b/lib/coinbase/client/models/build_staking_operation_request.rb index e56ddd44..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/contract_event.rb b/lib/coinbase/client/models/contract_event.rb index c46ada62..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.10.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 3f956312..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.10.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 e46dad78..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.10.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 6f11e4d8..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.10.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 ae13c748..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.10.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 618b2072..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_external_transfer_request.rb b/lib/coinbase/client/models/create_external_transfer_request.rb index 73dc0ee9..72d7f66c 100644 --- a/lib/coinbase/client/models/create_external_transfer_request.rb +++ b/lib/coinbase/client/models/create_external_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.10.0 +Generator version: 7.9.0 =end @@ -27,13 +27,17 @@ class CreateExternalTransferRequest # Whether the transfer uses sponsored gas attr_accessor :gasless + # When true, the transfer will be submitted immediately. Otherwise, the transfer will be batched. Defaults to false. Note: Requires the gasless option to be set to true. + attr_accessor :skip_batching + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'amount' => :'amount', :'asset_id' => :'asset_id', :'destination' => :'destination', - :'gasless' => :'gasless' + :'gasless' => :'gasless', + :'skip_batching' => :'skip_batching' } end @@ -48,7 +52,8 @@ def self.openapi_types :'amount' => :'String', :'asset_id' => :'String', :'destination' => :'String', - :'gasless' => :'Boolean' + :'gasless' => :'Boolean', + :'skip_batching' => :'Boolean' } end @@ -96,6 +101,10 @@ def initialize(attributes = {}) else self.gasless = nil end + + if attributes.key?(:'skip_batching') + self.skip_batching = attributes[:'skip_batching'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -141,7 +150,8 @@ def ==(o) amount == o.amount && asset_id == o.asset_id && destination == o.destination && - gasless == o.gasless + gasless == o.gasless && + skip_batching == o.skip_batching end # @see the `==` method @@ -153,7 +163,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [amount, asset_id, destination, gasless].hash + [amount, asset_id, destination, gasless, skip_batching].hash end # Builds the object from hash diff --git a/lib/coinbase/client/models/create_fund_operation_request.rb b/lib/coinbase/client/models/create_fund_operation_request.rb index 468d974f..9b94bd52 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.10.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 347699ca..0f63128f 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.10.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 c74bba95..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.10.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 f1aeb1aa..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.10.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 b9ebe2ad..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.10.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 248262a5..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/create_trade_request.rb b/lib/coinbase/client/models/create_trade_request.rb index 8d9d8a8a..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.10.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 215e5cac..ec374138 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.10.0 +Generator version: 7.9.0 =end @@ -30,6 +30,9 @@ class CreateTransferRequest # Whether the transfer uses sponsored gas attr_accessor :gasless + # When true, the transfer will be submitted immediately. Otherwise, the transfer will be batched. Defaults to false + attr_accessor :skip_batching + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -37,7 +40,8 @@ def self.attribute_map :'network_id' => :'network_id', :'asset_id' => :'asset_id', :'destination' => :'destination', - :'gasless' => :'gasless' + :'gasless' => :'gasless', + :'skip_batching' => :'skip_batching' } end @@ -53,7 +57,8 @@ def self.openapi_types :'network_id' => :'String', :'asset_id' => :'String', :'destination' => :'String', - :'gasless' => :'Boolean' + :'gasless' => :'Boolean', + :'skip_batching' => :'Boolean' } end @@ -105,6 +110,10 @@ def initialize(attributes = {}) if attributes.key?(:'gasless') self.gasless = attributes[:'gasless'] end + + if attributes.key?(:'skip_batching') + self.skip_batching = attributes[:'skip_batching'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -151,7 +160,8 @@ def ==(o) network_id == o.network_id && asset_id == o.asset_id && destination == o.destination && - gasless == o.gasless + gasless == o.gasless && + skip_batching == o.skip_batching end # @see the `==` method @@ -163,7 +173,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [amount, network_id, asset_id, destination, gasless].hash + [amount, network_id, asset_id, destination, gasless, skip_batching].hash end # Builds the object from hash diff --git a/lib/coinbase/client/models/create_wallet_request.rb b/lib/coinbase/client/models/create_wallet_request.rb index 9cd3bd6f..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.10.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 a98f4a87..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.10.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 1000ccfa..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.10.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 db041fbc..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.10.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 822de024..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.10.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 eec9ea03..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.10.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 cc51bdf8..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.10.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 21bef5b6..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/error.rb b/lib/coinbase/client/models/error.rb index e21da672..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.10.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 fff5ee20..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.10.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 84cf6600..2132eae1 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.10.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 ccae6561..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.10.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 8d0a2d90..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.10.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 c2df9298..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.10.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 d5c95787..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.10.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 26dd1459..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.10.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 f6f63a07..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.10.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 d3805e62..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.10.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 3dd74380..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.10.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 139cdba8..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.10.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 ff23702a..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.10.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 88e9491f..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.10.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 cb85e1c0..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.10.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 2aeb8e77..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.10.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 f5d0bd4a..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.10.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 b9f57b88..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/historical_balance.rb b/lib/coinbase/client/models/historical_balance.rb index 2cf90b15..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.10.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 3dcab346..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/network.rb b/lib/coinbase/client/models/network.rb index aebad0ec..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.10.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 5cf342f5..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.10.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 0bc8c80c..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.10.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 47a18a37..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.10.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 bf90575d..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.10.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 fe85fbc4..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.10.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 6e842bce..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.10.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 2cf0e99d..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/register_smart_contract_request.rb b/lib/coinbase/client/models/register_smart_contract_request.rb index 1329cf52..181dfd86 100644 --- a/lib/coinbase/client/models/register_smart_contract_request.rb +++ b/lib/coinbase/client/models/register_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.10.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 b25a3eff..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.10.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 7b015ecf..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.10.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 26b55794..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.10.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 43581730..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.10.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 8db13d18..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.10.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 f2802ca3..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.10.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 15e399e4..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.10.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 77aeee6b..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.10.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 00b0ec6f..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.10.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 df1e008a..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.10.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 f726014a..fac28e4e 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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/smart_contract_activity_event.rb b/lib/coinbase/client/models/smart_contract_activity_event.rb index 3fd1b855..1dba2a07 100644 --- a/lib/coinbase/client/models/smart_contract_activity_event.rb +++ b/lib/coinbase/client/models/smart_contract_activity_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.10.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 d8b91059..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.10.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 3cd642d3..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.10.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 f19fb790..f41bbd72 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.10.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 3a48f3e3..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/sponsored_send.rb b/lib/coinbase/client/models/sponsored_send.rb index f9a78d3b..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.10.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 d6902347..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.10.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 4f6f9ba4..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.10.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 d0c29bbf..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.10.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 582adb35..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.10.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 62d81736..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.10.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 1a2956bf..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.10.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 640932e8..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.10.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 3fd45c9a..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.10.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 aa9b045d..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.10.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 5a37abe4..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/trade.rb b/lib/coinbase/client/models/trade.rb index c1682612..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.10.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 d39c456e..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/transaction.rb b/lib/coinbase/client/models/transaction.rb index 8458d614..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.10.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 884cffa0..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.10.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 9fb2dd09..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/transfer.rb b/lib/coinbase/client/models/transfer.rb index 21358007..5d0e8e27 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.10.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 1742f380..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/update_smart_contract_request.rb b/lib/coinbase/client/models/update_smart_contract_request.rb index 09738e71..82b9b51f 100644 --- a/lib/coinbase/client/models/update_smart_contract_request.rb +++ b/lib/coinbase/client/models/update_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.10.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 e1fdd626..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/user.rb b/lib/coinbase/client/models/user.rb index b965d35a..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/validator.rb b/lib/coinbase/client/models/validator.rb index fead08a1..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.10.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 4590d46c..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.10.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 e5c26995..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.10.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 515f0e37..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/wallet.rb b/lib/coinbase/client/models/wallet.rb index 93699623..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.10.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 bc2ac9a4..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/webhook.rb b/lib/coinbase/client/models/webhook.rb index e08d85e4..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.10.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 822e57c3..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.10.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 1ddb6715..9ab7ffad 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.10.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 6ba5e07a..c8dd017b 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.10.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 4f8df750..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/models/webhook_smart_contract_event_filter.rb b/lib/coinbase/client/models/webhook_smart_contract_event_filter.rb index 01e05e8f..b0e54e18 100644 --- a/lib/coinbase/client/models/webhook_smart_contract_event_filter.rb +++ b/lib/coinbase/client/models/webhook_smart_contract_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.10.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 1479ed79..7d200d5f 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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/client/version.rb b/lib/coinbase/client/version.rb index 164d1705..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.10.0 +Generator version: 7.9.0 =end diff --git a/lib/coinbase/transfer.rb b/lib/coinbase/transfer.rb index f5d28639..d6ca9237 100644 --- a/lib/coinbase/transfer.rb +++ b/lib/coinbase/transfer.rb @@ -22,9 +22,24 @@ class << self # If the destination is a String, it uses it as the Address ID. # @param network [Coinbase::Network, Symbol] The Network or Network ID of the Asset # @param wallet_id [String] The Wallet ID of the sending Wallet + # @param gasless [Boolean] Whether the transfer should be gasless. Defaults to false. + # @param skip_batching [Boolean] When true, the Transfer will be submitted immediately. + # Otherwise, the Transfer will be batched. Defaults to false. + # Note: requires gasless option to be set to true. # @return [Transfer] The new pending Transfer object # @raise [Coinbase::ApiError] If the Transfer fails - def create(address_id:, amount:, asset_id:, destination:, network:, wallet_id:, gasless: false) + def create( + address_id:, + amount:, + asset_id:, + destination:, + network:, + wallet_id:, + gasless: false, + skip_batching: false + ) + ensure_can_skip_batching!(gasless, skip_batching) + network = Coinbase::Network.from_id(network) asset = network.get_asset(asset_id) @@ -37,7 +52,8 @@ def create(address_id:, amount:, asset_id:, destination:, network:, wallet_id:, asset_id: asset.primary_denomination.to_s, destination: Coinbase::Destination.new(destination, network: network).address_id, network_id: network.normalized_id, - gasless: gasless + gasless: gasless, + skip_batching: skip_batching } ) end @@ -66,6 +82,12 @@ def transfers_api def fetch_page(wallet_id, address_id, page) transfers_api.list_transfers(wallet_id, address_id, { limit: DEFAULT_PAGE_LIMIT, page: page }) end + + def ensure_can_skip_batching!(gasless, skip_batching) + return unless skip_batching && !gasless + + raise ArgumentError, 'Cannot skip batching without gasless option set to true' + end end # Returns a new Transfer object. Do not use this method directly. Instead, use Wallet#transfer or diff --git a/lib/coinbase/version.rb b/lib/coinbase/version.rb index b9e72b0c..029c4a77 100644 --- a/lib/coinbase/version.rb +++ b/lib/coinbase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Coinbase - VERSION = '0.13.0' + VERSION = '0.14.0' end diff --git a/spec/unit/coinbase/address/wallet_address_spec.rb b/spec/unit/coinbase/address/wallet_address_spec.rb index 5bc9d461..9355475a 100644 --- a/spec/unit/coinbase/address/wallet_address_spec.rb +++ b/spec/unit/coinbase/address/wallet_address_spec.rb @@ -310,7 +310,8 @@ destination: to_address_id, network: network, wallet_id: wallet_id, - gasless: false + gasless: false, + skip_batching: false ) end diff --git a/spec/unit/coinbase/transfer_spec.rb b/spec/unit/coinbase/transfer_spec.rb index 8405e781..3cf8f259 100644 --- a/spec/unit/coinbase/transfer_spec.rb +++ b/spec/unit/coinbase/transfer_spec.rb @@ -52,7 +52,8 @@ asset_id: normalized_asset_id, destination: to_address_id, network_id: normalized_network_id, - gasless: false + gasless: false, + skip_batching: false } end @@ -76,6 +77,25 @@ expect(transfer.id).to eq(model.transfer_id) end + context 'when skip_batching is true and gasless is false' do + subject(:transfer) do + described_class.create( + address_id: from_address_id, + asset_id: asset_id, + amount: whole_amount, + destination: destination, + network: network_id, + wallet_id: wallet_id, + gasless: false, + skip_batching: true + ) + end + + it 'raises an error' do + expect { transfer }.to raise_error(ArgumentError, /Cannot skip batching without gasless option set to true/) + end + end + context 'when the destination is not valid' do let(:destination) { asset } @@ -119,7 +139,8 @@ asset_id: normalized_asset_id, destination: to_address_id, network_id: normalized_network_id, - gasless: true + gasless: true, + skip_batching: false } end