keeper

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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,
	ps paramtypes.Subspace,

) *Keeper

func (Keeper) CreateNewAddress

func (k Keeper) CreateNewAddress(ctx sdk.Context, address types.Address) error

CreateNewAddress set a specific address in the store from its index

func (Keeper) GetAddress

func (k Keeper) GetAddress(ctx sdk.Context, creator, network, label string) (val types.Address, found bool)

GetAddress returns a address from its index

func (Keeper) GetAllAddress

func (k Keeper) GetAllAddress(ctx sdk.Context) (list []types.Address)

GetAllAddress returns all address

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveAddress

func (k Keeper) RemoveAddress(ctx sdk.Context, creator, network, label string)

RemoveAddress removes a address from the store

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) UpdateExistingAddress

func (k Keeper) UpdateExistingAddress(ctx sdk.Context, address types.Address) error

UpdateExistingAddress set a specific address in the store from its index

Jump to

Keyboard shortcuts

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