keeper

package
v12.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServiceServer

func NewMsgServiceServer(k Keeper) types.MsgServiceServer

NewMsgServiceServer creates a new instance of `types.MsgServiceServer` using the provided Keeper.

func NewQueryServiceServer

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 storetypes.StoreKey, params paramstypes.Subspace) Keeper

func (*Keeper) DeleteActiveProvider

func (k *Keeper) DeleteActiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress)

func (*Keeper) DeleteInactiveProvider

func (k *Keeper) DeleteInactiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress)

func (*Keeper) Deposit

func (k *Keeper) Deposit(ctx sdk.Context) (v sdk.Coin)

func (*Keeper) FundCommunityPool

func (k *Keeper) FundCommunityPool(ctx sdk.Context, fromAddr sdk.AccAddress, coin sdk.Coin) error

func (*Keeper) GetActiveProvider

func (k *Keeper) GetActiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress) (v types.Provider, found bool)

func (*Keeper) GetInactiveProvider

func (k *Keeper) GetInactiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress) (v types.Provider, found bool)

func (*Keeper) GetParams

func (k *Keeper) GetParams(ctx sdk.Context) types.Params

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

func (k *Keeper) GetProviders(ctx sdk.Context) (items types.Providers)

GetProviders is for getting the providers from the KVStore.

func (*Keeper) HasActiveProvider

func (k *Keeper) HasActiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool

func (*Keeper) HasInactiveProvider

func (k *Keeper) HasInactiveProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool

func (*Keeper) HasProvider

func (k *Keeper) HasProvider(ctx sdk.Context, addr hubtypes.ProvAddress) bool

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) Logger

func (k *Keeper) Logger(ctx sdk.Context) log.Logger

func (*Keeper) SetActiveProvider

func (k *Keeper) SetActiveProvider(ctx sdk.Context, v types.Provider)

func (*Keeper) SetInactiveProvider

func (k *Keeper) SetInactiveProvider(ctx sdk.Context, v types.Provider)

func (*Keeper) SetParams

func (k *Keeper) SetParams(ctx sdk.Context, params types.Params)

func (*Keeper) SetProvider

func (k *Keeper) SetProvider(ctx sdk.Context, provider types.Provider)

SetProvider is for inserting a provider into the KVStore.

func (*Keeper) StakingShare

func (k *Keeper) StakingShare(ctx sdk.Context) (v sdkmath.LegacyDec)

func (*Keeper) Store

func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore

func (*Keeper) WithDistributionKeeper

func (k *Keeper) WithDistributionKeeper(keeper expected.DistributionKeeper)

Jump to

Keyboard shortcuts

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