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.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -5
- data/README.md +10 -10
- data/lib/steem.rb +48 -0
- data/lib/steem/api.rb +0 -21
- data/lib/steem/base_error.rb +5 -3
- data/lib/steem/broadcast.rb +21 -4
- data/lib/steem/marshal.rb +231 -0
- data/lib/steem/mixins/jsonable.rb +37 -0
- data/lib/steem/mixins/serializable.rb +45 -0
- data/lib/steem/operation.rb +141 -0
- data/lib/steem/operation/account_create.rb +10 -0
- data/lib/steem/operation/account_create_with_delegation.rb +12 -0
- data/lib/steem/operation/account_update.rb +8 -0
- data/lib/steem/operation/account_witness_proxy.rb +4 -0
- data/lib/steem/operation/account_witness_vote.rb +5 -0
- data/lib/steem/operation/cancel_transfer_from_savings.rb +4 -0
- data/lib/steem/operation/challenge_authority.rb +5 -0
- data/lib/steem/operation/change_recovery_account.rb +5 -0
- data/lib/steem/operation/claim_account.rb +5 -0
- data/lib/steem/operation/claim_reward_balance.rb +6 -0
- data/lib/steem/operation/comment.rb +9 -0
- data/lib/steem/operation/comment_options.rb +10 -0
- data/lib/steem/operation/convert.rb +5 -0
- data/lib/steem/operation/create_claimed_account.rb +10 -0
- data/lib/steem/operation/custom.rb +5 -0
- data/lib/steem/operation/custom_binary.rb +8 -0
- data/lib/steem/operation/custom_json.rb +6 -0
- data/lib/steem/operation/decline_voting_rights.rb +4 -0
- data/lib/steem/operation/delegate_vesting_shares.rb +5 -0
- data/lib/steem/operation/delete_comment.rb +4 -0
- data/lib/steem/operation/escrow_approve.rb +8 -0
- data/lib/steem/operation/escrow_dispute.rb +7 -0
- data/lib/steem/operation/escrow_release.rb +10 -0
- data/lib/steem/operation/escrow_transfer.rb +12 -0
- data/lib/steem/operation/feed_publish.rb +4 -0
- data/lib/steem/operation/limit_order_cancel.rb +4 -0
- data/lib/steem/operation/limit_order_create.rb +8 -0
- data/lib/steem/operation/limit_order_create2.rb +8 -0
- data/lib/steem/operation/prove_authority.rb +4 -0
- data/lib/steem/operation/recover_account.rb +6 -0
- data/lib/steem/operation/report_over_production.rb +5 -0
- data/lib/steem/operation/request_account_recovery.rb +6 -0
- data/lib/steem/operation/reset_account.rb +5 -0
- data/lib/steem/operation/set_reset_account.rb +5 -0
- data/lib/steem/operation/set_withdraw_vesting_route.rb +6 -0
- data/lib/steem/operation/transfer.rb +6 -0
- data/lib/steem/operation/transfer_from_savings.rb +7 -0
- data/lib/steem/operation/transfer_to_savings.rb +6 -0
- data/lib/steem/operation/transfer_to_vesting.rb +5 -0
- data/lib/steem/operation/vote.rb +6 -0
- data/lib/steem/operation/withdraw_vesting.rb +4 -0
- data/lib/steem/operation/witness_set_properties.rb +5 -0
- data/lib/steem/operation/witness_update.rb +7 -0
- data/lib/steem/rpc/base_client.rb +13 -0
- data/lib/steem/rpc/http_client.rb +17 -1
- data/lib/steem/stream.rb +12 -4
- data/lib/steem/transaction.rb +96 -0
- data/lib/steem/transaction_builder.rb +69 -69
- data/lib/steem/type/amount.rb +2 -0
- data/lib/steem/version.rb +1 -1
- data/steem-ruby.gemspec +2 -0
- metadata +90 -2
data/lib/steem/type/amount.rb
CHANGED
data/lib/steem/version.rb
CHANGED
data/steem-ruby.gemspec
CHANGED
@@ -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.
|
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-
|
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
|