keeper

package
v1.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IKeeper

type IKeeper interface {
	Codec() codec.BinaryCodec
	StoreKey() storetypes.StoreKey
	SetParams(ctx sdk.Context, params types.Params) error
	GetParams(ctx sdk.Context) (params types.Params)
	MinCommissionRate(ctx sdk.Context) sdk.Dec

	NewQuerier() Querier
	GetAuthority() string
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, skey storetypes.StoreKey, authority string) IKeeper

NewKeeper creates and returns an instance for akash staking keeper

type Keeper

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

Keeper of the provider store

func (Keeper) Codec

func (k Keeper) Codec() codec.BinaryCodec

Codec returns keeper codec

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the x/mint module's authority.

func (Keeper) GetParams

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

GetParams returns the current x/take module parameters.

func (Keeper) MinCommissionRate

func (k Keeper) MinCommissionRate(ctx sdk.Context) sdk.Dec

func (Keeper) NewQuerier

func (k Keeper) NewQuerier() Querier

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error

SetParams sets the x/take module parameters.

func (Keeper) StoreKey

func (k Keeper) StoreKey() storetypes.StoreKey

type Querier

type Querier struct {
	Keeper
}

Querier is used as Keeper will have duplicate methods if used directly, and gRPC names take precedence over keeper

func (Querier) Params

Jump to

Keyboard shortcuts

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