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

  • new Proposal(id: number, messages: Message[], status: ProposalStatus, final_tally_result: FinalTallyResult, submit_time: Date, deposit_end_time: Date, total_deposit: Coins, metadata: string, title: string, summary: string, proposer: string, voting_start_time?: Date, voting_end_time?: Date): Proposal
  • Parameters

    • id: number

      proposal's ID

    • messages: Message[]

      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

    • metadata: string
    • title: string
    • summary: string
    • proposer: string
    • Optional voting_start_time: Date

      time voting period will start

    • Optional voting_end_time: Date

      time voting period will end

    Returns Proposal

Properties

deposit_end_time: Date
final_tally_result: FinalTallyResult
id: number
messages: Message[]
metadata: string
proposer: string
status: ProposalStatus
submit_time: Date
summary: string
title: string
total_deposit: Coins
voting_end_time?: Date
voting_start_time?: Date

Methods

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

    • Optional isClassic: boolean

    Returns string

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

    • Optional isClassic: boolean

    Returns string

  • toProto(isClassic?: boolean): Proposal
  • fromProto(data: Proposal, isClassic?: boolean): Proposal