-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2649 from subspace/auto-id-domain-runtime
Domains: AutoId domain runtime
- Loading branch information
Showing
10 changed files
with
1,068 additions
and
21 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
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
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,117 @@ | ||
[package] | ||
name = "auto-id-domain-runtime" | ||
version = "0.1.0" | ||
authors = ["Vedhavyas Singareddi<[email protected]>"] | ||
license = "Apache-2.0" | ||
homepage = "https://subspace.network" | ||
repository = "https://github.com/subspace/subspace/" | ||
edition = "2021" | ||
description = "Subspace AutoId domain runtime" | ||
include = [ | ||
"/src", | ||
"/build.rs", | ||
"/Cargo.toml", | ||
] | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
codec = { package = "parity-scale-codec", version = "3.2.1", default-features = false, features = ["derive"] } | ||
domain-pallet-executive = { version = "0.1.0", path = "../../pallets/executive", default-features = false } | ||
domain-runtime-primitives = { version = "0.1.0", path = "../../primitives/runtime", default-features = false } | ||
frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
frame-support = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
frame-system = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
frame-system-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
frame-system-rpc-runtime-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
pallet-auto-id = { version = "0.1.0", path = "../../pallets/auto-id", default-features = false } | ||
pallet-balances = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
pallet-block-fees = { version = "0.1.0", path = "../../pallets/block-fees", default-features = false } | ||
pallet-domain-id = { version = "0.1.0", path = "../../pallets/domain-id", default-features = false } | ||
pallet-messenger = { version = "0.1.0", path = "../../pallets/messenger", default-features = false } | ||
pallet-sudo = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
pallet-timestamp = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
pallet-transaction-payment = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
pallet-transaction-payment-rpc-runtime-api = { default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
pallet-transporter = { version = "0.1.0", path = "../../pallets/transporter", default-features = false } | ||
scale-info = { version = "2.7.0", default-features = false, features = ["derive"] } | ||
sp-api = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-block-builder = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-core = { version = "21.0.0", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-domains = { version = "0.1.0", path = "../../../crates/sp-domains", default-features = false } | ||
sp-inherents = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-messenger = { version = "0.1.0", default-features = false, path = "../../primitives/messenger" } | ||
sp-messenger-host-functions = { version = "0.1.0", default-features = false, path = "../../primitives/messenger-host-functions" } | ||
sp-mmr-primitives = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-offchain = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-runtime = { version = "24.0.0", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-session = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-std = { version = "8.0.0", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-storage = { version = "13.0.0", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8", optional = true } | ||
sp-subspace-mmr = { version = "0.1.0", default-features = false, path = "../../../crates/sp-subspace-mmr" } | ||
sp-transaction-pool = { version = "4.0.0-dev", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
sp-version = { version = "22.0.0", default-features = false, git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8" } | ||
subspace-core-primitives = { version = "0.1.0", path = "../../../crates/subspace-core-primitives", default-features = false } | ||
subspace-runtime-primitives = { version = "0.1.0", path = "../../../crates/subspace-runtime-primitives", default-features = false } | ||
|
||
[dev-dependencies] | ||
subspace-runtime-primitives = { version = "0.1.0", features = ["testing"], path = "../../../crates/subspace-runtime-primitives" } | ||
|
||
[build-dependencies] | ||
substrate-wasm-builder = { version = "5.0.0-dev", git = "https://github.com/subspace/polkadot-sdk", rev = "d6b500960579d73c43fc4ef550b703acfa61c4c8", optional = true } | ||
|
||
[features] | ||
default = [ | ||
"std", | ||
] | ||
std = [ | ||
"codec/std", | ||
"domain-pallet-executive/std", | ||
"domain-runtime-primitives/std", | ||
"frame-benchmarking?/std", | ||
"frame-support/std", | ||
"frame-system/std", | ||
"frame-system-rpc-runtime-api/std", | ||
"pallet-auto-id/std", | ||
"pallet-balances/std", | ||
"pallet-block-fees/std", | ||
"pallet-domain-id/std", | ||
"pallet-messenger/std", | ||
"pallet-sudo/std", | ||
"pallet-timestamp/std", | ||
"pallet-transaction-payment/std", | ||
"pallet-transaction-payment-rpc-runtime-api/std", | ||
"pallet-transporter/std", | ||
"scale-info/std", | ||
"sp-api/std", | ||
"sp-block-builder/std", | ||
"sp-core/std", | ||
"sp-domains/std", | ||
"sp-inherents/std", | ||
"sp-messenger/std", | ||
"sp-messenger-host-functions/std", | ||
"sp-mmr-primitives/std", | ||
"sp-offchain/std", | ||
"sp-runtime/std", | ||
"sp-session/std", | ||
"sp-std/std", | ||
"sp-storage?/std", | ||
"sp-subspace-mmr/std", | ||
"sp-transaction-pool/std", | ||
"sp-version/std", | ||
"subspace-core-primitives/std", | ||
"subspace-runtime-primitives/std", | ||
"substrate-wasm-builder", | ||
] | ||
runtime-benchmarks = [ | ||
"domain-pallet-executive/runtime-benchmarks", | ||
"sp-runtime/runtime-benchmarks", | ||
"sp-storage", | ||
"frame-benchmarking", | ||
"frame-system-benchmarking", | ||
"frame-system-benchmarking/runtime-benchmarks", | ||
"frame-support/runtime-benchmarks", | ||
"frame-system/runtime-benchmarks", | ||
"pallet-balances/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,12 @@ | ||
fn main() { | ||
#[cfg(feature = "std")] | ||
{ | ||
// TODO: Workaround for https://github.com/paritytech/polkadot-sdk/issues/3192 | ||
std::env::set_var("CFLAGS", "-mcpu=mvp"); | ||
substrate_wasm_builder::WasmBuilder::new() | ||
.with_current_project() | ||
.export_heap_base() | ||
.import_memory() | ||
.build(); | ||
} | ||
} |
Oops, something went wrong.