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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVestingPlan

func GetVestingPlan(account types.TeamVestingAccount) *types.VestingPlan

GetVestingPlan returns all computed static values for a given account

func GetVestingStatus

func GetVestingStatus(account types.TeamVestingAccount, time uint64) *types.VestingStatus

GetVestingStatus returns all computed values which are dependent on the time for the given account

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storeTypes.StoreKey,
	accountKeeper authKeeper.AccountKeeper,
	bankKeeper bankKeeper.Keeper,
	mintKeeper mintKeeper.Keeper,
	upgradeKeeper upgradeKeeper.Keeper,
) *Keeper

func (Keeper) AppendTeamVestingAccount

func (k Keeper) AppendTeamVestingAccount(
	ctx sdk.Context,
	tva types.TeamVestingAccount,
) uint64

AppendTeamVestingAccount appends a team vesting account in the store with a new id and update the count

func (Keeper) GetAuthority

func (k Keeper) GetAuthority(ctx sdk.Context) (authority types.Authority)

GetAuthority get the authority

func (Keeper) GetIssuedTeamAllocation

func (k Keeper) GetIssuedTeamAllocation(ctx sdk.Context) (used uint64)

GetIssuedTeamAllocation gets the total amount in $KYVE which is issued to all team vesting accounts. It is equal to the sum of all max vesting amounts, because normally the usage of all vesting accounts is the sum of all allocations minus the clawback which getVestingMaxAmount already takes into account

func (Keeper) GetTeamBlockProvision added in v1.3.0

func (k Keeper) GetTeamBlockProvision(ctx sdk.Context) int64

GetTeamBlockProvision gets the total reward amount for the team module for the current block

func (Keeper) GetTeamInfo

func (k Keeper) GetTeamInfo(ctx sdk.Context) (info *types.QueryTeamInfoResponse)

func (Keeper) GetTeamVestingAccount

func (k Keeper) GetTeamVestingAccount(ctx sdk.Context, id uint64) (tva types.TeamVestingAccount, found bool)

GetTeamVestingAccount returns a team vesting account given its address.

func (Keeper) GetTeamVestingAccountCount

func (k Keeper) GetTeamVestingAccountCount(ctx sdk.Context) uint64

GetTeamVestingAccountCount get the total number of team vesting accounts

func (Keeper) GetTeamVestingAccounts

func (k Keeper) GetTeamVestingAccounts(ctx sdk.Context) (teamVestingAccounts []types.TeamVestingAccount)

GetTeamVestingAccounts returns all team vesting accounts

func (Keeper) Logger

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

func (Keeper) SetAuthority

func (k Keeper) SetAuthority(ctx sdk.Context, authority types.Authority)

SetAuthority set the authority

func (Keeper) SetTeamVestingAccount

func (k Keeper) SetTeamVestingAccount(ctx sdk.Context, tva types.TeamVestingAccount)

SetTeamVestingAccount sets a specific team vesting account in the store.

func (Keeper) SetTeamVestingAccountCount

func (k Keeper) SetTeamVestingAccountCount(ctx sdk.Context, count uint64)

SetTeamVestingAccountCount set the total number of team vesting accounts

func (Keeper) StoreKey

func (k Keeper) StoreKey() storeTypes.StoreKey

Jump to

Keyboard shortcuts

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