mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 19:57:59 +00:00
6f50d0928d
* Add parachains for rococo * Fix chain specs * Update to revert log rotation * Support selecting the chain in `export-genesis-state` * Add subcommand for exporting the genesis wasm of a Parachain * Update stuff * Fix `export-genesis-wasm` * Update the polkadot ref * Add bootNodes address * Add bootNodes address - track * Add bootNodes address - trick * Fix incorrect peer id (trick) * Fixes https://github.com/paritytech/cumulus/issues/157 * Update chainspecs * Update specs again * Set correct sudo account * Update properties * Update readme * Update `Cargo.lock` * Switch to rococo-branch Co-authored-by: Evaldo <contato@evaldofelipe.com> Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com>
50 lines
1.8 KiB
Rust
50 lines
1.8 KiB
Rust
// Copyright 2020 Parity Technologies (UK) Ltd.
|
|
// This file is part of Cumulus.
|
|
|
|
// Substrate 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.
|
|
|
|
// Substrate 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/>.
|
|
|
|
//! Upward messages types and traits for Polkadot, Kusama, Rococo and Westend.
|
|
//!
|
|
//! As Cumulus needs to suits multiple Polkadot-like runtimes the upward message
|
|
//! type is different for each of them. To support all of them, Cumulus provides
|
|
//! traits to write upward message generic code.
|
|
|
|
#![cfg_attr(not(feature = "std"), no_std)]
|
|
|
|
use polkadot_parachain::primitives::Id as ParaId;
|
|
use sp_std::vec::Vec;
|
|
|
|
mod kusama;
|
|
mod polkadot;
|
|
mod rococo;
|
|
mod westend;
|
|
|
|
pub use kusama::UpwardMessage as KusamaUpwardMessage;
|
|
pub use polkadot::UpwardMessage as PolkadotUpwardMessage;
|
|
pub use rococo::UpwardMessage as RococoUpwardMessage;
|
|
pub use westend::UpwardMessage as WestendUpwardMessage;
|
|
|
|
/// A `Balances` related upward message.
|
|
pub trait BalancesMessage<AccountId, Balance>: Sized {
|
|
/// Transfer the given `amount` from the parachain account to the given
|
|
/// `dest` account.
|
|
fn transfer(dest: AccountId, amount: Balance) -> Self;
|
|
}
|
|
|
|
/// A `XCMP` related upward message.
|
|
pub trait XCMPMessage: Sized {
|
|
/// Send the given XCMP message to given parachain.
|
|
fn send_message(dest: ParaId, msg: Vec<u8>) -> Self;
|
|
}
|