Skip to content

Commit

Permalink
working chainspec
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszaaa committed Dec 13, 2024
1 parent 0dea7d9 commit 80135e9
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions rollup/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ pub fn rollup_local_config(
}

pub fn ethereum_mainnet(decode_url: Option<String>) -> 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");
Expand Down Expand Up @@ -368,15 +368,31 @@ pub fn ethereum_mainnet(decode_url: Option<String>) -> 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
collator02.into(),
// 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![
Expand Down Expand Up @@ -606,19 +622,15 @@ fn rollup_genesis(
.map(|seq| {
(
seq,
pallet_rolldown::messages::Chain::Ethereum,
pallet_rolldown::messages::Chain::Arbitrum,
100u128 * currency::DOLLARS,
)
})
.collect::<Vec<_>>(),
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::<Vec<_>>(),
]
Expand Down

0 comments on commit 80135e9

Please sign in to comment.