Documentation ¶
Index ¶
- Variables
- func AdvancedCheckCost(cost string) error
- func AdvancedCheckIsForSale(t int64) bool
- func AdvancedCheckValue(goCtx context.Context, ctype string, value []byte, ...) error
- func CalcNextSaleTime(timeInMinutes int64) int64
- func GetAccount(addr string) sdk.AccAddress
- func GetCoins(coins string) (sdk.Coins, error)
- func GetCreator(char types.Character) sdk.AccAddress
- func GetOwner(char types.Character) sdk.AccAddress
- func HasOwner(char types.Character) bool
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Character(c context.Context, req *types.QueryGetCharacterRequest) (*types.QueryGetCharacterResponse, error)
- func (k Keeper) CharacterAll(c context.Context, req *types.QueryAllCharacterRequest) (*types.QueryAllCharacterResponse, error)
- func (k Keeper) GetAllCharacter(ctx sdk.Context) (list []types.Character)
- func (k Keeper) GetAllCharsByCreator(goCtx context.Context, req *types.QueryGetAllCharsByCreatorRequest) (*types.QueryGetAllCharsByCreatorResponse, error)
- func (k Keeper) GetAllCharsForSale(goCtx context.Context, req *types.QueryGetAllCharsForSaleRequest) (*types.QueryGetAllCharsForSaleResponse, error)
- func (k Keeper) GetAllCharsOfOwner(goCtx context.Context, req *types.QueryGetAllCharsOfOwnerRequest) (*types.QueryGetAllCharsOfOwnerResponse, error)
- func (k Keeper) GetAllCharsOfType(goCtx context.Context, req *types.QueryGetAllCharsOfTypeRequest) (*types.QueryGetAllCharsOfTypeResponse, error)
- func (k Keeper) GetCharByName(goCtx context.Context, req *types.QueryGetCharByNameRequest) (*types.QueryGetCharByNameResponse, error)
- func (k Keeper) GetCharacter(ctx sdk.Context, index string) (val types.Character, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) RemoveCharacter(ctx sdk.Context, index string)
- func (k Keeper) SetCharacter(ctx sdk.Context, character types.Character)
- type TypeserviceChecker
Constants ¶
This section is empty.
Variables ¶
View Source
var CharacterMinPrice = sdk.Coins{sdk.NewInt64Coin(x.SpendDenomination, 1)}
Functions ¶
func AdvancedCheckCost ¶
func AdvancedCheckIsForSale ¶
func AdvancedCheckValue ¶
func CalcNextSaleTime ¶
func GetAccount ¶
func GetAccount(addr string) sdk.AccAddress
func GetCreator ¶
func GetCreator(char types.Character) 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, bankKeeper types.BankKeeper, typeserviceKeeper types.TypeserviceKeeper, ) *Keeper
func (Keeper) Character ¶
func (k Keeper) Character(c context.Context, req *types.QueryGetCharacterRequest) (*types.QueryGetCharacterResponse, error)
func (Keeper) CharacterAll ¶
func (k Keeper) CharacterAll(c context.Context, req *types.QueryAllCharacterRequest) (*types.QueryAllCharacterResponse, error)
func (Keeper) GetAllCharacter ¶
GetAllCharacter returns all character
func (Keeper) GetAllCharsByCreator ¶
func (k Keeper) GetAllCharsByCreator(goCtx context.Context, req *types.QueryGetAllCharsByCreatorRequest) (*types.QueryGetAllCharsByCreatorResponse, error)
func (Keeper) GetAllCharsForSale ¶
func (k Keeper) GetAllCharsForSale(goCtx context.Context, req *types.QueryGetAllCharsForSaleRequest) (*types.QueryGetAllCharsForSaleResponse, error)
func (Keeper) GetAllCharsOfOwner ¶
func (k Keeper) GetAllCharsOfOwner(goCtx context.Context, req *types.QueryGetAllCharsOfOwnerRequest) (*types.QueryGetAllCharsOfOwnerResponse, error)
func (Keeper) GetAllCharsOfType ¶
func (k Keeper) GetAllCharsOfType(goCtx context.Context, req *types.QueryGetAllCharsOfTypeRequest) (*types.QueryGetAllCharsOfTypeResponse, error)
func (Keeper) GetCharByName ¶
func (k Keeper) GetCharByName(goCtx context.Context, req *types.QueryGetCharByNameRequest) (*types.QueryGetCharByNameResponse, error)
func (Keeper) GetCharacter ¶
GetCharacter returns a character from its index
func (Keeper) RemoveCharacter ¶
RemoveCharacter removes a character from the store
type TypeserviceChecker ¶
type TypeserviceChecker interface {
Ctype(c context.Context, req *types.QueryGetCtypeRequest) (*types.QueryGetCtypeResponse, error)
}
Source Files ¶
- char_validator.go
- character.go
- grpc_query.go
- grpc_query_character.go
- grpc_query_get_all_chars_by_creator.go
- grpc_query_get_all_chars_for_sale.go
- grpc_query_get_all_chars_of_owner.go
- grpc_query_get_all_chars_of_type.go
- grpc_query_get_char_by_name.go
- keeper.go
- msg_server.go
- msg_server_buy_char.go
- msg_server_set_sale.go
- msg_server_unlist_sale.go
Click to show internal directories.
Click to hide internal directories.