Skip to content

Commit

Permalink
xcm tests constants for dancelight
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Dec 2, 2024
1 parent 70d688d commit c32b222
Show file tree
Hide file tree
Showing 5 changed files with 466 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Cargo.lock

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

23 changes: 23 additions & 0 deletions solo-chains/runtime/dancelight/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ tp-bridge = { workspace = true }

[dev-dependencies]
alloy-sol-types = { workspace = true, default-features = true }
container-chain-template-frontier-runtime = { workspace = true, features = [ "std" ] }
container-chain-template-simple-runtime = { workspace = true, features = [ "std" ] }
emulated-integration-tests-common = { workspace = true }
finality-grandpa = { workspace = true, default-features = true, features = [ "derive-codec" ] }
keyring = { workspace = true }
milagro-bls = { workspace = true, features = [ "std" ] }
Expand All @@ -168,6 +171,12 @@ sp-trie = { workspace = true }
test-relay-sproof-builder = { workspace = true }
tiny-keccak = { workspace = true }
tokio = { workspace = true, features = [ "macros" ] }
sc-consensus-grandpa = { workspace = true }
rococo-runtime = { workspace = true }
rococo-runtime-constants = { workspace = true }
westend-runtime = { workspace = true }
westend-runtime-constants = { workspace = true }
xcm-emulator = { workspace = true }

[build-dependencies]
substrate-wasm-builder = { workspace = true, optional = true }
Expand All @@ -181,6 +190,8 @@ std = [
"binary-merkle-tree/std",
"bitvec/std",
"block-builder-api/std",
"container-chain-template-frontier-runtime/std",
"container-chain-template-simple-runtime/std",
"cumulus-pallet-parachain-system/std",
"cumulus-primitives-core/std",
"dancelight-runtime-constants/std",
Expand Down Expand Up @@ -261,6 +272,8 @@ std = [
"polkadot-parachain-primitives/std",
"primitives/std",
"rand/std",
"rococo-runtime/std",
"rococo-runtime-constants/std",
"runtime-common/std",
"runtime-parachains/std",
"scale-info/std",
Expand Down Expand Up @@ -305,10 +318,14 @@ std = [
"xcm-executor/std",
"xcm-runtime-apis/std",
"xcm/std",
"westend-runtime/std",
"westend-runtime-constants/std",
]
no_std = []

runtime-benchmarks = [
"container-chain-template-frontier-runtime/runtime-benchmarks",
"container-chain-template-simple-runtime/runtime-benchmarks",
"cumulus-pallet-parachain-system/runtime-benchmarks",
"cumulus-primitives-core/runtime-benchmarks",
"dp-consensus/runtime-benchmarks",
Expand Down Expand Up @@ -363,6 +380,7 @@ runtime-benchmarks = [
"pallet-xcm/runtime-benchmarks",
"polkadot-parachain-primitives/runtime-benchmarks",
"primitives/runtime-benchmarks",
"rococo-runtime/runtime-benchmarks",
"runtime-common/runtime-benchmarks",
"runtime-parachains/runtime-benchmarks",
"snowbridge-core/runtime-benchmarks",
Expand All @@ -381,8 +399,11 @@ runtime-benchmarks = [
"xcm-builder/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
"xcm-runtime-apis/runtime-benchmarks",
"westend-runtime/runtime-benchmarks",
]
try-runtime = [
"container-chain-template-frontier-runtime/try-runtime",
"container-chain-template-simple-runtime/try-runtime",
"cumulus-pallet-parachain-system/try-runtime",
"frame-executive/try-runtime",
"frame-support/try-runtime",
Expand Down Expand Up @@ -441,6 +462,7 @@ try-runtime = [
"pallet-utility/try-runtime",
"pallet-whitelist/try-runtime",
"pallet-xcm/try-runtime",
"rococo-runtime/try-runtime",
"runtime-common/try-runtime",
"runtime-parachains/try-runtime",
"snowbridge-pallet-ethereum-client/try-runtime",
Expand All @@ -449,6 +471,7 @@ try-runtime = [
"snowbridge-pallet-system/try-runtime",
"sp-runtime/try-runtime",
"tanssi-runtime-common/try-runtime",
"westend-runtime/try-runtime",
]

# Set timing constants (e.g. session period) to faster versions to speed up testing.
Expand Down
2 changes: 2 additions & 0 deletions solo-chains/runtime/dancelight/src/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ use {
test_relay_sproof_builder::ParaHeaderSproofBuilder,
};

mod xcm;

pub use crate::{
genesis_config_presets::get_authority_keys_from_seed, AccountId, AuthorNoting, Babe, Balance,
Balances, Beefy, BeefyMmrLeaf, ContainerRegistrar, DataPreservers, Grandpa, InflationRewards,
Expand Down
Loading

0 comments on commit c32b222

Please sign in to comment.