Add analyzer to contract registry
Clarification and motivation
morley
executable has analyze
command which prints some useful information about a contract. It would be convenient to add it to ContractRegistry
, so that any other project that uses ContractRegistry
has an easy way to print statistics about its contracts.
Also it seems to print incorrect data about error tags, e. g. for ManagedLedger
:
Error tags:
"UnsafeAllowanceChange": 1
"AllowanceMismatch": 1
"Internal: Negative total supply": 4
"TokenOperationsArePaused": 6
"NotEnoughAllowance": 8
"SenderIsNotAdmin": 8
"NotEnoughBalance": 24
while NotEnoughBalance
seems to be used only 4 times.
Acceptance criteria
-
argParser
inContractRegistry
knows aboutanalyze
command and this command is interpreted (byrunContractRegistry
) as "callMichelson.Analyzer.analyze
. - Analyzer returns correct data about error tags.