mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 14:31:02 +00:00
Move generic CLI logic to different crate (#2885)
* Move generic CLI logic to separate crate * Move and rename `CliChain` trait definition Move it to `relay-substrate-client` * Move generic cli logic to substrate-relay-helper * Fix docs warnings
This commit is contained in:
committed by
Bastian Köcher
parent
bfce7a250f
commit
3643f721d4
@@ -21,8 +21,9 @@ mod codegen_runtime;
|
||||
use bp_polkadot_bulletin::POLKADOT_BULLETIN_SYNCED_HEADERS_GRANDPA_INFO_METHOD;
|
||||
use codec::Encode;
|
||||
use relay_substrate_client::{
|
||||
Chain, ChainWithBalances, ChainWithGrandpa, ChainWithMessages, ChainWithTransactions,
|
||||
Error as SubstrateError, SignParam, UnderlyingChainProvider, UnsignedTransaction,
|
||||
Chain, ChainWithBalances, ChainWithGrandpa, ChainWithMessages, ChainWithRuntimeVersion,
|
||||
ChainWithTransactions, Error as SubstrateError, SignParam, SimpleRuntimeVersion,
|
||||
UnderlyingChainProvider, UnsignedTransaction,
|
||||
};
|
||||
use sp_core::{storage::StorageKey, Pair};
|
||||
use sp_runtime::{generic::SignedPayload, traits::IdentifyAccount, MultiAddress};
|
||||
@@ -131,3 +132,8 @@ impl ChainWithTransactions for PolkadotBulletin {
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
impl ChainWithRuntimeVersion for PolkadotBulletin {
|
||||
const RUNTIME_VERSION: Option<SimpleRuntimeVersion> =
|
||||
Some(SimpleRuntimeVersion { spec_version: 100, transaction_version: 1 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user