@layerzerolabs/lz-contract-addresses
v4.0.20
Published
Readme
Protocol address snapshot
src/generated/<env>.json holds the protocol contract addresses owned by the deploy & wire registry. Generate it from the registry with export-address-snapshot (apps/projects/deploy-wire-protocol-project-app/scripts); don't edit it by hand.
Mainnet and testnet have no DVN, DVNFeeLib, TON DvnProxy or TON Dvn entry. Essence deploys and runs the LayerZero Labs DVN, and the protocol does not store or publish its address, so the export skips these rows (#11241). Only sandbox has them. A reader that needs the LayerZero Labs DVN on mainnet or testnet asks Metadata or names it in its own config.
src/legacy/<env>.json holds the addresses the registry does not own, such as proxy admins and the V1 contracts it has not imported. export-address-snapshot drops an entry from it once the registry owns that address. A new EVM chain's ExecutorProxyAdmin and PriceFeedProxyAdmin are added here by hand. So is the BlockedMessageLib of each chain on a VM the registry does not hold yet (Aptos, Movement, Initia, Sui, IOTA L1): it is the library the chain's endpoint has registered, checked on chain. The offchain wrapper (@offchain-monorepo/lz-contract-addresses) resolves Executor_Proxy to Executor.
CI does not check the snapshot against the registry yet: that gate is step 3 of apps/projects/deploy-wire-protocol-project-app/docs/cutover.md (export-address-snapshot --check per environment). Until then, tests/deploymentInfo.test.ts compares the snapshot to the deploymentInfo files still committed under deployments/layerzero/<env> (the published Canton mainnet and testnet packages). No test checks the other rows of either table: a PR review checks each hand edit.
