mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Add parachains for rococo (#144)
* Add parachains for rococo * Fix chain specs * Update to revert log rotation * Support selecting the chain in `export-genesis-state` * Add subcommand for exporting the genesis wasm of a Parachain * Update stuff * Fix `export-genesis-wasm` * Update the polkadot ref * Add bootNodes address * Add bootNodes address - track * Add bootNodes address - trick * Fix incorrect peer id (trick) * Fixes https://github.com/paritytech/cumulus/issues/157 * Update chainspecs * Update specs again * Set correct sudo account * Update properties * Update readme * Update `Cargo.lock` * Switch to rococo-branch Co-authored-by: Evaldo <contato@evaldofelipe.com> Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
This commit is contained in:
@@ -11,27 +11,27 @@ cumulus-primitives = { path = "../primitives", default-features = false }
|
||||
cumulus-runtime = { path = "../runtime", default-features = false }
|
||||
|
||||
# Polkadot dependencies
|
||||
parachain = { package = "polkadot-parachain", git = "https://github.com/paritytech/polkadot", branch = "cumulus-branch", default-features = false }
|
||||
parachain = { package = "polkadot-parachain", git = "https://github.com/paritytech/polkadot", branch = "rococo-branch", default-features = false }
|
||||
|
||||
# Substrate dependencies
|
||||
frame-support = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", version = "2.0.0-rc5", default-features = false }
|
||||
sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-io = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-std = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-version = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
frame-system = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
frame-support = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", version = "2.0.0-rc5", default-features = false }
|
||||
sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
sp-io = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
sp-std = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
sp-version = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
frame-system = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
|
||||
# Other Dependencies
|
||||
codec = { package = "parity-scale-codec", version = "1.0.0", default-features = false, features = ["derive"]}
|
||||
serde = { version = "1.0.101", optional = true, features = ["derive"] }
|
||||
|
||||
[dev-dependencies]
|
||||
sp-externalities = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
substrate-test-runtime-client = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-version = { git = "https://github.com/paritytech/substrate", branch = "cumulus-branch", default-features = false }
|
||||
sp-externalities = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
substrate-test-runtime-client = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
sp-version = { git = "https://github.com/paritytech/substrate", branch = "rococo-branch", default-features = false }
|
||||
|
||||
[features]
|
||||
default = ['std']
|
||||
|
||||
@@ -37,11 +37,11 @@ use cumulus_primitives::{
|
||||
use frame_support::{
|
||||
decl_error, decl_event, decl_module, decl_storage, ensure, storage, weights::DispatchClass,
|
||||
};
|
||||
use frame_system::ensure_none;
|
||||
use parachain::primitives::RelayChainBlockNumber;
|
||||
use sp_core::storage::well_known_keys;
|
||||
use sp_inherents::{InherentData, InherentIdentifier, ProvideInherent};
|
||||
use sp_std::vec::Vec;
|
||||
use frame_system::ensure_none;
|
||||
|
||||
/// A ValidationFunction is a compiled WASM blob which, on execution, validates parachain blocks.
|
||||
pub type ValidationFunction = Vec<u8>;
|
||||
@@ -239,6 +239,7 @@ mod tests {
|
||||
traits::{OnFinalize, OnInitialize},
|
||||
weights::Weight,
|
||||
};
|
||||
use frame_system::{InitKind, RawOrigin};
|
||||
use sp_core::H256;
|
||||
use sp_runtime::{
|
||||
testing::Header,
|
||||
@@ -246,7 +247,6 @@ mod tests {
|
||||
Perbill,
|
||||
};
|
||||
use sp_version::RuntimeVersion;
|
||||
use frame_system::{InitKind, RawOrigin};
|
||||
|
||||
impl_outer_origin! {
|
||||
pub enum Origin for Test where system = frame_system {}
|
||||
@@ -547,7 +547,7 @@ mod tests {
|
||||
));
|
||||
},
|
||||
|| {
|
||||
let events = dbg!(System::<Test>::events());
|
||||
let events = System::<Test>::events();
|
||||
assert_eq!(
|
||||
events[0].event,
|
||||
TestEvent::parachain_upgrade(Event::ValidationFunctionStored(1123))
|
||||
@@ -558,7 +558,7 @@ mod tests {
|
||||
1234,
|
||||
|| {},
|
||||
|| {
|
||||
let events = dbg!(System::<Test>::events());
|
||||
let events = System::<Test>::events();
|
||||
assert_eq!(
|
||||
events[0].event,
|
||||
TestEvent::parachain_upgrade(Event::ValidationFunctionApplied(1234))
|
||||
|
||||
Reference in New Issue
Block a user