keeper

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 18 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,
) *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) 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