keeper

package
v0.0.0-...-4c01389 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

NewQuerier creates a new querier for pofe clients.

Types

type Keeper

type Keeper struct {
	CoinKeeper bank.Keeper
	// contains filtered or unexported fields
}

Keeper of the pofe store

func NewKeeper

func NewKeeper(coinKeeper bank.Keeper, cdc *codec.Codec, key sdk.StoreKey) Keeper

NewKeeper creates a pofe keeper

func (Keeper) ClaimExists

func (k Keeper) ClaimExists(ctx sdk.Context, key string) bool

Check if the key exists in the store

func (Keeper) CreateClaim

func (k Keeper) CreateClaim(ctx sdk.Context, claim types.Claim)

CreateClaim creates a claim

func (Keeper) DeleteClaim

func (k Keeper) DeleteClaim(ctx sdk.Context, key string)

DeleteClaim deletes a claim

func (Keeper) GetClaim

func (k Keeper) GetClaim(ctx sdk.Context, key string) (types.Claim, error)

GetClaim returns the claim information

func (Keeper) GetClaimOwner

func (k Keeper) GetClaimOwner(ctx sdk.Context, key string) sdk.AccAddress

Get creator of the item

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) SetClaim

func (k Keeper) SetClaim(ctx sdk.Context, claim types.Claim)

SetClaim sets a claim

Jump to

Keyboard shortcuts

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