cli

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FlagAuctionStatus = "status"
	FlagAuctionType   = "type"
	FlagBidderAddr    = "bidder-addr"
	FlagIsMatched     = "is-matched"
)

Variables

This section is empty.

Functions

func GetQueryCmd

func GetQueryCmd(queryRoute string) *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

func NewAddAllowedBidderCmd

func NewAddAllowedBidderCmd() *cobra.Command

func NewCancelAuctionCmd

func NewCancelAuctionCmd() *cobra.Command

func NewCreateBatchAuctionCmd

func NewCreateBatchAuctionCmd() *cobra.Command

func NewCreateFixedPriceAuctionCmd

func NewCreateFixedPriceAuctionCmd() *cobra.Command

func NewModifyBidCmd

func NewModifyBidCmd() *cobra.Command

func NewPlaceBidCmd

func NewPlaceBidCmd() *cobra.Command

func NewQueryAllowedBidderCmd

func NewQueryAllowedBidderCmd() *cobra.Command

func NewQueryAllowedBiddersCmd

func NewQueryAllowedBiddersCmd() *cobra.Command

func NewQueryAuctionCmd

func NewQueryAuctionCmd() *cobra.Command

func NewQueryAuctionsCmd

func NewQueryAuctionsCmd() *cobra.Command

func NewQueryBidsCmd

func NewQueryBidsCmd() *cobra.Command

func NewQueryParamsCmd

func NewQueryParamsCmd() *cobra.Command

func NewQueryVestingsCmd

func NewQueryVestingsCmd() *cobra.Command

func ParseBidType

func ParseBidType(s string) (types.BidType, error)

ParseBidType parses bid type string and returns types.BidType.

Types

type BatchAuctionRequest

type BatchAuctionRequest struct {
	StartPrice        sdk.Dec                 `json:"start_price"`
	MinBidPrice       sdk.Dec                 `json:"min_bid_price"`
	SellingCoin       sdk.Coin                `json:"selling_coin"`
	PayingCoinDenom   string                  `json:"paying_coin_denom"`
	MaxExtendedRound  uint32                  `json:"max_extended_round"`
	ExtendedRoundRate sdk.Dec                 `json:"extended_round_rate"`
	VestingSchedules  []types.VestingSchedule `json:"vesting_schedules"`
	StartTime         time.Time               `json:"start_time"`
	EndTime           time.Time               `json:"end_time"`
}

BatchAuctionRequest defines CLI request for an batch auction.

func ParseBatchAuctionRequest

func ParseBatchAuctionRequest(fileName string) (req BatchAuctionRequest, err error)

ParseBatchAuctionRequest reads the file and parses BatchAuctionRequest.

func (BatchAuctionRequest) String

func (req BatchAuctionRequest) String() string

String returns a human readable string representation of the request.

type FixedPriceAuctionRequest

type FixedPriceAuctionRequest struct {
	StartPrice       sdk.Dec                 `json:"start_price"`
	SellingCoin      sdk.Coin                `json:"selling_coin"`
	PayingCoinDenom  string                  `json:"paying_coin_denom"`
	VestingSchedules []types.VestingSchedule `json:"vesting_schedules"`
	StartTime        time.Time               `json:"start_time"`
	EndTime          time.Time               `json:"end_time"`
}

FixedPriceAuctionRequest defines CLI request for a fixed price auction.

func ParseFixedPriceAuctionRequest

func ParseFixedPriceAuctionRequest(fileName string) (req FixedPriceAuctionRequest, err error)

ParseFixedPriceAuctionRequest reads the file and parses FixedPriceAuctionRequest.

func (FixedPriceAuctionRequest) String

func (req FixedPriceAuctionRequest) String() string

String returns a human readable string representation of the request.

Jump to

Keyboard shortcuts

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