chore: @aztec/stdlib pt. 3: aztec-address out of foundation#12140
chore: @aztec/stdlib pt. 3: aztec-address out of foundation#12140
Conversation
alexghr
left a comment
There was a problem hiding this comment.
LGTM other than using Fr.random for aztec addresses in tests. Maybe we can pick some random values manually for those tests that need them instead?
| genesisBlockHash = Fr.random(); | ||
| initialValidators = times(3, EthAddress.random); | ||
| l2FeeJuiceAddress = await AztecAddress.random(); | ||
| l2FeeJuiceAddress = Fr.random(); |
There was a problem hiding this comment.
I think this might be a problem. I don't think every Fr is a valid Aztec address? (if so, this might be a source of flakes)
There was a problem hiding this comment.
Maybe we can just use a hardcoded test value just to be sure?
There was a problem hiding this comment.
Funnily enough, the contract accepts whatever even if it's not valid, so I left it as a reminder of poor validation 😬 . I can use a proper one though, solidity validation is outside of the scope of this test. Updated with a hardcoded value and comment!
There was a problem hiding this comment.
Is it a productive reminder :D sounds like a gotcha
I'm ok with it, but it feels like |
… gj/cleanup_circuits_js_2
Discussed via slack! |
* master: (300 commits) fix(ci): don't have checks go green immediately (#12168) fix: ASSERTS that should throw (#12167) fix: retry rm operation in cleanup (#12162) chore: Fix linter errors (#12164) feat: Barretenberg C++ binary overhaul (#11459) fix: call install_hooks in bootstrap (#12159) chore: @aztec/stdlib pt. 3: aztec-address out of foundation (#12140) test: verify proving is resumed after broker crash (#11122) chore(ci3): update ci.md with swc notes (#12147) fix: don't try to get bench artifacts on external PR (#12157) feat: partial note handling in aztec-nr (#12122) fix: external fixes pt 2 (#12153) chore: fix message path (#12150) chore(ci3): refactor ci3.yml, fix external PR flow (#12037) fix: Do not try flushing txs in bot setup if not set (#12144) chore: Silence warns on invalid bootnode enr (#12135) fix: don't early-out on test fails (#12143) feat(avm): deduplicating event emitters (#12137) chore: @aztec/stdlib pt.2 -> remove @aztec/types (#12133) test: kill prover node and see it recover (#11118) ...
Final cleanup
foundationand removal of all aztec-specific references. This paves the way for the new stdlib to be born from the remnants ofcircuits.jsandcircuit-types!This has led to a single "weird thing":
@aztec/ethereumrequiresAztecAddressjust for the deployment of l1 contracts. In the end, this is just an arg provided toviemthat gets eventually stringified, so we only have the type to avoid making mistakes ourselves. Since this is a pretty internal method, to avoid circular dependencies I've turned it into aFr, as that's our "flattened" AztecAddress representation. @alexghr @spalladino how bad is it?Another option would be to move
deployL1Contractstocircuits.js(soon to bestdlib), as this package pulls fromethereumand has access to AztecAddress.