mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
Change submit transaction spec_version and transaction_version query from chain (#1248)
* The `spec_version` and `transaction_version` query from chain * fix compile * Lint * Custom spec_version and transaction_version * runtime version params struct opt * runtime version cli * cli params * Add missing types defined * fix compile * debug cli * clippy * clippy * Query spec_version and transaction_version same times * Fix vars * Wrap option * Wrap option * Try fix ci * Change follow suggestions
This commit is contained in:
@@ -77,6 +77,11 @@ macro_rules! select_full_bridge {
|
||||
#[allow(unused_imports)]
|
||||
use millau_runtime::millau_to_rialto_account_ownership_digest as account_ownership_digest;
|
||||
|
||||
#[allow(dead_code)]
|
||||
const SOURCE_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(millau_runtime::VERSION);
|
||||
#[allow(dead_code)]
|
||||
const TARGET_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(rialto_runtime::VERSION);
|
||||
|
||||
$generic
|
||||
}
|
||||
FullBridge::RialtoToMillau => {
|
||||
@@ -100,6 +105,11 @@ macro_rules! select_full_bridge {
|
||||
#[allow(unused_imports)]
|
||||
use rialto_runtime::rialto_to_millau_account_ownership_digest as account_ownership_digest;
|
||||
|
||||
#[allow(dead_code)]
|
||||
const SOURCE_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(rialto_runtime::VERSION);
|
||||
#[allow(dead_code)]
|
||||
const TARGET_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(millau_runtime::VERSION);
|
||||
|
||||
$generic
|
||||
}
|
||||
FullBridge::RococoToWococo => {
|
||||
@@ -122,6 +132,11 @@ macro_rules! select_full_bridge {
|
||||
#[allow(unused_imports)]
|
||||
use relay_rococo_client::runtime::rococo_to_wococo_account_ownership_digest as account_ownership_digest;
|
||||
|
||||
#[allow(dead_code)]
|
||||
const SOURCE_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(bp_rococo::VERSION);
|
||||
#[allow(dead_code)]
|
||||
const TARGET_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(bp_wococo::VERSION);
|
||||
|
||||
$generic
|
||||
}
|
||||
FullBridge::WococoToRococo => {
|
||||
@@ -144,6 +159,11 @@ macro_rules! select_full_bridge {
|
||||
#[allow(unused_imports)]
|
||||
use relay_wococo_client::runtime::wococo_to_rococo_account_ownership_digest as account_ownership_digest;
|
||||
|
||||
#[allow(dead_code)]
|
||||
const SOURCE_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(bp_wococo::VERSION);
|
||||
#[allow(dead_code)]
|
||||
const TARGET_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(bp_rococo::VERSION);
|
||||
|
||||
$generic
|
||||
}
|
||||
FullBridge::KusamaToPolkadot => {
|
||||
@@ -166,6 +186,11 @@ macro_rules! select_full_bridge {
|
||||
#[allow(unused_imports)]
|
||||
use relay_kusama_client::runtime::kusama_to_polkadot_account_ownership_digest as account_ownership_digest;
|
||||
|
||||
#[allow(dead_code)]
|
||||
const SOURCE_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(bp_kusama::VERSION);
|
||||
#[allow(dead_code)]
|
||||
const TARGET_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(bp_polkadot::VERSION);
|
||||
|
||||
$generic
|
||||
}
|
||||
FullBridge::PolkadotToKusama => {
|
||||
@@ -188,6 +213,11 @@ macro_rules! select_full_bridge {
|
||||
#[allow(unused_imports)]
|
||||
use relay_polkadot_client::runtime::polkadot_to_kusama_account_ownership_digest as account_ownership_digest;
|
||||
|
||||
#[allow(dead_code)]
|
||||
const SOURCE_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(bp_polkadot::VERSION);
|
||||
#[allow(dead_code)]
|
||||
const TARGET_RUNTIME_VERSION: Option<sp_version::RuntimeVersion> = Some(bp_kusama::VERSION);
|
||||
|
||||
$generic
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user