git.delta.rocks / unique-network / refs/commits / 177cb4a9d284

difftreelog

branding

Igor Kozyrev2021-09-20parent: #41ee046.patch.diff
in: master

1 file changed

modifiednode/cli/src/command.rsdiffbeforeafterboth
51}51}
5252
53impl SubstrateCli for Cli {53impl SubstrateCli for Cli {
54 // TODO use args
54 fn impl_name() -> String {55 fn impl_name() -> String {
55 "Parachain Collator Template".into()56 "Opal Node".into()
56 }57 }
5758
58 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 args
62 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 }
7576
77 //TODO use args
76 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 }
7981
80 fn copyright_start_year() -> i32 {82 fn copyright_start_year() -> i32 {
81 201783 2021
82 }84 }
8385
84 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}
9294
93impl SubstrateCli for RelayChainCli {95impl SubstrateCli for RelayChainCli {
96 // TODO use args
94 fn impl_name() -> String {97 fn impl_name() -> String {
95 "Parachain Collator Template".into()98 "Opal Node".into()
96 }99 }
97100
98 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 args
102 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 }
109112
110 fn author() -> String {113 fn author() -> String {
111 env!("CARGO_PKG_AUTHORS").into()114 env!("CARGO_PKG_AUTHORS").into()
112 }115 }
113116 // TODO use args
114 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 }
117120
118 fn copyright_start_year() -> i32 {121 fn copyright_start_year() -> i32 {
119 2017122 2021
120 }123 }
121124
122 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> {