keeper

package
v26.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

Auction queries the auction info for a specific token

func (Keeper) Auctions

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

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

GetAllAuctions retrieves all stored auctions

func (Keeper) GetAuction

func (k Keeper) GetAuction(ctx sdk.Context, name string) (*types.Auction, error)

GetAuction retrieves auction info for a token

func (Keeper) GetParams

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

GetParams get params

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)

Loads module state from genesis

func (Keeper) PlaceBid

func (k Keeper) PlaceBid(ctx sdk.Context, bid *types.MsgPlaceBid) error

PlaceBid places an auction bid and executes it based on the auction type

func (Keeper) SetAuction

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

SetAuction stores auction info for a token

func (Keeper) SetParams

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

SetParams set params

Jump to

Keyboard shortcuts

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