Documentation ¶
Index ¶
- Variables
- func AdvancedCheckCost(cost string) error
- func AdvancedCheckIfOfferingActive(t int64) bool
- func CalcNextExpireTime(timeInMinutes int64) int64
- func GetAccount(addr string) sdk.AccAddress
- func GetCoins(coins string) (sdk.Coins, error)
- func GetCreator(char types.OfferContract) sdk.AccAddress
- func GetOwner(char chartypes.Character) sdk.AccAddress
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAllCharOffers(goCtx context.Context, req *types.QueryGetAllCharOffersRequest) (*types.QueryGetAllCharOffersResponse, error)
- func (k Keeper) GetAllOfferContract(ctx sdk.Context) (list []types.OfferContract)
- func (k Keeper) GetOfferContract(ctx sdk.Context, index string) (val types.OfferContract, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) OfferContract(c context.Context, req *types.QueryGetOfferContractRequest) (*types.QueryGetOfferContractResponse, error)
- func (k Keeper) OfferContractAll(c context.Context, req *types.QueryAllOfferContractRequest) (*types.QueryAllOfferContractResponse, error)
- func (k Keeper) RemoveOfferContract(ctx sdk.Context, index string)
- func (k Keeper) SetOfferContract(ctx sdk.Context, offerContract types.OfferContract)
Constants ¶
This section is empty.
Variables ¶
View Source
var OfferingMinPrice = sdk.Coins{sdk.NewInt64Coin(x.SpendDenomination, 1)}
Functions ¶
func AdvancedCheckCost ¶
func CalcNextExpireTime ¶
func GetAccount ¶
func GetAccount(addr string) sdk.AccAddress
func GetCreator ¶
func GetCreator(char types.OfferContract) sdk.AccAddress
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 sdk.StoreKey, charserviceKeeper types.CharserviceKeeper, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) GetAllCharOffers ¶
func (k Keeper) GetAllCharOffers(goCtx context.Context, req *types.QueryGetAllCharOffersRequest) (*types.QueryGetAllCharOffersResponse, error)
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) OfferContract ¶
func (k Keeper) OfferContract(c context.Context, req *types.QueryGetOfferContractRequest) (*types.QueryGetOfferContractResponse, error)
func (Keeper) OfferContractAll ¶
func (k Keeper) OfferContractAll(c context.Context, req *types.QueryAllOfferContractRequest) (*types.QueryAllOfferContractResponse, error)
func (Keeper) RemoveOfferContract ¶
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
Click to show internal directories.
Click to hide internal directories.