Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.0 #14

Merged
merged 88 commits into from
Apr 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
5564ff1
Remove Nanook::Block#block_count_by_type
lukes Apr 5, 2021
3faf896
Remove Nanook::Block#history
lukes Apr 5, 2021
7e7b348
Add new error classes
lukes Apr 5, 2021
74c2bab
Remove example from unstable RPC call
lukes Apr 5, 2021
61ac801
NodeRpcConfigurationError subclassed from NodeRpcError
lukes Apr 5, 2021
30fc361
Improve README.md
lukes Apr 5, 2021
263e41b
Rescue from Nanook::Error
lukes Apr 5, 2021
4a21139
Small improvements
lukes Apr 5, 2021
384a54c
Remove redundant true
lukes Apr 5, 2021
e952e81
Fix test
lukes Apr 5, 2021
71bf4a3
Add missing Nanook::WalletAccount#block_count
lukes Apr 5, 2021
64939d4
Return account objects from wallet, and coerce more empty strings
lukes Apr 5, 2021
6d69205
More small fixes
lukes Apr 5, 2021
d6de9f9
Simplify examples in README.md
lukes Apr 5, 2021
b924dca
Rename `Nanook::Block#is_valid_work?` to `#valid_work?`
lukes Apr 5, 2021
94b9aa4
Add Nanook::Node#confirmation_quorum
lukes Apr 6, 2021
e1be632
Nanook::Block#info returns balances in nano, optionally takes unit: :…
lukes Apr 6, 2021
1739147
NANO_to_raw and raw_to_NANO methods handle nils
lukes Apr 6, 2021
2458a2b
README.md improvements
lukes Apr 6, 2021
ff9fe8a
Refactor receive with and without block methods
lukes Apr 6, 2021
a65626e
Update links to nano unit docs
lukes Apr 6, 2021
dbf030b
rubocop corrected
lukes Apr 6, 2021
af44174
Add many methods to Nanook::Block around block info
lukes Apr 6, 2021
62ca629
Remove RPC calls not recommended for production
lukes Apr 6, 2021
3261311
Add equality checking methods
lukes Apr 6, 2021
a766d8a
Return more Nanook objects in responses
lukes Apr 6, 2021
cd9ef42
Key renamed to PrivateKey, new PublicKey added
lukes Apr 7, 2021
b94659a
Block#exists? and changes to Account methods
lukes Apr 8, 2021
71ae009
Account#weight accepts optional unit arg
lukes Apr 8, 2021
a892db0
Remove assumption of presence of info keys
lukes Apr 8, 2021
514e43f
Block#info to return values as Nanook objects
lukes Apr 8, 2021
cdedd57
`Account#delegators` returns keys as `Account`s
lukes Apr 8, 2021
e7ac9ac
Add Account#delegators_count
lukes Apr 8, 2021
a032a03
Add Nanook::Node#keepalive
lukes Apr 8, 2021
fa8ff3c
Add Wallet#account_move
lukes Apr 8, 2021
b377030
Add Nanook::Wallet#remove_account
lukes Apr 8, 2021
02a921c
Add Node#receive_minimum and set, remove #synced?
lukes Apr 8, 2021
5db8141
Refactor checks that required vars are set
lukes Apr 8, 2021
8882ecd
Add Wallet#search_pending
lukes Apr 8, 2021
b51d5a3
Add Node#search_pending
lukes Apr 8, 2021
b0b4c08
Universally accept ids as args rather than objects
lukes Apr 8, 2021
b024da5
Add Wallet#history
lukes Apr 8, 2021
b12a512
Add equality methods for WalletAccount
lukes Apr 8, 2021
5112975
Covert Nanook::Util to module, RPC to coerce
lukes Apr 8, 2021
600235c
Use #as_private_key
lukes Apr 8, 2021
a6fecfb
Move validate_unit! to Nanook::Util
lukes Apr 8, 2021
b85c4ae
Use _coerce: and _access: more widely
lukes Apr 8, 2021
4d7d3a6
Node#synchronizing_blocks returns Nanook objects
lukes Apr 8, 2021
d4ad531
Add Wallet#ledger
lukes Apr 8, 2021
dfc6aba
Add Wallet#republish_blocks
lukes Apr 9, 2021
339703f
Add WalletAccount#work
lukes Apr 9, 2021
aa4860b
Added Wallet#work
lukes Apr 9, 2021
d627590
Add WalletAccount#set_work
lukes Apr 9, 2021
d45e817
Update README.md
lukes Apr 9, 2021
f7fbe62
Update README.md
lukes Apr 9, 2021
ad85dfd
Added Nanook#network_telemetry
lukes Apr 9, 2021
334ad78
Update Block#valid_work? to work with v21
lukes Apr 9, 2021
1403732
Simplify #to_s representations
lukes Apr 9, 2021
f455969
Add Wallet#exists?
lukes Apr 9, 2021
95083be
Alias #to_s as #inspect
lukes Apr 9, 2021
344241b
Update version 3.0.0
lukes Apr 9, 2021
a08f516
Shorten ids for to_s and inspect
lukes Apr 9, 2021
62420ee
Simplify WalletAccount#to_s
lukes Apr 9, 2021
16473e8
Simplify to_s for keys
lukes Apr 9, 2021
a931915
Link to exploring wiki page
lukes Apr 9, 2021
d622e70
Yard formatting has changed
lukes Apr 9, 2021
44df8a9
Add Rpc#test
lukes Apr 9, 2021
930a772
Update gem dependencies
lukes Apr 9, 2021
e9dba88
Add Account#blocks and Account#open_block
lukes Apr 9, 2021
bb47dae
Account#history and #ledger support sorting
lukes Apr 9, 2021
ea9e6dc
Small tidy update
lukes Apr 9, 2021
ddd17ac
Small tidy ups
lukes Apr 9, 2021
e647dab
See if we can output docs as root
lukes Apr 9, 2021
361027e
Applying rubocop rules
lukes Apr 9, 2021
6e5cb2d
Preserve all params
lukes Apr 9, 2021
15ee956
Add comments
lukes Apr 9, 2021
c2705fa
Delegate more methods to Account
lukes Apr 9, 2021
dd180c0
Optimise Account#memoized_info for checked
lukes Apr 9, 2021
d5400ab
Memoize info in raw units
lukes Apr 9, 2021
c8b33e1
Allow passing [ipv6]:port address
lukes Apr 10, 2021
35fb5ab
Add gem version to User-Agent
lukes Apr 10, 2021
6ae7358
Update calls to host
lukes Apr 10, 2021
672e668
Fix Yarddoc offenses
lukes Apr 13, 2021
5c0595f
Add docs for 3.0.0
lukes Apr 13, 2021
d5f9263
Add docs for 3.0.0
lukes Apr 13, 2021
6c5a433
Remove Yard output to docs
lukes Apr 13, 2021
75fc1f9
Update links to 3.0.0 docs
lukes Apr 13, 2021
0617f44
Update bundler version
lukes Apr 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,105 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 3.0.0

### Removed

- `Nanook::Block#block_count_by_type` Removed, as the RPC no longer supports this command.
- `Nanook::Block#history` Removed, as the RPC command is deprecated.
- `Nanook::Block#publish` Removed, as the RPC command expects more data than what we instantiate within `Nanook::Block`.
- Removed all RPC calls that are not recommended for production:
- `Nanook::Node#bootstrap_status`.
- `Nanook::Node#confirmation_history`.
- `Nanook::Node#confirmed_recently?`.
- `Nanook::Key` Replaced by `Nanook::PrivateKey`.
- `Nanook::Account#info` No longer accepts `detailed:` argument.
- `Nanook::Node#synced?` As this was deprecated for removal in v3.0.

### Added

- Added missing `Nanook::WalletAccount#block_count` delegate.
- Added `Nanook#network_telemetry`.
- Added `Nanook::Rpc#test`.
- Added `Nanook::WalletAccount#work`.
- Added `Nanook::WalletAccount#set_work`.
- Added `Nanook::Account#blocks`.
- Added `Nanook::Account#delegators_count`.
- Added `Nanook::Account#open_block`.
- Added `Nanook::Node#change_receive_minimum`.
- Added `Nanook::Node#confirmation_quorum`.
- Added `Nanook::Node#keepalive`.
- Added `Nanook::Node#receive_minimum`.
- Added `Nanook::Node#search_pending`.
- Added `Nanook::Wallet#history`.
- Added `Nanook::Wallet#exists?`.
- Added `Nanook::Wallet#ledger`.
- Added `Nanook::Wallet#move_accounts`.
- Added `Nanook::Wallet#remove_account`.
- Added `Nanook::Wallet#republish_blocks`.
- Added `Nanook::Wallet#search_pending`.
- Added `Nanook::Wallet#work`.
- Added `Nanook::Block#account`.
- Added `Nanook::Block#amount`.
- Added `Nanook::Block#balance`.
- Added `Nanook::Block#change?`.
- Added `Nanook::Block#confirmed?`.
- Added `Nanook::Block#epoch?`.
- Added `Nanook::Block#exists?`.
- Added `Nanook::Block#height`.
- Added `Nanook::Block#open?`.
- Added `Nanook::Block#previous`.
- Added `Nanook::Block#receive?`.
- Added `Nanook::Block#representative`.
- Added `Nanook::Block#send?`.
- Added `Nanook::Block#signature`.
- Added `Nanook::Block#timestamp`.
- Added `Nanook::Block#type`.
- Added `Nanook::Block#unconfirmed?`.
- Added `Nanook::Block#work`.
- Added `Nanook::PrivateKey` with methods `#create`, `#account` and `#public_key`.
- Added `Nanook::PublicKey` with method `#account`.
- Added equality testing methods `#==`, `#eql?` and `#hash` for:
- `Nanook::Account`
- `Nanook::Block`
- `Nanook::PrivateKey`
- `Nanook::PublicKey`
- `Nanook::Wallet`
- `Nanook::WalletAccount`

### Changed

- New error classes: `Nanook::ConnectionError`, `NanoUnitError`, `NodeRpcError` and `NodeRpcConfigurationError`.
- `Nanook::Wallet#default_representative` returns a `Nanook::Account`.
- `Nanook::Wallet#change_representative` returns a `Nanook::Account`.
- `Nanook::Wallet#unlock` can be passed no argument (`password` will be `nil`).
- `Nanook::Wallet#info` returns data from `wallet_info` RPC.
- `Nanook::Block#is_valid_work?` renamed to `#valid_work?`.
- `Nanook::Block#republish` returns an Array of `Nanook::Block`s.
- `Nanook::Block#chain` returns an Array of `Nanook::Block`s.
- `Nanook::Block#successors` returns an Array of `Nanook::Block`s.
- `Nanook::Block#info`:
- returns balances in nano, and can optionally be passed `unit: :raw` argument.
- returns account values as `Nanook::Account` and block values as `Nanook::Block`.
- `Nanook::Node#peers` returns details as a `Hash` keyed by `Nanook::Account`.
- `Nanook::Account#pending` returns source as `Nanook::Account` and block as `Nanook::Block` when `detailed: true`.
- `Nanook::Account#representative` returns a `Nanook::Account`.
- `Nanook::Account#delegators` returns accounts as `Nanook::Account`s.
- `Nanook::Account#history` returns accounts as `Nanook::Account` and blocks as `Nanook::Block`.
- `Nanook::Account#ledger` returns accounts as `Nanook::Account` and blocks as `Nanook::Block`.
- `Nanook::Account#public_key` returns a `Nanook::PublicKey`.
- `Nanook::Account#weight` accepts an optional `unit:` argment.
- `Nanook::Account#info`:
- returns the `frontier`, `open_block`, `representative_block` values as `Nanook::Block`s.
- returns the `representative` as a `Nanook::Account`.
- `modified_timestamp` key renamed to `last_modified_at` and value is a `Time` in UTC.
- `Nanook::Key` has become `Nanook::PrivateKey`, `#generate` has been renamed `#create` and returns a `Nanook::PrivateKey`.

### Fixed

- A number of errors when node is still bootstrapping and is missing accounts from the ledger.
- `Nanook::Node#representatives_online` accessing representative list as a `Hash` after RPC change.

## 2.5.1

### Fixed
Expand Down
68 changes: 34 additions & 34 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
PATH
remote: .
specs:
nanook (2.5.1)
nanook (3.0.0)
symbolized (= 0.0.1)

GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
coderay (1.1.2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.3)
hashdiff (0.3.7)
method_source (0.9.0)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
public_suffix (3.0.2)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
coderay (1.1.3)
crack (0.4.5)
rexml
diff-lcs (1.4.4)
hashdiff (1.0.1)
method_source (1.0.0)
pry (0.14.0)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (4.0.6)
rake (12.3.3)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-collection_matchers (1.1.3)
rexml (3.2.5)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-collection_matchers (1.2.0)
rspec-expectations (>= 2.99.0.beta1)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
rspec_junit_formatter (0.3.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
rspec_junit_formatter (0.4.1)
rspec-core (>= 2, < 4, != 2.12.0)
safe_yaml (1.0.4)
symbolized (0.0.1)
webmock (3.3.0)
webmock (3.12.2)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
hashdiff (>= 0.4.0, < 2.0.0)
yard (0.9.26)

PLATFORMS
Expand All @@ -53,11 +53,11 @@ DEPENDENCIES
nanook!
pry (~> 0)
rake (~> 12.3)
rspec (~> 3.2)
rspec-collection_matchers (~> 1.1)
rspec_junit_formatter (~> 0.3)
webmock (~> 3.3)
rspec (~> 3.10)
rspec-collection_matchers (~> 1.2)
rspec_junit_formatter (~> 0.4)
webmock (~> 3.12)
yard (>= 0.9.20)

BUNDLED WITH
2.2.3
2.2.16
Loading