Skip to content

Commit

Permalink
adds rococo runtime common crate (#1031)
Browse files Browse the repository at this point in the history
Co-authored-by: claravanstaden <Cats 4 life!>
  • Loading branch information
claravanstaden authored Dec 1, 2023
1 parent d684f6c commit 312b05e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions parachain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
"pallets/system",
"pallets/system/runtime-api",
"runtime/runtime-common",
"runtime/rococo-common",
]

[patch.'https://github.com/snowfork/snowbridge']
Expand Down
21 changes: 21 additions & 0 deletions parachain/runtime/rococo-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "snowbridge-rococo-common"
version = "0.0.1"
authors = [ "Snowfork <contact@snowfork.com>" ]
edition = "2021"

[dependencies]
log = { version = "0.4.20", default-features = false }

frame-support = { path = "../../../polkadot-sdk/substrate/frame/support", default-features = false }
xcm = { package = "staging-xcm", path = "../../../polkadot-sdk/polkadot/xcm", default-features = false }

[dev-dependencies]

[features]
default = [ "std" ]
std = [
"frame-support/std",
"xcm/std",
]
runtime-benchmarks = []
14 changes: 14 additions & 0 deletions parachain/runtime/rococo-common/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: 2023 Snowfork <hello@snowfork.com>
//! # Rococo Common
//!
//! Config used for the Rococo asset hub and bridge hub runtimes.
#![cfg_attr(not(feature = "std"), no_std)]

use frame_support::parameter_types;
use xcm::opaque::lts::NetworkId;

parameter_types! {
// Network and location for the Ethereum chain.
pub EthereumNetwork: NetworkId = NetworkId::Ethereum { chain_id: 15 };
}

0 comments on commit 312b05e

Please sign in to comment.