Skip to content

Commit 914de32

Browse files
committed
docs(canonical-contracts): add regen README next to auth_registry freshness test
1 parent f884169 commit 914de32

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

  • yarn-project/canonical-contracts/src/auth-registry
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# auth_registry stamp
2+
3+
`derive_auth_registry.test.ts` is the freshness gate: it re-derives the auth_registry address and classId from the freshly-built artifact and asserts they match what is committed in:
4+
5+
- `noir-projects/aztec-nr/canonical_addresses/src/lib.nr``AUTH_REGISTRY_ADDRESS` (Noir global)
6+
- `yarn-project/canonical-contracts/src/auth-registry/address.gen.ts` — TS twin
7+
8+
If this test fails, it usually means `auth_registry_contract` source or the Noir/bb toolchain changed. Regenerate the stamp from `yarn-project/`:
9+
10+
yarn workspace @aztec/canonical-contracts run regen:auth-registry-address
11+
12+
Then commit the resulting diffs in `lib.nr` and `address.gen.ts`.
13+
14+
(You need a built artifact at `noir-projects/noir-contracts/target/auth_registry_contract-AuthRegistry.json``./bootstrap.sh build` from the git root produces it.)

0 commit comments

Comments
 (0)