keeper

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServiceServer added in v0.6.0

func NewMsgServiceServer(keeper Keeper) types.MsgServiceServer

func NewQueryServiceServer added in v0.6.0

func NewQueryServiceServer(keeper 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) Deposit added in v0.4.0

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

func (*Keeper) FundCommunityPool added in v0.4.0

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

func (*Keeper) GetParams added in v0.4.0

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

func (*Keeper) GetProvider

func (k *Keeper) GetProvider(ctx sdk.Context, address 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, skip, limit int64) (items types.Providers)

GetProviders is for getting the providers from the KVStore.

func (*Keeper) HasProvider

func (k *Keeper) HasProvider(ctx sdk.Context, address 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) SetParams added in v0.4.0

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

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

func (*Keeper) WithDistributionKeeper added in v0.4.0

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

type Migrator added in v0.9.0

type Migrator struct {
	// contains filtered or unexported fields
}

func NewMigrator added in v0.9.0

func NewMigrator(k Keeper) Migrator

func (Migrator) Migrate1to2 added in v0.9.0

func (m Migrator) Migrate1to2(ctx sdk.Context) error

Jump to

Keyboard shortcuts

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