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
- Variables
- func BeginBlocker(ctx sdk.Context, k Keeper)
- func InitGenesis(ctx sdk.Context, keeper Keeper, supplyKeeper types.SupplyKeeper, ...)
- func NewHandler(keeper Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type AppModuleSimulation
- type Auction
- type AuctionWithPhase
- type Auctions
- type BaseAuction
- type CollateralAuction
- type DebtAuction
- type GenesisAuction
- type GenesisAuctions
- type GenesisState
- type Keeper
- type MsgPlaceBid
- type Params
- type QueryAllAuctionParams
- type QueryAuctionParams
- type SupplyKeeper
- type SurplusAuction
- type WeightedAddresses
Constants ¶
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 ¶
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
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 ¶
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 ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
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 ¶
NewHandler module handler
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler module querier
func (AppModule) QuerierRoute ¶
QuerierRoute module querier route name
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants performs a no-op.
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) 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 AuctionWithPhase ¶ added in v0.5.0
type AuctionWithPhase = types.AuctionWithPhase
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 MsgPlaceBid ¶
type MsgPlaceBid = types.MsgPlaceBid
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