mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
Remove support for encoded-call messaging from relay and runtime integration code (#1376)
* remove support for encoded-call messaging * continue cleanup * continue cleanup * continue cleanup * more cleanpup * more cleanup * fmt * continue cleanup * spellcheck * rename * fix benchmarks * mention encoded-calls-messaging tag * fixing deployments * fix messages generation * fmt
This commit is contained in:
committed by
Bastian Köcher
parent
dc96aeea35
commit
d582061dff
@@ -27,30 +27,6 @@ use sp_runtime::FixedU128;
|
||||
/// Unchecked Kusama extrinsic.
|
||||
pub type UncheckedExtrinsic = bp_polkadot_core::UncheckedExtrinsic<Call>;
|
||||
|
||||
/// Polkadot account ownership digest from Kusama.
|
||||
///
|
||||
/// The byte vector returned by this function should be signed with a Polkadot account private key.
|
||||
/// This way, the owner of `kusama_account_id` on Kusama proves that the Polkadot account private
|
||||
/// key is also under his control.
|
||||
pub fn kusama_to_polkadot_account_ownership_digest<Call, AccountId, SpecVersion>(
|
||||
polkadot_call: &Call,
|
||||
kusama_account_id: AccountId,
|
||||
polkadot_spec_version: SpecVersion,
|
||||
) -> Vec<u8>
|
||||
where
|
||||
Call: codec::Encode,
|
||||
AccountId: codec::Encode,
|
||||
SpecVersion: codec::Encode,
|
||||
{
|
||||
pallet_bridge_dispatch::account_ownership_digest(
|
||||
polkadot_call,
|
||||
kusama_account_id,
|
||||
polkadot_spec_version,
|
||||
bp_runtime::KUSAMA_CHAIN_ID,
|
||||
bp_runtime::POLKADOT_CHAIN_ID,
|
||||
)
|
||||
}
|
||||
|
||||
/// Kusama Runtime `Call` enum.
|
||||
///
|
||||
/// The enum represents a subset of possible `Call`s we can send to Kusama chain.
|
||||
@@ -115,16 +91,7 @@ pub enum BridgePolkadotMessagesCall {
|
||||
#[codec(index = 2)]
|
||||
update_pallet_parameter(BridgePolkadotMessagesParameter),
|
||||
#[codec(index = 3)]
|
||||
send_message(
|
||||
LaneId,
|
||||
bp_message_dispatch::MessagePayload<
|
||||
bp_kusama::AccountId,
|
||||
bp_polkadot::AccountId,
|
||||
bp_polkadot::AccountPublic,
|
||||
Vec<u8>,
|
||||
>,
|
||||
bp_kusama::Balance,
|
||||
),
|
||||
send_message(LaneId, Vec<u8>, bp_kusama::Balance),
|
||||
#[codec(index = 5)]
|
||||
receive_messages_proof(
|
||||
bp_polkadot::AccountId,
|
||||
|
||||
Reference in New Issue
Block a user