A Fragment which represents an Event.

Hierarchy

Constructors

Properties

anonymous: boolean

Whether this event is anonymous.

inputs: readonly ParamType[]

The inputs for the fragment.

name: string

The name of the fragment.

The type of the fragment.

Accessors

  • get topicHash(): string
  • The Event topic hash.

    Returns string

Methods

  • Returns a string representation of this event as %%format%%.

    Parameters

    Returns string

  • Return the topic hash for an event with %%name%% and %%params%%.

    Parameters

    • name: string
    • Optional params: any[]

    Returns string

  • Returns true if %%value%% is an [[ErrorFragment]].

    Parameters

    • value: any

    Returns value is ErrorFragment

  • Returns true if %%value%% is an [[EventFragment]].

    Parameters

    • value: any

    Returns value is EventFragment

  • Returns true and provides a type guard if %%value%% is an EventFragment.

    Parameters

    • value: any

    Returns value is EventFragment

  • Returns true if %%value%% is a [[StructFragment]].

    Parameters

    • value: any

    Returns value is StructFragment

Generated using TypeDoc