cfevesting

package
v2.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAccountVestingPools

func AssertAccountVestingPools(t require.TestingT, expected types.AccountVestingPools, actual types.AccountVestingPools)

func AssertAccountVestingPoolsArrays

func AssertAccountVestingPoolsArrays(t require.TestingT, expected []*types.AccountVestingPools, actual []*types.AccountVestingPools)

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 GenerateAccountVestingPoolsWith10BasedVestingPools

func GenerateAccountVestingPoolsWith10BasedVestingPools(numberOfAccounts int, numberOfVestingPoolsPerAccount int,
	accountStartId int, vestingStartId int) []*types.AccountVestingPools

func GenerateAccountVestingPoolsWithRandomVestingPools

func GenerateAccountVestingPoolsWithRandomVestingPools(numberOfAccounts int, numberOfVestingPoolsPerAccount int,
	accountStartId int, vestingStartId int) []*types.AccountVestingPools

func GenerateGenesisVestingTypes

func GenerateGenesisVestingTypes(numberOfVestingTypes int, startId int) []types.GenesisVestingType

func GenerateGenesisVestingTypesForAccounVestingPools

func GenerateGenesisVestingTypesForAccounVestingPools(accountVestingPools []*types.AccountVestingPools) []types.GenesisVestingType

func GenerateOneAccountVestingPoolsWithAddressWith10BasedVestingPools

func GenerateOneAccountVestingPoolsWithAddressWith10BasedVestingPools(numberOfVestingPoolsPerAccount int,
	accountId int, vestingStartId int) types.AccountVestingPools

func GenerateOneAccountVestingPoolsWithAddressWithRandomVestingPools

func GenerateOneAccountVestingPoolsWithAddressWithRandomVestingPools(numberOfVestingPoolsPerAccount int,
	accountId int, vestingStartId int) types.AccountVestingPools

func GenerateVestingTypes

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

func GenerateVestingTypesForAccountVestingPools

func GenerateVestingTypesForAccountVestingPools(accountVestingPools []types.AccountVestingPools) []*types.VestingType

func GetExpectedWithdrawable

func GetExpectedWithdrawable(lockEnd time.Time, current time.Time, amount math.Int) math.Int

func GetExpectedWithdrawableForVesting

func GetExpectedWithdrawableForVesting(vestingPool types.VestingPool, current time.Time) math.Int

func GetVestingPoolByName

func GetVestingPoolByName(vps []*types.VestingPool, name string) (vp *types.VestingPool, found bool)

func ToAccountVestingPoolsPointersArray

func ToAccountVestingPoolsPointersArray(src []types.AccountVestingPools) []*types.AccountVestingPools

Types

type C4eVestingKeeperUtils

type C4eVestingKeeperUtils struct {
	// contains filtered or unexported fields
}

func NewC4eVestingKeeperUtils

func NewC4eVestingKeeperUtils(t require.TestingT, helperCfevestingKeeper *cfevestingmodulekeeper.Keeper) C4eVestingKeeperUtils

func (*C4eVestingKeeperUtils) CheckModuleAccountInvariant

func (h *C4eVestingKeeperUtils) CheckModuleAccountInvariant(ctx sdk.Context, failed bool, message string)

func (*C4eVestingKeeperUtils) CheckNonNegativeVestingPoolAmountsInvariant

func (h *C4eVestingKeeperUtils) CheckNonNegativeVestingPoolAmountsInvariant(ctx sdk.Context, failed bool, message string)

func (*C4eVestingKeeperUtils) CheckVestingPoolConsistentDataInvariant

func (h *C4eVestingKeeperUtils) CheckVestingPoolConsistentDataInvariant(ctx sdk.Context, failed bool, message string)

func (*C4eVestingKeeperUtils) GetC4eVestingKeeper

func (h *C4eVestingKeeperUtils) GetC4eVestingKeeper() *cfevestingmodulekeeper.Keeper

func (*C4eVestingKeeperUtils) SetupAccountVestingPools

func (h *C4eVestingKeeperUtils) SetupAccountVestingPools(ctx sdk.Context, address string, numberOfVestingPools int, vestingAmount math.Int, withdrawnAmount math.Int) cfevestingtypes.AccountVestingPools

func (*C4eVestingKeeperUtils) SetupAccountVestingPoolsWithModification

func (h *C4eVestingKeeperUtils) SetupAccountVestingPoolsWithModification(ctx sdk.Context, modifyVesting func(*cfevestingtypes.VestingPool), address string, numberOfVestingPools int, vestingAmount math.Int, withdrawnAmount math.Int) cfevestingtypes.AccountVestingPools

type C4eVestingUtils

type C4eVestingUtils struct {
	C4eVestingKeeperUtils
	// contains filtered or unexported fields
}

func NewC4eVestingUtils

func NewC4eVestingUtils(t require.TestingT, helperCfevestingKeeper *cfevestingmodulekeeper.Keeper,
	helperAccountKeeper *authkeeper.AccountKeeper,
	helperBankKeeper *bankkeeper.Keeper,
	helperStakingKeeper *stakingkeeper.Keeper, bankUtils *testcosmos.BankUtils,
	authUtils *testcosmos.AuthUtils) C4eVestingUtils

func (*C4eVestingUtils) AddReservationToVestingPool

func (h *C4eVestingUtils) AddReservationToVestingPool(ctx sdk.Context, address sdk.AccAddress, vestingPoolName string, reservationId uint64, amount math.Int)

func (*C4eVestingUtils) CompareStoredAcountVestingPools

func (h *C4eVestingUtils) CompareStoredAcountVestingPools(ctx sdk.Context, address sdk.AccAddress, accVestingPools cfevestingtypes.AccountVestingPools)

func (*C4eVestingUtils) ExportGenesis

func (h *C4eVestingUtils) ExportGenesis(ctx sdk.Context, expected cfevestingtypes.GenesisState)

func (*C4eVestingUtils) ExportGenesisAndValidate

func (m *C4eVestingUtils) ExportGenesisAndValidate(ctx sdk.Context)

func (*C4eVestingUtils) GetVestingDenom

func (h *C4eVestingUtils) GetVestingDenom(ctx sdk.Context) string

func (*C4eVestingUtils) InitGenesis

func (h *C4eVestingUtils) InitGenesis(ctx sdk.Context, genState cfevestingtypes.GenesisState)

func (*C4eVestingUtils) InitGenesisError

func (h *C4eVestingUtils) InitGenesisError(ctx sdk.Context, genState cfevestingtypes.GenesisState, errorMessage string)

func (*C4eVestingUtils) MessageCreateGenesisVestingPool

func (h *C4eVestingUtils) MessageCreateGenesisVestingPool(ctx sdk.Context, address sdk.AccAddress, accountVestingPoolsExistsBefore bool, accountVestingPoolsExistsAfter bool,
	vestingPoolName string, lockupDuration time.Duration, vestingType cfevestingtypes.VestingType, amountToVest math.Int, accAmountBefore math.Int, moduleAmountBefore math.Int,
	accAmountAfter math.Int, moduleAmountAfter math.Int)

func (*C4eVestingUtils) MessageCreateVestingAccount

func (h *C4eVestingUtils) MessageCreateVestingAccount(
	ctx sdk.Context,
	fromAddress sdk.AccAddress,
	toAddress sdk.AccAddress,
	coins sdk.Coins,
	startTime time.Time,
	endTime time.Time,
	amountBefore math.Int,
)

func (*C4eVestingUtils) MessageCreateVestingAccountError

func (h *C4eVestingUtils) MessageCreateVestingAccountError(
	ctx sdk.Context,
	fromAddress sdk.AccAddress,
	toAddress sdk.AccAddress,
	amount sdk.Coins,
	startTime time.Time,
	endTime time.Time,
	amountBefore math.Int,
	errorMessage string,
)

func (*C4eVestingUtils) MessageCreateVestingPool

func (h *C4eVestingUtils) MessageCreateVestingPool(ctx sdk.Context, address sdk.AccAddress, accountVestingPoolsExistsBefore bool, accountVestingPoolsExistsAfter bool,
	vestingPoolName string, lockupDuration time.Duration, vestingType cfevestingtypes.VestingType, amountToVest math.Int, accAmountBefore math.Int, moduleAmountBefore math.Int,
	accAmountAfter math.Int, moduleAmountAfter math.Int)

func (*C4eVestingUtils) MessageCreateVestingPoolError

func (h *C4eVestingUtils) MessageCreateVestingPoolError(ctx sdk.Context, address sdk.AccAddress,
	vestingPoolName string, lockupDuration time.Duration, vestingType cfevestingtypes.VestingType, amountToVest math.Int,
	errorMessage string)

func (*C4eVestingUtils) MessageCreateVestingPoolWithGenesisParam

func (h *C4eVestingUtils) MessageCreateVestingPoolWithGenesisParam(ctx sdk.Context, address sdk.AccAddress, accountVestingPoolsExistsBefore bool, accountVestingPoolsExistsAfter bool,
	vestingPoolName string, lockupDuration time.Duration, vestingType cfevestingtypes.VestingType, amountToVest math.Int, accAmountBefore math.Int, moduleAmountBefore math.Int,
	accAmountAfter math.Int, moduleAmountAfter math.Int, isGenesisPool bool)

func (*C4eVestingUtils) MessageSendToVestingAccount

func (h *C4eVestingUtils) MessageSendToVestingAccount(ctx sdk.Context, fromAddress sdk.AccAddress, vestingAccAddress sdk.AccAddress, vestingPoolName string, amount math.Int, restartVesting bool, expectedLocked math.Int)

func (*C4eVestingUtils) MessageSendToVestingAccountError

func (h *C4eVestingUtils) MessageSendToVestingAccountError(ctx sdk.Context, fromAddress sdk.AccAddress, vestingAccAddress sdk.AccAddress, vestingPoolName string, amount math.Int, restartVesting bool, errorMessage string)

func (*C4eVestingUtils) MessageWithdrawAllAvailable

func (h *C4eVestingUtils) MessageWithdrawAllAvailable(ctx sdk.Context, address sdk.AccAddress, accountBalanceBefore math.Int, moduleBalanceBefore math.Int,
	expectedWithdrawn math.Int)

func (*C4eVestingUtils) MessageWithdrawAllAvailableError

func (h *C4eVestingUtils) MessageWithdrawAllAvailableError(ctx sdk.Context, address string, errorMessage string)

func (*C4eVestingUtils) QueryGenesisVestingsSummary

func (h *C4eVestingUtils) QueryGenesisVestingsSummary(wctx context.Context, expectedResponse cfevestingtypes.QueryGenesisVestingsSummaryResponse)

func (*C4eVestingUtils) QueryVestingsSummary

func (h *C4eVestingUtils) QueryVestingsSummary(wctx context.Context, expectedResponse cfevestingtypes.QueryVestingsSummaryResponse)

func (*C4eVestingUtils) RemoveVestingPoolReservation

func (h *C4eVestingUtils) RemoveVestingPoolReservation(ctx sdk.Context, address sdk.AccAddress, vestingPoolName string, reservationId uint64, amount math.Int)

func (*C4eVestingUtils) SendReservedToVestingAccount

func (h *C4eVestingUtils) SendReservedToVestingAccount(ctx sdk.Context, fromAddress sdk.AccAddress, vestingAccAddress sdk.AccAddress,
	vestingPoolName string, amount math.Int, reservationId uint64, free sdk.Dec, lockupPeriod time.Duration, vestingPeriod time.Duration, expectedLocked math.Int)

func (*C4eVestingUtils) SendToPeriodicContinuousVestingAccount

func (h *C4eVestingUtils) SendToPeriodicContinuousVestingAccount(ctx sdk.Context, toAddress sdk.AccAddress,
	amount math.Int, free sdk.Dec, startTime int64, endTime int64)

func (*C4eVestingUtils) SendToPeriodicContinuousVestingAccountError

func (h *C4eVestingUtils) SendToPeriodicContinuousVestingAccountError(ctx sdk.Context, toAddress sdk.AccAddress,
	amount math.Int, free sdk.Dec, startTime int64, endTime int64, errorMessage string)

func (*C4eVestingUtils) SendToVestingAccountError

func (h *C4eVestingUtils) SendToVestingAccountError(ctx sdk.Context, fromAddress sdk.AccAddress, vestingAccAddress sdk.AccAddress, vestingPoolName string,
	amount math.Int, reservationId uint64, free sdk.Dec, lockupPeriod time.Duration, vestingPeriod time.Duration, errorMessage string)

func (*C4eVestingUtils) SetVestingTypes

func (h *C4eVestingUtils) SetVestingTypes(ctx sdk.Context, vestingTypes cfevestingtypes.VestingTypes)

func (*C4eVestingUtils) SetupVestingTypes

func (h *C4eVestingUtils) SetupVestingTypes(ctx sdk.Context, numberOfVestingTypes int, amountOf10BasedVestingTypes int, startId int) cfevestingtypes.VestingTypes

func (*C4eVestingUtils) SetupVestingTypesForAccountsVestingPools

func (h *C4eVestingUtils) SetupVestingTypesForAccountsVestingPools(ctx sdk.Context)

func (*C4eVestingUtils) SetupVestingTypesWithModification

func (h *C4eVestingUtils) SetupVestingTypesWithModification(ctx sdk.Context, modifyVestingType func(*cfevestingtypes.VestingType), numberOfVestingTypes int, amountOf10BasedVestingTypes int, startId int) cfevestingtypes.VestingTypes

func (*C4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoins

func (h *C4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoins(ctx sdk.Context, ownerAddress sdk.AccAddress, amountsToUnlock sdk.Coins, expectedAccountBalances sdk.Coins, expectedLockedBalancesBefore sdk.Coins)

func (*C4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoinsError

func (h *C4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoinsError(ctx sdk.Context, ownerAddress sdk.AccAddress, amountsToUnlock sdk.Coins, expectedAccountBalances sdk.Coins, expectedLockedBalancesBefore sdk.Coins, expectedError string)

func (*C4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoins

func (h *C4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoins(ctx sdk.Context, ownerAddress sdk.AccAddress, amountToUnlock math.Int, expectedAccountBalance math.Int, expectedLockedBalanceBefore math.Int)

func (*C4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoinsError

func (h *C4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoinsError(ctx sdk.Context, ownerAddress sdk.AccAddress, amountToUnlock math.Int, expectedAccountBalance math.Int, expectedLockedBalanceBefore math.Int, expectedError string)

func (*C4eVestingUtils) ValidateInvariants

func (m *C4eVestingUtils) ValidateInvariants(ctx sdk.Context)

func (*C4eVestingUtils) VerifyAccountVestingPools

func (h *C4eVestingUtils) VerifyAccountVestingPools(ctx sdk.Context, address sdk.AccAddress,
	vestingNames []string, durations []time.Duration, vestingTypes []cfevestingtypes.VestingType, vestedAmounts []math.Int, withdrawnAmounts []math.Int, startAndModificationTime ...time.Time)

func (*C4eVestingUtils) VerifyAccountVestingPoolsWithModification

func (h *C4eVestingUtils) VerifyAccountVestingPoolsWithModification(ctx sdk.Context, address sdk.AccAddress,
	amountOfAllAccVestingPools int, vestingNames []string, durations []time.Duration, vestingTypes []cfevestingtypes.VestingType, startsTimes []time.Time, vestedAmounts []math.Int, withdrawnAmounts []math.Int,
	sentAmounts []int64, modificationsTimes []time.Time, modificationsVested []math.Int, modificationsWithdrawn []math.Int)

func (*C4eVestingUtils) VerifyPeriodicContinuousVestingAccount

func (h *C4eVestingUtils) VerifyPeriodicContinuousVestingAccount(ctx sdk.Context, address sdk.AccAddress,
	expectedOriginalVesting sdk.Coins, expectedStartTime int64, expectedEndTime int64, expectedPeriods []cfevestingtypes.ContinuousVestingPeriod)

func (*C4eVestingUtils) VerifyVestingPool

func (h *C4eVestingUtils) VerifyVestingPool(ctx sdk.Context, vp *cfevestingtypes.VestingPool, expectedName string,
	expectedVestingType string, expectedLockStart time.Time, expectedLockEnd time.Time, expectedInitiallyLocked math.Int,
	expectedWithdrawn math.Int, expectedSent math.Int)

type ContextC4eVestingUtils

type ContextC4eVestingUtils struct {
	C4eVestingUtils
	// contains filtered or unexported fields
}

func NewContextC4eVestingUtils

func NewContextC4eVestingUtils(t require.TestingT, testContext testenv.TestContext, helperCfevestingKeeper *cfevestingmodulekeeper.Keeper,
	helperAccountKeeper *authkeeper.AccountKeeper,
	helperBankKeeper *bankkeeper.Keeper,
	helperStakingKeeper *stakingkeeper.Keeper, bankUtils *testcosmos.BankUtils,
	authUtils *testcosmos.AuthUtils) *ContextC4eVestingUtils

func (*ContextC4eVestingUtils) AddReservationToVestingPool

func (h *ContextC4eVestingUtils) AddReservationToVestingPool(address sdk.AccAddress, vestingPoolName string, reservationId uint64, amout math.Int)

func (*ContextC4eVestingUtils) AddTestVestingPool

func (h *ContextC4eVestingUtils) AddTestVestingPool(address sdk.AccAddress, vestingPoolName string, vested math.Int, lockupPeriodInHours int64, vestingPeriodInHours int64)

func (*ContextC4eVestingUtils) AddTestVestingPoolWithMaxFree

func (h *ContextC4eVestingUtils) AddTestVestingPoolWithMaxFree(address sdk.AccAddress, vestingPoolName string, vested math.Int, lockupPeriodInHours int64, vestingPeriodInHours int64)

func (*ContextC4eVestingUtils) CheckModuleAccountInvariant

func (h *ContextC4eVestingUtils) CheckModuleAccountInvariant(failed bool, message string)

func (*ContextC4eVestingUtils) CompareStoredAcountVestingPools

func (h *ContextC4eVestingUtils) CompareStoredAcountVestingPools(address sdk.AccAddress, accVestingPools cfevestingtypes.AccountVestingPools)

func (*ContextC4eVestingUtils) ExportGenesis

func (h *ContextC4eVestingUtils) ExportGenesis(expected cfevestingtypes.GenesisState)

func (*ContextC4eVestingUtils) GetVestingDenom

func (h *ContextC4eVestingUtils) GetVestingDenom() string

func (*ContextC4eVestingUtils) InitGenesis

func (h *ContextC4eVestingUtils) InitGenesis(genState cfevestingtypes.GenesisState)

func (*ContextC4eVestingUtils) InitGenesisError

func (h *ContextC4eVestingUtils) InitGenesisError(genState cfevestingtypes.GenesisState, errorMessage string)

func (*ContextC4eVestingUtils) MessageCreateGenesisVestingPool

func (h *ContextC4eVestingUtils) MessageCreateGenesisVestingPool(address sdk.AccAddress, accountVestingPoolsExistsBefore bool, accountVestingPoolsExistsAfter bool,
	vestingPoolName string, lockupDuration time.Duration, vestingType cfevestingtypes.VestingType, amountToVest math.Int, accAmountBefore math.Int, moduleAmountBefore math.Int,
	accAmountAfter math.Int, moduleAmountAfter math.Int)

func (*ContextC4eVestingUtils) MessageCreateVestingAccount

func (h *ContextC4eVestingUtils) MessageCreateVestingAccount(
	fromAddress sdk.AccAddress,
	toAddress sdk.AccAddress,
	coins sdk.Coins,
	startTime time.Time,
	endTime time.Time,
	amountBefore math.Int,
)

func (*ContextC4eVestingUtils) MessageCreateVestingAccountError

func (h *ContextC4eVestingUtils) MessageCreateVestingAccountError(
	fromAddress sdk.AccAddress,
	toAddress sdk.AccAddress,
	amount sdk.Coins,
	startTime time.Time,
	endTime time.Time,
	amountBefore math.Int,
	errorMessage string,
)

func (*ContextC4eVestingUtils) MessageCreateVestingPool

func (h *ContextC4eVestingUtils) MessageCreateVestingPool(address sdk.AccAddress, accountVestingPoolsExistsBefore bool, accountVestingPoolsExistsAfter bool,
	vestingPoolName string, lockupDuration time.Duration, vestingType cfevestingtypes.VestingType, amountToVest math.Int, accAmountBefore math.Int, moduleAmountBefore math.Int,
	accAmountAfter math.Int, moduleAmountAfter math.Int)

func (*ContextC4eVestingUtils) MessageCreateVestingPoolError

func (h *ContextC4eVestingUtils) MessageCreateVestingPoolError(address sdk.AccAddress,
	vestingPoolName string, lockupDuration time.Duration, vestingType cfevestingtypes.VestingType, amountToVest math.Int,
	errorMessage string)

func (*ContextC4eVestingUtils) MessageSendToVestingAccount

func (h *ContextC4eVestingUtils) MessageSendToVestingAccount(fromAddress sdk.AccAddress, vestingAccAddress sdk.AccAddress, vestingPoolName string, amount math.Int, restartVesting bool, expectedLocked math.Int)

func (*ContextC4eVestingUtils) MessageSendToVestingAccountError

func (h *ContextC4eVestingUtils) MessageSendToVestingAccountError(fromAddress sdk.AccAddress, vestingAccAddress sdk.AccAddress, vestingPoolName string, amount math.Int, restartVesting bool, errorMessage string)

func (*ContextC4eVestingUtils) MessageWithdrawAllAvailable

func (h *ContextC4eVestingUtils) MessageWithdrawAllAvailable(address sdk.AccAddress, accountBalanceBefore math.Int, moduleBalanceBefore math.Int,
	expectedWithdrawn math.Int)

func (*ContextC4eVestingUtils) MessageWithdrawAllAvailableError

func (h *ContextC4eVestingUtils) MessageWithdrawAllAvailableError(address string, errorMessage string)

func (*ContextC4eVestingUtils) QueryGenesisVestings

func (h *ContextC4eVestingUtils) QueryGenesisVestings(expectedResponse cfevestingtypes.QueryGenesisVestingsSummaryResponse)

func (*ContextC4eVestingUtils) QueryVestings

func (h *ContextC4eVestingUtils) QueryVestings(expectedResponse cfevestingtypes.QueryVestingsSummaryResponse)

func (*ContextC4eVestingUtils) RemoveReservationToVestingPool

func (h *ContextC4eVestingUtils) RemoveReservationToVestingPool(address sdk.AccAddress, vestingPoolName string, reservationId uint64, amout math.Int)

func (*ContextC4eVestingUtils) SendReservedToVestingAccount

func (h *ContextC4eVestingUtils) SendReservedToVestingAccount(fromAddress sdk.AccAddress, vestingAccAddress sdk.AccAddress, vestingPoolName string, amount math.Int, reservationId uint64, free sdk.Dec, lockupPeriod time.Duration, vestingPeriod time.Duration, expectedLocked math.Int)

func (*ContextC4eVestingUtils) SendReservedToVestingAccountError

func (h *ContextC4eVestingUtils) SendReservedToVestingAccountError(fromAddress sdk.AccAddress, vestingAccAddress sdk.AccAddress, vestingPoolName string, amount math.Int, reservationId uint64, free sdk.Dec, lockupPeriod time.Duration, vestingPeriod time.Duration, errorMessage string)

func (*ContextC4eVestingUtils) SetVestingTypes

func (h *ContextC4eVestingUtils) SetVestingTypes(vestingTypes cfevestingtypes.VestingTypes)

func (*ContextC4eVestingUtils) SetupAccountVestingPools

func (h *ContextC4eVestingUtils) SetupAccountVestingPools(address string, numberOfVestingPools int, vestingAmount math.Int, withdrawnAmount math.Int) cfevestingtypes.AccountVestingPools

func (*ContextC4eVestingUtils) SetupAccountVestingsPoolsWithModification

func (h *ContextC4eVestingUtils) SetupAccountVestingsPoolsWithModification(modifyVesting func(*cfevestingtypes.VestingPool), address string, numberOfVestingPools int, vestingAmount math.Int, withdrawnAmount math.Int) cfevestingtypes.AccountVestingPools

func (*ContextC4eVestingUtils) SetupVestingTypes

func (h *ContextC4eVestingUtils) SetupVestingTypes(numberOfVestingTypes int, amountOf10BasedVestingTypes int, startId int) cfevestingtypes.VestingTypes

func (*ContextC4eVestingUtils) SetupVestingTypesForAccountsVestingPools

func (h *ContextC4eVestingUtils) SetupVestingTypesForAccountsVestingPools()

func (*ContextC4eVestingUtils) SetupVestingTypesWithModification

func (h *ContextC4eVestingUtils) SetupVestingTypesWithModification(modifyVestingType func(*cfevestingtypes.VestingType), numberOfVestingTypes int, amountOf10BasedVestingTypes int, startId int) cfevestingtypes.VestingTypes

func (*ContextC4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoins

func (h *ContextC4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoins(ownerAddress sdk.AccAddress, amountsToUnlock sdk.Coins, expectedAccountBalances sdk.Coins, expectedLockedBalancesBefore sdk.Coins)

func (*ContextC4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoinsError

func (h *ContextC4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoinsError(ownerAddress sdk.AccAddress, amountsToUnlock sdk.Coins, expectedAccountBalances sdk.Coins, expectedLockedBalancesBefore sdk.Coins, expectedError string)

func (*ContextC4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoins

func (h *ContextC4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoins(ownerAddress sdk.AccAddress, amountToUnlock math.Int, expectedAccountBalance math.Int, expectedLockedBalanceBefore math.Int)

func (*ContextC4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoinsError

func (h *ContextC4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoinsError(ownerAddress sdk.AccAddress, amountToUnlock math.Int, expectedAccountBalance math.Int, expectedLockedBalanceBefore math.Int, expectedError string)

func (*ContextC4eVestingUtils) ValidateGenesisAndInvariants

func (m *ContextC4eVestingUtils) ValidateGenesisAndInvariants()

func (*ContextC4eVestingUtils) VerifyAccountVestingPools

func (h *ContextC4eVestingUtils) VerifyAccountVestingPools(address sdk.AccAddress,
	vestingNames []string, durations []time.Duration, vestingTypes []cfevestingtypes.VestingType, vestedAmounts []math.Int, withdrawnAmounts []math.Int, startAndModificationTime ...time.Time)

func (*ContextC4eVestingUtils) VerifyAccountVestingPoolsWithModification

func (h *ContextC4eVestingUtils) VerifyAccountVestingPoolsWithModification(address sdk.AccAddress,
	amountOfAllAccVestingPools int, vestingNames []string, durations []time.Duration, vestingTypes []cfevestingtypes.VestingType, startsTimes []time.Time, vestedAmounts []math.Int, withdrawnAmounts []math.Int,
	sentAmounts []int64, modificationsTimes []time.Time, modificationsVested []math.Int, modificationsWithdrawn []math.Int)

Jump to

Keyboard shortcuts

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