cli

package
v15.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSetBaseDenomsMsg added in v15.3.0

func BuildSetBaseDenomsMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)

BuildSetBaseDenomsMsg builds a MsgSetBaseDenoms from the provided json file

func BuildSetHotRoutesMsg added in v15.3.0

func BuildSetHotRoutesMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)

BuildSetHotRoutesMsg builds a MsgSetHotRoutes from the provided json file

func BuildSetPoolWeightsMsg added in v15.3.0

func BuildSetPoolWeightsMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)

BuildSetPoolWeightsMsg builds a MsgSetPoolWeights from the provided json file

func CmdSetBaseDenoms added in v15.3.0

func CmdSetBaseDenoms() *osmocli.TxCliDesc

CmdSetBaseDenoms implements the command to set the base denoms used in the highest liquidity method

func CmdSetDeveloperAccount added in v15.3.0

func CmdSetDeveloperAccount() (*osmocli.TxCliDesc, *types.MsgSetDeveloperAccount)

CmdSetDeveloperAccount implements the command to set the protorev developer account

func CmdSetDeveloperHotRoutes added in v15.3.0

func CmdSetDeveloperHotRoutes() *osmocli.TxCliDesc

CmdSetDeveloperHotRoutes implements the command to set the protorev hot routes

func CmdSetMaxPoolPointsPerBlock added in v15.3.0

func CmdSetMaxPoolPointsPerBlock() (*osmocli.TxCliDesc, *types.MsgSetMaxPoolPointsPerBlock)

CmdSetMaxPoolPointsPerBlock implements the command to set the max pool points per block

func CmdSetMaxPoolPointsPerTx added in v15.3.0

func CmdSetMaxPoolPointsPerTx() (*osmocli.TxCliDesc, *types.MsgSetMaxPoolPointsPerTx)

CmdSetMaxPoolPointsPerTx implements the command to set the max pool points per tx

func CmdSetPoolWeights added in v15.3.0

func CmdSetPoolWeights() *osmocli.TxCliDesc

CmdSetPoolWeights implements the command to set the pool weights used to estimate execution costs

func CmdSetProtoRevAdminAccountProposal

func CmdSetProtoRevAdminAccountProposal() *cobra.Command

CmdSetProtoRevAdminAccountProposal implements the command to submit a SetProtoRevAdminAccountProposal

func CmdSetProtoRevEnabledProposal

func CmdSetProtoRevEnabledProposal() *cobra.Command

CmdSetProtoRevEnabledProposal implements the command to submit a SetProtoRevEnabledProposal

func NewCmdQuery

func NewCmdQuery() *cobra.Command

NewCmdQuery returns the cli query commands for this module

func NewCmdTx

func NewCmdTx() *cobra.Command

NewCmdTx returns the cli transaction commands for this module

func NewQueryAdminAccountCmd

NewQueryAdminAccountCmd returns the command to query the admin account

func NewQueryAllProfitsCmd

NewQueryAllProfitsCmd returns the command to query all profits of protorev

func NewQueryAllRouteStatisticsCmd

func NewQueryAllRouteStatisticsCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevAllRouteStatisticsRequest)

NewQueryAllRouteStatisticsCmd returns the command to query all route statistics of protorev

func NewQueryBaseDenomsCmd

NewQueryBaseDenomsCmd returns the command to query the base denoms

func NewQueryDeveloperAccountCmd

func NewQueryDeveloperAccountCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevDeveloperAccountRequest)

NewQueryDeveloperAccountCmd returns the command to query the developer account

func NewQueryEnabledCmd

NewQueryEnabled returns the command to query the enabled status of protorev

func NewQueryMaxPoolPointsPerBlockCmd

func NewQueryMaxPoolPointsPerBlockCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevMaxPoolPointsPerBlockRequest)

NewQueryMaxPoolPointsPerBlockCmd returns the command to query the max pool points per block

func NewQueryMaxPoolPointsPerTxCmd

func NewQueryMaxPoolPointsPerTxCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevMaxPoolPointsPerTxRequest)

NewQueryMaxPoolPointsPerTxCmd returns the command to query the max pool points per tx

func NewQueryNumberOfTradesCmd

func NewQueryNumberOfTradesCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevNumberOfTradesRequest)

NewQueryNumberOfTradesCmd returns the command to query the number of trades executed by protorev

func NewQueryParamsCmd

func NewQueryParamsCmd() (*osmocli.QueryDescriptor, *types.QueryParamsRequest)

NewQueryParamsCmd returns the command to query the module params

func NewQueryPoolWeightsCmd added in v15.1.0

NewQueryPoolWeightsCmd returns the command to query the pool weights of protorev

func NewQueryProfitsByDenomCmd

func NewQueryProfitsByDenomCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevProfitsByDenomRequest)

NewQueryProfitsByDenomCmd returns the command to query the profits of protorev by denom

func NewQueryStatisticsByRouteCmd

func NewQueryStatisticsByRouteCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevStatisticsByRouteRequest)

NewQueryStatisticsByRoute returns the command to query the statistics of protorev by route

func NewQueryTokenPairArbRoutesCmd

func NewQueryTokenPairArbRoutesCmd() (*osmocli.QueryDescriptor, *types.QueryGetProtoRevTokenPairArbRoutesRequest)

NewQueryTokenPairArbRoutesCmd returns the command to query the token pair arb routes

func ProposalExecute

func ProposalExecute(cmd *cobra.Command, args []string, createContent func(title string, description string, args ...string) (govtypes.Content, error)) error

ProposalExecute is a helper function to execute a proposal command. It takes in a function to create the proposal content.

Types

type ArbRoutes added in v15.3.0

type ArbRoutes struct {
	Trades   []Trade `json:"trades"`
	StepSize uint64  `json:"step_size"`
}

type Trade added in v15.3.0

type Trade struct {
	Pool     uint64 `json:"pool"`
	TokenIn  string `json:"token_in"`
	TokenOut string `json:"token_out"`
}

------------ types/functions to handle a SetHotRoutes CLI TX ------------ //

type XCreateBaseDenomsException added in v15.3.0

type XCreateBaseDenomsException struct {
	XCreateBaseDenomsInputs
	Other *string // Other won't raise an error
}

type XCreateBaseDenomsInputs added in v15.3.0

type XCreateBaseDenomsInputs baseDenomInput

type XCreateHotRoutesExceptions added in v15.3.0

type XCreateHotRoutesExceptions struct {
	XCreateHotRoutesInputs
	Other *string // Other won't raise an error
}

type XCreateHotRoutesInputs added in v15.3.0

type XCreateHotRoutesInputs hotRoutesInput

type XCreatePoolWeightsExceptions added in v15.3.0

type XCreatePoolWeightsExceptions struct {
	XCreatePoolWeightsInputs
	Other *string // Other won't raise an error
}

type XCreatePoolWeightsInputs added in v15.3.0

type XCreatePoolWeightsInputs createPoolWeightsInput

Jump to

Keyboard shortcuts

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