Skip to content

Commit

Permalink
use rococo instead of polkadot-test-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Jun 5, 2024
1 parent 988fcbb commit 8410d16
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 87 deletions.
78 changes: 1 addition & 77 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-featu
staging-xcm = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" }
staging-xcm-builder = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" }
staging-xcm-executor = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" }
polkadot-test-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" }
rococo-runtime = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" }
polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" }
polkadot-runtime-parachains = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" }
polkadot-parachain-primitives = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false, branch = "release-polkadot-v1.7.2" }
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ polkadot-parachain-primitives = { workspace = true, features = ["std"] }
polkadot-primitives = { workspace = true, features = ["std"] }
polkadot-runtime-common = { workspace = true, features = ["std"] }
polkadot-runtime-parachains = { workspace = true, features = ["std"] }
polkadot-test-runtime = { workspace = true, features = ["std"] }
rococo-runtime = { workspace = true, features = ["std"] }

pallet-babe = { workspace = true, features = ["std"] }
pallet-grandpa = { workspace = true, features = ["std"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7390,6 +7390,8 @@ mod centrifuge {
.storage(),
);

setup_xcm(&mut env);

transfer_dot_from_relay_chain(&mut env);

env.parachain_state_mut(|| {
Expand Down
18 changes: 10 additions & 8 deletions runtime/integration-tests/src/generic/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,37 +179,39 @@ macro_rules! impl_fudge_support {

impl_fudge_support!(
FudgeDevelopment,
polkadot_test_runtime,
default_relay_session_keys(),
rococo_runtime,
default_rococo_session_keys(),
development_runtime,
2000,
2001
);

impl_fudge_support!(
FudgeAltair,
polkadot_test_runtime,
default_relay_session_keys(),
rococo_runtime,
default_rococo_session_keys(),
altair_runtime,
2088,
2089
);

impl_fudge_support!(
FudgeCentrifuge,
polkadot_test_runtime,
default_relay_session_keys(),
rococo_runtime,
default_rococo_session_keys(),
centrifuge_runtime,
2031,
2032
);

pub fn default_relay_session_keys() -> polkadot_test_runtime::SessionKeys {
polkadot_test_runtime::SessionKeys {
pub fn default_rococo_session_keys() -> rococo_runtime::SessionKeys {
rococo_runtime::SessionKeys {
grandpa: pallet_grandpa::AuthorityId::from_slice([0u8; 32].as_slice()).unwrap(),
babe: pallet_babe::AuthorityId::from_slice([0u8; 32].as_slice()).unwrap(),
para_validator: ValidatorId::from_slice([0u8; 32].as_slice()).unwrap(),
para_assignment: AssignmentId::from_slice([0u8; 32].as_slice()).unwrap(),
authority_discovery: AuthorityDiscoveryId::from_slice([0u8; 32].as_slice()).unwrap(),
beefy: sp_consensus_beefy::ecdsa_crypto::AuthorityId::from_slice([0u8; 33].as_slice())
.unwrap(),
}
}

0 comments on commit 8410d16

Please sign in to comment.