An abstract class to represent An individual fragment which has a name from a parse ABI.

Hierarchy

Constructors

Properties

inputs: readonly ParamType[]

The inputs for the fragment.

name: string

The name of the fragment.

The type of the fragment.

Methods

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

    Parameters

    Returns string

  • Creates a new Fragment for %%obj%%, wich can be any supported ABI frgament type.

    Parameters

    • obj: any

    Returns Fragment

  • 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 if %%value%% is a [[FunctionFragment]].

    Parameters

    • value: any

    Returns value is FunctionFragment

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

    Parameters

    • value: any

    Returns value is StructFragment

Generated using TypeDoc