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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93ed4c24e65dc8320cc94b356321fe041f2dcdffe0c8669edcab492c620c646f
4
- data.tar.gz: 4651150648b4f26c378fddc0f4bff0f610e912f1fcebd6881aadffc5354ad357
3
+ metadata.gz: fec53552003f9cfb210e55c4b3b3816da1dcc8a3d767353d96eceef4e4fa6806
4
+ data.tar.gz: 0bd10f20c53c02f0d2f055d4f52a0a8d1fbbd6dd8fdbbf0b2677df04cb3193fd
5
5
  SHA512:
6
- metadata.gz: 2db86115da9adecd287d50b7a8c965564e883867d8a898bae2c94b90a7f077dabd3cd3de6224af73946686d5edfa8523281dc3207dc968a848580a6b5475363e
7
- data.tar.gz: 80aa936eb2b1d095a1cd37288aedee0a6884a000bdfc207bf1fc3ddf1d8ee228c5f77b36cc8d995e988eea1f11aff6117a86d080cf7e6b0b97393879fe18d823
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
- **This gem is compliant with Nano release v14.2.**
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
- wallet_balance_total.balance
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
- wallet_balance_total.pending
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
@@ -43,7 +43,7 @@ module NanoRpc::AccountMethods
43
43
  },
44
44
  pending: {
45
45
  required: %i[count],
46
- optional: %i[threshold exists source]
46
+ optional: %i[threshold exists source include_active]
47
47
  },
48
48
  receive: {
49
49
  required: %i[wallet block],
@@ -17,7 +17,7 @@ module NanoRpc::AccountsMethods
17
17
  accounts_frontiers: {},
18
18
  accounts_pending: {
19
19
  required: %i[count],
20
- optional: %i[threshold source]
20
+ optional: %i[threshold source include_active]
21
21
  }
22
22
  }
23
23
  end
@@ -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: {
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module NanoRpc
3
- VERSION = '0.19.0'
3
+ VERSION = '0.20.0'
4
4
  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.19.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-10 00:00:00.000000000 Z
11
+ date: 2018-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler