pub type PipsEvent = PipsEvent;Aliased Type§
pub enum PipsEvent {
Show 20 variants
HistoricalPipsPruned(IdentityId, bool, bool),
ProposalCreated(IdentityId, Proposer<AccountId>, PipId, u128, Option<Url>, Option<PipDescription>, MaybeBlock<u32>, ProposalData),
ProposalStateUpdated(IdentityId, PipId, ProposalState),
Voted(IdentityId, AccountId, PipId, bool, u128),
PipClosed(IdentityId, PipId, bool),
ExecutionScheduled(IdentityId, PipId, u32),
DefaultEnactmentPeriodChanged(IdentityId, u32, u32),
MinimumProposalDepositChanged(IdentityId, u128, u128),
PendingPipExpiryChanged(IdentityId, MaybeBlock<u32>, MaybeBlock<u32>),
MaxPipSkipCountChanged(IdentityId, u8, u8),
ActivePipLimitChanged(IdentityId, u32, u32),
ProposalRefund(IdentityId, PipId, u128),
SnapshotCleared(IdentityId, SnapshotId),
SnapshotTaken(IdentityId, SnapshotId, Vec<SnapshottedPip>),
PipSkipped(IdentityId, PipId, u8),
SnapshotResultsEnacted(IdentityId, Option<SnapshotId>, Vec<(PipId, u8)>, Vec<PipId>, Vec<PipId>),
ExecutionSchedulingFailed(IdentityId, PipId, u32),
ExpiryScheduled(IdentityId, PipId, u32),
ExpirySchedulingFailed(IdentityId, PipId, u32),
ExecutionCancellingFailed(PipId),
}Variants§
HistoricalPipsPruned(IdentityId, bool, bool)
Historical PIPs Pruning has been set.
Parameters:
IdentityId: The DID of the caller.bool: The old value of the pruning setting.bool: The new value of the pruning setting.
ProposalCreated(IdentityId, Proposer<AccountId>, PipId, u128, Option<Url>, Option<PipDescription>, MaybeBlock<u32>, ProposalData)
A PIP was created with a specified Balance stake.
Parameters:
IdentityId: The DID of the caller.Proposer<T::AccountId>: The proposer of the PIP.PipId: The ID of the PIP.Balance: The deposit amount.Option<Url>: The URL for proposal discussion.Option<PipDescription>: The description of the proposal.MaybeBlock<T::BlockNumber>: The expiry time of the proposal.ProposalData: The data of the proposal.
ProposalStateUpdated(IdentityId, PipId, ProposalState)
The state of a proposal was updated.
Parameters:
IdentityId: The DID of the caller.PipId: The ID of the PIP.ProposalState: The new state of the proposal.
Voted(IdentityId, AccountId, PipId, bool, u128)
An account voted on a proposal.
Parameters:
IdentityId: The DID of the caller.T::AccountId: The account that voted.PipId: The ID of the PIP.bool: The vote (true for aye, false for nay).Balance: The deposit amount of the vote.
PipClosed(IdentityId, PipId, bool)
A PIP was closed.
Parameters:
IdentityId: The DID of the caller.PipId: The ID of the PIP.bool: Indicates whether the data was pruned.
ExecutionScheduled(IdentityId, PipId, u32)
The execution of a PIP was scheduled.
Parameters:
IdentityId: The DID of the caller.PipId: The ID of the PIP.T::BlockNumber: The block number at which the PIP is scheduled for execution.
DefaultEnactmentPeriodChanged(IdentityId, u32, u32)
The default enactment period was changed.
Parameters:
IdentityId: The DID of the caller.T::BlockNumber: The old enactment period.T::BlockNumber: The new enactment period.
MinimumProposalDepositChanged(IdentityId, u128, u128)
The minimum deposit amount for proposals was changed.
Parameters:
IdentityId: The DID of the caller.Balance: The old deposit amount.Balance: The new deposit amount.
PendingPipExpiryChanged(IdentityId, MaybeBlock<u32>, MaybeBlock<u32>)
The expiry time for pending PIPs was changed.
Parameters:
IdentityId: The DID of the caller.MaybeBlock<T::BlockNumber>: The old expiry time.MaybeBlock<T::BlockNumber>: The new expiry time.
MaxPipSkipCountChanged(IdentityId, u8, u8)
The maximum number of times a PIP can be skipped was changed.
Parameters:
IdentityId: The DID of the caller.SkippedCount: The old skip count.SkippedCount: The new skip count.
ActivePipLimitChanged(IdentityId, u32, u32)
The maximum number of active PIPs was changed.
Parameters:
IdentityId: The DID of the caller.u32: The old active PIP limit.u32: The new active PIP limit.
ProposalRefund(IdentityId, PipId, u128)
A proposal was refunded.
Parameters:
IdentityId: The DID of the caller.PipId: The ID of the PIP.Balance: The total amount refunded.
SnapshotCleared(IdentityId, SnapshotId)
The snapshot was cleared.
Parameters:
IdentityId: The DID of the caller.SnapshotId: The ID of the snapshot.
SnapshotTaken(IdentityId, SnapshotId, Vec<SnapshottedPip>)
A new snapshot was taken.
Parameters:
IdentityId: The DID of the caller.SnapshotId: The ID of the snapshot.Vec<SnapshottedPip>: The list of PIPs in the snapshot.
PipSkipped(IdentityId, PipId, u8)
A PIP in the snapshot queue was skipped.
Parameters:
IdentityId: The DID of the caller.PipId: The ID of the PIP.SkippedCount: The new skip count.
SnapshotResultsEnacted(IdentityId, Option<SnapshotId>, Vec<(PipId, u8)>, Vec<PipId>, Vec<PipId>)
Results were enacted for some PIPs in the snapshot queue.
Parameters:
IdentityId: The DID of the caller.Option<SnapshotId>: The ID of the snapshot, if any.Vec<(PipId, SkippedCount)>: The list of skipped PIPs with their new skip counts.Vec<PipId>: The list of rejected PIPs.Vec<PipId>: The list of approved PIPs.
ExecutionSchedulingFailed(IdentityId, PipId, u32)
Scheduling of the PIP for execution failed in the scheduler pallet.
Parameters:
IdentityId: The DID of the caller.PipId: The ID of the PIP.T::BlockNumber: The block number at which the PIP was scheduled for execution.
ExpiryScheduled(IdentityId, PipId, u32)
The PIP has been scheduled for expiry.
Parameters:
IdentityId: The DID of the caller.PipId: The ID of the PIP.T::BlockNumber: The block number at which the PIP is scheduled for expiry.
ExpirySchedulingFailed(IdentityId, PipId, u32)
Scheduling of the PIP for expiry failed in the scheduler pallet.
Parameters:
IdentityId: The DID of the caller.PipId: The ID of the PIP.T::BlockNumber: The block number at which the PIP was scheduled for expiry.
ExecutionCancellingFailed(PipId)
Cancelling the PIP execution failed in the scheduler pallet.
Parameters:
PipId: The ID of the PIP.