mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 18:41:03 +00:00
Refactor substrate messages source and substrate messages target (#1105)
* Remove redundant generic parameters from SubstrateMessagesSource * Remove redundant generic parameters from SubstrateMessagesTarget * use uniform alias naming * use aliases instead of fully quallified syntax * pr feedback
This commit is contained in:
committed by
Bastian Köcher
parent
b5240f3f18
commit
5c71f0e996
@@ -79,6 +79,11 @@ pub trait Chain: ChainBase + Clone {
|
||||
+ std::convert::TryFrom<sp_core::U256>;
|
||||
}
|
||||
|
||||
/// Balance type used by the chain
|
||||
pub type BalanceOf<C> = <C as Chain>::Balance;
|
||||
/// Index type used by the chain
|
||||
pub type IndexOf<C> = <C as Chain>::Index;
|
||||
|
||||
/// Substrate-based chain with `frame_system::Config::AccountData` set to
|
||||
/// the `pallet_balances::AccountData<Balance>`.
|
||||
pub trait ChainWithBalances: Chain {
|
||||
|
||||
Reference in New Issue
Block a user