coinbase-sdk 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coinbase/address/wallet_address.rb +6 -3
- data/lib/coinbase/client/api/addresses_api.rb +1 -1
- data/lib/coinbase/client/api/assets_api.rb +1 -1
- data/lib/coinbase/client/api/balance_history_api.rb +1 -1
- data/lib/coinbase/client/api/contract_events_api.rb +1 -1
- data/lib/coinbase/client/api/contract_invocations_api.rb +1 -1
- data/lib/coinbase/client/api/external_addresses_api.rb +1 -1
- data/lib/coinbase/client/api/fund_api.rb +1 -1
- data/lib/coinbase/client/api/mpc_wallet_stake_api.rb +1 -1
- data/lib/coinbase/client/api/networks_api.rb +1 -1
- data/lib/coinbase/client/api/onchain_identity_api.rb +1 -1
- data/lib/coinbase/client/api/reputation_api.rb +1 -1
- data/lib/coinbase/client/api/server_signers_api.rb +1 -1
- data/lib/coinbase/client/api/smart_contracts_api.rb +1 -1
- data/lib/coinbase/client/api/stake_api.rb +1 -1
- data/lib/coinbase/client/api/trades_api.rb +1 -1
- data/lib/coinbase/client/api/transaction_history_api.rb +1 -1
- data/lib/coinbase/client/api/transfers_api.rb +10 -10
- data/lib/coinbase/client/api/users_api.rb +1 -1
- data/lib/coinbase/client/api/wallets_api.rb +1 -1
- data/lib/coinbase/client/api/webhooks_api.rb +1 -1
- data/lib/coinbase/client/api_client.rb +1 -1
- data/lib/coinbase/client/api_error.rb +1 -1
- data/lib/coinbase/client/configuration.rb +1 -1
- data/lib/coinbase/client/models/address.rb +1 -1
- data/lib/coinbase/client/models/address_balance_list.rb +1 -1
- data/lib/coinbase/client/models/address_historical_balance_list.rb +1 -1
- data/lib/coinbase/client/models/address_list.rb +1 -1
- data/lib/coinbase/client/models/address_reputation.rb +1 -1
- data/lib/coinbase/client/models/address_reputation_metadata.rb +1 -1
- data/lib/coinbase/client/models/address_transaction_list.rb +1 -1
- data/lib/coinbase/client/models/asset.rb +1 -1
- data/lib/coinbase/client/models/balance.rb +1 -1
- data/lib/coinbase/client/models/broadcast_contract_invocation_request.rb +1 -1
- data/lib/coinbase/client/models/broadcast_external_transfer_request.rb +2 -2
- data/lib/coinbase/client/models/broadcast_staking_operation_request.rb +1 -1
- data/lib/coinbase/client/models/broadcast_trade_request.rb +1 -1
- data/lib/coinbase/client/models/broadcast_transfer_request.rb +222 -0
- data/lib/coinbase/client/models/build_staking_operation_request.rb +1 -1
- data/lib/coinbase/client/models/contract_event.rb +1 -1
- data/lib/coinbase/client/models/contract_event_list.rb +1 -1
- data/lib/coinbase/client/models/contract_invocation.rb +1 -1
- data/lib/coinbase/client/models/contract_invocation_list.rb +1 -1
- data/lib/coinbase/client/models/create_address_request.rb +1 -1
- data/lib/coinbase/client/models/create_contract_invocation_request.rb +1 -1
- data/lib/coinbase/client/models/create_external_transfer_request.rb +15 -5
- data/lib/coinbase/client/models/create_fund_operation_request.rb +1 -1
- data/lib/coinbase/client/models/create_fund_quote_request.rb +1 -1
- data/lib/coinbase/client/models/create_payload_signature_request.rb +1 -1
- data/lib/coinbase/client/models/create_server_signer_request.rb +1 -1
- data/lib/coinbase/client/models/create_smart_contract_request.rb +1 -1
- data/lib/coinbase/client/models/create_staking_operation_request.rb +1 -1
- data/lib/coinbase/client/models/create_trade_request.rb +1 -1
- data/lib/coinbase/client/models/create_transfer_request.rb +15 -5
- data/lib/coinbase/client/models/create_wallet_request.rb +1 -1
- data/lib/coinbase/client/models/create_wallet_request_wallet.rb +1 -1
- data/lib/coinbase/client/models/create_wallet_webhook_request.rb +1 -1
- data/lib/coinbase/client/models/create_webhook_request.rb +1 -1
- data/lib/coinbase/client/models/crypto_amount.rb +1 -1
- data/lib/coinbase/client/models/deploy_smart_contract_request.rb +1 -1
- data/lib/coinbase/client/models/erc20_transfer_event.rb +1 -1
- data/lib/coinbase/client/models/erc721_transfer_event.rb +1 -1
- data/lib/coinbase/client/models/error.rb +1 -1
- data/lib/coinbase/client/models/ethereum_token_transfer.rb +1 -1
- data/lib/coinbase/client/models/ethereum_transaction.rb +1 -1
- data/lib/coinbase/client/models/ethereum_transaction_access.rb +1 -1
- data/lib/coinbase/client/models/ethereum_transaction_access_list.rb +1 -1
- data/lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb +1 -1
- data/lib/coinbase/client/models/ethereum_validator_metadata.rb +1 -1
- data/lib/coinbase/client/models/faucet_transaction.rb +1 -1
- data/lib/coinbase/client/models/feature_set.rb +1 -1
- data/lib/coinbase/client/models/fetch_historical_staking_balances200_response.rb +1 -1
- data/lib/coinbase/client/models/fetch_staking_rewards200_response.rb +1 -1
- data/lib/coinbase/client/models/fetch_staking_rewards_request.rb +1 -1
- data/lib/coinbase/client/models/fiat_amount.rb +1 -1
- data/lib/coinbase/client/models/fund_operation.rb +1 -1
- data/lib/coinbase/client/models/fund_operation_fees.rb +1 -1
- data/lib/coinbase/client/models/fund_operation_list.rb +1 -1
- data/lib/coinbase/client/models/fund_quote.rb +1 -1
- data/lib/coinbase/client/models/get_staking_context_request.rb +1 -1
- data/lib/coinbase/client/models/historical_balance.rb +1 -1
- data/lib/coinbase/client/models/multi_token_contract_options.rb +1 -1
- data/lib/coinbase/client/models/network.rb +1 -1
- data/lib/coinbase/client/models/network_identifier.rb +1 -1
- data/lib/coinbase/client/models/nft_contract_options.rb +1 -1
- data/lib/coinbase/client/models/onchain_name.rb +1 -1
- data/lib/coinbase/client/models/onchain_name_list.rb +1 -1
- data/lib/coinbase/client/models/payload_signature.rb +1 -1
- data/lib/coinbase/client/models/payload_signature_list.rb +1 -1
- data/lib/coinbase/client/models/read_contract_request.rb +1 -1
- data/lib/coinbase/client/models/register_smart_contract_request.rb +1 -1
- data/lib/coinbase/client/models/seed_creation_event.rb +1 -1
- data/lib/coinbase/client/models/seed_creation_event_result.rb +1 -1
- data/lib/coinbase/client/models/server_signer.rb +1 -1
- data/lib/coinbase/client/models/server_signer_event.rb +1 -1
- data/lib/coinbase/client/models/server_signer_event_event.rb +1 -1
- data/lib/coinbase/client/models/server_signer_event_list.rb +1 -1
- data/lib/coinbase/client/models/server_signer_list.rb +1 -1
- data/lib/coinbase/client/models/signature_creation_event.rb +1 -1
- data/lib/coinbase/client/models/signature_creation_event_result.rb +1 -1
- data/lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb +1 -1
- data/lib/coinbase/client/models/smart_contract.rb +1 -1
- data/lib/coinbase/client/models/smart_contract_activity_event.rb +1 -1
- data/lib/coinbase/client/models/smart_contract_list.rb +1 -1
- data/lib/coinbase/client/models/smart_contract_options.rb +1 -1
- data/lib/coinbase/client/models/smart_contract_type.rb +1 -1
- data/lib/coinbase/client/models/solidity_value.rb +1 -1
- data/lib/coinbase/client/models/sponsored_send.rb +1 -1
- data/lib/coinbase/client/models/staking_balance.rb +1 -1
- data/lib/coinbase/client/models/staking_context.rb +1 -1
- data/lib/coinbase/client/models/staking_context_context.rb +1 -1
- data/lib/coinbase/client/models/staking_operation.rb +1 -1
- data/lib/coinbase/client/models/staking_operation_metadata.rb +1 -1
- data/lib/coinbase/client/models/staking_reward.rb +1 -1
- data/lib/coinbase/client/models/staking_reward_format.rb +1 -1
- data/lib/coinbase/client/models/staking_reward_usd_value.rb +1 -1
- data/lib/coinbase/client/models/token_contract_options.rb +1 -1
- data/lib/coinbase/client/models/token_transfer_type.rb +1 -1
- data/lib/coinbase/client/models/trade.rb +1 -1
- data/lib/coinbase/client/models/trade_list.rb +1 -1
- data/lib/coinbase/client/models/transaction.rb +1 -1
- data/lib/coinbase/client/models/transaction_content.rb +1 -1
- data/lib/coinbase/client/models/transaction_type.rb +1 -1
- data/lib/coinbase/client/models/transfer.rb +1 -1
- data/lib/coinbase/client/models/transfer_list.rb +1 -1
- data/lib/coinbase/client/models/update_smart_contract_request.rb +1 -1
- data/lib/coinbase/client/models/update_webhook_request.rb +1 -1
- data/lib/coinbase/client/models/user.rb +1 -1
- data/lib/coinbase/client/models/validator.rb +1 -1
- data/lib/coinbase/client/models/validator_details.rb +1 -1
- data/lib/coinbase/client/models/validator_list.rb +1 -1
- data/lib/coinbase/client/models/validator_status.rb +1 -1
- data/lib/coinbase/client/models/wallet.rb +1 -1
- data/lib/coinbase/client/models/wallet_list.rb +1 -1
- data/lib/coinbase/client/models/webhook.rb +1 -1
- data/lib/coinbase/client/models/webhook_event_filter.rb +1 -1
- data/lib/coinbase/client/models/webhook_event_type.rb +1 -1
- data/lib/coinbase/client/models/webhook_event_type_filter.rb +1 -1
- data/lib/coinbase/client/models/webhook_list.rb +1 -1
- data/lib/coinbase/client/models/webhook_smart_contract_event_filter.rb +1 -1
- data/lib/coinbase/client/models/webhook_wallet_activity_filter.rb +1 -1
- data/lib/coinbase/client/version.rb +1 -1
- data/lib/coinbase/client.rb +2 -1
- data/lib/coinbase/transfer.rb +24 -2
- data/lib/coinbase/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa14890bed93f5613455ae2c843ce354d6f77a503d7e977a31fc23f087cb4b3e
|
4
|
+
data.tar.gz: 5c20bc410f499e57284039c9dd5754c11a2445f4f74c354efe72b548d2e75885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b76c1c202fed87626cdcb412e77e8bf5b92d659dfb9f6750428524850d204ea578d306c22cf72b27951c828fe2deb593fc95feb9460675a454466ba82ef54667
|
7
|
+
data.tar.gz: 75d6ca8f24371a7618bba1188ac4e7a05a5503c16b01cf7000af3c0b6e8f34d2047660aed2a2a087d94a29284aa65bcfa3c528d63b6093fcf962e1b8ebd2a6df
|
@@ -41,9 +41,11 @@ module Coinbase
|
|
41
41
|
# default address. If a String, interprets it as the address ID.
|
42
42
|
# @param gasless [Boolean] Whether gas fee for the transfer should be covered by Coinbase.
|
43
43
|
# Defaults to false. Check the API documentation for network and asset support.
|
44
|
-
#
|
44
|
+
# @param skip_batching [Boolean] When true, the Transfer will be submitted immediately.
|
45
|
+
# Otherwise, the Transfer will be batched.
|
46
|
+
# Defaults to false. Note: requires gasless option to be set to true.
|
45
47
|
# @return [Coinbase::Transfer] The Transfer object.
|
46
|
-
def transfer(amount, asset_id, destination, gasless: false)
|
48
|
+
def transfer(amount, asset_id, destination, gasless: false, skip_batching: false)
|
47
49
|
ensure_can_sign!
|
48
50
|
ensure_sufficient_balance!(amount, asset_id)
|
49
51
|
|
@@ -54,7 +56,8 @@ module Coinbase
|
|
54
56
|
destination: destination,
|
55
57
|
network: network,
|
56
58
|
wallet_id: wallet_id,
|
57
|
-
gasless: gasless
|
59
|
+
gasless: gasless,
|
60
|
+
skip_batching: skip_batching
|
58
61
|
)
|
59
62
|
|
60
63
|
# If a server signer is managing keys, it will sign and broadcast the underlying transfer transaction out of band.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.0.1-alpha
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -24,11 +24,11 @@ module Coinbase::Client
|
|
24
24
|
# @param wallet_id [String] The ID of the wallet the address belongs to
|
25
25
|
# @param address_id [String] The ID of the address the transfer belongs to
|
26
26
|
# @param transfer_id [String] The ID of the transfer to broadcast
|
27
|
-
# @param
|
27
|
+
# @param broadcast_transfer_request [BroadcastTransferRequest]
|
28
28
|
# @param [Hash] opts the optional parameters
|
29
29
|
# @return [Transfer]
|
30
|
-
def broadcast_transfer(wallet_id, address_id, transfer_id,
|
31
|
-
data, _status_code, _headers = broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id,
|
30
|
+
def broadcast_transfer(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts = {})
|
31
|
+
data, _status_code, _headers = broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
@@ -37,10 +37,10 @@ module Coinbase::Client
|
|
37
37
|
# @param wallet_id [String] The ID of the wallet the address belongs to
|
38
38
|
# @param address_id [String] The ID of the address the transfer belongs to
|
39
39
|
# @param transfer_id [String] The ID of the transfer to broadcast
|
40
|
-
# @param
|
40
|
+
# @param broadcast_transfer_request [BroadcastTransferRequest]
|
41
41
|
# @param [Hash] opts the optional parameters
|
42
42
|
# @return [Array<(Transfer, Integer, Hash)>] Transfer data, response status code and response headers
|
43
|
-
def broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id,
|
43
|
+
def broadcast_transfer_with_http_info(wallet_id, address_id, transfer_id, broadcast_transfer_request, opts = {})
|
44
44
|
if @api_client.config.debugging
|
45
45
|
@api_client.config.logger.debug 'Calling API: TransfersApi.broadcast_transfer ...'
|
46
46
|
end
|
@@ -56,9 +56,9 @@ module Coinbase::Client
|
|
56
56
|
if @api_client.config.client_side_validation && transfer_id.nil?
|
57
57
|
fail ArgumentError, "Missing the required parameter 'transfer_id' when calling TransfersApi.broadcast_transfer"
|
58
58
|
end
|
59
|
-
# verify the required parameter '
|
60
|
-
if @api_client.config.client_side_validation &&
|
61
|
-
fail ArgumentError, "Missing the required parameter '
|
59
|
+
# verify the required parameter 'broadcast_transfer_request' is set
|
60
|
+
if @api_client.config.client_side_validation && broadcast_transfer_request.nil?
|
61
|
+
fail ArgumentError, "Missing the required parameter 'broadcast_transfer_request' when calling TransfersApi.broadcast_transfer"
|
62
62
|
end
|
63
63
|
# resource path
|
64
64
|
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 @@ module Coinbase::Client
|
|
80
80
|
form_params = opts[:form_params] || {}
|
81
81
|
|
82
82
|
# http body (model)
|
83
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
83
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(broadcast_transfer_request)
|
84
84
|
|
85
85
|
# return_type
|
86
86
|
return_type = opts[:debug_return_type] || 'Transfer'
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.0.1-alpha
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.
|
9
|
+
Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Coinbase::Client
|
17
17
|
class BroadcastExternalTransferRequest
|
18
|
-
# The hex-encoded signed payload of the transfer
|
18
|
+
# The hex-encoded signed payload of the external transfer
|
19
19
|
attr_accessor :signed_payload
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|