keeper

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 16 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,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,

	bankKeeper types.BankKeeper,
	sharedKeeper types.SharedKeeper,
	serviceKeeper types.ServiceKeeper,
) Keeper

func (Keeper) EndBlockerUnbondSuppliers added in v0.0.5

func (k Keeper) EndBlockerUnbondSuppliers(ctx context.Context) error

EndBlockerUnbondSuppliers unbonds suppliers whose unbonding period has elapsed.

func (Keeper) GetAllSuppliers

func (k Keeper) GetAllSuppliers(ctx context.Context) (suppliers []sharedtypes.Supplier)

GetAllSuppliers returns all supplier

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetSupplier

func (k Keeper) GetSupplier(
	ctx context.Context,
	supplierOperatorAddr string,
) (supplier sharedtypes.Supplier, found bool)

GetSupplier returns a supplier from its index

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) Params

func (Keeper) RemoveSupplier

func (k Keeper) RemoveSupplier(ctx context.Context, supplierOperatorAddress string)

RemoveSupplier removes a supplier from the store

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetSupplier

func (k Keeper) SetSupplier(ctx context.Context, supplier sharedtypes.Supplier)

SetSupplier set a specific supplier in the store from its index

Jump to

Keyboard shortcuts

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