mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +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>
38 lines
1.3 KiB
Rust
38 lines
1.3 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/>.
|
|
|
|
//! Westend upward message
|
|
|
|
use crate::*;
|
|
use polkadot_core_primitives::{AccountId, Balance};
|
|
use sp_std::vec::Vec;
|
|
use westend_runtime::{BalancesCall, ParachainsCall};
|
|
|
|
/// The Westend upward message.
|
|
pub type UpwardMessage = westend_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()
|
|
}
|
|
}
|