Skip to content

Commit

Permalink
[nspcc-dev#269] netmap: Return same type from reading methods
Browse files Browse the repository at this point in the history
There is a need to return similar structure of information about the
storage nodes from the contract storage readers. In previous
implementation some methods didn't return node state which can differ
with the one encoded in the node's BLOB.

Define `Node` structure of the information about the storage nodes
recorded in the contract storage. Return `[]Node` from all related
methods.

Also improve docs of touched contract methods.

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
Leonard Lyubich authored and cthulhu-rider committed Sep 30, 2022
1 parent 9785f9b commit 1af936e
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 140 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@ Changelog for NeoFS Contract

## Unrelease

### Added
- Support `MAINTENANCE` state of storage nodes (#269)

### Changed
- `netmap.Snapshot` and all similar methods return (#269)

### Updated
- NNS contract now sets domain expiration based on `register` arguments (#262)

### Fixed
- NNS `renew` now can only be done by the domain owner

### Updating from v0.15.x
Update deployed `Netmap` contract using `Update` method: storage of the contract
has been incompatibly changed.

## [0.15.5] - 2022-08-23

### Updated
Expand Down
Loading

0 comments on commit 1af936e

Please sign in to comment.