-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds rococo runtime common crate (#1031)
Co-authored-by: claravanstaden <Cats 4 life!>
- Loading branch information
1 parent
d684f6c
commit 312b05e
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]>" ] | ||
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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-FileCopyrightText: 2023 Snowfork <[email protected]> | ||
//! # 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 }; | ||
} |