Class ContractEncoder<TContract>

Encodes and decodes Contract functions

Type Parameters

  • TContract extends BaseContract

Hierarchy

  • ContractEncoder

Constructors

Methods

Constructors

Properties

contractWrapper: ContractWrapper<TContract>

Methods

  • Encodes the given contract function with argument

    Parameters

    • fn: keyof TContract["functions"]
    • args: Parameters<TContract["functions"][keyof TContract["functions"]]>

    Returns string

    the encoded data

Generated using TypeDoc