Skip to content

Commit

Permalink
WIP: add cumulus-client-parachain-inherent
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuanyshbaev committed Nov 25, 2024
1 parent c56a8ec commit 307d281
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 2 deletions.
38 changes: 38 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ cumulus-client-consensus-common = { version = "0.18.0" }
cumulus-client-consensus-relay-chain = { version = "0.18.0" }
cumulus-client-network = { version = "0.18.0" }
cumulus-client-service = { version = "0.19.0" }
cumulus-client-parachain-inherent = { version = "0.12.0" }
cumulus-primitives-parachain-inherent = { version = "0.16.0" }
cumulus-relay-chain-interface = { version = "0.18.0" }
cumulus-relay-chain-rpc-interface = { version = "0.18.0" }
Expand Down
1 change: 1 addition & 0 deletions node/service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ cumulus-client-consensus-common = { workspace = true }
cumulus-client-consensus-relay-chain = { workspace = true }
cumulus-client-network = { workspace = true }
cumulus-client-service = { workspace = true }
cumulus-client-parachain-inherent = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-parachain-inherent = { workspace = true }
cumulus-relay-chain-interface = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions node/service/src/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ use cumulus_client_consensus_common::{
use cumulus_client_consensus_relay_chain::{
build_relay_chain_consensus, BuildRelayChainConsensusParams,
};
use cumulus_client_parachain_inherent::{ParachainInherentData, ParachainInherentDataProvider};
use cumulus_client_service::{
build_network, build_relay_chain_interface, prepare_node_config, start_collator,
start_full_node, BuildNetworkParams, CollatorSybilResistance, StartCollatorParams,
StartFullNodeParams,
};
use cumulus_primitives_core::ParaId;
use cumulus_primitives_parachain_inherent::ParachainInherentData;
use cumulus_relay_chain_interface::RelayChainInterface;
use parity_scale_codec::Encode;
use robonomics_primitives::{AccountId, Balance, Block, Hash, Nonce};
Expand Down Expand Up @@ -160,7 +160,7 @@ where
let encoded_account = lighthouse_account.encode();
let relay_chain_interface = relay_chain_interface.clone();
async move {
let parachain_inherent = ParachainInherentData::create_at(
let parachain_inherent = ParachainInherentDataProvider::create_at(
relay_parent,
&relay_chain_interface,
&validation_data,
Expand Down

0 comments on commit 307d281

Please sign in to comment.