Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Vote

Stores vote information for a proposal

Hierarchy

Index

Constructors

constructor

  • Parameters

    • proposal_id: number

      ID of proposal to vote on

    • voter: string

      voter's account address

    • options: WeightedVoteOption[]

    Returns Vote

Properties

Option

Option: typeof VoteOption = VoteOption

options

proposal_id

proposal_id: number

voter

voter: string

Methods

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): Vote

Static fromAmino

Static fromData

Static fromProto

  • fromProto(proto: Vote): Vote