In Solidity there's emit
keyword for raising an event. How to do it in Tezos in a smart contract?
Namely, a) define b) emit an event
?
Tezos Stack Exchange is a question and answer site for users, experts, and developers of the Tezos blockchain project. It only takes a minute to sign up.
Sign up to join this communityIn Solidity there's emit
keyword for raising an event. How to do it in Tezos in a smart contract?
Namely, a) define b) emit an event
?
Events will be introduced in the Kathmandu upgrade. See this blog post from Marigold for details:
https://www.marigold.dev/post/how-to-send-events-from-contract-fast
There is currently no standard way to do this but a possible pattern to simulate this is to call a specific contract doing nothing with its parameter; the call to this sink contract is the event.