nano_rpc 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/nano_rpc/helpers/accounts_helper.rb +3 -2
- data/lib/nano_rpc/helpers/wallet_helper.rb +5 -4
- data/lib/nano_rpc/methods/account_methods.rb +1 -1
- data/lib/nano_rpc/methods/accounts_methods.rb +1 -1
- data/lib/nano_rpc/methods/wallet_methods.rb +2 -2
- data/lib/nano_rpc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fec53552003f9cfb210e55c4b3b3816da1dcc8a3d767353d96eceef4e4fa6806
|
4
|
+
data.tar.gz: 0bd10f20c53c02f0d2f055d4f52a0a8d1fbbd6dd8fdbbf0b2677df04cb3193fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c72e2eb4bf7defd22ba847907fb2420f8ec55bb0aa2b9a7c2fa4222e236527da873725040ab9db707fa621c24a7254500f849543a49d85cca41cbaffe87c2474
|
7
|
+
data.tar.gz: 73b8a63656991cf9e5237f650f5afea91e47daa7fedd625d9e25c24973784e7373e3e3e7430851818e856119ed453aac3c4522d2601eeb0a9895b07afc6cf2dc
|
data/README.md
CHANGED
@@ -10,7 +10,10 @@ Nano RPC is a Ruby wrapper for making Remote Procedure Calls against Nano digita
|
|
10
10
|
|
11
11
|
To run a Nano node locally, see [Nano Docker Docs](https://github.com/clemahieu/raiblocks/wiki/Docker-node).
|
12
12
|
|
13
|
-
|
13
|
+
| Gem version | Nanocurrency version |
|
14
|
+
|-------------|----------------------|
|
15
|
+
| 0.20 | >= 15.0 |
|
16
|
+
| 0.19 | >= 14.2, < 15.0 |
|
14
17
|
|
15
18
|
## Installation
|
16
19
|
|
@@ -27,11 +27,12 @@ module NanoRpc::AccountsHelper
|
|
27
27
|
account_move(source: from, wallet: to).moved == 1
|
28
28
|
end
|
29
29
|
|
30
|
-
def pending(count:, threshold: nil, source: nil)
|
30
|
+
def pending(count:, threshold: nil, source: nil, include_active: nil)
|
31
31
|
accounts_pending(
|
32
32
|
count: count,
|
33
33
|
threshold: threshold,
|
34
|
-
source: source
|
34
|
+
source: source,
|
35
|
+
include_active: include_active
|
35
36
|
).blocks
|
36
37
|
end
|
37
38
|
alias pending_blocks pending
|
@@ -20,7 +20,7 @@ module NanoRpc::WalletHelper
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def balance
|
23
|
-
|
23
|
+
wallet_info.balance
|
24
24
|
end
|
25
25
|
|
26
26
|
def balances(threshold: nil)
|
@@ -95,7 +95,7 @@ module NanoRpc::WalletHelper
|
|
95
95
|
end
|
96
96
|
|
97
97
|
def pending_balance
|
98
|
-
|
98
|
+
wallet_info.pending
|
99
99
|
end
|
100
100
|
alias balance_pending pending_balance
|
101
101
|
|
@@ -108,11 +108,12 @@ module NanoRpc::WalletHelper
|
|
108
108
|
end
|
109
109
|
alias balances_pending pending_balances
|
110
110
|
|
111
|
-
def pending_blocks(count:, threshold: nil, source: nil)
|
111
|
+
def pending_blocks(count:, threshold: nil, source: nil, include_active: nil)
|
112
112
|
wallet_pending(
|
113
113
|
count: count,
|
114
114
|
threshold: threshold,
|
115
|
-
source: source
|
115
|
+
source: source,
|
116
|
+
include_active: include_active
|
116
117
|
).blocks
|
117
118
|
end
|
118
119
|
alias blocks_pending pending_blocks
|
@@ -45,7 +45,6 @@ module NanoRpc::WalletMethods
|
|
45
45
|
wallet_add_watch: {
|
46
46
|
required: %i[accounts]
|
47
47
|
},
|
48
|
-
wallet_balance_total: {},
|
49
48
|
wallet_balances: {
|
50
49
|
optional: %i[threshold]
|
51
50
|
},
|
@@ -58,11 +57,12 @@ module NanoRpc::WalletMethods
|
|
58
57
|
wallet_destroy: {},
|
59
58
|
wallet_export: {},
|
60
59
|
wallet_frontiers: {},
|
60
|
+
wallet_info: {},
|
61
61
|
wallet_ledger: {},
|
62
62
|
wallet_locked: {},
|
63
63
|
wallet_pending: {
|
64
64
|
required: %i[count],
|
65
|
-
optional: %i[threshold source]
|
65
|
+
optional: %i[threshold source include_active]
|
66
66
|
},
|
67
67
|
wallet_representative: {},
|
68
68
|
wallet_representative_set: {
|
data/lib/nano_rpc/version.rb
CHANGED
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.20.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: 2018-08-
|
11
|
+
date: 2018-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|