Interface for Collective Storage

Hierarchy

  • Storage

Implemented by

Methods

  • get the number of choices for a choice vote

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<number>

    number - The number of choices

  • get the end time for the vote

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<number>

    number - The number of seconds referenced from the unix epoch, January 1, 1970

  • get the choice parameterization for a specific choice

    Parameters

    • proposalId: number

      The id of the vote

    • choiceId: number

      The id of the choice

    Returns Promise<{
        description: string;
        name: string;
        transactionId: number;
        voteCount: number;
    }>

    string - the name

  • Get the winning choice for a choice vote

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<number>

    number - The id of the winning choice

  • get the contract name

    Returns Promise<string>

    string - contract anme

  • get the current quorum required for a vote to pass

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<number>

    number - the quorum

  • get the start time for the vote

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<number>

    number - The number of seconds referenced from the unix epoch, January 1, 1970

  • get the contract version

    Returns Promise<number>

    number - the version

  • get the delay for this vote

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<number>

    number - The number of seconds

  • get the amount of time for the vote

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<number>

    number - The number of seconds

Generated using TypeDoc