From 7461527448610a609379ef4abdfc49e611ece0b9 Mon Sep 17 00:00:00 2001 From: Jaco Date: Thu, 9 Jun 2022 12:44:31 +0200 Subject: [PATCH] Cater for named event fields (#4915) * Cater for named event fields * Adjust name extraction * Rebuild with named events * Empty object * Adjust * Additional * Adjust --- CHANGELOG.md | 1 + packages/api-augment/src/kusama/events.ts | 502 ++++++++-------- packages/api-augment/src/polkadot/events.ts | 432 +++++++------- packages/api-augment/src/substrate/events.ts | 534 +++++++++--------- packages/api-base/src/types/events.ts | 6 +- packages/api/src/checkTypes.manual.ts | 7 +- packages/typegen/src/generate/events.ts | 8 +- packages/typegen/src/templates/events.hbs | 2 +- packages/types-create/src/types/lookup.ts | 2 + packages/types/src/generic/Event.ts | 42 +- .../PortableRegistry/PortableRegistry.ts | 34 +- .../src/metadata/decorate/events/index.ts | 6 +- packages/types/src/metadata/decorate/types.ts | 6 +- packages/types/src/types/events.ts | 8 +- 14 files changed, 824 insertions(+), 766 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8794f87ff8..40b637e6da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Changes: +- Cater for named event fields (expose on event data as available) - Add aliases for `DispatchError{U8, U8a}` (default to new `U8a` variant) - Align `DispatchError` definition with latest Substrate - Adjust contracts RPC definitions with `DispatchError` return diff --git a/packages/api-augment/src/kusama/events.ts b/packages/api-augment/src/kusama/events.ts index 8a16878c62..457ed2f6ee 100644 --- a/packages/api-augment/src/kusama/events.ts +++ b/packages/api-augment/src/kusama/events.ts @@ -14,34 +14,34 @@ declare module '@polkadot/api-base/types/events' { /** * An auction ended. All funds become unreserved. **/ - AuctionClosed: AugmentedEvent; + AuctionClosed: AugmentedEvent; /** * An auction started. Provides its index and the block number where it will begin to * close and the first lease period of the quadruplet that is auctioned. **/ - AuctionStarted: AugmentedEvent; + AuctionStarted: AugmentedEvent; /** * A new bid has been accepted as the current winner. **/ - BidAccepted: AugmentedEvent; + BidAccepted: AugmentedEvent; /** * Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve * but no parachain slot has been leased. **/ - ReserveConfiscated: AugmentedEvent; + ReserveConfiscated: AugmentedEvent; /** * Funds were reserved for a winning bid. First balance is the extra amount reserved. * Second is the total. **/ - Reserved: AugmentedEvent; + Reserved: AugmentedEvent; /** * Funds were unreserved since bidder is no longer active. `[bidder, amount]` **/ - Unreserved: AugmentedEvent; + Unreserved: AugmentedEvent; /** * The winning offset was chosen for an auction. This will map into the `Winning` storage map. **/ - WinningOffset: AugmentedEvent; + WinningOffset: AugmentedEvent; /** * Generic event **/ @@ -51,45 +51,45 @@ declare module '@polkadot/api-base/types/events' { /** * A balance was set by root. **/ - BalanceSet: AugmentedEvent; + BalanceSet: AugmentedEvent; /** * Some amount was deposited (e.g. for transaction fees). **/ - Deposit: AugmentedEvent; + Deposit: AugmentedEvent; /** * An account was removed whose balance was non-zero but below ExistentialDeposit, * resulting in an outright loss. **/ - DustLost: AugmentedEvent; + DustLost: AugmentedEvent; /** * An account was created with some free balance. **/ - Endowed: AugmentedEvent; + Endowed: AugmentedEvent; /** * Some balance was reserved (moved from free to reserved). **/ - Reserved: AugmentedEvent; + Reserved: AugmentedEvent; /** * Some balance was moved from the reserve of the first account to the second account. * Final argument indicates the destination balance type. **/ - ReserveRepatriated: AugmentedEvent; + ReserveRepatriated: AugmentedEvent; /** * Some amount was removed from the account (e.g. for misbehavior). **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * Transfer succeeded. **/ - Transfer: AugmentedEvent; + Transfer: AugmentedEvent; /** * Some balance was unreserved (moved from reserved to free). **/ - Unreserved: AugmentedEvent; + Unreserved: AugmentedEvent; /** * Some amount was withdrawn from the account (e.g. for transaction fees). **/ - Withdraw: AugmentedEvent; + Withdraw: AugmentedEvent; /** * Generic event **/ @@ -99,31 +99,31 @@ declare module '@polkadot/api-base/types/events' { /** * A bounty is awarded to a beneficiary. **/ - BountyAwarded: AugmentedEvent; + BountyAwarded: AugmentedEvent; /** * A bounty proposal is funded and became active. **/ - BountyBecameActive: AugmentedEvent; + BountyBecameActive: AugmentedEvent; /** * A bounty is cancelled. **/ - BountyCanceled: AugmentedEvent; + BountyCanceled: AugmentedEvent; /** * A bounty is claimed by beneficiary. **/ - BountyClaimed: AugmentedEvent; + BountyClaimed: AugmentedEvent; /** * A bounty expiry is extended. **/ - BountyExtended: AugmentedEvent; + BountyExtended: AugmentedEvent; /** * New bounty proposal. **/ - BountyProposed: AugmentedEvent; + BountyProposed: AugmentedEvent; /** * A bounty proposal was rejected; funds were slashed. **/ - BountyRejected: AugmentedEvent; + BountyRejected: AugmentedEvent; /** * Generic event **/ @@ -133,19 +133,19 @@ declare module '@polkadot/api-base/types/events' { /** * A child-bounty is added. **/ - Added: AugmentedEvent; + Added: AugmentedEvent; /** * A child-bounty is awarded to a beneficiary. **/ - Awarded: AugmentedEvent; + Awarded: AugmentedEvent; /** * A child-bounty is cancelled. **/ - Canceled: AugmentedEvent; + Canceled: AugmentedEvent; /** * A child-bounty is claimed by beneficiary. **/ - Claimed: AugmentedEvent; + Claimed: AugmentedEvent; /** * Generic event **/ @@ -155,7 +155,7 @@ declare module '@polkadot/api-base/types/events' { /** * Someone claimed some DOTs. **/ - Claimed: AugmentedEvent; + Claimed: AugmentedEvent; /** * Generic event **/ @@ -165,33 +165,33 @@ declare module '@polkadot/api-base/types/events' { /** * A motion was approved by the required threshold. **/ - Approved: AugmentedEvent; + Approved: AugmentedEvent; /** * A proposal was closed because its threshold was reached or after its duration was up. **/ - Closed: AugmentedEvent; + Closed: AugmentedEvent; /** * A motion was not approved by the required threshold. **/ - Disapproved: AugmentedEvent; + Disapproved: AugmentedEvent; /** * A motion was executed; result will be `Ok` if it returned without error. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A single member did some action; result will be `Ok` if it returned without error. **/ - MemberExecuted: AugmentedEvent]>; + MemberExecuted: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A motion (given hash) has been voted on by given account, leaving * a tally (yes votes and no votes given respectively as `MemberCount`). **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -201,44 +201,44 @@ declare module '@polkadot/api-base/types/events' { /** * A parachain has been moved to `NewRaise` **/ - AddedToNewRaise: AugmentedEvent; + AddedToNewRaise: AugmentedEvent; /** * All loans in a fund have been refunded. **/ - AllRefunded: AugmentedEvent; + AllRefunded: AugmentedEvent; /** * Contributed to a crowd sale. **/ - Contributed: AugmentedEvent; + Contributed: AugmentedEvent; /** * Create a new crowdloaning campaign. **/ - Created: AugmentedEvent; + Created: AugmentedEvent; /** * Fund is dissolved. **/ - Dissolved: AugmentedEvent; + Dissolved: AugmentedEvent; /** * The configuration to a crowdloan has been edited. **/ - Edited: AugmentedEvent; + Edited: AugmentedEvent; /** * The result of trying to submit a new bid to the Slots pallet. **/ - HandleBidResult: AugmentedEvent]>; + HandleBidResult: AugmentedEvent], { paraId: u32, result: Result }>; /** * A memo has been updated. **/ - MemoUpdated: AugmentedEvent; + MemoUpdated: AugmentedEvent; /** * The loans in a fund have been partially dissolved, i.e. there are some left * over child keys that still need to be killed. **/ - PartiallyRefunded: AugmentedEvent; + PartiallyRefunded: AugmentedEvent; /** * Withdrew full balance of a contributor. **/ - Withdrew: AugmentedEvent; + Withdrew: AugmentedEvent; /** * Generic event **/ @@ -248,79 +248,79 @@ declare module '@polkadot/api-base/types/events' { /** * A proposal_hash has been blacklisted permanently. **/ - Blacklisted: AugmentedEvent; + Blacklisted: AugmentedEvent; /** * A referendum has been cancelled. **/ - Cancelled: AugmentedEvent; + Cancelled: AugmentedEvent; /** * An account has delegated their vote to another account. **/ - Delegated: AugmentedEvent; + Delegated: AugmentedEvent; /** * A proposal has been enacted. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { refIndex: u32, result: Result }>; /** * An external proposal has been tabled. **/ - ExternalTabled: AugmentedEvent; + ExternalTabled: AugmentedEvent; /** * A proposal has been rejected by referendum. **/ - NotPassed: AugmentedEvent; + NotPassed: AugmentedEvent; /** * A proposal has been approved by referendum. **/ - Passed: AugmentedEvent; + Passed: AugmentedEvent; /** * A proposal could not be executed because its preimage was invalid. **/ - PreimageInvalid: AugmentedEvent; + PreimageInvalid: AugmentedEvent; /** * A proposal could not be executed because its preimage was missing. **/ - PreimageMissing: AugmentedEvent; + PreimageMissing: AugmentedEvent; /** * A proposal's preimage was noted, and the deposit taken. **/ - PreimageNoted: AugmentedEvent; + PreimageNoted: AugmentedEvent; /** * A registered preimage was removed and the deposit collected by the reaper. **/ - PreimageReaped: AugmentedEvent; + PreimageReaped: AugmentedEvent; /** * A proposal preimage was removed and used (the deposit was returned). **/ - PreimageUsed: AugmentedEvent; + PreimageUsed: AugmentedEvent; /** * A motion has been proposed by a public account. **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * An account has secconded a proposal **/ - Seconded: AugmentedEvent; + Seconded: AugmentedEvent; /** * A referendum has begun. **/ - Started: AugmentedEvent; + Started: AugmentedEvent; /** * A public proposal has been tabled for referendum vote. **/ - Tabled: AugmentedEvent]>; + Tabled: AugmentedEvent], { proposalIndex: u32, deposit: u128, depositors: Vec }>; /** * An account has cancelled a previous delegation operation. **/ - Undelegated: AugmentedEvent; + Undelegated: AugmentedEvent; /** * An external proposal has been vetoed. **/ - Vetoed: AugmentedEvent; + Vetoed: AugmentedEvent; /** * An account has voted in a referendum **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -331,19 +331,19 @@ declare module '@polkadot/api-base/types/events' { * The election has been finalized, with `Some` of the given computation, or else if the * election failed, `None`. **/ - ElectionFinalized: AugmentedEvent]>; + ElectionFinalized: AugmentedEvent], { electionCompute: Option }>; /** * An account has been rewarded for their signed submission being finalized. **/ - Rewarded: AugmentedEvent; + Rewarded: AugmentedEvent; /** * The signed phase of the given round has started. **/ - SignedPhaseStarted: AugmentedEvent; + SignedPhaseStarted: AugmentedEvent; /** * An account has been slashed for submitting an invalid signed submission. **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * A solution was stored with the given compute. * @@ -352,11 +352,11 @@ declare module '@polkadot/api-base/types/events' { * * The `bool` is `true` when a previous solution was ejected to make room for this one. **/ - SolutionStored: AugmentedEvent; + SolutionStored: AugmentedEvent; /** * The unsigned phase of the given round has started. **/ - UnsignedPhaseStarted: AugmentedEvent; + UnsignedPhaseStarted: AugmentedEvent; /** * Generic event **/ @@ -366,19 +366,19 @@ declare module '@polkadot/api-base/types/events' { /** * A bid was successfully placed. **/ - BidPlaced: AugmentedEvent; + BidPlaced: AugmentedEvent; /** * A bid was successfully removed (before being accepted as a gilt). **/ - BidRetracted: AugmentedEvent; + BidRetracted: AugmentedEvent; /** * A bid was accepted as a gilt. The balance may not be released until expiry. **/ - GiltIssued: AugmentedEvent; + GiltIssued: AugmentedEvent; /** * An expired gilt has been thawed. **/ - GiltThawed: AugmentedEvent; + GiltThawed: AugmentedEvent; /** * Generic event **/ @@ -388,15 +388,15 @@ declare module '@polkadot/api-base/types/events' { /** * New authority set has been applied. **/ - NewAuthorities: AugmentedEvent>]>; + NewAuthorities: AugmentedEvent>], { authoritySet: Vec> }>; /** * Current authority set has been paused. **/ - Paused: AugmentedEvent; + Paused: AugmentedEvent; /** * Current authority set has been resumed. **/ - Resumed: AugmentedEvent; + Resumed: AugmentedEvent; /** * Generic event **/ @@ -406,21 +406,21 @@ declare module '@polkadot/api-base/types/events' { /** * HRMP channel closed. `[by_parachain, channel_id]` **/ - ChannelClosed: AugmentedEvent; + ChannelClosed: AugmentedEvent; /** * Open HRMP channel accepted. `[sender, recipient]` **/ - OpenChannelAccepted: AugmentedEvent; + OpenChannelAccepted: AugmentedEvent; /** * An HRMP channel request sent by the receiver was canceled by either party. * `[by_parachain, channel_id]` **/ - OpenChannelCanceled: AugmentedEvent; + OpenChannelCanceled: AugmentedEvent; /** * Open HRMP channel requested. * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` **/ - OpenChannelRequested: AugmentedEvent; + OpenChannelRequested: AugmentedEvent; /** * Generic event **/ @@ -430,44 +430,44 @@ declare module '@polkadot/api-base/types/events' { /** * A name was cleared, and the given balance returned. **/ - IdentityCleared: AugmentedEvent; + IdentityCleared: AugmentedEvent; /** * A name was removed and the given balance slashed. **/ - IdentityKilled: AugmentedEvent; + IdentityKilled: AugmentedEvent; /** * A name was set or reset (which will remove all judgements). **/ - IdentitySet: AugmentedEvent; + IdentitySet: AugmentedEvent; /** * A judgement was given by a registrar. **/ - JudgementGiven: AugmentedEvent; + JudgementGiven: AugmentedEvent; /** * A judgement was asked from a registrar. **/ - JudgementRequested: AugmentedEvent; + JudgementRequested: AugmentedEvent; /** * A judgement request was retracted. **/ - JudgementUnrequested: AugmentedEvent; + JudgementUnrequested: AugmentedEvent; /** * A registrar was added. **/ - RegistrarAdded: AugmentedEvent; + RegistrarAdded: AugmentedEvent; /** * A sub-identity was added to an identity and the deposit paid. **/ - SubIdentityAdded: AugmentedEvent; + SubIdentityAdded: AugmentedEvent; /** * A sub-identity was removed from an identity and the deposit freed. **/ - SubIdentityRemoved: AugmentedEvent; + SubIdentityRemoved: AugmentedEvent; /** * A sub-identity was cleared, and the given deposit repatriated from the * main identity account to the sub-identity account. **/ - SubIdentityRevoked: AugmentedEvent; + SubIdentityRevoked: AugmentedEvent; /** * Generic event **/ @@ -477,15 +477,15 @@ declare module '@polkadot/api-base/types/events' { /** * At the end of the session, no offence was committed. **/ - AllGood: AugmentedEvent; + AllGood: AugmentedEvent; /** * A new heartbeat was received from `AuthorityId`. **/ - HeartbeatReceived: AugmentedEvent; + HeartbeatReceived: AugmentedEvent; /** * At the end of the session, at least one validator was found to be offline. **/ - SomeOffline: AugmentedEvent>]>; + SomeOffline: AugmentedEvent>], { offline: Vec> }>; /** * Generic event **/ @@ -495,15 +495,15 @@ declare module '@polkadot/api-base/types/events' { /** * A account index was assigned. **/ - IndexAssigned: AugmentedEvent; + IndexAssigned: AugmentedEvent; /** * A account index has been freed up (unassigned). **/ - IndexFreed: AugmentedEvent; + IndexFreed: AugmentedEvent; /** * A account index has been frozen to its current account ID. **/ - IndexFrozen: AugmentedEvent; + IndexFrozen: AugmentedEvent; /** * Generic event **/ @@ -513,19 +513,19 @@ declare module '@polkadot/api-base/types/events' { /** * A multisig operation has been approved by someone. **/ - MultisigApproval: AugmentedEvent; + MultisigApproval: AugmentedEvent; /** * A multisig operation has been cancelled. **/ - MultisigCancelled: AugmentedEvent; + MultisigCancelled: AugmentedEvent; /** * A multisig operation has been executed. **/ - MultisigExecuted: AugmentedEvent]>; + MultisigExecuted: AugmentedEvent], { approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed, result: Result }>; /** * A new multisig operation has begun. **/ - NewMultisig: AugmentedEvent; + NewMultisig: AugmentedEvent; /** * Generic event **/ @@ -535,42 +535,42 @@ declare module '@polkadot/api-base/types/events' { /** * A member has became bonded in a pool. **/ - Bonded: AugmentedEvent; + Bonded: AugmentedEvent; /** * A pool has been created. **/ - Created: AugmentedEvent; + Created: AugmentedEvent; /** * A pool has been destroyed. **/ - Destroyed: AugmentedEvent; + Destroyed: AugmentedEvent; /** * A member has been removed from a pool. * * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). **/ - MemberRemoved: AugmentedEvent; + MemberRemoved: AugmentedEvent; /** * A payout has been made to a member. **/ - PaidOut: AugmentedEvent; + PaidOut: AugmentedEvent; /** * The roles of a pool have been updated to the given new roles. Note that the depositor * can never change. **/ - RolesUpdated: AugmentedEvent, Option, Option]>; + RolesUpdated: AugmentedEvent, Option, Option], { root: Option, stateToggler: Option, nominator: Option }>; /** * The state of a pool has changed **/ - StateChanged: AugmentedEvent; + StateChanged: AugmentedEvent; /** * A member has unbonded from their pool. **/ - Unbonded: AugmentedEvent; + Unbonded: AugmentedEvent; /** * A member has withdrawn from their pool. **/ - Withdrawn: AugmentedEvent; + Withdrawn: AugmentedEvent; /** * Generic event **/ @@ -582,7 +582,7 @@ declare module '@polkadot/api-base/types/events' { * (kind-specific) time slot. This event is not deposited for duplicate slashes. * \[kind, timeslot\]. **/ - Offence: AugmentedEvent; + Offence: AugmentedEvent; /** * Generic event **/ @@ -592,15 +592,15 @@ declare module '@polkadot/api-base/types/events' { /** * A candidate was backed. `[candidate, head_data]` **/ - CandidateBacked: AugmentedEvent; + CandidateBacked: AugmentedEvent; /** * A candidate was included. `[candidate, head_data]` **/ - CandidateIncluded: AugmentedEvent; + CandidateIncluded: AugmentedEvent; /** * A candidate timed out. `[candidate, head_data]` **/ - CandidateTimedOut: AugmentedEvent; + CandidateTimedOut: AugmentedEvent; /** * Generic event **/ @@ -610,38 +610,38 @@ declare module '@polkadot/api-base/types/events' { /** * A para has been queued to execute pending actions. `para_id` **/ - ActionQueued: AugmentedEvent; + ActionQueued: AugmentedEvent; /** * A code upgrade has been scheduled for a Para. `para_id` **/ - CodeUpgradeScheduled: AugmentedEvent; + CodeUpgradeScheduled: AugmentedEvent; /** * Current code has been updated for a Para. `para_id` **/ - CurrentCodeUpdated: AugmentedEvent; + CurrentCodeUpdated: AugmentedEvent; /** * Current head has been updated for a Para. `para_id` **/ - CurrentHeadUpdated: AugmentedEvent; + CurrentHeadUpdated: AugmentedEvent; /** * A new head has been noted for a Para. `para_id` **/ - NewHeadNoted: AugmentedEvent; + NewHeadNoted: AugmentedEvent; /** * The given validation code was accepted by the PVF pre-checking vote. * `code_hash` `para_id` **/ - PvfCheckAccepted: AugmentedEvent; + PvfCheckAccepted: AugmentedEvent; /** * The given validation code was rejected by the PVF pre-checking vote. * `code_hash` `para_id` **/ - PvfCheckRejected: AugmentedEvent; + PvfCheckRejected: AugmentedEvent; /** * The given para either initiated or subscribed to a PVF check for the given validation * code. `code_hash` `para_id` **/ - PvfCheckStarted: AugmentedEvent; + PvfCheckStarted: AugmentedEvent; /** * Generic event **/ @@ -652,23 +652,23 @@ declare module '@polkadot/api-base/types/events' { * A dispute has concluded for or against a candidate. * `\[para id, candidate hash, dispute result\]` **/ - DisputeConcluded: AugmentedEvent; + DisputeConcluded: AugmentedEvent; /** * A dispute has been initiated. \[candidate hash, dispute location\] **/ - DisputeInitiated: AugmentedEvent; + DisputeInitiated: AugmentedEvent; /** * A dispute has timed out due to insufficient participation. * `\[para id, candidate hash\]` **/ - DisputeTimedOut: AugmentedEvent; + DisputeTimedOut: AugmentedEvent; /** * A dispute has concluded with supermajority against a candidate. * Block authors should no longer build on top of this head and should * instead revert the block at the given height. This should be the * number of the child of the last known valid block in the chain. **/ - Revert: AugmentedEvent; + Revert: AugmentedEvent; /** * Generic event **/ @@ -681,21 +681,21 @@ declare module '@polkadot/api-base/types/events' { * * Note that old members and runners-up are also candidates. **/ - CandidateSlashed: AugmentedEvent; + CandidateSlashed: AugmentedEvent; /** * Internal error happened while trying to perform election. **/ - ElectionError: AugmentedEvent; + ElectionError: AugmentedEvent; /** * No (or not enough) candidates existed for this round. This is different from * `NewTerm(\[\])`. See the description of `NewTerm`. **/ - EmptyTerm: AugmentedEvent; + EmptyTerm: AugmentedEvent; /** * A member has been removed. This should always be followed by either `NewTerm` or * `EmptyTerm`. **/ - MemberKicked: AugmentedEvent; + MemberKicked: AugmentedEvent; /** * 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 @@ -703,15 +703,15 @@ declare module '@polkadot/api-base/types/events' { * slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to * begin with. **/ - NewTerm: AugmentedEvent>]>; + NewTerm: AugmentedEvent>], { newMembers: Vec> }>; /** * Someone has renounced their candidacy. **/ - Renounced: AugmentedEvent; + Renounced: AugmentedEvent; /** * A seat holder was slashed by amount by being forcefully removed from the set. **/ - SeatHolderSlashed: AugmentedEvent; + SeatHolderSlashed: AugmentedEvent; /** * Generic event **/ @@ -721,15 +721,15 @@ declare module '@polkadot/api-base/types/events' { /** * A preimage has ben cleared. **/ - Cleared: AugmentedEvent; + Cleared: AugmentedEvent; /** * A preimage has been noted. **/ - Noted: AugmentedEvent; + Noted: AugmentedEvent; /** * A preimage has been requested. **/ - Requested: AugmentedEvent; + Requested: AugmentedEvent; /** * Generic event **/ @@ -739,24 +739,24 @@ declare module '@polkadot/api-base/types/events' { /** * An announcement was placed to make a call in the future. **/ - Announced: AugmentedEvent; + Announced: AugmentedEvent; /** * Anonymous account has been created by new proxy with given * disambiguation index and proxy type. **/ - AnonymousCreated: AugmentedEvent; + AnonymousCreated: AugmentedEvent; /** * A proxy was added. **/ - ProxyAdded: AugmentedEvent; + ProxyAdded: AugmentedEvent; /** * A proxy was executed correctly, with the given. **/ - ProxyExecuted: AugmentedEvent]>; + ProxyExecuted: AugmentedEvent], { result: Result }>; /** * A proxy was removed. **/ - ProxyRemoved: AugmentedEvent; + ProxyRemoved: AugmentedEvent; /** * Generic event **/ @@ -766,36 +766,36 @@ declare module '@polkadot/api-base/types/events' { /** * Lost account has been successfully recovered by rescuer account. **/ - AccountRecovered: AugmentedEvent; + AccountRecovered: AugmentedEvent; /** * A recovery process for lost account by rescuer account has been closed. **/ - RecoveryClosed: AugmentedEvent; + RecoveryClosed: AugmentedEvent; /** * A recovery process has been set up for an account. **/ - RecoveryCreated: AugmentedEvent; + RecoveryCreated: AugmentedEvent; /** * A recovery process has been initiated for lost account by rescuer account. **/ - RecoveryInitiated: AugmentedEvent; + RecoveryInitiated: AugmentedEvent; /** * A recovery process has been removed for an account. **/ - RecoveryRemoved: AugmentedEvent; + RecoveryRemoved: AugmentedEvent; /** * A recovery process for lost account by rescuer account has been vouched for by sender. **/ - RecoveryVouched: AugmentedEvent; + RecoveryVouched: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; registrar: { - Deregistered: AugmentedEvent; - Registered: AugmentedEvent; - Reserved: AugmentedEvent; + Deregistered: AugmentedEvent; + Registered: AugmentedEvent; + Reserved: AugmentedEvent; /** * Generic event **/ @@ -805,19 +805,19 @@ declare module '@polkadot/api-base/types/events' { /** * The call for the provided hash was not found so the task has been aborted. **/ - CallLookupFailed: AugmentedEvent, Option, FrameSupportScheduleLookupError]>; + CallLookupFailed: AugmentedEvent, Option, FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option, error: FrameSupportScheduleLookupError }>; /** * Canceled some task. **/ - Canceled: AugmentedEvent; + Canceled: AugmentedEvent; /** * Dispatched some task. **/ - Dispatched: AugmentedEvent, Option, Result]>; + Dispatched: AugmentedEvent, Option, Result], { task: ITuple<[u32, u32]>, id: Option, result: Result }>; /** * Scheduled some task. **/ - Scheduled: AugmentedEvent; + Scheduled: AugmentedEvent; /** * Generic event **/ @@ -828,7 +828,7 @@ declare module '@polkadot/api-base/types/events' { * New session has happened. Note that the argument is the session index, not the * block number as the type might suggest. **/ - NewSession: AugmentedEvent; + NewSession: AugmentedEvent; /** * Generic event **/ @@ -840,11 +840,11 @@ declare module '@polkadot/api-base/types/events' { * First balance is any extra amount reserved on top of the para's existing deposit. * Second balance is the total amount reserved. **/ - Leased: AugmentedEvent; + Leased: AugmentedEvent; /** * A new `[lease_period]` is beginning. **/ - NewLeasePeriod: AugmentedEvent; + NewLeasePeriod: AugmentedEvent; /** * Generic event **/ @@ -854,70 +854,70 @@ declare module '@polkadot/api-base/types/events' { /** * A candidate was dropped (due to an excess of bids in the system). **/ - AutoUnbid: AugmentedEvent; + AutoUnbid: AugmentedEvent; /** * A membership bid just happened. The given account is the candidate's ID and their offer * is the second. **/ - Bid: AugmentedEvent; + Bid: AugmentedEvent; /** * A candidate has been suspended **/ - CandidateSuspended: AugmentedEvent; + CandidateSuspended: AugmentedEvent; /** * A member has been challenged **/ - Challenged: AugmentedEvent; + Challenged: AugmentedEvent; /** * A vote has been placed for a defending member **/ - DefenderVote: AugmentedEvent; + DefenderVote: AugmentedEvent; /** * Some funds were deposited into the society account. **/ - Deposit: AugmentedEvent; + Deposit: AugmentedEvent; /** * The society is founded by the given identity. **/ - Founded: AugmentedEvent; + Founded: AugmentedEvent; /** * A group of candidates have been inducted. The batch's primary is the first value, the * batch in full is the second. **/ - Inducted: AugmentedEvent]>; + Inducted: AugmentedEvent], { primary: AccountId32, candidates: Vec }>; /** * A member has been suspended **/ - MemberSuspended: AugmentedEvent; + MemberSuspended: AugmentedEvent; /** * A new \[max\] member count has been set **/ - NewMaxMembers: AugmentedEvent; + NewMaxMembers: AugmentedEvent; /** * A suspended member has been judged. **/ - SuspendedMemberJudgement: AugmentedEvent; + SuspendedMemberJudgement: AugmentedEvent; /** * A candidate was dropped (by their request). **/ - Unbid: AugmentedEvent; + Unbid: AugmentedEvent; /** * Society is unfounded. **/ - Unfounded: AugmentedEvent; + Unfounded: AugmentedEvent; /** * A candidate was dropped (by request of who vouched for them). **/ - Unvouch: AugmentedEvent; + Unvouch: AugmentedEvent; /** * A vote has been placed **/ - Vote: AugmentedEvent; + Vote: AugmentedEvent; /** * 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. **/ - Vouch: AugmentedEvent; + Vouch: AugmentedEvent; /** * Generic event **/ @@ -930,61 +930,61 @@ declare module '@polkadot/api-base/types/events' { * 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. **/ - Bonded: AugmentedEvent; + Bonded: AugmentedEvent; /** * An account has stopped participating as either a validator or nominator. * \[stash\] **/ - Chilled: AugmentedEvent; + Chilled: AugmentedEvent; /** * 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, validator_payout, remainder\] **/ - EraPaid: AugmentedEvent; + EraPaid: AugmentedEvent; /** * A nominator has been kicked from a validator. \[nominator, stash\] **/ - Kicked: AugmentedEvent; + Kicked: AugmentedEvent; /** * An old slashing report from a prior era was discarded because it could * not be processed. \[session_index\] **/ - OldSlashingReportDiscarded: AugmentedEvent; + OldSlashingReportDiscarded: AugmentedEvent; /** * The stakers' rewards are getting paid. \[era_index, validator_stash\] **/ - PayoutStarted: AugmentedEvent; + PayoutStarted: AugmentedEvent; /** * The nominator has been rewarded by this amount. \[stash, amount\] **/ - Rewarded: AugmentedEvent; + Rewarded: AugmentedEvent; /** * One validator (and its nominators) has been slashed by the given amount. * \[validator, amount\] **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * A new set of stakers was elected. **/ - StakersElected: AugmentedEvent; + StakersElected: AugmentedEvent; /** * The election failed. No new era is planned. **/ - StakingElectionFailed: AugmentedEvent; + StakingElectionFailed: AugmentedEvent; /** * An account has unbonded this amount. \[stash, amount\] **/ - Unbonded: AugmentedEvent; + Unbonded: AugmentedEvent; /** * A validator has set their preferences. **/ - ValidatorPrefsSet: AugmentedEvent; + ValidatorPrefsSet: AugmentedEvent; /** * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` * from the unlocking queue. \[stash, amount\] **/ - Withdrawn: AugmentedEvent; + Withdrawn: AugmentedEvent; /** * Generic event **/ @@ -994,27 +994,27 @@ declare module '@polkadot/api-base/types/events' { /** * `:code` was updated. **/ - CodeUpdated: AugmentedEvent; + CodeUpdated: AugmentedEvent; /** * An extrinsic failed. **/ - ExtrinsicFailed: AugmentedEvent; + ExtrinsicFailed: AugmentedEvent; /** * An extrinsic completed successfully. **/ - ExtrinsicSuccess: AugmentedEvent; + ExtrinsicSuccess: AugmentedEvent; /** * An account was reaped. **/ - KilledAccount: AugmentedEvent; + KilledAccount: AugmentedEvent; /** * A new account was created. **/ - NewAccount: AugmentedEvent; + NewAccount: AugmentedEvent; /** * On on-chain remark happened. **/ - Remarked: AugmentedEvent; + Remarked: AugmentedEvent; /** * Generic event **/ @@ -1024,33 +1024,33 @@ declare module '@polkadot/api-base/types/events' { /** * A motion was approved by the required threshold. **/ - Approved: AugmentedEvent; + Approved: AugmentedEvent; /** * A proposal was closed because its threshold was reached or after its duration was up. **/ - Closed: AugmentedEvent; + Closed: AugmentedEvent; /** * A motion was not approved by the required threshold. **/ - Disapproved: AugmentedEvent; + Disapproved: AugmentedEvent; /** * A motion was executed; result will be `Ok` if it returned without error. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A single member did some action; result will be `Ok` if it returned without error. **/ - MemberExecuted: AugmentedEvent]>; + MemberExecuted: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A motion (given hash) has been voted on by given account, leaving * a tally (yes votes and no votes given respectively as `MemberCount`). **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -1060,27 +1060,27 @@ declare module '@polkadot/api-base/types/events' { /** * Phantom member, never used. **/ - Dummy: AugmentedEvent; + Dummy: AugmentedEvent; /** * One of the members' keys changed. **/ - KeyChanged: AugmentedEvent; + KeyChanged: AugmentedEvent; /** * The given member was added; see the transaction for who. **/ - MemberAdded: AugmentedEvent; + MemberAdded: AugmentedEvent; /** * The given member was removed; see the transaction for who. **/ - MemberRemoved: AugmentedEvent; + MemberRemoved: AugmentedEvent; /** * The membership was reset; see the transaction for who the new set is. **/ - MembersReset: AugmentedEvent; + MembersReset: AugmentedEvent; /** * Two members were swapped; see the transaction for who. **/ - MembersSwapped: AugmentedEvent; + MembersSwapped: AugmentedEvent; /** * Generic event **/ @@ -1090,23 +1090,23 @@ declare module '@polkadot/api-base/types/events' { /** * A new tip suggestion has been opened. **/ - NewTip: AugmentedEvent; + NewTip: AugmentedEvent; /** * A tip suggestion has been closed. **/ - TipClosed: AugmentedEvent; + TipClosed: AugmentedEvent; /** * A tip suggestion has reached threshold and is closing. **/ - TipClosing: AugmentedEvent; + TipClosing: AugmentedEvent; /** * A tip suggestion has been retracted. **/ - TipRetracted: AugmentedEvent; + TipRetracted: AugmentedEvent; /** * A tip suggestion has been slashed. **/ - TipSlashed: AugmentedEvent; + TipSlashed: AugmentedEvent; /** * Generic event **/ @@ -1116,31 +1116,31 @@ declare module '@polkadot/api-base/types/events' { /** * Some funds have been allocated. **/ - Awarded: AugmentedEvent; + Awarded: AugmentedEvent; /** * Some of our funds have been burnt. **/ - Burnt: AugmentedEvent; + Burnt: AugmentedEvent; /** * Some funds have been deposited. **/ - Deposit: AugmentedEvent; + Deposit: AugmentedEvent; /** * New proposal. **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A proposal was rejected; funds were slashed. **/ - Rejected: AugmentedEvent; + Rejected: AugmentedEvent; /** * Spending has finished; this is the amount that rolls over until next spend. **/ - Rollover: AugmentedEvent; + Rollover: AugmentedEvent; /** * We have ended a spend period and will now allocate funds. **/ - Spending: AugmentedEvent; + Spending: AugmentedEvent; /** * Generic event **/ @@ -1151,12 +1151,12 @@ declare module '@polkadot/api-base/types/events' { * Upward message executed with the given outcome. * \[ id, outcome \] **/ - ExecutedUpward: AugmentedEvent; + ExecutedUpward: AugmentedEvent; /** * Upward message is invalid XCM. * \[ id \] **/ - InvalidFormat: AugmentedEvent; + InvalidFormat: AugmentedEvent; /** * The weight budget was exceeded for an individual upward message. * @@ -1165,29 +1165,29 @@ declare module '@polkadot/api-base/types/events' { * * \[ para, id, overweight_index, required \] **/ - OverweightEnqueued: AugmentedEvent; + OverweightEnqueued: AugmentedEvent; /** * Upward message from the overweight queue was executed with the given actual weight * used. * * \[ overweight_index, used \] **/ - OverweightServiced: AugmentedEvent; + OverweightServiced: AugmentedEvent; /** * Upward message is unsupported version of XCM. * \[ id \] **/ - UnsupportedVersion: AugmentedEvent; + UnsupportedVersion: AugmentedEvent; /** * Some upward messages have been received and will be processed. * \[ para, count, size \] **/ - UpwardMessagesReceived: AugmentedEvent; + UpwardMessagesReceived: AugmentedEvent; /** * The weight limit for handling upward messages was reached. * \[ id, remaining, required \] **/ - WeightExhausted: AugmentedEvent; + WeightExhausted: AugmentedEvent; /** * Generic event **/ @@ -1197,28 +1197,28 @@ declare module '@polkadot/api-base/types/events' { /** * Batch of dispatches completed fully with no error. **/ - BatchCompleted: AugmentedEvent; + BatchCompleted: AugmentedEvent; /** * Batch of dispatches completed but has errors. **/ - BatchCompletedWithErrors: AugmentedEvent; + BatchCompletedWithErrors: AugmentedEvent; /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. **/ - BatchInterrupted: AugmentedEvent; + BatchInterrupted: AugmentedEvent; /** * A call was dispatched. **/ - DispatchedAs: AugmentedEvent]>; + DispatchedAs: AugmentedEvent], { result: Result }>; /** * A single item within a Batch of dispatches has completed with no error. **/ - ItemCompleted: AugmentedEvent; + ItemCompleted: AugmentedEvent; /** * A single item within a Batch of dispatches has completed with error. **/ - ItemFailed: AugmentedEvent; + ItemFailed: AugmentedEvent; /** * Generic event **/ @@ -1228,12 +1228,12 @@ declare module '@polkadot/api-base/types/events' { /** * An \[account\] has become fully vested. **/ - VestingCompleted: AugmentedEvent; + VestingCompleted: AugmentedEvent; /** * 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). **/ - VestingUpdated: AugmentedEvent; + VestingUpdated: AugmentedEvent; /** * Generic event **/ @@ -1243,11 +1243,11 @@ declare module '@polkadot/api-base/types/events' { /** * Moved an account from one bag to another. **/ - Rebagged: AugmentedEvent; + Rebagged: AugmentedEvent; /** * Updated the score of some account to the given amount. **/ - ScoreUpdated: AugmentedEvent; + ScoreUpdated: AugmentedEvent; /** * Generic event **/ @@ -1259,13 +1259,13 @@ declare module '@polkadot/api-base/types/events' { * * \[ hash, origin, assets \] **/ - AssetsTrapped: AugmentedEvent; + AssetsTrapped: AugmentedEvent; /** * Execution of an XCM message was attempted. * * \[ outcome \] **/ - Attempted: AugmentedEvent; + Attempted: AugmentedEvent; /** * Expected query response has been received but the origin location of the response does * not match that expected. The query remains registered for a later, valid, response to @@ -1273,7 +1273,7 @@ declare module '@polkadot/api-base/types/events' { * * \[ origin location, id, expected location \] **/ - InvalidResponder: AugmentedEvent]>; + InvalidResponder: AugmentedEvent], {}>; /** * Expected query response has been received but the expected origin location placed in * storage by this runtime previously cannot be decoded. The query remains registered. @@ -1285,14 +1285,14 @@ declare module '@polkadot/api-base/types/events' { * * \[ origin location, id \] **/ - InvalidResponderVersion: AugmentedEvent; + InvalidResponderVersion: AugmentedEvent; /** * Query response has been received and query is removed. The registered notification has * been dispatched and executed successfully. * * \[ id, pallet index, call index \] **/ - Notified: AugmentedEvent; + Notified: AugmentedEvent; /** * Query response has been received and query is removed. The dispatch was unable to be * decoded into a `Call`; this might be due to dispatch function having a signature which @@ -1300,14 +1300,14 @@ declare module '@polkadot/api-base/types/events' { * * \[ id, pallet index, call index \] **/ - NotifyDecodeFailed: AugmentedEvent; + NotifyDecodeFailed: AugmentedEvent; /** * Query response has been received and query is removed. There was a general error with * dispatching the notification call. * * \[ id, pallet index, call index \] **/ - NotifyDispatchError: AugmentedEvent; + NotifyDispatchError: AugmentedEvent; /** * Query response has been received and query is removed. The registered notification could * not be dispatched because the dispatch weight is greater than the maximum weight @@ -1315,47 +1315,47 @@ declare module '@polkadot/api-base/types/events' { * * \[ id, pallet index, call index, actual weight, max budgeted weight \] **/ - NotifyOverweight: AugmentedEvent; + NotifyOverweight: AugmentedEvent; /** * A given location which had a version change subscription was dropped owing to an error * migrating the location to our new XCM format. * * \[ location, query ID \] **/ - NotifyTargetMigrationFail: AugmentedEvent; + NotifyTargetMigrationFail: AugmentedEvent; /** * A given location which had a version change subscription was dropped owing to an error * sending the notification to it. * * \[ location, query ID, error \] **/ - NotifyTargetSendFail: AugmentedEvent; + NotifyTargetSendFail: AugmentedEvent; /** * Query response has been received and is ready for taking with `take_response`. There is * no registered notification call. * * \[ id, response \] **/ - ResponseReady: AugmentedEvent; + ResponseReady: AugmentedEvent; /** * Received query response has been read and removed. * * \[ id \] **/ - ResponseTaken: AugmentedEvent; + ResponseTaken: AugmentedEvent; /** * A XCM message was sent. * * \[ origin, destination, message \] **/ - Sent: AugmentedEvent; + Sent: AugmentedEvent; /** * The supported version of a location has been changed. This might be through an * automatic notification or a manual intervention. * * \[ location, XCM version \] **/ - SupportedVersionChanged: AugmentedEvent; + SupportedVersionChanged: AugmentedEvent; /** * Query response received which does not match a registered query. This may be because a * matching query was never registered, it may be because it is a duplicate response, or @@ -1363,13 +1363,13 @@ declare module '@polkadot/api-base/types/events' { * * \[ origin location, id \] **/ - UnexpectedResponse: AugmentedEvent; + UnexpectedResponse: AugmentedEvent; /** * An XCM version change notification message has been attempted to be sent. * * \[ destination, result \] **/ - VersionChangeNotified: AugmentedEvent; + VersionChangeNotified: AugmentedEvent; /** * Generic event **/ diff --git a/packages/api-augment/src/polkadot/events.ts b/packages/api-augment/src/polkadot/events.ts index fc09af6d17..825913c997 100644 --- a/packages/api-augment/src/polkadot/events.ts +++ b/packages/api-augment/src/polkadot/events.ts @@ -14,34 +14,34 @@ declare module '@polkadot/api-base/types/events' { /** * An auction ended. All funds become unreserved. **/ - AuctionClosed: AugmentedEvent; + AuctionClosed: AugmentedEvent; /** * An auction started. Provides its index and the block number where it will begin to * close and the first lease period of the quadruplet that is auctioned. **/ - AuctionStarted: AugmentedEvent; + AuctionStarted: AugmentedEvent; /** * A new bid has been accepted as the current winner. **/ - BidAccepted: AugmentedEvent; + BidAccepted: AugmentedEvent; /** * Someone attempted to lease the same slot twice for a parachain. The amount is held in reserve * but no parachain slot has been leased. **/ - ReserveConfiscated: AugmentedEvent; + ReserveConfiscated: AugmentedEvent; /** * Funds were reserved for a winning bid. First balance is the extra amount reserved. * Second is the total. **/ - Reserved: AugmentedEvent; + Reserved: AugmentedEvent; /** * Funds were unreserved since bidder is no longer active. `[bidder, amount]` **/ - Unreserved: AugmentedEvent; + Unreserved: AugmentedEvent; /** * The winning offset was chosen for an auction. This will map into the `Winning` storage map. **/ - WinningOffset: AugmentedEvent; + WinningOffset: AugmentedEvent; /** * Generic event **/ @@ -51,45 +51,45 @@ declare module '@polkadot/api-base/types/events' { /** * A balance was set by root. **/ - BalanceSet: AugmentedEvent; + BalanceSet: AugmentedEvent; /** * Some amount was deposited (e.g. for transaction fees). **/ - Deposit: AugmentedEvent; + Deposit: AugmentedEvent; /** * An account was removed whose balance was non-zero but below ExistentialDeposit, * resulting in an outright loss. **/ - DustLost: AugmentedEvent; + DustLost: AugmentedEvent; /** * An account was created with some free balance. **/ - Endowed: AugmentedEvent; + Endowed: AugmentedEvent; /** * Some balance was reserved (moved from free to reserved). **/ - Reserved: AugmentedEvent; + Reserved: AugmentedEvent; /** * Some balance was moved from the reserve of the first account to the second account. * Final argument indicates the destination balance type. **/ - ReserveRepatriated: AugmentedEvent; + ReserveRepatriated: AugmentedEvent; /** * Some amount was removed from the account (e.g. for misbehavior). **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * Transfer succeeded. **/ - Transfer: AugmentedEvent; + Transfer: AugmentedEvent; /** * Some balance was unreserved (moved from reserved to free). **/ - Unreserved: AugmentedEvent; + Unreserved: AugmentedEvent; /** * Some amount was withdrawn from the account (e.g. for transaction fees). **/ - Withdraw: AugmentedEvent; + Withdraw: AugmentedEvent; /** * Generic event **/ @@ -99,31 +99,31 @@ declare module '@polkadot/api-base/types/events' { /** * A bounty is awarded to a beneficiary. **/ - BountyAwarded: AugmentedEvent; + BountyAwarded: AugmentedEvent; /** * A bounty proposal is funded and became active. **/ - BountyBecameActive: AugmentedEvent; + BountyBecameActive: AugmentedEvent; /** * A bounty is cancelled. **/ - BountyCanceled: AugmentedEvent; + BountyCanceled: AugmentedEvent; /** * A bounty is claimed by beneficiary. **/ - BountyClaimed: AugmentedEvent; + BountyClaimed: AugmentedEvent; /** * A bounty expiry is extended. **/ - BountyExtended: AugmentedEvent; + BountyExtended: AugmentedEvent; /** * New bounty proposal. **/ - BountyProposed: AugmentedEvent; + BountyProposed: AugmentedEvent; /** * A bounty proposal was rejected; funds were slashed. **/ - BountyRejected: AugmentedEvent; + BountyRejected: AugmentedEvent; /** * Generic event **/ @@ -133,19 +133,19 @@ declare module '@polkadot/api-base/types/events' { /** * A child-bounty is added. **/ - Added: AugmentedEvent; + Added: AugmentedEvent; /** * A child-bounty is awarded to a beneficiary. **/ - Awarded: AugmentedEvent; + Awarded: AugmentedEvent; /** * A child-bounty is cancelled. **/ - Canceled: AugmentedEvent; + Canceled: AugmentedEvent; /** * A child-bounty is claimed by beneficiary. **/ - Claimed: AugmentedEvent; + Claimed: AugmentedEvent; /** * Generic event **/ @@ -155,7 +155,7 @@ declare module '@polkadot/api-base/types/events' { /** * Someone claimed some DOTs. **/ - Claimed: AugmentedEvent; + Claimed: AugmentedEvent; /** * Generic event **/ @@ -165,33 +165,33 @@ declare module '@polkadot/api-base/types/events' { /** * A motion was approved by the required threshold. **/ - Approved: AugmentedEvent; + Approved: AugmentedEvent; /** * A proposal was closed because its threshold was reached or after its duration was up. **/ - Closed: AugmentedEvent; + Closed: AugmentedEvent; /** * A motion was not approved by the required threshold. **/ - Disapproved: AugmentedEvent; + Disapproved: AugmentedEvent; /** * A motion was executed; result will be `Ok` if it returned without error. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A single member did some action; result will be `Ok` if it returned without error. **/ - MemberExecuted: AugmentedEvent]>; + MemberExecuted: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A motion (given hash) has been voted on by given account, leaving * a tally (yes votes and no votes given respectively as `MemberCount`). **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -201,44 +201,44 @@ declare module '@polkadot/api-base/types/events' { /** * A parachain has been moved to `NewRaise` **/ - AddedToNewRaise: AugmentedEvent; + AddedToNewRaise: AugmentedEvent; /** * All loans in a fund have been refunded. **/ - AllRefunded: AugmentedEvent; + AllRefunded: AugmentedEvent; /** * Contributed to a crowd sale. **/ - Contributed: AugmentedEvent; + Contributed: AugmentedEvent; /** * Create a new crowdloaning campaign. **/ - Created: AugmentedEvent; + Created: AugmentedEvent; /** * Fund is dissolved. **/ - Dissolved: AugmentedEvent; + Dissolved: AugmentedEvent; /** * The configuration to a crowdloan has been edited. **/ - Edited: AugmentedEvent; + Edited: AugmentedEvent; /** * The result of trying to submit a new bid to the Slots pallet. **/ - HandleBidResult: AugmentedEvent]>; + HandleBidResult: AugmentedEvent], { paraId: u32, result: Result }>; /** * A memo has been updated. **/ - MemoUpdated: AugmentedEvent; + MemoUpdated: AugmentedEvent; /** * The loans in a fund have been partially dissolved, i.e. there are some left * over child keys that still need to be killed. **/ - PartiallyRefunded: AugmentedEvent; + PartiallyRefunded: AugmentedEvent; /** * Withdrew full balance of a contributor. **/ - Withdrew: AugmentedEvent; + Withdrew: AugmentedEvent; /** * Generic event **/ @@ -248,79 +248,79 @@ declare module '@polkadot/api-base/types/events' { /** * A proposal_hash has been blacklisted permanently. **/ - Blacklisted: AugmentedEvent; + Blacklisted: AugmentedEvent; /** * A referendum has been cancelled. **/ - Cancelled: AugmentedEvent; + Cancelled: AugmentedEvent; /** * An account has delegated their vote to another account. **/ - Delegated: AugmentedEvent; + Delegated: AugmentedEvent; /** * A proposal has been enacted. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { refIndex: u32, result: Result }>; /** * An external proposal has been tabled. **/ - ExternalTabled: AugmentedEvent; + ExternalTabled: AugmentedEvent; /** * A proposal has been rejected by referendum. **/ - NotPassed: AugmentedEvent; + NotPassed: AugmentedEvent; /** * A proposal has been approved by referendum. **/ - Passed: AugmentedEvent; + Passed: AugmentedEvent; /** * A proposal could not be executed because its preimage was invalid. **/ - PreimageInvalid: AugmentedEvent; + PreimageInvalid: AugmentedEvent; /** * A proposal could not be executed because its preimage was missing. **/ - PreimageMissing: AugmentedEvent; + PreimageMissing: AugmentedEvent; /** * A proposal's preimage was noted, and the deposit taken. **/ - PreimageNoted: AugmentedEvent; + PreimageNoted: AugmentedEvent; /** * A registered preimage was removed and the deposit collected by the reaper. **/ - PreimageReaped: AugmentedEvent; + PreimageReaped: AugmentedEvent; /** * A proposal preimage was removed and used (the deposit was returned). **/ - PreimageUsed: AugmentedEvent; + PreimageUsed: AugmentedEvent; /** * A motion has been proposed by a public account. **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * An account has secconded a proposal **/ - Seconded: AugmentedEvent; + Seconded: AugmentedEvent; /** * A referendum has begun. **/ - Started: AugmentedEvent; + Started: AugmentedEvent; /** * A public proposal has been tabled for referendum vote. **/ - Tabled: AugmentedEvent]>; + Tabled: AugmentedEvent], { proposalIndex: u32, deposit: u128, depositors: Vec }>; /** * An account has cancelled a previous delegation operation. **/ - Undelegated: AugmentedEvent; + Undelegated: AugmentedEvent; /** * An external proposal has been vetoed. **/ - Vetoed: AugmentedEvent; + Vetoed: AugmentedEvent; /** * An account has voted in a referendum **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -331,19 +331,19 @@ declare module '@polkadot/api-base/types/events' { * The election has been finalized, with `Some` of the given computation, or else if the * election failed, `None`. **/ - ElectionFinalized: AugmentedEvent]>; + ElectionFinalized: AugmentedEvent], { electionCompute: Option }>; /** * An account has been rewarded for their signed submission being finalized. **/ - Rewarded: AugmentedEvent; + Rewarded: AugmentedEvent; /** * The signed phase of the given round has started. **/ - SignedPhaseStarted: AugmentedEvent; + SignedPhaseStarted: AugmentedEvent; /** * An account has been slashed for submitting an invalid signed submission. **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * A solution was stored with the given compute. * @@ -352,11 +352,11 @@ declare module '@polkadot/api-base/types/events' { * * The `bool` is `true` when a previous solution was ejected to make room for this one. **/ - SolutionStored: AugmentedEvent; + SolutionStored: AugmentedEvent; /** * The unsigned phase of the given round has started. **/ - UnsignedPhaseStarted: AugmentedEvent; + UnsignedPhaseStarted: AugmentedEvent; /** * Generic event **/ @@ -366,15 +366,15 @@ declare module '@polkadot/api-base/types/events' { /** * New authority set has been applied. **/ - NewAuthorities: AugmentedEvent>]>; + NewAuthorities: AugmentedEvent>], { authoritySet: Vec> }>; /** * Current authority set has been paused. **/ - Paused: AugmentedEvent; + Paused: AugmentedEvent; /** * Current authority set has been resumed. **/ - Resumed: AugmentedEvent; + Resumed: AugmentedEvent; /** * Generic event **/ @@ -384,21 +384,21 @@ declare module '@polkadot/api-base/types/events' { /** * HRMP channel closed. `[by_parachain, channel_id]` **/ - ChannelClosed: AugmentedEvent; + ChannelClosed: AugmentedEvent; /** * Open HRMP channel accepted. `[sender, recipient]` **/ - OpenChannelAccepted: AugmentedEvent; + OpenChannelAccepted: AugmentedEvent; /** * An HRMP channel request sent by the receiver was canceled by either party. * `[by_parachain, channel_id]` **/ - OpenChannelCanceled: AugmentedEvent; + OpenChannelCanceled: AugmentedEvent; /** * Open HRMP channel requested. * `[sender, recipient, proposed_max_capacity, proposed_max_message_size]` **/ - OpenChannelRequested: AugmentedEvent; + OpenChannelRequested: AugmentedEvent; /** * Generic event **/ @@ -408,44 +408,44 @@ declare module '@polkadot/api-base/types/events' { /** * A name was cleared, and the given balance returned. **/ - IdentityCleared: AugmentedEvent; + IdentityCleared: AugmentedEvent; /** * A name was removed and the given balance slashed. **/ - IdentityKilled: AugmentedEvent; + IdentityKilled: AugmentedEvent; /** * A name was set or reset (which will remove all judgements). **/ - IdentitySet: AugmentedEvent; + IdentitySet: AugmentedEvent; /** * A judgement was given by a registrar. **/ - JudgementGiven: AugmentedEvent; + JudgementGiven: AugmentedEvent; /** * A judgement was asked from a registrar. **/ - JudgementRequested: AugmentedEvent; + JudgementRequested: AugmentedEvent; /** * A judgement request was retracted. **/ - JudgementUnrequested: AugmentedEvent; + JudgementUnrequested: AugmentedEvent; /** * A registrar was added. **/ - RegistrarAdded: AugmentedEvent; + RegistrarAdded: AugmentedEvent; /** * A sub-identity was added to an identity and the deposit paid. **/ - SubIdentityAdded: AugmentedEvent; + SubIdentityAdded: AugmentedEvent; /** * A sub-identity was removed from an identity and the deposit freed. **/ - SubIdentityRemoved: AugmentedEvent; + SubIdentityRemoved: AugmentedEvent; /** * A sub-identity was cleared, and the given deposit repatriated from the * main identity account to the sub-identity account. **/ - SubIdentityRevoked: AugmentedEvent; + SubIdentityRevoked: AugmentedEvent; /** * Generic event **/ @@ -455,15 +455,15 @@ declare module '@polkadot/api-base/types/events' { /** * At the end of the session, no offence was committed. **/ - AllGood: AugmentedEvent; + AllGood: AugmentedEvent; /** * A new heartbeat was received from `AuthorityId`. **/ - HeartbeatReceived: AugmentedEvent; + HeartbeatReceived: AugmentedEvent; /** * At the end of the session, at least one validator was found to be offline. **/ - SomeOffline: AugmentedEvent>]>; + SomeOffline: AugmentedEvent>], { offline: Vec> }>; /** * Generic event **/ @@ -473,15 +473,15 @@ declare module '@polkadot/api-base/types/events' { /** * A account index was assigned. **/ - IndexAssigned: AugmentedEvent; + IndexAssigned: AugmentedEvent; /** * A account index has been freed up (unassigned). **/ - IndexFreed: AugmentedEvent; + IndexFreed: AugmentedEvent; /** * A account index has been frozen to its current account ID. **/ - IndexFrozen: AugmentedEvent; + IndexFrozen: AugmentedEvent; /** * Generic event **/ @@ -491,19 +491,19 @@ declare module '@polkadot/api-base/types/events' { /** * A multisig operation has been approved by someone. **/ - MultisigApproval: AugmentedEvent; + MultisigApproval: AugmentedEvent; /** * A multisig operation has been cancelled. **/ - MultisigCancelled: AugmentedEvent; + MultisigCancelled: AugmentedEvent; /** * A multisig operation has been executed. **/ - MultisigExecuted: AugmentedEvent]>; + MultisigExecuted: AugmentedEvent], { approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed, result: Result }>; /** * A new multisig operation has begun. **/ - NewMultisig: AugmentedEvent; + NewMultisig: AugmentedEvent; /** * Generic event **/ @@ -515,7 +515,7 @@ declare module '@polkadot/api-base/types/events' { * (kind-specific) time slot. This event is not deposited for duplicate slashes. * \[kind, timeslot\]. **/ - Offence: AugmentedEvent; + Offence: AugmentedEvent; /** * Generic event **/ @@ -525,15 +525,15 @@ declare module '@polkadot/api-base/types/events' { /** * A candidate was backed. `[candidate, head_data]` **/ - CandidateBacked: AugmentedEvent; + CandidateBacked: AugmentedEvent; /** * A candidate was included. `[candidate, head_data]` **/ - CandidateIncluded: AugmentedEvent; + CandidateIncluded: AugmentedEvent; /** * A candidate timed out. `[candidate, head_data]` **/ - CandidateTimedOut: AugmentedEvent; + CandidateTimedOut: AugmentedEvent; /** * Generic event **/ @@ -543,38 +543,38 @@ declare module '@polkadot/api-base/types/events' { /** * A para has been queued to execute pending actions. `para_id` **/ - ActionQueued: AugmentedEvent; + ActionQueued: AugmentedEvent; /** * A code upgrade has been scheduled for a Para. `para_id` **/ - CodeUpgradeScheduled: AugmentedEvent; + CodeUpgradeScheduled: AugmentedEvent; /** * Current code has been updated for a Para. `para_id` **/ - CurrentCodeUpdated: AugmentedEvent; + CurrentCodeUpdated: AugmentedEvent; /** * Current head has been updated for a Para. `para_id` **/ - CurrentHeadUpdated: AugmentedEvent; + CurrentHeadUpdated: AugmentedEvent; /** * A new head has been noted for a Para. `para_id` **/ - NewHeadNoted: AugmentedEvent; + NewHeadNoted: AugmentedEvent; /** * The given validation code was accepted by the PVF pre-checking vote. * `code_hash` `para_id` **/ - PvfCheckAccepted: AugmentedEvent; + PvfCheckAccepted: AugmentedEvent; /** * The given validation code was rejected by the PVF pre-checking vote. * `code_hash` `para_id` **/ - PvfCheckRejected: AugmentedEvent; + PvfCheckRejected: AugmentedEvent; /** * The given para either initiated or subscribed to a PVF check for the given validation * code. `code_hash` `para_id` **/ - PvfCheckStarted: AugmentedEvent; + PvfCheckStarted: AugmentedEvent; /** * Generic event **/ @@ -585,23 +585,23 @@ declare module '@polkadot/api-base/types/events' { * A dispute has concluded for or against a candidate. * `\[para id, candidate hash, dispute result\]` **/ - DisputeConcluded: AugmentedEvent; + DisputeConcluded: AugmentedEvent; /** * A dispute has been initiated. \[candidate hash, dispute location\] **/ - DisputeInitiated: AugmentedEvent; + DisputeInitiated: AugmentedEvent; /** * A dispute has timed out due to insufficient participation. * `\[para id, candidate hash\]` **/ - DisputeTimedOut: AugmentedEvent; + DisputeTimedOut: AugmentedEvent; /** * A dispute has concluded with supermajority against a candidate. * Block authors should no longer build on top of this head and should * instead revert the block at the given height. This should be the * number of the child of the last known valid block in the chain. **/ - Revert: AugmentedEvent; + Revert: AugmentedEvent; /** * Generic event **/ @@ -614,21 +614,21 @@ declare module '@polkadot/api-base/types/events' { * * Note that old members and runners-up are also candidates. **/ - CandidateSlashed: AugmentedEvent; + CandidateSlashed: AugmentedEvent; /** * Internal error happened while trying to perform election. **/ - ElectionError: AugmentedEvent; + ElectionError: AugmentedEvent; /** * No (or not enough) candidates existed for this round. This is different from * `NewTerm(\[\])`. See the description of `NewTerm`. **/ - EmptyTerm: AugmentedEvent; + EmptyTerm: AugmentedEvent; /** * A member has been removed. This should always be followed by either `NewTerm` or * `EmptyTerm`. **/ - MemberKicked: AugmentedEvent; + MemberKicked: AugmentedEvent; /** * 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 @@ -636,15 +636,15 @@ declare module '@polkadot/api-base/types/events' { * slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to * begin with. **/ - NewTerm: AugmentedEvent>]>; + NewTerm: AugmentedEvent>], { newMembers: Vec> }>; /** * Someone has renounced their candidacy. **/ - Renounced: AugmentedEvent; + Renounced: AugmentedEvent; /** * A seat holder was slashed by amount by being forcefully removed from the set. **/ - SeatHolderSlashed: AugmentedEvent; + SeatHolderSlashed: AugmentedEvent; /** * Generic event **/ @@ -654,15 +654,15 @@ declare module '@polkadot/api-base/types/events' { /** * A preimage has ben cleared. **/ - Cleared: AugmentedEvent; + Cleared: AugmentedEvent; /** * A preimage has been noted. **/ - Noted: AugmentedEvent; + Noted: AugmentedEvent; /** * A preimage has been requested. **/ - Requested: AugmentedEvent; + Requested: AugmentedEvent; /** * Generic event **/ @@ -672,33 +672,33 @@ declare module '@polkadot/api-base/types/events' { /** * An announcement was placed to make a call in the future. **/ - Announced: AugmentedEvent; + Announced: AugmentedEvent; /** * Anonymous account has been created by new proxy with given * disambiguation index and proxy type. **/ - AnonymousCreated: AugmentedEvent; + AnonymousCreated: AugmentedEvent; /** * A proxy was added. **/ - ProxyAdded: AugmentedEvent; + ProxyAdded: AugmentedEvent; /** * A proxy was executed correctly, with the given. **/ - ProxyExecuted: AugmentedEvent]>; + ProxyExecuted: AugmentedEvent], { result: Result }>; /** * A proxy was removed. **/ - ProxyRemoved: AugmentedEvent; + ProxyRemoved: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; registrar: { - Deregistered: AugmentedEvent; - Registered: AugmentedEvent; - Reserved: AugmentedEvent; + Deregistered: AugmentedEvent; + Registered: AugmentedEvent; + Reserved: AugmentedEvent; /** * Generic event **/ @@ -708,19 +708,19 @@ declare module '@polkadot/api-base/types/events' { /** * The call for the provided hash was not found so the task has been aborted. **/ - CallLookupFailed: AugmentedEvent, Option, FrameSupportScheduleLookupError]>; + CallLookupFailed: AugmentedEvent, Option, FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option, error: FrameSupportScheduleLookupError }>; /** * Canceled some task. **/ - Canceled: AugmentedEvent; + Canceled: AugmentedEvent; /** * Dispatched some task. **/ - Dispatched: AugmentedEvent, Option, Result]>; + Dispatched: AugmentedEvent, Option, Result], { task: ITuple<[u32, u32]>, id: Option, result: Result }>; /** * Scheduled some task. **/ - Scheduled: AugmentedEvent; + Scheduled: AugmentedEvent; /** * Generic event **/ @@ -731,7 +731,7 @@ declare module '@polkadot/api-base/types/events' { * New session has happened. Note that the argument is the session index, not the * block number as the type might suggest. **/ - NewSession: AugmentedEvent; + NewSession: AugmentedEvent; /** * Generic event **/ @@ -743,11 +743,11 @@ declare module '@polkadot/api-base/types/events' { * First balance is any extra amount reserved on top of the para's existing deposit. * Second balance is the total amount reserved. **/ - Leased: AugmentedEvent; + Leased: AugmentedEvent; /** * A new `[lease_period]` is beginning. **/ - NewLeasePeriod: AugmentedEvent; + NewLeasePeriod: AugmentedEvent; /** * Generic event **/ @@ -760,61 +760,61 @@ declare module '@polkadot/api-base/types/events' { * 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. **/ - Bonded: AugmentedEvent; + Bonded: AugmentedEvent; /** * An account has stopped participating as either a validator or nominator. * \[stash\] **/ - Chilled: AugmentedEvent; + Chilled: AugmentedEvent; /** * 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, validator_payout, remainder\] **/ - EraPaid: AugmentedEvent; + EraPaid: AugmentedEvent; /** * A nominator has been kicked from a validator. \[nominator, stash\] **/ - Kicked: AugmentedEvent; + Kicked: AugmentedEvent; /** * An old slashing report from a prior era was discarded because it could * not be processed. \[session_index\] **/ - OldSlashingReportDiscarded: AugmentedEvent; + OldSlashingReportDiscarded: AugmentedEvent; /** * The stakers' rewards are getting paid. \[era_index, validator_stash\] **/ - PayoutStarted: AugmentedEvent; + PayoutStarted: AugmentedEvent; /** * The nominator has been rewarded by this amount. \[stash, amount\] **/ - Rewarded: AugmentedEvent; + Rewarded: AugmentedEvent; /** * One validator (and its nominators) has been slashed by the given amount. * \[validator, amount\] **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * A new set of stakers was elected. **/ - StakersElected: AugmentedEvent; + StakersElected: AugmentedEvent; /** * The election failed. No new era is planned. **/ - StakingElectionFailed: AugmentedEvent; + StakingElectionFailed: AugmentedEvent; /** * An account has unbonded this amount. \[stash, amount\] **/ - Unbonded: AugmentedEvent; + Unbonded: AugmentedEvent; /** * A validator has set their preferences. **/ - ValidatorPrefsSet: AugmentedEvent; + ValidatorPrefsSet: AugmentedEvent; /** * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` * from the unlocking queue. \[stash, amount\] **/ - Withdrawn: AugmentedEvent; + Withdrawn: AugmentedEvent; /** * Generic event **/ @@ -824,27 +824,27 @@ declare module '@polkadot/api-base/types/events' { /** * `:code` was updated. **/ - CodeUpdated: AugmentedEvent; + CodeUpdated: AugmentedEvent; /** * An extrinsic failed. **/ - ExtrinsicFailed: AugmentedEvent; + ExtrinsicFailed: AugmentedEvent; /** * An extrinsic completed successfully. **/ - ExtrinsicSuccess: AugmentedEvent; + ExtrinsicSuccess: AugmentedEvent; /** * An account was reaped. **/ - KilledAccount: AugmentedEvent; + KilledAccount: AugmentedEvent; /** * A new account was created. **/ - NewAccount: AugmentedEvent; + NewAccount: AugmentedEvent; /** * On on-chain remark happened. **/ - Remarked: AugmentedEvent; + Remarked: AugmentedEvent; /** * Generic event **/ @@ -854,33 +854,33 @@ declare module '@polkadot/api-base/types/events' { /** * A motion was approved by the required threshold. **/ - Approved: AugmentedEvent; + Approved: AugmentedEvent; /** * A proposal was closed because its threshold was reached or after its duration was up. **/ - Closed: AugmentedEvent; + Closed: AugmentedEvent; /** * A motion was not approved by the required threshold. **/ - Disapproved: AugmentedEvent; + Disapproved: AugmentedEvent; /** * A motion was executed; result will be `Ok` if it returned without error. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A single member did some action; result will be `Ok` if it returned without error. **/ - MemberExecuted: AugmentedEvent]>; + MemberExecuted: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A motion (given hash) has been voted on by given account, leaving * a tally (yes votes and no votes given respectively as `MemberCount`). **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -890,27 +890,27 @@ declare module '@polkadot/api-base/types/events' { /** * Phantom member, never used. **/ - Dummy: AugmentedEvent; + Dummy: AugmentedEvent; /** * One of the members' keys changed. **/ - KeyChanged: AugmentedEvent; + KeyChanged: AugmentedEvent; /** * The given member was added; see the transaction for who. **/ - MemberAdded: AugmentedEvent; + MemberAdded: AugmentedEvent; /** * The given member was removed; see the transaction for who. **/ - MemberRemoved: AugmentedEvent; + MemberRemoved: AugmentedEvent; /** * The membership was reset; see the transaction for who the new set is. **/ - MembersReset: AugmentedEvent; + MembersReset: AugmentedEvent; /** * Two members were swapped; see the transaction for who. **/ - MembersSwapped: AugmentedEvent; + MembersSwapped: AugmentedEvent; /** * Generic event **/ @@ -920,23 +920,23 @@ declare module '@polkadot/api-base/types/events' { /** * A new tip suggestion has been opened. **/ - NewTip: AugmentedEvent; + NewTip: AugmentedEvent; /** * A tip suggestion has been closed. **/ - TipClosed: AugmentedEvent; + TipClosed: AugmentedEvent; /** * A tip suggestion has reached threshold and is closing. **/ - TipClosing: AugmentedEvent; + TipClosing: AugmentedEvent; /** * A tip suggestion has been retracted. **/ - TipRetracted: AugmentedEvent; + TipRetracted: AugmentedEvent; /** * A tip suggestion has been slashed. **/ - TipSlashed: AugmentedEvent; + TipSlashed: AugmentedEvent; /** * Generic event **/ @@ -946,31 +946,31 @@ declare module '@polkadot/api-base/types/events' { /** * Some funds have been allocated. **/ - Awarded: AugmentedEvent; + Awarded: AugmentedEvent; /** * Some of our funds have been burnt. **/ - Burnt: AugmentedEvent; + Burnt: AugmentedEvent; /** * Some funds have been deposited. **/ - Deposit: AugmentedEvent; + Deposit: AugmentedEvent; /** * New proposal. **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A proposal was rejected; funds were slashed. **/ - Rejected: AugmentedEvent; + Rejected: AugmentedEvent; /** * Spending has finished; this is the amount that rolls over until next spend. **/ - Rollover: AugmentedEvent; + Rollover: AugmentedEvent; /** * We have ended a spend period and will now allocate funds. **/ - Spending: AugmentedEvent; + Spending: AugmentedEvent; /** * Generic event **/ @@ -981,12 +981,12 @@ declare module '@polkadot/api-base/types/events' { * Upward message executed with the given outcome. * \[ id, outcome \] **/ - ExecutedUpward: AugmentedEvent; + ExecutedUpward: AugmentedEvent; /** * Upward message is invalid XCM. * \[ id \] **/ - InvalidFormat: AugmentedEvent; + InvalidFormat: AugmentedEvent; /** * The weight budget was exceeded for an individual upward message. * @@ -995,29 +995,29 @@ declare module '@polkadot/api-base/types/events' { * * \[ para, id, overweight_index, required \] **/ - OverweightEnqueued: AugmentedEvent; + OverweightEnqueued: AugmentedEvent; /** * Upward message from the overweight queue was executed with the given actual weight * used. * * \[ overweight_index, used \] **/ - OverweightServiced: AugmentedEvent; + OverweightServiced: AugmentedEvent; /** * Upward message is unsupported version of XCM. * \[ id \] **/ - UnsupportedVersion: AugmentedEvent; + UnsupportedVersion: AugmentedEvent; /** * Some upward messages have been received and will be processed. * \[ para, count, size \] **/ - UpwardMessagesReceived: AugmentedEvent; + UpwardMessagesReceived: AugmentedEvent; /** * The weight limit for handling upward messages was reached. * \[ id, remaining, required \] **/ - WeightExhausted: AugmentedEvent; + WeightExhausted: AugmentedEvent; /** * Generic event **/ @@ -1027,28 +1027,28 @@ declare module '@polkadot/api-base/types/events' { /** * Batch of dispatches completed fully with no error. **/ - BatchCompleted: AugmentedEvent; + BatchCompleted: AugmentedEvent; /** * Batch of dispatches completed but has errors. **/ - BatchCompletedWithErrors: AugmentedEvent; + BatchCompletedWithErrors: AugmentedEvent; /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. **/ - BatchInterrupted: AugmentedEvent; + BatchInterrupted: AugmentedEvent; /** * A call was dispatched. **/ - DispatchedAs: AugmentedEvent]>; + DispatchedAs: AugmentedEvent], { result: Result }>; /** * A single item within a Batch of dispatches has completed with no error. **/ - ItemCompleted: AugmentedEvent; + ItemCompleted: AugmentedEvent; /** * A single item within a Batch of dispatches has completed with error. **/ - ItemFailed: AugmentedEvent; + ItemFailed: AugmentedEvent; /** * Generic event **/ @@ -1058,12 +1058,12 @@ declare module '@polkadot/api-base/types/events' { /** * An \[account\] has become fully vested. **/ - VestingCompleted: AugmentedEvent; + VestingCompleted: AugmentedEvent; /** * 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). **/ - VestingUpdated: AugmentedEvent; + VestingUpdated: AugmentedEvent; /** * Generic event **/ @@ -1073,11 +1073,11 @@ declare module '@polkadot/api-base/types/events' { /** * Moved an account from one bag to another. **/ - Rebagged: AugmentedEvent; + Rebagged: AugmentedEvent; /** * Updated the score of some account to the given amount. **/ - ScoreUpdated: AugmentedEvent; + ScoreUpdated: AugmentedEvent; /** * Generic event **/ @@ -1089,13 +1089,13 @@ declare module '@polkadot/api-base/types/events' { * * \[ hash, origin, assets \] **/ - AssetsTrapped: AugmentedEvent; + AssetsTrapped: AugmentedEvent; /** * Execution of an XCM message was attempted. * * \[ outcome \] **/ - Attempted: AugmentedEvent; + Attempted: AugmentedEvent; /** * Expected query response has been received but the origin location of the response does * not match that expected. The query remains registered for a later, valid, response to @@ -1103,7 +1103,7 @@ declare module '@polkadot/api-base/types/events' { * * \[ origin location, id, expected location \] **/ - InvalidResponder: AugmentedEvent]>; + InvalidResponder: AugmentedEvent], {}>; /** * Expected query response has been received but the expected origin location placed in * storage by this runtime previously cannot be decoded. The query remains registered. @@ -1115,14 +1115,14 @@ declare module '@polkadot/api-base/types/events' { * * \[ origin location, id \] **/ - InvalidResponderVersion: AugmentedEvent; + InvalidResponderVersion: AugmentedEvent; /** * Query response has been received and query is removed. The registered notification has * been dispatched and executed successfully. * * \[ id, pallet index, call index \] **/ - Notified: AugmentedEvent; + Notified: AugmentedEvent; /** * Query response has been received and query is removed. The dispatch was unable to be * decoded into a `Call`; this might be due to dispatch function having a signature which @@ -1130,14 +1130,14 @@ declare module '@polkadot/api-base/types/events' { * * \[ id, pallet index, call index \] **/ - NotifyDecodeFailed: AugmentedEvent; + NotifyDecodeFailed: AugmentedEvent; /** * Query response has been received and query is removed. There was a general error with * dispatching the notification call. * * \[ id, pallet index, call index \] **/ - NotifyDispatchError: AugmentedEvent; + NotifyDispatchError: AugmentedEvent; /** * Query response has been received and query is removed. The registered notification could * not be dispatched because the dispatch weight is greater than the maximum weight @@ -1145,47 +1145,47 @@ declare module '@polkadot/api-base/types/events' { * * \[ id, pallet index, call index, actual weight, max budgeted weight \] **/ - NotifyOverweight: AugmentedEvent; + NotifyOverweight: AugmentedEvent; /** * A given location which had a version change subscription was dropped owing to an error * migrating the location to our new XCM format. * * \[ location, query ID \] **/ - NotifyTargetMigrationFail: AugmentedEvent; + NotifyTargetMigrationFail: AugmentedEvent; /** * A given location which had a version change subscription was dropped owing to an error * sending the notification to it. * * \[ location, query ID, error \] **/ - NotifyTargetSendFail: AugmentedEvent; + NotifyTargetSendFail: AugmentedEvent; /** * Query response has been received and is ready for taking with `take_response`. There is * no registered notification call. * * \[ id, response \] **/ - ResponseReady: AugmentedEvent; + ResponseReady: AugmentedEvent; /** * Received query response has been read and removed. * * \[ id \] **/ - ResponseTaken: AugmentedEvent; + ResponseTaken: AugmentedEvent; /** * A XCM message was sent. * * \[ origin, destination, message \] **/ - Sent: AugmentedEvent; + Sent: AugmentedEvent; /** * The supported version of a location has been changed. This might be through an * automatic notification or a manual intervention. * * \[ location, XCM version \] **/ - SupportedVersionChanged: AugmentedEvent; + SupportedVersionChanged: AugmentedEvent; /** * Query response received which does not match a registered query. This may be because a * matching query was never registered, it may be because it is a duplicate response, or @@ -1193,13 +1193,13 @@ declare module '@polkadot/api-base/types/events' { * * \[ origin location, id \] **/ - UnexpectedResponse: AugmentedEvent; + UnexpectedResponse: AugmentedEvent; /** * An XCM version change notification message has been attempted to be sent. * * \[ destination, result \] **/ - VersionChangeNotified: AugmentedEvent; + VersionChangeNotified: AugmentedEvent; /** * Generic event **/ diff --git a/packages/api-augment/src/substrate/events.ts b/packages/api-augment/src/substrate/events.ts index 48a2a21077..0bcfd42b2f 100644 --- a/packages/api-augment/src/substrate/events.ts +++ b/packages/api-augment/src/substrate/events.ts @@ -13,76 +13,76 @@ declare module '@polkadot/api-base/types/events' { /** * An approval for account `delegate` was cancelled by `owner`. **/ - ApprovalCancelled: AugmentedEvent; + ApprovalCancelled: AugmentedEvent; /** * (Additional) funds have been approved for transfer to a destination account. **/ - ApprovedTransfer: AugmentedEvent; + ApprovedTransfer: AugmentedEvent; /** * Some asset `asset_id` was frozen. **/ - AssetFrozen: AugmentedEvent; + AssetFrozen: AugmentedEvent; /** * An asset has had its attributes changed by the `Force` origin. **/ - AssetStatusChanged: AugmentedEvent; + AssetStatusChanged: AugmentedEvent; /** * Some asset `asset_id` was thawed. **/ - AssetThawed: AugmentedEvent; + AssetThawed: AugmentedEvent; /** * Some assets were destroyed. **/ - Burned: AugmentedEvent; + Burned: AugmentedEvent; /** * Some asset class was created. **/ - Created: AugmentedEvent; + Created: AugmentedEvent; /** * An asset class was destroyed. **/ - Destroyed: AugmentedEvent; + Destroyed: AugmentedEvent; /** * Some asset class was force-created. **/ - ForceCreated: AugmentedEvent; + ForceCreated: AugmentedEvent; /** * Some account `who` was frozen. **/ - Frozen: AugmentedEvent; + Frozen: AugmentedEvent; /** * Some assets were issued. **/ - Issued: AugmentedEvent; + Issued: AugmentedEvent; /** * Metadata has been cleared for an asset. **/ - MetadataCleared: AugmentedEvent; + MetadataCleared: AugmentedEvent; /** * New metadata has been set for an asset. **/ - MetadataSet: AugmentedEvent; + MetadataSet: AugmentedEvent; /** * The owner changed. **/ - OwnerChanged: AugmentedEvent; + OwnerChanged: AugmentedEvent; /** * The management team changed. **/ - TeamChanged: AugmentedEvent; + TeamChanged: AugmentedEvent; /** * Some account `who` was thawed. **/ - Thawed: AugmentedEvent; + Thawed: AugmentedEvent; /** * Some assets were transferred. **/ - Transferred: AugmentedEvent; + Transferred: AugmentedEvent; /** * An `amount` was transferred in its entirety from `owner` to `destination` by * the approved `delegate`. **/ - TransferredApproved: AugmentedEvent; + TransferredApproved: AugmentedEvent; /** * Generic event **/ @@ -92,11 +92,11 @@ declare module '@polkadot/api-base/types/events' { /** * Moved an account from one bag to another. **/ - Rebagged: AugmentedEvent; + Rebagged: AugmentedEvent; /** * Updated the score of some account to the given amount. **/ - ScoreUpdated: AugmentedEvent; + ScoreUpdated: AugmentedEvent; /** * Generic event **/ @@ -106,45 +106,45 @@ declare module '@polkadot/api-base/types/events' { /** * A balance was set by root. **/ - BalanceSet: AugmentedEvent; + BalanceSet: AugmentedEvent; /** * Some amount was deposited (e.g. for transaction fees). **/ - Deposit: AugmentedEvent; + Deposit: AugmentedEvent; /** * An account was removed whose balance was non-zero but below ExistentialDeposit, * resulting in an outright loss. **/ - DustLost: AugmentedEvent; + DustLost: AugmentedEvent; /** * An account was created with some free balance. **/ - Endowed: AugmentedEvent; + Endowed: AugmentedEvent; /** * Some balance was reserved (moved from free to reserved). **/ - Reserved: AugmentedEvent; + Reserved: AugmentedEvent; /** * Some balance was moved from the reserve of the first account to the second account. * Final argument indicates the destination balance type. **/ - ReserveRepatriated: AugmentedEvent; + ReserveRepatriated: AugmentedEvent; /** * Some amount was removed from the account (e.g. for misbehavior). **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * Transfer succeeded. **/ - Transfer: AugmentedEvent; + Transfer: AugmentedEvent; /** * Some balance was unreserved (moved from reserved to free). **/ - Unreserved: AugmentedEvent; + Unreserved: AugmentedEvent; /** * Some amount was withdrawn from the account (e.g. for transaction fees). **/ - Withdraw: AugmentedEvent; + Withdraw: AugmentedEvent; /** * Generic event **/ @@ -154,31 +154,31 @@ declare module '@polkadot/api-base/types/events' { /** * A bounty is awarded to a beneficiary. **/ - BountyAwarded: AugmentedEvent; + BountyAwarded: AugmentedEvent; /** * A bounty proposal is funded and became active. **/ - BountyBecameActive: AugmentedEvent; + BountyBecameActive: AugmentedEvent; /** * A bounty is cancelled. **/ - BountyCanceled: AugmentedEvent; + BountyCanceled: AugmentedEvent; /** * A bounty is claimed by beneficiary. **/ - BountyClaimed: AugmentedEvent; + BountyClaimed: AugmentedEvent; /** * A bounty expiry is extended. **/ - BountyExtended: AugmentedEvent; + BountyExtended: AugmentedEvent; /** * New bounty proposal. **/ - BountyProposed: AugmentedEvent; + BountyProposed: AugmentedEvent; /** * A bounty proposal was rejected; funds were slashed. **/ - BountyRejected: AugmentedEvent; + BountyRejected: AugmentedEvent; /** * Generic event **/ @@ -188,19 +188,19 @@ declare module '@polkadot/api-base/types/events' { /** * A child-bounty is added. **/ - Added: AugmentedEvent; + Added: AugmentedEvent; /** * A child-bounty is awarded to a beneficiary. **/ - Awarded: AugmentedEvent; + Awarded: AugmentedEvent; /** * A child-bounty is cancelled. **/ - Canceled: AugmentedEvent; + Canceled: AugmentedEvent; /** * A child-bounty is claimed by beneficiary. **/ - Claimed: AugmentedEvent; + Claimed: AugmentedEvent; /** * Generic event **/ @@ -210,23 +210,23 @@ declare module '@polkadot/api-base/types/events' { /** * A code with the specified hash was removed. **/ - CodeRemoved: AugmentedEvent; + CodeRemoved: AugmentedEvent; /** * Code with the specified hash has been stored. **/ - CodeStored: AugmentedEvent; + CodeStored: AugmentedEvent; /** * A contract's code was updated. **/ - ContractCodeUpdated: AugmentedEvent; + ContractCodeUpdated: AugmentedEvent; /** * A custom event emitted by the contract. **/ - ContractEmitted: AugmentedEvent; + ContractEmitted: AugmentedEvent; /** * Contract deployed by address at the specified address. **/ - Instantiated: AugmentedEvent; + Instantiated: AugmentedEvent; /** * Contract has been removed. * @@ -235,7 +235,7 @@ declare module '@polkadot/api-base/types/events' { * The only way for a contract to be removed and emitting this event is by calling * `seal_terminate`. **/ - Terminated: AugmentedEvent; + Terminated: AugmentedEvent; /** * Generic event **/ @@ -245,11 +245,11 @@ declare module '@polkadot/api-base/types/events' { /** * An account has delegated their vote to another account. \[who, target\] **/ - Delegated: AugmentedEvent; + Delegated: AugmentedEvent; /** * An \[account\] has cancelled a previous delegation operation. **/ - Undelegated: AugmentedEvent; + Undelegated: AugmentedEvent; /** * Generic event **/ @@ -259,33 +259,33 @@ declare module '@polkadot/api-base/types/events' { /** * A motion was approved by the required threshold. **/ - Approved: AugmentedEvent; + Approved: AugmentedEvent; /** * A proposal was closed because its threshold was reached or after its duration was up. **/ - Closed: AugmentedEvent; + Closed: AugmentedEvent; /** * A motion was not approved by the required threshold. **/ - Disapproved: AugmentedEvent; + Disapproved: AugmentedEvent; /** * A motion was executed; result will be `Ok` if it returned without error. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A single member did some action; result will be `Ok` if it returned without error. **/ - MemberExecuted: AugmentedEvent]>; + MemberExecuted: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A motion (given hash) has been voted on by given account, leaving * a tally (yes votes and no votes given respectively as `MemberCount`). **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -295,79 +295,79 @@ declare module '@polkadot/api-base/types/events' { /** * A proposal_hash has been blacklisted permanently. **/ - Blacklisted: AugmentedEvent; + Blacklisted: AugmentedEvent; /** * A referendum has been cancelled. **/ - Cancelled: AugmentedEvent; + Cancelled: AugmentedEvent; /** * An account has delegated their vote to another account. **/ - Delegated: AugmentedEvent; + Delegated: AugmentedEvent; /** * A proposal has been enacted. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { refIndex: u32, result: Result }>; /** * An external proposal has been tabled. **/ - ExternalTabled: AugmentedEvent; + ExternalTabled: AugmentedEvent; /** * A proposal has been rejected by referendum. **/ - NotPassed: AugmentedEvent; + NotPassed: AugmentedEvent; /** * A proposal has been approved by referendum. **/ - Passed: AugmentedEvent; + Passed: AugmentedEvent; /** * A proposal could not be executed because its preimage was invalid. **/ - PreimageInvalid: AugmentedEvent; + PreimageInvalid: AugmentedEvent; /** * A proposal could not be executed because its preimage was missing. **/ - PreimageMissing: AugmentedEvent; + PreimageMissing: AugmentedEvent; /** * A proposal's preimage was noted, and the deposit taken. **/ - PreimageNoted: AugmentedEvent; + PreimageNoted: AugmentedEvent; /** * A registered preimage was removed and the deposit collected by the reaper. **/ - PreimageReaped: AugmentedEvent; + PreimageReaped: AugmentedEvent; /** * A proposal preimage was removed and used (the deposit was returned). **/ - PreimageUsed: AugmentedEvent; + PreimageUsed: AugmentedEvent; /** * A motion has been proposed by a public account. **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * An account has secconded a proposal **/ - Seconded: AugmentedEvent; + Seconded: AugmentedEvent; /** * A referendum has begun. **/ - Started: AugmentedEvent; + Started: AugmentedEvent; /** * A public proposal has been tabled for referendum vote. **/ - Tabled: AugmentedEvent]>; + Tabled: AugmentedEvent], { proposalIndex: u32, deposit: u128, depositors: Vec }>; /** * An account has cancelled a previous delegation operation. **/ - Undelegated: AugmentedEvent; + Undelegated: AugmentedEvent; /** * An external proposal has been vetoed. **/ - Vetoed: AugmentedEvent; + Vetoed: AugmentedEvent; /** * An account has voted in a referendum **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -378,19 +378,19 @@ declare module '@polkadot/api-base/types/events' { * The election has been finalized, with `Some` of the given computation, or else if the * election failed, `None`. **/ - ElectionFinalized: AugmentedEvent]>; + ElectionFinalized: AugmentedEvent], { electionCompute: Option }>; /** * An account has been rewarded for their signed submission being finalized. **/ - Rewarded: AugmentedEvent; + Rewarded: AugmentedEvent; /** * The signed phase of the given round has started. **/ - SignedPhaseStarted: AugmentedEvent; + SignedPhaseStarted: AugmentedEvent; /** * An account has been slashed for submitting an invalid signed submission. **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * A solution was stored with the given compute. * @@ -399,11 +399,11 @@ declare module '@polkadot/api-base/types/events' { * * The `bool` is `true` when a previous solution was ejected to make room for this one. **/ - SolutionStored: AugmentedEvent; + SolutionStored: AugmentedEvent; /** * The unsigned phase of the given round has started. **/ - UnsignedPhaseStarted: AugmentedEvent; + UnsignedPhaseStarted: AugmentedEvent; /** * Generic event **/ @@ -416,21 +416,21 @@ declare module '@polkadot/api-base/types/events' { * * Note that old members and runners-up are also candidates. **/ - CandidateSlashed: AugmentedEvent; + CandidateSlashed: AugmentedEvent; /** * Internal error happened while trying to perform election. **/ - ElectionError: AugmentedEvent; + ElectionError: AugmentedEvent; /** * No (or not enough) candidates existed for this round. This is different from * `NewTerm(\[\])`. See the description of `NewTerm`. **/ - EmptyTerm: AugmentedEvent; + EmptyTerm: AugmentedEvent; /** * A member has been removed. This should always be followed by either `NewTerm` or * `EmptyTerm`. **/ - MemberKicked: AugmentedEvent; + MemberKicked: AugmentedEvent; /** * 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 @@ -438,15 +438,15 @@ declare module '@polkadot/api-base/types/events' { * slashed and none were elected, whilst `EmptyTerm` means that no candidates existed to * begin with. **/ - NewTerm: AugmentedEvent>]>; + NewTerm: AugmentedEvent>], { newMembers: Vec> }>; /** * Someone has renounced their candidacy. **/ - Renounced: AugmentedEvent; + Renounced: AugmentedEvent; /** * A seat holder was slashed by amount by being forcefully removed from the set. **/ - SeatHolderSlashed: AugmentedEvent; + SeatHolderSlashed: AugmentedEvent; /** * Generic event **/ @@ -456,19 +456,19 @@ declare module '@polkadot/api-base/types/events' { /** * A bid was successfully placed. **/ - BidPlaced: AugmentedEvent; + BidPlaced: AugmentedEvent; /** * A bid was successfully removed (before being accepted as a gilt). **/ - BidRetracted: AugmentedEvent; + BidRetracted: AugmentedEvent; /** * A bid was accepted as a gilt. The balance may not be released until expiry. **/ - GiltIssued: AugmentedEvent; + GiltIssued: AugmentedEvent; /** * An expired gilt has been thawed. **/ - GiltThawed: AugmentedEvent; + GiltThawed: AugmentedEvent; /** * Generic event **/ @@ -478,15 +478,15 @@ declare module '@polkadot/api-base/types/events' { /** * New authority set has been applied. **/ - NewAuthorities: AugmentedEvent>]>; + NewAuthorities: AugmentedEvent>], { authoritySet: Vec> }>; /** * Current authority set has been paused. **/ - Paused: AugmentedEvent; + Paused: AugmentedEvent; /** * Current authority set has been resumed. **/ - Resumed: AugmentedEvent; + Resumed: AugmentedEvent; /** * Generic event **/ @@ -496,44 +496,44 @@ declare module '@polkadot/api-base/types/events' { /** * A name was cleared, and the given balance returned. **/ - IdentityCleared: AugmentedEvent; + IdentityCleared: AugmentedEvent; /** * A name was removed and the given balance slashed. **/ - IdentityKilled: AugmentedEvent; + IdentityKilled: AugmentedEvent; /** * A name was set or reset (which will remove all judgements). **/ - IdentitySet: AugmentedEvent; + IdentitySet: AugmentedEvent; /** * A judgement was given by a registrar. **/ - JudgementGiven: AugmentedEvent; + JudgementGiven: AugmentedEvent; /** * A judgement was asked from a registrar. **/ - JudgementRequested: AugmentedEvent; + JudgementRequested: AugmentedEvent; /** * A judgement request was retracted. **/ - JudgementUnrequested: AugmentedEvent; + JudgementUnrequested: AugmentedEvent; /** * A registrar was added. **/ - RegistrarAdded: AugmentedEvent; + RegistrarAdded: AugmentedEvent; /** * A sub-identity was added to an identity and the deposit paid. **/ - SubIdentityAdded: AugmentedEvent; + SubIdentityAdded: AugmentedEvent; /** * A sub-identity was removed from an identity and the deposit freed. **/ - SubIdentityRemoved: AugmentedEvent; + SubIdentityRemoved: AugmentedEvent; /** * A sub-identity was cleared, and the given deposit repatriated from the * main identity account to the sub-identity account. **/ - SubIdentityRevoked: AugmentedEvent; + SubIdentityRevoked: AugmentedEvent; /** * Generic event **/ @@ -543,15 +543,15 @@ declare module '@polkadot/api-base/types/events' { /** * At the end of the session, no offence was committed. **/ - AllGood: AugmentedEvent; + AllGood: AugmentedEvent; /** * A new heartbeat was received from `AuthorityId`. **/ - HeartbeatReceived: AugmentedEvent; + HeartbeatReceived: AugmentedEvent; /** * At the end of the session, at least one validator was found to be offline. **/ - SomeOffline: AugmentedEvent>]>; + SomeOffline: AugmentedEvent>], { offline: Vec> }>; /** * Generic event **/ @@ -561,15 +561,15 @@ declare module '@polkadot/api-base/types/events' { /** * A account index was assigned. **/ - IndexAssigned: AugmentedEvent; + IndexAssigned: AugmentedEvent; /** * A account index has been freed up (unassigned). **/ - IndexFreed: AugmentedEvent; + IndexFreed: AugmentedEvent; /** * A account index has been frozen to its current account ID. **/ - IndexFrozen: AugmentedEvent; + IndexFrozen: AugmentedEvent; /** * Generic event **/ @@ -579,19 +579,19 @@ declare module '@polkadot/api-base/types/events' { /** * A new set of calls have been set! **/ - CallsUpdated: AugmentedEvent; + CallsUpdated: AugmentedEvent; /** * A lottery has been started! **/ - LotteryStarted: AugmentedEvent; + LotteryStarted: AugmentedEvent; /** * A ticket has been bought! **/ - TicketBought: AugmentedEvent]>; + TicketBought: AugmentedEvent], { who: AccountId32, callIndex: ITuple<[u8, u8]> }>; /** * A winner has been chosen! **/ - Winner: AugmentedEvent; + Winner: AugmentedEvent; /** * Generic event **/ @@ -601,19 +601,19 @@ declare module '@polkadot/api-base/types/events' { /** * A multisig operation has been approved by someone. **/ - MultisigApproval: AugmentedEvent; + MultisigApproval: AugmentedEvent; /** * A multisig operation has been cancelled. **/ - MultisigCancelled: AugmentedEvent; + MultisigCancelled: AugmentedEvent; /** * A multisig operation has been executed. **/ - MultisigExecuted: AugmentedEvent]>; + MultisigExecuted: AugmentedEvent], { approving: AccountId32, timepoint: PalletMultisigTimepoint, multisig: AccountId32, callHash: U8aFixed, result: Result }>; /** * A new multisig operation has begun. **/ - NewMultisig: AugmentedEvent; + NewMultisig: AugmentedEvent; /** * Generic event **/ @@ -623,42 +623,42 @@ declare module '@polkadot/api-base/types/events' { /** * A member has became bonded in a pool. **/ - Bonded: AugmentedEvent; + Bonded: AugmentedEvent; /** * A pool has been created. **/ - Created: AugmentedEvent; + Created: AugmentedEvent; /** * A pool has been destroyed. **/ - Destroyed: AugmentedEvent; + Destroyed: AugmentedEvent; /** * A member has been removed from a pool. * * The removal can be voluntary (withdrawn all unbonded funds) or involuntary (kicked). **/ - MemberRemoved: AugmentedEvent; + MemberRemoved: AugmentedEvent; /** * A payout has been made to a member. **/ - PaidOut: AugmentedEvent; + PaidOut: AugmentedEvent; /** * The roles of a pool have been updated to the given new roles. Note that the depositor * can never change. **/ - RolesUpdated: AugmentedEvent, Option, Option]>; + RolesUpdated: AugmentedEvent, Option, Option], { root: Option, stateToggler: Option, nominator: Option }>; /** * The state of a pool has changed **/ - StateChanged: AugmentedEvent; + StateChanged: AugmentedEvent; /** * A member has unbonded from their pool. **/ - Unbonded: AugmentedEvent; + Unbonded: AugmentedEvent; /** * A member has withdrawn from their pool. **/ - Withdrawn: AugmentedEvent; + Withdrawn: AugmentedEvent; /** * Generic event **/ @@ -670,7 +670,7 @@ declare module '@polkadot/api-base/types/events' { * (kind-specific) time slot. This event is not deposited for duplicate slashes. * \[kind, timeslot\]. **/ - Offence: AugmentedEvent; + Offence: AugmentedEvent; /** * Generic event **/ @@ -680,15 +680,15 @@ declare module '@polkadot/api-base/types/events' { /** * A preimage has ben cleared. **/ - Cleared: AugmentedEvent; + Cleared: AugmentedEvent; /** * A preimage has been noted. **/ - Noted: AugmentedEvent; + Noted: AugmentedEvent; /** * A preimage has been requested. **/ - Requested: AugmentedEvent; + Requested: AugmentedEvent; /** * Generic event **/ @@ -698,24 +698,24 @@ declare module '@polkadot/api-base/types/events' { /** * An announcement was placed to make a call in the future. **/ - Announced: AugmentedEvent; + Announced: AugmentedEvent; /** * Anonymous account has been created by new proxy with given * disambiguation index and proxy type. **/ - AnonymousCreated: AugmentedEvent; + AnonymousCreated: AugmentedEvent; /** * A proxy was added. **/ - ProxyAdded: AugmentedEvent; + ProxyAdded: AugmentedEvent; /** * A proxy was executed correctly, with the given. **/ - ProxyExecuted: AugmentedEvent]>; + ProxyExecuted: AugmentedEvent], { result: Result }>; /** * A proxy was removed. **/ - ProxyRemoved: AugmentedEvent; + ProxyRemoved: AugmentedEvent; /** * Generic event **/ @@ -725,27 +725,27 @@ declare module '@polkadot/api-base/types/events' { /** * Lost account has been successfully recovered by rescuer account. **/ - AccountRecovered: AugmentedEvent; + AccountRecovered: AugmentedEvent; /** * A recovery process for lost account by rescuer account has been closed. **/ - RecoveryClosed: AugmentedEvent; + RecoveryClosed: AugmentedEvent; /** * A recovery process has been set up for an account. **/ - RecoveryCreated: AugmentedEvent; + RecoveryCreated: AugmentedEvent; /** * A recovery process has been initiated for lost account by rescuer account. **/ - RecoveryInitiated: AugmentedEvent; + RecoveryInitiated: AugmentedEvent; /** * A recovery process has been removed for an account. **/ - RecoveryRemoved: AugmentedEvent; + RecoveryRemoved: AugmentedEvent; /** * A recovery process for lost account by rescuer account has been vouched for by sender. **/ - RecoveryVouched: AugmentedEvent; + RecoveryVouched: AugmentedEvent; /** * Generic event **/ @@ -755,49 +755,49 @@ declare module '@polkadot/api-base/types/events' { /** * A referendum has been approved and its proposal has been scheduled. **/ - Approved: AugmentedEvent; + Approved: AugmentedEvent; /** * A referendum has been cancelled. **/ - Cancelled: AugmentedEvent; - ConfirmAborted: AugmentedEvent; + Cancelled: AugmentedEvent; + ConfirmAborted: AugmentedEvent; /** * A referendum has ended its confirmation phase and is ready for approval. **/ - Confirmed: AugmentedEvent; - ConfirmStarted: AugmentedEvent; + Confirmed: AugmentedEvent; + ConfirmStarted: AugmentedEvent; /** * The decision deposit has been placed. **/ - DecisionDepositPlaced: AugmentedEvent; + DecisionDepositPlaced: AugmentedEvent; /** * The decision deposit has been refunded. **/ - DecisionDepositRefunded: AugmentedEvent; + DecisionDepositRefunded: AugmentedEvent; /** * A referendum has moved into the deciding phase. **/ - DecisionStarted: AugmentedEvent; + DecisionStarted: AugmentedEvent; /** * A deposit has been slashaed. **/ - DepositSlashed: AugmentedEvent; + DepositSlashed: AugmentedEvent; /** * A referendum has been killed. **/ - Killed: AugmentedEvent; + Killed: AugmentedEvent; /** * A proposal has been rejected by referendum. **/ - Rejected: AugmentedEvent; + Rejected: AugmentedEvent; /** * A referendum has being submitted. **/ - Submitted: AugmentedEvent; + Submitted: AugmentedEvent; /** * A referendum has been timed out without being decided. **/ - TimedOut: AugmentedEvent; + TimedOut: AugmentedEvent; /** * Generic event **/ @@ -807,7 +807,7 @@ declare module '@polkadot/api-base/types/events' { /** * Stored data off chain. **/ - Stored: AugmentedEvent; + Stored: AugmentedEvent; /** * Generic event **/ @@ -817,19 +817,19 @@ declare module '@polkadot/api-base/types/events' { /** * The call for the provided hash was not found so the task has been aborted. **/ - CallLookupFailed: AugmentedEvent, Option, FrameSupportScheduleLookupError]>; + CallLookupFailed: AugmentedEvent, Option, FrameSupportScheduleLookupError], { task: ITuple<[u32, u32]>, id: Option, error: FrameSupportScheduleLookupError }>; /** * Canceled some task. **/ - Canceled: AugmentedEvent; + Canceled: AugmentedEvent; /** * Dispatched some task. **/ - Dispatched: AugmentedEvent, Option, Result]>; + Dispatched: AugmentedEvent, Option, Result], { task: ITuple<[u32, u32]>, id: Option, result: Result }>; /** * Scheduled some task. **/ - Scheduled: AugmentedEvent; + Scheduled: AugmentedEvent; /** * Generic event **/ @@ -840,7 +840,7 @@ declare module '@polkadot/api-base/types/events' { * New session has happened. Note that the argument is the session index, not the * block number as the type might suggest. **/ - NewSession: AugmentedEvent; + NewSession: AugmentedEvent; /** * Generic event **/ @@ -850,70 +850,70 @@ declare module '@polkadot/api-base/types/events' { /** * A candidate was dropped (due to an excess of bids in the system). **/ - AutoUnbid: AugmentedEvent; + AutoUnbid: AugmentedEvent; /** * A membership bid just happened. The given account is the candidate's ID and their offer * is the second. **/ - Bid: AugmentedEvent; + Bid: AugmentedEvent; /** * A candidate has been suspended **/ - CandidateSuspended: AugmentedEvent; + CandidateSuspended: AugmentedEvent; /** * A member has been challenged **/ - Challenged: AugmentedEvent; + Challenged: AugmentedEvent; /** * A vote has been placed for a defending member **/ - DefenderVote: AugmentedEvent; + DefenderVote: AugmentedEvent; /** * Some funds were deposited into the society account. **/ - Deposit: AugmentedEvent; + Deposit: AugmentedEvent; /** * The society is founded by the given identity. **/ - Founded: AugmentedEvent; + Founded: AugmentedEvent; /** * A group of candidates have been inducted. The batch's primary is the first value, the * batch in full is the second. **/ - Inducted: AugmentedEvent]>; + Inducted: AugmentedEvent], { primary: AccountId32, candidates: Vec }>; /** * A member has been suspended **/ - MemberSuspended: AugmentedEvent; + MemberSuspended: AugmentedEvent; /** * A new \[max\] member count has been set **/ - NewMaxMembers: AugmentedEvent; + NewMaxMembers: AugmentedEvent; /** * A suspended member has been judged. **/ - SuspendedMemberJudgement: AugmentedEvent; + SuspendedMemberJudgement: AugmentedEvent; /** * A candidate was dropped (by their request). **/ - Unbid: AugmentedEvent; + Unbid: AugmentedEvent; /** * Society is unfounded. **/ - Unfounded: AugmentedEvent; + Unfounded: AugmentedEvent; /** * A candidate was dropped (by request of who vouched for them). **/ - Unvouch: AugmentedEvent; + Unvouch: AugmentedEvent; /** * A vote has been placed **/ - Vote: AugmentedEvent; + Vote: AugmentedEvent; /** * 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. **/ - Vouch: AugmentedEvent; + Vouch: AugmentedEvent; /** * Generic event **/ @@ -926,61 +926,61 @@ declare module '@polkadot/api-base/types/events' { * 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. **/ - Bonded: AugmentedEvent; + Bonded: AugmentedEvent; /** * An account has stopped participating as either a validator or nominator. * \[stash\] **/ - Chilled: AugmentedEvent; + Chilled: AugmentedEvent; /** * 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, validator_payout, remainder\] **/ - EraPaid: AugmentedEvent; + EraPaid: AugmentedEvent; /** * A nominator has been kicked from a validator. \[nominator, stash\] **/ - Kicked: AugmentedEvent; + Kicked: AugmentedEvent; /** * An old slashing report from a prior era was discarded because it could * not be processed. \[session_index\] **/ - OldSlashingReportDiscarded: AugmentedEvent; + OldSlashingReportDiscarded: AugmentedEvent; /** * The stakers' rewards are getting paid. \[era_index, validator_stash\] **/ - PayoutStarted: AugmentedEvent; + PayoutStarted: AugmentedEvent; /** * The nominator has been rewarded by this amount. \[stash, amount\] **/ - Rewarded: AugmentedEvent; + Rewarded: AugmentedEvent; /** * One validator (and its nominators) has been slashed by the given amount. * \[validator, amount\] **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * A new set of stakers was elected. **/ - StakersElected: AugmentedEvent; + StakersElected: AugmentedEvent; /** * The election failed. No new era is planned. **/ - StakingElectionFailed: AugmentedEvent; + StakingElectionFailed: AugmentedEvent; /** * An account has unbonded this amount. \[stash, amount\] **/ - Unbonded: AugmentedEvent; + Unbonded: AugmentedEvent; /** * A validator has set their preferences. **/ - ValidatorPrefsSet: AugmentedEvent; + ValidatorPrefsSet: AugmentedEvent; /** * An account has called `withdraw_unbonded` and removed unbonding chunks worth `Balance` * from the unlocking queue. \[stash, amount\] **/ - Withdrawn: AugmentedEvent; + Withdrawn: AugmentedEvent; /** * Generic event **/ @@ -990,20 +990,20 @@ declare module '@polkadot/api-base/types/events' { /** * The auto migration task finished. **/ - AutoMigrationFinished: AugmentedEvent; + AutoMigrationFinished: AugmentedEvent; /** * Migration got halted. **/ - Halted: AugmentedEvent; + Halted: AugmentedEvent; /** * Given number of `(top, child)` keys were migrated respectively, with the given * `compute`. **/ - Migrated: AugmentedEvent; + Migrated: AugmentedEvent; /** * Some account got slashed by the given amount. **/ - Slashed: AugmentedEvent; + Slashed: AugmentedEvent; /** * Generic event **/ @@ -1013,15 +1013,15 @@ declare module '@polkadot/api-base/types/events' { /** * The \[sudoer\] just switched identity; the old key is supplied if one existed. **/ - KeyChanged: AugmentedEvent]>; + KeyChanged: AugmentedEvent], { oldSudoer: Option }>; /** * A sudo just took place. \[result\] **/ - Sudid: AugmentedEvent]>; + Sudid: AugmentedEvent], { sudoResult: Result }>; /** * A sudo just took place. \[result\] **/ - SudoAsDone: AugmentedEvent]>; + SudoAsDone: AugmentedEvent], { sudoResult: Result }>; /** * Generic event **/ @@ -1031,27 +1031,27 @@ declare module '@polkadot/api-base/types/events' { /** * `:code` was updated. **/ - CodeUpdated: AugmentedEvent; + CodeUpdated: AugmentedEvent; /** * An extrinsic failed. **/ - ExtrinsicFailed: AugmentedEvent; + ExtrinsicFailed: AugmentedEvent; /** * An extrinsic completed successfully. **/ - ExtrinsicSuccess: AugmentedEvent; + ExtrinsicSuccess: AugmentedEvent; /** * An account was reaped. **/ - KilledAccount: AugmentedEvent; + KilledAccount: AugmentedEvent; /** * A new account was created. **/ - NewAccount: AugmentedEvent; + NewAccount: AugmentedEvent; /** * On on-chain remark happened. **/ - Remarked: AugmentedEvent; + Remarked: AugmentedEvent; /** * Generic event **/ @@ -1061,33 +1061,33 @@ declare module '@polkadot/api-base/types/events' { /** * A motion was approved by the required threshold. **/ - Approved: AugmentedEvent; + Approved: AugmentedEvent; /** * A proposal was closed because its threshold was reached or after its duration was up. **/ - Closed: AugmentedEvent; + Closed: AugmentedEvent; /** * A motion was not approved by the required threshold. **/ - Disapproved: AugmentedEvent; + Disapproved: AugmentedEvent; /** * A motion was executed; result will be `Ok` if it returned without error. **/ - Executed: AugmentedEvent]>; + Executed: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A single member did some action; result will be `Ok` if it returned without error. **/ - MemberExecuted: AugmentedEvent]>; + MemberExecuted: AugmentedEvent], { proposalHash: H256, result: Result }>; /** * A motion (given hash) has been proposed (by given account) with a threshold (given * `MemberCount`). **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A motion (given hash) has been voted on by given account, leaving * a tally (yes votes and no votes given respectively as `MemberCount`). **/ - Voted: AugmentedEvent; + Voted: AugmentedEvent; /** * Generic event **/ @@ -1097,27 +1097,27 @@ declare module '@polkadot/api-base/types/events' { /** * Phantom member, never used. **/ - Dummy: AugmentedEvent; + Dummy: AugmentedEvent; /** * One of the members' keys changed. **/ - KeyChanged: AugmentedEvent; + KeyChanged: AugmentedEvent; /** * The given member was added; see the transaction for who. **/ - MemberAdded: AugmentedEvent; + MemberAdded: AugmentedEvent; /** * The given member was removed; see the transaction for who. **/ - MemberRemoved: AugmentedEvent; + MemberRemoved: AugmentedEvent; /** * The membership was reset; see the transaction for who the new set is. **/ - MembersReset: AugmentedEvent; + MembersReset: AugmentedEvent; /** * Two members were swapped; see the transaction for who. **/ - MembersSwapped: AugmentedEvent; + MembersSwapped: AugmentedEvent; /** * Generic event **/ @@ -1127,23 +1127,23 @@ declare module '@polkadot/api-base/types/events' { /** * A new tip suggestion has been opened. **/ - NewTip: AugmentedEvent; + NewTip: AugmentedEvent; /** * A tip suggestion has been closed. **/ - TipClosed: AugmentedEvent; + TipClosed: AugmentedEvent; /** * A tip suggestion has reached threshold and is closing. **/ - TipClosing: AugmentedEvent; + TipClosing: AugmentedEvent; /** * A tip suggestion has been retracted. **/ - TipRetracted: AugmentedEvent; + TipRetracted: AugmentedEvent; /** * A tip suggestion has been slashed. **/ - TipSlashed: AugmentedEvent; + TipSlashed: AugmentedEvent; /** * Generic event **/ @@ -1153,15 +1153,15 @@ declare module '@polkadot/api-base/types/events' { /** * Storage proof was successfully checked. **/ - ProofChecked: AugmentedEvent; + ProofChecked: AugmentedEvent; /** * Renewed data under specified index. **/ - Renewed: AugmentedEvent; + Renewed: AugmentedEvent; /** * Stored data under specified index. **/ - Stored: AugmentedEvent; + Stored: AugmentedEvent; /** * Generic event **/ @@ -1171,31 +1171,31 @@ declare module '@polkadot/api-base/types/events' { /** * Some funds have been allocated. **/ - Awarded: AugmentedEvent; + Awarded: AugmentedEvent; /** * Some of our funds have been burnt. **/ - Burnt: AugmentedEvent; + Burnt: AugmentedEvent; /** * Some funds have been deposited. **/ - Deposit: AugmentedEvent; + Deposit: AugmentedEvent; /** * New proposal. **/ - Proposed: AugmentedEvent; + Proposed: AugmentedEvent; /** * A proposal was rejected; funds were slashed. **/ - Rejected: AugmentedEvent; + Rejected: AugmentedEvent; /** * Spending has finished; this is the amount that rolls over until next spend. **/ - Rollover: AugmentedEvent; + Rollover: AugmentedEvent; /** * We have ended a spend period and will now allocate funds. **/ - Spending: AugmentedEvent; + Spending: AugmentedEvent; /** * Generic event **/ @@ -1206,100 +1206,100 @@ declare module '@polkadot/api-base/types/events' { * An approval for a `delegate` account to transfer the `item` of an item * `collection` was cancelled by its `owner`. **/ - ApprovalCancelled: AugmentedEvent; + ApprovalCancelled: AugmentedEvent; /** * An `item` of a `collection` has been approved by the `owner` for transfer by * a `delegate`. **/ - ApprovedTransfer: AugmentedEvent; + ApprovedTransfer: AugmentedEvent; /** * Attribute metadata has been cleared for a `collection` or `item`. **/ - AttributeCleared: AugmentedEvent, Bytes]>; + AttributeCleared: AugmentedEvent, Bytes], { collection: u32, maybeItem: Option, key: Bytes }>; /** * New attribute metadata has been set for a `collection` or `item`. **/ - AttributeSet: AugmentedEvent, Bytes, Bytes]>; + AttributeSet: AugmentedEvent, Bytes, Bytes], { collection: u32, maybeItem: Option, key: Bytes, value: Bytes }>; /** * An `item` was destroyed. **/ - Burned: AugmentedEvent; + Burned: AugmentedEvent; /** * Some `collection` was frozen. **/ - CollectionFrozen: AugmentedEvent; + CollectionFrozen: AugmentedEvent; /** * Max supply has been set for a collection. **/ - CollectionMaxSupplySet: AugmentedEvent; + CollectionMaxSupplySet: AugmentedEvent; /** * Metadata has been cleared for a `collection`. **/ - CollectionMetadataCleared: AugmentedEvent; + CollectionMetadataCleared: AugmentedEvent; /** * New metadata has been set for a `collection`. **/ - CollectionMetadataSet: AugmentedEvent; + CollectionMetadataSet: AugmentedEvent; /** * Some `collection` was thawed. **/ - CollectionThawed: AugmentedEvent; + CollectionThawed: AugmentedEvent; /** * A `collection` was created. **/ - Created: AugmentedEvent; + Created: AugmentedEvent; /** * A `collection` was destroyed. **/ - Destroyed: AugmentedEvent; + Destroyed: AugmentedEvent; /** * A `collection` was force-created. **/ - ForceCreated: AugmentedEvent; + ForceCreated: AugmentedEvent; /** * Some `item` was frozen. **/ - Frozen: AugmentedEvent; + Frozen: AugmentedEvent; /** * An `item` was issued. **/ - Issued: AugmentedEvent; + Issued: AugmentedEvent; /** * A `collection` has had its attributes changed by the `Force` origin. **/ - ItemStatusChanged: AugmentedEvent; + ItemStatusChanged: AugmentedEvent; /** * Metadata has been cleared for an item. **/ - MetadataCleared: AugmentedEvent; + MetadataCleared: AugmentedEvent; /** * New metadata has been set for an item. **/ - MetadataSet: AugmentedEvent; + MetadataSet: AugmentedEvent; /** * The owner changed. **/ - OwnerChanged: AugmentedEvent; + OwnerChanged: AugmentedEvent; /** * Ownership acceptance has changed for an account. **/ - OwnershipAcceptanceChanged: AugmentedEvent]>; + OwnershipAcceptanceChanged: AugmentedEvent], { who: AccountId32, maybeCollection: Option }>; /** * Metadata has been cleared for an item. **/ - Redeposited: AugmentedEvent]>; + Redeposited: AugmentedEvent], { collection: u32, successfulItems: Vec }>; /** * The management team changed. **/ - TeamChanged: AugmentedEvent; + TeamChanged: AugmentedEvent; /** * Some `item` was thawed. **/ - Thawed: AugmentedEvent; + Thawed: AugmentedEvent; /** * An `item` was transferred. **/ - Transferred: AugmentedEvent; + Transferred: AugmentedEvent; /** * Generic event **/ @@ -1309,28 +1309,28 @@ declare module '@polkadot/api-base/types/events' { /** * Batch of dispatches completed fully with no error. **/ - BatchCompleted: AugmentedEvent; + BatchCompleted: AugmentedEvent; /** * Batch of dispatches completed but has errors. **/ - BatchCompletedWithErrors: AugmentedEvent; + BatchCompletedWithErrors: AugmentedEvent; /** * Batch of dispatches did not complete fully. Index of first failing dispatch given, as * well as the error. **/ - BatchInterrupted: AugmentedEvent; + BatchInterrupted: AugmentedEvent; /** * A call was dispatched. **/ - DispatchedAs: AugmentedEvent]>; + DispatchedAs: AugmentedEvent], { result: Result }>; /** * A single item within a Batch of dispatches has completed with no error. **/ - ItemCompleted: AugmentedEvent; + ItemCompleted: AugmentedEvent; /** * A single item within a Batch of dispatches has completed with error. **/ - ItemFailed: AugmentedEvent; + ItemFailed: AugmentedEvent; /** * Generic event **/ @@ -1340,21 +1340,21 @@ declare module '@polkadot/api-base/types/events' { /** * An \[account\] has become fully vested. **/ - VestingCompleted: AugmentedEvent; + VestingCompleted: AugmentedEvent; /** * 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). **/ - VestingUpdated: AugmentedEvent; + VestingUpdated: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; whitelist: { - CallWhitelisted: AugmentedEvent; - WhitelistedCallDispatched: AugmentedEvent]>; - WhitelistedCallRemoved: AugmentedEvent; + CallWhitelisted: AugmentedEvent; + WhitelistedCallDispatched: AugmentedEvent], { callHash: H256, result: Result }>; + WhitelistedCallRemoved: AugmentedEvent; /** * Generic event **/ diff --git a/packages/api-base/src/types/events.ts b/packages/api-base/src/types/events.ts index 76c34dcd49..cb606ac5ca 100644 --- a/packages/api-base/src/types/events.ts +++ b/packages/api-base/src/types/events.ts @@ -2,7 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import type { IsEvent } from '@polkadot/types/metadata/decorate/types'; -import type { AnyTuple } from '@polkadot/types/types'; +import type { AnyTuple, Codec } from '@polkadot/types/types'; import type { ApiTypes } from './base'; // eslint-disable-next-line @typescript-eslint/no-unused-vars,@typescript-eslint/no-empty-interface @@ -16,8 +16,8 @@ export interface DecoratedEvents extends AugmentedEven } // eslint-disable-next-line @typescript-eslint/no-unused-vars -export type AugmentedEvent = IsEvent; +export type AugmentedEvent = Record> = IsEvent; export interface ModuleEvents { - [key: string]: AugmentedEvent; + [key: string]: AugmentedEvent; } diff --git a/packages/api/src/checkTypes.manual.ts b/packages/api/src/checkTypes.manual.ts index df45349174..aea9d0ef75 100644 --- a/packages/api/src/checkTypes.manual.ts +++ b/packages/api/src/checkTypes.manual.ts @@ -57,9 +57,12 @@ function events (api: ApiPromise): void { // existing if (api.events.balances.Transfer.is(event)) { // the types are correctly expanded - const [from, to, amount] = event.data; + const [afrom, ato, aamount] = event.data; - console.log(from.toHuman(), to.toHuman(), amount.toBn()); + // the types have getters + const { amount, from, to } = event.data; + + console.log(afrom.toHuman(), ato.toHuman(), aamount.toBn(), from.toHuman(), to.toHuman(), amount.toBn()); } // something random diff --git a/packages/typegen/src/generate/events.ts b/packages/typegen/src/generate/events.ts index 7d1b9dab9b..94d59242b2 100644 --- a/packages/typegen/src/generate/events.ts +++ b/packages/typegen/src/generate/events.ts @@ -42,13 +42,19 @@ function generateForMeta (meta: Metadata, dest: string, extraTypes: ExtraTypes, const args = fields .map(({ type }) => lookup.getTypeDef(type)) .map((typeDef) => typeDef.lookupName || formatType(registry, allDefs, typeDef, imports)); + const names = fields + .map(({ name }) => registry.lookup.sanitizeField(name)[0]) + .filter((n): n is string => !!n); setImports(allDefs, imports, args); return { docs, + fields: names.length === args.length + ? `{ ${names.map((n, i) => `${n}: ${args[i]}`).join(', ')} }` + : '{}', name: name.toString(), - type: args.join(', ') + type: `[${args.join(', ')}]` }; }) .sort(compareName), diff --git a/packages/typegen/src/templates/events.hbs b/packages/typegen/src/templates/events.hbs index 3eadee2506..e90dbbfc5f 100644 --- a/packages/typegen/src/templates/events.hbs +++ b/packages/typegen/src/templates/events.hbs @@ -8,7 +8,7 @@ declare module '@polkadot/api-base/types/events' { {{{name}}}: { {{#each items}} {{> docs}} - {{{name}}}: AugmentedEvent; + {{{name}}}: AugmentedEvent; {{/each}} {{#unless @root.isStrict}} /** diff --git a/packages/types-create/src/types/lookup.ts b/packages/types-create/src/types/lookup.ts index 5a32e185a5..bd245a332a 100644 --- a/packages/types-create/src/types/lookup.ts +++ b/packages/types-create/src/types/lookup.ts @@ -1,6 +1,7 @@ // Copyright 2017-2022 @polkadot/types-create authors & contributors // SPDX-License-Identifier: Apache-2.0 +import type { Option, Text } from '@polkadot/types-codec'; import type { ICompact, INumber } from '@polkadot/types-codec/types'; import type { TypeDef } from './types'; @@ -11,4 +12,5 @@ export interface ILookup { } }, getTypeDef (lookupId: ICompact | string | number): TypeDef; + sanitizeField (name: Option): [string | null, string | null]; } diff --git a/packages/types/src/generic/Event.ts b/packages/types/src/generic/Event.ts index 7f1e5dece3..2c51537e62 100644 --- a/packages/types/src/generic/Event.ts +++ b/packages/types/src/generic/Event.ts @@ -8,7 +8,7 @@ import type { EventId } from '../interfaces/system'; import type { IEvent, IEventData, InterfaceTypes, Registry } from '../types'; import { Null, Struct, Tuple } from '@polkadot/types-codec'; -import { objectSpread } from '@polkadot/util'; +import { objectProperties, objectSpread } from '@polkadot/util'; interface Decoded { DataType: CodecClass | CodecClass; @@ -45,6 +45,8 @@ export class GenericEventData extends Tuple implements IEventData { readonly #method: string; + readonly #names: string[] | null = null; + readonly #section: string; readonly #typeDef: TypeDef[]; @@ -58,6 +60,16 @@ export class GenericEventData extends Tuple implements IEventData { this.#method = method; this.#section = section; this.#typeDef = fields.map(({ type }) => registry.lookup.getTypeDef(type)); + + const names = fields + .map(({ name }) => registry.lookup.sanitizeField(name)[0]) + .filter((n): n is string => !!n); + + if (names.length === fields.length) { + this.#names = names; + + objectProperties(this, names, (_, i) => this[i]); + } } /** @@ -74,6 +86,13 @@ export class GenericEventData extends Tuple implements IEventData { return this.#method; } + /** + * @description The field names (as available) + */ + public get names (): string[] | null { + return this.#names; + } + /** * @description The section as a string */ @@ -87,6 +106,23 @@ export class GenericEventData extends Tuple implements IEventData { public get typeDef (): TypeDef[] { return this.#typeDef; } + + /** + * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information + */ + public override toHuman (isExtended?: boolean): AnyJson { + if (this.#names !== null) { + const json: Record = {}; + + for (let i = 0; i < this.#names.length; i++) { + json[this.#names[i]] = this[i].toHuman(isExtended); + } + + return json; + } + + return super.toHuman(isExtended); + } } /** @@ -95,7 +131,7 @@ export class GenericEventData extends Tuple implements IEventData { * A representation of a system event. These are generated via the [[Metadata]] interfaces and * specific to a specific Substrate runtime */ -export class GenericEvent extends Struct implements IEvent { +export class GenericEvent extends Struct implements IEvent> { // Currently we _only_ decode from Uint8Array, since we expect it to // be used via EventRecord constructor (registry: Registry, _value?: Uint8Array) { @@ -111,7 +147,7 @@ export class GenericEvent extends Struct implements IEvent { /** * @description The wrapped [[EventData]] */ - public get data (): GenericEventData { + public get data (): GenericEventData & Record { return this.getT('data'); } diff --git a/packages/types/src/metadata/PortableRegistry/PortableRegistry.ts b/packages/types/src/metadata/PortableRegistry/PortableRegistry.ts index 45b4c8309f..825cb591db 100644 --- a/packages/types/src/metadata/PortableRegistry/PortableRegistry.ts +++ b/packages/types/src/metadata/PortableRegistry/PortableRegistry.ts @@ -1,7 +1,7 @@ // Copyright 2017-2022 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -import type { Text, Type, Vec } from '@polkadot/types-codec'; +import type { Option, Text, Type, Vec } from '@polkadot/types-codec'; import type { Registry } from '@polkadot/types-codec/types'; import type { ILookup, TypeDef } from '@polkadot/types-create/types'; import type { PortableType } from '../../interfaces/metadata'; @@ -464,6 +464,25 @@ export class PortableRegistry extends Struct implements ILookup { return this.#typeDefs[lookupIndex]; } + public sanitizeField (name: Option): [string | null, string | null] { + let nameField: string | null = null; + let nameOrig: string | null = null; + + if (name.isSome) { + nameField = stringCamelCase(name.unwrap()); + + if (nameField.includes('#')) { + nameOrig = nameField; + nameField = nameOrig.replace(/#/g, '_'); + } else if (RESERVED.includes(nameField)) { + nameOrig = nameField; + nameField = `${nameField}_`; + } + } + + return [nameField, nameOrig]; + } + #createSiDef (lookupId: SiLookupTypeId): TypeDef { const typeDef = this.getTypeDef(lookupId); const lookupIndex = lookupId.toNumber(); @@ -681,18 +700,9 @@ export class PortableRegistry extends Struct implements ILookup { if (name.isNone) { sub[i] = typeDef; } else { - let nameField = stringCamelCase(name.unwrap()); - let nameOrig: string | null = null; + const [nameField, nameOrig] = this.sanitizeField(name); - if (nameField.includes('#')) { - nameOrig = nameField; - nameField = nameOrig.replace(/#/g, '_'); - } else if (RESERVED.includes(nameField)) { - nameOrig = nameField; - nameField = `${nameField}_`; - } - - if (nameOrig) { + if (nameField && nameOrig) { alias.set(nameField, nameOrig); } diff --git a/packages/types/src/metadata/decorate/events/index.ts b/packages/types/src/metadata/decorate/events/index.ts index bb41e1ac45..e30e43183f 100644 --- a/packages/types/src/metadata/decorate/events/index.ts +++ b/packages/types/src/metadata/decorate/events/index.ts @@ -1,7 +1,7 @@ // Copyright 2017-2022 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 -import type { AnyTuple, Registry } from '@polkadot/types-codec/types'; +import type { AnyTuple, Codec, Registry } from '@polkadot/types-codec/types'; import type { MetadataLatest, PalletMetadataLatest, SiVariant } from '../../../interfaces'; import type { IEvent } from '../../../types'; import type { Events, IsEvent } from '../types'; @@ -26,9 +26,9 @@ export function decorateEvents (registry: Registry, { lookup, pallets }: Metadat const sectionIndex = version >= 12 ? index.toNumber() : i; lazyMethod(result, stringCamelCase(name), () => - lazyVariants(lookup, events.unwrap(), objectNameToString, (variant: SiVariant): IsEvent => ({ + lazyVariants(lookup, events.unwrap(), objectNameToString, (variant: SiVariant): IsEvent> => ({ // We sprinkle in isCodec & isU8a to ensure we are dealing with the correct objects - is: (eventRecord: IEvent): eventRecord is IEvent => + is: > (eventRecord: IEvent>): eventRecord is IEvent => isCodec(eventRecord) && isU8a(eventRecord.index) && sectionIndex === eventRecord.index[0] && diff --git a/packages/types/src/metadata/decorate/types.ts b/packages/types/src/metadata/decorate/types.ts index acc83e8386..1e6c45a45a 100644 --- a/packages/types/src/metadata/decorate/types.ts +++ b/packages/types/src/metadata/decorate/types.ts @@ -16,17 +16,17 @@ export interface IsError { is: (moduleError: DispatchErrorModule | DispatchErrorModuleU8 | DispatchErrorModuleU8a) => boolean; } -export interface IsEvent { +export interface IsEvent > { readonly meta: EventMetadataLatest; - is: (event: IEvent) => event is IEvent; + is: (event: IEvent>) => event is IEvent; } export type ModuleConstants = Record; export type ModuleErrors = Record; -export type ModuleEvents = Record>; +export type ModuleEvents = Record>>; export type ModuleExtrinsics = Record; diff --git a/packages/types/src/types/events.ts b/packages/types/src/types/events.ts index 19da98ae93..d471523d46 100644 --- a/packages/types/src/types/events.ts +++ b/packages/types/src/types/events.ts @@ -6,9 +6,9 @@ import type { EventMetadataLatest } from '../interfaces/metadata'; import type { Hash } from '../interfaces/runtime'; import type { EventId, Phase } from '../interfaces/system'; -export interface IEventRecord { +export interface IEventRecord = Record> { readonly phase: Phase; - readonly event: IEvent; + readonly event: IEvent; readonly topics: Hash[]; } @@ -18,8 +18,8 @@ export interface IEventData { readonly section: string; } -export interface IEvent { - readonly data: ITuple & IEventData; +export interface IEvent = Record> { + readonly data: ITuple & IEventData & N; readonly index: EventId; readonly method: string; readonly section: string;