Documentation ¶
Index ¶
- Constants
- func GetElectHandlerFunction(cdc *codec.Codec, storeName string, cliCtx context.CLIContext) http.HandlerFunc
- func GetVoteHandlerFunction(cdc *codec.Codec, storeName string, cliCtx context.CLIContext) http.HandlerFunc
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Codec)
- func SubmitVoteHandlerFunction(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
- type VoteReq
Constants ¶
View Source
const ( RestVoteDenom = "denom" RestVoter = "voteraddress" )
nolint
Variables ¶
This section is empty.
Functions ¶
func GetElectHandlerFunction ¶
func GetElectHandlerFunction(cdc *codec.Codec, storeName string, cliCtx context.CLIContext) http.HandlerFunc
GetElectHandlerFunction handles the GET request for the currently valid Price elect
func GetVoteHandlerFunction ¶
func GetVoteHandlerFunction(cdc *codec.Codec, storeName string, cliCtx context.CLIContext) http.HandlerFunc
GetVoteHandlerFunction handles the request to get the currently unelected outstanding price oracle vote
func RegisterRoutes ¶
RegisterRoutes - Central function to define routes that get registered by the main application
func SubmitVoteHandlerFunction ¶
func SubmitVoteHandlerFunction(cdc *codec.Codec, cliCtx context.CLIContext) http.HandlerFunc
SubmitVoteHandlerFunction handles a POST vote request
Types ¶
Click to show internal directories.
Click to hide internal directories.