mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 21:11:07 +00:00
Add staking payout support
This commit is contained in:
+10
-1
@@ -96,11 +96,13 @@ impl Default for RewardDestination {
|
||||
|
||||
/// Preference of what happens regarding validation.
|
||||
#[derive(PartialEq, Eq, Clone, Encode, Decode, RuntimeDebug)]
|
||||
pub struct ValidatorPrefs {
|
||||
pub struct ValidatorPrefs<T: Staking> {
|
||||
/// Reward that validator takes up-front; only the rest is split between themselves and
|
||||
/// nominators.
|
||||
#[codec(compact)]
|
||||
pub commission: Perbill,
|
||||
/// Runtime marker
|
||||
pub _r: PhantomData<T>,
|
||||
}
|
||||
|
||||
impl Default for ValidatorPrefs {
|
||||
@@ -318,3 +320,10 @@ pub struct NominateCall<T: Staking> {
|
||||
/// The targets that are being nominated
|
||||
pub targets: Vec<T::Address>,
|
||||
}
|
||||
|
||||
/// Claim a payout.
|
||||
#[derive(PartialEq, Eq, Clone, Call, Encode)]
|
||||
struct PayoutStakersCall<'a, T: System> {
|
||||
pub validator_stash: &'a T::AccountId,
|
||||
pub era: EraIndex,
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ use crate::frame::{
|
||||
},
|
||||
contracts::Contracts,
|
||||
session::Session,
|
||||
staking::Staking,
|
||||
system::System,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user