keeper

package
v0.0.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 11 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 module MsgServer interface.

Types

type Keeper

type Keeper struct {

	// state management
	Schema collections.Schema
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService storetypes.KVStoreService,
	mintKeeper mintkeeper.Keeper,
	bankKeeper bankkeeper.Keeper,
	logger log.Logger,
	authority string,
) Keeper

NewKeeper creates a new poa Keeper instance

func (*Keeper) ExportGenesis

func (k *Keeper) ExportGenesis(_ context.Context) *types.GenesisState

ExportGenesis exports the module's state to a genesis state.

func (*Keeper) GetAuthority

func (k *Keeper) GetAuthority() string

func (*Keeper) GetBankKeeper

func (k *Keeper) GetBankKeeper() bankkeeper.Keeper

func (*Keeper) GetTestAccountKeeper

func (k *Keeper) GetTestAccountKeeper() accountkeeper.AccountKeeper

func (*Keeper) InitGenesis

func (k *Keeper) InitGenesis(_ context.Context, _ *types.GenesisState) error

func (*Keeper) Logger

func (k *Keeper) Logger() log.Logger

func (*Keeper) Payout

func (k *Keeper) Payout(ctx context.Context, payouts []types.PayoutPair) error

Payout mints and sends coins to stakeholders.

func (*Keeper) SetAuthority

func (k *Keeper) SetAuthority(authority string)

SetAuthority is only used for testing

func (*Keeper) SetTestAccountKeeper

func (k *Keeper) SetTestAccountKeeper(ak accountkeeper.AccountKeeper)

type Querier

type Querier struct {
	Keeper
}

func NewQuerier

func NewQuerier(keeper Keeper) Querier

Jump to

Keyboard shortcuts

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