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

feat(sol-macro): add event filters to contracts #563

Merged
merged 6 commits into from
Mar 13, 2024

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Mar 11, 2024

Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

supportive once we have it in

Comment on lines +341 to +346
quote! {
#[doc = #doc]
pub fn #name(&self) -> alloy_contract::Event<N, T, &P, #event_name> {
self.event_filter::<#event_name>()
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Should we make these default snake case? I realize that for function doStuff we codegen foo.doStuff().send() atm

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently we default everything to the same name as declared in solidity/ABI. It's possible in the future to implement renaming like in serde but currently there is no real demand.

@DaniPopes DaniPopes merged commit 4f752b9 into main Mar 13, 2024
21 checks passed
@DaniPopes DaniPopes deleted the dani/sol-event-filters branch March 13, 2024 14:54
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