Interface IEvent

The IEvent interface represents an event emitted by a smart contract.

See

  • id represents the identifier of the event (optional).
  • data represents the data of the event (arbitrary JSON format).
  • context represents the context of the event. It contains :
  • context.slot: the slot at which the event was generated.
  • context.block: the block at which the event was generated (null if unknown).
  • context.read_only: whether the event was generated during a read-only call (boolean).
  • context.call_stack: represents the call stack of the contract addresses, with the most recent at the end.
  • context.index_in_slot: the index of the event in the slot.
  • context.origin_operation_id: the operation id of the operation that generated the event (null if unknown).
  • context.is_final: whether the event is final (boolean).
  • context.is_error: whether the event was generated in a failed execution (boolean).
interface IEvent {
    context: {
        block: string;
        call_stack: string[];
        index_in_slot: number;
        is_error: boolean;
        is_final: boolean;
        origin_operation_id: string;
        read_only: boolean;
        slot: ISlot;
    };
    data: string;
    id?: string;
}

Properties

Properties

context: {
    block: string;
    call_stack: string[];
    index_in_slot: number;
    is_error: boolean;
    is_final: boolean;
    origin_operation_id: string;
    read_only: boolean;
    slot: ISlot;
}

Type declaration

  • block: string
  • call_stack: string[]
  • index_in_slot: number
  • is_error: boolean
  • is_final: boolean
  • origin_operation_id: string
  • read_only: boolean
  • slot: ISlot
data: string
id?: string

Generated using TypeDoc