gov

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepositOutput

type DepositOutput struct {
	Depositer  sdk.AccAddress `json:"depositer"`   //  Address of the depositer
	ProposalID int64          `json:"proposal_id"` //  proposalID of the proposal
	Amount     []string       `json:"amount"`      //  Deposit amount
}

Deposit

func ConvertDepositToDepositOutput

func ConvertDepositToDepositOutput(cliCtx context.CLIContext, deposite gov.Deposit) (DepositOutput, error)

type KvPair

type KvPair struct {
	K string `json:"key"`
	V string `json:"value"`
}

type ProposalOutput

type ProposalOutput struct {
	ProposalID   int64            `json:"proposal_id"`   //  ID of the proposal
	Title        string           `json:"title"`         //  Title of the proposal
	Description  string           `json:"description"`   //  Description of the proposal
	ProposalType gov.ProposalKind `json:"proposal_type"` //  Type of proposal. Initial set {PlainTextProposal, SoftwareUpgradeProposal}

	Status      gov.ProposalStatus `json:"proposal_status"` //  Status of the Proposal {Pending, Active, Passed, Rejected}
	TallyResult gov.TallyResult    `json:"tally_result"`    //  Result of Tallys

	SubmitBlock  int64    `json:"submit_block"`  //  Height of the block where TxGovSubmitProposal was included
	TotalDeposit []string `json:"total_deposit"` //  Current deposit on this proposal. Initial value is set at InitialDeposit

	VotingStartBlock int64 `json:"voting_start_block"` //  Height of the block where MinDeposit was reached. -1 if MinDeposit is not reached

	Param gov.Param `json:"param"`
}

func ConvertProposalToProposalOutput

func ConvertProposalToProposalOutput(cliCtx context.CLIContext, proposal gov.Proposal) (ProposalOutput, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL