mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 01:41:03 +00:00
Move Chain trait to runtime primitives (#403)
* extract ChainBase to bp-runtime * post-merge fixes * cargo fmt --all * compilation fixes * reexport BlockNumberOf, HashOf, HeaderOf
This commit is contained in:
committed by
Bastian Köcher
parent
ddeb59d336
commit
9e9ac8df3c
@@ -18,7 +18,7 @@
|
||||
|
||||
use codec::Encode;
|
||||
use headers_relay::sync_types::SourceHeader;
|
||||
use relay_substrate_client::{Chain, Client, TransactionSignScheme};
|
||||
use relay_substrate_client::{Chain, ChainBase, Client, TransactionSignScheme};
|
||||
use sp_core::Pair;
|
||||
use sp_runtime::{
|
||||
generic::SignedPayload,
|
||||
@@ -32,10 +32,14 @@ pub type HeaderId = relay_utils::HeaderId<rialto_runtime::Hash, rialto_runtime::
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub struct Rialto;
|
||||
|
||||
impl Chain for Rialto {
|
||||
impl ChainBase for Rialto {
|
||||
type BlockNumber = rialto_runtime::BlockNumber;
|
||||
type Hash = rialto_runtime::Hash;
|
||||
type Hasher = rialto_runtime::Hashing;
|
||||
type Header = rialto_runtime::Header;
|
||||
}
|
||||
|
||||
impl Chain for Rialto {
|
||||
type AccountId = rialto_runtime::AccountId;
|
||||
type Index = rialto_runtime::Index;
|
||||
type SignedBlock = rialto_runtime::SignedBlock;
|
||||
|
||||
Reference in New Issue
Block a user