From 97e598c3c63a324aa77366960da5267509479d9c Mon Sep 17 00:00:00 2001 From: josh crites Date: Thu, 14 Dec 2023 21:15:05 -0500 Subject: [PATCH 1/2] Update writing_token_contract.md --- docs/docs/dev_docs/tutorials/writing_token_contract.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/dev_docs/tutorials/writing_token_contract.md b/docs/docs/dev_docs/tutorials/writing_token_contract.md index 43f6f1e4b3d5..cd93bcbdbebe 100644 --- a/docs/docs/dev_docs/tutorials/writing_token_contract.md +++ b/docs/docs/dev_docs/tutorials/writing_token_contract.md @@ -63,6 +63,7 @@ type = "contract" aztec = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/aztec" } safe_math = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/safe-math"} authwit={ git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/authwit"} +protocol_types = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/noir-protocol-circuits/src/crates/types"} ``` ## Contract Interface From 919c36a3b253472dd40693d1c7df207bafe70468 Mon Sep 17 00:00:00 2001 From: josh crites Date: Fri, 15 Dec 2023 02:22:07 +0000 Subject: [PATCH 2/2] add protocol types --- docs/docs/dev_docs/tutorials/token_portal/setup.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/dev_docs/tutorials/token_portal/setup.md b/docs/docs/dev_docs/tutorials/token_portal/setup.md index 490bd8802e60..b4c011a659d4 100644 --- a/docs/docs/dev_docs/tutorials/token_portal/setup.md +++ b/docs/docs/dev_docs/tutorials/token_portal/setup.md @@ -64,6 +64,7 @@ type = "contract" aztec = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/aztec" } value_note = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/value-note"} safe_math = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/safe-math"} +protocol_types = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/noir-protocol-circuits/src/crates/types"} ``` We will also be writing some helper functions that should exist elsewhere so we don't overcomplicated our contract. In `src` create two more files - one called `util.nr` and one called `token_interface` - so your dir structure should now look like this: