Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Proposal

Stores information pertaining to a submitted proposal, such as its status and time of the voting period

Hierarchy

Index

Constructors

constructor

  • new Proposal(id: number, content: Content, status: ProposalStatus, final_tally_result: FinalTallyResult, submit_time: Date, deposit_end_time: Date, total_deposit: Coins, voting_start_time: Date, voting_end_time: Date): Proposal
  • Parameters

    • id: number

      proposal's ID

    • content: Content

      content of the proposal

    • status: ProposalStatus

      proposal's status

    • final_tally_result: FinalTallyResult

      tally result

    • submit_time: Date

      time proposal was submitted and deposit period started

    • deposit_end_time: Date

      time deposit period will end

    • total_deposit: Coins

      amount of coins deposited by all users

    • voting_start_time: Date

      time voting period will start

    • voting_end_time: Date

      time voting period will end

    Returns Proposal

Properties

content

content: Content

deposit_end_time

deposit_end_time: Date

final_tally_result

final_tally_result: FinalTallyResult

id

id: number

status

status: ProposalStatus

submit_time

submit_time: Date

total_deposit

total_deposit: Coins

voting_end_time

voting_end_time: Date

voting_start_time

voting_start_time: Date

Methods

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): Proposal

Static fromAmino

Static fromData

Static fromProto