git.delta.rocks / unique-network / refs/commits / 915ff113b0bb

difftreelog

source

tests/src/interfaces/augment-api-events.ts18.8 KiBsourcehistory
1// Auto-generated via `yarn polkadot-types-from-chain`, do not edit2/* eslint-disable */34import type { EthereumLog, EvmCoreErrorExitReason } from './ethereum';5import type { PalletCommonAccountBasicCrossAccountIdRepr } from './nft';6import type { ApiTypes } from '@polkadot/api/types';7import type { Bytes, 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';10import type { ITuple } from '@polkadot/types/types';1112declare module '@polkadot/api/types/events' {13  export interface AugmentedEvents<ApiType> {14    balances: {15      /**16       * A balance was set by root. \[who, free, reserved\]17       **/18      BalanceSet: AugmentedEvent<ApiType, [AccountId32, u128, u128]>;19      /**20       * Some amount was deposited into the account (e.g. for transaction fees). \[who,21       * deposit\]22       **/23      Deposit: AugmentedEvent<ApiType, [AccountId32, u128]>;24      /**25       * An account was removed whose balance was non-zero but below ExistentialDeposit,26       * resulting in an outright loss. \[account, balance\]27       **/28      DustLost: AugmentedEvent<ApiType, [AccountId32, u128]>;29      /**30       * An account was created with some free balance. \[account, free_balance\]31       **/32      Endowed: AugmentedEvent<ApiType, [AccountId32, u128]>;33      /**34       * Some balance was reserved (moved from free to reserved). \[who, value\]35       **/36      Reserved: AugmentedEvent<ApiType, [AccountId32, u128]>;37      /**38       * Some balance was moved from the reserve of the first account to the second account.39       * Final argument indicates the destination balance type.40       * \[from, to, balance, destination_status\]41       **/42      ReserveRepatriated: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128, FrameSupportTokensMiscBalanceStatus]>;43      /**44       * Some amount was removed from the account (e.g. for misbehavior). \[who,45       * amount_slashed\]46       **/47      Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;48      /**49       * Transfer succeeded. \[from, to, value\]50       **/51      Transfer: AugmentedEvent<ApiType, [AccountId32, AccountId32, u128]>;52      /**53       * Some balance was unreserved (moved from reserved to free). \[who, value\]54       **/55      Unreserved: AugmentedEvent<ApiType, [AccountId32, u128]>;56      /**57       * Some amount was withdrawn from the account (e.g. for transaction fees). \[who, value\]58       **/59      Withdraw: AugmentedEvent<ApiType, [AccountId32, u128]>;60      /**61       * Generic event62       **/63      [key: string]: AugmentedEvent<ApiType>;64    };65    common: {66      /**67       * * collection_id68       * 69       * * item_id70       * 71       * * sender72       * 73       * * spender74       * 75       * * amount76       **/77      Approved: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;78      /**79       * New collection was created80       * 81       * # Arguments82       * 83       * * collection_id: Globally unique identifier of newly created collection.84       * 85       * * mode: [CollectionMode] converted into u8.86       * 87       * * account_id: Collection owner.88       **/89      CollectionCreated: AugmentedEvent<ApiType, [u32, u8, AccountId32]>;90      /**91       * New item was created.92       * 93       * # Arguments94       * 95       * * collection_id: Id of the collection where item was created.96       * 97       * * item_id: Id of an item. Unique within the collection.98       * 99       * * recipient: Owner of newly created item100       * 101       * * amount: Always 1 for NFT102       **/103      ItemCreated: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;104      /**105       * Collection item was burned.106       * 107       * # Arguments108       * 109       * * collection_id.110       * 111       * * item_id: Identifier of burned NFT.112       * 113       * * owner: which user has destroyed its tokens114       * 115       * * amount: Always 1 for NFT116       **/117      ItemDestroyed: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;118      /**119       * Item was transferred120       * 121       * * collection_id: Id of collection to which item is belong122       * 123       * * item_id: Id of an item124       * 125       * * sender: Original owner of item126       * 127       * * recipient: New owner of item128       * 129       * * amount: Always 1 for NFT130       **/131      Transfer: AugmentedEvent<ApiType, [u32, u32, PalletCommonAccountBasicCrossAccountIdRepr, PalletCommonAccountBasicCrossAccountIdRepr, u128]>;132      /**133       * Generic event134       **/135      [key: string]: AugmentedEvent<ApiType>;136    };137    cumulusXcm: {138      /**139       * Downward message executed with the given outcome.140       * \[ id, outcome \]141       **/142      ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;143      /**144       * Downward message is invalid XCM.145       * \[ id \]146       **/147      InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;148      /**149       * Downward message is unsupported version of XCM.150       * \[ id \]151       **/152      UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;153      /**154       * Generic event155       **/156      [key: string]: AugmentedEvent<ApiType>;157    };158    dmpQueue: {159      /**160       * Downward message executed with the given outcome.161       * \[ id, outcome \]162       **/163      ExecutedDownward: AugmentedEvent<ApiType, [U8aFixed, XcmV2TraitsOutcome]>;164      /**165       * Downward message is invalid XCM.166       * \[ id \]167       **/168      InvalidFormat: AugmentedEvent<ApiType, [U8aFixed]>;169      /**170       * Downward message is overweight and was placed in the overweight queue.171       * \[ id, index, required \]172       **/173      OverweightEnqueued: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;174      /**175       * Downward message from the overweight queue was executed.176       * \[ index, used \]177       **/178      OverweightServiced: AugmentedEvent<ApiType, [u64, u64]>;179      /**180       * Downward message is unsupported version of XCM.181       * \[ id \]182       **/183      UnsupportedVersion: AugmentedEvent<ApiType, [U8aFixed]>;184      /**185       * The weight limit for handling downward messages was reached.186       * \[ id, remaining, required \]187       **/188      WeightExhausted: AugmentedEvent<ApiType, [U8aFixed, u64, u64]>;189      /**190       * Generic event191       **/192      [key: string]: AugmentedEvent<ApiType>;193    };194    ethereum: {195      /**196       * An ethereum transaction was successfully executed. [from, to/contract_address, transaction_hash, exit_reason]197       **/198      Executed: AugmentedEvent<ApiType, [H160, H160, H256, EvmCoreErrorExitReason]>;199      /**200       * Generic event201       **/202      [key: string]: AugmentedEvent<ApiType>;203    };204    evm: {205      /**206       * A deposit has been made at a given address. \[sender, address, value\]207       **/208      BalanceDeposit: AugmentedEvent<ApiType, [AccountId32, H160, U256]>;209      /**210       * A withdrawal has been made from a given address. \[sender, address, value\]211       **/212      BalanceWithdraw: AugmentedEvent<ApiType, [AccountId32, H160, U256]>;213      /**214       * A contract has been created at given \[address\].215       **/216      Created: AugmentedEvent<ApiType, [H160]>;217      /**218       * A \[contract\] was attempted to be created, but the execution failed.219       **/220      CreatedFailed: AugmentedEvent<ApiType, [H160]>;221      /**222       * A \[contract\] has been executed successfully with states applied.223       **/224      Executed: AugmentedEvent<ApiType, [H160]>;225      /**226       * A \[contract\] has been executed with errors. States are reverted with only gas fees applied.227       **/228      ExecutedFailed: AugmentedEvent<ApiType, [H160]>;229      /**230       * Ethereum events from contracts.231       **/232      Log: AugmentedEvent<ApiType, [EthereumLog]>;233      /**234       * Generic event235       **/236      [key: string]: AugmentedEvent<ApiType>;237    };238    parachainSystem: {239      /**240       * Downward messages were processed using the given weight.241       * \[ weight_used, result_mqc_head \]242       **/243      DownwardMessagesProcessed: AugmentedEvent<ApiType, [u64, H256]>;244      /**245       * Some downward messages have been received and will be processed.246       * \[ count \]247       **/248      DownwardMessagesReceived: AugmentedEvent<ApiType, [u32]>;249      /**250       * An upgrade has been authorized.251       **/252      UpgradeAuthorized: AugmentedEvent<ApiType, [H256]>;253      /**254       * The validation function was applied as of the contained relay chain block number.255       **/256      ValidationFunctionApplied: AugmentedEvent<ApiType, [u32]>;257      /**258       * The relay-chain aborted the upgrade process.259       **/260      ValidationFunctionDiscarded: AugmentedEvent<ApiType, []>;261      /**262       * The validation function has been scheduled to apply.263       **/264      ValidationFunctionStored: AugmentedEvent<ApiType, []>;265      /**266       * Generic event267       **/268      [key: string]: AugmentedEvent<ApiType>;269    };270    polkadotXcm: {271      /**272       * Some assets have been placed in an asset trap.273       * 274       * \[ hash, origin, assets \]275       **/276      AssetsTrapped: AugmentedEvent<ApiType, [H256, XcmV1MultiLocation, XcmVersionedMultiAssets]>;277      /**278       * Execution of an XCM message was attempted.279       * 280       * \[ outcome \]281       **/282      Attempted: AugmentedEvent<ApiType, [XcmV2TraitsOutcome]>;283      /**284       * Expected query response has been received but the origin location of the response does285       * not match that expected. The query remains registered for a later, valid, response to286       * be received and acted upon.287       * 288       * \[ origin location, id, expected location \]289       **/290      InvalidResponder: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, Option<XcmV1MultiLocation>]>;291      /**292       * Expected query response has been received but the expected origin location placed in293       * storate by this runtime previously cannot be decoded. The query remains registered.294       * 295       * This is unexpected (since a location placed in storage in a previously executing296       * runtime should be readable prior to query timeout) and dangerous since the possibly297       * valid response will be dropped. Manual governance intervention is probably going to be298       * needed.299       * 300       * \[ origin location, id \]301       **/302      InvalidResponderVersion: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;303      /**304       * Query response has been received and query is removed. The registered notification has305       * been dispatched and executed successfully.306       * 307       * \[ id, pallet index, call index \]308       **/309      Notified: AugmentedEvent<ApiType, [u64, u8, u8]>;310      /**311       * Query response has been received and query is removed. The dispatch was unable to be312       * decoded into a `Call`; this might be due to dispatch function having a signature which313       * is not `(origin, QueryId, Response)`.314       * 315       * \[ id, pallet index, call index \]316       **/317      NotifyDecodeFailed: AugmentedEvent<ApiType, [u64, u8, u8]>;318      /**319       * Query response has been received and query is removed. There was a general error with320       * dispatching the notification call.321       * 322       * \[ id, pallet index, call index \]323       **/324      NotifyDispatchError: AugmentedEvent<ApiType, [u64, u8, u8]>;325      /**326       * Query response has been received and query is removed. The registered notification could327       * not be dispatched because the dispatch weight is greater than the maximum weight328       * originally budgeted by this runtime for the query result.329       * 330       * \[ id, pallet index, call index, actual weight, max budgeted weight \]331       **/332      NotifyOverweight: AugmentedEvent<ApiType, [u64, u8, u8, u64, u64]>;333      /**334       * A given location which had a version change subscription was dropped owing to an error335       * migrating the location to our new XCM format.336       * 337       * \[ location, query ID \]338       **/339      NotifyTargetMigrationFail: AugmentedEvent<ApiType, [XcmVersionedMultiLocation, u64]>;340      /**341       * A given location which had a version change subscription was dropped owing to an error342       * sending the notification to it.343       * 344       * \[ location, query ID, error \]345       **/346      NotifyTargetSendFail: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64, XcmV2TraitsError]>;347      /**348       * Query response has been received and is ready for taking with `take_response`. There is349       * no registered notification call.350       * 351       * \[ id, response \]352       **/353      ResponseReady: AugmentedEvent<ApiType, [u64, XcmV2Response]>;354      /**355       * Received query response has been read and removed.356       * 357       * \[ id \]358       **/359      ResponseTaken: AugmentedEvent<ApiType, [u64]>;360      /**361       * A XCM message was sent.362       * 363       * \[ origin, destination, message \]364       **/365      Sent: AugmentedEvent<ApiType, [XcmV1MultiLocation, XcmV1MultiLocation, XcmV2Xcm]>;366      /**367       * The supported version of a location has been changed. This might be through an368       * automatic notification or a manual intervention.369       * 370       * \[ location, XCM version \]371       **/372      SupportedVersionChanged: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;373      /**374       * Query response received which does not match a registered query. This may be because a375       * matching query was never registered, it may be because it is a duplicate response, or376       * because the query timed out.377       * 378       * \[ origin location, id \]379       **/380      UnexpectedResponse: AugmentedEvent<ApiType, [XcmV1MultiLocation, u64]>;381      /**382       * An XCM version change notification message has been attempted to be sent.383       * 384       * \[ destination, result \]385       **/386      VersionChangeNotified: AugmentedEvent<ApiType, [XcmV1MultiLocation, u32]>;387      /**388       * Generic event389       **/390      [key: string]: AugmentedEvent<ApiType>;391    };392    scheduler: {393      /**394       * Canceled some task. \[when, index\]395       **/396      Canceled: AugmentedEvent<ApiType, [u32, u32]>;397      /**398       * Dispatched some task. \[task, id, result\]399       **/400      Dispatched: AugmentedEvent<ApiType, [ITuple<[u32, u32]>, Option<Bytes>, Result<Null, SpRuntimeDispatchError>]>;401      /**402       * Scheduled some task. \[when, index\]403       **/404      Scheduled: AugmentedEvent<ApiType, [u32, u32]>;405      /**406       * Generic event407       **/408      [key: string]: AugmentedEvent<ApiType>;409    };410    sudo: {411      /**412       * The \[sudoer\] just switched identity; the old key is supplied.413       **/414      KeyChanged: AugmentedEvent<ApiType, [AccountId32]>;415      /**416       * A sudo just took place. \[result\]417       **/418      Sudid: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;419      /**420       * A sudo just took place. \[result\]421       **/422      SudoAsDone: AugmentedEvent<ApiType, [Result<Null, SpRuntimeDispatchError>]>;423      /**424       * Generic event425       **/426      [key: string]: AugmentedEvent<ApiType>;427    };428    system: {429      /**430       * `:code` was updated.431       **/432      CodeUpdated: AugmentedEvent<ApiType, []>;433      /**434       * An extrinsic failed. \[error, info\]435       **/436      ExtrinsicFailed: AugmentedEvent<ApiType, [SpRuntimeDispatchError, FrameSupportWeightsDispatchInfo]>;437      /**438       * An extrinsic completed successfully. \[info\]439       **/440      ExtrinsicSuccess: AugmentedEvent<ApiType, [FrameSupportWeightsDispatchInfo]>;441      /**442       * An \[account\] was reaped.443       **/444      KilledAccount: AugmentedEvent<ApiType, [AccountId32]>;445      /**446       * A new \[account\] was created.447       **/448      NewAccount: AugmentedEvent<ApiType, [AccountId32]>;449      /**450       * On on-chain remark happened. \[origin, remark_hash\]451       **/452      Remarked: AugmentedEvent<ApiType, [AccountId32, H256]>;453      /**454       * Generic event455       **/456      [key: string]: AugmentedEvent<ApiType>;457    };458    treasury: {459      /**460       * Some funds have been allocated. \[proposal_index, award, beneficiary\]461       **/462      Awarded: AugmentedEvent<ApiType, [u32, u128, AccountId32]>;463      /**464       * Some of our funds have been burnt. \[burn\]465       **/466      Burnt: AugmentedEvent<ApiType, [u128]>;467      /**468       * Some funds have been deposited. \[deposit\]469       **/470      Deposit: AugmentedEvent<ApiType, [u128]>;471      /**472       * New proposal. \[proposal_index\]473       **/474      Proposed: AugmentedEvent<ApiType, [u32]>;475      /**476       * A proposal was rejected; funds were slashed. \[proposal_index, slashed\]477       **/478      Rejected: AugmentedEvent<ApiType, [u32, u128]>;479      /**480       * Spending has finished; this is the amount that rolls over until next spend.481       * \[budget_remaining\]482       **/483      Rollover: AugmentedEvent<ApiType, [u128]>;484      /**485       * We have ended a spend period and will now allocate funds. \[budget_remaining\]486       **/487      Spending: AugmentedEvent<ApiType, [u128]>;488      /**489       * Generic event490       **/491      [key: string]: AugmentedEvent<ApiType>;492    };493    vesting: {494      /**495       * An \[account\] has become fully vested.496       **/497      VestingCompleted: AugmentedEvent<ApiType, [AccountId32]>;498      /**499       * The amount vested has been updated. This could indicate a change in funds available.500       * The balance given is the amount which is left unvested (and thus locked).501       * \[account, unvested\]502       **/503      VestingUpdated: AugmentedEvent<ApiType, [AccountId32, u128]>;504      /**505       * Generic event506       **/507      [key: string]: AugmentedEvent<ApiType>;508    };509    xcmpQueue: {510      /**511       * Bad XCM format used.512       **/513      BadFormat: AugmentedEvent<ApiType, [Option<H256>]>;514      /**515       * Bad XCM version used.516       **/517      BadVersion: AugmentedEvent<ApiType, [Option<H256>]>;518      /**519       * Some XCM failed.520       **/521      Fail: AugmentedEvent<ApiType, [Option<H256>, XcmV2TraitsError]>;522      /**523       * Some XCM was executed ok.524       **/525      Success: AugmentedEvent<ApiType, [Option<H256>]>;526      /**527       * An upward message was sent to the relay chain.528       **/529      UpwardMessageSent: AugmentedEvent<ApiType, [Option<H256>]>;530      /**531       * An HRMP message was sent to a sibling parachain.532       **/533      XcmpMessageSent: AugmentedEvent<ApiType, [Option<H256>]>;534      /**535       * Generic event536       **/537      [key: string]: AugmentedEvent<ApiType>;538    };539  }540541  export interface DecoratedEvents<ApiType extends ApiTypes> extends AugmentedEvents<ApiType> {542    [key: string]: ModuleEvents<ApiType>;543  }544}