mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 12:07:57 +00:00
Per-things trait. (#4904)
* Give perthigns the trait it always deserved.
* Make staking and phragmen work with the new generic per_thing
* Make everything work together 🔨
* a bit of cleanup
* Clean usage
* Bump.
* Fix name
* fix grumbles
* hopefully fix the ui test
* Some grumbles
* revamp traits again
* Better naming again.
This commit is contained in:
@@ -37,15 +37,15 @@ use sp_consensus::block_import::BlockImport;
|
||||
use codec::{Decode, Encode};
|
||||
use sp_runtime::generic::BlockId;
|
||||
use sp_runtime::traits::{
|
||||
Block as BlockT, Header as HeaderT, SimpleArithmetic, One, Zero,
|
||||
Block as BlockT, Header as HeaderT, AtLeast32Bit, One, Zero,
|
||||
};
|
||||
|
||||
pub trait RuntimeAdapter {
|
||||
type AccountId: Display;
|
||||
type Balance: Display + SimpleArithmetic + From<Self::Number>;
|
||||
type Balance: Display + AtLeast32Bit + From<Self::Number>;
|
||||
type Block: BlockT;
|
||||
type Index: Copy;
|
||||
type Number: Display + PartialOrd + SimpleArithmetic + Zero + One;
|
||||
type Number: Display + PartialOrd + AtLeast32Bit + Zero + One;
|
||||
type Phase: Copy;
|
||||
type Secret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user