coinbase-sdk 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/lib/coinbase/address/wallet_address.rb +53 -0
  3. data/lib/coinbase/address.rb +20 -0
  4. data/lib/coinbase/client/api/addresses_api.rb +231 -1
  5. data/lib/coinbase/client/api/assets_api.rb +1 -1
  6. data/lib/coinbase/client/api/contract_events_api.rb +1 -1
  7. data/lib/coinbase/client/api/contract_invocations_api.rb +342 -0
  8. data/lib/coinbase/client/api/external_addresses_api.rb +81 -2
  9. data/lib/coinbase/client/api/networks_api.rb +1 -1
  10. data/lib/coinbase/client/api/server_signers_api.rb +1 -1
  11. data/lib/coinbase/client/api/stake_api.rb +1 -1
  12. data/lib/coinbase/client/api/trades_api.rb +1 -1
  13. data/lib/coinbase/client/api/transfers_api.rb +1 -1
  14. data/lib/coinbase/client/api/users_api.rb +1 -1
  15. data/lib/coinbase/client/api/validators_api.rb +1 -1
  16. data/lib/coinbase/client/api/wallet_stake_api.rb +1 -1
  17. data/lib/coinbase/client/api/wallets_api.rb +1 -1
  18. data/lib/coinbase/client/api/webhooks_api.rb +1 -1
  19. data/lib/coinbase/client/api_client.rb +1 -1
  20. data/lib/coinbase/client/api_error.rb +1 -1
  21. data/lib/coinbase/client/configuration.rb +1 -1
  22. data/lib/coinbase/client/models/address.rb +1 -1
  23. data/lib/coinbase/client/models/address_balance_list.rb +1 -1
  24. data/lib/coinbase/client/models/address_historical_balance_list.rb +1 -1
  25. data/lib/coinbase/client/models/address_list.rb +1 -1
  26. data/lib/coinbase/client/models/address_transaction_list.rb +258 -0
  27. data/lib/coinbase/client/models/asset.rb +1 -1
  28. data/lib/coinbase/client/models/balance.rb +1 -1
  29. data/lib/coinbase/client/models/broadcast_contract_invocation_request.rb +222 -0
  30. data/lib/coinbase/client/models/broadcast_staking_operation_request.rb +1 -1
  31. data/lib/coinbase/client/models/broadcast_trade_request.rb +1 -1
  32. data/lib/coinbase/client/models/broadcast_transfer_request.rb +1 -1
  33. data/lib/coinbase/client/models/build_staking_operation_request.rb +1 -1
  34. data/lib/coinbase/client/models/contract_event.rb +1 -1
  35. data/lib/coinbase/client/models/contract_event_list.rb +1 -1
  36. data/lib/coinbase/client/models/contract_invocation.rb +351 -0
  37. data/lib/coinbase/client/models/contract_invocation_list.rb +274 -0
  38. data/lib/coinbase/client/models/create_address_request.rb +1 -1
  39. data/lib/coinbase/client/models/create_contract_invocation_request.rb +266 -0
  40. data/lib/coinbase/client/models/create_payload_signature_request.rb +232 -0
  41. data/lib/coinbase/client/models/create_server_signer_request.rb +1 -1
  42. data/lib/coinbase/client/models/create_staking_operation_request.rb +1 -1
  43. data/lib/coinbase/client/models/create_trade_request.rb +1 -1
  44. data/lib/coinbase/client/models/create_transfer_request.rb +1 -1
  45. data/lib/coinbase/client/models/create_wallet_request.rb +1 -1
  46. data/lib/coinbase/client/models/create_wallet_request_wallet.rb +1 -1
  47. data/lib/coinbase/client/models/create_webhook_request.rb +29 -5
  48. data/lib/coinbase/client/models/error.rb +1 -1
  49. data/lib/coinbase/client/models/ethereum_transaction.rb +389 -0
  50. data/lib/coinbase/client/models/ethereum_transaction_access.rb +225 -0
  51. data/lib/coinbase/client/models/ethereum_transaction_access_list.rb +216 -0
  52. data/lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb +378 -0
  53. data/lib/coinbase/client/models/ethereum_validator_metadata.rb +1 -1
  54. data/lib/coinbase/client/models/faucet_transaction.rb +1 -1
  55. data/lib/coinbase/client/models/feature_set.rb +1 -1
  56. data/lib/coinbase/client/models/fetch_historical_staking_balances200_response.rb +1 -1
  57. data/lib/coinbase/client/models/fetch_staking_rewards200_response.rb +1 -1
  58. data/lib/coinbase/client/models/fetch_staking_rewards_request.rb +1 -1
  59. data/lib/coinbase/client/models/get_staking_context_request.rb +1 -1
  60. data/lib/coinbase/client/models/historical_balance.rb +1 -1
  61. data/lib/coinbase/client/models/network.rb +3 -3
  62. data/lib/coinbase/client/models/network_identifier.rb +3 -2
  63. data/lib/coinbase/client/models/payload_signature.rb +335 -0
  64. data/lib/coinbase/client/models/payload_signature_list.rb +275 -0
  65. data/lib/coinbase/client/models/seed_creation_event.rb +1 -1
  66. data/lib/coinbase/client/models/seed_creation_event_result.rb +1 -1
  67. data/lib/coinbase/client/models/server_signer.rb +1 -1
  68. data/lib/coinbase/client/models/server_signer_event.rb +1 -1
  69. data/lib/coinbase/client/models/server_signer_event_event.rb +1 -1
  70. data/lib/coinbase/client/models/server_signer_event_list.rb +1 -1
  71. data/lib/coinbase/client/models/server_signer_list.rb +1 -1
  72. data/lib/coinbase/client/models/signature_creation_event.rb +1 -1
  73. data/lib/coinbase/client/models/signature_creation_event_result.rb +1 -1
  74. data/lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb +1 -1
  75. data/lib/coinbase/client/models/sponsored_send.rb +1 -1
  76. data/lib/coinbase/client/models/staking_balance.rb +1 -1
  77. data/lib/coinbase/client/models/staking_context.rb +1 -1
  78. data/lib/coinbase/client/models/staking_context_context.rb +1 -1
  79. data/lib/coinbase/client/models/staking_operation.rb +1 -1
  80. data/lib/coinbase/client/models/staking_operation_metadata.rb +1 -1
  81. data/lib/coinbase/client/models/staking_reward.rb +1 -1
  82. data/lib/coinbase/client/models/staking_reward_format.rb +1 -1
  83. data/lib/coinbase/client/models/staking_reward_usd_value.rb +1 -1
  84. data/lib/coinbase/client/models/trade.rb +1 -1
  85. data/lib/coinbase/client/models/trade_list.rb +1 -1
  86. data/lib/coinbase/client/models/transaction.rb +36 -7
  87. data/lib/coinbase/client/models/transaction_content.rb +104 -0
  88. data/lib/coinbase/client/models/transaction_type.rb +1 -1
  89. data/lib/coinbase/client/models/transfer.rb +1 -1
  90. data/lib/coinbase/client/models/transfer_list.rb +1 -1
  91. data/lib/coinbase/client/models/update_webhook_request.rb +2 -50
  92. data/lib/coinbase/client/models/user.rb +1 -1
  93. data/lib/coinbase/client/models/validator.rb +1 -1
  94. data/lib/coinbase/client/models/validator_details.rb +1 -1
  95. data/lib/coinbase/client/models/validator_list.rb +1 -1
  96. data/lib/coinbase/client/models/validator_status.rb +1 -1
  97. data/lib/coinbase/client/models/wallet.rb +1 -1
  98. data/lib/coinbase/client/models/wallet_list.rb +1 -1
  99. data/lib/coinbase/client/models/webhook.rb +15 -5
  100. data/lib/coinbase/client/models/webhook_event_filter.rb +1 -1
  101. data/lib/coinbase/client/models/webhook_event_type.rb +1 -1
  102. data/lib/coinbase/client/models/webhook_list.rb +1 -1
  103. data/lib/coinbase/client/version.rb +1 -1
  104. data/lib/coinbase/client.rb +15 -1
  105. data/lib/coinbase/constants.rb +3 -0
  106. data/lib/coinbase/contract_invocation.rb +234 -0
  107. data/lib/coinbase/payload_signature.rb +181 -0
  108. data/lib/coinbase/transaction.rb +21 -0
  109. data/lib/coinbase/version.rb +1 -1
  110. data/lib/coinbase/wallet.rb +11 -1
  111. data/lib/coinbase/webhook.rb +17 -6
  112. data/lib/coinbase.rb +2 -0
  113. metadata +18 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coinbase-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuga Cohler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-29 00:00:00.000000000 Z
11
+ date: 2024-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal
@@ -280,6 +280,7 @@ files:
280
280
  - lib/coinbase/client/api/addresses_api.rb
281
281
  - lib/coinbase/client/api/assets_api.rb
282
282
  - lib/coinbase/client/api/contract_events_api.rb
283
+ - lib/coinbase/client/api/contract_invocations_api.rb
283
284
  - lib/coinbase/client/api/external_addresses_api.rb
284
285
  - lib/coinbase/client/api/networks_api.rb
285
286
  - lib/coinbase/client/api/server_signers_api.rb
@@ -298,15 +299,21 @@ files:
298
299
  - lib/coinbase/client/models/address_balance_list.rb
299
300
  - lib/coinbase/client/models/address_historical_balance_list.rb
300
301
  - lib/coinbase/client/models/address_list.rb
302
+ - lib/coinbase/client/models/address_transaction_list.rb
301
303
  - lib/coinbase/client/models/asset.rb
302
304
  - lib/coinbase/client/models/balance.rb
305
+ - lib/coinbase/client/models/broadcast_contract_invocation_request.rb
303
306
  - lib/coinbase/client/models/broadcast_staking_operation_request.rb
304
307
  - lib/coinbase/client/models/broadcast_trade_request.rb
305
308
  - lib/coinbase/client/models/broadcast_transfer_request.rb
306
309
  - lib/coinbase/client/models/build_staking_operation_request.rb
307
310
  - lib/coinbase/client/models/contract_event.rb
308
311
  - lib/coinbase/client/models/contract_event_list.rb
312
+ - lib/coinbase/client/models/contract_invocation.rb
313
+ - lib/coinbase/client/models/contract_invocation_list.rb
309
314
  - lib/coinbase/client/models/create_address_request.rb
315
+ - lib/coinbase/client/models/create_contract_invocation_request.rb
316
+ - lib/coinbase/client/models/create_payload_signature_request.rb
310
317
  - lib/coinbase/client/models/create_server_signer_request.rb
311
318
  - lib/coinbase/client/models/create_staking_operation_request.rb
312
319
  - lib/coinbase/client/models/create_trade_request.rb
@@ -315,6 +322,10 @@ files:
315
322
  - lib/coinbase/client/models/create_wallet_request_wallet.rb
316
323
  - lib/coinbase/client/models/create_webhook_request.rb
317
324
  - lib/coinbase/client/models/error.rb
325
+ - lib/coinbase/client/models/ethereum_transaction.rb
326
+ - lib/coinbase/client/models/ethereum_transaction_access.rb
327
+ - lib/coinbase/client/models/ethereum_transaction_access_list.rb
328
+ - lib/coinbase/client/models/ethereum_transaction_flattened_trace.rb
318
329
  - lib/coinbase/client/models/ethereum_validator_metadata.rb
319
330
  - lib/coinbase/client/models/faucet_transaction.rb
320
331
  - lib/coinbase/client/models/feature.rb
@@ -326,6 +337,8 @@ files:
326
337
  - lib/coinbase/client/models/historical_balance.rb
327
338
  - lib/coinbase/client/models/network.rb
328
339
  - lib/coinbase/client/models/network_identifier.rb
340
+ - lib/coinbase/client/models/payload_signature.rb
341
+ - lib/coinbase/client/models/payload_signature_list.rb
329
342
  - lib/coinbase/client/models/seed_creation_event.rb
330
343
  - lib/coinbase/client/models/seed_creation_event_result.rb
331
344
  - lib/coinbase/client/models/server_signer.rb
@@ -348,6 +361,7 @@ files:
348
361
  - lib/coinbase/client/models/trade.rb
349
362
  - lib/coinbase/client/models/trade_list.rb
350
363
  - lib/coinbase/client/models/transaction.rb
364
+ - lib/coinbase/client/models/transaction_content.rb
351
365
  - lib/coinbase/client/models/transaction_type.rb
352
366
  - lib/coinbase/client/models/transfer.rb
353
367
  - lib/coinbase/client/models/transfer_list.rb
@@ -366,6 +380,7 @@ files:
366
380
  - lib/coinbase/client/version.rb
367
381
  - lib/coinbase/constants.rb
368
382
  - lib/coinbase/contract_event.rb
383
+ - lib/coinbase/contract_invocation.rb
369
384
  - lib/coinbase/correlation.rb
370
385
  - lib/coinbase/destination.rb
371
386
  - lib/coinbase/errors.rb
@@ -374,6 +389,7 @@ files:
374
389
  - lib/coinbase/middleware.rb
375
390
  - lib/coinbase/network.rb
376
391
  - lib/coinbase/pagination.rb
392
+ - lib/coinbase/payload_signature.rb
377
393
  - lib/coinbase/server_signer.rb
378
394
  - lib/coinbase/smart_contract.rb
379
395
  - lib/coinbase/sponsored_send.rb