Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5699040
stable2412
tmpolaczyk Feb 14, 2025
910b070
Add evm cherry-pick
tmpolaczyk Feb 19, 2025
a6a15ab
toml
tmpolaczyk Feb 19, 2025
2ba1335
fmt
tmpolaczyk Feb 19, 2025
a857408
Merge remote-tracking branch 'origin/master' into tomasz-wip-stable2412
tmpolaczyk Feb 20, 2025
eef2385
fix core scheduling tests
girazoki Feb 21, 2025
1771af8
Remove RuntimeString and fix xcm generic benchmarks
tmpolaczyk Feb 20, 2025
0a3d4a8
Benchmarks
tmpolaczyk Feb 21, 2025
028b1a4
Fix warnings
tmpolaczyk Feb 21, 2025
63f9f6f
Merge remote-tracking branch 'origin/master' into tomasz-wip-stable2412
tmpolaczyk Feb 21, 2025
8c31c45
Fix test compilation
tmpolaczyk Feb 21, 2025
26c1e2c
typescript-api xcm v5 hack
tmpolaczyk Feb 21, 2025
cbafbfd
fix test unused warnings
tmpolaczyk Feb 21, 2025
238c3c0
Fix frontier template xcm tests
tmpolaczyk Feb 21, 2025
850054b
be more efficient instead of hardcoding numbers in test
girazoki Feb 21, 2025
2eb3840
clippy
tmpolaczyk Feb 25, 2025
10da53b
Merge remote-tracking branch 'origin/master' into tomasz-wip-stable2412
tmpolaczyk Feb 25, 2025
8f8078f
update frontier and evm forks to fix eth tests
Agusrodri Feb 25, 2025
98c1487
Merge branch 'master' into tomasz-wip-stable2412
tmpolaczyk Feb 26, 2025
38587c8
Use ethabi 2.0.0, remove primitive-types-hack
tmpolaczyk Feb 27, 2025
218459b
Cargo.lock
tmpolaczyk Feb 27, 2025
40a5700
Fix eth token reception test
dimartiro Feb 27, 2025
463bcdf
Add snowbridge ethereum system XCMv5 migration
tmpolaczyk Feb 27, 2025
88918d1
toml
tmpolaczyk Feb 27, 2025
4c15bd4
Merge remote-tracking branch 'origin/master' into tomasz-wip-stable2412
tmpolaczyk Feb 27, 2025
0746be2
Fix xcm v5 migration and add test
tmpolaczyk Feb 28, 2025
d7ecb7e
Merge remote-tracking branch 'origin/master' into tomasz-wip-stable2412
tmpolaczyk Mar 3, 2025
c57adcd
Fix conflicts
tmpolaczyk Mar 4, 2025
4bb8dfa
Merge remote-tracking branch 'origin/master' into tomasz-wip-stable2412
tmpolaczyk Mar 4, 2025
fd4ce89
Fix conflicts again
tmpolaczyk Mar 4, 2025
ddd8e07
Imports
tmpolaczyk Mar 4, 2025
e31b042
typescript-api
tmpolaczyk Mar 4, 2025
62a4611
Fix imports
tmpolaczyk Mar 4, 2025
001a1da
incorporate only one xcm package
girazoki Mar 4, 2025
8ae2669
toml-maid
girazoki Mar 4, 2025
d4d8895
fmt
girazoki Mar 4, 2025
9741b7c
Merge branch 'master' into tomasz-wip-stable2412
girazoki Mar 4, 2025
53a9969
Merge branch 'master' into tomasz-wip-stable2412
girazoki Mar 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,440 changes: 3,762 additions & 2,678 deletions Cargo.lock

Large diffs are not rendered by default.

604 changes: 301 additions & 303 deletions Cargo.toml

Large diffs are not rendered by default.

27 changes: 26 additions & 1 deletion chains/container-chains/nodes/frontier/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ use {
cumulus_client_consensus_common::ParachainBlockImport as TParachainBlockImport,
cumulus_client_parachain_inherent::{MockValidationDataInherentDataProvider, MockXcmConfig},
cumulus_client_service::{prepare_node_config, ParachainHostFunctions},
cumulus_primitives_core::{relay_chain::well_known_keys as RelayWellKnownKeys, ParaId},
cumulus_primitives_core::{
relay_chain::well_known_keys as RelayWellKnownKeys, CollectCollationInfo, ParaId,
},
fc_consensus::FrontierBlockImport,
fc_db::DatabaseSource,
fc_rpc_core::types::{FeeHistoryCache, FilterPool},
Expand All @@ -32,9 +34,11 @@ use {
node_common::service::{ManualSealConfiguration, NodeBuilder, NodeBuilderConfig, Sealing},
parity_scale_codec::Encode,
polkadot_parachain_primitives::primitives::HeadData,
polkadot_primitives::UpgradeGoAhead,
sc_consensus::BasicQueue,
sc_executor::WasmExecutor,
sc_service::{Configuration, TFullBackend, TFullClient, TaskManager},
sp_api::ProvideRuntimeApi,
sp_blockchain::HeaderBackend,
sp_consensus_slots::{Slot, SlotDuration},
sp_core::{Pair, H256},
Expand Down Expand Up @@ -404,6 +408,7 @@ pub async fn start_dev_node(
.encode();

let para_head_data: Vec<u8> = HeadData(para_header).encode();
let client_set_aside_for_cidp = client.clone();
let client_for_xcm = client.clone();
let authorities_for_cidp = authorities.clone();
let para_head_key = RelayWellKnownKeys::para_head(para_id);
Expand Down Expand Up @@ -441,6 +446,20 @@ pub async fn start_dev_node(
additional_keys.append(&mut vec![(para_head_key, para_head_data), (relay_slot_key, Slot::from(relay_slot).encode())]);

let time = MockTimestampInherentDataProvider;
let current_para_head = client_set_aside_for_cidp
.header(block)
.expect("Header lookup should succeed")
.expect("Header passed in as parent should be present in backend.");
let should_send_go_ahead = match client_set_aside_for_cidp
.runtime_api()
.collect_collation_info(block, &current_para_head)
{
Ok(info) => info.new_validation_code.is_some(),
Err(e) => {
log::error!("Failed to collect collation info: {:?}", e);
false
},
};
let mocked_parachain = MockValidationDataInherentDataProvider {
current_para_block,
current_para_block_head: None,
Expand All @@ -458,6 +477,12 @@ pub async fn start_dev_node(
raw_horizontal_messages: hrmp_xcm_receiver.drain().collect(),
additional_key_values: Some(additional_keys),
para_id,
upgrade_go_ahead: should_send_go_ahead.then(|| {
log::info!(
"Detected pending validation code, sending go-ahead signal."
);
UpgradeGoAhead::GoAhead
}),
};

Ok((time, mocked_parachain, mocked_authorities_noting))
Expand Down
35 changes: 29 additions & 6 deletions chains/container-chains/nodes/simple/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@ use {
cumulus_client_consensus_common::ParachainBlockImport as TParachainBlockImport,
cumulus_client_parachain_inherent::{MockValidationDataInherentDataProvider, MockXcmConfig},
cumulus_client_service::{prepare_node_config, ParachainHostFunctions},
cumulus_primitives_core::{relay_chain::well_known_keys as RelayWellKnownKeys, ParaId},
cumulus_primitives_core::{
relay_chain::well_known_keys as RelayWellKnownKeys, CollectCollationInfo, ParaId,
},
nimbus_primitives::NimbusId,
node_common::service::ManualSealConfiguration,
node_common::service::Sealing,
node_common::service::{NodeBuilder, NodeBuilderConfig},
node_common::service::{ManualSealConfiguration, NodeBuilder, NodeBuilderConfig, Sealing},
parity_scale_codec::Encode,
polkadot_parachain_primitives::primitives::HeadData,
polkadot_primitives::UpgradeGoAhead,
sc_consensus::BasicQueue,
sc_executor::WasmExecutor,
sc_service::{Configuration, TFullBackend, TFullClient, TaskManager},
sp_api::ProvideRuntimeApi,
sp_blockchain::HeaderBackend,
sp_consensus_slots::{Slot, SlotDuration},
sp_core::Pair,
sp_core::H256,
sp_core::{Pair, H256},
std::{sync::Arc, time::Duration},
};

Expand Down Expand Up @@ -243,6 +244,7 @@ pub async fn start_dev_node(
.encode();

let para_head_data: Vec<u8> = HeadData(para_header).encode();
let client_set_aside_for_cidp = client.clone();
let client_for_xcm = client.clone();
let authorities_for_cidp = authorities.clone();
let para_head_key = RelayWellKnownKeys::para_head(para_id);
Expand Down Expand Up @@ -280,6 +282,21 @@ pub async fn start_dev_node(
additional_keys.append(&mut vec![(para_head_key, para_head_data), (relay_slot_key, Slot::from(relay_slot).encode())]);

let time = MockTimestampInherentDataProvider;
let current_para_head = client_set_aside_for_cidp
.header(block)
.expect("Header lookup should succeed")
.expect("Header passed in as parent should be present in backend.");
let should_send_go_ahead = match client_set_aside_for_cidp
.runtime_api()
.collect_collation_info(block, &current_para_head)
{
Ok(info) => info.new_validation_code.is_some(),
Err(e) => {
log::error!("Failed to collect collation info: {:?}", e);
false
},
};

let mocked_parachain = MockValidationDataInherentDataProvider {
current_para_block,
current_para_block_head: None,
Expand All @@ -297,6 +314,12 @@ pub async fn start_dev_node(
raw_horizontal_messages: hrmp_xcm_receiver.drain().collect(),
additional_key_values: Some(additional_keys),
para_id,
upgrade_go_ahead: should_send_go_ahead.then(|| {
log::info!(
"Detected pending validation code, sending go-ahead signal."
);
UpgradeGoAhead::GoAhead
}),
};

Ok((time, mocked_parachain, mocked_authorities_noting))
Expand Down
17 changes: 9 additions & 8 deletions chains/container-chains/runtime-templates/frontier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ pallet-xcm = { workspace = true }
pallet-xcm-benchmarks = { workspace = true, optional = true }
polkadot-parachain-primitives = { workspace = true }
polkadot-runtime-common = { workspace = true }
staging-xcm = { workspace = true }
staging-xcm-builder = { workspace = true }
staging-xcm-executor = { workspace = true }
xcm = { workspace = true }
xcm-builder = { workspace = true }
xcm-executor = { workspace = true }
xcm-runtime-apis = { workspace = true }

# Cumulus
Expand Down Expand Up @@ -222,12 +222,12 @@ std = [
"sp-transaction-pool/std",
"sp-trie/std",
"sp-version/std",
"staging-xcm-builder/std",
"staging-xcm-executor/std",
"staging-xcm/std",
"tanssi-runtime-common/std",
"xcm-builder/std",
"xcm-executor/std",
"xcm-primitives/std",
"xcm-runtime-apis/std",
"xcm/std",
]

# Allow to print logs details (no wasm:stripped)
Expand Down Expand Up @@ -264,6 +264,7 @@ runtime-benchmarks = [
"pallet-proxy/runtime-benchmarks",
"pallet-sudo/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-transaction-payment/runtime-benchmarks",
"pallet-tx-pause/runtime-benchmarks",
"pallet-utility/runtime-benchmarks",
"pallet-xcm-benchmarks/runtime-benchmarks",
Expand All @@ -273,9 +274,9 @@ runtime-benchmarks = [
"polkadot-parachain-primitives/runtime-benchmarks",
"polkadot-runtime-common/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"staging-xcm-builder/runtime-benchmarks",
"staging-xcm-executor/runtime-benchmarks",
"tanssi-runtime-common/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-primitives/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
]
Expand Down
Loading
Loading