refactor: token partial notes refactor pt. 2 - bridging#9600
refactor: token partial notes refactor pt. 2 - bridging#9600
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
b5e9766 to
79870df
Compare
9344ac0 to
5baeda8
Compare
5baeda8 to
c1a8e42
Compare
581ee9e to
ef1b833
Compare
ef1b833 to
e5b74cb
Compare
Changes to public function bytecode sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
e5b74cb to
c7e984b
Compare
c7e984b to
dcbcd38
Compare
| ); | ||
|
|
||
| event DepositToAztecPrivate( | ||
| bytes32 secretHashForRedeemingMintedNotes, |
There was a problem hiding this comment.
This ^ was the hash in the transparent note. It's no longer there (and neither is L2 address) meaning that only the message secret "owns" the bridged tokens.
| #[storage] | ||
| struct Storage<Context> { | ||
| token: PublicMutable<AztecAddress, Context>, | ||
| token: SharedImmutable<AztecAddress, Context>, |
There was a problem hiding this comment.
We now need to read this in private as well so changed PublicMutable to Shared.
d1b498f to
0752c7a
Compare
| #[private] | ||
| fn claim_private( | ||
| secret_hash_for_redeeming_minted_notes: Field, // secret hash used to redeem minted notes at a later time. This enables anyone to call this function and mint tokens to a user on their behalf | ||
| recipient: AztecAddress, // recipient of the bridged tokens |
There was a problem hiding this comment.
We are no longer redeeming "to" a TransparentNote and instead we just mint a real ValueNote to a recipient.
|
|
||
| // We prepare the transfer. | ||
| let hiding_point_slot = _prepare_transfer_to_private(to, &mut context, storage); | ||
| let hiding_point_slot = _prepare_transfer_to_private(from, to, &mut context, storage); |
There was a problem hiding this comment.
We now pass the from param as it allows us to define the recipient of outgoing.
3f31918 to
90ecd6f
Compare

Continuation of the token partial notes refactor now focused on token bridging.