keeper

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the shield MsgServer interface for the provided Keeper.

Types

type Keeper

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

Keeper implements the shield keeper.

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeService store.KVStoreService, ak types.AccountKeeper, bk types.BankKeeper,
	paramSpace paramtypes.Subspace) Keeper

NewKeeper creates a shield keeper.

func (Keeper) GetAllProviders

func (k Keeper) GetAllProviders(ctx sdk.Context) (providers []types.Provider)

GetAllProviders retrieves all providers.

func (Keeper) GetBlockServiceFees

func (k Keeper) GetBlockServiceFees(ctx sdk.Context) (sdk.DecCoins, error)

func (Keeper) GetProvider

func (k Keeper) GetProvider(ctx sdk.Context, delegator sdk.AccAddress) (dt types.Provider, found bool)

GetProvider returns data of a provider given its address.

func (Keeper) GetProvidersIteratorPaginated

func (k Keeper) GetProvidersIteratorPaginated(ctx sdk.Context, page, limit uint) storetypes.Iterator

GetProvidersIteratorPaginated returns an iterator to go over providers based on pagination parameters.

func (Keeper) GetProvidersPaginated

func (k Keeper) GetProvidersPaginated(ctx sdk.Context, page, limit uint) (providers []types.Provider)

GetProvidersPaginated performs paginated query of providers.

func (Keeper) GetRemainingServiceFees

func (k Keeper) GetRemainingServiceFees(ctx sdk.Context) (sdk.DecCoins, error)

func (Keeper) IterateProviders

func (k Keeper) IterateProviders(ctx sdk.Context, callback func(provider types.Provider) (stop bool))

IterateProviders iterates through all providers.

func (Keeper) IterateProvidersPaginated

func (k Keeper) IterateProvidersPaginated(ctx sdk.Context, page, limit uint, cb func(vote types.Provider) (stop bool))

IterateProvidersPaginated iterates over providers based on pagination parameters and performs a callback function.

func (Keeper) PayoutNativeRewards

func (k Keeper) PayoutNativeRewards(ctx sdk.Context, addr sdk.AccAddress) (sdk.Coins, error)

PayoutNativeRewards pays out pending CTK rewards.

func (Keeper) Provider

Provider queries a provider given the address.

func (Keeper) Providers

Providers queries all providers.

func (Keeper) SetProvider

func (k Keeper) SetProvider(ctx sdk.Context, delAddr sdk.AccAddress, provider types.Provider) error

SetProvider sets data of a provider in the kv-store.

func (Keeper) SetRemainingServiceFees

func (k Keeper) SetRemainingServiceFees(ctx sdk.Context, fees sdk.DecCoins) error

func (Keeper) ShieldStatus

ShieldStatus queries the global status of the shield module.

type Migrator

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

Migrator is a struct for handling in-place store migrations.

func NewMigrator

func NewMigrator(keeper Keeper, queryServer grpc.Server) Migrator

NewMigrator returns a new Migrator.

func (Migrator) Migrate4to5 added in v2.11.0

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

Jump to

Keyboard shortcuts

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