Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MsgVote

Vote for a proposal

Hierarchy

Index

Constructors

constructor

  • 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

option: VoteOption

proposal_id

proposal_id: number

voter

voter: string

Methods

packAny

  • packAny(): Any

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): MsgVote

Static fromAmino

Static fromData

Static fromProto

Static unpackAny