keeper

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 32 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,

	accountKeeper authkeeper.AccountKeeper,
	bankKeeper bankkeeper.Keeper,
	distrkeeper distrkeeper.Keeper,
	poolKeeper poolkeeper.Keeper,
	stakerKeeper stakerskeeper.Keeper,
	delegationKeeper delegationkeeper.Keeper,
	bundleKeeper bundlekeeper.Keeper,
	globalKeeper globalKeeper.Keeper,
	govKeeper govkeeper.Keeper,
	teamKeeper teamKeeper.Keeper,
	fundersKeeper fundersKeeper.Keeper,
) *Keeper

func (Keeper) AccountAssets

AccountAssets returns an overview of the balances of the given user regarding the protocol nodes This includes the current balance, funding, staking, and delegation.

func (Keeper) Delegator

The Delegator query returns the outstanding rewards and the total delegation amount of a delegator for its staker. If the delegator is not a staker both amounts will be zero. The request does not error.

func (Keeper) FinalizedBundleQuery added in v1.2.3

func (k Keeper) FinalizedBundleQuery(c context.Context, req *types.QueryFinalizedBundleRequest) (*types.FinalizedBundle, error)

func (Keeper) FinalizedBundlesQuery added in v1.2.3

func (Keeper) Funder added in v1.4.0

func (Keeper) Funders added in v1.4.0

func (Keeper) FundingsByFunder added in v1.4.0

func (Keeper) FundingsByPool added in v1.4.0

func (Keeper) GetFullStaker

func (k Keeper) GetFullStaker(ctx sdk.Context, stakerAddress string) *types.FullStaker

func (Keeper) GetPoolStatus

func (k Keeper) GetPoolStatus(ctx sdk.Context, pool *pooltypes.Pool) pooltypes.PoolStatus

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) Pool

func (Keeper) Pools

func (Keeper) Staker

Jump to

Keyboard shortcuts

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