package
Version:
v0.3.6
Opens a new window with list of versions in this module.
Published: Jun 11, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
RestDenom = "denom"
RestVoter = "voter"
)
nolint
RegisterRoutes registers oracle-related REST handlers to a router
type DelegateReq struct {
BaseReq rest.BaseReq `json:"base_req"`
Feeder string `json:"feeder"`
}
DelegateReq is request body to set feeder of validator
type PrevoteReq struct {
BaseReq rest.BaseReq `json:"base_req"`
Hash string `json:"hash"`
ExchangeRate sdk.Dec `json:"exchange_rate"`
Salt string `json:"salt"`
Validator string `json:"validator"`
}
PrevoteReq ...
type VoteReq struct {
BaseReq rest.BaseReq `json:"base_req"`
ExchangeRate sdk.Dec `json:"exchange_rate"`
Salt string `json:"salt"`
Validator string `json:"validator"`
}
VoteReq ...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.