-
Notifications
You must be signed in to change notification settings - Fork 265
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
chore: allow expressions in constant generation #5839
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
mod constants; | ||
mod lifecycle; | ||
mod note_getter; | ||
mod note_getter_options; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
global MAX_NOTE_FIELDS_LENGTH: u64 = 20; | ||
// The plus 1 is 1 extra field for nonce. | ||
// + 2 for EXTRA_DATA: [number_of_return_notes, contract_address] | ||
global GET_NOTE_ORACLE_RETURN_LENGTH: u64 = MAX_NOTE_FIELDS_LENGTH + 1 + 2; | ||
global MAX_NOTES_PER_PAGE: u64 = 10; | ||
global VIEW_NOTE_ORACLE_RETURN_LENGTH: u64 = MAX_NOTES_PER_PAGE * (MAX_NOTE_FIELDS_LENGTH + 1) + 2; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
use dep::protocol_types::{address::AztecAddress, constants::L1_TO_L2_MESSAGE_ORACLE_CALL_LENGTH}; | ||
use dep::protocol_types::{address::AztecAddress}; | ||
|
||
global L1_TO_L2_MESSAGE_ORACLE_CALL_LENGTH: u64 = 17; | ||
|
||
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. Curious why this one was moved out of 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. I tried to move out things that were only used in Noir (and therefore were not needed in TS, Solidity). |
||
// Obtains membership witness (index and sibling path) for a message in the L1 to L2 message tree. | ||
#[oracle(getL1ToL2MembershipWitness)] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noir tests were failing when I had this wrong. So maybe it doesn't need laser-focused review.