Documentation
¶
Index ¶
- func GetAuctionIDBytes(id uint64) []byte
- func GetAuctionIDFromBytes(bz []byte) uint64
- func GetBidIDBytes(id uint64) []byte
- func GetBidIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Auction(goCtx context.Context, req *types.QueryGetAuctionRequest) (*types.QueryGetAuctionResponse, error)
- func (k Keeper) AuctionAll(goCtx context.Context, req *types.QueryAllAuctionRequest) (*types.QueryAllAuctionResponse, error)
- func (k Keeper) Bid(goCtx context.Context, req *types.QueryGetBidRequest) (*types.QueryGetBidResponse, error)
- func (k Keeper) BidAll(goCtx context.Context, req *types.QueryAllBidRequest) (*types.QueryAllBidResponse, error)
- func (k Keeper) GetAllAuction(ctx sdk.Context) (list []types.Auction)
- func (k Keeper) GetAllBid(ctx sdk.Context) (list []types.Bid)
- func (k Keeper) GetAuction(ctx sdk.Context, auctionID string) (val types.Auction, found bool)
- func (k Keeper) GetAuctionCount(ctx sdk.Context) uint64
- func (k Keeper) GetBid(ctx sdk.Context, bidID string) (val types.Bid, found bool)
- func (k Keeper) GetBidCount(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveAuction(ctx sdk.Context, auctionID string)
- func (k Keeper) RemoveBid(ctx sdk.Context, bidID string)
- func (k Keeper) SetAuction(ctx sdk.Context, auctionID string, auction types.Auction)
- func (k Keeper) SetAuctionCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetBid(ctx sdk.Context, bidID string, bid types.Bid)
- func (k Keeper) SetBidCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuctionIDBytes ¶
GetAuctionIDBytes returns the byte representation of the ID
func GetAuctionIDFromBytes ¶
GetAuctionIDFromBytes returns ID in uint64 format from a byte array
func GetBidIDBytes ¶
GetBidIDBytes returns the byte representation of the ID
func GetBidIDFromBytes ¶
GetBidIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) Auction ¶
func (k Keeper) Auction(goCtx context.Context, req *types.QueryGetAuctionRequest) (*types.QueryGetAuctionResponse, error)
func (Keeper) AuctionAll ¶
func (k Keeper) AuctionAll(goCtx context.Context, req *types.QueryAllAuctionRequest) (*types.QueryAllAuctionResponse, error)
func (Keeper) Bid ¶
func (k Keeper) Bid(goCtx context.Context, req *types.QueryGetBidRequest) (*types.QueryGetBidResponse, error)
func (Keeper) BidAll ¶
func (k Keeper) BidAll(goCtx context.Context, req *types.QueryAllBidRequest) (*types.QueryAllBidResponse, error)
func (Keeper) GetAllAuction ¶
GetAllAuction returns all auction
func (Keeper) GetAuction ¶
GetAuction returns a auction from its id
func (Keeper) GetAuctionCount ¶
GetAuctionCount get the total number of auction
func (Keeper) GetBidCount ¶
GetBidCount get the total number of bid
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveAuction ¶
RemoveAuction removes a auction from the store
func (Keeper) SetAuction ¶
SetAuction set a specific auction in the store
func (Keeper) SetAuctionCount ¶
SetAuctionCount set the total number of auction
func (Keeper) SetBidCount ¶
SetBidCount set the total number of bid