import '@polkadot/api-base/types/events'; import type { ApiTypes } from '@polkadot/api-base/types'; import type { AccountId32, H256 } from '@polkadot/types/interfaces/runtime'; import type { BTreeMap, BTreeSet, bool, Option, u32 } from '@polkadot/types-codec'; import type { GearCommonEventCodeChangeKind, GearCommonEventDispatchStatus, GearCommonEventMessageEntry, GearCommonEventProgramChangeKind, GearCommonEventReasonMessageWaitedRuntimeReason, GearCommonEventReasonMessageWokenRuntimeReason, GearCommonEventReasonUserMessageReadRuntimeReason, GearCommonGasProviderNodeGasNodeId, GearCoreMessageUserUserMessage, GprimitivesActorId, GprimitivesCodeId, GprimitivesMessageId, PalletGearDebugDebugData, PalletGearEthBridgePrimitivesEthMessage, PalletGearVoucherInternalVoucherId } from '../lookup'; declare module '@polkadot/api-base/types/events' { interface AugmentedEvents { gear: { /** * Any data related to program codes changed. **/ CodeChanged: AugmentedEvent; /** * User sends message to program, which was successfully * added to the Gear message queue. **/ MessageQueued: AugmentedEvent; /** * The result of processing the messages within the block. **/ MessagesDispatched: AugmentedEvent, stateChanges: BTreeSet ], { total: u32; statuses: BTreeMap; stateChanges: BTreeSet; }>; /** * Messages execution delayed (waited) and successfully * added to gear waitlist. **/ MessageWaited: AugmentedEvent, reason: GearCommonEventReasonMessageWaitedRuntimeReason, expiration: u32 ], { id: GprimitivesMessageId; origin: Option; reason: GearCommonEventReasonMessageWaitedRuntimeReason; expiration: u32; }>; /** * Message is ready to continue its execution * and was removed from `Waitlist`. **/ MessageWoken: AugmentedEvent; /** * Any data related to programs changed. **/ ProgramChanged: AugmentedEvent; /** * The pseudo-inherent extrinsic that runs queue processing rolled back or not executed. **/ QueueNotProcessed: AugmentedEvent; /** * Message marked as "read" and removes it from `Mailbox`. * This event only affects messages that were * already inserted in `Mailbox`. **/ UserMessageRead: AugmentedEvent; /** * Somebody sent a message to the user. **/ UserMessageSent: AugmentedEvent ], { message: GearCoreMessageUserUserMessage; expiration: Option; }>; /** * Generic event **/ [key: string]: AugmentedEvent; }; gearDebug: { /** * A snapshot of the debug data: programs and message queue ('debug mode' only) **/ DebugDataSnapshot: AugmentedEvent; DebugMode: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; gearEthBridge: { /** * Grandpa validator's keys set was hashed and set in storage at * first block of the last session in the era. **/ AuthoritySetHashChanged: AugmentedEvent; /** * Bridge got cleared on initialization of the second block in a new era. **/ BridgeCleared: AugmentedEvent; /** * Optimistically, single-time called event defining that pallet * got initialized and started processing session changes, * as well as putting initial zeroed queue merkle root. **/ BridgeInitialized: AugmentedEvent; /** * Bridge was paused and temporary doesn't process any incoming requests. **/ BridgePaused: AugmentedEvent; /** * Bridge was unpaused and from now on processes any incoming requests. **/ BridgeUnpaused: AugmentedEvent; /** * A new message was queued for bridging. **/ MessageQueued: AugmentedEvent; /** * Merkle root of the queue changed: new messages queued within the block. **/ QueueMerkleRootChanged: AugmentedEvent; /** * Generic event **/ [key: string]: AugmentedEvent; }; gearVoucher: { /** * Voucher has been declined (set to expired state). **/ VoucherDeclined: AugmentedEvent; /** * Voucher has been issued. **/ VoucherIssued: AugmentedEvent; /** * Voucher has been revoked by owner. * * NOTE: currently means only "refunded". **/ VoucherRevoked: AugmentedEvent; /** * Voucher has been updated. **/ VoucherUpdated: AugmentedEvent ], { spender: AccountId32; voucherId: PalletGearVoucherInternalVoucherId; newOwner: Option; }>; /** * Generic event **/ [key: string]: AugmentedEvent; }; } }