difftreelog
Adjust node name according to used runtime
in: master
4 files changed
node/cli/src/command.rsdiffbeforeafterboth79impl SubstrateCli for Cli {79impl SubstrateCli for Cli {80 // TODO use args80 // TODO use args81 fn impl_name() -> String {81 fn impl_name() -> String {82 "Opal Node".into()82 format!("{} Node", runtime::RUNTIME_NAME)83 }83 }848485 fn impl_version() -> String {85 fn impl_version() -> String {88 // TODO use args88 // TODO use args89 fn description() -> String {89 fn description() -> String {90 format!(90 format!(91 "Opal Node\n\nThe command-line arguments provided first will be \91 "{} Node\n\nThe command-line arguments provided first will be \92 passed to the parachain node, while the arguments provided after -- will be passed \92 passed to the parachain node, while the arguments provided after -- will be passed \93 to the relaychain node.\n\n\93 to the relaychain node.\n\n\94 {} [parachain-args] -- [relaychain-args]",94 {} [parachain-args] -- [relaychain-args]",95 runtime::RUNTIME_NAME,95 Self::executable_name()96 Self::executable_name()96 )97 )97 }98 }121impl SubstrateCli for RelayChainCli {122impl SubstrateCli for RelayChainCli {122 // TODO use args123 // TODO use args123 fn impl_name() -> String {124 fn impl_name() -> String {124 "Opal Node".into()125 format!("{} Node", runtime::RUNTIME_NAME)125 }126 }126127127 fn impl_version() -> String {128 fn impl_version() -> String {128 env!("SUBSTRATE_CLI_IMPL_VERSION").into()129 env!("SUBSTRATE_CLI_IMPL_VERSION").into()129 }130 }130 // TODO use args131 // TODO use args131 fn description() -> String {132 fn description() -> String {132 "Opal Node\n\nThe command-line arguments provided first will be \133 passed to the parachain node, while the arguments provided after -- will be passed \134 to the relaychain node.\n\n\135 parachain-collator [parachain-args] -- [relaychain-args]"136 .into()133 format!(134 "{} Node\n\nThe command-line arguments provided first will be \135 passed to the parachain node, while the arguments provided after -- will be passed \136 to the relaychain node.\n\n\137 parachain-collator [parachain-args] -- [relaychain-args]",138 runtime::RUNTIME_NAME139 )137 }140 }138141runtime/opal/src/lib.rsdiffbeforeafterboth123// mod chain_extension;123// mod chain_extension;124// use crate::chain_extension::{NFTExtension, Imbalance};124// use crate::chain_extension::{NFTExtension, Imbalance};125126pub const RUNTIME_NAME: &'static str = "Opal";125127126pub type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;128pub type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;127129runtime/quartz/src/lib.rsdiffbeforeafterboth111// mod chain_extension;111// mod chain_extension;112// use crate::chain_extension::{NFTExtension, Imbalance};112// use crate::chain_extension::{NFTExtension, Imbalance};113114pub const RUNTIME_NAME: &'static str = "Quartz";113115114pub type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;116pub type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;115117runtime/unique/src/lib.rsdiffbeforeafterboth111// mod chain_extension;111// mod chain_extension;112// use crate::chain_extension::{NFTExtension, Imbalance};112// use crate::chain_extension::{NFTExtension, Imbalance};113114pub const RUNTIME_NAME: &'static str = "Unique";113115114pub type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;116pub type CrossAccountId = pallet_common::account::BasicCrossAccountId<Runtime>;115117