package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: Jun 21, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 10
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"
RestPrice = "price"
)
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"`
Price sdk.Dec `json:"price"`
Salt string `json:"salt"`
Validator string `json:"validator"`
}
PrevoteReq ...
type VoteReq struct {
BaseReq rest.BaseReq `json:"base_req"`
Price sdk.Dec `json:"price"`
Salt string `json:"salt"`
Validator string `json:"validator"`
}
VoteReq ...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.