keeper

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginBlocker

func BeginBlocker(_ sdk.Context, _ abci.RequestBeginBlock, _ keeper.Keeper)

BeginBlocker

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 {
	AuthKeeper types.AccountKeeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	at types.AccountKeeper,
	testingMode bool,
) *Keeper

func (*Keeper) AddAdmin

func (k *Keeper) AddAdmin(ctx sdk.Context, admin types.Admin) error

func (*Keeper) AddDistributor

func (k *Keeper) AddDistributor(ctx sdk.Context, info types.DistributorInfo) error

func (Keeper) Admin

Admin queries admin with address.

func (Keeper) Admins

Admins queries request of all admins.

func (Keeper) Distributor

Distributor queries distributor with address.

func (Keeper) Distributors

Distributors queries request of all distributors.

func (*Keeper) EndBlock

func (k *Keeper) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate

func (*Keeper) GetAdmin

func (k *Keeper) GetAdmin(ctx sdk.Context, address string) (types.Admin, error)

func (Keeper) GetAdmins

func (k Keeper) GetAdmins(ctx sdk.Context) ([]types.Admin, error)

func (*Keeper) GetDistributor

func (k *Keeper) GetDistributor(ctx sdk.Context, address string) (types.DistributorInfo, error)

func (*Keeper) GetDistributors

func (k *Keeper) GetDistributors(ctx sdk.Context) ([]types.DistributorInfo, error)

func (*Keeper) HandleAddDistributorProposal

func (k *Keeper) HandleAddDistributorProposal(ctx sdk.Context, p *types.AddDistributorProposal) error

func (Keeper) IsTestingMode

func (k Keeper) IsTestingMode() bool

func (Keeper) IterateAdmins

func (k Keeper) IterateAdmins(ctx sdk.Context,
	handler func(address string, editOption bool) bool,
)

func (Keeper) IterateDistributors

func (k Keeper) IterateDistributors(ctx sdk.Context,
	handler func(address string, end_date uint64) bool,
)

func (Keeper) Logger

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

func (*Keeper) RemoveAdmin

func (k *Keeper) RemoveAdmin(ctx sdk.Context, address string) error

func (*Keeper) RemoveDistributor

func (k *Keeper) RemoveDistributor(ctx sdk.Context, address string) error

func (*Keeper) SetTestingMode

func (k *Keeper) SetTestingMode(testingMode bool)

func (Keeper) ValidateAdmin

func (k Keeper) ValidateAdmin(ctx sdk.Context, address string) error

ValidateAdmin returns error if the given adress is not allowed admin.

func (Keeper) ValidateDistributor

func (k Keeper) ValidateDistributor(ctx sdk.Context, address string) error

ValidateDistributor returns error if the given adress is not allowed distributor.

func (Keeper) ValidateTransaction

func (k Keeper) ValidateTransaction(ctx sdk.Context, address string) error

Jump to

Keyboard shortcuts

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