You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(config): drop nested config option, flatten l1Contracts (#23143)
- Drop the `nested` field from `ConfigMapping` and the recursive branch
in `getConfigFromMappings`. Env-var groups now have to be expressed as
flat keys.
- Flatten `l1Contracts` from every config that exposed it
(`ChainConfig`, `DataStoreConfig`, `L1ReaderConfig`, `BaseSignerConfig`,
`AztecNodeConfig`, archiver, etc.); L1 contract addresses are top-level
keys everywhere.
- Centralise the L1 address mapping in
`ethereum/src/l1_contract_addresses.ts` and add
`pickL1ContractAddressMappings`, `pickL1ContractAddressesSchema`,
`pickL1ContractAddresses`, `randomL1ContractAddresses` so other configs
can compose the addresses they need without reintroducing nesting.
Fixes
[A-986](https://linear.app/aztec-labs/issue/A-986/flatten-l1-contracts-config-remove-nested-top-level-mapping-entries)
0 commit comments