Documentation ¶
Index ¶
- Variables
- func AddOracleProposalRESTHandler(clientCtx client.Context) govclientrest.ProposalRESTHandler
- func CmdAddOracleProposal() *cobra.Command
- func CmdPostPrice() *cobra.Command
- func CmdQueryMarkets() *cobra.Command
- func CmdQueryOracles() *cobra.Command
- func CmdQueryParams() *cobra.Command
- func CmdQueryPrice() *cobra.Command
- func CmdQueryPrices() *cobra.Command
- func CmdQueryRawPrices() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func GetTxCmd() *cobra.Command
- type AddOracleProposalHttpRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AddOracleProposalHandler = govclient.NewProposalHandler( CmdAddOracleProposal, AddOracleProposalRESTHandler) )
Functions ¶
func AddOracleProposalRESTHandler ¶ added in v0.6.0
func AddOracleProposalRESTHandler(clientCtx client.Context) govclientrest.ProposalRESTHandler
AddOracleProposalRESTHandler defines a REST handler an 'AddOracleProposal'.
The sub-route is mounted on the governance REST handler.
func CmdAddOracleProposal ¶ added in v0.6.0
CmdAddOracleProposal implements the client command to submit a governance proposal to whitelist an oracle for specified asset pairs.
func CmdPostPrice ¶
func CmdQueryMarkets ¶ added in v0.6.0
func CmdQueryOracles ¶ added in v0.6.0
func CmdQueryParams ¶
func CmdQueryPrice ¶ added in v0.6.0
func CmdQueryPrices ¶ added in v0.6.0
func CmdQueryRawPrices ¶ added in v0.6.0
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
Types ¶
type AddOracleProposalHttpRequest ¶ added in v0.6.0
type AddOracleProposalHttpRequest struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Oracles []string `json:"oracle" yaml:"oracles"` Pairs []string `json:"pairs" yaml:"pairs"` Deposit sdk.Coins `json:"deposit" yaml:"deposit"` }
Click to show internal directories.
Click to hide internal directories.