Crate pallet_offences

source ·
Expand description

§Duniter Offences Pallet

This pallet is a fork of the Substrate offences pallet, customized to align with the offence rules specified by the authority-member pallet rather than the Substrate staking pallet.

§Offences Processing

The Duniter Offences Pallet manages various types of offences as follows:

  • im-online Pallet Offences: Offences from the im-online pallet necessitate disconnection of the offender.

  • Other Offences: For all other offences, the pallet enforces:

    • Disconnection of the offender.
    • Addition of the offender to a blacklist.
    • Authorization from a designated origin to remove offenders from the blacklist.

§Offences Triage and Slashing Execution

This pallet handles the triage of offences, categorizing them based on predefined rules. The actual execution of slashing and other punitive measures is delegated to the authority-member pallet.

Re-exports§

Modules§

  • The pallet module in each FRAME pallet hosts the most important items needed to construct this pallet.

Structs§

  • An auxiliary struct for working with storage of indexes localized for a specific offence kind (specified by the O type parameter).

Enums§

Type Aliases§

  • A binary blob which represents a SCALE codec-encoded O::TimeSlot.
  • ReportIdOf 🔒
    A type alias for a report identifier.