auction

package
v0.0.0-...-93f430d Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BaseURL is the base url for kava's rest-server
	BaseURL = "http://localhost:1317"
	// AuctionModuleName is the auction module's name
	AuctionModuleName = "auction"
)

Variables

This section is empty.

Functions

func GetCurrentAuctions

func GetCurrentAuctions() (*auctypes.BaseAuction, error)

GetCurrentAuctions gets a list of the current auctions

func GetEventAttributes

func GetEventAttributes(attributes []tmCommon.KVPair) (types.CollateralAuction, error)

GetEventAttributes parses details from a new CollateralAuction

func ScanBidCoin

func ScanBidCoin() (sdk.Coin, error)

ScanBidCoin takes user input for their sdk.Coin bid

func ScanBidDecision

func ScanBidDecision() (bool, error)

ScanBidDecision reads the users bid decision input

func StartSubscription

func StartSubscription(
	provider string,
	chainID string,
	from string,
	passphrase string,
	coinDenom string,
	cdc *amino.Codec,
	cliCtx sdkContext.CLIContext,
	accAddress sdk.AccAddress,
) error

StartSubscription starts a subscription to the tendermint node

Types

This section is empty.

Jump to

Keyboard shortcuts

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