From 5444770fcd9bc5221805115952085c5fc3bd2060 Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Wed, 26 Jun 2024 13:12:25 +0000 Subject: [PATCH 1/4] fix migration notes --- docs/docs/migration_notes.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/docs/migration_notes.md b/docs/docs/migration_notes.md index 8c71f6eb6d77..ff86ede086b5 100644 --- a/docs/docs/migration_notes.md +++ b/docs/docs/migration_notes.md @@ -6,7 +6,20 @@ keywords: [sandbox, aztec, notes, migration, updating, upgrading] Aztec is in full-speed development. Literally every version breaks compatibility with the previous ones. This page attempts to target errors and difficulties you might encounter when upgrading, and how to resolve them. -## TBD +## 0.44.0 +### [Aztec.nr] Autogenerate Serialize methods for events +```diff +#[aztec(event)] +struct WithdrawalProcessed { + who: AztecAddress, + amount: u64, +} + +-impl Serialize<2> for WithdrawalProcessed { +- fn serialize(self: Self) -> [Field; 2] { +- [self.who.to_field(), self.amount as Field] +- } +} ### [Aztec.nr] changes to `NoteInterface` From 67db846d8f6b833e72b77964c37158056d96726b Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Wed, 26 Jun 2024 13:14:39 +0000 Subject: [PATCH 2/4] note on rename --- docs/docs/migration_notes.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/docs/migration_notes.md b/docs/docs/migration_notes.md index ff86ede086b5..cfc73eb5c1d8 100644 --- a/docs/docs/migration_notes.md +++ b/docs/docs/migration_notes.md @@ -20,6 +20,20 @@ struct WithdrawalProcessed { - [self.who.to_field(), self.amount as Field] - } } +``` + +### [Aztec.nr] rename `encode_and_encrypt_with_keys` to `encode_and_encrypt_note_with_keys` +```diff +contract XYZ { +- use dep::aztec::encrypted_logs::encrypted_note_emission::encode_and_encrypt_with_keys; ++ use dep::aztec::encrypted_logs::encrypted_note_emission::encode_and_encrypt_note_with_keys; +.... + +- numbers.at(owner).initialize(&mut new_number).emit(encode_and_encrypt_with_keys(&mut context, owner_ovpk_m, owner_ivpk_m)); ++ numbers.at(owner).initialize(&mut new_number).emit(encode_and_encrypt_note_with_keys(&mut context, owner_ovpk_m, owner_ivpk_m)); + +} + ### [Aztec.nr] changes to `NoteInterface` From 0c87a4eb23b3e27542442ed8727edbd96b90eabe Mon Sep 17 00:00:00 2001 From: esau <152162806+sklppy88@users.noreply.github.com> Date: Wed, 26 Jun 2024 08:18:22 -0500 Subject: [PATCH 3/4] Update docs/docs/migration_notes.md --- docs/docs/migration_notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/migration_notes.md b/docs/docs/migration_notes.md index cfc73eb5c1d8..17dcde0fc65b 100644 --- a/docs/docs/migration_notes.md +++ b/docs/docs/migration_notes.md @@ -11,7 +11,7 @@ Aztec is in full-speed development. Literally every version breaks compatibility ```diff #[aztec(event)] struct WithdrawalProcessed { - who: AztecAddress, + who: Field, amount: u64, } From e140e8329d53f2175c87e5b7d394a937fd185ed8 Mon Sep 17 00:00:00 2001 From: esau <152162806+sklppy88@users.noreply.github.com> Date: Wed, 26 Jun 2024 08:18:27 -0500 Subject: [PATCH 4/4] Update docs/docs/migration_notes.md --- docs/docs/migration_notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/migration_notes.md b/docs/docs/migration_notes.md index 17dcde0fc65b..c0230b069132 100644 --- a/docs/docs/migration_notes.md +++ b/docs/docs/migration_notes.md @@ -12,7 +12,7 @@ Aztec is in full-speed development. Literally every version breaks compatibility #[aztec(event)] struct WithdrawalProcessed { who: Field, - amount: u64, + amount: Field, } -impl Serialize<2> for WithdrawalProcessed {