From e1a4094e46dba4dec9710fd24771c394d91201d5 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 21 Oct 2024 12:23:41 +0200 Subject: [PATCH 1/3] sepolia fork versions not mainnet --- .../src/bridge_to_ethereum_config.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/system-parachains/bridge-hub-paseo/src/bridge_to_ethereum_config.rs b/system-parachains/bridge-hub-paseo/src/bridge_to_ethereum_config.rs index ccc15cdc..c086b0ac 100644 --- a/system-parachains/bridge-hub-paseo/src/bridge_to_ethereum_config.rs +++ b/system-parachains/bridge-hub-paseo/src/bridge_to_ethereum_config.rs @@ -91,24 +91,24 @@ impl snowbridge_pallet_outbound_queue::Config for Runtime { parameter_types! { pub const ChainForkVersions: ForkVersions = ForkVersions { genesis: Fork { - version: [0, 0, 0, 0], // 0x00000000 + version: [144, 0, 0, 111], // 0x90000069 epoch: 0, }, altair: Fork { - version: [1, 0, 0, 0], // 0x01000000 - epoch: 74240, + version: [144, 0, 0, 112], // 0x90000070 + epoch: 50, }, bellatrix: Fork { - version: [2, 0, 0, 0], // 0x02000000 - epoch: 144896, + version: [144, 0, 0, 113], // 0x90000071 + epoch: 100, }, capella: Fork { - version: [3, 0, 0, 0], // 0x03000000 - epoch: 194048, + version: [144, 0, 0, 114], // 0x90000072 + epoch: 56832, }, deneb: Fork { - version: [4, 0, 0, 0], // 0x04000000 - epoch: 269568, + version: [144, 0, 0, 115], // 0x90000073 + epoch: 132608, }, }; } From 94b05f5a8ed474ac439f98c3026b2342b272c73f Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 21 Oct 2024 12:44:53 +0200 Subject: [PATCH 2/3] add fork version test --- .../bridge-hub-paseo/tests/snowbridge.rs | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/system-parachains/bridge-hub-paseo/tests/snowbridge.rs b/system-parachains/bridge-hub-paseo/tests/snowbridge.rs index 55b41d48..d5b051e6 100644 --- a/system-parachains/bridge-hub-paseo/tests/snowbridge.rs +++ b/system-parachains/bridge-hub-paseo/tests/snowbridge.rs @@ -30,6 +30,7 @@ use cumulus_primitives_core::XcmError::{FailedToTransactAsset, TooExpensive}; use frame_support::{parameter_types, traits::Contains}; use parachains_common::{AccountId, AuraId, Balance}; pub use parachains_runtimes_test_utils::test_cases::change_storage_constant_by_governance_works; +use snowbridge_beacon_primitives::{Fork, ForkVersions}; use snowbridge_pallet_ethereum_client::WeightInfo; use sp_core::H160; use sp_keyring::AccountKeyring::Alice; @@ -216,6 +217,35 @@ fn ethereum_to_paseo_message_extrinsics_work() { ); } +#[test] +fn fork_versions_are_set_to_sepolia() { + assert_eq!( + ForkVersions { + genesis: Fork { + version: [0, 0, 0, 0], // 0x00000000 + epoch: 0, + }, + altair: Fork { + version: [1, 0, 0, 0], // 0x01000000 + epoch: 74240, + }, + bellatrix: Fork { + version: [2, 0, 0, 0], // 0x02000000 + epoch: 144896, + }, + capella: Fork { + version: [3, 0, 0, 0], // 0x03000000 + epoch: 194048, + }, + deneb: Fork { + version: [4, 0, 0, 0], // 0x04000000 + epoch: 269568, + }, + }, + bridge_hub_paseo_runtime::bridge_to_ethereum_config::ChainForkVersions::get() + ) +} + #[test] fn ethereum_outbound_queue_processes_messages_before_message_queue_works() { snowbridge_runtime_test_common::ethereum_outbound_queue_processes_messages_before_message_queue_works::< From fdb49dfe8a86dc583539a83525fb755cc5a38148 Mon Sep 17 00:00:00 2001 From: claravanstaden Date: Mon, 21 Oct 2024 13:16:33 +0200 Subject: [PATCH 3/3] Revert "add fork version test" This reverts commit 94b05f5a8ed474ac439f98c3026b2342b272c73f. --- .../bridge-hub-paseo/tests/snowbridge.rs | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/system-parachains/bridge-hub-paseo/tests/snowbridge.rs b/system-parachains/bridge-hub-paseo/tests/snowbridge.rs index d5b051e6..55b41d48 100644 --- a/system-parachains/bridge-hub-paseo/tests/snowbridge.rs +++ b/system-parachains/bridge-hub-paseo/tests/snowbridge.rs @@ -30,7 +30,6 @@ use cumulus_primitives_core::XcmError::{FailedToTransactAsset, TooExpensive}; use frame_support::{parameter_types, traits::Contains}; use parachains_common::{AccountId, AuraId, Balance}; pub use parachains_runtimes_test_utils::test_cases::change_storage_constant_by_governance_works; -use snowbridge_beacon_primitives::{Fork, ForkVersions}; use snowbridge_pallet_ethereum_client::WeightInfo; use sp_core::H160; use sp_keyring::AccountKeyring::Alice; @@ -217,35 +216,6 @@ fn ethereum_to_paseo_message_extrinsics_work() { ); } -#[test] -fn fork_versions_are_set_to_sepolia() { - assert_eq!( - ForkVersions { - genesis: Fork { - version: [0, 0, 0, 0], // 0x00000000 - epoch: 0, - }, - altair: Fork { - version: [1, 0, 0, 0], // 0x01000000 - epoch: 74240, - }, - bellatrix: Fork { - version: [2, 0, 0, 0], // 0x02000000 - epoch: 144896, - }, - capella: Fork { - version: [3, 0, 0, 0], // 0x03000000 - epoch: 194048, - }, - deneb: Fork { - version: [4, 0, 0, 0], // 0x04000000 - epoch: 269568, - }, - }, - bridge_hub_paseo_runtime::bridge_to_ethereum_config::ChainForkVersions::get() - ) -} - #[test] fn ethereum_outbound_queue_processes_messages_before_message_queue_works() { snowbridge_runtime_test_common::ethereum_outbound_queue_processes_messages_before_message_queue_works::<