From 578dd1e59ee44df9610c4cbde1eb96ed93500d17 Mon Sep 17 00:00:00 2001 From: Dengjianping Date: Sun, 18 Apr 2021 16:07:29 +0800 Subject: [PATCH 1/2] Rename runtime and binary name --- Cargo.lock | 220 +++++++++++++-------------- runtimes/manta-pc/Cargo.toml | 6 +- runtimes/manta-pc/runtime/Cargo.toml | 2 +- runtimes/manta-pc/runtime/src/lib.rs | 6 +- 4 files changed, 117 insertions(+), 117 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a50051231..4b6f573cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1449,47 +1449,6 @@ dependencies = [ "xcm", ] -[[package]] -name = "cumulus-test-parachain-runtime" -version = "0.1.0" -dependencies = [ - "cumulus-pallet-parachain-system", - "cumulus-pallet-xcm-handler", - "cumulus-primitives-core", - "cumulus-spambot", - "frame-executive", - "frame-support", - "frame-system", - "orml-currencies", - "orml-tokens", - "orml-traits", - "pallet-balances", - "pallet-randomness-collective-flip", - "pallet-sudo", - "pallet-timestamp", - "pallet-transaction-payment", - "parachain-info", - "parity-scale-codec", - "polkadot-parachain", - "rococo-parachain-primitives", - "serde", - "sp-api", - "sp-block-builder", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-std", - "sp-transaction-pool", - "sp-version", - "substrate-wasm-builder 3.0.0", - "xcm", - "xcm-builder", - "xcm-executor", -] - [[package]] name = "curve25519-dalek" version = "2.1.0" @@ -3985,6 +3944,116 @@ dependencies = [ "libc", ] +[[package]] +name = "manta-parachain" +version = "0.1.0" +dependencies = [ + "assert_cmd", + "cumulus-client-cli", + "cumulus-client-collator", + "cumulus-client-consensus-relay-chain", + "cumulus-client-network", + "cumulus-client-service", + "cumulus-primitives-core", + "derive_more 0.15.0", + "exit-future 0.1.4", + "futures 0.3.13", + "hex-literal 0.2.1", + "jsonrpc-core", + "log", + "manta-parachain-runtime", + "nix", + "orml-tokens", + "pallet-sudo", + "parity-scale-codec", + "parking_lot 0.9.0", + "polkadot-cli", + "polkadot-parachain", + "polkadot-primitives", + "polkadot-runtime-common", + "polkadot-service", + "polkadot-test-client", + "polkadot-test-runtime", + "polkadot-test-service", + "rand 0.7.3", + "rococo-parachain-primitives", + "sc-basic-authorship", + "sc-chain-spec", + "sc-cli", + "sc-client-api", + "sc-consensus", + "sc-executor", + "sc-finality-grandpa", + "sc-network", + "sc-rpc", + "sc-service", + "sc-telemetry", + "sc-tracing", + "sc-transaction-pool", + "serde", + "serde_json", + "sp-block-builder", + "sp-blockchain", + "sp-consensus", + "sp-core", + "sp-inherents", + "sp-io", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-timestamp", + "sp-transaction-pool", + "sp-trie", + "structopt", + "substrate-build-script-utils", + "substrate-test-client", + "substrate-test-runtime-client", + "tempfile", + "tokio 0.2.24", + "trie-root 0.15.2", +] + +[[package]] +name = "manta-parachain-runtime" +version = "0.1.0" +dependencies = [ + "cumulus-pallet-parachain-system", + "cumulus-pallet-xcm-handler", + "cumulus-primitives-core", + "cumulus-spambot", + "frame-executive", + "frame-support", + "frame-system", + "orml-currencies", + "orml-tokens", + "orml-traits", + "pallet-balances", + "pallet-randomness-collective-flip", + "pallet-sudo", + "pallet-timestamp", + "pallet-transaction-payment", + "parachain-info", + "parity-scale-codec", + "polkadot-parachain", + "rococo-parachain-primitives", + "serde", + "sp-api", + "sp-block-builder", + "sp-core", + "sp-inherents", + "sp-io", + "sp-offchain", + "sp-runtime", + "sp-session", + "sp-std", + "sp-transaction-pool", + "sp-version", + "substrate-wasm-builder 3.0.0", + "xcm", + "xcm-builder", + "xcm-executor", +] + [[package]] name = "maplit" version = "1.0.2" @@ -7400,75 +7469,6 @@ dependencies = [ "librocksdb-sys", ] -[[package]] -name = "rococo-collator" -version = "0.1.0" -dependencies = [ - "assert_cmd", - "cumulus-client-cli", - "cumulus-client-collator", - "cumulus-client-consensus-relay-chain", - "cumulus-client-network", - "cumulus-client-service", - "cumulus-primitives-core", - "cumulus-test-parachain-runtime", - "derive_more 0.15.0", - "exit-future 0.1.4", - "futures 0.3.13", - "hex-literal 0.2.1", - "jsonrpc-core", - "log", - "nix", - "orml-tokens", - "pallet-sudo", - "parity-scale-codec", - "parking_lot 0.9.0", - "polkadot-cli", - "polkadot-parachain", - "polkadot-primitives", - "polkadot-runtime-common", - "polkadot-service", - "polkadot-test-client", - "polkadot-test-runtime", - "polkadot-test-service", - "rand 0.7.3", - "rococo-parachain-primitives", - "sc-basic-authorship", - "sc-chain-spec", - "sc-cli", - "sc-client-api", - "sc-consensus", - "sc-executor", - "sc-finality-grandpa", - "sc-network", - "sc-rpc", - "sc-service", - "sc-telemetry", - "sc-tracing", - "sc-transaction-pool", - "serde", - "serde_json", - "sp-block-builder", - "sp-blockchain", - "sp-consensus", - "sp-core", - "sp-inherents", - "sp-io", - "sp-offchain", - "sp-runtime", - "sp-session", - "sp-timestamp", - "sp-transaction-pool", - "sp-trie", - "structopt", - "substrate-build-script-utils", - "substrate-test-client", - "substrate-test-runtime-client", - "tempfile", - "tokio 0.2.24", - "trie-root 0.15.2", -] - [[package]] name = "rococo-parachain-primitives" version = "0.1.0" diff --git a/runtimes/manta-pc/Cargo.toml b/runtimes/manta-pc/Cargo.toml index 02c8f9b25..daa5197bc 100644 --- a/runtimes/manta-pc/Cargo.toml +++ b/runtimes/manta-pc/Cargo.toml @@ -1,12 +1,12 @@ [package] -name = "rococo-collator" +name = "manta-parachain" version = "0.1.0" authors = ["Parity Technologies "] build = "build.rs" edition = "2018" [[bin]] -name = "rococo-collator" +name = "manta" path = "src/main.rs" [dependencies] @@ -23,7 +23,7 @@ serde_json = "1.0.64" hex-literal = "0.2.1" # Parachain dependencies -parachain-runtime = { package = "cumulus-test-parachain-runtime", path = "runtime" } +parachain-runtime = { package = "manta-parachain-runtime", path = "runtime" } rococo-parachain-primitives = { path = "primitives" } # Substrate dependencies diff --git a/runtimes/manta-pc/runtime/Cargo.toml b/runtimes/manta-pc/runtime/Cargo.toml index 4481776fa..649913557 100644 --- a/runtimes/manta-pc/runtime/Cargo.toml +++ b/runtimes/manta-pc/runtime/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = 'cumulus-test-parachain-runtime' +name = 'manta-parachain-runtime' version = '0.1.0' authors = ["Parity Technologies "] edition = '2018' diff --git a/runtimes/manta-pc/runtime/src/lib.rs b/runtimes/manta-pc/runtime/src/lib.rs index 4bc05a0a6..72ac44ede 100644 --- a/runtimes/manta-pc/runtime/src/lib.rs +++ b/runtimes/manta-pc/runtime/src/lib.rs @@ -76,10 +76,10 @@ impl_opaque_keys! { /// This runtime version. pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("cumulus-test-parachain"), - impl_name: create_runtime_str!("cumulus-test-parachain"), + spec_name: create_runtime_str!("manta"), + impl_name: create_runtime_str!("manta"), authoring_version: 1, - spec_version: 17, + spec_version: 1, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, From dd7bd4041896c81239a013924836f0805876ae55 Mon Sep 17 00:00:00 2001 From: Dengjianping Date: Mon, 19 Apr 2021 21:25:31 +0800 Subject: [PATCH 2/2] Name the binary as manta-pc --- runtimes/manta-pc/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtimes/manta-pc/Cargo.toml b/runtimes/manta-pc/Cargo.toml index daa5197bc..89602f156 100644 --- a/runtimes/manta-pc/Cargo.toml +++ b/runtimes/manta-pc/Cargo.toml @@ -6,7 +6,7 @@ build = "build.rs" edition = "2018" [[bin]] -name = "manta" +name = "manta-pc" path = "src/main.rs" [dependencies]