cfevesting

package
v1.0.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAccountVestings

func AssertAccountVestings(t *testing.T, expected types.AccountVestings, actual types.AccountVestings)

func AssertAccountVestingsArrays

func AssertAccountVestingsArrays(t *testing.T, expected []*types.AccountVestings, actual []*types.AccountVestings)

func CreateDurationFromNumOfHours

func CreateDurationFromNumOfHours(numOfHours int64) time.Duration

func CreateTimeFromNumOfHours

func CreateTimeFromNumOfHours(numOfHours int64) time.Time

func Generate10BasedVestingTypes

func Generate10BasedVestingTypes(numberOfVestingTypes int, amountOf10BasedVestingTypes int, startId int) []*types.VestingType

func GenerateAccountVestingsWith10BasedVestings

func GenerateAccountVestingsWith10BasedVestings(numberOfAccounts int, numberOfVestingsPerAccount int,
	accountStartId int, vestingStartId int) []*types.AccountVestings

func GenerateAccountVestingsWithRandomVestings

func GenerateAccountVestingsWithRandomVestings(numberOfAccounts int, numberOfVestingsPerAccount int,
	accountStartId int, vestingStartId int) []*types.AccountVestings

func GenerateOneAccountVestingsWithAddressWith10BasedVestings

func GenerateOneAccountVestingsWithAddressWith10BasedVestings(numberOfVestingsPerAccount int,
	accountId int, vestingStartId int) types.AccountVestings

func GenerateOneAccountVestingsWithAddressWithRandomVestings

func GenerateOneAccountVestingsWithAddressWithRandomVestings(numberOfVestingsPerAccount int,
	accountId int, vestingStartId int) types.AccountVestings

func GenerateVestingTypes

func GenerateVestingTypes(numberOfVestingTypes int, startId int) []*types.VestingType

func GetExpectedWithdrawable

func GetExpectedWithdrawable(unlockingStart time.Time, vestingEnd time.Time, current time.Time, amount sdk.Int) sdk.Int

func GetExpectedWithdrawableForVesting

func GetExpectedWithdrawableForVesting(vesting types.VestingPool, current time.Time) sdk.Int

func ToAccountVestingsPointersArray

func ToAccountVestingsPointersArray(src []types.AccountVestings) []*types.AccountVestings

Types

This section is empty.

Jump to

Keyboard shortcuts

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