import '@polkadot/api-base/types/events'; import type { BTreeMap, BTreeSet, Option, bool, u32 } from '@polkadot/types-codec'; import { GearCommonEventCodeChangeKind, GearCommonEventDispatchStatus, GearCommonEventMessageEntry, GearCommonEventProgramChangeKind, GearCommonEventReasonMessageWaitedRuntimeReason, GearCommonEventReasonMessageWokenRuntimeReason, GearCommonEventReasonUserMessageReadRuntimeReason, GearCommonGasProviderNodeGasNodeId, GearCoreMessageUserUserMessage, GprimitivesActorId, GprimitivesCodeId, GprimitivesMessageId, PalletGearDebugDebugData, PalletGearVoucherInternalVoucherId, } from '../lookup'; import type { AccountId32 } from '@polkadot/types/interfaces/runtime'; import type { ApiTypes } from '@polkadot/api-base/types'; declare module '@polkadot/api-base/types/events' { interface AugmentedEvents { gear: { /** * Any data related to program codes changed. **/ CodeChanged: AugmentedEvent< ApiType, [id: GprimitivesCodeId, change: GearCommonEventCodeChangeKind], { id: GprimitivesCodeId; change: GearCommonEventCodeChangeKind } >; /** * User sends message to program, which was successfully * added to the Gear message queue. **/ MessageQueued: AugmentedEvent< ApiType, [ id: GprimitivesMessageId, source: AccountId32, destination: GprimitivesActorId, entry: GearCommonEventMessageEntry, ], { id: GprimitivesMessageId; source: AccountId32; destination: GprimitivesActorId; entry: GearCommonEventMessageEntry; } >; /** * The result of processing the messages within the block. **/ MessagesDispatched: AugmentedEvent< ApiType, [ total: u32, statuses: BTreeMap, stateChanges: BTreeSet, ], { total: u32; statuses: BTreeMap; stateChanges: BTreeSet; } >; /** * Messages execution delayed (waited) and successfully * added to gear waitlist. **/ MessageWaited: AugmentedEvent< ApiType, [ id: GprimitivesMessageId, origin: Option, 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< ApiType, [id: GprimitivesMessageId, reason: GearCommonEventReasonMessageWokenRuntimeReason], { id: GprimitivesMessageId; reason: GearCommonEventReasonMessageWokenRuntimeReason } >; /** * Any data related to programs changed. **/ ProgramChanged: AugmentedEvent< ApiType, [id: GprimitivesActorId, change: GearCommonEventProgramChangeKind], { id: GprimitivesActorId; change: GearCommonEventProgramChangeKind } >; /** * 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< ApiType, [id: GprimitivesMessageId, reason: GearCommonEventReasonUserMessageReadRuntimeReason], { id: GprimitivesMessageId; reason: GearCommonEventReasonUserMessageReadRuntimeReason } >; /** * Somebody sent a message to the user. **/ UserMessageSent: AugmentedEvent< ApiType, [message: GearCoreMessageUserUserMessage, expiration: Option], { 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; }; gearVoucher: { /** * Voucher has been declined (set to expired state). **/ VoucherDeclined: AugmentedEvent< ApiType, [spender: AccountId32, voucherId: PalletGearVoucherInternalVoucherId], { spender: AccountId32; voucherId: PalletGearVoucherInternalVoucherId } >; /** * Voucher has been issued. **/ VoucherIssued: AugmentedEvent< ApiType, [owner: AccountId32, spender: AccountId32, voucherId: PalletGearVoucherInternalVoucherId], { owner: AccountId32; spender: AccountId32; voucherId: PalletGearVoucherInternalVoucherId } >; /** * Voucher has been revoked by owner. * * NOTE: currently means only "refunded". **/ VoucherRevoked: AugmentedEvent< ApiType, [spender: AccountId32, voucherId: PalletGearVoucherInternalVoucherId], { spender: AccountId32; voucherId: PalletGearVoucherInternalVoucherId } >; /** * Voucher has been updated. **/ VoucherUpdated: AugmentedEvent< ApiType, [spender: AccountId32, voucherId: PalletGearVoucherInternalVoucherId, newOwner: Option], { spender: AccountId32; voucherId: PalletGearVoucherInternalVoucherId; newOwner: Option } >; /** * Generic event **/ [key: string]: AugmentedEvent; }; } }