mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +00:00
BHK/P alignments (#2115)
* Constants * Unused import? * Cargo.lock * Unused deps * TODO: fix doc or reimport? * Try to aviod redefine para_id constant for `RefundableParachainId` * Checked and removed TODOs
This commit is contained in:
committed by
Bastian Köcher
parent
d479232c34
commit
7188765244
@@ -26,7 +26,6 @@ impl CliChain for Kusama {
|
||||
}
|
||||
|
||||
impl CliChain for BridgeHubKusama {
|
||||
// TODO: fix me (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
|
||||
Some(SimpleRuntimeVersion { spec_version: 4242, transaction_version: 42 });
|
||||
Some(SimpleRuntimeVersion { spec_version: 9410, transaction_version: 21 });
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ impl CliChain for Polkadot {
|
||||
}
|
||||
|
||||
impl CliChain for BridgeHubPolkadot {
|
||||
// TODO: fix me (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
|
||||
Some(SimpleRuntimeVersion { spec_version: 4242, transaction_version: 42 });
|
||||
Some(SimpleRuntimeVersion { spec_version: 9410, transaction_version: 22 });
|
||||
}
|
||||
|
||||
@@ -54,16 +54,13 @@ pub enum Call {
|
||||
Utility(UtilityCall<Call>),
|
||||
|
||||
/// Polkadot bridge pallet.
|
||||
// TODO: the index is wrong (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
#[codec(index = 41)]
|
||||
#[codec(index = 51)]
|
||||
BridgePolkadotGrandpa(BridgePolkadotGrandpaCall),
|
||||
/// Polkadot parachain bridge pallet.
|
||||
// TODO: the index is wrong (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
#[codec(index = 42)]
|
||||
#[codec(index = 52)]
|
||||
BridgePolkadotParachain(BridgeParachainCall),
|
||||
/// Polkadot messages bridge pallet.
|
||||
// TODO: the index is wrong (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
#[codec(index = 46)]
|
||||
#[codec(index = 53)]
|
||||
BridgePolkadotMessages(BridgePolkadotMessagesCall),
|
||||
}
|
||||
|
||||
|
||||
@@ -53,16 +53,13 @@ pub enum Call {
|
||||
Utility(UtilityCall<Call>),
|
||||
|
||||
/// Kusama bridge pallet.
|
||||
// TODO: the index is wrong (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
#[codec(index = 43)]
|
||||
#[codec(index = 51)]
|
||||
BridgeKusamaGrandpa(BridgeKusamaGrandpaCall),
|
||||
/// Kusama parachain bridge pallet.
|
||||
// TODO: the index is wrong (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
#[codec(index = 44)]
|
||||
#[codec(index = 52)]
|
||||
BridgeKusamaParachain(BridgeParachainCall),
|
||||
/// Kusama messages bridge pallet.
|
||||
// TODO: the index is wrong (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
#[codec(index = 45)]
|
||||
#[codec(index = 53)]
|
||||
BridgeKusamaMessages(BridgeKusamaMessagesCall),
|
||||
}
|
||||
|
||||
@@ -114,6 +111,6 @@ mod tests {
|
||||
|
||||
// encode call as hex string
|
||||
let hex_encoded_call = format!("0x{:?}", HexDisplay::from(&Encode::encode(&tx)));
|
||||
assert_eq!(hex_encoded_call, "0x2b01ae4a25acf250d72ed02c149ecc7dd3c9ee976d41a2888fc551de8064521dc01d2d0192b965f0656a4e0e5fc0167da2d4b5ee72b3be2c1583c4c1e5236c8c12aa141bd2c0afaab32de0cb8f7f0d89217e37c5ea302c1ffb5a7a83e10d20f12c32874d0000060000000000000000");
|
||||
assert_eq!(hex_encoded_call, "0x3301ae4a25acf250d72ed02c149ecc7dd3c9ee976d41a2888fc551de8064521dc01d2d0192b965f0656a4e0e5fc0167da2d4b5ee72b3be2c1583c4c1e5236c8c12aa141bd2c0afaab32de0cb8f7f0d89217e37c5ea302c1ffb5a7a83e10d20f12c32874d0000060000000000000000");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,6 +55,5 @@ impl ChainWithBalances for Kusama {
|
||||
|
||||
impl RelayChain for Kusama {
|
||||
const PARAS_PALLET_NAME: &'static str = bp_kusama::PARAS_PALLET_NAME;
|
||||
// TODO: check me (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
const PARACHAINS_FINALITY_PALLET_NAME: &'static str = "BridgeKusamaParachain";
|
||||
}
|
||||
|
||||
@@ -55,6 +55,5 @@ impl ChainWithBalances for Polkadot {
|
||||
|
||||
impl RelayChain for Polkadot {
|
||||
const PARAS_PALLET_NAME: &'static str = bp_polkadot::PARAS_PALLET_NAME;
|
||||
// TODO: check me (https://github.com/paritytech/parity-bridges-common/issues/1945)
|
||||
const PARACHAINS_FINALITY_PALLET_NAME: &'static str = "BridgePolkadotParachain";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user