Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Event Emission Mechanism Using Logs #377

Open
CyrusVorwald opened this issue Sep 22, 2024 · 0 comments
Open

Implement Event Emission Mechanism Using Logs #377

CyrusVorwald opened this issue Sep 22, 2024 · 0 comments

Comments

@CyrusVorwald
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant