steem-ruby 0.9.0 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -1
  3. data/README.md +88 -15
  4. data/Rakefile +128 -31
  5. data/lib/steem.rb +49 -0
  6. data/lib/steem/api.rb +39 -37
  7. data/lib/steem/base_error.rb +80 -41
  8. data/lib/steem/block_api.rb +23 -3
  9. data/lib/steem/broadcast.rb +465 -29
  10. data/lib/steem/chain_config.rb +3 -3
  11. data/lib/steem/marshal.rb +231 -0
  12. data/lib/steem/mixins/jsonable.rb +37 -0
  13. data/lib/steem/mixins/retriable.rb +30 -24
  14. data/lib/steem/mixins/serializable.rb +45 -0
  15. data/lib/steem/operation.rb +141 -0
  16. data/lib/steem/operation/account_create.rb +10 -0
  17. data/lib/steem/operation/account_create_with_delegation.rb +12 -0
  18. data/lib/steem/operation/account_update.rb +8 -0
  19. data/lib/steem/operation/account_witness_proxy.rb +4 -0
  20. data/lib/steem/operation/account_witness_vote.rb +5 -0
  21. data/lib/steem/operation/cancel_transfer_from_savings.rb +4 -0
  22. data/lib/steem/operation/challenge_authority.rb +5 -0
  23. data/lib/steem/operation/change_recovery_account.rb +5 -0
  24. data/lib/steem/operation/claim_account.rb +5 -0
  25. data/lib/steem/operation/claim_reward_balance.rb +6 -0
  26. data/lib/steem/operation/comment.rb +9 -0
  27. data/lib/steem/operation/comment_options.rb +10 -0
  28. data/lib/steem/operation/convert.rb +5 -0
  29. data/lib/steem/operation/create_claimed_account.rb +10 -0
  30. data/lib/steem/operation/custom.rb +5 -0
  31. data/lib/steem/operation/custom_binary.rb +8 -0
  32. data/lib/steem/operation/custom_json.rb +6 -0
  33. data/lib/steem/operation/decline_voting_rights.rb +4 -0
  34. data/lib/steem/operation/delegate_vesting_shares.rb +5 -0
  35. data/lib/steem/operation/delete_comment.rb +4 -0
  36. data/lib/steem/operation/escrow_approve.rb +8 -0
  37. data/lib/steem/operation/escrow_dispute.rb +7 -0
  38. data/lib/steem/operation/escrow_release.rb +10 -0
  39. data/lib/steem/operation/escrow_transfer.rb +12 -0
  40. data/lib/steem/operation/feed_publish.rb +4 -0
  41. data/lib/steem/operation/limit_order_cancel.rb +4 -0
  42. data/lib/steem/operation/limit_order_create.rb +8 -0
  43. data/lib/steem/operation/limit_order_create2.rb +8 -0
  44. data/lib/steem/operation/prove_authority.rb +4 -0
  45. data/lib/steem/operation/recover_account.rb +6 -0
  46. data/lib/steem/operation/report_over_production.rb +5 -0
  47. data/lib/steem/operation/request_account_recovery.rb +6 -0
  48. data/lib/steem/operation/reset_account.rb +5 -0
  49. data/lib/steem/operation/set_reset_account.rb +5 -0
  50. data/lib/steem/operation/set_withdraw_vesting_route.rb +6 -0
  51. data/lib/steem/operation/transfer.rb +6 -0
  52. data/lib/steem/operation/transfer_from_savings.rb +7 -0
  53. data/lib/steem/operation/transfer_to_savings.rb +6 -0
  54. data/lib/steem/operation/transfer_to_vesting.rb +5 -0
  55. data/lib/steem/operation/vote.rb +6 -0
  56. data/lib/steem/operation/withdraw_vesting.rb +4 -0
  57. data/lib/steem/operation/witness_set_properties.rb +5 -0
  58. data/lib/steem/operation/witness_update.rb +7 -0
  59. data/lib/steem/rpc/base_client.rb +16 -4
  60. data/lib/steem/rpc/http_client.rb +18 -2
  61. data/lib/steem/stream.rb +385 -0
  62. data/lib/steem/transaction.rb +96 -0
  63. data/lib/steem/transaction_builder.rb +176 -103
  64. data/lib/steem/type/amount.rb +61 -9
  65. data/lib/steem/version.rb +1 -1
  66. data/steem-ruby.gemspec +9 -4
  67. metadata +203 -56
  68. data/Gemfile.lock +0 -73
@@ -1,73 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- steem-ruby (0.9.0)
5
- bitcoin-ruby (~> 0.0, >= 0.0.18)
6
- ffi (~> 1.9, >= 1.9.23)
7
- hashie (~> 3.5, >= 3.5.7)
8
- json (~> 2.1, >= 2.1.0)
9
- logging (~> 2.2, >= 2.2.0)
10
-
11
- GEM
12
- remote: https://rubygems.org/
13
- specs:
14
- addressable (2.5.2)
15
- public_suffix (>= 2.0.2, < 4.0)
16
- awesome_print (1.8.0)
17
- bitcoin-ruby (0.0.18)
18
- coderay (1.1.2)
19
- crack (0.4.3)
20
- safe_yaml (~> 1.0.0)
21
- docile (1.3.0)
22
- ffi (1.9.23)
23
- hashdiff (0.3.7)
24
- hashie (3.5.7)
25
- json (2.1.0)
26
- little-plugger (1.1.4)
27
- logging (2.2.2)
28
- little-plugger (~> 1.1)
29
- multi_json (~> 1.10)
30
- method_source (0.9.0)
31
- minitest (5.10.3)
32
- minitest-line (0.6.4)
33
- minitest (~> 5.0)
34
- minitest-proveit (1.0.0)
35
- minitest (> 5, < 7)
36
- multi_json (1.13.1)
37
- pry (0.11.3)
38
- coderay (~> 1.1.0)
39
- method_source (~> 0.9.0)
40
- public_suffix (3.0.2)
41
- rake (12.3.1)
42
- safe_yaml (1.0.4)
43
- simplecov (0.16.1)
44
- docile (~> 1.1)
45
- json (>= 1.8, < 3)
46
- simplecov-html (~> 0.10.0)
47
- simplecov-html (0.10.2)
48
- vcr (4.0.0)
49
- webmock (3.3.0)
50
- addressable (>= 2.3.6)
51
- crack (>= 0.3.2)
52
- hashdiff
53
- yard (0.9.12)
54
-
55
- PLATFORMS
56
- ruby
57
-
58
- DEPENDENCIES
59
- awesome_print (~> 1.8, >= 1.8.0)
60
- bundler (~> 1.16, >= 1.16.1)
61
- minitest (~> 5.10, >= 5.10.3)
62
- minitest-line (~> 0.6, >= 0.6.4)
63
- minitest-proveit (~> 1.0, >= 1.0.0)
64
- pry (~> 0.11, >= 0.11.3)
65
- rake (~> 12.3, >= 12.3.0)
66
- simplecov (~> 0.15, >= 0.15.1)
67
- steem-ruby!
68
- vcr (~> 4.0, >= 4.0.0)
69
- webmock (~> 3.3, >= 3.3.0)
70
- yard (~> 0.9, >= 0.9.12)
71
-
72
- BUNDLED WITH
73
- 1.16.1