1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { EthereumLog, EvmCoreErrorExitReason } from './ethereum';5import type { PalletCommonAccountBasicCrossAccountIdRepr } from './unique';6import type { ApiTypes } from '@polkadot/api/types';7import type { Null, Option, Result, U256, U8aFixed, u128, u32, u64, u8 } from '@polkadot/types';8import type { AccountId32, H160, H256 } from '@polkadot/types/interfaces/runtime';9import type { FrameSupportTokensMiscBalanceStatus, FrameSupportWeightsDispatchInfo, SpRuntimeDispatchError, XcmV1MultiLocation, XcmV2Response, XcmV2TraitsError, XcmV2TraitsOutcome, XcmV2Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';1011declare module '@polkadot/api/types/events' {12 export interface AugmentedEvents<ApiType> {13 balances: {14 /**15 * A balance was set by root. \[who, free, reserved\]16 **/17 BalanceSet: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;18 /**19 * Some amount was deposited into the account (e.g. for transaction fees). \[who,20 * deposit\]21 **/22 Deposit: AugmentedEvent<ApiType, [AccountId32, u128]>;23 /**24 * An account was removed whose balance was non-zero but below ExistentialDeposit,25 * resulting in an outright loss. \[account, balance\]26 **/27 DustLost: AugmentedEvent<ApiType, [AccountId32, u128]>;28 /**29 * An account was created with some free balance. \[account, free_balance\]30 **/31 Endowed: AugmentedEvent<ApiType, [AccountId32, u128]>;32 /**33 * Some balance was reserved (moved from free to reserved). \[who, value\]34 **/35 Reserved: AugmentedEvent<ApiType, [AccountId32, u128]>;36 /**37 * Some balance was moved from the reserve of the first account to the second account.38 * Final argument indicates the destination balance type.39 * \[from, to, balance, destination_status\]40 **/41 ReserveRepatriated: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus]>;42 /**43 * Some amount was removed from the account (e.g. for misbehavior). \[who,44 * amount_slashed\]45 **/46 Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;47 /**48 * Transfer succeeded. \[from, to, value\]49 **/50 Transfer: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128]>;51 /**52 * Some balance was unreserved (moved from reserved to free). \[who, value\]53 **/54 Unreserved: AugmentedEvent<ApiType, [AccountId32, u128]>;55 /**56 * Some amount was withdrawn from the account (e.g. for transaction fees). \[who, value\]57 **/58 Withdraw: AugmentedEvent<ApiType, [AccountId32, u128]>;59 /**60 * Generic event61 **/62 [key: string]: AugmentedEvent<ApiType>;63 };64 common: {65 /**66 * * collection_id67 * 68 * * item_id69 * 70 * * sender71 * 72 * * spender73 * 74 * * amount75 **/76 Approved: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;77 /**78 * New collection was created79 * 80 * # Arguments81 * 82 * * collection_id: Globally unique identifier of newly created collection.83 * 84 * * mode: [CollectionMode] converted into u8.85 * 86 * * account_id: Collection owner.87 **/88 CollectionCreated: AugmentedEvent<ApiType, [u32, u8, AccountId32]>;89 /**90 * New item was created.91 * 92 * # Arguments93 * 94 * * collection_id: Id of the collection where item was created.95 * 96 * * item_id: Id of an item. Unique within the collection.97 * 98 * * recipient: Owner of newly created item99 * 100 * * amount: Always 1 for NFT101 **/102 ItemCreated: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;103 /**104 * Collection item was burned.105 * 106 * # Arguments107 * 108 * * collection_id.109 * 110 * * item_id: Identifier of burned NFT.111 * 112 * * owner: which user has destroyed its tokens113 * 114 * * amount: Always 1 for NFT115 **/116 ItemDestroyed: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;117 /**118 * Item was transferred119 * 120 * * collection_id: Id of collection to which item is belong121 * 122 * * item_id: Id of an item123 * 124 * * sender: Original owner of item125 * 126 * * recipient: New owner of item127 * 128 * * amount: Always 1 for NFT129 **/130 Transfer: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;131 /**132 * Generic event133 **/134 [key: string]: AugmentedEvent<ApiType>;135 };136 cumulusXcm: {137 /**138 * Downward message executed with the given outcome.139 * \[ id, outcome \]140 **/141 ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;142 /**143 * Downward message is invalid XCM.144 * \[ id \]145 **/146 InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;147 /**148 * Downward message is unsupported version of XCM.149 * \[ id \]150 **/151 UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;152 /**153 * Generic event154 **/155 [key: string]: AugmentedEvent<ApiType>;156 };157 dmpQueue: {158 /**159 * Downward message executed with the given outcome.160 * \[ id, outcome \]161 **/162 ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;163 /**164 * Downward message is invalid XCM.165 * \[ id \]166 **/167 InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;168 /**169 * Downward message is overweight and was placed in the overweight queue.170 * \[ id, index, required \]171 **/172 OverweightEnqueued: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;173 /**174 * Downward message from the overweight queue was executed.175 * \[ index, used \]176 **/177 OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;178 /**179 * Downward message is unsupported version of XCM.180 * \[ id \]181 **/182 UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;183 /**184 * The weight limit for handling downward messages was reached.185 * \[ id, remaining, required \]186 **/187 WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;188 /**189 * Generic event190 **/191 [key: string]: AugmentedEvent<ApiType>;192 };193 ethereum: {194 /**195 * An ethereum transaction was successfully executed. [from, to/contract_address, transaction_hash, exit_reason]196 **/197 Executed: AugmentedEvent<ApiType, [H160, H160, H256, EvmCoreErrorExitReason]>;198 /**199 * Generic event200 **/201 [key: string]: AugmentedEvent<ApiType>;202 };203 evm: {204 /**205 * A deposit has been made at a given address. \[sender, address, value\]206 **/207 BalanceDeposit: AugmentedEvent<ApiType, [AccountId32, H160, U256]>;208 /**209 * A withdrawal has been made from a given address. \[sender, address, value\]210 **/211 BalanceWithdraw: AugmentedEvent<ApiType, [AccountId32, H160, U256]>;212 /**213 * A contract has been created at given \[address\].214 **/215 Created: AugmentedEvent<ApiType, [H160]>;216 /**217 * A \[contract\] was attempted to be created, but the execution failed.218 **/219 CreatedFailed: AugmentedEvent<ApiType, [H160]>;220 /**221 * A \[contract\] has been executed successfully with states applied.222 **/223 Executed: AugmentedEvent<ApiType, [H160]>;224 /**225 * A \[contract\] has been executed with errors. States are reverted with only gas fees applied.226 **/227 ExecutedFailed: AugmentedEvent<ApiType, [H160]>;228 /**229 * Ethereum events from contracts.230 **/231 Log: AugmentedEvent<ApiType, [EthereumLog]>;232 /**233 * Generic event234 **/235 [key: string]: AugmentedEvent<ApiType>;236 };237 parachainSystem: {238 /**239 * Downward messages were processed using the given weight.240 * \[ weight_used, result_mqc_head \]241 **/242 DownwardMessagesProcessed: AugmentedEvent<ApiType, [u64, H256]>;243 /**244 * Some downward messages have been received and will be processed.245 * \[ count \]246 **/247 DownwardMessagesReceived: AugmentedEvent<ApiType, [u32]>;248 /**249 * An upgrade has been authorized.250 **/251 UpgradeAuthorized: AugmentedEvent<ApiType, [H256]>;252 /**253 * The validation function was applied as of the contained relay chain block number.254 **/255 ValidationFunctionApplied: AugmentedEvent<ApiType, [u32]>;256 /**257 * The relay-chain aborted the upgrade process.258 **/259 ValidationFunctionDiscarded: AugmentedEvent<ApiType, []>;260 /**261 * The validation function has been scheduled to apply.262 **/263 ValidationFunctionStored: AugmentedEvent<ApiType, []>;264 /**265 * Generic event266 **/267 [key: string]: AugmentedEvent<ApiType>;268 };269 polkadotXcm: {270 /**271 * Some assets have been placed in an asset trap.272 * 273 * \[ hash, origin, assets \]274 **/275 AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;276 /**277 * Execution of an XCM message was attempted.278 * 279 * \[ outcome \]280 **/281 Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;282 /**283 * Expected query response has been received but the origin location of the response does284 * not match that expected. The query remains registered for a later, valid, response to285 * be received and acted upon.286 * 287 * \[ origin location, id, expected location \]288 **/289 InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;290 /**291 * Expected query response has been received but the expected origin location placed in292 * storate by this runtime previously cannot be decoded. The query remains registered.293 * 294 * This is unexpected (since a location placed in storage in a previously executing295 * runtime should be readable prior to query timeout) and dangerous since the possibly296 * valid response will be dropped. Manual governance intervention is probably going to be297 * needed.298 * 299 * \[ origin location, id \]300 **/301 InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;302 /**303 * Query response has been received and query is removed. The registered notification has304 * been dispatched and executed successfully.305 * 306 * \[ id, pallet index, call index \]307 **/308 Notified: AugmentedEvent<ApiType, [u64, u8, u8]>;309 /**310 * Query response has been received and query is removed. The dispatch was unable to be311 * decoded into a `Call`; this might be due to dispatch function having a signature which312 * is not `(origin, QueryId, Response)`.313 * 314 * \[ id, pallet index, call index \]315 **/316 NotifyDecodeFailed: AugmentedEvent<ApiType, [u64, u8, u8]>;317 /**318 * Query response has been received and query is removed. There was a general error with319 * dispatching the notification call.320 * 321 * \[ id, pallet index, call index \]322 **/323 NotifyDispatchError: AugmentedEvent<ApiType, [u64, u8, u8]>;324 /**325 * Query response has been received and query is removed. The registered notification could326 * not be dispatched because the dispatch weight is greater than the maximum weight327 * originally budgeted by this runtime for the query result.328 * 329 * \[ id, pallet index, call index, actual weight, max budgeted weight \]330 **/331 NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;332 /**333 * A given location which had a version change subscription was dropped owing to an error334 * migrating the location to our new XCM format.335 * 336 * \[ location, query ID \]337 **/338 NotifyTargetMigrationFail: AugmentedEvent<ApiType, [XcmVersionedMultiLocation, u64]>;339 /**340 * A given location which had a version change subscription was dropped owing to an error341 * sending the notification to it.342 * 343 * \[ location, query ID, error \]344 **/345 NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;346 /**347 * Query response has been received and is ready for taking with `take_response`. There is348 * no registered notification call.349 * 350 * \[ id, response \]351 **/352 ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;353 /**354 * Received query response has been read and removed.355 * 356 * \[ id \]357 **/358 ResponseTaken: AugmentedEvent<ApiType, [u64]>;359 /**360 * A XCM message was sent.361 * 362 * \[ origin, destination, message \]363 **/364 Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;365 /**366 * The supported version of a location has been changed. This might be through an367 * automatic notification or a manual intervention.368 * 369 * \[ location, XCM version \]370 **/371 SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;372 /**373 * Query response received which does not match a registered query. This may be because a374 * matching query was never registered, it may be because it is a duplicate response, or375 * because the query timed out.376 * 377 * \[ origin location, id \]378 **/379 UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;380 /**381 * An XCM version change notification message has been attempted to be sent.382 * 383 * \[ destination, result \]384 **/385 VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;386 /**387 * Generic event388 **/389 [key: string]: AugmentedEvent<ApiType>;390 };391 sudo: {392 /**393 * The \[sudoer\] just switched identity; the old key is supplied.394 **/395 KeyChanged: AugmentedEvent<ApiType, [AccountId32]>;396 /**397 * A sudo just took place. \[result\]398 **/399 Sudid: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;400 /**401 * A sudo just took place. \[result\]402 **/403 SudoAsDone: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;404 /**405 * Generic event406 **/407 [key: string]: AugmentedEvent<ApiType>;408 };409 system: {410 /**411 * `:code` was updated.412 **/413 CodeUpdated: AugmentedEvent<ApiType, []>;414 /**415 * An extrinsic failed. \[error, info\]416 **/417 ExtrinsicFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;418 /**419 * An extrinsic completed successfully. \[info\]420 **/421 ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;422 /**423 * An \[account\] was reaped.424 **/425 KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;426 /**427 * A new \[account\] was created.428 **/429 NewAccount: AugmentedEvent<ApiType, [AccountId32]>;430 /**431 * On on-chain remark happened. \[origin, remark_hash\]432 **/433 Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;434 /**435 * Generic event436 **/437 [key: string]: AugmentedEvent<ApiType>;438 };439 treasury: {440 /**441 * Some funds have been allocated. \[proposal_index, award, beneficiary\]442 **/443 Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId32]>;444 /**445 * Some of our funds have been burnt. \[burn\]446 **/447 Burnt: AugmentedEvent<ApiType, [u128]>;448 /**449 * Some funds have been deposited. \[deposit\]450 **/451 Deposit: AugmentedEvent<ApiType, [u128]>;452 /**453 * New proposal. \[proposal_index\]454 **/455 Proposed: AugmentedEvent<ApiType, [u32]>;456 /**457 * A proposal was rejected; funds were slashed. \[proposal_index, slashed\]458 **/459 Rejected: AugmentedEvent<ApiType, [u32, u128]>;460 /**461 * Spending has finished; this is the amount that rolls over until next spend.462 * \[budget_remaining\]463 **/464 Rollover: AugmentedEvent<ApiType, [u128]>;465 /**466 * We have ended a spend period and will now allocate funds. \[budget_remaining\]467 **/468 Spending: AugmentedEvent<ApiType, [u128]>;469 /**470 * Generic event471 **/472 [key: string]: AugmentedEvent<ApiType>;473 };474 vesting: {475 /**476 * Claimed vesting. \[who, locked_amount\]477 **/478 Claimed: AugmentedEvent<ApiType, [AccountId32, u128]>;479 /**480 * Added new vesting schedule. \[from, to, vesting_schedule\]481 **/482 VestingScheduleAdded: AugmentedEvent<ApiType, [AccountId32, AccountId32, OrmlVestingVestingSchedule]>;483 /**484 * Updated vesting schedules. \[who\]485 **/486 VestingSchedulesUpdated: AugmentedEvent<ApiType, [AccountId32]>;487 /**488 * Generic event489 **/490 [key: string]: AugmentedEvent<ApiType>;491 };492 xcmpQueue: {493 /**494 * Bad XCM format used.495 **/496 BadFormat: AugmentedEvent<ApiType, [Option<H256>]>;497 /**498 * Bad XCM version used.499 **/500 BadVersion: AugmentedEvent<ApiType, [Option<H256>]>;501 /**502 * Some XCM failed.503 **/504 Fail: AugmentedEvent<ApiType, [Option<H256>, XcmV2TraitsError]>;505 /**506 * Some XCM was executed ok.507 **/508 Success: AugmentedEvent<ApiType, [Option<H256>]>;509 /**510 * An upward message was sent to the relay chain.511 **/512 UpwardMessageSent: AugmentedEvent<ApiType, [Option<H256>]>;513 /**514 * An HRMP message was sent to a sibling parachain.515 **/516 XcmpMessageSent: AugmentedEvent<ApiType, [Option<H256>]>;517 /**518 * Generic event519 **/520 [key: string]: AugmentedEvent<ApiType>;521 };522 }523524 export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {525 [key: string]: ModuleEvents<ApiType>;526 }527}difftreelog
source
tests/src/interfaces/augment-api-events.ts18.2 KiBsourcehistory