-
Notifications
You must be signed in to change notification settings - Fork 606
feat: splitting event log functionality #6921
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| mod event_interface; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| use crate::context::PrivateContext; | ||
| use crate::note::note_header::NoteHeader; | ||
| use dep::protocol_types::{grumpkin_point::GrumpkinPoint, abis::function_selector::FunctionSelector}; | ||
|
|
||
| trait EventInterface<N> { | ||
| // Should be autogenerated by the #[aztec(event)] macro unless it is overridden by a custom implementation | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to make this macro yes? It was not already there right? Also, I think we reuse quite a bit from our note macro, and have it use the same structure. Then we don't need to provide anything for the event type id, we just derive it 👍 // Autogenerated by the #[aztec(event)] macro unless it is overridden by a custom implementation
fn get_event_type_id()_ -> Field;
// Autogenerated by the #[aztec(event)] macro unless it is overridden by a custom implementation
fn to_be_bytes(self, randomness: Field) -> [u8; M];Similar code is seen in the Created #6951 to look at this. |
||
| fn _selector(self) -> FunctionSelector; | ||
| fn to_be_bytes(self, randomness: Field) -> [u8; N]; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| [package] | ||
| name = "test_log_contract" | ||
| authors = [""] | ||
| compiler_version = ">=0.25.0" | ||
| type = "contract" | ||
|
|
||
| [dependencies] | ||
| aztec = { path = "../../../aztec-nr/aztec" } | ||
| value_note = { path = "../../../aztec-nr/value-note" } |
Uh oh!
There was an error while loading. Please reload this page.