Documentation ¶
Index ¶
- func NewMsgServiceServer(k Keeper) types.MsgServiceServer
- func NewQueryServiceServer(k Keeper) types.QueryServiceServer
- type Keeper
- func (k *Keeper) DeleteActiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress)
- func (k *Keeper) DeleteInactiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress)
- func (k *Keeper) Deposit(ctx sdk.Context) (v sdk.Coin)
- func (k *Keeper) FundCommunityPool(ctx sdk.Context, fromAddr sdk.AccAddress, coin sdk.Coin) error
- func (k *Keeper) GetActiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress) (v types.Provider, found bool)
- func (k *Keeper) GetInactiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress) (v types.Provider, found bool)
- func (k *Keeper) GetParams(ctx sdk.Context) types.Params
- func (k *Keeper) GetProvider(ctx sdk.Context, addr hubtypes.ProvAddress) (provider types.Provider, found bool)
- func (k *Keeper) GetProviders(ctx sdk.Context) (items types.Providers)
- func (k *Keeper) HasActiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool
- func (k *Keeper) HasInactiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool
- func (k *Keeper) HasProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool
- func (k *Keeper) IterateProviders(ctx sdk.Context, fn func(index int, item types.Provider) (stop bool))
- func (k *Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) SetActiveProvider(ctx sdk.Context, v types.Provider)
- func (k *Keeper) SetInactiveProvider(ctx sdk.Context, v types.Provider)
- func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k *Keeper) SetProvider(ctx sdk.Context, provider types.Provider)
- func (k *Keeper) StakingShare(ctx sdk.Context) (v sdk.Dec)
- func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore
- func (k *Keeper) WithDistributionKeeper(keeper expected.DistributionKeeper)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServiceServer ¶ added in v0.6.0
func NewMsgServiceServer(k Keeper) types.MsgServiceServer
NewMsgServiceServer creates a new instance of `types.MsgServiceServer` using the provided Keeper.
func NewQueryServiceServer ¶ added in v0.6.0
func NewQueryServiceServer(k Keeper) types.QueryServiceServer
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, key sdk.StoreKey, params paramstypes.Subspace) Keeper
func (*Keeper) DeleteActiveProvider ¶ added in v0.11.0
func (k *Keeper) DeleteActiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress)
func (*Keeper) DeleteInactiveProvider ¶ added in v0.11.0
func (k *Keeper) DeleteInactiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress)
func (*Keeper) FundCommunityPool ¶ added in v0.4.0
func (*Keeper) GetActiveProvider ¶ added in v0.11.0
func (*Keeper) GetInactiveProvider ¶ added in v0.11.0
func (*Keeper) GetProvider ¶
func (k *Keeper) GetProvider(ctx sdk.Context, addr hubtypes.ProvAddress) (provider types.Provider, found bool)
GetProvider is for getting a provider with an address from the KVStore.
func (*Keeper) GetProviders ¶
GetProviders is for getting the providers from the KVStore.
func (*Keeper) HasActiveProvider ¶ added in v0.11.0
func (*Keeper) HasInactiveProvider ¶ added in v0.11.0
func (*Keeper) HasProvider ¶
HasProvider is for checking whether a provider with an address exists or not in the KVStore.
func (*Keeper) IterateProviders ¶
func (k *Keeper) IterateProviders(ctx sdk.Context, fn func(index int, item types.Provider) (stop bool))
IterateProviders is for iterating over the providers to perform an action.
func (*Keeper) SetActiveProvider ¶ added in v0.11.0
func (*Keeper) SetInactiveProvider ¶ added in v0.11.0
func (*Keeper) SetProvider ¶
SetProvider is for inserting a provider into the KVStore.
func (*Keeper) StakingShare ¶ added in v0.10.0
func (*Keeper) WithDistributionKeeper ¶ added in v0.4.0
func (k *Keeper) WithDistributionKeeper(keeper expected.DistributionKeeper)
Click to show internal directories.
Click to hide internal directories.