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

Events definition handling #11

Merged
merged 5 commits into from
Aug 22, 2024
Merged

Events definition handling #11

merged 5 commits into from
Aug 22, 2024

Conversation

mariaKt
Copy link
Contributor

@mariaKt mariaKt commented Aug 21, 2024

This PR addresses issue #1745, event definitions.

There is a new cell that holds the information for an event's name, arg types and names, and set of indexed event parameters. I oped to have this cell maintain the integer positions of the indexed parameters rather than their name, because if there are more than one unnamed parameters then the name would not be enough.

@mariaKt mariaKt marked this pull request as ready for review August 21, 2024 20:29
Base automatically changed from contracts to main August 22, 2024 15:36
Copy link
Contributor

@dwightguth dwightguth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I'm not entirely certain whether we will want to represent the "indexed" property as a set of indices or as a list of booleans, but I imagine we'll figure that out when we implement the "emit" statement.

Did you test that between this PR and the one for visibility, the uniswap contract can execute to the point of the "payable" modifier?

@dwightguth
Copy link
Contributor

dwightguth commented Aug 22, 2024

Looks like this PR needs a quick update to the output files.

@mariaKt
Copy link
Contributor Author

mariaKt commented Aug 22, 2024

Yes, it is stuck with the payable deposit function at the top of the k cell.

For the indexed property, I will keep that in mind.

@dwightguth dwightguth merged commit 0f82ab3 into main Aug 22, 2024
1 check passed
@dwightguth dwightguth deleted the events branch August 22, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants