cli

package
v0.0.0-...-b3a6efc Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStateValue  = errors.New("query: invalid state value")
	DefaultDeposit = types.DefaultBidMinDeposit
)

Functions

func AddBidFilterFlags

func AddBidFilterFlags(flags *pflag.FlagSet)

AddBidFilterFlags add flags to filter for bid list

func AddBidIDFlags

func AddBidIDFlags(flags *pflag.FlagSet, opts ...dcli.DeploymentIDOption)

AddBidIDFlags add flags for bid

func AddLeaseFilterFlags

func AddLeaseFilterFlags(flags *pflag.FlagSet)

AddLeaseFilterFlags add flags to filter for lease list

func AddLeaseIDFlags

func AddLeaseIDFlags(flags *pflag.FlagSet, opts ...dcli.DeploymentIDOption)

func AddOrderFilterFlags

func AddOrderFilterFlags(flags *pflag.FlagSet)

AddOrderFilterFlags add flags to filter for order list

func AddOrderIDFlags

func AddOrderIDFlags(flags *pflag.FlagSet, opts ...dcli.DeploymentIDOption)

AddOrderIDFlags add flags for order

func AddProviderFlag

func AddProviderFlag(flags *pflag.FlagSet)

AddProviderFlag add provider flag to command flags set

func AddQueryBidIDFlags

func AddQueryBidIDFlags(flags *pflag.FlagSet)

AddQueryBidIDFlags add flags for bid in query commands

func BidFiltersFromFlags

func BidFiltersFromFlags(flags *pflag.FlagSet) (types.BidFilters, error)

BidFiltersFromFlags returns BidFilters with given flags and error if occurred

func BidIDFromFlags

func BidIDFromFlags(flags *pflag.FlagSet, opts ...dcli.MarketOption) (types.BidID, error)

BidIDFromFlags returns BidID with given flags and error if occurred Here provider value is taken from flags

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the transaction commands for the market module

func GetTxCmd

func GetTxCmd(key string) *cobra.Command

GetTxCmd returns the transaction commands for market module

func LeaseFiltersFromFlags

func LeaseFiltersFromFlags(flags *pflag.FlagSet) (types.LeaseFilters, error)

LeaseFiltersFromFlags returns LeaseFilters with given flags and error if occurred

func LeaseIDFromFlags

func LeaseIDFromFlags(flags *pflag.FlagSet, opts ...dcli.MarketOption) (types.LeaseID, error)

LeaseIDFromFlags returns LeaseID with given flags and error if occurred Here provider value is taken from flags

func MarkReqBidIDFlags

func MarkReqBidIDFlags(cmd *cobra.Command, opts ...dcli.DeploymentIDOption)

MarkReqBidIDFlags marks flags required for bid Used in get bid query command

func MarkReqLeaseIDFlags

func MarkReqLeaseIDFlags(cmd *cobra.Command, opts ...dcli.DeploymentIDOption)

MarkReqLeaseIDFlags marks flags required for bid Used in get bid query command

func MarkReqOrderIDFlags

func MarkReqOrderIDFlags(cmd *cobra.Command, opts ...dcli.DeploymentIDOption)

MarkReqOrderIDFlags marks flags required for order

func MarkReqProviderFlag

func MarkReqProviderFlag(cmd *cobra.Command)

MarkReqProviderFlag marks provider flag as required

func OrderFiltersFromFlags

func OrderFiltersFromFlags(flags *pflag.FlagSet) (types.OrderFilters, error)

OrderFiltersFromFlags returns OrderFilters with given flags and error if occurred

func OrderIDFromFlags

func OrderIDFromFlags(flags *pflag.FlagSet, opts ...dcli.MarketOption) (types.OrderID, error)

OrderIDFromFlags returns OrderID with given flags and error if occurred

func QueryBidExec

func QueryBidExec(clientCtx client.Context, bidID types.BidID, extraArgs ...string) (sdktest.BufferWriter, error)

QueryBidExec is used for testing bid query

func QueryBidsExec

func QueryBidsExec(clientCtx client.Context, args ...string) (sdktest.BufferWriter, error)

QueryBidsExec is used for testing bids query

func QueryLeaseExec

func QueryLeaseExec(clientCtx client.Context, leaseID types.LeaseID, extraArgs ...string) (sdktest.BufferWriter, error)

QueryLeaseExec is used for testing lease query

func QueryLeasesExec

func QueryLeasesExec(clientCtx client.Context, args ...string) (sdktest.BufferWriter, error)

QueryLeasesExec is used for testing leases query

func QueryOrderExec

func QueryOrderExec(clientCtx client.Context, orderID types.OrderID, extraArgs ...string) (sdktest.BufferWriter, error)

QueryOrderExec is used for testing order query

func QueryOrdersExec

func QueryOrdersExec(clientCtx client.Context, args ...string) (sdktest.BufferWriter, error)

QueryOrdersExec is used for testing orders query

func TxCloseBidExec

func TxCloseBidExec(clientCtx client.Context, orderID types.OrderID, from fmt.Stringer,
	extraArgs ...string) (sdktest.BufferWriter, error)

TxCloseBidExec is used for testing close bid tx

func TxCloseLeaseExec

func TxCloseLeaseExec(clientCtx client.Context, orderID types.OrderID, from fmt.Stringer,
	extraArgs ...string) (sdktest.BufferWriter, error)

TxCloseLeaseExec is used for testing close order tx

func TxCreateBidExec

func TxCreateBidExec(clientCtx client.Context, orderID types.OrderID, price, from fmt.Stringer,
	extraArgs ...string) (sdktest.BufferWriter, error)

TxCreateBidExec is used for testing create bid tx

func TxCreateLeaseExec

func TxCreateLeaseExec(clientCtx client.Context, bid types.BidID, from fmt.Stringer,
	extraArgs ...string) (sdktest.BufferWriter, error)

TxCreateLeaseExec is used for creating a lease

Types

This section is empty.

Jump to

Keyboard shortcuts

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