1 | import type { Codec, ITuple } from '@polkadot/types-codec/types';
|
2 | import type { EventMetadataLatest } from '../interfaces/metadata';
|
3 | import type { Hash } from '../interfaces/runtime';
|
4 | import type { EventId, Phase } from '../interfaces/system';
|
5 | export interface IEventRecord<T extends Codec[]> {
|
6 | readonly phase: Phase;
|
7 | readonly event: IEvent<T>;
|
8 | readonly topics: Hash[];
|
9 | }
|
10 | export interface IEventData {
|
11 | readonly meta: EventMetadataLatest;
|
12 | readonly method: string;
|
13 | readonly section: string;
|
14 | }
|
15 | export interface IEvent<T extends Codec[]> {
|
16 | readonly data: ITuple<T> & IEventData;
|
17 | readonly index: EventId;
|
18 | readonly method: string;
|
19 | readonly section: string;
|
20 | }
|