Type Alias StakingEvent

StakingEvent: Enum<{
    Bonded: {
        amount: bigint;
        stash: SS58String;
    };
    Chilled: {
        stash: SS58String;
    };
    ControllerBatchDeprecated: {
        failures: number;
    };
    EraPaid: {
        era_index: number;
        remainder: bigint;
        validator_payout: bigint;
    };
    ForceEra: {
        mode: StakingForcing;
    };
    Kicked: {
        nominator: SS58String;
        stash: SS58String;
    };
    OldSlashingReportDiscarded: {
        session_index: number;
    };
    PayoutStarted: {
        era_index: number;
        validator_stash: SS58String;
    };
    Rewarded: {
        amount: bigint;
        dest: StakingRewardDestination;
        stash: SS58String;
    };
    Slashed: {
        amount: bigint;
        staker: SS58String;
    };
    SlashReported: {
        fraction: number;
        slash_era: number;
        validator: SS58String;
    };
    SnapshotTargetsSizeExceeded: {
        size: number;
    };
    SnapshotVotersSizeExceeded: {
        size: number;
    };
    StakersElected: undefined;
    StakingElectionFailed: undefined;
    Unbonded: {
        amount: bigint;
        stash: SS58String;
    };
    ValidatorPrefsSet: {
        prefs: {
            blocked: boolean;
            commission: number;
        };
        stash: SS58String;
    };
    Withdrawn: {
        amount: bigint;
        stash: SS58String;
    };
}>

Type declaration

  • Bonded: {
        amount: bigint;
        stash: SS58String;
    }

    An account has bonded this amount. [stash, amount]

    NOTE: This event is only emitted when funds are bonded via a dispatchable. Notably, it will not be emitted for staking rewards when they are added to stake.

    • amount: bigint
    • stash: SS58String
  • Chilled: {
        stash: SS58String;
    }

    An account has stopped participating as either a validator or nominator.

    • stash: SS58String
  • ControllerBatchDeprecated: {
        failures: number;
    }

    Report of a controller batch deprecation.

    • failures: number
  • EraPaid: {
        era_index: number;
        remainder: bigint;
        validator_payout: bigint;
    }

    The era payout has been set; the first balance is the validator-payout; the second is the remainder from the maximum amount of reward.

    • era_index: number
    • remainder: bigint
    • validator_payout: bigint
  • ForceEra: {
        mode: StakingForcing;
    }

    A new force era mode was set.

  • Kicked: {
        nominator: SS58String;
        stash: SS58String;
    }

    A nominator has been kicked from a validator.

    • nominator: SS58String
    • stash: SS58String
  • OldSlashingReportDiscarded: {
        session_index: number;
    }

    An old slashing report from a prior era was discarded because it could not be processed.

    • session_index: number
  • PayoutStarted: {
        era_index: number;
        validator_stash: SS58String;
    }

    The stakers' rewards are getting paid.

    • era_index: number
    • validator_stash: SS58String
  • Rewarded: {
        amount: bigint;
        dest: StakingRewardDestination;
        stash: SS58String;
    }

    The nominator has been rewarded by this amount to this destination.

  • Slashed: {
        amount: bigint;
        staker: SS58String;
    }

    A staker (validator or nominator) has been slashed by the given amount.

    • amount: bigint
    • staker: SS58String
  • SlashReported: {
        fraction: number;
        slash_era: number;
        validator: SS58String;
    }

    A slash for the given validator, for the given percentage of their stake, at the given era as been reported.

    • fraction: number
    • slash_era: number
    • validator: SS58String
  • SnapshotTargetsSizeExceeded: {
        size: number;
    }

    Targets size limit reached.

    • size: number
  • SnapshotVotersSizeExceeded: {
        size: number;
    }

    Voters size limit reached.

    • size: number
  • StakersElected: undefined

    A new set of stakers was elected.

  • StakingElectionFailed: undefined

    The election failed. No new era is planned.

  • Unbonded: {
        amount: bigint;
        stash: SS58String;
    }

    An account has unbonded this amount.

    • amount: bigint
    • stash: SS58String
  • ValidatorPrefsSet: {
        prefs: {
            blocked: boolean;
            commission: number;
        };
        stash: SS58String;
    }

    A validator has set their preferences.

    • prefs: {
          blocked: boolean;
          commission: number;
      }
      • blocked: boolean
      • commission: number
    • stash: SS58String
  • Withdrawn: {
        amount: bigint;
        stash: SS58String;
    }

    An account has called withdraw_unbonded and removed unbonding chunks worth Balance from the unlocking queue.

    • amount: bigint
    • stash: SS58String