steem-ruby 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -5
  3. data/README.md +10 -10
  4. data/lib/steem.rb +48 -0
  5. data/lib/steem/api.rb +0 -21
  6. data/lib/steem/base_error.rb +5 -3
  7. data/lib/steem/broadcast.rb +21 -4
  8. data/lib/steem/marshal.rb +231 -0
  9. data/lib/steem/mixins/jsonable.rb +37 -0
  10. data/lib/steem/mixins/serializable.rb +45 -0
  11. data/lib/steem/operation.rb +141 -0
  12. data/lib/steem/operation/account_create.rb +10 -0
  13. data/lib/steem/operation/account_create_with_delegation.rb +12 -0
  14. data/lib/steem/operation/account_update.rb +8 -0
  15. data/lib/steem/operation/account_witness_proxy.rb +4 -0
  16. data/lib/steem/operation/account_witness_vote.rb +5 -0
  17. data/lib/steem/operation/cancel_transfer_from_savings.rb +4 -0
  18. data/lib/steem/operation/challenge_authority.rb +5 -0
  19. data/lib/steem/operation/change_recovery_account.rb +5 -0
  20. data/lib/steem/operation/claim_account.rb +5 -0
  21. data/lib/steem/operation/claim_reward_balance.rb +6 -0
  22. data/lib/steem/operation/comment.rb +9 -0
  23. data/lib/steem/operation/comment_options.rb +10 -0
  24. data/lib/steem/operation/convert.rb +5 -0
  25. data/lib/steem/operation/create_claimed_account.rb +10 -0
  26. data/lib/steem/operation/custom.rb +5 -0
  27. data/lib/steem/operation/custom_binary.rb +8 -0
  28. data/lib/steem/operation/custom_json.rb +6 -0
  29. data/lib/steem/operation/decline_voting_rights.rb +4 -0
  30. data/lib/steem/operation/delegate_vesting_shares.rb +5 -0
  31. data/lib/steem/operation/delete_comment.rb +4 -0
  32. data/lib/steem/operation/escrow_approve.rb +8 -0
  33. data/lib/steem/operation/escrow_dispute.rb +7 -0
  34. data/lib/steem/operation/escrow_release.rb +10 -0
  35. data/lib/steem/operation/escrow_transfer.rb +12 -0
  36. data/lib/steem/operation/feed_publish.rb +4 -0
  37. data/lib/steem/operation/limit_order_cancel.rb +4 -0
  38. data/lib/steem/operation/limit_order_create.rb +8 -0
  39. data/lib/steem/operation/limit_order_create2.rb +8 -0
  40. data/lib/steem/operation/prove_authority.rb +4 -0
  41. data/lib/steem/operation/recover_account.rb +6 -0
  42. data/lib/steem/operation/report_over_production.rb +5 -0
  43. data/lib/steem/operation/request_account_recovery.rb +6 -0
  44. data/lib/steem/operation/reset_account.rb +5 -0
  45. data/lib/steem/operation/set_reset_account.rb +5 -0
  46. data/lib/steem/operation/set_withdraw_vesting_route.rb +6 -0
  47. data/lib/steem/operation/transfer.rb +6 -0
  48. data/lib/steem/operation/transfer_from_savings.rb +7 -0
  49. data/lib/steem/operation/transfer_to_savings.rb +6 -0
  50. data/lib/steem/operation/transfer_to_vesting.rb +5 -0
  51. data/lib/steem/operation/vote.rb +6 -0
  52. data/lib/steem/operation/withdraw_vesting.rb +4 -0
  53. data/lib/steem/operation/witness_set_properties.rb +5 -0
  54. data/lib/steem/operation/witness_update.rb +7 -0
  55. data/lib/steem/rpc/base_client.rb +13 -0
  56. data/lib/steem/rpc/http_client.rb +17 -1
  57. data/lib/steem/stream.rb +12 -4
  58. data/lib/steem/transaction.rb +96 -0
  59. data/lib/steem/transaction_builder.rb +69 -69
  60. data/lib/steem/type/amount.rb +2 -0
  61. data/lib/steem/version.rb +1 -1
  62. data/steem-ruby.gemspec +2 -0
  63. metadata +90 -2
@@ -55,6 +55,8 @@ module Steem
55
55
  when 'STEEM' then 3
56
56
  when 'VESTS' then 6
57
57
  when 'SBD' then 3
58
+ when 'TESTS' then 3
59
+ when 'TBD' then 3
58
60
  else; raise TypeError, "Asset #{@asset} unknown."
59
61
  end
60
62
  end
@@ -1,4 +1,4 @@
1
1
  module Steem
2
- VERSION = '0.9.3'
2
+ VERSION = '0.9.4'
3
3
  AGENT_ID = "steem-ruby/#{VERSION}"
4
4
  end
@@ -34,4 +34,6 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency 'hashie', '~> 3.5', '>= 3.5.7'
35
35
  spec.add_dependency 'bitcoin-ruby', '~> 0.0', '>= 0.0.18'
36
36
  spec.add_dependency 'ffi', '~> 1.9', '>= 1.9.23'
37
+ spec.add_dependency 'bindata', '~> 2.4', '>= 2.4.4'
38
+ spec.add_dependency 'base58', '~> 0.2', '>= 0.2.3'
37
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steem-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Martin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-05 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -330,6 +330,46 @@ dependencies:
330
330
  - - ">="
331
331
  - !ruby/object:Gem::Version
332
332
  version: 1.9.23
333
+ - !ruby/object:Gem::Dependency
334
+ name: bindata
335
+ requirement: !ruby/object:Gem::Requirement
336
+ requirements:
337
+ - - "~>"
338
+ - !ruby/object:Gem::Version
339
+ version: '2.4'
340
+ - - ">="
341
+ - !ruby/object:Gem::Version
342
+ version: 2.4.4
343
+ type: :runtime
344
+ prerelease: false
345
+ version_requirements: !ruby/object:Gem::Requirement
346
+ requirements:
347
+ - - "~>"
348
+ - !ruby/object:Gem::Version
349
+ version: '2.4'
350
+ - - ">="
351
+ - !ruby/object:Gem::Version
352
+ version: 2.4.4
353
+ - !ruby/object:Gem::Dependency
354
+ name: base58
355
+ requirement: !ruby/object:Gem::Requirement
356
+ requirements:
357
+ - - "~>"
358
+ - !ruby/object:Gem::Version
359
+ version: '0.2'
360
+ - - ">="
361
+ - !ruby/object:Gem::Version
362
+ version: 0.2.3
363
+ type: :runtime
364
+ prerelease: false
365
+ version_requirements: !ruby/object:Gem::Requirement
366
+ requirements:
367
+ - - "~>"
368
+ - !ruby/object:Gem::Version
369
+ version: '0.2'
370
+ - - ">="
371
+ - !ruby/object:Gem::Version
372
+ version: 0.2.3
333
373
  description: Client for accessing the Steem blockchain.
334
374
  email:
335
375
  - anthony@steem.com
@@ -354,11 +394,59 @@ files:
354
394
  - lib/steem/chain_config.rb
355
395
  - lib/steem/formatter.rb
356
396
  - lib/steem/jsonrpc.rb
397
+ - lib/steem/marshal.rb
398
+ - lib/steem/mixins/jsonable.rb
357
399
  - lib/steem/mixins/retriable.rb
400
+ - lib/steem/mixins/serializable.rb
401
+ - lib/steem/operation.rb
402
+ - lib/steem/operation/account_create.rb
403
+ - lib/steem/operation/account_create_with_delegation.rb
404
+ - lib/steem/operation/account_update.rb
405
+ - lib/steem/operation/account_witness_proxy.rb
406
+ - lib/steem/operation/account_witness_vote.rb
407
+ - lib/steem/operation/cancel_transfer_from_savings.rb
408
+ - lib/steem/operation/challenge_authority.rb
409
+ - lib/steem/operation/change_recovery_account.rb
410
+ - lib/steem/operation/claim_account.rb
411
+ - lib/steem/operation/claim_reward_balance.rb
412
+ - lib/steem/operation/comment.rb
413
+ - lib/steem/operation/comment_options.rb
414
+ - lib/steem/operation/convert.rb
415
+ - lib/steem/operation/create_claimed_account.rb
416
+ - lib/steem/operation/custom.rb
417
+ - lib/steem/operation/custom_binary.rb
418
+ - lib/steem/operation/custom_json.rb
419
+ - lib/steem/operation/decline_voting_rights.rb
420
+ - lib/steem/operation/delegate_vesting_shares.rb
421
+ - lib/steem/operation/delete_comment.rb
422
+ - lib/steem/operation/escrow_approve.rb
423
+ - lib/steem/operation/escrow_dispute.rb
424
+ - lib/steem/operation/escrow_release.rb
425
+ - lib/steem/operation/escrow_transfer.rb
426
+ - lib/steem/operation/feed_publish.rb
427
+ - lib/steem/operation/limit_order_cancel.rb
428
+ - lib/steem/operation/limit_order_create.rb
429
+ - lib/steem/operation/limit_order_create2.rb
430
+ - lib/steem/operation/prove_authority.rb
431
+ - lib/steem/operation/recover_account.rb
432
+ - lib/steem/operation/report_over_production.rb
433
+ - lib/steem/operation/request_account_recovery.rb
434
+ - lib/steem/operation/reset_account.rb
435
+ - lib/steem/operation/set_reset_account.rb
436
+ - lib/steem/operation/set_withdraw_vesting_route.rb
437
+ - lib/steem/operation/transfer.rb
438
+ - lib/steem/operation/transfer_from_savings.rb
439
+ - lib/steem/operation/transfer_to_savings.rb
440
+ - lib/steem/operation/transfer_to_vesting.rb
441
+ - lib/steem/operation/vote.rb
442
+ - lib/steem/operation/withdraw_vesting.rb
443
+ - lib/steem/operation/witness_set_properties.rb
444
+ - lib/steem/operation/witness_update.rb
358
445
  - lib/steem/rpc/base_client.rb
359
446
  - lib/steem/rpc/http_client.rb
360
447
  - lib/steem/rpc/thread_safe_http_client.rb
361
448
  - lib/steem/stream.rb
449
+ - lib/steem/transaction.rb
362
450
  - lib/steem/transaction_builder.rb
363
451
  - lib/steem/type/amount.rb
364
452
  - lib/steem/type/base_type.rb