Interface for the Collective Metadata Storage contract

Hierarchy

Implements

Constructors

Properties

contract: Contract
contractAbi: any[]
contractAddress: string
gas: number
gasPriceGwei: string
logger: Logger = ...
web3: default
ABI_NAME: string = 'MetaStorage.json'

Methods

  • 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

Generated using TypeDoc