Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestParamsType = "type" RestProposalID = "proposal-id" RestDepositor = "depositor" RestVoter = "voter" RestProposalStatus = "status" RestNumLimit = "limit" )
REST Variable names nolint
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DepositReq ¶
type DepositReq struct { BaseReq rest.BaseReq `json:"base_req"` Depositor sdk.AccAddress `json:"depositor"` // Address of the depositor Amount sdk.Coins `json:"amount"` // Coins to add to the proposal's deposit }
DepositReq defines the properties of a deposit request's body.
type PostProposalReq ¶
type PostProposalReq struct { BaseReq rest.BaseReq `json:"base_req"` Title string `json:"title"` // Title of the proposal Description string `json:"description"` // Description of the proposal ProposalType string `json:"proposal_type"` // Type of proposal. Initial set {PlainTextProposal, SoftwareUpgradeProposal} Proposer sdk.AccAddress `json:"proposer"` // Address of the proposer InitialDeposit sdk.Coins `json:"initial_deposit"` // Coins to add to the proposal's deposit }
PostProposalReq defines the properties of a proposal request's body.
Click to show internal directories.
Click to hide internal directories.