keeper

package
v0.0.0-...-ebe016c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

Types

type Keeper

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

func NewKeeper

func NewKeeper(cdc codec.Marshaler, storeKey, memKey sdk.StoreKey, paramSpace paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper,
) Keeper

func (Keeper) BurnIou

func (k Keeper) BurnIou(ctx sdk.Context, coin sdk.Coin, holder sdk.AccAddress) error

func (Keeper) CreateIouNamespace

func (k Keeper) CreateIouNamespace(ctx sdk.Context, msg types.MsgCreateIouNamespace)

CreateIouNamespace creates a IouNamespace with a new id and update the count

func (Keeper) DeleteIouNamespace

func (k Keeper) DeleteIouNamespace(ctx sdk.Context, id string)

DeleteIouNamespace deletes a IouNamespace

func (Keeper) GetAllIouNamespace

func (k Keeper) GetAllIouNamespace(ctx sdk.Context) (msgs []types.IouNamespace)

GetAllIouNamespace returns all IouNamespace

func (Keeper) GetIouNamespace

func (k Keeper) GetIouNamespace(ctx sdk.Context, id string) types.IouNamespace

GetIouNamespace returns a IouNamespace from its id

func (Keeper) GetIouNamespaceAdmin

func (k Keeper) GetIouNamespaceAdmin(ctx sdk.Context, id string) _types.StringAccAddress

GetIouNamespaceAdmin returns the admin of the IouNamespace

func (Keeper) GetIouNamespaceCount

func (k Keeper) GetIouNamespaceCount(ctx sdk.Context) int64

GetIouNamespaceCount get the total number of IouNamespace

func (Keeper) GetIouNamespaceIssuer

func (k Keeper) GetIouNamespaceIssuer(ctx sdk.Context, id string) _types.StringAccAddress

GetIouNamespaceIssuer returns the issuer of the IouNamespace

func (Keeper) GetParams

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

func (Keeper) HasIouNamespace

func (k Keeper) HasIouNamespace(ctx sdk.Context, id string) bool

HasIouNamespace checks if the IouNamespace exists

func (Keeper) IssueIou

func (k Keeper) IssueIou(ctx sdk.Context, coin sdk.Coin, destination sdk.AccAddress) error

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) SetIouNamespace

func (k Keeper) SetIouNamespace(ctx sdk.Context, IouNamespace types.IouNamespace)

SetIouNamespace set a specific IouNamespace in the store

func (Keeper) SetIouNamespaceCount

func (k Keeper) SetIouNamespaceCount(ctx sdk.Context, count int64)

SetIouNamespaceCount set the total number of IouNamespace

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

Jump to

Keyboard shortcuts

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