Skip to content

Commit

Permalink
Remove contracts parachain
Browse files Browse the repository at this point in the history
  • Loading branch information
serban300 committed Aug 27, 2024
1 parent 6ecbde3 commit 47e4373
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 256 deletions.

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

0 comments on commit 47e4373

Please sign in to comment.