Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MsgVote

Vote for a proposal

Hierarchy

Index

Constructors

  • new MsgVote(proposal_id: number, voter: string, option: VoteOption): MsgVote
  • Parameters

    • proposal_id: number

      ID of proposal to vote on

    • voter: string

      voter's account address

    • option: VoteOption

      one of voting options

    Returns MsgVote

Properties

option: VoteOption
proposal_id: number
voter: string

Methods

  • packAny(_?: boolean): Any
  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

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

    • Optional isClassic: boolean

    Returns string

  • toProto(_?: boolean): MsgVote
  • fromProto(proto: MsgVote, _?: boolean): MsgVote
  • unpackAny(msgAny: Any, _?: boolean): MsgVote