coinbase-sdk 0.5.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/coinbase/address/wallet_address.rb +70 -1
  3. data/lib/coinbase/address.rb +5 -1
  4. data/lib/coinbase/client/api/external_addresses_api.rb +0 -79
  5. data/lib/coinbase/client/api/smart_contracts_api.rb +332 -0
  6. data/lib/coinbase/client/api/stake_api.rb +0 -8
  7. data/lib/coinbase/client/api/transaction_history_api.rb +101 -0
  8. data/lib/coinbase/client/api/users_api.rb +79 -0
  9. data/lib/coinbase/client/api/validators_api.rb +4 -4
  10. data/lib/coinbase/client/api/wallets_api.rb +4 -4
  11. data/lib/coinbase/client/api/webhooks_api.rb +72 -2
  12. data/lib/coinbase/client/models/create_smart_contract_request.rb +259 -0
  13. data/lib/coinbase/client/models/create_wallet_webhook_request.rb +232 -0
  14. data/lib/coinbase/client/models/create_webhook_request.rb +10 -8
  15. data/lib/coinbase/client/models/deploy_smart_contract_request.rb +222 -0
  16. data/lib/coinbase/client/models/multi_token_contract_options.rb +223 -0
  17. data/lib/coinbase/client/models/network_identifier.rb +2 -1
  18. data/lib/coinbase/client/models/nft_contract_options.rb +257 -0
  19. data/lib/coinbase/client/models/smart_contract.rb +378 -0
  20. data/lib/coinbase/client/models/smart_contract_list.rb +257 -0
  21. data/lib/coinbase/client/models/smart_contract_options.rb +107 -0
  22. data/lib/coinbase/client/models/smart_contract_type.rb +42 -0
  23. data/lib/coinbase/client/models/staking_balance.rb +2 -2
  24. data/lib/coinbase/client/models/staking_reward.rb +2 -2
  25. data/lib/coinbase/client/models/token_contract_options.rb +257 -0
  26. data/lib/coinbase/client/models/update_webhook_request.rb +10 -8
  27. data/lib/coinbase/client/models/user.rb +231 -0
  28. data/lib/coinbase/client/models/webhook.rb +10 -1
  29. data/lib/coinbase/client/models/webhook_event_type.rb +2 -1
  30. data/lib/coinbase/client/models/webhook_event_type_filter.rb +105 -0
  31. data/lib/coinbase/client/models/webhook_wallet_activity_filter.rb +228 -0
  32. data/lib/coinbase/client.rb +15 -0
  33. data/lib/coinbase/contract_invocation.rb +16 -17
  34. data/lib/coinbase/smart_contract.rb +264 -39
  35. data/lib/coinbase/transaction.rb +3 -0
  36. data/lib/coinbase/transfer.rb +1 -1
  37. data/lib/coinbase/version.rb +1 -1
  38. data/lib/coinbase/wallet.rb +45 -2
  39. data/lib/coinbase/webhook.rb +3 -7
  40. 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.5.0
4
+ version: 0.7.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-09-12 00:00:00.000000000 Z
11
+ date: 2024-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal
@@ -285,9 +285,12 @@ files:
285
285
  - lib/coinbase/client/api/external_addresses_api.rb
286
286
  - lib/coinbase/client/api/networks_api.rb
287
287
  - lib/coinbase/client/api/server_signers_api.rb
288
+ - lib/coinbase/client/api/smart_contracts_api.rb
288
289
  - lib/coinbase/client/api/stake_api.rb
289
290
  - lib/coinbase/client/api/trades_api.rb
291
+ - lib/coinbase/client/api/transaction_history_api.rb
290
292
  - lib/coinbase/client/api/transfers_api.rb
293
+ - lib/coinbase/client/api/users_api.rb
291
294
  - lib/coinbase/client/api/validators_api.rb
292
295
  - lib/coinbase/client/api/wallet_stake_api.rb
293
296
  - lib/coinbase/client/api/wallets_api.rb
@@ -315,12 +318,15 @@ files:
315
318
  - lib/coinbase/client/models/create_contract_invocation_request.rb
316
319
  - lib/coinbase/client/models/create_payload_signature_request.rb
317
320
  - lib/coinbase/client/models/create_server_signer_request.rb
321
+ - lib/coinbase/client/models/create_smart_contract_request.rb
318
322
  - lib/coinbase/client/models/create_staking_operation_request.rb
319
323
  - lib/coinbase/client/models/create_trade_request.rb
320
324
  - lib/coinbase/client/models/create_transfer_request.rb
321
325
  - lib/coinbase/client/models/create_wallet_request.rb
322
326
  - lib/coinbase/client/models/create_wallet_request_wallet.rb
327
+ - lib/coinbase/client/models/create_wallet_webhook_request.rb
323
328
  - lib/coinbase/client/models/create_webhook_request.rb
329
+ - lib/coinbase/client/models/deploy_smart_contract_request.rb
324
330
  - lib/coinbase/client/models/erc20_transfer_event.rb
325
331
  - lib/coinbase/client/models/erc721_transfer_event.rb
326
332
  - lib/coinbase/client/models/error.rb
@@ -336,8 +342,10 @@ files:
336
342
  - lib/coinbase/client/models/fetch_staking_rewards_request.rb
337
343
  - lib/coinbase/client/models/get_staking_context_request.rb
338
344
  - lib/coinbase/client/models/historical_balance.rb
345
+ - lib/coinbase/client/models/multi_token_contract_options.rb
339
346
  - lib/coinbase/client/models/network.rb
340
347
  - lib/coinbase/client/models/network_identifier.rb
348
+ - lib/coinbase/client/models/nft_contract_options.rb
341
349
  - lib/coinbase/client/models/payload_signature.rb
342
350
  - lib/coinbase/client/models/payload_signature_list.rb
343
351
  - lib/coinbase/client/models/seed_creation_event.rb
@@ -350,6 +358,10 @@ files:
350
358
  - lib/coinbase/client/models/signature_creation_event.rb
351
359
  - lib/coinbase/client/models/signature_creation_event_result.rb
352
360
  - lib/coinbase/client/models/signed_voluntary_exit_message_metadata.rb
361
+ - lib/coinbase/client/models/smart_contract.rb
362
+ - lib/coinbase/client/models/smart_contract_list.rb
363
+ - lib/coinbase/client/models/smart_contract_options.rb
364
+ - lib/coinbase/client/models/smart_contract_type.rb
353
365
  - lib/coinbase/client/models/sponsored_send.rb
354
366
  - lib/coinbase/client/models/staking_balance.rb
355
367
  - lib/coinbase/client/models/staking_context.rb
@@ -359,6 +371,7 @@ files:
359
371
  - lib/coinbase/client/models/staking_reward.rb
360
372
  - lib/coinbase/client/models/staking_reward_format.rb
361
373
  - lib/coinbase/client/models/staking_reward_usd_value.rb
374
+ - lib/coinbase/client/models/token_contract_options.rb
362
375
  - lib/coinbase/client/models/trade.rb
363
376
  - lib/coinbase/client/models/trade_list.rb
364
377
  - lib/coinbase/client/models/transaction.rb
@@ -367,6 +380,7 @@ files:
367
380
  - lib/coinbase/client/models/transfer.rb
368
381
  - lib/coinbase/client/models/transfer_list.rb
369
382
  - lib/coinbase/client/models/update_webhook_request.rb
383
+ - lib/coinbase/client/models/user.rb
370
384
  - lib/coinbase/client/models/validator.rb
371
385
  - lib/coinbase/client/models/validator_details.rb
372
386
  - lib/coinbase/client/models/validator_list.rb
@@ -376,7 +390,9 @@ files:
376
390
  - lib/coinbase/client/models/webhook.rb
377
391
  - lib/coinbase/client/models/webhook_event_filter.rb
378
392
  - lib/coinbase/client/models/webhook_event_type.rb
393
+ - lib/coinbase/client/models/webhook_event_type_filter.rb
379
394
  - lib/coinbase/client/models/webhook_list.rb
395
+ - lib/coinbase/client/models/webhook_wallet_activity_filter.rb
380
396
  - lib/coinbase/client/version.rb
381
397
  - lib/coinbase/constants.rb
382
398
  - lib/coinbase/contract_event.rb