fix: Complete snowbridge pezpallet rebrand and critical bug fixes
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||
// This file is part of Parity Bridges Common.
|
||||
|
||||
// Parity Bridges Common 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.
|
||||
|
||||
// Parity Bridges Common 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 Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
//! Defines structures related to calls of the `pezpallet-bridge-teyrchains` pezpallet.
|
||||
|
||||
use crate::{ParaHash, ParaId, RelayBlockHash, RelayBlockNumber};
|
||||
|
||||
use bp_pezkuwi_core::teyrchains::ParaHeadsProof;
|
||||
use pezbp_runtime::HeaderId;
|
||||
use codec::{Decode, Encode};
|
||||
use scale_info::TypeInfo;
|
||||
use pezsp_runtime::RuntimeDebug;
|
||||
use pezsp_std::vec::Vec;
|
||||
|
||||
/// A minimized version of `pezpallet-bridge-teyrchains::Call` that can be used without a runtime.
|
||||
#[derive(Encode, Decode, Debug, PartialEq, Eq, Clone, TypeInfo)]
|
||||
#[allow(non_camel_case_types)]
|
||||
pub enum BridgeTeyrchainCall {
|
||||
/// `pezpallet-bridge-teyrchains::Call::submit_teyrchain_heads`
|
||||
#[codec(index = 0)]
|
||||
submit_teyrchain_heads {
|
||||
/// Relay chain block, for which we have submitted the `teyrchain_heads_proof`.
|
||||
at_relay_block: (RelayBlockNumber, RelayBlockHash),
|
||||
/// Teyrchain identifiers and their head hashes.
|
||||
teyrchains: Vec<(ParaId, ParaHash)>,
|
||||
/// Teyrchain heads proof.
|
||||
teyrchain_heads_proof: ParaHeadsProof,
|
||||
},
|
||||
}
|
||||
|
||||
/// Info about a `SubmitTeyrchainHeads` call which tries to update a single teyrchain.
|
||||
///
|
||||
/// The pezpallet supports updating multiple teyrchain heads at once,
|
||||
#[derive(PartialEq, RuntimeDebug)]
|
||||
pub struct SubmitTeyrchainHeadsInfo {
|
||||
/// Number and hash of the finalized relay block that has been used to prove teyrchain
|
||||
/// finality.
|
||||
pub at_relay_block: HeaderId<RelayBlockHash, RelayBlockNumber>,
|
||||
/// Teyrchain identifier.
|
||||
pub para_id: ParaId,
|
||||
/// Hash of the bundled teyrchain head.
|
||||
pub para_head_hash: ParaHash,
|
||||
/// If `true`, then the call must be free (assuming that everything else is valid) to
|
||||
/// be treated as valid.
|
||||
pub is_free_execution_expected: bool,
|
||||
}
|
||||
Reference in New Issue
Block a user