Skip to content

Commit

Permalink
BFT-504: Add optional developer_multisig wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
aakoshh committed Aug 22, 2024
1 parent 577fa34 commit f4b7c12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ impl DeployL2ContractsInput {
bridgehub: contracts.ecosystem_contracts.bridgehub_proxy_addr,
governance: wallets.governor.address,
erc20_bridge: contracts.bridges.erc20.l1_address,
consensus_registry_owner: wallets.governor.address,
consensus_registry_owner: wallets
.developer_multisig
.map(|w| w.address)
.unwrap_or(wallets.governor.address),
})
}
}
6 changes: 6 additions & 0 deletions zk_toolbox/crates/config/src/wallets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ pub struct WalletsConfig {
pub fee_account: Wallet,
pub governor: Wallet,
pub token_multiplier_setter: Wallet,
/// A developer multisig account exists on mainnet.
/// The intention here is to use its address to own certain contracts,
/// while the private key is either empty, or different for each member.
pub developer_multisig: Option<Wallet>,
}

impl WalletsConfig {
Expand All @@ -28,6 +32,7 @@ impl WalletsConfig {
fee_account: Wallet::random(rng),
governor: Wallet::random(rng),
token_multiplier_setter: Wallet::random(rng),
developer_multisig: Some(Wallet::random(rng)),
}
}

Expand All @@ -40,6 +45,7 @@ impl WalletsConfig {
fee_account: Wallet::empty(),
governor: Wallet::empty(),
token_multiplier_setter: Wallet::empty(),
developer_multisig: Some(Wallet::empty()),
}
}
pub fn deployer_private_key(&self) -> Option<H256> {
Expand Down

0 comments on commit f4b7c12

Please sign in to comment.