Note: those feature are enabled when using the
--protocol kathmanduflag in LIGO CLI
let emit: string => 'a => operation
Build an event operation. To actually emit an event, this operation must be returned the same way as other operations (origination / transfer ..)
let get_last_events_from: typed_address <'p,'s> => string => list <'a>
Returns the list of all the event payloads emited with a given tag by a given address. Any call to this function must be annotated with the expected payload type.
Here is how you emit events and fetch them from your tests: