Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Vote

Stores vote information for a proposal

Hierarchy

Index

Constructors

  • Parameters

    • proposal_id: number

      ID of proposal to vote on

    • voter: string

      voter's account address

    • options: WeightedVoteOption[]

      voting options

    Returns Vote

Properties

Option: typeof VoteOption = VoteOption
proposal_id: number
voter: string

Methods

  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toProto(_?: boolean): Vote
  • fromProto(proto: Vote, _?: boolean): Vote