Specialize ContractRegistry for the case of a single contract
Clarification and motivation
Our ContractRegistry
has the following interface:
Available commands:
list Show all available contracts
print Dump a contract in form of Michelson code
document Dump contract documentation in Markdown
analyze Analyze the contract and prints statistics about it.
storage-Basic Print initial storage for the contract 'Basic'
Often there is only one contract in which case this interface is too complicated: you have to pass redundant contract name to each command. It could be simplified to having print
, document
, analyze
and storage
commands that don't take the contract name.
Acceptance criteria
It should be possible to have a CLI based on Lorentz.ContractRegistry
that works with exactly one contract and has 4 commands mentioned above.