Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AllSuppliers(ctx context.Context, req *types.QueryAllSuppliersRequest) (*types.QueryAllSuppliersResponse, error)
- func (k Keeper) EndBlockerUnbondSuppliers(ctx context.Context) error
- func (k Keeper) GetAllSuppliers(ctx context.Context) (suppliers []sharedtypes.Supplier)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k Keeper) GetSupplier(ctx context.Context, supplierOperatorAddr string) (supplier sharedtypes.Supplier, found bool)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) Params(ctx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveSupplier(ctx context.Context, supplierOperatorAddress string)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- func (k Keeper) SetSupplier(ctx context.Context, supplier sharedtypes.Supplier)
- func (k Keeper) Supplier(ctx context.Context, req *types.QueryGetSupplierRequest) (*types.QueryGetSupplierResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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) AllSuppliers ¶
func (k Keeper) AllSuppliers( ctx context.Context, req *types.QueryAllSuppliersRequest, ) (*types.QueryAllSuppliersResponse, error)
func (Keeper) EndBlockerUnbondSuppliers ¶ added in v0.0.5
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 ¶
GetAuthority returns the module's authority.
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) Params ¶
func (k Keeper) Params( ctx context.Context, req *types.QueryParamsRequest, ) (*types.QueryParamsResponse, error)
func (Keeper) RemoveSupplier ¶
RemoveSupplier removes a supplier from the store
func (Keeper) SetSupplier ¶
func (k Keeper) SetSupplier(ctx context.Context, supplier sharedtypes.Supplier)
SetSupplier set a specific supplier in the store from its index
func (Keeper) Supplier ¶
func (k Keeper) Supplier( ctx context.Context, req *types.QueryGetSupplierRequest, ) (*types.QueryGetSupplierResponse, error)
Click to show internal directories.
Click to hide internal directories.