Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestDenom = "denom" RestVoter = "voter" )
nolint
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes registers oracle-related REST handlers to a router
Types ¶
type AggregatePrevoteReq ¶ added in v0.4.0
type AggregatePrevoteReq struct { BaseReq rest.BaseReq `json:"base_req"` Hash string `json:"hash"` ExchangeRates string `json:"exchange_rates"` Salt string `json:"salt"` }
AggregatePrevoteReq ...
type AggregateVoteReq ¶ added in v0.4.0
type AggregateVoteReq struct { BaseReq rest.BaseReq `json:"base_req"` ExchangeRates string `json:"exchange_rates"` Salt string `json:"salt"` }
AggregateVoteReq ...
type DelegateReq ¶ added in v0.2.0
DelegateReq is request body to set feeder of validator
type PrevoteReq ¶ added in v0.2.0
type PrevoteReq struct { BaseReq rest.BaseReq `json:"base_req"` Hash string `json:"hash"` ExchangeRate sdk.Dec `json:"exchange_rate"` Salt string `json:"salt"` Validator sdk.ValAddress `json:"validator"` }
PrevoteReq ...
Click to show internal directories.
Click to hide internal directories.