auction

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/kava-labs/kava/x/auction/keeper ALIASGEN: github.com/kava-labs/kava/x/auction/types

Index

Constants

View Source
const (
	DefaultCodespace                      = types.DefaultCodespace
	CodeInvalidInitialAuctionID           = types.CodeInvalidInitialAuctionID
	CodeInvalidModulePermissions          = types.CodeInvalidModulePermissions
	CodeUnrecognizedAuctionType           = types.CodeUnrecognizedAuctionType
	CodeAuctionNotFound                   = types.CodeAuctionNotFound
	CodeAuctionHasNotExpired              = types.CodeAuctionHasNotExpired
	CodeAuctionHasExpired                 = types.CodeAuctionHasExpired
	CodeInvalidBidDenom                   = types.CodeInvalidBidDenom
	CodeInvalidLotDenom                   = types.CodeInvalidLotDenom
	CodeBidTooSmall                       = types.CodeBidTooSmall
	CodeBidTooLarge                       = types.CodeBidTooLarge
	CodeLotTooSmall                       = types.CodeLotTooSmall
	CodeLotTooLarge                       = types.CodeLotTooLarge
	CodeCollateralAuctionIsInReversePhase = types.CodeCollateralAuctionIsInReversePhase
	CodeCollateralAuctionIsInForwardPhase = types.CodeCollateralAuctionIsInForwardPhase
	EventTypeAuctionStart                 = types.EventTypeAuctionStart
	EventTypeAuctionBid                   = types.EventTypeAuctionBid
	EventTypeAuctionClose                 = types.EventTypeAuctionClose
	AttributeValueCategory                = types.AttributeValueCategory
	AttributeKeyAuctionID                 = types.AttributeKeyAuctionID
	AttributeKeyAuctionType               = types.AttributeKeyAuctionType
	AttributeKeyBidder                    = types.AttributeKeyBidder
	AttributeKeyBidDenom                  = types.AttributeKeyBidDenom
	AttributeKeyLotDenom                  = types.AttributeKeyLotDenom
	AttributeKeyBidAmount                 = types.AttributeKeyBidAmount
	AttributeKeyLotAmount                 = types.AttributeKeyLotAmount
	AttributeKeyEndTime                   = types.AttributeKeyEndTime
	DefaultNextAuctionID                  = types.DefaultNextAuctionID
	ModuleName                            = types.ModuleName
	StoreKey                              = types.StoreKey
	RouterKey                             = types.RouterKey
	DefaultParamspace                     = types.DefaultParamspace
	QuerierRoute                          = types.QuerierRoute
	DefaultMaxAuctionDuration             = types.DefaultMaxAuctionDuration
	DefaultBidDuration                    = types.DefaultBidDuration
	QueryGetAuction                       = types.QueryGetAuction
	QueryGetAuctions                      = types.QueryGetAuctions
	QueryGetParams                        = types.QueryGetParams
)

Variables

View Source
var (
	// functions aliases
	NewKeeper                            = keeper.NewKeeper
	NewQuerier                           = keeper.NewQuerier
	NewSurplusAuction                    = types.NewSurplusAuction
	NewDebtAuction                       = types.NewDebtAuction
	NewCollateralAuction                 = types.NewCollateralAuction
	NewWeightedAddresses                 = types.NewWeightedAddresses
	RegisterCodec                        = types.RegisterCodec
	ErrInvalidInitialAuctionID           = types.ErrInvalidInitialAuctionID
	ErrInvalidModulePermissions          = types.ErrInvalidModulePermissions
	ErrUnrecognizedAuctionType           = types.ErrUnrecognizedAuctionType
	ErrAuctionNotFound                   = types.ErrAuctionNotFound
	ErrAuctionHasNotExpired              = types.ErrAuctionHasNotExpired
	ErrAuctionHasExpired                 = types.ErrAuctionHasExpired
	ErrInvalidBidDenom                   = types.ErrInvalidBidDenom
	ErrInvalidLotDenom                   = types.ErrInvalidLotDenom
	ErrBidTooSmall                       = types.ErrBidTooSmall
	ErrBidTooLarge                       = types.ErrBidTooLarge
	ErrLotTooSmall                       = types.ErrLotTooSmall
	ErrLotTooLarge                       = types.ErrLotTooLarge
	ErrCollateralAuctionIsInReversePhase = types.ErrCollateralAuctionIsInReversePhase
	ErrCollateralAuctionIsInForwardPhase = types.ErrCollateralAuctionIsInForwardPhase
	NewGenesisState                      = types.NewGenesisState
	DefaultGenesisState                  = types.DefaultGenesisState
	GetAuctionKey                        = types.GetAuctionKey
	GetAuctionByTimeKey                  = types.GetAuctionByTimeKey
	Uint64ToBytes                        = types.Uint64ToBytes
	Uint64FromBytes                      = types.Uint64FromBytes
	NewMsgPlaceBid                       = types.NewMsgPlaceBid
	NewParams                            = types.NewParams
	DefaultParams                        = types.DefaultParams
	ParamKeyTable                        = types.ParamKeyTable
	NewQueryAllAuctionParams             = types.NewQueryAllAuctionParams
	NewAuctionWithPhase                  = types.NewAuctionWithPhase

	// variable aliases
	DistantFuture          = types.DistantFuture
	ModuleCdc              = types.ModuleCdc
	AuctionKeyPrefix       = types.AuctionKeyPrefix
	AuctionByTimeKeyPrefix = types.AuctionByTimeKeyPrefix
	NextAuctionIDKey       = types.NextAuctionIDKey
	DefaultIncrement       = types.DefaultIncrement
	KeyBidDuration         = types.KeyBidDuration
	KeyMaxAuctionDuration  = types.KeyMaxAuctionDuration
	KeyIncrementSurplus    = types.KeyIncrementSurplus
	KeyIncrementDebt       = types.KeyIncrementDebt
	KeyIncrementCollateral = types.KeyIncrementCollateral
)

Functions

func BeginBlocker added in v0.5.0

func BeginBlocker(ctx sdk.Context, k Keeper)

BeginBlocker runs at the start of every block.

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, supplyKeeper types.SupplyKeeper, gs GenesisState)

InitGenesis initializes the store state from a genesis state.

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

NewHandler returns a function to handle all "auction" type messages.

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	AppModuleSimulation
	// contains filtered or unexported fields
}

AppModule implements the sdk.AppModule interface.

func NewAppModule

func NewAppModule(keeper Keeper, supplyKeeper types.SupplyKeeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)

BeginBlock module begin-block

func (AppModule) EndBlock

EndBlock module end-block

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis module export genesis

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization for the auction module. It returns no validator updates.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler module querier

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute module querier route name

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants performs a no-op.

func (AppModule) Route

func (AppModule) Route() string

Route module message route name

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic implements the sdk.AppModuleBasic interface.

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns the default genesis state.

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the root query command for the auction module.

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the root tx command for the auction module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the module name.

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the module codec.

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

RegisterRESTRoutes registers the REST routes for the auction module.

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the auction module.

type AppModuleSimulation added in v0.5.0

type AppModuleSimulation struct{}

AppModuleSimulation defines the module simulation functions used by the auction module.

func (AppModuleSimulation) GenerateGenesisState added in v0.5.0

func (AppModuleSimulation) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenState of the auction module

func (AppModuleSimulation) RandomizedParams added in v0.5.0

func (AppModuleSimulation) RandomizedParams(r *rand.Rand) []sim.ParamChange

RandomizedParams creates randomized auction param changes for the simulator.

func (AppModuleSimulation) RegisterStoreDecoder added in v0.5.0

func (AppModuleSimulation) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for auction module's types

type Auction

type Auction = types.Auction

type AuctionWithPhase added in v0.5.0

type AuctionWithPhase = types.AuctionWithPhase

type Auctions added in v0.5.0

type Auctions = types.Auctions

type BaseAuction

type BaseAuction = types.BaseAuction

type CollateralAuction

type CollateralAuction = types.CollateralAuction

type DebtAuction

type DebtAuction = types.DebtAuction

type GenesisAuction

type GenesisAuction = types.GenesisAuction

type GenesisAuctions

type GenesisAuctions = types.GenesisAuctions

type GenesisState

type GenesisState = types.GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState

ExportGenesis returns a GenesisState for a given context and keeper.

type Keeper

type Keeper = keeper.Keeper

type MsgPlaceBid

type MsgPlaceBid = types.MsgPlaceBid

type Params

type Params = types.Params

type QueryAllAuctionParams added in v0.5.0

type QueryAllAuctionParams = types.QueryAllAuctionParams

type QueryAuctionParams added in v0.5.0

type QueryAuctionParams = types.QueryAuctionParams

type SupplyKeeper

type SupplyKeeper = types.SupplyKeeper

type SurplusAuction

type SurplusAuction = types.SurplusAuction

type WeightedAddresses

type WeightedAddresses = types.WeightedAddresses

Directories

Path Synopsis
client
cli
DONTCOVER
DONTCOVER

Jump to

Keyboard shortcuts

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