Documentation ¶
Index ¶
- Variables
- func AddBidFilterFlags(flags *pflag.FlagSet)
- func AddBidIDFlags(flags *pflag.FlagSet, opts ...dcli.DeploymentIDOption)
- func AddLeaseFilterFlags(flags *pflag.FlagSet)
- func AddLeaseIDFlags(flags *pflag.FlagSet, opts ...dcli.DeploymentIDOption)
- func AddOrderFilterFlags(flags *pflag.FlagSet)
- func AddOrderIDFlags(flags *pflag.FlagSet, opts ...dcli.DeploymentIDOption)
- func AddProviderFlag(flags *pflag.FlagSet)
- func AddQueryBidIDFlags(flags *pflag.FlagSet)
- func BidFiltersFromFlags(flags *pflag.FlagSet) (types.BidFilters, error)
- func BidIDFromFlags(flags *pflag.FlagSet, opts ...dcli.MarketOption) (types.BidID, error)
- func GetQueryCmd() *cobra.Command
- func GetTxCmd(key string) *cobra.Command
- func LeaseFiltersFromFlags(flags *pflag.FlagSet) (types.LeaseFilters, error)
- func LeaseIDFromFlags(flags *pflag.FlagSet, opts ...dcli.MarketOption) (types.LeaseID, error)
- func MarkReqBidIDFlags(cmd *cobra.Command, opts ...dcli.DeploymentIDOption)
- func MarkReqLeaseIDFlags(cmd *cobra.Command, opts ...dcli.DeploymentIDOption)
- func MarkReqOrderIDFlags(cmd *cobra.Command, opts ...dcli.DeploymentIDOption)
- func MarkReqProviderFlag(cmd *cobra.Command)
- func OrderFiltersFromFlags(flags *pflag.FlagSet) (types.OrderFilters, error)
- func OrderIDFromFlags(flags *pflag.FlagSet, opts ...dcli.MarketOption) (types.OrderID, error)
- func QueryBidExec(clientCtx client.Context, bidID types.BidID, extraArgs ...string) (sdktest.BufferWriter, error)
- func QueryBidsExec(clientCtx client.Context, args ...string) (sdktest.BufferWriter, error)
- func QueryLeaseExec(clientCtx client.Context, leaseID types.LeaseID, extraArgs ...string) (sdktest.BufferWriter, error)
- func QueryLeasesExec(clientCtx client.Context, args ...string) (sdktest.BufferWriter, error)
- func QueryOrderExec(clientCtx client.Context, orderID types.OrderID, extraArgs ...string) (sdktest.BufferWriter, error)
- func QueryOrdersExec(clientCtx client.Context, args ...string) (sdktest.BufferWriter, error)
- func TxCloseBidExec(clientCtx client.Context, orderID types.OrderID, from fmt.Stringer, ...) (sdktest.BufferWriter, error)
- func TxCloseLeaseExec(clientCtx client.Context, orderID types.OrderID, from fmt.Stringer, ...) (sdktest.BufferWriter, error)
- func TxCreateBidExec(clientCtx client.Context, orderID types.OrderID, price, from fmt.Stringer, ...) (sdktest.BufferWriter, error)
- func TxCreateLeaseExec(clientCtx client.Context, bid types.BidID, from fmt.Stringer, ...) (sdktest.BufferWriter, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrStateValue = errors.New("query: invalid state value") DefaultDeposit = types.DefaultBidMinDeposit )
Functions ¶
func AddBidFilterFlags ¶
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 ¶
AddLeaseFilterFlags add flags to filter for lease list
func AddLeaseIDFlags ¶
func AddLeaseIDFlags(flags *pflag.FlagSet, opts ...dcli.DeploymentIDOption)
func AddOrderFilterFlags ¶
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 ¶
AddProviderFlag add provider flag to command flags set
func AddQueryBidIDFlags ¶
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 ¶
BidIDFromFlags returns BidID with given flags and error if occurred Here provider value is taken from flags
func GetQueryCmd ¶
GetQueryCmd returns the transaction commands for the market module
func LeaseFiltersFromFlags ¶
func LeaseFiltersFromFlags(flags *pflag.FlagSet) (types.LeaseFilters, error)
LeaseFiltersFromFlags returns LeaseFilters with given flags and error if occurred
func LeaseIDFromFlags ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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
Types ¶
This section is empty.