cli

package
v0.7.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())
)

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

func CmdAddOracleProposal() *cobra.Command

CmdAddOracleProposal implements the client command to submit a governance proposal to whitelist an oracle for specified asset pairs.

func CmdPostPrice

func CmdPostPrice() *cobra.Command

func CmdQueryMarkets added in v0.6.0

func CmdQueryMarkets() *cobra.Command

func CmdQueryOracles added in v0.6.0

func CmdQueryOracles() *cobra.Command

func CmdQueryParams

func CmdQueryParams() *cobra.Command

func CmdQueryPrice added in v0.6.0

func CmdQueryPrice() *cobra.Command

func CmdQueryPrices added in v0.6.0

func CmdQueryPrices() *cobra.Command

func CmdQueryRawPrices added in v0.6.0

func CmdQueryRawPrices() *cobra.Command

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetTxCmd

func GetTxCmd() *cobra.Command

GetTxCmd returns the transaction 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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL