nano_rpc 0.25.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +19 -17
- data/lib/nano_rpc/methods/account_methods.rb +7 -2
- data/lib/nano_rpc/methods/accounts_methods.rb +4 -1
- data/lib/nano_rpc/methods/node_methods.rb +26 -9
- data/lib/nano_rpc/proxy.rb +1 -1
- data/lib/nano_rpc/version.rb +1 -1
- data/nano_rpc.gemspec +5 -5
- metadata +17 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88b83f7820e22fa8d1d70973ae0bd76ce098dad0fdef1983e72a224a3f66e584
|
|
4
|
+
data.tar.gz: 7c9248c4fa5f69b443cf245daa220e37650f11df348d107143e65966cae2fc6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b12612689910ff993db82403438d7991e98edbf55a72dbd190b9942dd41f8052014be6536415e40066bafd81629fc715f64a3983392b2417b2c189552f76d2c2
|
|
7
|
+
data.tar.gz: 541756ed79a7a41dc68116c8e7d8656af661fa5e337b0e953ce1784178d24cde3d51039bc347869ab4b76f9525deddd41a9d1a7156dddade34034f0cc96c3192
|
data/.rubocop.yml
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
require: rubocop-rspec
|
|
2
|
-
RSpec/ExampleLength:
|
|
3
|
-
Max: 8
|
|
4
|
-
RSpec/MultipleExpectations:
|
|
5
|
-
Enabled: false
|
|
6
|
-
RSpec/NestedGroups:
|
|
7
|
-
Max: 4
|
|
8
|
-
RSpec/SubjectStub:
|
|
9
|
-
Enabled: false
|
|
10
2
|
|
|
11
3
|
AllCops:
|
|
12
|
-
TargetRubyVersion: 2.6.
|
|
4
|
+
TargetRubyVersion: 2.6.3
|
|
13
5
|
Exclude:
|
|
14
6
|
- bin/*
|
|
15
7
|
- nano_rpc.gemspec
|
|
16
8
|
DisplayCopNames: true
|
|
9
|
+
Documentation:
|
|
10
|
+
Enabled: false
|
|
11
|
+
Layout/EmptyLineAfterGuardClause:
|
|
12
|
+
Enabled: false
|
|
13
|
+
Layout/EmptyLineAfterMagicComment:
|
|
14
|
+
Enabled: false
|
|
17
15
|
Metrics/BlockLength:
|
|
18
16
|
Exclude:
|
|
19
17
|
- spec/**/*
|
|
20
|
-
Metrics/ModuleLength:
|
|
21
|
-
Max: 200
|
|
22
18
|
Metrics/ClassLength:
|
|
23
19
|
Max: 200
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
Metrics/ModuleLength:
|
|
21
|
+
Max: 200
|
|
22
|
+
RSpec/ExampleLength:
|
|
23
|
+
Max: 8
|
|
24
|
+
RSpec/MultipleExpectations:
|
|
27
25
|
Enabled: false
|
|
28
|
-
|
|
26
|
+
RSpec/NestedGroups:
|
|
27
|
+
Max: 4
|
|
28
|
+
RSpec/SubjectStub:
|
|
29
29
|
Enabled: false
|
|
30
|
-
|
|
30
|
+
Style/ClassAndModuleChildren:
|
|
31
31
|
Enabled: false
|
|
32
|
-
|
|
32
|
+
Style/EmptyMethod:
|
|
33
33
|
Enabled: false
|
|
34
|
+
|
|
35
|
+
|
|
@@ -17,7 +17,9 @@ module NanoRpc::AccountMethods
|
|
|
17
17
|
required: %i[count],
|
|
18
18
|
optional: %i[raw head]
|
|
19
19
|
},
|
|
20
|
-
account_info: {
|
|
20
|
+
account_info: {
|
|
21
|
+
optional: %i[representative weight pending]
|
|
22
|
+
},
|
|
21
23
|
account_key: {},
|
|
22
24
|
account_move: {
|
|
23
25
|
required: %i[wallet source accounts]
|
|
@@ -44,7 +46,10 @@ module NanoRpc::AccountMethods
|
|
|
44
46
|
},
|
|
45
47
|
pending: {
|
|
46
48
|
required: %i[count],
|
|
47
|
-
optional: %i[
|
|
49
|
+
optional: %i[
|
|
50
|
+
threshold exists source include_active
|
|
51
|
+
sorting include_only_confirmed
|
|
52
|
+
]
|
|
48
53
|
},
|
|
49
54
|
receive: {
|
|
50
55
|
required: %i[wallet block],
|
|
@@ -17,7 +17,10 @@ module NanoRpc::AccountsMethods
|
|
|
17
17
|
accounts_frontiers: {},
|
|
18
18
|
accounts_pending: {
|
|
19
19
|
required: %i[count],
|
|
20
|
-
optional: %i[
|
|
20
|
+
optional: %i[
|
|
21
|
+
threshold source include_active
|
|
22
|
+
sorting include_only_confirmed
|
|
23
|
+
]
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
end
|
|
@@ -6,6 +6,7 @@ module NanoRpc::NodeMethods
|
|
|
6
6
|
|
|
7
7
|
def proxy_methods # rubocop:disable Metrics/MethodLength
|
|
8
8
|
{
|
|
9
|
+
active_difficulty: {},
|
|
9
10
|
available_supply: {},
|
|
10
11
|
block: {
|
|
11
12
|
required: %i[hash]
|
|
@@ -20,14 +21,21 @@ module NanoRpc::NodeMethods
|
|
|
20
21
|
block_count_type: {},
|
|
21
22
|
block_create: {
|
|
22
23
|
required: %i[type key representative source],
|
|
23
|
-
optional: %i[work]
|
|
24
|
+
optional: %i[work json_block]
|
|
25
|
+
},
|
|
26
|
+
block_hash: {
|
|
27
|
+
optional: %i[json_block]
|
|
28
|
+
},
|
|
29
|
+
block_info: {
|
|
30
|
+
required: %i[hash],
|
|
31
|
+
optional: %i[json_block]
|
|
24
32
|
},
|
|
25
33
|
blocks: {
|
|
26
34
|
required: %i[hashes]
|
|
27
35
|
},
|
|
28
36
|
blocks_info: {
|
|
29
37
|
required: %i[hashes],
|
|
30
|
-
optional: %i[pending source balance]
|
|
38
|
+
optional: %i[pending source balance json_block]
|
|
31
39
|
},
|
|
32
40
|
bootstrap: {
|
|
33
41
|
required: %i[address port]
|
|
@@ -42,11 +50,14 @@ module NanoRpc::NodeMethods
|
|
|
42
50
|
required: %i[block count],
|
|
43
51
|
optional: %i[offset reverse]
|
|
44
52
|
},
|
|
45
|
-
confirmation_active: {
|
|
53
|
+
confirmation_active: {
|
|
54
|
+
optional: %i[announcements]
|
|
55
|
+
},
|
|
56
|
+
confirmation_height_currently_processing: {},
|
|
46
57
|
confirmation_history: {},
|
|
47
58
|
confirmation_info: {
|
|
48
59
|
required: %i[root],
|
|
49
|
-
optional: %i[contents representatives]
|
|
60
|
+
optional: %i[contents representatives json_block]
|
|
50
61
|
},
|
|
51
62
|
confirmation_quorum: {
|
|
52
63
|
optional: %i[peer_details]
|
|
@@ -86,11 +97,12 @@ module NanoRpc::NodeMethods
|
|
|
86
97
|
optional: %i[peer_details]
|
|
87
98
|
},
|
|
88
99
|
pending_exists: {
|
|
89
|
-
required: %i[hash]
|
|
100
|
+
required: %i[hash],
|
|
101
|
+
optional: %i[include_active include_only_confirmed]
|
|
90
102
|
},
|
|
91
103
|
process: {
|
|
92
104
|
required: %i[block],
|
|
93
|
-
optional: %i[force subtype]
|
|
105
|
+
optional: %i[force subtype json_block]
|
|
94
106
|
},
|
|
95
107
|
rai_from_raw: {
|
|
96
108
|
required: %i[amount]
|
|
@@ -113,7 +125,7 @@ module NanoRpc::NodeMethods
|
|
|
113
125
|
},
|
|
114
126
|
search_pending_all: {},
|
|
115
127
|
sign: {
|
|
116
|
-
optional: %i[account hash key wallet]
|
|
128
|
+
optional: %i[account hash key wallet json_block]
|
|
117
129
|
},
|
|
118
130
|
stats: {
|
|
119
131
|
required: %i[type]
|
|
@@ -129,10 +141,15 @@ module NanoRpc::NodeMethods
|
|
|
129
141
|
},
|
|
130
142
|
unchecked_clear: {},
|
|
131
143
|
unchecked_get: {
|
|
132
|
-
required: %i[hash]
|
|
144
|
+
required: %i[hash],
|
|
145
|
+
optional: %i[json_block]
|
|
133
146
|
},
|
|
134
147
|
unchecked_keys: {
|
|
135
|
-
required: %i[key count]
|
|
148
|
+
required: %i[key count],
|
|
149
|
+
optional: %i[json_block]
|
|
150
|
+
},
|
|
151
|
+
unopened: {
|
|
152
|
+
optional: %i[account count]
|
|
136
153
|
},
|
|
137
154
|
uptime: {},
|
|
138
155
|
version: {},
|
data/lib/nano_rpc/proxy.rb
CHANGED
data/lib/nano_rpc/version.rb
CHANGED
data/nano_rpc.gemspec
CHANGED
|
@@ -23,16 +23,16 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
24
24
|
spec.require_paths = %w[lib]
|
|
25
25
|
|
|
26
|
-
spec.add_development_dependency 'bundler', '~>
|
|
26
|
+
spec.add_development_dependency 'bundler', '~> 2.0.2'
|
|
27
27
|
spec.add_development_dependency 'codecov', '~> 0.1.14'
|
|
28
28
|
spec.add_development_dependency 'pry', '~> 0.12.2'
|
|
29
29
|
spec.add_development_dependency 'rake', '~> 12.3.2'
|
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.8.0'
|
|
31
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
|
32
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 1.
|
|
33
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
|
31
|
+
spec.add_development_dependency 'rubocop', '~> 0.72.0'
|
|
32
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.33.0'
|
|
33
|
+
spec.add_development_dependency 'simplecov', '~> 0.17.0'
|
|
34
34
|
spec.add_development_dependency 'simplecov-rcov', '~> 0.2.3'
|
|
35
35
|
|
|
36
36
|
spec.add_runtime_dependency 'hashie', '~> 3.6', '>= 3.6.0'
|
|
37
|
-
spec.add_runtime_dependency 'http', '~> 4.
|
|
37
|
+
spec.add_runtime_dependency 'http', '~> 4.1.1', '>= 4.0.5'
|
|
38
38
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nano_rpc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.26.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Craig-Kuhn (JCK)
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 2.0.2
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 2.0.2
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: codecov
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -86,42 +86,42 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0.
|
|
89
|
+
version: 0.72.0
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0.
|
|
96
|
+
version: 0.72.0
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: rubocop-rspec
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: 1.
|
|
103
|
+
version: 1.33.0
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: 1.
|
|
110
|
+
version: 1.33.0
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: simplecov
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - "~>"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: 0.
|
|
117
|
+
version: 0.17.0
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: 0.
|
|
124
|
+
version: 0.17.0
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: simplecov-rcov
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -160,22 +160,22 @@ dependencies:
|
|
|
160
160
|
name: http
|
|
161
161
|
requirement: !ruby/object:Gem::Requirement
|
|
162
162
|
requirements:
|
|
163
|
-
- - "~>"
|
|
164
|
-
- !ruby/object:Gem::Version
|
|
165
|
-
version: '4.0'
|
|
166
163
|
- - ">="
|
|
167
164
|
- !ruby/object:Gem::Version
|
|
168
165
|
version: 4.0.5
|
|
166
|
+
- - "~>"
|
|
167
|
+
- !ruby/object:Gem::Version
|
|
168
|
+
version: 4.1.1
|
|
169
169
|
type: :runtime
|
|
170
170
|
prerelease: false
|
|
171
171
|
version_requirements: !ruby/object:Gem::Requirement
|
|
172
172
|
requirements:
|
|
173
|
-
- - "~>"
|
|
174
|
-
- !ruby/object:Gem::Version
|
|
175
|
-
version: '4.0'
|
|
176
173
|
- - ">="
|
|
177
174
|
- !ruby/object:Gem::Version
|
|
178
175
|
version: 4.0.5
|
|
176
|
+
- - "~>"
|
|
177
|
+
- !ruby/object:Gem::Version
|
|
178
|
+
version: 4.1.1
|
|
179
179
|
description: An RPC wrapper for Nano digital currency nodes. Arbitrary RPC access
|
|
180
180
|
is provided along with proxy objects that expose helper methods.
|
|
181
181
|
email:
|
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
232
232
|
- !ruby/object:Gem::Version
|
|
233
233
|
version: '0'
|
|
234
234
|
requirements: []
|
|
235
|
-
rubygems_version: 3.0.
|
|
235
|
+
rubygems_version: 3.0.3
|
|
236
236
|
signing_key:
|
|
237
237
|
specification_version: 4
|
|
238
238
|
summary: RPC wrapper for Nano digital nodes written in Ruby
|