Extract result of the applied operation
Clarification and motivation
When an operation is applied, it is possible to see how it changes balances, paid fees, new storage, big_map updates. Some of this information may be necessary for the test scenario.
Example: if I have a contract that allows creating entries and they are identified by a numeric counter, the most efficient way to do so is to let the contract automatically increment the counter and assign the identifier, and then read the assigned counter off-chain by looking on the how my operation was applied.
Note that this ticket is quite big and implementing it may be not worth the achieved benefits.
Acceptance criteria
- In
morley-client
's RPC it is possible to read all (or most) of the operation info by its hash. Must-haves include:- New storage value.
- List of big_map updates, preferably grouped by big_map (
[[<key :: Expression>, <mvalue :: Maybe Expression>]]
)
- Transaction operations in
morley-client
, at least the most basic ones, return the changes applied by the transaction. - Same for transactions in
nettest
, but here the interface is thoroughly well-thought. It is as easy for the user to extract the desired info as possible, the use case with the assigned identifier mentioned above is covered.