Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type AuctionBidHandler
- type Keeper
- func (k Keeper) Auction(goCtx context.Context, req *types.QueryAuctionRequest) (*types.QueryAuctionResponse, error)
- func (k Keeper) Auctions(goCtx context.Context, req *types.QueryAuctionsRequest) (*types.QueryAuctionsResponse, error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllAuctions(ctx sdk.Context) []types.Auction
- func (k Keeper) GetAuction(ctx sdk.Context, name string) (*types.Auction, error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) PlaceBid(ctx sdk.Context, bid *types.MsgPlaceBid) error
- func (k Keeper) SetAuction(ctx sdk.Context, auction *types.Auction)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type AuctionBidHandler ¶
type AuctionBidHandler func(ctx sdk.Context, k Keeper, auction *types.Auction, bid *types.MsgPlaceBid) error
Define a type for bid handler functions
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, storeKey storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, icqoracleKeeper types.IcqOracleKeeper, ) *Keeper
func (Keeper) Auction ¶
func (k Keeper) Auction(goCtx context.Context, req *types.QueryAuctionRequest) (*types.QueryAuctionResponse, error)
Auction queries the auction info for a specific token
func (Keeper) Auctions ¶
func (k Keeper) Auctions(goCtx context.Context, req *types.QueryAuctionsRequest) (*types.QueryAuctionsResponse, error)
Auctions queries the auction info for a specific token
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
Export's module state into genesis file
func (Keeper) GetAllAuctions ¶
GetAllAuctions retrieves all stored auctions
func (Keeper) GetAuction ¶
GetAuction retrieves auction info for a token
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
Loads module state from genesis
func (Keeper) SetAuction ¶
SetAuction stores auction info for a token
Click to show internal directories.
Click to hide internal directories.