-
Notifications
You must be signed in to change notification settings - Fork 268
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
refactor: token naming cleanup #9904
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
0b19ee1
to
d14b00e
Compare
a1a49b8
to
9f29ed8
Compare
d14b00e
to
955f2e0
Compare
805aed2
to
3e8bffe
Compare
74ddb10
to
b8eb9ce
Compare
3e8bffe
to
21e94ff
Compare
7c683a6
to
19f63ed
Compare
Docs PreviewHey there! 👋 You can check your preview at https://6734ca405bb1e925b793d957--aztec-docs-dev.netlify.app |
19f63ed
to
e335c48
Compare
e335c48
to
1078983
Compare
@@ -81,6 +81,8 @@ contract DepositToAztecPublic is Test { | |||
uint256 amount = 100 ether; | |||
uint256 expectedIndex = 2 ** Constants.L1_TO_L2_MSG_SUBTREE_HEIGHT; | |||
|
|||
// The purpose of including the function selector is to make the message unique to that specific call. Note that | |||
// it has nothing to do with calling the function. |
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.
I remember finding the selector on line 89 confusing so I decided to include the comment here.
@@ -0,0 +1,107 @@ | |||
use crate::test::utils; |
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.
I just copied these test cases from burn
so does not need to be reviewed.
@@ -0,0 +1,89 @@ | |||
use crate::test::utils; |
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.
I just copied these test cases from burn
so does not need to be reviewed.
@@ -0,0 +1,64 @@ | |||
use crate::test::utils; |
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.
I just copied these test cases from transfer_private
so does not need to be reviewed.
use dep::aztec::test::helpers::cheatcodes; | ||
|
||
#[test] | ||
unconstrained fn transfer_private() { |
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.
These test cases were moved to transfer.nr
@@ -14,21 +14,24 @@ pub fn get_mint_public_content_hash(owner: AztecAddress, amount: Field) -> Field | |||
hash_bytes[i + 36] = amount_bytes[i]; | |||
} | |||
|
|||
// Function selector: 0x3e87b9be keccak256('mint_public(bytes32,uint256)') |
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.
This hardcoded selector bytes were bad so I replaced it with comptime keccak.
@@ -0,0 +1,85 @@ | |||
import { AztecAddress, CompleteAddress } from '@aztec/aztec.js'; |
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.
I just copied these test cases from transfer_private
so does not need to be reviewed.
Changes to circuit sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
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.
LGTM 👍. Probably want devrel to take a pass at the docs to remove any other dangling refs in a follow up PR.
@@ -84,8 +84,6 @@ Let's say you have some storage in public and want to move them into the private | |||
|
|||
So you have to create a custom note in the public domain that is not encrypted by some owner - we call such notes a "TransparentNote" since it is created in public, anyone can see the amount and the note is not encrypted by some owner. |
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.
Pinning for dev rel
1078983
to
ec2eb91
Compare
ec2eb91
to
f6de81d
Compare
Changes to public function bytecode sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
* master: (245 commits) chore: pull signed bitshifts from sync PR (#9939) chore: pull frontend changes from sync PR (#9935) feat: separate bytecode logs from unencrypted logs (#9891) git subrepo push --branch=master noir-projects/aztec-nr git_subrepo.sh: Fix parent in .gitrepo file. [skip ci] chore: replace relative paths to noir-protocol-circuits git subrepo push --branch=master barretenberg fix: token naming issue (#9950) feat: multiplier oracle (#9902) refactor: token refunds cleanup (#9943) chore: Use stack based recursion instead of function recursion (#9947) feat: parallelize DIE pass (#9933) feat(avm): Simulator enforces integral tag for DIV and field tag for FDIV (#9944) chore(avm): bugfixing witness generation for add, sub, mul for FF (#9938) feat: Google Cloud Kubernetes cluster + AWS Firewall Rules (#9915) chore: nuking ancient redundant test (#9941) fix: include 'master' version for aztec-up scripts (#9940) chore: fixing test contract fixture (#9909) refactor: token naming cleanup (#9904) chore: pull SSA parser from sync PR (#9928) ...
Naming of the token functions was outdated. This PR addresses that.