From 80135e946c8992b8a66692a234be7b1607a3d0b3 Mon Sep 17 00:00:00 2001 From: Mateusz Nowakowski Date: Fri, 13 Dec 2024 12:28:53 +0100 Subject: [PATCH] working chainspec --- rollup/node/src/chain_spec.rs | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/rollup/node/src/chain_spec.rs b/rollup/node/src/chain_spec.rs index a877901fd..103c451dc 100644 --- a/rollup/node/src/chain_spec.rs +++ b/rollup/node/src/chain_spec.rs @@ -243,8 +243,8 @@ pub fn rollup_local_config( } pub fn ethereum_mainnet(decode_url: Option) -> ChainSpec { - let (gasp_token_address, eth_chain_id) = ([0u8; 20], 1u64); - let mut chain_genesis_salt_arr: [u8; 32] = + let (_gasp_token_address, eth_chain_id) = ([0u8; 20], 1u64); + let chain_genesis_salt_arr: [u8; 32] = hex_literal::hex!("0011001100110011001100110011001100110011001100110011001100110011"); let collator01 = hex_literal::hex!("b9fcA08B9cA327a1dE90FDB4d51aa5ae6Ffe512a"); @@ -368,7 +368,7 @@ pub fn ethereum_mainnet(decode_url: Option) -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they stake - 1__000_000u128 * currency::DOLLARS, + 2__000_000u128 * currency::DOLLARS, ), ( // Who gets to stake initially @@ -376,7 +376,23 @@ pub fn ethereum_mainnet(decode_url: Option) -> ChainSpec { // Id of MGA token, 0u32, // How much mangata they stake - 1__000_000u128 * currency::DOLLARS, + 2__000_000u128 * currency::DOLLARS, + ), + ( + // Who gets to stake initially + collator03.into(), + // Id of MGA token, + 0u32, + // How much mangata they stake + 2__000_000u128 * currency::DOLLARS, + ), + ( + // Who gets to stake initially + collator04.into(), + // Id of MGA token, + 0u32, + // How much mangata they stake + 2__000_000u128 * currency::DOLLARS, ), ], vec![ @@ -606,7 +622,7 @@ fn rollup_genesis( .map(|seq| { ( seq, - pallet_rolldown::messages::Chain::Ethereum, + pallet_rolldown::messages::Chain::Arbitrum, 100u128 * currency::DOLLARS, ) }) @@ -614,11 +630,7 @@ fn rollup_genesis( base_initial_sequencers .into_iter() .map(|seq| { - ( - seq, - pallet_rolldown::messages::Chain::Ethereum, - 100u128 * currency::DOLLARS, - ) + (seq, pallet_rolldown::messages::Chain::Base, 100u128 * currency::DOLLARS) }) .collect::>(), ]