Community Builder interface

Hierarchy

  • CBuilder

Implemented by

Methods

  • build Closed ERC-721 community

    Parameters

    • project: string

      the token contract address

    • tokenThreshold: number

      the number of tokens required to propose

    Returns Promise<CBuilder>

    Builder - this contract

  • build ERC-721 community

    Parameters

    • project: string

      the token contract address

    Returns Promise<CBuilder>

    Builder - this contract

  • Build the contract with the configured settings.

    Returns Promise<string>

    string - The address of the newly created contract

  • get the contract name

    Returns Promise<string>

    string - contract anme

  • get the contract version

    Returns Promise<number>

    number - the version

  • set the maximum vote delay for the community

    Parameters

    • delay: number

      maximum vote delay in Ethereum (epoch) seconds

    Returns Promise<CBuilder>

    Builder - this contract

  • set the maximum vote duration for the community

    Parameters

    • duration: number

      maximum vote duration in Ethereum (epoch) seconds

    Returns Promise<CBuilder>

    Builder - this contract

  • set the minimum vote delay for the community

    Parameters

    • delay: number

      minimum vote delay in Ethereum (epoch) seconds

    Returns Promise<CBuilder>

    Builder - this contract

  • set the minimum vote duration for the community

    Parameters

    • duration: number

      minimum vote duration in Ethereum (epoch) seconds

    Returns Promise<CBuilder>

    Builder - this contract

  • set the minimum quorum for this community

    Parameters

    • quorum: number

      the minimum quorum

    Returns Promise<CBuilder>

    Builder - this contract

  • append a voter for a pool community

    Parameters

    • voter: string

      the wallet address

    Returns Promise<CBuilder>

    Builder - this contract

  • set the voting weight for each authorized voter

    Parameters

    • weight: number

      the voting weight

    Returns Promise<CBuilder>

    Builder - this contract

Generated using TypeDoc