Skip to content

[#75] UStore reader

Konstantin Ivanov requested to merge martoon/#75-ustore-reader into master

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

    • I checked whether I should update the docs and did so if necessary:
    • I updated the changelog if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Konstantin Ivanov

Merge request reports