* Make `ListMorphRuleChains` methods use `commonclient.ReadIteratorItems`.
* Introduce `ContractStorageActor` interface.
* Iterators are used because listing by `ListChainsByPrefix` may cause
stack overflow from neo-go side (len(items) > 1024).
Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
DCO action / DCO (pull_request) Successful in 1m3sDetails
Tests and linters / Tests (1.21) (pull_request) Successful in 55sDetails
Tests and linters / Tests with -race (pull_request) Successful in 1m25sDetails
Tests and linters / Staticcheck (pull_request) Successful in 1m26sDetails
Tests and linters / Lint (pull_request) Successful in 2m42sDetails
Tests and linters / Tests (1.20) (pull_request) Successful in 1m29sDetails
* Update frostfs-contract package version in go.mod.
* Extend MorphRuleChainStorage interface with ListTargetsIterator and
introduce its implementation.
* Check targets in inmemory implementation unit-tests.
Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
* It is not required to transform long names because
container chains will be added by container ID
but not by a resource name.
Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
* Make changing state methods like AddMorphRuleChain,
RemoveMorphRuleChain return transaction hash and VUB.
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>