Class ContractBase<Q>

A class which is usually extended upon to generate a contract API

Type Parameters

Constructors

Properties

address: string
endpoint: Q

Methods

  • Resolves the promise if the contract name matches and if the contract version satisfies the semver range specified. Otherwise, the promise is rejected with a ContractVersionNotSatisfiedError.

    Parameters

    • versions: {
          [name: string]: string;
      }

      A map of name => version. e.g. {"my-awesome-contract": "^1.0.0"}

      • [name: string]: string

    Returns Promise<void>

  • Parameters

    • msg: any
    • tokenContractOrUnifiedDenom: string
    • amount: string | number | bigint

    Returns ExecuteInstruction