Skip to content

Draft: Client: add commands for showing the storage of contracts

Implements #826.

This adds two commands:

  • tezos-client get contract storage type of to access the storage type of a contract

  • tezos-client show contract storage of to pretty-print the storage of a value (with field annotations and type information on leaves)

Example:

mockup_client originate contract bar transferring 100 from bootstrap1 running 'parameter unit; storage (pair (list %numbers nat) (pair (big_map %strs bool string) (timestamp %date))); code { CDR; NIL operation; PAIR }' --init 'Pair { 0; 1; 2 } (Pair {} -4)' --burn-cap 2
[..]
mockup_client_master show contract storage for bar
{numbers={0 : nat; 1 : nat; 2 : nat} : list nat;
 cdr={strs=0 : big_map bool string; date=-4 : timestamp}}

WIP because not all types are supported for the moment and tests are missing.

Edited by Arvid Jakobsson

Merge request reports