mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 09:51:02 +00:00
Add parachains for rococo (#144)
* 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>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
// 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/>.
|
||||
|
||||
//! Rococo upward message
|
||||
|
||||
use crate::*;
|
||||
use polkadot_core_primitives::{AccountId, Balance};
|
||||
use rococo_runtime::{BalancesCall, ParachainsCall};
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
/// The Rococo upward message.
|
||||
pub type UpwardMessage = rococo_runtime::Call;
|
||||
|
||||
impl BalancesMessage<AccountId, Balance> for UpwardMessage {
|
||||
fn transfer(dest: AccountId, amount: Balance) -> Self {
|
||||
BalancesCall::transfer(dest, amount).into()
|
||||
}
|
||||
}
|
||||
|
||||
impl XCMPMessage for UpwardMessage {
|
||||
fn send_message(dest: ParaId, msg: Vec<u8>) -> Self {
|
||||
ParachainsCall::send_xcmp_message(dest, msg).into()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user