Interface ABISerializableConstructor

Hierarchy

Properties

abiAlias?: ABITypeDescriptor

Alias to another type.

For structs, the base class this type extends.

abiDefault?: (() => ABISerializable)

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

  • Create new instance from JavaScript object. Should also accept an instance of itself and return that unchanged.

    Parameters

    • value: any

    Returns ABISerializable

  • Static ABI encoding can be used to encode non-class types. Will be used in favor of instance.toABI if both exists.

    Parameters

    • value: any

      The value to encode.

    • encoder: ABIEncoder

      The encoder to write the value to.

    Returns void