Class DARC

The DARC class is used to interact with the DARC contract.

Hierarchy

  • DARC

Constructors

Properties

darcAddress: string
darcContract: Contract
darcVersion: DARC_VERSION
provider: any
wallet: any

Methods

  • Return the address of the DARC contract.

    Returns string

    the address of the DARC contract.

  • Run the program on the DARC contract.

    Parameters

    • program: any

    Returns Promise<void>

  • Parameters

    • memberAddress: string

    Returns Promise<any>

  • Get the DARC member list.

    Returns Promise<string[]>

    the DARC member list.

  • Return the number of token classes.

    Returns Promise<BigInt>

    the number of token classes.

  • Get the DARC plugins.

    Returns Promise<any>

    the number of token classes.

  • Return the balance of the owner for the token class.

    Parameters

    • tokenClass: BigInt

      the index of the token class.

    • owner: string

      the address of the owner.

    Returns Promise<BigInt>

    the balance of the owner for the token class.

  • Below are all DARC's dashboard functions, read parameters from the DARC contract.

    Parameters

    • tokenClass: BigInt

    Returns Promise<string[]>

Generated using TypeDoc