Documentation ¶
Index ¶
- func BuildSetBaseDenomsMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)
- func BuildSetHotRoutesMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)
- func BuildSetPoolWeightsMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)
- func CmdSetBaseDenoms() *percocli.TxCliDesc
- func CmdSetDeveloperAccount() (*percocli.TxCliDesc, *types.MsgSetDeveloperAccount)
- func CmdSetDeveloperHotRoutes() *percocli.TxCliDesc
- func CmdSetMaxPoolPointsPerBlock() (*percocli.TxCliDesc, *types.MsgSetMaxPoolPointsPerBlock)
- func CmdSetMaxPoolPointsPerTx() (*percocli.TxCliDesc, *types.MsgSetMaxPoolPointsPerTx)
- func CmdSetPoolWeights() *percocli.TxCliDesc
- func CmdSetProtoRevAdminAccountProposal() *cobra.Command
- func CmdSetProtoRevEnabledProposal() *cobra.Command
- func NewCmdQuery() *cobra.Command
- func NewCmdTx() *cobra.Command
- func NewQueryAdminAccountCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevAdminAccountRequest)
- func NewQueryAllProfitsCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevAllProfitsRequest)
- func NewQueryAllRouteStatisticsCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevAllRouteStatisticsRequest)
- func NewQueryBaseDenomsCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevBaseDenomsRequest)
- func NewQueryDeveloperAccountCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevDeveloperAccountRequest)
- func NewQueryEnabledCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevEnabledRequest)
- func NewQueryMaxPoolPointsPerBlockCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevMaxPoolPointsPerBlockRequest)
- func NewQueryMaxPoolPointsPerTxCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevMaxPoolPointsPerTxRequest)
- func NewQueryNumberOfTradesCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevNumberOfTradesRequest)
- func NewQueryParamsCmd() (*percocli.QueryDescriptor, *types.QueryParamsRequest)
- func NewQueryPoolCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevPoolRequest)
- func NewQueryPoolWeightsCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevPoolWeightsRequest)
- func NewQueryProfitsByDenomCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevProfitsByDenomRequest)
- func NewQueryStatisticsByRouteCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevStatisticsByRouteRequest)
- func NewQueryTokenPairArbRoutesCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevTokenPairArbRoutesRequest)
- func ProposalExecute(cmd *cobra.Command, args []string, ...) error
- type ArbRoutes
- type Trade
- type XCreateBaseDenomsException
- type XCreateBaseDenomsInputs
- type XCreateHotRoutesExceptions
- type XCreateHotRoutesInputs
- type XCreatePoolWeightsExceptions
- type XCreatePoolWeightsInputs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSetBaseDenomsMsg ¶
func BuildSetBaseDenomsMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)
BuildSetBaseDenomsMsg builds a MsgSetBaseDenoms from the provided json file
func BuildSetHotRoutesMsg ¶
func BuildSetHotRoutesMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)
BuildSetHotRoutesMsg builds a MsgSetHotRoutes from the provided json file
func BuildSetPoolWeightsMsg ¶
func BuildSetPoolWeightsMsg(clientCtx client.Context, args []string, fs *flag.FlagSet) (sdk.Msg, error)
BuildSetPoolWeightsMsg builds a MsgSetPoolWeights from the provided json file
func CmdSetBaseDenoms ¶
CmdSetBaseDenoms implements the command to set the base denoms used in the highest liquidity method
func CmdSetDeveloperAccount ¶
func CmdSetDeveloperAccount() (*percocli.TxCliDesc, *types.MsgSetDeveloperAccount)
CmdSetDeveloperAccount implements the command to set the protorev developer account
func CmdSetDeveloperHotRoutes ¶
CmdSetDeveloperHotRoutes implements the command to set the protorev hot routes
func CmdSetMaxPoolPointsPerBlock ¶
func CmdSetMaxPoolPointsPerBlock() (*percocli.TxCliDesc, *types.MsgSetMaxPoolPointsPerBlock)
CmdSetMaxPoolPointsPerBlock implements the command to set the max pool points per block
func CmdSetMaxPoolPointsPerTx ¶
func CmdSetMaxPoolPointsPerTx() (*percocli.TxCliDesc, *types.MsgSetMaxPoolPointsPerTx)
CmdSetMaxPoolPointsPerTx implements the command to set the max pool points per tx
func CmdSetPoolWeights ¶
CmdSetPoolWeights implements the command to set the pool weights used to estimate execution costs
func CmdSetProtoRevAdminAccountProposal ¶
CmdSetProtoRevAdminAccountProposal implements the command to submit a SetProtoRevAdminAccountProposal
func CmdSetProtoRevEnabledProposal ¶
CmdSetProtoRevEnabledProposal implements the command to submit a SetProtoRevEnabledProposal
func NewCmdQuery ¶
NewCmdQuery returns the cli query commands for this module
func NewQueryAdminAccountCmd ¶
func NewQueryAdminAccountCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevAdminAccountRequest)
NewQueryAdminAccountCmd returns the command to query the admin account
func NewQueryAllProfitsCmd ¶
func NewQueryAllProfitsCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevAllProfitsRequest)
NewQueryAllProfitsCmd returns the command to query all profits of protorev
func NewQueryAllRouteStatisticsCmd ¶
func NewQueryAllRouteStatisticsCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevAllRouteStatisticsRequest)
NewQueryAllRouteStatisticsCmd returns the command to query all route statistics of protorev
func NewQueryBaseDenomsCmd ¶
func NewQueryBaseDenomsCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevBaseDenomsRequest)
NewQueryBaseDenomsCmd returns the command to query the base denoms
func NewQueryDeveloperAccountCmd ¶
func NewQueryDeveloperAccountCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevDeveloperAccountRequest)
NewQueryDeveloperAccountCmd returns the command to query the developer account
func NewQueryEnabledCmd ¶
func NewQueryEnabledCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevEnabledRequest)
NewQueryEnabled returns the command to query the enabled status of protorev
func NewQueryMaxPoolPointsPerBlockCmd ¶
func NewQueryMaxPoolPointsPerBlockCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevMaxPoolPointsPerBlockRequest)
NewQueryMaxPoolPointsPerBlockCmd returns the command to query the max pool points per block
func NewQueryMaxPoolPointsPerTxCmd ¶
func NewQueryMaxPoolPointsPerTxCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevMaxPoolPointsPerTxRequest)
NewQueryMaxPoolPointsPerTxCmd returns the command to query the max pool points per tx
func NewQueryNumberOfTradesCmd ¶
func NewQueryNumberOfTradesCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevNumberOfTradesRequest)
NewQueryNumberOfTradesCmd returns the command to query the number of trades executed by protorev
func NewQueryParamsCmd ¶
func NewQueryParamsCmd() (*percocli.QueryDescriptor, *types.QueryParamsRequest)
NewQueryParamsCmd returns the command to query the module params
func NewQueryPoolCmd ¶
func NewQueryPoolCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevPoolRequest)
NewQueryPoolCmd returns the command to query the pool id for a given denom pair stored via the highest liquidity method in ProtoRev
func NewQueryPoolWeightsCmd ¶
func NewQueryPoolWeightsCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevPoolWeightsRequest)
NewQueryPoolWeightsCmd returns the command to query the pool weights of protorev
func NewQueryProfitsByDenomCmd ¶
func NewQueryProfitsByDenomCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevProfitsByDenomRequest)
NewQueryProfitsByDenomCmd returns the command to query the profits of protorev by denom
func NewQueryStatisticsByRouteCmd ¶
func NewQueryStatisticsByRouteCmd() (*percocli.QueryDescriptor, *types.QueryGetProtoRevStatisticsByRouteRequest)
NewQueryStatisticsByRoute returns the command to query the statistics of protorev by route
func NewQueryTokenPairArbRoutesCmd ¶
func NewQueryTokenPairArbRoutesCmd() (*percocli.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 Trade ¶
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 ¶
type XCreateBaseDenomsException struct { XCreateBaseDenomsInputs Other *string // Other won't raise an error }
type XCreateBaseDenomsInputs ¶
type XCreateBaseDenomsInputs baseDenomInput
type XCreateHotRoutesExceptions ¶
type XCreateHotRoutesExceptions struct { XCreateHotRoutesInputs Other *string // Other won't raise an error }
type XCreateHotRoutesInputs ¶
type XCreateHotRoutesInputs hotRoutesInput
type XCreatePoolWeightsExceptions ¶
type XCreatePoolWeightsExceptions struct { XCreatePoolWeightsInputs Other *string // Other won't raise an error }
type XCreatePoolWeightsInputs ¶
type XCreatePoolWeightsInputs createPoolWeightsInput