move to substrate.io (#658)

Co-authored-by: Dan Shields <danwshields@gmail.com>
This commit is contained in:
Dan Shields
2021-10-14 01:56:03 -06:00
committed by GitHub
parent 3b3f9dca1d
commit ba94a684c7
8 changed files with 20 additions and 20 deletions
+9 -9
View File
@@ -1,11 +1,11 @@
# Cumulus :cloud: # Cumulus :cloud:
A set of tools for writing [Substrate](https://substrate.dev/)-based A set of tools for writing [Substrate](https://substrate.io/)-based
[Polkadot](https://wiki.polkadot.network/en/) [Polkadot](https://wiki.polkadot.network/en/)
[parachains](https://wiki.polkadot.network/docs/en/learn-parachains). Refer to the included [parachains](https://wiki.polkadot.network/docs/en/learn-parachains). Refer to the included
[overview](docs/overview.md) for architectural details, and the [overview](docs/overview.md) for architectural details, and the
[Cumulus workshop](https://substrate.dev/cumulus-workshop) for a hand-holding walkthrough [Cumulus tutorial](https://docs.substrate.io/tutorials/v3/cumulus/start-relay) for a
of using these tools. guided walk-through of using these tools.
It's easy to write blockchains using Substrate, and the overhead of writing parachains' It's easy to write blockchains using Substrate, and the overhead of writing parachains'
distribution, p2p, database, and synchronization layers should be just as low. This project aims to distribution, p2p, database, and synchronization layers should be just as low. This project aims to
@@ -17,11 +17,11 @@ beautiful and functional.
## Consensus ## Consensus
[`cumulus-consensus`](consensus) is a [`cumulus-consensus`](consensus) is a
[consensus engine](https://substrate.dev/docs/en/knowledgebase/advanced/consensus) for Substrate [consensus engine](https://docs.substrate.io/v3/advanced/consensus) for Substrate
that follows a Polkadot that follows a Polkadot
[relay chain](https://wiki.polkadot.network/docs/en/learn-architecture#relay-chain). This will run a [relay chain](https://wiki.polkadot.network/docs/en/learn-architecture#relay-chain). This will run
Polkadot node internally, and dictate to the client and synchronization algorithms which chain to a Polkadot node internally, and dictate to the client and synchronization algorithms which chain
follow, to follow,
[finalize](https://wiki.polkadot.network/docs/en/learn-consensus#probabilistic-vs-provable-finality), [finalize](https://wiki.polkadot.network/docs/en/learn-consensus#probabilistic-vs-provable-finality),
and treat as best. and treat as best.
@@ -53,7 +53,7 @@ To run a Rococo collator you will need to compile the following binary:
cargo build --release --locked -p polkadot-collator cargo build --release --locked -p polkadot-collator
``` ```
Otherwise you can compile it with Otherwise you can compile it with
[Parity CI docker image](https://github.com/paritytech/scripts/tree/master/dockerfiles/ci-linux): [Parity CI docker image](https://github.com/paritytech/scripts/tree/master/dockerfiles/ci-linux):
```bash ```bash
@@ -63,7 +63,7 @@ docker run --rm -it -w /shellhere/cumulus \
sudo chown -R $(id -u):$(id -g) target/ sudo chown -R $(id -u):$(id -g) target/
``` ```
If you want to reproduce other steps of CI process you can use the following If you want to reproduce other steps of CI process you can use the following
[guide](https://github.com/paritytech/scripts#gitlab-ci-for-building-docker-images). [guide](https://github.com/paritytech/scripts#gitlab-ci-for-building-docker-images).
Once the executable is built, launch collators for each parachain (repeat once each for chain Once the executable is built, launch collators for each parachain (repeat once each for chain
+1 -1
View File
@@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018" edition = "2018"
license = "Apache-2.0" license = "Apache-2.0"
homepage = "https://substrate.dev" homepage = "https://substrate.io"
repository = "https://github.com/paritytech/cumulus/" repository = "https://github.com/paritytech/cumulus/"
description = "pallet to manage transaction payments in assets" description = "pallet to manage transaction payments in assets"
readme = "README.md" readme = "README.md"
@@ -2,7 +2,7 @@
authors = ['Anonymous'] authors = ['Anonymous']
description = 'Simple staking pallet with a fixed stake.' description = 'Simple staking pallet with a fixed stake.'
edition = '2018' edition = '2018'
homepage = 'https://substrate.dev' homepage = 'https://substrate.io'
license = 'Apache-2.0' license = 'Apache-2.0'
name = 'pallet-collator-selection' name = 'pallet-collator-selection'
readme = 'README.md' readme = 'README.md'
@@ -4,7 +4,7 @@ version = "3.0.0"
authors = ["Parity Technologies <admin@parity.io>"] authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018" edition = "2018"
license = "Apache-2.0" license = "Apache-2.0"
homepage = "https://substrate.dev" homepage = "https://substrate.io"
repository = "https://github.com/paritytech/cumulus/" repository = "https://github.com/paritytech/cumulus/"
description = "FRAME sessions pallet benchmarking for statemint" description = "FRAME sessions pallet benchmarking for statemint"
readme = "README.md" readme = "README.md"
+1 -1
View File
@@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Anonymous"] authors = ["Anonymous"]
description = "A new Cumulus FRAME-based Substrate Node, ready for hacking together a parachain." description = "A new Cumulus FRAME-based Substrate Node, ready for hacking together a parachain."
license = "Unlicense" license = "Unlicense"
homepage = "https://substrate.dev" homepage = "https://substrate.io"
repository = "https://github.com/paritytech/cumulus/" repository = "https://github.com/paritytech/cumulus/"
edition = "2018" edition = "2018"
build = "build.rs" build = "build.rs"
@@ -4,7 +4,7 @@ authors = ["Anonymous"]
description = "FRAME pallet template for defining custom runtime logic." description = "FRAME pallet template for defining custom runtime logic."
version = "0.1.0" version = "0.1.0"
license = "Unlicense" license = "Unlicense"
homepage = "https://substrate.dev" homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/" repository = "https://github.com/paritytech/substrate/"
edition = "2018" edition = "2018"
@@ -2,7 +2,7 @@
/// Edit this file to define custom logic or remove it if it is not needed. /// Edit this file to define custom logic or remove it if it is not needed.
/// Learn more about FRAME and the core library of Substrate FRAME pallets: /// Learn more about FRAME and the core library of Substrate FRAME pallets:
/// <https://substrate.dev/docs/en/knowledgebase/runtime/frame> /// <https://docs.substrate.io/v3/runtime/frame>
pub use pallet::*; pub use pallet::*;
#[cfg(test)] #[cfg(test)]
@@ -31,15 +31,15 @@ pub mod pallet {
pub struct Pallet<T>(_); pub struct Pallet<T>(_);
// The pallet's runtime storage items. // The pallet's runtime storage items.
// https://substrate.dev/docs/en/knowledgebase/runtime/storage // https://docs.substrate.io/v3/runtime/storage
#[pallet::storage] #[pallet::storage]
#[pallet::getter(fn something)] #[pallet::getter(fn something)]
// Learn more about declaring storage items: // Learn more about declaring storage items:
// https://substrate.dev/docs/en/knowledgebase/runtime/storage#declaring-storage-items // https://docs.substrate.io/v3/runtime/storage#declaring-storage-items
pub type Something<T> = StorageValue<_, u32>; pub type Something<T> = StorageValue<_, u32>;
// Pallets use events to inform users when important changes are made. // Pallets use events to inform users when important changes are made.
// https://substrate.dev/docs/en/knowledgebase/runtime/events // https://docs.substrate.io/v3/runtime/events-and-errors
#[pallet::event] #[pallet::event]
#[pallet::generate_deposit(pub(super) fn deposit_event)] #[pallet::generate_deposit(pub(super) fn deposit_event)]
pub enum Event<T: Config> { pub enum Event<T: Config> {
@@ -71,7 +71,7 @@ pub mod pallet {
pub fn do_something(origin: OriginFor<T>, something: u32) -> DispatchResultWithPostInfo { pub fn do_something(origin: OriginFor<T>, something: u32) -> DispatchResultWithPostInfo {
// Check that the extrinsic was signed and get the signer. // Check that the extrinsic was signed and get the signer.
// This function will return an error if the extrinsic is not signed. // This function will return an error if the extrinsic is not signed.
// https://substrate.dev/docs/en/knowledgebase/runtime/origin // https://docs.substrate.io/v3/runtime/origins
let who = ensure_signed(origin)?; let who = ensure_signed(origin)?;
// Update storage. // Update storage.
@@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Anonymous"] authors = ["Anonymous"]
description = "A new Cumulus FRAME-based Substrate Runtime, ready for hacking together a parachain." description = "A new Cumulus FRAME-based Substrate Runtime, ready for hacking together a parachain."
license = "Unlicense" license = "Unlicense"
homepage = "https://substrate.dev" homepage = "https://substrate.io"
repository = "https://github.com/paritytech/cumulus/" repository = "https://github.com/paritytech/cumulus/"
edition = "2018" edition = "2018"