mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 07:58:02 +00:00
move to substrate.io (#658)
Co-authored-by: Dan Shields <danwshields@gmail.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# 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/)
|
||||
[parachains](https://wiki.polkadot.network/docs/en/learn-parachains). Refer to the included
|
||||
[overview](docs/overview.md) for architectural details, and the
|
||||
[Cumulus workshop](https://substrate.dev/cumulus-workshop) for a hand-holding walkthrough
|
||||
of using these tools.
|
||||
[Cumulus tutorial](https://docs.substrate.io/tutorials/v3/cumulus/start-relay) for a
|
||||
guided walk-through of using these tools.
|
||||
|
||||
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
|
||||
@@ -17,11 +17,11 @@ beautiful and functional.
|
||||
## Consensus
|
||||
|
||||
[`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
|
||||
[relay chain](https://wiki.polkadot.network/docs/en/learn-architecture#relay-chain). This will run a
|
||||
Polkadot node internally, and dictate to the client and synchronization algorithms which chain to
|
||||
follow,
|
||||
[relay chain](https://wiki.polkadot.network/docs/en/learn-architecture#relay-chain). This will run
|
||||
a Polkadot node internally, and dictate to the client and synchronization algorithms which chain
|
||||
to follow,
|
||||
[finalize](https://wiki.polkadot.network/docs/en/learn-consensus#probabilistic-vs-provable-finality),
|
||||
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
|
||||
```
|
||||
|
||||
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):
|
||||
|
||||
```bash
|
||||
@@ -63,7 +63,7 @@ docker run --rm -it -w /shellhere/cumulus \
|
||||
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).
|
||||
|
||||
Once the executable is built, launch collators for each parachain (repeat once each for chain
|
||||
|
||||
@@ -4,7 +4,7 @@ version = "0.1.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/cumulus/"
|
||||
description = "pallet to manage transaction payments in assets"
|
||||
readme = "README.md"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
authors = ['Anonymous']
|
||||
description = 'Simple staking pallet with a fixed stake.'
|
||||
edition = '2018'
|
||||
homepage = 'https://substrate.dev'
|
||||
homepage = 'https://substrate.io'
|
||||
license = 'Apache-2.0'
|
||||
name = 'pallet-collator-selection'
|
||||
readme = 'README.md'
|
||||
|
||||
@@ -4,7 +4,7 @@ version = "3.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/cumulus/"
|
||||
description = "FRAME sessions pallet benchmarking for statemint"
|
||||
readme = "README.md"
|
||||
|
||||
@@ -4,7 +4,7 @@ version = "0.1.0"
|
||||
authors = ["Anonymous"]
|
||||
description = "A new Cumulus FRAME-based Substrate Node, ready for hacking together a parachain."
|
||||
license = "Unlicense"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/cumulus/"
|
||||
edition = "2018"
|
||||
build = "build.rs"
|
||||
|
||||
@@ -4,7 +4,7 @@ authors = ["Anonymous"]
|
||||
description = "FRAME pallet template for defining custom runtime logic."
|
||||
version = "0.1.0"
|
||||
license = "Unlicense"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
edition = "2018"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
/// 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:
|
||||
/// <https://substrate.dev/docs/en/knowledgebase/runtime/frame>
|
||||
/// <https://docs.substrate.io/v3/runtime/frame>
|
||||
pub use pallet::*;
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -31,15 +31,15 @@ pub mod pallet {
|
||||
pub struct Pallet<T>(_);
|
||||
|
||||
// The pallet's runtime storage items.
|
||||
// https://substrate.dev/docs/en/knowledgebase/runtime/storage
|
||||
// https://docs.substrate.io/v3/runtime/storage
|
||||
#[pallet::storage]
|
||||
#[pallet::getter(fn something)]
|
||||
// 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>;
|
||||
|
||||
// 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::generate_deposit(pub(super) fn deposit_event)]
|
||||
pub enum Event<T: Config> {
|
||||
@@ -71,7 +71,7 @@ pub mod pallet {
|
||||
pub fn do_something(origin: OriginFor<T>, something: u32) -> DispatchResultWithPostInfo {
|
||||
// Check that the extrinsic was signed and get the signer.
|
||||
// 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)?;
|
||||
|
||||
// Update storage.
|
||||
|
||||
@@ -4,7 +4,7 @@ version = "0.1.0"
|
||||
authors = ["Anonymous"]
|
||||
description = "A new Cumulus FRAME-based Substrate Runtime, ready for hacking together a parachain."
|
||||
license = "Unlicense"
|
||||
homepage = "https://substrate.dev"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/cumulus/"
|
||||
edition = "2018"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user