Interface StructConstructor

interface StructConstructor {
    new StructConstructornew <T>(...args): T;
    abiAlias?: ABITypeDescriptor;
    abiBase?: ABISerializableConstructor;
    abiDefault?: (() => ABISerializable);
    abiFields?: ABIField[];
    abiName: string;
    abiVariant?: ABITypeDescriptor[];
    structFields: ABIField[];
    from(value): ABISerializable;
    fromABI?(decoder): ABISerializable;
    toABI?(value, encoder): void;
}

Hierarchy-Diagram

UML class diagram of StructConstructor
Legend
icon for an interface in the UML class diagram interface
icon for a public method in the UML class diagram public method

Hierarchy (view full)

Constructors

  • Type Parameters

    Parameters

    • Rest ...args: any[]

    Returns T

Properties

abiAlias?: ABITypeDescriptor

Alias to another type.

For structs, the base class this type extends.

abiDefault?: (() => ABISerializable)

Return value to use when creating a new instance of this type, used when decoding binary extensions.

Type declaration

abiFields?: ABIField[]

For structs, the fields that this type contains.

abiName: string

Name of the type, e.g. asset.

abiVariant?: ABITypeDescriptor[]

For variants, the different types this type can represent.

structFields: ABIField[]

Methods