Documentation ¶
Index ¶
- func GetVestingPlan(account types.TeamVestingAccount) *types.VestingPlan
- func GetVestingStatus(account types.TeamVestingAccount, time uint64) *types.VestingStatus
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendTeamVestingAccount(ctx sdk.Context, tva types.TeamVestingAccount) uint64
- func (k Keeper) GetAuthority(ctx sdk.Context) (authority types.Authority)
- func (k Keeper) GetIssuedTeamAllocation(ctx sdk.Context) (used uint64)
- func (k Keeper) GetTeamInfo(ctx sdk.Context) (info *types.QueryTeamInfoResponse)
- func (k Keeper) GetTeamVestingAccount(ctx sdk.Context, id uint64) (tva types.TeamVestingAccount, found bool)
- func (k Keeper) GetTeamVestingAccountCount(ctx sdk.Context) uint64
- func (k Keeper) GetTeamVestingAccounts(ctx sdk.Context) (teamVestingAccounts []types.TeamVestingAccount)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetAuthority(ctx sdk.Context, authority types.Authority)
- func (k Keeper) SetTeamVestingAccount(ctx sdk.Context, tva types.TeamVestingAccount)
- func (k Keeper) SetTeamVestingAccountCount(ctx sdk.Context, count uint64)
- func (k Keeper) StoreKey() storeTypes.StoreKey
- func (k Keeper) TeamInfo(c context.Context, req *types.QueryTeamInfoRequest) (*types.QueryTeamInfoResponse, error)
- func (k Keeper) TeamVestingAccount(c context.Context, req *types.QueryTeamVestingAccountRequest) (*types.QueryTeamVestingAccountResponse, error)
- func (k Keeper) TeamVestingAccounts(c context.Context, req *types.QueryTeamVestingAccountsRequest) (*types.QueryTeamVestingAccountsResponse, error)
- func (k Keeper) TeamVestingStatus(c context.Context, req *types.QueryTeamVestingStatusRequest) (*types.QueryTeamVestingStatusResponse, error)
- func (k Keeper) TeamVestingStatusByTime(c context.Context, req *types.QueryTeamVestingStatusByTimeRequest) (*types.QueryTeamVestingStatusByTimeResponse, error)
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 ¶
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 ¶
AppendTeamVestingAccount appends a team vesting account in the store with a new id and update the count
func (Keeper) GetAuthority ¶
GetAuthority get the authority
func (Keeper) GetIssuedTeamAllocation ¶
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 ¶
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) SetAuthority ¶
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 ¶
SetTeamVestingAccountCount set the total number of team vesting accounts
func (Keeper) StoreKey ¶
func (k Keeper) StoreKey() storeTypes.StoreKey
func (Keeper) TeamInfo ¶
func (k Keeper) TeamInfo(c context.Context, req *types.QueryTeamInfoRequest) (*types.QueryTeamInfoResponse, error)
func (Keeper) TeamVestingAccount ¶
func (k Keeper) TeamVestingAccount(c context.Context, req *types.QueryTeamVestingAccountRequest) (*types.QueryTeamVestingAccountResponse, error)
func (Keeper) TeamVestingAccounts ¶
func (k Keeper) TeamVestingAccounts(c context.Context, req *types.QueryTeamVestingAccountsRequest) (*types.QueryTeamVestingAccountsResponse, error)
func (Keeper) TeamVestingStatus ¶
func (k Keeper) TeamVestingStatus(c context.Context, req *types.QueryTeamVestingStatusRequest) (*types.QueryTeamVestingStatusResponse, error)
func (Keeper) TeamVestingStatusByTime ¶
func (k Keeper) TeamVestingStatusByTime(c context.Context, req *types.QueryTeamVestingStatusByTimeRequest) (*types.QueryTeamVestingStatusByTimeResponse, error)
Source Files ¶
- getters_team_vesting_account.go
- grpc_query.go
- grpc_query_vesting_status_by_time.go
- grpc_team_info.go
- grpc_team_vesting_account.go
- grpc_team_vesting_status.go
- keeper.go
- logic_team.go
- msg_server.go
- msg_server_claim_account_rewards.go
- msg_server_claim_authority_rewards.go
- msg_server_claim_unlocked.go
- msg_server_clawback.go
- msg_server_create_team_vesting_account.go