mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
move to substrate.io (#658)
Co-authored-by: Dan Shields <danwshields@gmail.com>
This commit is contained in:
+7
-7
@@ -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.
|
||||||
|
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user