mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-07-17 21:29:51 +00:00
Cross-zone builtin programs are no longer registered in the production genesis. A zone that participates declares the ones it uses via a new GenesisAction::DeployProgram (sequencer) and a matching deploy_programs list (indexer), both resolved through CrossZoneProgram and registered with with_programs. Cross-zone genesis accounts (inbox config, wrapped-token config) are seeded through the state constructor for a receiving zone, and bridge-lock holdings are seeded from their actions regardless of receiving config, dropping V03State::insert_genesis_account. GenesisAction amounts now use the Balance alias. Documents cross_zone as the reference LEZ adapter and the bridge demo as not production-safe. The sequencer's DeployProgram set and the indexer's deploy_programs are configured separately, so both nodes now log a deterministic genesis fingerprint (V03State::genesis_fingerprint) at startup: equal values confirm the two genesis states agree, a mismatch flags a divergent deploy set. BREAKING CHANGE: the genesis state root changes (cross-zone builtins are out of production genesis) and the sequencer/indexer configs gain the DeployProgram / deploy_programs list that cross-zone-participating zones must set.
18 lines
303 B
TOML
18 lines
303 B
TOML
[package]
|
|
name = "testnet_initial_state"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
key_protocol.workspace = true
|
|
lee.workspace = true
|
|
lee_core.workspace = true
|
|
system_accounts.workspace = true
|
|
programs.workspace = true
|
|
|
|
serde.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|