Class IBaseContract<T>Abstract

Represents the base contract class.

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

[internal]: undefined | keyof T

The internal functions of the contract.

The address of the contract.

from?: string

Who is sending the transaction.

interface: BitcoinInterface

The interface of the contract.

A generic provider for the contract.

Methods

  • Encodes the calldata for a function.

    Parameters

    • functionName: string

      The name of the function.

    • args: unknown[]

      The arguments for the function.

    Returns Buffer

    The encoded calldata.

  • Parameters

    • name: string | symbol

    Returns
        | undefined
        | string
        | number
        | symbol
        | BaseContractProperty
        | ((functionName: string, args: unknown[]) => Buffer)