keeper

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

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
}

Keeper of this module maintains collections of vesting.

func NewKeeper

NewKeeper creates new instances of the vesting Keeper

func (Keeper) ApplyVestingSchedule added in v1.7.2

func (k Keeper) ApplyVestingSchedule(
	ctx sdk.Context,
	funder, funded sdk.AccAddress,
	coins sdk.Coins,
	startTime time.Time,
	lockupPeriods, vestingPeriods sdkvesting.Periods,
	merge bool,
) (vestingAcc *types.ClawbackVestingAccount, newAccountCreated, wasMerged bool, err error)

ApplyVestingSchedule takes funder and funded addresses

func (Keeper) Balances

Balances returns the locked, unvested and vested amount of tokens for a clawback vesting account

func (Keeper) Clawback

func (k Keeper) Clawback(
	goCtx context.Context,
	msg *types.MsgClawback,
) (*types.MsgClawbackResponse, error)

Clawback removes the unvested amount from a ClawbackVestingAccount. The destination defaults to the funder address, but can be overridden.

func (Keeper) ConvertIntoVestingAccount

ConvertIntoVestingAccount converts a default chain account to the ClawbackVestingAccount after its lock and vesting periods have started.

func (Keeper) ConvertVestingAccount

ConvertVestingAccount converts a ClawbackVestingAccount to the default chain account after its lock and vesting periods have concluded.

func (Keeper) CreateClawbackVestingAccount

CreateClawbackVestingAccount creates a new ClawbackVestingAccount, or merges a grant into an existing one.

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) TotalLocked added in v1.6.4

func (Keeper) UpdateVestingFunder

func (k Keeper) UpdateVestingFunder(
	goCtx context.Context,
	msg *types.MsgUpdateVestingFunder,
) (*types.MsgUpdateVestingFunderResponse, error)

UpdateVestingFunder updates the funder account of a ClawbackVestingAccount.

Jump to

Keyboard shortcuts

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