Documentation ¶
Index ¶
- func AssertAccountVestings(t *testing.T, expected types.AccountVestings, actual types.AccountVestings)
- func AssertAccountVestingsArrays(t *testing.T, expected []*types.AccountVestings, ...)
- func CreateDurationFromNumOfHours(numOfHours int64) time.Duration
- func CreateTimeFromNumOfHours(numOfHours int64) time.Time
- func Generate10BasedVestingTypes(numberOfVestingTypes int, amountOf10BasedVestingTypes int, startId int) []*types.VestingType
- func GenerateAccountVestingsWith10BasedVestings(numberOfAccounts int, numberOfVestingsPerAccount int, accountStartId int, ...) []*types.AccountVestings
- func GenerateAccountVestingsWithRandomVestings(numberOfAccounts int, numberOfVestingsPerAccount int, accountStartId int, ...) []*types.AccountVestings
- func GenerateOneAccountVestingsWithAddressWith10BasedVestings(numberOfVestingsPerAccount int, accountId int, vestingStartId int) types.AccountVestings
- func GenerateOneAccountVestingsWithAddressWithRandomVestings(numberOfVestingsPerAccount int, accountId int, vestingStartId int) types.AccountVestings
- func GenerateVestingTypes(numberOfVestingTypes int, startId int) []*types.VestingType
- func GetExpectedWithdrawable(unlockingStart time.Time, vestingEnd time.Time, current time.Time, ...) sdk.Int
- func GetExpectedWithdrawableForVesting(vesting types.VestingPool, current time.Time) sdk.Int
- func ToAccountVestingsPointersArray(src []types.AccountVestings) []*types.AccountVestings
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 Generate10BasedVestingTypes ¶
func Generate10BasedVestingTypes(numberOfVestingTypes int, amountOf10BasedVestingTypes int, startId int) []*types.VestingType
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 ToAccountVestingsPointersArray ¶
func ToAccountVestingsPointersArray(src []types.AccountVestings) []*types.AccountVestings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.