keeper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OfferingMinPrice = sdk.Coins{sdk.NewInt64Coin(x.SpendDenomination, 1)}

Functions

func AdvancedCheckCost

func AdvancedCheckCost(cost string) error

func AdvancedCheckIfOfferingActive

func AdvancedCheckIfOfferingActive(t int64) bool

func CalcNextExpireTime

func CalcNextExpireTime(timeInMinutes int64) int64

func GetAccount

func GetAccount(addr string) sdk.AccAddress

func GetCoins

func GetCoins(coins string) (sdk.Coins, error)

func GetCreator

func GetCreator(char types.OfferContract) sdk.AccAddress

func GetOwner

func GetOwner(char chartypes.Character) sdk.AccAddress

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 sdk.StoreKey,

	charserviceKeeper types.CharserviceKeeper, bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) GetAllOfferContract

func (k Keeper) GetAllOfferContract(ctx sdk.Context) (list []types.OfferContract)

GetAllOfferContract returns all offerContract

func (Keeper) GetOfferContract

func (k Keeper) GetOfferContract(ctx sdk.Context, index string) (val types.OfferContract, found bool)

GetOfferContract returns a offerContract from its index

func (Keeper) Logger

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

func (Keeper) RemoveOfferContract

func (k Keeper) RemoveOfferContract(ctx sdk.Context, index string)

RemoveOfferContract removes a offerContract from the store

func (Keeper) SetOfferContract

func (k Keeper) SetOfferContract(ctx sdk.Context, offerContract types.OfferContract)

SetOfferContract set a specific offerContract in the store from its index

Jump to

Keyboard shortcuts

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