mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 09:07:57 +00:00
4c810609d6
The first step towards https://github.com/paritytech/polkadot-sdk/issues/3155 Brings all templates under the following structure ``` templates | parachain | | polkadot-launch | | runtime --> parachain-template-runtime | | pallets --> pallet-parachain-template | | node --> parachain-template-node | minimal | | runtime --> minimal-template-runtime | | pallets --> pallet-minimal-template | | node --> minimal-template-node | solochain | | runtime --> solochain-template-runtime | | pallets --> pallet-template (the naming is not consistent here) | | node --> solochain-template-node ``` The only note-worthy changes in this PR are: - More `Cargo.toml` fields are forwarded to use the one from the workspace. - parachain template now has weights and benchmarks - adds a shell pallet to the minimal template - remove a few unused deps A list of possible follow-ups: - [ ] Unify READMEs, create a parent README for all - [ ] remove references to `docs.substrate.io` in templates - [ ] make all templates use `#[derive_impl]` - [ ] update and unify all licenses - [ ] Remove polkadot launch, use https://github.com/paritytech/polkadot-sdk/blob/35349df993ea2e7c4769914ef5d199e787b23d4c/cumulus/zombienet/examples/small_network.toml instead.
153 lines
5.4 KiB
TOML
153 lines
5.4 KiB
TOML
[package]
|
|
name = "solochain-template-runtime"
|
|
description = "A solochain runtime template built with Substrate, part of Polkadot Sdk."
|
|
version = "0.0.0"
|
|
license = "MIT-0"
|
|
authors.workspace = true
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
edition.workspace = true
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = [
|
|
"derive",
|
|
] }
|
|
scale-info = { version = "2.10.0", default-features = false, features = [
|
|
"derive",
|
|
"serde",
|
|
] }
|
|
|
|
# frame
|
|
frame-support = { path = "../../../substrate/frame/support", default-features = false }
|
|
frame-system = { path = "../../../substrate/frame/system", default-features = false }
|
|
frame-try-runtime = { path = "../../../substrate/frame/try-runtime", default-features = false, optional = true }
|
|
frame-executive = { path = "../../../substrate/frame/executive", default-features = false }
|
|
|
|
# frame pallets
|
|
pallet-aura = { path = "../../../substrate/frame/aura", default-features = false }
|
|
pallet-balances = { path = "../../../substrate/frame/balances", default-features = false }
|
|
pallet-grandpa = { path = "../../../substrate/frame/grandpa", default-features = false }
|
|
pallet-sudo = { path = "../../../substrate/frame/sudo", default-features = false }
|
|
pallet-timestamp = { path = "../../../substrate/frame/timestamp", default-features = false }
|
|
pallet-transaction-payment = { path = "../../../substrate/frame/transaction-payment", default-features = false }
|
|
|
|
# primitives
|
|
sp-api = { path = "../../../substrate/primitives/api", default-features = false }
|
|
sp-block-builder = { path = "../../../substrate/primitives/block-builder", default-features = false }
|
|
sp-consensus-aura = { path = "../../../substrate/primitives/consensus/aura", default-features = false, features = [
|
|
"serde",
|
|
] }
|
|
sp-consensus-grandpa = { path = "../../../substrate/primitives/consensus/grandpa", default-features = false, features = [
|
|
"serde",
|
|
] }
|
|
sp-core = { path = "../../../substrate/primitives/core", default-features = false, features = [
|
|
"serde",
|
|
] }
|
|
sp-inherents = { path = "../../../substrate/primitives/inherents", default-features = false }
|
|
sp-offchain = { path = "../../../substrate/primitives/offchain", default-features = false }
|
|
sp-runtime = { path = "../../../substrate/primitives/runtime", default-features = false, features = [
|
|
"serde",
|
|
] }
|
|
sp-session = { path = "../../../substrate/primitives/session", default-features = false }
|
|
sp-std = { path = "../../../substrate/primitives/std", default-features = false }
|
|
sp-storage = { path = "../../../substrate/primitives/storage", default-features = false }
|
|
sp-transaction-pool = { path = "../../../substrate/primitives/transaction-pool", default-features = false }
|
|
sp-version = { path = "../../../substrate/primitives/version", default-features = false, features = [
|
|
"serde",
|
|
] }
|
|
sp-genesis-builder = { default-features = false, path = "../../../substrate/primitives/genesis-builder" }
|
|
|
|
# RPC related
|
|
frame-system-rpc-runtime-api = { path = "../../../substrate/frame/system/rpc/runtime-api", default-features = false }
|
|
pallet-transaction-payment-rpc-runtime-api = { path = "../../../substrate/frame/transaction-payment/rpc/runtime-api", default-features = false }
|
|
|
|
# Used for runtime benchmarking
|
|
frame-benchmarking = { path = "../../../substrate/frame/benchmarking", default-features = false, optional = true }
|
|
frame-system-benchmarking = { path = "../../../substrate/frame/system/benchmarking", default-features = false, optional = true }
|
|
|
|
# The pallet in this template.
|
|
pallet-template = { path = "../pallets/template", default-features = false }
|
|
|
|
[build-dependencies]
|
|
substrate-wasm-builder = { path = "../../../substrate/utils/wasm-builder", optional = true }
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"codec/std",
|
|
"scale-info/std",
|
|
|
|
"frame-executive/std",
|
|
"frame-support/std",
|
|
"frame-system-benchmarking?/std",
|
|
"frame-system-rpc-runtime-api/std",
|
|
"frame-system/std",
|
|
|
|
"frame-benchmarking?/std",
|
|
"frame-try-runtime?/std",
|
|
|
|
"pallet-aura/std",
|
|
"pallet-balances/std",
|
|
"pallet-grandpa/std",
|
|
"pallet-sudo/std",
|
|
"pallet-template/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
|
"pallet-transaction-payment/std",
|
|
|
|
"sp-api/std",
|
|
"sp-block-builder/std",
|
|
"sp-consensus-aura/std",
|
|
"sp-consensus-grandpa/std",
|
|
"sp-core/std",
|
|
"sp-genesis-builder/std",
|
|
"sp-inherents/std",
|
|
"sp-offchain/std",
|
|
"sp-runtime/std",
|
|
"sp-session/std",
|
|
"sp-std/std",
|
|
"sp-storage/std",
|
|
"sp-transaction-pool/std",
|
|
"sp-version/std",
|
|
|
|
"substrate-wasm-builder",
|
|
]
|
|
|
|
runtime-benchmarks = [
|
|
"frame-benchmarking/runtime-benchmarks",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system-benchmarking/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
"pallet-balances/runtime-benchmarks",
|
|
"pallet-grandpa/runtime-benchmarks",
|
|
"pallet-sudo/runtime-benchmarks",
|
|
"pallet-template/runtime-benchmarks",
|
|
"pallet-timestamp/runtime-benchmarks",
|
|
"pallet-transaction-payment/runtime-benchmarks",
|
|
"sp-runtime/runtime-benchmarks",
|
|
]
|
|
|
|
try-runtime = [
|
|
"frame-executive/try-runtime",
|
|
"frame-support/try-runtime",
|
|
"frame-system/try-runtime",
|
|
"frame-try-runtime/try-runtime",
|
|
"pallet-aura/try-runtime",
|
|
"pallet-balances/try-runtime",
|
|
"pallet-grandpa/try-runtime",
|
|
"pallet-sudo/try-runtime",
|
|
"pallet-template/try-runtime",
|
|
"pallet-timestamp/try-runtime",
|
|
"pallet-transaction-payment/try-runtime",
|
|
"sp-runtime/try-runtime",
|
|
]
|
|
|
|
experimental = ["pallet-aura/experimental"]
|