mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 01:51:02 +00:00
code cleanup (#2206)
This commit is contained in:
@@ -129,7 +129,7 @@ impl session::Trait for Runtime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl staking::Trait for Runtime {
|
impl staking::Trait for Runtime {
|
||||||
type Currency = balances::Module<Self>;
|
type Currency = Balances;
|
||||||
type CurrencyToVote = CurrencyToVoteHandler;
|
type CurrencyToVote = CurrencyToVoteHandler;
|
||||||
type OnRewardMinted = Treasury;
|
type OnRewardMinted = Treasury;
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
@@ -138,7 +138,7 @@ impl staking::Trait for Runtime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl democracy::Trait for Runtime {
|
impl democracy::Trait for Runtime {
|
||||||
type Currency = balances::Module<Self>;
|
type Currency = Balances;
|
||||||
type Proposal = Call;
|
type Proposal = Call;
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
}
|
}
|
||||||
@@ -160,7 +160,7 @@ impl council::motions::Trait for Runtime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl treasury::Trait for Runtime {
|
impl treasury::Trait for Runtime {
|
||||||
type Currency = balances::Module<Self>;
|
type Currency = Balances;
|
||||||
type ApproveOrigin = council_motions::EnsureMembers<_4>;
|
type ApproveOrigin = council_motions::EnsureMembers<_4>;
|
||||||
type RejectOrigin = council_motions::EnsureMembers<_2>;
|
type RejectOrigin = council_motions::EnsureMembers<_2>;
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
@@ -169,7 +169,7 @@ impl treasury::Trait for Runtime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl contract::Trait for Runtime {
|
impl contract::Trait for Runtime {
|
||||||
type Currency = balances::Module<Runtime>;
|
type Currency = Balances;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type Gas = u64;
|
type Gas = u64;
|
||||||
|
|||||||
@@ -413,9 +413,7 @@ type NegativeImbalanceOf<T> = <<T as Trait>::Currency as Currency<<T as system::
|
|||||||
|
|
||||||
pub trait Trait: system::Trait + session::Trait {
|
pub trait Trait: system::Trait + session::Trait {
|
||||||
/// The staking balance.
|
/// The staking balance.
|
||||||
type Currency:
|
type Currency: LockableCurrency<Self::AccountId, Moment=Self::BlockNumber>;
|
||||||
Currency<Self::AccountId> +
|
|
||||||
LockableCurrency<Self::AccountId, Moment=Self::BlockNumber>;
|
|
||||||
|
|
||||||
/// Convert a balance into a number used for election calculation.
|
/// Convert a balance into a number used for election calculation.
|
||||||
/// This must fit into a `u64` but is allowed to be sensibly lossy.
|
/// This must fit into a `u64` but is allowed to be sensibly lossy.
|
||||||
|
|||||||
Reference in New Issue
Block a user