-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Milestone
Description
In Clarity, there is no direct support for events as in other smart contract languages like Solidity. However, Clarity provides logging capabilities through the print function, which can be used to emit data that can be observed by off-chain services or other contracts. The goal is to implement the event emission logic specified in the xCall protocol using Clarity's logging facilities.
For each event specified in the xCall protocol (CallMessage
, CallExecuted
, ResponseMessage
, RollbackMessage
, RollbackExecuted
), define a tuple structure that includes all necessary fields. In the xCall implementation contract, add print statements where events occur.