@wharfkit/antelope - v4.0.1
    Preparing search index...

    Interface VariantConstructor

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

    Hierarchy (View Summary)

    Index
    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.

    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.