Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polkadot-parachain-bin: Remove contracts parachain #5471

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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

This file was deleted.

239 changes: 0 additions & 239 deletions cumulus/polkadot-parachain/src/chain_spec/contracts.rs

This file was deleted.

16 changes: 0 additions & 16 deletions cumulus/polkadot-parachain/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ use sp_runtime::traits::{IdentifyAccount, Verify};
pub mod asset_hubs;
pub mod bridge_hubs;
pub mod collectives;
pub mod contracts;
pub mod coretime;
pub mod glutton;
pub mod penpal;
Expand Down Expand Up @@ -148,14 +147,6 @@ impl LoadSpec for ChainSpecLoader {
&include_bytes!("../../chain-specs/collectives-westend.json")[..],
)?),

// -- Contracts on Rococo
"contracts-rococo-dev" => Box::new(contracts::contracts_rococo_development_config()),
"contracts-rococo-local" => Box::new(contracts::contracts_rococo_local_config()),
"contracts-rococo-genesis" => Box::new(contracts::contracts_rococo_config()),
"contracts-rococo" => Box::new(GenericChainSpec::from_json_bytes(
&include_bytes!("../../chain-specs/contracts-rococo.json")[..],
)?),

// -- BridgeHub
bridge_like_id
if bridge_like_id.starts_with(bridge_hubs::BridgeHubRuntimeType::ID_PREFIX) =>
Expand Down Expand Up @@ -238,7 +229,6 @@ enum LegacyRuntime {
AssetHubPolkadot,
AssetHub,
Penpal,
ContractsRococo,
Collectives,
Glutton,
BridgeHub(bridge_hubs::BridgeHubRuntimeType),
Expand Down Expand Up @@ -266,8 +256,6 @@ impl LegacyRuntime {
LegacyRuntime::AssetHub
} else if id.starts_with("penpal") {
LegacyRuntime::Penpal
} else if id.starts_with("contracts-rococo") {
LegacyRuntime::ContractsRococo
} else if id.starts_with("collectives-polkadot") || id.starts_with("collectives-westend") {
LegacyRuntime::Collectives
} else if id.starts_with(bridge_hubs::BridgeHubRuntimeType::ID_PREFIX) {
Expand Down Expand Up @@ -307,7 +295,6 @@ impl RuntimeResolverT for RuntimeResolver {
LegacyRuntime::Collectives |
LegacyRuntime::Coretime(_) |
LegacyRuntime::People(_) |
LegacyRuntime::ContractsRococo |
LegacyRuntime::Glutton |
LegacyRuntime::Penpal |
LegacyRuntime::Omni => Runtime::Omni(Consensus::Aura(AuraConsensusId::Sr25519)),
Expand Down Expand Up @@ -383,9 +370,6 @@ mod tests {
create_default_with_extensions("penpal-rococo-1000", Extensions2::default());
assert_eq!(LegacyRuntime::Penpal, LegacyRuntime::from_id(chain_spec.id()));

let chain_spec = crate::chain_spec::contracts::contracts_rococo_local_config();
assert_eq!(LegacyRuntime::ContractsRococo, LegacyRuntime::from_id(chain_spec.id()));

let chain_spec = crate::chain_spec::rococo_parachain::rococo_parachain_local_config();
assert_eq!(LegacyRuntime::Omni, LegacyRuntime::from_id(chain_spec.id()));
}
Expand Down
Loading