Interface for the Collective Metadata Storage contract

Hierarchy

  • Meta

Implemented by

Methods

  • Get the community name

    Returns Promise<string>

    string - The name

  • Get the community description

    Returns Promise<string>

    string - the description

  • Get arbitrary metadata stored on a particular proposal

    Parameters

    • proposalId: number

      The id of the vote

    • metaId: number

      The id of the metadata

    Returns Promise<{
        name: string;
        value: string;
    }>

    string - the name of the metadata

  • Get the description of a vote by id

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<string>

    string - The description

  • Get the url of a vote by id

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<string>

    string - The url

  • Get the number of stored metadata elements on the vote

    Parameters

    • proposalId: number

      The id of the vote

    Returns Promise<number>

    number - The number of elements

  • get the contract name

    Returns Promise<string>

    string - contract anme

  • Get the community url

    Returns Promise<string>

    string - the url

  • get the contract version

    Returns Promise<number>

    number - the version

Generated using TypeDoc