Interface VariantConstructor

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

Hierarchy-Diagram

UML class diagram of VariantConstructor
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.

Methods