keeper

package
v0.7.32 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper Keeper) *auctiontypes.GenesisState

ExportGenesis returns a GenesisState for a given context and keeper.

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, data *auctiontypes.GenesisState)

InitGenesis new mint genesis

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) auctiontypes.MsgServer

NewMsgServerImpl returns an implementation of the auction MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func (Keeper) FinishAuction

func (k Keeper) FinishAuction(ctx sdk.Context) error

FinishAuction prohibits selling minigeo

func (Keeper) GetAccumulatedPaymentsForData

func (k Keeper) GetAccumulatedPaymentsForData(ctx sdk.Context) sdk.Coins

GetAccumulatedPaymentsForData returns accumulated payments for data

func (Keeper) GetAuctionStartThreshold

func (k Keeper) GetAuctionStartThreshold(ctx sdk.Context) (res sdk.Coins)

GetAuctionStartThreshold returns auction threshold parameter

func (Keeper) GetAuctionStatus

func (k Keeper) GetAuctionStatus(ctx sdk.Context) (payments auctiontypes.AuctionStatus)

func (Keeper) GetExchangeRates

func (k Keeper) GetExchangeRates(ctx sdk.Context) (res []coinswaptypes.Exchange)

GetExchangeRates returns auction exchange parameter

func (Keeper) GetParams

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

GetParams returns all current parameters as a types.Params instance.

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetAuctionStatus

func (k Keeper) SetAuctionStatus(ctx sdk.Context, status auctiontypes.AuctionStatus)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, value auctiontypes.Params)

SetParams saves the given key-value parameter to the store.

func (Keeper) StartAuction

func (k Keeper) StartAuction(ctx sdk.Context) error

StartAuction resolves to sell minigeo

Jump to

Keyboard shortcuts

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