keeper

package
v1.4.0-dev1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
) *Keeper

func (Keeper) GetAccount

func (k Keeper) GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI

exists to satisfy cosmos AccountKeeper.GetAccount interface TODO consider better way.

func (Keeper) GetAccountO

func (k Keeper) GetAccountO(
	ctx sdk.Context,
	address sdk.AccAddress,
) (val types.Account, found bool)

GetAccount returns a account from its index.

func (Keeper) GetAllAccount

func (k Keeper) GetAllAccount(ctx sdk.Context) (list []types.Account)

GetAllAccount returns all account.

func (Keeper) GetModuleAddress

func (k Keeper) GetModuleAddress(moduleName string) sdk.AccAddress

just a stub to have AccountKeeper.GetModuleAddress API filled.

func (Keeper) GetParams

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

GetParams gets the auth module's parameters.

func (Keeper) IterateAccounts

func (k Keeper) IterateAccounts(ctx sdk.Context, cb func(account types.Account) (stop bool))

func (Keeper) Logger

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

func (Keeper) Params

Params returns parameters of auth module.

func (Keeper) SetParams

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

SetParams sets the auth module's parameters.

func (Keeper) UnmarshalAccount

func (k Keeper) UnmarshalAccount(bz []byte) (basetypes.AccountI, error)

UnmarshalAccount returns an Account interface from raw encoded account bytes of a Proto-based Account type.

Jump to

Keyboard shortcuts

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