keeper

package
v0.0.0-...-1d23b3c Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuctionIDBytes

func GetAuctionIDBytes(id uint64) []byte

GetAuctionIDBytes returns the byte representation of the ID

func GetAuctionIDFromBytes

func GetAuctionIDFromBytes(bz []byte) uint64

GetAuctionIDFromBytes returns ID in uint64 format from a byte array

func GetBidIDBytes

func GetBidIDBytes(id uint64) []byte

GetBidIDBytes returns the byte representation of the ID

func GetBidIDFromBytes

func GetBidIDFromBytes(bz []byte) uint64

GetBidIDFromBytes returns ID in uint64 format from a byte array

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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) AuctionAll

func (Keeper) Bid

func (Keeper) BidAll

func (Keeper) GetAllAuction

func (k Keeper) GetAllAuction(ctx sdk.Context) (list []types.Auction)

GetAllAuction returns all auction

func (Keeper) GetAllBid

func (k Keeper) GetAllBid(ctx sdk.Context) (list []types.Bid)

GetAllBid returns all bid

func (Keeper) GetAuction

func (k Keeper) GetAuction(ctx sdk.Context, auctionID string) (val types.Auction, found bool)

GetAuction returns a auction from its id

func (Keeper) GetAuctionCount

func (k Keeper) GetAuctionCount(ctx sdk.Context) uint64

GetAuctionCount get the total number of auction

func (Keeper) GetBid

func (k Keeper) GetBid(ctx sdk.Context, bidID string) (val types.Bid, found bool)

GetBid returns a bid from its id

func (Keeper) GetBidCount

func (k Keeper) GetBidCount(ctx sdk.Context) uint64

GetBidCount get the total number of bid

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) RemoveAuction

func (k Keeper) RemoveAuction(ctx sdk.Context, auctionID string)

RemoveAuction removes a auction from the store

func (Keeper) RemoveBid

func (k Keeper) RemoveBid(ctx sdk.Context, bidID string)

RemoveBid removes a bid from the store

func (Keeper) SetAuction

func (k Keeper) SetAuction(ctx sdk.Context, auctionID string, auction types.Auction)

SetAuction set a specific auction in the store

func (Keeper) SetAuctionCount

func (k Keeper) SetAuctionCount(ctx sdk.Context, count uint64)

SetAuctionCount set the total number of auction

func (Keeper) SetBid

func (k Keeper) SetBid(ctx sdk.Context, bidID string, bid types.Bid)

SetBid set a specific bid in the store

func (Keeper) SetBidCount

func (k Keeper) SetBidCount(ctx sdk.Context, count uint64)

SetBidCount set the total number of bid

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

Jump to

Keyboard shortcuts

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