Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) CheckDepositAuthorization(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msg sdk.Msg) error
- func (k Keeper) DepositDenomForSP(ctx sdk.Context) (res string)
- func (k Keeper) GetAllStorageProviders(ctx sdk.Context) (sps []types.StorageProvider)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetStorageProvider(ctx sdk.Context, addr sdk.AccAddress) (sp types.StorageProvider, found bool)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxStorageProviders(ctx sdk.Context) (res uint32)
- func (k Keeper) MinDeposit(ctx sdk.Context) (res math.Int)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetStorageProvider(ctx sdk.Context, sp types.StorageProvider)
- func (k Keeper) Slash(ctx sdk.Context, spAcc sdk.AccAddress, rewardInfos []types.RewardInfo) error
- func (k Keeper) StorageProviders(goCtx context.Context, req *types.QueryStorageProvidersRequest) (*types.QueryStorageProvidersResponse, 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, key storetypes.StoreKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, ak types.AccountKeeper, bk types.BankKeeper, azk types.AuthzKeeper, ) *Keeper
func (Keeper) CheckDepositAuthorization ¶
func (k Keeper) CheckDepositAuthorization(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.AccAddress, msg sdk.Msg) error
func (Keeper) GetAllStorageProviders ¶
func (k Keeper) GetAllStorageProviders(ctx sdk.Context) (sps []types.StorageProvider)
func (Keeper) GetStorageProvider ¶
func (k Keeper) GetStorageProvider(ctx sdk.Context, addr sdk.AccAddress) (sp types.StorageProvider, found bool)
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
func (Keeper) MaxStorageProviders ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetStorageProvider ¶
func (k Keeper) SetStorageProvider(ctx sdk.Context, sp types.StorageProvider)
func (Keeper) Slash ¶
func (k Keeper) Slash(ctx sdk.Context, spAcc sdk.AccAddress, rewardInfos []types.RewardInfo) error
func (Keeper) StorageProviders ¶
func (k Keeper) StorageProviders(goCtx context.Context, req *types.QueryStorageProvidersRequest) (*types.QueryStorageProvidersResponse, error)
Click to show internal directories.
Click to hide internal directories.