Hierarchy

  • Builder

Implemented by

Methods

  • Build the contract with the configured settings.

    Returns Promise<string>

    string - The address of the newly created contract

  • Helper to discover the contract suite built by a previous invocation of this contract

    Parameters

    • txId: string

      The transaction bearing the build call

    Returns Promise<ContractAddress>

    ContractAddress - The set of contracts constructed by the build

  • get the contract name

    Returns Promise<string>

    string - contract anme

  • get the contract version

    Returns Promise<number>

    number - the version

  • set the Community Class

    Parameters

    • voterClass: string

      the address of the CommunityClass contract

    Returns Promise<Builder>

    Builder - this contract

  • set the description on the contract

    Parameters

    • desc: string

      the description

    Returns Promise<Builder>

    Builder - this contract

  • set the name for the community contract

    Parameters

    • name: string

      the community name

    Returns Promise<Builder>

    Builder - this contract

  • Add a community supervisor address to the project. It is okay to call this method more than once. Each supervisor is added.

    Parameters

    • supervisor: string

      address for the supervisor account

    Returns Promise<Builder>

    Builder - this contract

Generated using TypeDoc