difftreelog
branding
in: master
1 file changed
node/cli/src/command.rsdiffbeforeafterboth51}51}525253impl SubstrateCli for Cli {53impl SubstrateCli for Cli {54 // TODO use args54 fn impl_name() -> String {55 fn impl_name() -> String {55 "Parachain Collator Template".into()56 "Opal Node".into()56 }57 }575858 fn impl_version() -> String {59 fn impl_version() -> String {59 env!("SUBSTRATE_CLI_IMPL_VERSION").into()60 env!("SUBSTRATE_CLI_IMPL_VERSION").into()60 }61 }6162 // TODO use args62 fn description() -> String {63 fn description() -> String {63 format!(64 format!(64 "Parachain Collator Template\n\nThe command-line arguments provided first will be \65 "Opal Node\n\nThe command-line arguments provided first will be \65 passed to the parachain node, while the arguments provided after -- will be passed \66 passed to the parachain node, while the arguments provided after -- will be passed \66 to the relaychain node.\n\n\67 to the relaychain node.\n\n\67 {} [parachain-args] -- [relaychain-args]",68 {} [parachain-args] -- [relaychain-args]",68 Self::executable_name()69 Self::executable_name()69 )70 )70 }71 }73 env!("CARGO_PKG_AUTHORS").into()74 env!("CARGO_PKG_AUTHORS").into()74 }75 }757677 //TODO use args76 fn support_url() -> String {78 fn support_url() -> String {77 "https://github.com/substrate-developer-hub/substrate-parachain-template/issues/new".into()79 "mailto:support@unique.network".into()78 }80 }798180 fn copyright_start_year() -> i32 {82 fn copyright_start_year() -> i32 {81 201783 202182 }84 }838584 fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {86 fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {91}93}929493impl SubstrateCli for RelayChainCli {95impl SubstrateCli for RelayChainCli {96 // TODO use args94 fn impl_name() -> String {97 fn impl_name() -> String {95 "Parachain Collator Template".into()98 "Opal Node".into()96 }99 }9710098 fn impl_version() -> String {101 fn impl_version() -> String {99 env!("SUBSTRATE_CLI_IMPL_VERSION").into()102 env!("SUBSTRATE_CLI_IMPL_VERSION").into()100 }103 }101104 // TODO use args102 fn description() -> String {105 fn description() -> String {103 "Parachain Collator Template\n\nThe command-line arguments provided first will be \106 "Opal Node\n\nThe command-line arguments provided first will be \104 passed to the parachain node, while the arguments provided after -- will be passed \107 passed to the parachain node, while the arguments provided after -- will be passed \105 to the relaychain node.\n\n\108 to the relaychain node.\n\n\106 parachain-collator [parachain-args] -- [relaychain-args]"109 parachain-collator [parachain-args] -- [relaychain-args]"107 .into()110 .into()108 }111 }109112110 fn author() -> String {113 fn author() -> String {111 env!("CARGO_PKG_AUTHORS").into()114 env!("CARGO_PKG_AUTHORS").into()112 }115 }113116 // TODO use args114 fn support_url() -> String {117 fn support_url() -> String {115 "https://github.com/substrate-developer-hub/substrate-parachain-template/issues/new".into()118 "mailto:support@unique.network".into()116 }119 }117120118 fn copyright_start_year() -> i32 {121 fn copyright_start_year() -> i32 {119 2017122 2021120 }123 }121124122 fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {125 fn load_spec(&self, id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {