-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60f9909
commit c7a1e6a
Showing
8 changed files
with
867 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
120 changes: 120 additions & 0 deletions
120
cumulus/parachains/runtimes/testing/yet-another-parachain/Cargo.toml
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,120 @@ | ||
[package] | ||
name = "yet-another-parachain-runtime" | ||
version = "0.6.0" | ||
authors.workspace = true | ||
edition.workspace = true | ||
description = "Simple runtime used by the testing parachain(s)" | ||
license = "Apache-2.0" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
codec = { features = ["derive"], workspace = true } | ||
scale-info = { features = ["derive"], workspace = true } | ||
|
||
# Substrate | ||
frame-benchmarking = { optional = true, workspace = true } | ||
frame-executive = { workspace = true } | ||
frame-support = { workspace = true } | ||
frame-system = { workspace = true } | ||
frame-system-rpc-runtime-api = { workspace = true } | ||
pallet-assets = { workspace = true } | ||
pallet-aura = { workspace = true } | ||
pallet-balances = { workspace = true } | ||
pallet-sudo = { workspace = true } | ||
pallet-timestamp = { workspace = true } | ||
pallet-transaction-payment = { workspace = true } | ||
pallet-transaction-payment-rpc-runtime-api = { workspace = true } | ||
sp-api = { workspace = true } | ||
sp-block-builder = { workspace = true } | ||
sp-consensus-aura = { workspace = true } | ||
sp-core = { workspace = true } | ||
sp-genesis-builder = { workspace = true } | ||
sp-inherents = { workspace = true } | ||
sp-offchain = { workspace = true } | ||
sp-runtime = { workspace = true } | ||
sp-session = { workspace = true } | ||
sp-transaction-pool = { workspace = true } | ||
sp-version = { workspace = true } | ||
|
||
# Polkadot | ||
polkadot-parachain-primitives = { workspace = true } | ||
polkadot-runtime-common = { workspace = true } | ||
|
||
# Cumulus | ||
cumulus-pallet-aura-ext = { workspace = true } | ||
cumulus-pallet-parachain-system = { workspace = true } | ||
cumulus-primitives-aura = { workspace = true } | ||
cumulus-primitives-core = { workspace = true } | ||
cumulus-primitives-storage-weight-reclaim = { workspace = true } | ||
cumulus-primitives-utility = { workspace = true } | ||
parachains-common = { workspace = true } | ||
testnet-parachains-constants = { features = ["rococo"], workspace = true } | ||
parachain-info = { workspace = true } | ||
|
||
[build-dependencies] | ||
substrate-wasm-builder = { optional = true, workspace = true, default-features = true } | ||
|
||
[features] | ||
default = ["std"] | ||
std = [ | ||
"codec/std", | ||
"cumulus-pallet-aura-ext/std", | ||
"cumulus-pallet-parachain-system/std", | ||
"cumulus-primitives-aura/std", | ||
"cumulus-primitives-core/std", | ||
"cumulus-primitives-storage-weight-reclaim/std", | ||
"cumulus-primitives-utility/std", | ||
"frame-benchmarking?/std", | ||
"frame-executive/std", | ||
"frame-support/std", | ||
"frame-system-rpc-runtime-api/std", | ||
"frame-system/std", | ||
"pallet-assets/std", | ||
"pallet-aura/std", | ||
"pallet-balances/std", | ||
"pallet-sudo/std", | ||
"pallet-timestamp/std", | ||
"pallet-transaction-payment-rpc-runtime-api/std", | ||
"pallet-transaction-payment/std", | ||
"parachain-info/std", | ||
"parachains-common/std", | ||
"polkadot-parachain-primitives/std", | ||
"polkadot-runtime-common/std", | ||
"scale-info/std", | ||
"sp-api/std", | ||
"sp-block-builder/std", | ||
"sp-consensus-aura/std", | ||
"sp-core/std", | ||
"sp-genesis-builder/std", | ||
"sp-inherents/std", | ||
"sp-offchain/std", | ||
"sp-runtime/std", | ||
"sp-session/std", | ||
"sp-transaction-pool/std", | ||
"sp-version/std", | ||
"substrate-wasm-builder", | ||
"testnet-parachains-constants/std", | ||
] | ||
runtime-benchmarks = [ | ||
"cumulus-pallet-parachain-system/runtime-benchmarks", | ||
"cumulus-primitives-core/runtime-benchmarks", | ||
"cumulus-primitives-utility/runtime-benchmarks", | ||
"frame-benchmarking/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"pallet-assets/runtime-benchmarks", | ||
"pallet-balances/runtime-benchmarks", | ||
"pallet-sudo/runtime-benchmarks", | ||
"pallet-timestamp/runtime-benchmarks", | ||
"parachains-common/runtime-benchmarks", | ||
"polkadot-parachain-primitives/runtime-benchmarks", | ||
"polkadot-runtime-common/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
] | ||
|
||
# A feature that should be enabled when the runtime should be built for on-chain | ||
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm | ||
# to make it smaller, like logging for example. | ||
on-chain-release-build = [] |
22 changes: 22 additions & 0 deletions
22
cumulus/parachains/runtimes/testing/yet-another-parachain/build.rs
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,22 @@ | ||
// Copyright (C) Parity Technologies (UK) Ltd. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#[cfg(feature = "std")] | ||
fn main() { | ||
substrate_wasm_builder::WasmBuilder::build_using_defaults(); | ||
} | ||
|
||
#[cfg(not(feature = "std"))] | ||
fn main() {} |
Oops, something went wrong.