Revise MorphRuleChainStorage interface and introduce ContractStorageReader #54

Merged
fyrchik merged 2 commits from aarifullin/policy-engine:feat/contract_storage_reader into master 2024-03-01 08:05:26 +00:00

2 commits

Author SHA1 Message Date
aarifullin
4154899cff [#54] morph: Introduce ContractStorageReader
All checks were successful
DCO action / DCO (pull_request) Successful in 1m2s
Tests and linters / Tests (1.20) (pull_request) Successful in 1m18s
Tests and linters / Tests (1.21) (pull_request) Successful in 1m13s
Tests and linters / Staticcheck (pull_request) Successful in 1m16s
Tests and linters / Tests with -race (pull_request) Successful in 1m42s
Tests and linters / Lint (pull_request) Successful in 2m16s
* Implement MorphRuleChainStorageReader interface to make
  possible to read from Policy contract without wallets.

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-02-29 13:57:15 +03:00
aarifullin
76c9f10af8 [#54] morph: Revise MorphRuleChainStorage interface
* Split MorphRuleChainStorage interface by moving read-only
  methods to a separate interface MorphRuleChainStorageReader.

Signed-off-by: Airat Arifullin <aarifullin@yadro.com>
2024-02-26 18:52:39 +03:00