-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Omni-Node renamings #5915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
serban300
merged 6 commits into
paritytech:master
from
serban300:polkadot-parachain-renamings
Oct 8, 2024
Merged
Omni-Node renamings #5915
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
00c0dce
Omni-Node renamings
serban300 e3bf5ad
Add polkadot-omni-node binary
serban300 7ae8dd2
Add prdoc
serban300 f8c1875
Code review comment
serban300 589b5f0
Docs improvements
serban300 31dcc88
Merge branch 'master' into polkadot-parachain-renamings
serban300 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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,29 @@ | ||
| [package] | ||
| name = "polkadot-omni-node" | ||
| version = "0.1.0" | ||
| authors.workspace = true | ||
| edition.workspace = true | ||
| build = "build.rs" | ||
| description = "Generic binary that can run a parachain node with u32 block number and Aura consensus" | ||
| license = "Apache-2.0" | ||
|
|
||
| [lints] | ||
| workspace = true | ||
|
|
||
| [dependencies] | ||
| color-eyre = { workspace = true } | ||
|
|
||
| # Local | ||
| polkadot-omni-node-lib = { workspace = true } | ||
|
|
||
| [build-dependencies] | ||
| substrate-build-script-utils = { workspace = true, default-features = true } | ||
|
|
||
| [features] | ||
| default = [] | ||
| runtime-benchmarks = [ | ||
| "polkadot-omni-node-lib/runtime-benchmarks", | ||
| ] | ||
| try-runtime = [ | ||
| "polkadot-omni-node-lib/try-runtime", | ||
| ] |
This file contains hidden or 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,22 @@ | ||
| // Copyright (C) Parity Technologies (UK) Ltd. | ||
| // This file is part of Cumulus. | ||
|
|
||
| // Cumulus is free software: you can redistribute it and/or modify | ||
| // it under the terms of the GNU General Public License as published by | ||
| // the Free Software Foundation, either version 3 of the License, or | ||
| // (at your option) any later version. | ||
|
|
||
| // Cumulus is distributed in the hope that it will be useful, | ||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| // GNU General Public License for more details. | ||
|
|
||
| // You should have received a copy of the GNU General Public License | ||
| // along with Cumulus. If not, see <http://www.gnu.org/licenses/>. | ||
|
|
||
| use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed}; | ||
|
|
||
| fn main() { | ||
| generate_cargo_keys(); | ||
| rerun_if_git_head_changed(); | ||
| } |
2 changes: 1 addition & 1 deletion
2
...rachain/polkadot-parachain-lib/Cargo.toml → cumulus/polkadot-omni-node/lib/Cargo.toml
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,60 @@ | ||
| // Copyright (C) Parity Technologies (UK) Ltd. | ||
| // This file is part of Cumulus. | ||
|
|
||
| // Cumulus is free software: you can redistribute it and/or modify | ||
| // it under the terms of the GNU General Public License as published by | ||
| // the Free Software Foundation, either version 3 of the License, or | ||
| // (at your option) any later version. | ||
|
|
||
| // Cumulus is distributed in the hope that it will be useful, | ||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| // GNU General Public License for more details. | ||
|
|
||
| // You should have received a copy of the GNU General Public License | ||
| // along with Cumulus. If not, see <http://www.gnu.org/licenses/>. | ||
|
|
||
| //! Basic polkadot omni-node. | ||
| //! | ||
| //! It can be used to start a parachain node from a provided chain spec file. | ||
| //! It is only compatible with runtimes that use block number `u32` and `Aura` consensus. | ||
| //! | ||
| //! Example: `polkadot-omni-node --chain [chain_spec.json]` | ||
|
|
||
| #![warn(missing_docs)] | ||
| #![warn(unused_extern_crates)] | ||
|
|
||
| use polkadot_omni_node_lib::{ | ||
| chain_spec::DiskChainSpecLoader, run, runtime::DefaultRuntimeResolver, CliConfig as CliConfigT, | ||
| RunConfig, | ||
| }; | ||
|
|
||
| struct CliConfig; | ||
|
|
||
| impl CliConfigT for CliConfig { | ||
| fn impl_version() -> String { | ||
| env!("SUBSTRATE_CLI_IMPL_VERSION").into() | ||
| } | ||
|
|
||
| fn author() -> String { | ||
| env!("CARGO_PKG_AUTHORS").into() | ||
| } | ||
|
|
||
| fn support_url() -> String { | ||
| "https://github.com/paritytech/polkadot-sdk/issues/new".into() | ||
| } | ||
|
|
||
| fn copyright_start_year() -> u16 { | ||
| 2017 | ||
| } | ||
| } | ||
|
|
||
| fn main() -> color_eyre::eyre::Result<()> { | ||
| color_eyre::install()?; | ||
|
|
||
| let config = RunConfig { | ||
| chain_spec_loader: Box::new(DiskChainSpecLoader), | ||
| runtime_resolver: Box::new(DefaultRuntimeResolver), | ||
| }; | ||
| Ok(run::<CliConfig>(config)?) | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.