mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
Remove Westend<>Rococo header sync (#940)
* Remove scripts for Westend<>Rococo header sync * Remove Westend<>Rococo header sync code * Remove Westend<>Rococo init bridge CLI option * Modify Westend mock call to be placeholder * Fix call encoding test
This commit is contained in:
committed by
Bastian Köcher
parent
ebf9ae7546
commit
76625ed180
@@ -55,14 +55,14 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||
/// See: https://github.com/paritytech/polkadot/blob/master/runtime/rococo/src/lib.rs
|
||||
#[derive(parity_scale_codec::Encode, parity_scale_codec::Decode, Debug, PartialEq, Eq, Clone)]
|
||||
pub enum Call {
|
||||
/// Westend bridge pallet.
|
||||
/// Generic bridge pallet.
|
||||
#[codec(index = 40)]
|
||||
BridgeGrandpaWestend(BridgeGrandpaWestendCall),
|
||||
BridgeCall(BridgeGrandpaCall),
|
||||
}
|
||||
|
||||
#[derive(parity_scale_codec::Encode, parity_scale_codec::Decode, Debug, PartialEq, Eq, Clone)]
|
||||
#[allow(non_camel_case_types)]
|
||||
pub enum BridgeGrandpaWestendCall {
|
||||
pub enum BridgeGrandpaCall {
|
||||
#[codec(index = 0)]
|
||||
submit_finality_proof(
|
||||
<PolkadotLike as Chain>::Header,
|
||||
@@ -83,13 +83,6 @@ impl sp_runtime::traits::Dispatchable for Call {
|
||||
}
|
||||
}
|
||||
|
||||
// We use this to get the account on Rococo (target) which is derived from Westend's (source)
|
||||
// account.
|
||||
pub fn derive_account_from_westend_id(id: bp_runtime::SourceAccount<AccountId>) -> AccountId {
|
||||
let encoded_id = bp_runtime::derive_account_id(bp_runtime::WESTEND_BRIDGE_INSTANCE, id);
|
||||
AccountIdConverter::convert(encoded_id)
|
||||
}
|
||||
|
||||
/// Name of the `RococoFinalityApi::best_finalized` runtime method.
|
||||
pub const BEST_FINALIZED_ROCOCO_HEADER_METHOD: &str = "RococoFinalityApi_best_finalized";
|
||||
/// Name of the `RococoFinalityApi::is_known_header` runtime method.
|
||||
|
||||
Reference in New Issue
Block a user