cfevesting

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAccountVestingPools added in v1.1.0

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

func AssertAccountVestingPoolsArrays added in v1.1.0

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 added in v1.1.0

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

func GenerateAccountVestingPoolsWithRandomVestingPools added in v1.1.0

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

func GenerateGenesisVestingTypes added in v1.1.0

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

func GenerateGenesisVestingTypesForAccounVestingPools added in v1.1.0

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

func GenerateOneAccountVestingPoolsWithAddressWith10BasedVestingPools added in v1.1.0

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

func GenerateOneAccountVestingPoolsWithAddressWithRandomVestingPools added in v1.1.0

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

func GenerateVestingTypes

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

func GenerateVestingTypesForAccountVestingPools added in v1.1.0

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 added in v1.1.0

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

func ToAccountVestingPoolsPointersArray added in v1.1.0

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

Types

type C4eVestingKeeperUtils added in v1.1.0

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

func NewC4eVestingKeeperUtils added in v1.1.0

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

func (*C4eVestingKeeperUtils) CheckModuleAccountInvariant added in v1.1.0

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

func (*C4eVestingKeeperUtils) CheckNonNegativeVestingPoolAmountsInvariant added in v1.1.0

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

func (*C4eVestingKeeperUtils) CheckVestingPoolConsistentDataInvariant added in v1.1.0

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

func (*C4eVestingKeeperUtils) GetC4eVestingKeeper added in v1.1.0

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

func (*C4eVestingKeeperUtils) SetupAccountVestingPools added in v1.1.0

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

func (*C4eVestingKeeperUtils) SetupAccountVestingPoolsWithModification added in v1.1.0

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 added in v1.1.0

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

func NewC4eVestingUtils added in v1.1.0

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 added in v1.3.0

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

func (*C4eVestingUtils) CompareStoredAcountVestingPools added in v1.1.0

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

func (*C4eVestingUtils) ExportGenesis added in v1.1.0

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

func (*C4eVestingUtils) ExportGenesisAndValidate added in v1.1.0

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

func (*C4eVestingUtils) GetVestingDenom added in v1.3.0

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

func (*C4eVestingUtils) InitGenesis added in v1.1.0

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

func (*C4eVestingUtils) InitGenesisError added in v1.1.0

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

func (*C4eVestingUtils) MessageCreateGenesisVestingPool added in v1.2.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.2.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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

func (*C4eVestingUtils) MessageWithdrawAllAvailableError added in v1.1.0

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

func (*C4eVestingUtils) QueryGenesisVestingsSummary added in v1.2.0

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

func (*C4eVestingUtils) QueryVestingsSummary added in v1.1.0

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

func (*C4eVestingUtils) RemoveVestingPoolReservation added in v1.3.0

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

func (*C4eVestingUtils) SendReservedToVestingAccount added in v1.3.0

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 added in v1.3.0

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

func (*C4eVestingUtils) SendToPeriodicContinuousVestingAccountError added in v1.3.0

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 added in v1.3.0

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 added in v1.1.0

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

func (*C4eVestingUtils) SetupVestingTypes added in v1.1.0

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

func (*C4eVestingUtils) SetupVestingTypesForAccountsVestingPools added in v1.1.0

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

func (*C4eVestingUtils) SetupVestingTypesWithModification added in v1.1.0

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

func (*C4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoins added in v1.2.0

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

func (*C4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoinsError added in v1.2.0

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

func (*C4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoins added in v1.2.0

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

func (*C4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoinsError added in v1.2.0

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

func (*C4eVestingUtils) ValidateInvariants added in v1.1.0

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

func (*C4eVestingUtils) VerifyAccountVestingPools added in v1.1.0

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 added in v1.1.0

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 added in v1.3.0

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

func (*C4eVestingUtils) VerifyVestingPool added in v1.1.0

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 added in v1.1.0

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

func NewContextC4eVestingUtils added in v1.1.0

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 added in v1.3.0

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

func (*ContextC4eVestingUtils) AddTestVestingPool added in v1.3.0

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

func (*ContextC4eVestingUtils) CheckModuleAccountInvariant added in v1.1.0

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

func (*ContextC4eVestingUtils) CompareStoredAcountVestingPools added in v1.1.0

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

func (*ContextC4eVestingUtils) ExportGenesis added in v1.1.0

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

func (*ContextC4eVestingUtils) GetVestingDenom added in v1.3.0

func (h *ContextC4eVestingUtils) GetVestingDenom() string

func (*ContextC4eVestingUtils) InitGenesis added in v1.1.0

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

func (*ContextC4eVestingUtils) InitGenesisError added in v1.1.0

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

func (*ContextC4eVestingUtils) MessageCreateGenesisVestingPool added in v1.2.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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

func (*ContextC4eVestingUtils) MessageSendToVestingAccount added in v1.1.0

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

func (*ContextC4eVestingUtils) MessageSendToVestingAccountError added in v1.1.0

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

func (*ContextC4eVestingUtils) MessageWithdrawAllAvailable added in v1.1.0

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

func (*ContextC4eVestingUtils) MessageWithdrawAllAvailableError added in v1.1.0

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

func (*ContextC4eVestingUtils) QueryGenesisVestings added in v1.2.0

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

func (*ContextC4eVestingUtils) QueryVestings added in v1.1.0

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

func (*ContextC4eVestingUtils) RemoveReservationToVestingPool added in v1.3.0

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

func (*ContextC4eVestingUtils) SendReservedToVestingAccount added in v1.3.0

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 added in v1.3.0

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 added in v1.1.0

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

func (*ContextC4eVestingUtils) SetupAccountVestingPools added in v1.1.0

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

func (*ContextC4eVestingUtils) SetupAccountVestingsPoolsWithModification added in v1.1.0

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

func (*ContextC4eVestingUtils) SetupVestingTypes added in v1.1.0

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

func (*ContextC4eVestingUtils) SetupVestingTypesForAccountsVestingPools added in v1.1.0

func (h *ContextC4eVestingUtils) SetupVestingTypesForAccountsVestingPools()

func (*ContextC4eVestingUtils) SetupVestingTypesWithModification added in v1.1.0

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

func (*ContextC4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoins added in v1.2.0

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

func (*ContextC4eVestingUtils) UnlockUnbondedContinuousVestingAccountCoinsError added in v1.2.0

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

func (*ContextC4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoins added in v1.2.0

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

func (*ContextC4eVestingUtils) UnlockUnbondedDefaultDenomContinuousVestingAccountCoinsError added in v1.2.0

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

func (*ContextC4eVestingUtils) ValidateGenesisAndInvariants added in v1.1.0

func (m *ContextC4eVestingUtils) ValidateGenesisAndInvariants()

func (*ContextC4eVestingUtils) VerifyAccountVestingPools added in v1.1.0

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 added in v1.1.0

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