# Events

Events are emitted for certain operations on the runtime. The following sections describe the events that are part of the default Substrate runtime.

(NOTE: These were generated from a static/snapshot view of a recent Substrate master node. Some items may not be available in older nodes, or in any customized implementations.)


# balances

# BalanceSet(AccountId, Balance, Balance)

  • summary: A balance was set by root (who, free, reserved).

# Deposit(AccountId, Balance)

  • summary: Some amount was deposited (e.g. for transaction fees).

# NewAccount(AccountId, Balance)

  • summary: A new account was created.

# ReapedAccount(AccountId, Balance)

  • summary: An account was reaped.

# Transfer(AccountId, AccountId, Balance, Balance)

  • summary: Transfer succeeded (from, to, value, fees).

# contracts

# CodeStored(Hash)

  • summary: Code with the specified hash has been stored.

# Contract(AccountId, Bytes)

  • summary: An event from contract of account.

# Dispatched(AccountId, bool)

  • summary: A call was dispatched from the given account. The bool signals whether it was successful execution or not.

# Instantiated(AccountId, AccountId)

  • summary: Contract deployed by address at the specified address.

# ScheduleUpdated(u32)

  • summary: Triggered when the current schedule is updated.

# Transfer(AccountId, AccountId, Balance)

  • summary: Transfer happened from to to with given value as part of a call or instantiate.

# council

# Approved(Hash)

  • summary: A motion was approved by the required threshold.

# Disapproved(Hash)

  • summary: A motion was not approved by the required threshold.

# Executed(Hash, bool)

  • summary: A motion was executed; bool is true if returned without error.

# MemberExecuted(Hash, bool)

  • summary: A single member did some action; bool is true if returned without error.

# Proposed(AccountId, ProposalIndex, Hash, MemberCount)

  • summary: A motion (given hash) has been proposed (by given account) with a threshold (given MemberCount).

# Voted(AccountId, Hash, bool, MemberCount, MemberCount)

  • summary: A motion (given hash) has been voted on by given account, leaving a tally (yes votes and no votes given respectively as MemberCount).

# democracy

# Cancelled(ReferendumIndex)

  • summary: A referendum has been cancelled.

# Delegated(AccountId, AccountId)

  • summary: An account has delegated their vote to another account.

# Executed(ReferendumIndex, bool)

  • summary: A proposal has been enacted.

# ExternalTabled()

  • summary: An external proposal has been tabled.

# NotPassed(ReferendumIndex)

  • summary: A proposal has been rejected by referendum.

# Passed(ReferendumIndex)

  • summary: A proposal has been approved by referendum.

# PreimageInvalid(Hash, ReferendumIndex)

  • summary: A proposal could not be executed because its preimage was invalid.

# PreimageMissing(Hash, ReferendumIndex)

  • summary: A proposal could not be executed because its preimage was missing.

# PreimageNoted(Hash, AccountId, Balance)

  • summary: A proposal's preimage was noted, and the deposit taken.

# PreimageReaped(Hash, AccountId, Balance, AccountId)

  • summary: A registered preimage was removed and the deposit collected by the reaper (last item).

# PreimageUsed(Hash, AccountId, Balance)

  • summary: A proposal preimage was removed and used (the deposit was returned).

# Proposed(PropIndex, Balance)

  • summary: A motion has been proposed by a public account.

# Started(ReferendumIndex, VoteThreshold)

  • summary: A referendum has begun.

# Tabled(PropIndex, Balance, Vec<AccountId>)

  • summary: A public proposal has been tabled for referendum vote.

# Undelegated(AccountId)

  • summary: An account has cancelled a previous delegation operation.

# Vetoed(AccountId, Hash, BlockNumber)

  • summary: An external proposal has been vetoed.

# elections

# EmptyTerm()

  • summary: No (or not enough) candidates existed for this round.

# MemberKicked(AccountId)

  • summary: A member has been removed. This should always be followed by either NewTerm ot EmptyTerm.

# MemberRenounced(AccountId)

  • summary: A member has renounced their candidacy.

# NewTerm(Vec<(AccountId,Balance)>)

  • summary: A new term with new members. This indicates that enough candidates existed, not that enough have has been elected. The inner value must be examined for this purpose.

# VoterReported(AccountId, AccountId, bool)

  • summary: A voter (first element) was reported (byt the second element) with the the report being successful or not (third element).

# grandpa

# NewAuthorities(AuthorityList)

  • summary: New authority set has been applied.

# Paused()

  • summary: Current authority set has been paused.

# Resumed()

  • summary: Current authority set has been resumed.

# identity

# IdentityCleared(AccountId, Balance)

  • summary: A name was cleared, and the given balance returned.

# IdentityKilled(AccountId, Balance)

  • summary: A name was removed and the given balance slashed.

# IdentitySet(AccountId)

  • summary: A name was set or reset (which will remove all judgements).

# JudgementGiven(AccountId, RegistrarIndex)

  • summary: A judgement was given by a registrar.

# JudgementRequested(AccountId, RegistrarIndex)

  • summary: A judgement was asked from a registrar.

# JudgementUnrequested(AccountId, RegistrarIndex)

  • summary: A judgement request was retracted.

# RegistrarAdded(RegistrarIndex)

  • summary: A registrar was added.

# imOnline

# AllGood()

  • summary: At the end of the session, no offence was committed.

# HeartbeatReceived(AuthorityId)

  • summary: A new heartbeat was received from AuthorityId

# SomeOffline(Vec<IdentificationTuple>)

  • summary: At the end of the session, at least once validator was found to be offline.

# indices

# NewAccountIndex(AccountId, AccountIndex)

  • summary: A new account index was assigned. This event is not triggered when an existing index is reassigned to another AccountId.

# offences

# Offence(Kind, OpaqueTimeSlot)

  • summary: There is an offence reported of the given kind happened at the session_index and (kind-specific) time slot. This event is not deposited for duplicate slashes.

# recovery

# AccountRecovered(AccountId, AccountId)

  • summary: Account_1 has been successfully recovered by account_2

# RecoveryClosed(AccountId, AccountId)

  • summary: A recovery process for account_1 by account_2 has been closed

# RecoveryCreated(AccountId)

  • summary: A recovery process has been set up for an account

# RecoveryInitiated(AccountId, AccountId)

  • summary: A recovery process has been initiated for account_1 by account_2

# RecoveryRemoved(AccountId)

  • summary: A recovery process has been removed for an account

# RecoveryVouched(AccountId, AccountId, AccountId)

  • summary: A recovery process for account_1 by account_2 has been vouched for by account_3

# session

# NewSession(SessionIndex)

  • summary: New session has happened. Note that the argument is the session index, not the block number as the type might suggest.

# society

# AutoUnbid(AccountId)

  • summary: A candidate was dropped (due to an excess of bids in the system).

# Bid(AccountId, Balance)

  • summary: A membership bid just happened. The given account is the candidate's ID and their offer is the second.

# CandidateSuspended(AccountId)

  • summary: A candidate has been suspended

# Challenged(AccountId)

  • summary: A member has been challenged

# DefenderVote(AccountId, bool)

  • summary: A vote has been placed for a defending member (voter, vote)

# Founded(AccountId)

  • summary: The society is founded by the given identity.

# Inducted(AccountId, Vec<AccountId>)

  • summary: A group of candidates have been inducted. The batch's primary is the first value, the batch in full is the second.

# MemberSuspended(AccountId)

  • summary: A member has been suspended

# NewMaxMembers(u32)

  • summary: A new max member count has been set

# SuspendedMemberJudgement(AccountId, bool)

  • summary: A suspended member has been judged

# Unbid(AccountId)

  • summary: A candidate was dropped (by their request).

# Unfounded(AccountId)

  • summary: Society is unfounded.

# Unvouch(AccountId)

  • summary: A candidate was dropped (by request of who vouched for them).

# Vote(AccountId, AccountId, bool)

  • summary: A vote has been placed (candidate, voter, vote)

# Vouch(AccountId, Balance, AccountId)

  • summary: A membership bid just happened by vouching. The given account is the candidate's ID and their offer is the second. The vouching party is the third.

# staking

# OldSlashingReportDiscarded(SessionIndex)

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

# Reward(Balance, Balance)

  • summary: All validators have been rewarded by the first balance; the second is the remainder from the maximum amount of reward.

# Slash(AccountId, Balance)

  • summary: One validator (and its nominators) has been slashed by the given amount.

# sudo

# KeyChanged(AccountId)

  • summary: The sudoer just switched identity; the old key is supplied.

# Sudid(bool)

  • summary: A sudo just took place.

# SudoAsDone(bool)

  • summary: A sudo just took place.

# system

# ExtrinsicFailed(DispatchError, DispatchInfo)

  • summary: An extrinsic failed.

# ExtrinsicSuccess(DispatchInfo)

  • summary: An extrinsic completed successfully.

# technicalCommittee

# Approved(Hash)

  • summary: A motion was approved by the required threshold.

# Disapproved(Hash)

  • summary: A motion was not approved by the required threshold.

# Executed(Hash, bool)

  • summary: A motion was executed; bool is true if returned without error.

# MemberExecuted(Hash, bool)

  • summary: A single member did some action; bool is true if returned without error.

# Proposed(AccountId, ProposalIndex, Hash, MemberCount)

  • summary: A motion (given hash) has been proposed (by given account) with a threshold (given MemberCount).

# Voted(AccountId, Hash, bool, MemberCount, MemberCount)

  • summary: A motion (given hash) has been voted on by given account, leaving a tally (yes votes and no votes given respectively as MemberCount).

# technicalMembership

# Dummy(PhantomData)

  • summary: Phantom member, never used.

# KeyChanged()

  • summary: One of the members' keys changed.

# MemberAdded()

  • summary: The given member was added; see the transaction for who.

# MemberRemoved()

  • summary: The given member was removed; see the transaction for who.

# MembersReset()

  • summary: The membership was reset; see the transaction for who the new set is.

# MembersSwapped()

  • summary: Two members were swapped; see the transaction for who.

# treasury

# Awarded(ProposalIndex, Balance, AccountId)

  • summary: Some funds have been allocated.

# Burnt(Balance)

  • summary: Some of our funds have been burnt.

# Deposit(Balance)

  • summary: Some funds have been deposited.

# NewTip(Hash)

  • summary: A new tip suggestion has been opened.

# Proposed(ProposalIndex)

  • summary: New proposal.

# Rejected(ProposalIndex, Balance)

  • summary: A proposal was rejected; funds were slashed.

# Rollover(Balance)

  • summary: Spending has finished; this is the amount that rolls over until next spend.

# Spending(Balance)

  • summary: We have ended a spend period and will now allocate funds.

# TipClosed(Hash, AccountId, Balance)

  • summary: A tip suggestion has been closed.

# TipClosing(Hash)

  • summary: A tip suggestion has reached threshold and is closing.

# TipRetracted(Hash)

  • summary: A tip suggestion has been retracted.

# utility

# BatchCompleted()

  • summary: Batch of dispatches completed fully with no error.

# BatchInterrupted(u32, DispatchError)

  • summary: Batch of dispatches did not complete fully. Index of first failing dispatch given, as well as the error.

# MultisigApproval(AccountId, Timepoint, AccountId)

  • summary: A multisig operation has been approved by someone. First param is the account that is approving, third is the multisig account.

# MultisigCancelled(AccountId, Timepoint, AccountId)

  • summary: A multisig operation has been cancelled. First param is the account that is cancelling, third is the multisig account.

# MultisigExecuted(AccountId, Timepoint, AccountId, DispatchResult)

  • summary: A multisig operation has been executed. First param is the account that is approving, third is the multisig account.

# NewMultisig(AccountId, AccountId)

  • summary: A new multisig operation has begun. First param is the account that is approving, second is the multisig account.