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.
- checksums.yaml +5 -5
- data/.gitignore +1 -1
- data/README.md +88 -15
- data/Rakefile +128 -31
- data/lib/steem.rb +49 -0
- data/lib/steem/api.rb +39 -37
- data/lib/steem/base_error.rb +80 -41
- data/lib/steem/block_api.rb +23 -3
- data/lib/steem/broadcast.rb +465 -29
- data/lib/steem/chain_config.rb +3 -3
- data/lib/steem/marshal.rb +231 -0
- data/lib/steem/mixins/jsonable.rb +37 -0
- data/lib/steem/mixins/retriable.rb +30 -24
- 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 +16 -4
- data/lib/steem/rpc/http_client.rb +18 -2
- data/lib/steem/stream.rb +385 -0
- data/lib/steem/transaction.rb +96 -0
- data/lib/steem/transaction_builder.rb +176 -103
- data/lib/steem/type/amount.rb +61 -9
- data/lib/steem/version.rb +1 -1
- data/steem-ruby.gemspec +9 -4
- metadata +203 -56
- data/Gemfile.lock +0 -73
data/lib/steem/type/amount.rb
CHANGED
@@ -3,35 +3,61 @@ module Steem
|
|
3
3
|
|
4
4
|
# See: https://github.com/xeroc/piston-lib/blob/34a7525cee119ec9b24a99577ede2d54466fca0e/steembase/operations.py
|
5
5
|
class Amount < BaseType
|
6
|
-
|
7
|
-
|
6
|
+
attr_reader :amount, :precision, :nai, :asset
|
7
|
+
|
8
|
+
def self.to_h(amount)
|
9
|
+
new(amount).to_h
|
8
10
|
end
|
9
11
|
|
10
12
|
def self.to_s(amount)
|
11
13
|
new(amount).to_s
|
12
14
|
end
|
13
15
|
|
16
|
+
def self.to_bytes(amount)
|
17
|
+
new(amount).to_bytes
|
18
|
+
end
|
19
|
+
|
14
20
|
def initialize(value)
|
15
21
|
super(:amount, value)
|
16
22
|
|
17
23
|
case value
|
18
24
|
when Array
|
19
|
-
|
20
|
-
@asset = case
|
25
|
+
@amount, @precision, @nai = value
|
26
|
+
@asset = case @nai
|
27
|
+
when '@@000000013' then 'SBD'
|
28
|
+
when '@@000000021' then 'STEEM'
|
29
|
+
when '@@000000037' then 'VESTS'
|
30
|
+
# else; raise TypeError, "Asset #{@nai} unknown."
|
31
|
+
end
|
32
|
+
|
33
|
+
@amount = "%.#{@precision}f" % (@amount.to_f / 10 ** @precision)
|
34
|
+
when Hash
|
35
|
+
@amount, @precision, @nai = value.map do |k, v|
|
36
|
+
v if %i(amount precision nai).include? k.to_sym
|
37
|
+
end.compact
|
38
|
+
|
39
|
+
@asset = case @nai
|
21
40
|
when '@@000000013' then 'SBD'
|
22
41
|
when '@@000000021' then 'STEEM'
|
23
42
|
when '@@000000037' then 'VESTS'
|
24
|
-
else; raise TypeError, "Asset #{@
|
43
|
+
# else; raise TypeError, "Asset #{@nai} unknown."
|
25
44
|
end
|
26
|
-
|
27
|
-
@amount = "%.#{
|
45
|
+
|
46
|
+
@amount = "%.#{@precision}f" % (@amount.to_f / 10 ** @precision)
|
47
|
+
when Amount
|
48
|
+
@precision = value.precision
|
49
|
+
@nai = value.nai
|
50
|
+
@asset = value.asset
|
51
|
+
@amount = value.amount
|
28
52
|
else
|
29
53
|
@amount, @asset = value.strip.split(' ') rescue ['', '']
|
30
54
|
@precision = case @asset
|
31
55
|
when 'STEEM' then 3
|
32
56
|
when 'VESTS' then 6
|
33
57
|
when 'SBD' then 3
|
34
|
-
|
58
|
+
when 'TESTS' then 3
|
59
|
+
when 'TBD' then 3
|
60
|
+
# else; raise TypeError, "Asset #{@asset} unknown."
|
35
61
|
end
|
36
62
|
end
|
37
63
|
end
|
@@ -45,7 +71,7 @@ module Steem
|
|
45
71
|
asset
|
46
72
|
end
|
47
73
|
|
48
|
-
def
|
74
|
+
def to_a
|
49
75
|
case @asset
|
50
76
|
when 'STEEM' then [(@amount.to_f * 1000).to_i.to_s, 3, '@@000000021']
|
51
77
|
when 'VESTS' then [(@amount.to_f * 1000000).to_i.to_s, 6, '@@000000037']
|
@@ -53,6 +79,32 @@ module Steem
|
|
53
79
|
end
|
54
80
|
end
|
55
81
|
|
82
|
+
def to_h
|
83
|
+
case @asset
|
84
|
+
when 'STEEM', 'TESTS' then {
|
85
|
+
amount: (@amount.to_f * 1000).to_i.to_s,
|
86
|
+
precision: 3,
|
87
|
+
nai: '@@000000021'
|
88
|
+
}
|
89
|
+
when 'VESTS' then {
|
90
|
+
amount: (@amount.to_f * 1000000).to_i.to_s,
|
91
|
+
precision: 6,
|
92
|
+
nai: '@@000000037'
|
93
|
+
}
|
94
|
+
when 'SBD', 'TBD' then {
|
95
|
+
amount: (@amount.to_f * 1000).to_i.to_s,
|
96
|
+
precision: 3,
|
97
|
+
nai: '@@000000013'
|
98
|
+
}
|
99
|
+
else
|
100
|
+
{
|
101
|
+
amount: (@amount.to_f * (10 ** @precision)).to_i.to_s,
|
102
|
+
precision: @precision,
|
103
|
+
nai: @nai
|
104
|
+
}
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
56
108
|
def to_s
|
57
109
|
"#{@amount} #{@asset}"
|
58
110
|
end
|
data/lib/steem/version.rb
CHANGED
data/steem-ruby.gemspec
CHANGED
@@ -17,21 +17,26 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test)/}) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.add_development_dependency 'bundler', '~> 1
|
21
|
-
spec.add_development_dependency 'rake', '~>
|
20
|
+
spec.add_development_dependency 'bundler', '~> 2.1', '>= 1.16.1'
|
21
|
+
spec.add_development_dependency 'rake', '~> 13.0', '>= 12.3.0'
|
22
22
|
spec.add_development_dependency 'minitest', '~> 5.10', '>= 5.10.3'
|
23
23
|
spec.add_development_dependency 'minitest-line', '~> 0.6', '>= 0.6.4'
|
24
24
|
spec.add_development_dependency 'minitest-proveit', '~> 1.0', '>= 1.0.0'
|
25
25
|
spec.add_development_dependency 'webmock', '~> 3.3', '>= 3.3.0'
|
26
26
|
spec.add_development_dependency 'simplecov', '~> 0.15', '>= 0.15.1'
|
27
|
-
spec.add_development_dependency 'vcr', '~>
|
27
|
+
spec.add_development_dependency 'vcr', '~> 6.0', '>= 4.0.0'
|
28
28
|
spec.add_development_dependency 'yard', '~> 0.9', '>= 0.9.12'
|
29
29
|
spec.add_development_dependency 'pry', '~> 0.11', '>= 0.11.3'
|
30
30
|
spec.add_development_dependency 'awesome_print', '~> 1.8', '>= 1.8.0'
|
31
|
+
spec.add_development_dependency 'rb-readline', '~> 0.5', '>= 0.5.5'
|
32
|
+
spec.add_development_dependency 'irb', '~> 1.0', '>= 1.0.0'
|
33
|
+
spec.add_development_dependency 'highline', '~> 2.0', '>= 2.0.3'
|
31
34
|
|
32
35
|
spec.add_dependency 'json', '~> 2.1', '>= 2.1.0'
|
33
36
|
spec.add_dependency 'logging', '~> 2.2', '>= 2.2.0'
|
34
|
-
spec.add_dependency 'hashie', '~>
|
37
|
+
spec.add_dependency 'hashie', '~> 4.1', '>= 3.5.7'
|
35
38
|
spec.add_dependency 'bitcoin-ruby', '~> 0.0', '>= 0.0.18'
|
36
39
|
spec.add_dependency 'ffi', '~> 1.9', '>= 1.9.23'
|
40
|
+
spec.add_dependency 'bindata', '~> 2.4', '>= 2.4.4'
|
41
|
+
spec.add_dependency 'base58', '~> 0.2', '>= 0.2.3'
|
37
42
|
end
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Martin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.16'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: 1.16.1
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.1'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.16'
|
30
27
|
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 1.16.1
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rake
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '12.3'
|
40
37
|
- - ">="
|
41
38
|
- !ruby/object:Gem::Version
|
42
39
|
version: 12.3.0
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '13.0'
|
43
43
|
type: :development
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '12.3'
|
50
47
|
- - ">="
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: 12.3.0
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '13.0'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: minitest
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,42 +94,42 @@ dependencies:
|
|
94
94
|
name: minitest-proveit
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- - "~>"
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version: '1.0'
|
100
97
|
- - ">="
|
101
98
|
- !ruby/object:Gem::Version
|
102
99
|
version: 1.0.0
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.0'
|
103
103
|
type: :development
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '1.0'
|
110
107
|
- - ">="
|
111
108
|
- !ruby/object:Gem::Version
|
112
109
|
version: 1.0.0
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '1.0'
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: webmock
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- - "~>"
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
version: '3.3'
|
120
117
|
- - ">="
|
121
118
|
- !ruby/object:Gem::Version
|
122
119
|
version: 3.3.0
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '3.3'
|
123
123
|
type: :development
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- - "~>"
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '3.3'
|
130
127
|
- - ">="
|
131
128
|
- !ruby/object:Gem::Version
|
132
129
|
version: 3.3.0
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '3.3'
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: simplecov
|
135
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,22 +154,22 @@ dependencies:
|
|
154
154
|
name: vcr
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '4.0'
|
160
157
|
- - ">="
|
161
158
|
- !ruby/object:Gem::Version
|
162
159
|
version: 4.0.0
|
160
|
+
- - "~>"
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '6.0'
|
163
163
|
type: :development
|
164
164
|
prerelease: false
|
165
165
|
version_requirements: !ruby/object:Gem::Requirement
|
166
166
|
requirements:
|
167
|
-
- - "~>"
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: '4.0'
|
170
167
|
- - ">="
|
171
168
|
- !ruby/object:Gem::Version
|
172
169
|
version: 4.0.0
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '6.0'
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
174
|
name: yard
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,82 +214,142 @@ dependencies:
|
|
214
214
|
name: awesome_print
|
215
215
|
requirement: !ruby/object:Gem::Requirement
|
216
216
|
requirements:
|
217
|
+
- - ">="
|
218
|
+
- !ruby/object:Gem::Version
|
219
|
+
version: 1.8.0
|
217
220
|
- - "~>"
|
218
221
|
- !ruby/object:Gem::Version
|
219
222
|
version: '1.8'
|
223
|
+
type: :development
|
224
|
+
prerelease: false
|
225
|
+
version_requirements: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
220
227
|
- - ">="
|
221
228
|
- !ruby/object:Gem::Version
|
222
229
|
version: 1.8.0
|
230
|
+
- - "~>"
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: '1.8'
|
233
|
+
- !ruby/object:Gem::Dependency
|
234
|
+
name: rb-readline
|
235
|
+
requirement: !ruby/object:Gem::Requirement
|
236
|
+
requirements:
|
237
|
+
- - "~>"
|
238
|
+
- !ruby/object:Gem::Version
|
239
|
+
version: '0.5'
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: 0.5.5
|
223
243
|
type: :development
|
224
244
|
prerelease: false
|
225
245
|
version_requirements: !ruby/object:Gem::Requirement
|
226
246
|
requirements:
|
227
247
|
- - "~>"
|
228
248
|
- !ruby/object:Gem::Version
|
229
|
-
version: '
|
249
|
+
version: '0.5'
|
230
250
|
- - ">="
|
231
251
|
- !ruby/object:Gem::Version
|
232
|
-
version:
|
252
|
+
version: 0.5.5
|
233
253
|
- !ruby/object:Gem::Dependency
|
234
|
-
name:
|
254
|
+
name: irb
|
235
255
|
requirement: !ruby/object:Gem::Requirement
|
236
256
|
requirements:
|
257
|
+
- - ">="
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: 1.0.0
|
237
260
|
- - "~>"
|
238
261
|
- !ruby/object:Gem::Version
|
239
|
-
version: '
|
262
|
+
version: '1.0'
|
263
|
+
type: :development
|
264
|
+
prerelease: false
|
265
|
+
version_requirements: !ruby/object:Gem::Requirement
|
266
|
+
requirements:
|
240
267
|
- - ">="
|
241
268
|
- !ruby/object:Gem::Version
|
242
|
-
version:
|
243
|
-
|
269
|
+
version: 1.0.0
|
270
|
+
- - "~>"
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: '1.0'
|
273
|
+
- !ruby/object:Gem::Dependency
|
274
|
+
name: highline
|
275
|
+
requirement: !ruby/object:Gem::Requirement
|
276
|
+
requirements:
|
277
|
+
- - "~>"
|
278
|
+
- !ruby/object:Gem::Version
|
279
|
+
version: '2.0'
|
280
|
+
- - ">="
|
281
|
+
- !ruby/object:Gem::Version
|
282
|
+
version: 2.0.3
|
283
|
+
type: :development
|
244
284
|
prerelease: false
|
245
285
|
version_requirements: !ruby/object:Gem::Requirement
|
246
286
|
requirements:
|
287
|
+
- - "~>"
|
288
|
+
- !ruby/object:Gem::Version
|
289
|
+
version: '2.0'
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 2.0.3
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: json
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ">="
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: 2.1.0
|
247
300
|
- - "~>"
|
248
301
|
- !ruby/object:Gem::Version
|
249
302
|
version: '2.1'
|
303
|
+
type: :runtime
|
304
|
+
prerelease: false
|
305
|
+
version_requirements: !ruby/object:Gem::Requirement
|
306
|
+
requirements:
|
250
307
|
- - ">="
|
251
308
|
- !ruby/object:Gem::Version
|
252
309
|
version: 2.1.0
|
310
|
+
- - "~>"
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: '2.1'
|
253
313
|
- !ruby/object:Gem::Dependency
|
254
314
|
name: logging
|
255
315
|
requirement: !ruby/object:Gem::Requirement
|
256
316
|
requirements:
|
257
|
-
- - "~>"
|
258
|
-
- !ruby/object:Gem::Version
|
259
|
-
version: '2.2'
|
260
317
|
- - ">="
|
261
318
|
- !ruby/object:Gem::Version
|
262
319
|
version: 2.2.0
|
320
|
+
- - "~>"
|
321
|
+
- !ruby/object:Gem::Version
|
322
|
+
version: '2.2'
|
263
323
|
type: :runtime
|
264
324
|
prerelease: false
|
265
325
|
version_requirements: !ruby/object:Gem::Requirement
|
266
326
|
requirements:
|
267
|
-
- - "~>"
|
268
|
-
- !ruby/object:Gem::Version
|
269
|
-
version: '2.2'
|
270
327
|
- - ">="
|
271
328
|
- !ruby/object:Gem::Version
|
272
329
|
version: 2.2.0
|
330
|
+
- - "~>"
|
331
|
+
- !ruby/object:Gem::Version
|
332
|
+
version: '2.2'
|
273
333
|
- !ruby/object:Gem::Dependency
|
274
334
|
name: hashie
|
275
335
|
requirement: !ruby/object:Gem::Requirement
|
276
336
|
requirements:
|
277
|
-
- - "~>"
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
version: '3.5'
|
280
337
|
- - ">="
|
281
338
|
- !ruby/object:Gem::Version
|
282
339
|
version: 3.5.7
|
340
|
+
- - "~>"
|
341
|
+
- !ruby/object:Gem::Version
|
342
|
+
version: '4.1'
|
283
343
|
type: :runtime
|
284
344
|
prerelease: false
|
285
345
|
version_requirements: !ruby/object:Gem::Requirement
|
286
346
|
requirements:
|
287
|
-
- - "~>"
|
288
|
-
- !ruby/object:Gem::Version
|
289
|
-
version: '3.5'
|
290
347
|
- - ">="
|
291
348
|
- !ruby/object:Gem::Version
|
292
349
|
version: 3.5.7
|
350
|
+
- - "~>"
|
351
|
+
- !ruby/object:Gem::Version
|
352
|
+
version: '4.1'
|
293
353
|
- !ruby/object:Gem::Dependency
|
294
354
|
name: bitcoin-ruby
|
295
355
|
requirement: !ruby/object:Gem::Requirement
|
@@ -330,6 +390,46 @@ dependencies:
|
|
330
390
|
- - ">="
|
331
391
|
- !ruby/object:Gem::Version
|
332
392
|
version: 1.9.23
|
393
|
+
- !ruby/object:Gem::Dependency
|
394
|
+
name: bindata
|
395
|
+
requirement: !ruby/object:Gem::Requirement
|
396
|
+
requirements:
|
397
|
+
- - "~>"
|
398
|
+
- !ruby/object:Gem::Version
|
399
|
+
version: '2.4'
|
400
|
+
- - ">="
|
401
|
+
- !ruby/object:Gem::Version
|
402
|
+
version: 2.4.4
|
403
|
+
type: :runtime
|
404
|
+
prerelease: false
|
405
|
+
version_requirements: !ruby/object:Gem::Requirement
|
406
|
+
requirements:
|
407
|
+
- - "~>"
|
408
|
+
- !ruby/object:Gem::Version
|
409
|
+
version: '2.4'
|
410
|
+
- - ">="
|
411
|
+
- !ruby/object:Gem::Version
|
412
|
+
version: 2.4.4
|
413
|
+
- !ruby/object:Gem::Dependency
|
414
|
+
name: base58
|
415
|
+
requirement: !ruby/object:Gem::Requirement
|
416
|
+
requirements:
|
417
|
+
- - "~>"
|
418
|
+
- !ruby/object:Gem::Version
|
419
|
+
version: '0.2'
|
420
|
+
- - ">="
|
421
|
+
- !ruby/object:Gem::Version
|
422
|
+
version: 0.2.3
|
423
|
+
type: :runtime
|
424
|
+
prerelease: false
|
425
|
+
version_requirements: !ruby/object:Gem::Requirement
|
426
|
+
requirements:
|
427
|
+
- - "~>"
|
428
|
+
- !ruby/object:Gem::Version
|
429
|
+
version: '0.2'
|
430
|
+
- - ">="
|
431
|
+
- !ruby/object:Gem::Version
|
432
|
+
version: 0.2.3
|
333
433
|
description: Client for accessing the Steem blockchain.
|
334
434
|
email:
|
335
435
|
- anthony@steem.com
|
@@ -340,7 +440,6 @@ files:
|
|
340
440
|
- ".gitignore"
|
341
441
|
- CONTRIBUTING.md
|
342
442
|
- Gemfile
|
343
|
-
- Gemfile.lock
|
344
443
|
- LICENSE
|
345
444
|
- README.md
|
346
445
|
- Rakefile
|
@@ -354,10 +453,59 @@ files:
|
|
354
453
|
- lib/steem/chain_config.rb
|
355
454
|
- lib/steem/formatter.rb
|
356
455
|
- lib/steem/jsonrpc.rb
|
456
|
+
- lib/steem/marshal.rb
|
457
|
+
- lib/steem/mixins/jsonable.rb
|
357
458
|
- lib/steem/mixins/retriable.rb
|
459
|
+
- lib/steem/mixins/serializable.rb
|
460
|
+
- lib/steem/operation.rb
|
461
|
+
- lib/steem/operation/account_create.rb
|
462
|
+
- lib/steem/operation/account_create_with_delegation.rb
|
463
|
+
- lib/steem/operation/account_update.rb
|
464
|
+
- lib/steem/operation/account_witness_proxy.rb
|
465
|
+
- lib/steem/operation/account_witness_vote.rb
|
466
|
+
- lib/steem/operation/cancel_transfer_from_savings.rb
|
467
|
+
- lib/steem/operation/challenge_authority.rb
|
468
|
+
- lib/steem/operation/change_recovery_account.rb
|
469
|
+
- lib/steem/operation/claim_account.rb
|
470
|
+
- lib/steem/operation/claim_reward_balance.rb
|
471
|
+
- lib/steem/operation/comment.rb
|
472
|
+
- lib/steem/operation/comment_options.rb
|
473
|
+
- lib/steem/operation/convert.rb
|
474
|
+
- lib/steem/operation/create_claimed_account.rb
|
475
|
+
- lib/steem/operation/custom.rb
|
476
|
+
- lib/steem/operation/custom_binary.rb
|
477
|
+
- lib/steem/operation/custom_json.rb
|
478
|
+
- lib/steem/operation/decline_voting_rights.rb
|
479
|
+
- lib/steem/operation/delegate_vesting_shares.rb
|
480
|
+
- lib/steem/operation/delete_comment.rb
|
481
|
+
- lib/steem/operation/escrow_approve.rb
|
482
|
+
- lib/steem/operation/escrow_dispute.rb
|
483
|
+
- lib/steem/operation/escrow_release.rb
|
484
|
+
- lib/steem/operation/escrow_transfer.rb
|
485
|
+
- lib/steem/operation/feed_publish.rb
|
486
|
+
- lib/steem/operation/limit_order_cancel.rb
|
487
|
+
- lib/steem/operation/limit_order_create.rb
|
488
|
+
- lib/steem/operation/limit_order_create2.rb
|
489
|
+
- lib/steem/operation/prove_authority.rb
|
490
|
+
- lib/steem/operation/recover_account.rb
|
491
|
+
- lib/steem/operation/report_over_production.rb
|
492
|
+
- lib/steem/operation/request_account_recovery.rb
|
493
|
+
- lib/steem/operation/reset_account.rb
|
494
|
+
- lib/steem/operation/set_reset_account.rb
|
495
|
+
- lib/steem/operation/set_withdraw_vesting_route.rb
|
496
|
+
- lib/steem/operation/transfer.rb
|
497
|
+
- lib/steem/operation/transfer_from_savings.rb
|
498
|
+
- lib/steem/operation/transfer_to_savings.rb
|
499
|
+
- lib/steem/operation/transfer_to_vesting.rb
|
500
|
+
- lib/steem/operation/vote.rb
|
501
|
+
- lib/steem/operation/withdraw_vesting.rb
|
502
|
+
- lib/steem/operation/witness_set_properties.rb
|
503
|
+
- lib/steem/operation/witness_update.rb
|
358
504
|
- lib/steem/rpc/base_client.rb
|
359
505
|
- lib/steem/rpc/http_client.rb
|
360
506
|
- lib/steem/rpc/thread_safe_http_client.rb
|
507
|
+
- lib/steem/stream.rb
|
508
|
+
- lib/steem/transaction.rb
|
361
509
|
- lib/steem/transaction_builder.rb
|
362
510
|
- lib/steem/type/amount.rb
|
363
511
|
- lib/steem/type/base_type.rb
|
@@ -368,7 +516,7 @@ homepage: https://github.com/steem/steem-ruby
|
|
368
516
|
licenses:
|
369
517
|
- MIT
|
370
518
|
metadata: {}
|
371
|
-
post_install_message:
|
519
|
+
post_install_message:
|
372
520
|
rdoc_options: []
|
373
521
|
require_paths:
|
374
522
|
- lib
|
@@ -383,9 +531,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
383
531
|
- !ruby/object:Gem::Version
|
384
532
|
version: '0'
|
385
533
|
requirements: []
|
386
|
-
|
387
|
-
|
388
|
-
signing_key:
|
534
|
+
rubygems_version: 3.0.8
|
535
|
+
signing_key:
|
389
536
|
specification_version: 4
|
390
537
|
summary: Steem Ruby Client
|
391
538
|
test_files: []
|