[#75] UStore reader
Description
Problem: we need some simple way to read upgradeable contracts storage content.
Solution: add a tool which allows reading fields, submap values and has a special case for entrypoits.
Tested, example of query: stack exec morley-ustore-reader -- -A babylon.testnet.tezos.serokell.team -P 8732 -c KT18m7BfQWCJFWntHPJBJghM49x94gYNeGwE print-map-value -f invs --key '"r1"' --key-type string --value-type '(set address, address, option string, address, map nat (nat, option timestamp, option bytes))'
Cases tested manually:
- contract has no big_map
- value under such coordinates is not present in UStore
- all three cli commands work well in good scenarios
Related issue(s)
Resolves #75 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Konstantin Ivanov