title: 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.)


assets

ApprovalCancelled(u32, AccountId32, AccountId32)

  • interface: api.events.assets.ApprovalCancelled.is
  • summary: An approval for account delegate was cancelled by owner.

ApprovedTransfer(u32, AccountId32, AccountId32, u128)

  • interface: api.events.assets.ApprovedTransfer.is
  • summary: (Additional) funds have been approved for transfer to a destination account.

AssetFrozen(u32)

  • interface: api.events.assets.AssetFrozen.is
  • summary: Some asset asset_id was frozen.

AssetStatusChanged(u32)

  • interface: api.events.assets.AssetStatusChanged.is
  • summary: An asset has had its attributes changed by the Force origin.

AssetThawed(u32)

  • interface: api.events.assets.AssetThawed.is
  • summary: Some asset asset_id was thawed.

Burned(u32, AccountId32, u128)

  • interface: api.events.assets.Burned.is
  • summary: Some assets were destroyed.

Created(u32, AccountId32, AccountId32)

  • interface: api.events.assets.Created.is
  • summary: Some asset class was created.

Destroyed(u32)

  • interface: api.events.assets.Destroyed.is
  • summary: An asset class was destroyed.

ForceCreated(u32, AccountId32)

  • interface: api.events.assets.ForceCreated.is
  • summary: Some asset class was force-created.

Frozen(u32, AccountId32)

  • interface: api.events.assets.Frozen.is
  • summary: Some account who was frozen.

Issued(u32, AccountId32, u128)

  • interface: api.events.assets.Issued.is
  • summary: Some assets were issued.

MetadataCleared(u32)

  • interface: api.events.assets.MetadataCleared.is
  • summary: Metadata has been cleared for an asset.

MetadataSet(u32, Bytes, Bytes, u8, bool)

  • interface: api.events.assets.MetadataSet.is
  • summary: New metadata has been set for an asset.

OwnerChanged(u32, AccountId32)

  • interface: api.events.assets.OwnerChanged.is
  • summary: The owner changed.

TeamChanged(u32, AccountId32, AccountId32, AccountId32)

  • interface: api.events.assets.TeamChanged.is
  • summary: The management team changed.

Thawed(u32, AccountId32)

  • interface: api.events.assets.Thawed.is
  • summary: Some account who was thawed.

Transferred(u32, AccountId32, AccountId32, u128)

  • interface: api.events.assets.Transferred.is
  • summary: Some assets were transferred.

TransferredApproved(u32, AccountId32, AccountId32, AccountId32, u128)

  • interface: api.events.assets.TransferredApproved.is
  • summary: An amount was transferred in its entirety from owner to destination by the approved delegate.

balances

BalanceSet(AccountId32, u128, u128)

  • interface: api.events.balances.BalanceSet.is
  • summary: A balance was set by root.

Deposit(AccountId32, u128)

  • interface: api.events.balances.Deposit.is
  • summary: Some amount was deposited (e.g. for transaction fees).

DustLost(AccountId32, u128)

  • interface: api.events.balances.DustLost.is
  • summary: An account was removed whose balance was non-zero but below ExistentialDeposit, resulting in an outright loss.

Endowed(AccountId32, u128)

  • interface: api.events.balances.Endowed.is
  • summary: An account was created with some free balance.

Reserved(AccountId32, u128)

  • interface: api.events.balances.Reserved.is
  • summary: Some balance was reserved (moved from free to reserved).

ReserveRepatriated(AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus)

  • interface: api.events.balances.ReserveRepatriated.is
  • summary: Some balance was moved from the reserve of the first account to the second account. Final argument indicates the destination balance type.

Slashed(AccountId32, u128)

  • interface: api.events.balances.Slashed.is
  • summary: Some amount was removed from the account (e.g. for misbehavior).

Transfer(AccountId32, AccountId32, u128)

  • interface: api.events.balances.Transfer.is
  • summary: Transfer succeeded.

Unreserved(AccountId32, u128)

  • interface: api.events.balances.Unreserved.is
  • summary: Some balance was unreserved (moved from reserved to free).

Withdraw(AccountId32, u128)

  • interface: api.events.balances.Withdraw.is
  • summary: Some amount was withdrawn from the account (e.g. for transaction fees).

bounties

BountyAwarded(u32, AccountId32)

  • interface: api.events.bounties.BountyAwarded.is
  • summary: A bounty is awarded to a beneficiary.

BountyBecameActive(u32)

  • interface: api.events.bounties.BountyBecameActive.is
  • summary: A bounty proposal is funded and became active.

BountyCanceled(u32)

  • interface: api.events.bounties.BountyCanceled.is
  • summary: A bounty is cancelled.

BountyClaimed(u32, u128, AccountId32)

  • interface: api.events.bounties.BountyClaimed.is
  • summary: A bounty is claimed by beneficiary.

BountyExtended(u32)

  • interface: api.events.bounties.BountyExtended.is
  • summary: A bounty expiry is extended.

BountyProposed(u32)

  • interface: api.events.bounties.BountyProposed.is
  • summary: New bounty proposal.

BountyRejected(u32, u128)

  • interface: api.events.bounties.BountyRejected.is
  • summary: A bounty proposal was rejected; funds were slashed.

childBounties

Added(u32, u32)

  • interface: api.events.childBounties.Added.is
  • summary: A child-bounty is added.

Awarded(u32, u32, AccountId32)

  • interface: api.events.childBounties.Awarded.is
  • summary: A child-bounty is awarded to a beneficiary.

Canceled(u32, u32)

  • interface: api.events.childBounties.Canceled.is
  • summary: A child-bounty is cancelled.

Claimed(u32, u32, u128, AccountId32)

  • interface: api.events.childBounties.Claimed.is
  • summary: A child-bounty is claimed by beneficiary.

collatorSelection

CandidateAdded(AccountId32, u128)

  • interface: api.events.collatorSelection.CandidateAdded.is

CandidateRemoved(AccountId32)

  • interface: api.events.collatorSelection.CandidateRemoved.is

NewCandidacyBond(u128)

  • interface: api.events.collatorSelection.NewCandidacyBond.is

NewDesiredCandidates(u32)

  • interface: api.events.collatorSelection.NewDesiredCandidates.is

NewInvulnerables(Vec<AccountId32>)

  • interface: api.events.collatorSelection.NewInvulnerables.is

council

Approved(H256)

  • interface: api.events.council.Approved.is
  • summary: A motion was approved by the required threshold.

Closed(H256, u32, u32)

  • interface: api.events.council.Closed.is
  • summary: A proposal was closed because its threshold was reached or after its duration was up.

Disapproved(H256)

  • interface: api.events.council.Disapproved.is
  • summary: A motion was not approved by the required threshold.

Executed(H256, Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.council.Executed.is
  • summary: A motion was executed; result will be Ok if it returned without error.

MemberExecuted(H256, Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.council.MemberExecuted.is
  • summary: A single member did some action; result will be Ok if it returned without error.

Proposed(AccountId32, u32, H256, u32)

  • interface: api.events.council.Proposed.is
  • summary: A motion (given hash) has been proposed (by given account) with a threshold (given MemberCount).

Voted(AccountId32, H256, bool, u32, u32)

  • interface: api.events.council.Voted.is
  • 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

Blacklisted(H256)

  • interface: api.events.democracy.Blacklisted.is
  • summary: A proposal_hash has been blacklisted permanently.

Cancelled(u32)

  • interface: api.events.democracy.Cancelled.is
  • summary: A referendum has been cancelled.

Delegated(AccountId32, AccountId32)

  • interface: api.events.democracy.Delegated.is
  • summary: An account has delegated their vote to another account.

Executed(u32, Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.democracy.Executed.is
  • summary: A proposal has been enacted.

ExternalTabled()

  • interface: api.events.democracy.ExternalTabled.is
  • summary: An external proposal has been tabled.

NotPassed(u32)

  • interface: api.events.democracy.NotPassed.is
  • summary: A proposal has been rejected by referendum.

Passed(u32)

  • interface: api.events.democracy.Passed.is
  • summary: A proposal has been approved by referendum.

PreimageInvalid(H256, u32)

  • interface: api.events.democracy.PreimageInvalid.is
  • summary: A proposal could not be executed because its preimage was invalid.

PreimageMissing(H256, u32)

  • interface: api.events.democracy.PreimageMissing.is
  • summary: A proposal could not be executed because its preimage was missing.

PreimageNoted(H256, AccountId32, u128)

  • interface: api.events.democracy.PreimageNoted.is
  • summary: A proposal's preimage was noted, and the deposit taken.

PreimageReaped(H256, AccountId32, u128, AccountId32)

  • interface: api.events.democracy.PreimageReaped.is
  • summary: A registered preimage was removed and the deposit collected by the reaper.

PreimageUsed(H256, AccountId32, u128)

  • interface: api.events.democracy.PreimageUsed.is
  • summary: A proposal preimage was removed and used (the deposit was returned).

Proposed(u32, u128)

  • interface: api.events.democracy.Proposed.is
  • summary: A motion has been proposed by a public account.

Seconded(AccountId32, u32)

  • interface: api.events.democracy.Seconded.is
  • summary: An account has secconded a proposal

Started(u32, PalletDemocracyVoteThreshold)

  • interface: api.events.democracy.Started.is
  • summary: A referendum has begun.

Tabled(u32, u128, Vec<AccountId32>)

  • interface: api.events.democracy.Tabled.is
  • summary: A public proposal has been tabled for referendum vote.

Undelegated(AccountId32)

  • interface: api.events.democracy.Undelegated.is
  • summary: An account has cancelled a previous delegation operation.

Vetoed(AccountId32, H256, u32)

  • interface: api.events.democracy.Vetoed.is
  • summary: An external proposal has been vetoed.

Voted(AccountId32, u32, PalletDemocracyVoteAccountVote)

  • interface: api.events.democracy.Voted.is
  • summary: An account has voted in a referendum

identity

IdentityCleared(AccountId32, u128)

  • interface: api.events.identity.IdentityCleared.is
  • summary: A name was cleared, and the given balance returned.

IdentityKilled(AccountId32, u128)

  • interface: api.events.identity.IdentityKilled.is
  • summary: A name was removed and the given balance slashed.

IdentitySet(AccountId32)

  • interface: api.events.identity.IdentitySet.is
  • summary: A name was set or reset (which will remove all judgements).

JudgementGiven(AccountId32, u32)

  • interface: api.events.identity.JudgementGiven.is
  • summary: A judgement was given by a registrar.

JudgementRequested(AccountId32, u32)

  • interface: api.events.identity.JudgementRequested.is
  • summary: A judgement was asked from a registrar.

JudgementUnrequested(AccountId32, u32)

  • interface: api.events.identity.JudgementUnrequested.is
  • summary: A judgement request was retracted.

RegistrarAdded(u32)

  • interface: api.events.identity.RegistrarAdded.is
  • summary: A registrar was added.

SubIdentityAdded(AccountId32, AccountId32, u128)

  • interface: api.events.identity.SubIdentityAdded.is
  • summary: A sub-identity was added to an identity and the deposit paid.

SubIdentityRemoved(AccountId32, AccountId32, u128)

  • interface: api.events.identity.SubIdentityRemoved.is
  • summary: A sub-identity was removed from an identity and the deposit freed.

SubIdentityRevoked(AccountId32, AccountId32, u128)

  • interface: api.events.identity.SubIdentityRevoked.is
  • summary: A sub-identity was cleared, and the given deposit repatriated from the main identity account to the sub-identity account.

lottery

CallsUpdated()

  • interface: api.events.lottery.CallsUpdated.is
  • summary: A new set of calls have been set!

LotteryStarted()

  • interface: api.events.lottery.LotteryStarted.is
  • summary: A lottery has been started!

TicketBought(AccountId32, (u8,u8))

  • interface: api.events.lottery.TicketBought.is
  • summary: A ticket has been bought!

Winner(AccountId32, u128)

  • interface: api.events.lottery.Winner.is
  • summary: A winner has been chosen!

multisig

MultisigApproval(AccountId32, PalletMultisigTimepoint, AccountId32, [u8;32])

  • interface: api.events.multisig.MultisigApproval.is
  • summary: A multisig operation has been approved by someone.

MultisigCancelled(AccountId32, PalletMultisigTimepoint, AccountId32, [u8;32])

  • interface: api.events.multisig.MultisigCancelled.is
  • summary: A multisig operation has been cancelled.

MultisigExecuted(AccountId32, PalletMultisigTimepoint, AccountId32, [u8;32], Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.multisig.MultisigExecuted.is
  • summary: A multisig operation has been executed.

NewMultisig(AccountId32, AccountId32, [u8;32])

  • interface: api.events.multisig.NewMultisig.is
  • summary: A new multisig operation has begun.

parachainSystem

DownwardMessagesProcessed(u64, H256)

  • interface: api.events.parachainSystem.DownwardMessagesProcessed.is
  • summary: Downward messages were processed using the given weight.

DownwardMessagesReceived(u32)

  • interface: api.events.parachainSystem.DownwardMessagesReceived.is
  • summary: Some downward messages have been received and will be processed.

UpgradeAuthorized(H256)

  • interface: api.events.parachainSystem.UpgradeAuthorized.is
  • summary: An upgrade has been authorized.

ValidationFunctionApplied(u32)

  • interface: api.events.parachainSystem.ValidationFunctionApplied.is
  • summary: The validation function was applied as of the contained relay chain block number.

ValidationFunctionDiscarded()

  • interface: api.events.parachainSystem.ValidationFunctionDiscarded.is
  • summary: The relay-chain aborted the upgrade process.

ValidationFunctionStored()

  • interface: api.events.parachainSystem.ValidationFunctionStored.is
  • summary: The validation function has been scheduled to apply.

phragmenElection

CandidateSlashed(AccountId32, u128)

  • interface: api.events.phragmenElection.CandidateSlashed.is

  • summary: A candidate was slashed by amount due to failing to obtain a seat as member or runner-up.

    Note that old members and runners-up are also candidates.

ElectionError()

  • interface: api.events.phragmenElection.ElectionError.is
  • summary: Internal error happened while trying to perform election.

EmptyTerm()

  • interface: api.events.phragmenElection.EmptyTerm.is
  • summary: No (or not enough) candidates existed for this round. This is different from NewTerm(\[\]). See the description of NewTerm.

MemberKicked(AccountId32)

  • interface: api.events.phragmenElection.MemberKicked.is
  • summary: A member has been removed. This should always be followed by either NewTerm or EmptyTerm.

NewTerm(Vec<(AccountId32,u128)>)

  • interface: api.events.phragmenElection.NewTerm.is
  • summary: A new term with new_members. This indicates that enough candidates existed to run the election, not that enough have has been elected. The inner value must be examined for this purpose. A NewTerm(\[\]) indicates that some candidates got their bond slashed and none were elected, whilst EmptyTerm means that no candidates existed to begin with.

Renounced(AccountId32)

  • interface: api.events.phragmenElection.Renounced.is
  • summary: Someone has renounced their candidacy.

SeatHolderSlashed(AccountId32, u128)

  • interface: api.events.phragmenElection.SeatHolderSlashed.is
  • summary: A seat holder was slashed by amount by being forcefully removed from the set.

preimage

Cleared(H256)

  • interface: api.events.preimage.Cleared.is
  • summary: A preimage has ben cleared.

Noted(H256)

  • interface: api.events.preimage.Noted.is
  • summary: A preimage has been noted.

Requested(H256)

  • interface: api.events.preimage.Requested.is
  • summary: A preimage has been requested.

proxy

Announced(AccountId32, AccountId32, H256)

  • interface: api.events.proxy.Announced.is
  • summary: An announcement was placed to make a call in the future.

AnonymousCreated(AccountId32, AccountId32, PhalaParachainRuntimeProxyType, u16)

  • interface: api.events.proxy.AnonymousCreated.is
  • summary: Anonymous account has been created by new proxy with given disambiguation index and proxy type.

ProxyAdded(AccountId32, AccountId32, PhalaParachainRuntimeProxyType, u32)

  • interface: api.events.proxy.ProxyAdded.is
  • summary: A proxy was added.

ProxyExecuted(Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.proxy.ProxyExecuted.is
  • summary: A proxy was executed correctly, with the given.

ProxyRemoved(AccountId32, AccountId32, PhalaParachainRuntimeProxyType, u32)

  • interface: api.events.proxy.ProxyRemoved.is
  • summary: A proxy was removed.

scheduler

CallLookupFailed((u32,u32), Option<Bytes>, FrameSupportScheduleLookupError)

  • interface: api.events.scheduler.CallLookupFailed.is
  • summary: The call for the provided hash was not found so the task has been aborted.

Canceled(u32, u32)

  • interface: api.events.scheduler.Canceled.is
  • summary: Canceled some task.

Dispatched((u32,u32), Option<Bytes>, Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.scheduler.Dispatched.is
  • summary: Dispatched some task.

Scheduled(u32, u32)

  • interface: api.events.scheduler.Scheduled.is
  • summary: Scheduled some task.

session

NewSession(u32)

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

sudo

KeyChanged(Option<AccountId32>)

  • interface: api.events.sudo.KeyChanged.is
  • summary: The [sudoer] just switched identity; the old key is supplied if one existed.

Sudid(Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.sudo.Sudid.is
  • summary: A sudo just took place. [result]

SudoAsDone(Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.sudo.SudoAsDone.is
  • summary: A sudo just took place. [result]

system

CodeUpdated()

  • interface: api.events.system.CodeUpdated.is
  • summary: :code was updated.

ExtrinsicFailed(SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo)

  • interface: api.events.system.ExtrinsicFailed.is
  • summary: An extrinsic failed.

ExtrinsicSuccess(FrameSupportWeightsDispatchInfo)

  • interface: api.events.system.ExtrinsicSuccess.is
  • summary: An extrinsic completed successfully.

KilledAccount(AccountId32)

  • interface: api.events.system.KilledAccount.is
  • summary: An account was reaped.

NewAccount(AccountId32)

  • interface: api.events.system.NewAccount.is
  • summary: A new account was created.

Remarked(AccountId32, H256)

  • interface: api.events.system.Remarked.is
  • summary: On on-chain remark happened.

technicalCommittee

Approved(H256)

  • interface: api.events.technicalCommittee.Approved.is
  • summary: A motion was approved by the required threshold.

Closed(H256, u32, u32)

  • interface: api.events.technicalCommittee.Closed.is
  • summary: A proposal was closed because its threshold was reached or after its duration was up.

Disapproved(H256)

  • interface: api.events.technicalCommittee.Disapproved.is
  • summary: A motion was not approved by the required threshold.

Executed(H256, Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.technicalCommittee.Executed.is
  • summary: A motion was executed; result will be Ok if it returned without error.

MemberExecuted(H256, Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.technicalCommittee.MemberExecuted.is
  • summary: A single member did some action; result will be Ok if it returned without error.

Proposed(AccountId32, u32, H256, u32)

  • interface: api.events.technicalCommittee.Proposed.is
  • summary: A motion (given hash) has been proposed (by given account) with a threshold (given MemberCount).

Voted(AccountId32, H256, bool, u32, u32)

  • interface: api.events.technicalCommittee.Voted.is
  • 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()

  • interface: api.events.technicalMembership.Dummy.is
  • summary: Phantom member, never used.

KeyChanged()

  • interface: api.events.technicalMembership.KeyChanged.is
  • summary: One of the members' keys changed.

MemberAdded()

  • interface: api.events.technicalMembership.MemberAdded.is
  • summary: The given member was added; see the transaction for who.

MemberRemoved()

  • interface: api.events.technicalMembership.MemberRemoved.is
  • summary: The given member was removed; see the transaction for who.

MembersReset()

  • interface: api.events.technicalMembership.MembersReset.is
  • summary: The membership was reset; see the transaction for who the new set is.

MembersSwapped()

  • interface: api.events.technicalMembership.MembersSwapped.is
  • summary: Two members were swapped; see the transaction for who.

tips

NewTip(H256)

  • interface: api.events.tips.NewTip.is
  • summary: A new tip suggestion has been opened.

TipClosed(H256, AccountId32, u128)

  • interface: api.events.tips.TipClosed.is
  • summary: A tip suggestion has been closed.

TipClosing(H256)

  • interface: api.events.tips.TipClosing.is
  • summary: A tip suggestion has reached threshold and is closing.

TipRetracted(H256)

  • interface: api.events.tips.TipRetracted.is
  • summary: A tip suggestion has been retracted.

TipSlashed(H256, AccountId32, u128)

  • interface: api.events.tips.TipSlashed.is
  • summary: A tip suggestion has been slashed.

treasury

Awarded(u32, u128, AccountId32)

  • interface: api.events.treasury.Awarded.is
  • summary: Some funds have been allocated.

Burnt(u128)

  • interface: api.events.treasury.Burnt.is
  • summary: Some of our funds have been burnt.

Deposit(u128)

  • interface: api.events.treasury.Deposit.is
  • summary: Some funds have been deposited.

Proposed(u32)

  • interface: api.events.treasury.Proposed.is
  • summary: New proposal.

Rejected(u32, u128)

  • interface: api.events.treasury.Rejected.is
  • summary: A proposal was rejected; funds were slashed.

Rollover(u128)

  • interface: api.events.treasury.Rollover.is
  • summary: Spending has finished; this is the amount that rolls over until next spend.

Spending(u128)

  • interface: api.events.treasury.Spending.is
  • summary: We have ended a spend period and will now allocate funds.

utility

BatchCompleted()

  • interface: api.events.utility.BatchCompleted.is
  • summary: Batch of dispatches completed fully with no error.

BatchCompletedWithErrors()

  • interface: api.events.utility.BatchCompletedWithErrors.is
  • summary: Batch of dispatches completed but has errors.

BatchInterrupted(u32, SpRuntimeDispatchError)

  • interface: api.events.utility.BatchInterrupted.is
  • summary: Batch of dispatches did not complete fully. Index of first failing dispatch given, as well as the error.

DispatchedAs(Result<Null, SpRuntimeDispatchError>)

  • interface: api.events.utility.DispatchedAs.is
  • summary: A call was dispatched.

ItemCompleted()

  • interface: api.events.utility.ItemCompleted.is
  • summary: A single item within a Batch of dispatches has completed with no error.

ItemFailed(SpRuntimeDispatchError)

  • interface: api.events.utility.ItemFailed.is
  • summary: A single item within a Batch of dispatches has completed with error.

vesting

VestingCompleted(AccountId32)

  • interface: api.events.vesting.VestingCompleted.is
  • summary: An [account] has become fully vested.

VestingUpdated(AccountId32, u128)

  • interface: api.events.vesting.VestingUpdated.is
  • summary: The amount vested has been updated. This could indicate a change in funds available. The balance given is the amount which is left unvested (and thus locked).