Documentation
¶
Index ¶
- func CreateValidators(n int) (*tmtypes.ValidatorSet, []types.ValidatorUpdate, ...)
- func ToValidatorUpdates(valSet *tmtypes.ValidatorSet) (valUpdates []types.ValidatorUpdate, err error)
- type ConsumerApp
- type DemocConsumerApp
- type ProviderApp
- type TestAccountKeeper
- type TestBankKeeper
- type TestDistributionKeeper
- type TestSlashingKeeper
- type TestStakingKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateValidators ¶
func CreateValidators(n int) ( *tmtypes.ValidatorSet, []types.ValidatorUpdate, map[string]tmtypes.PrivValidator, error, )
func ToValidatorUpdates ¶
func ToValidatorUpdates(valSet *tmtypes.ValidatorSet) (valUpdates []types.ValidatorUpdate, err error)
Types ¶
type ConsumerApp ¶
type ConsumerApp interface {
ibctesting.TestingApp
// BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
GetConsumerKeeper() consumerkeeper.Keeper
GetSubspace(moduleName string) paramstypes.Subspace
// Returns a bank keeper interface with more capabilities than the expected_keepers interface
GetTestBankKeeper() TestBankKeeper
// Tests an account keeper interface with more capabilities than the expected_keepers interface
GetTestAccountKeeper() TestAccountKeeper
// Tests a slashing keeper interface with more capabilities than the expected_keepers interface
GetTestSlashingKeeper() TestSlashingKeeper
// Tests an evidence keeper interface with more capabilities than the expected_keepers interface
GetTestEvidenceKeeper() evidencekeeper.Keeper
}
The interface that any consumer app must implement to be compatible with integration tests This is a wrapper around the ibc testing app interface with additional constraints.
type DemocConsumerApp ¶
type DemocConsumerApp interface {
ConsumerApp
// Returns a distribution keeper interface with more capabilities than the expected_keepers interface
GetTestDistributionKeeper() TestDistributionKeeper
// Tests a staking keeper interface with more capabilities than the expected_keepers interface
GetTestStakingKeeper() TestStakingKeeper
// Tests a mint keeper interface with more capabilities than the expected_keepers interface
GetTestMintKeeper() mintkeeper.Keeper
// @MSalopek -> on v50 we need to access the Params collection which does not have a getter
GetTestGovKeeper() govkeeper.Keeper
}
type ProviderApp ¶
type ProviderApp interface {
ibctesting.TestingApp
GetSubspace(moduleName string) paramstypes.Subspace
GetProviderKeeper() providerkeeper.Keeper
// Returns a staking keeper interface with more capabilities than the expected_keepers interface
GetTestStakingKeeper() TestStakingKeeper
// Returns a bank keeper interface with more capabilities than the expected_keepers interface
GetTestBankKeeper() TestBankKeeper
// Returns a slashing keeper interface with more capabilities than the expected_keepers interface
GetTestSlashingKeeper() TestSlashingKeeper
// Returns a distribution keeper interface with more capabilities than the expected_keepers interface
GetTestDistributionKeeper() TestDistributionKeeper
// Returns an account keeper interface with more capabilities than the expected_keepers interface
GetTestAccountKeeper() TestAccountKeeper
}
The interface that any provider app must implement to be compatible with ccv integration tests. This is a wrapper around the ibc testing app interface with additional constraints.
type TestAccountKeeper ¶
type TestBankKeeper ¶
type TestDistributionKeeper ¶
type TestDistributionKeeper interface {
// NOTE: @MSalopek deprecated in v50
// GetFeePoolCommunityCoins(ctx sdk.Context) sdk.DecCoins
GetDistributionAccount(ctx context.Context) sdk.ModuleAccountI
GetValidatorOutstandingRewards(ctx context.Context, val sdk.ValAddress) (rewards distributiontypes.ValidatorOutstandingRewards, err error)
GetCommunityTax(ctx context.Context) (math.LegacyDec, error)
}
type TestSlashingKeeper ¶
type TestSlashingKeeper interface {
ccvtypes.SlashingKeeper
SetValidatorSigningInfo(ctx context.Context, address sdk.ConsAddress, info slashingtypes.ValidatorSigningInfo) error
SignedBlocksWindow(ctx context.Context) (int64, error)
HandleValidatorSignature(ctx context.Context, addr cryptotypes.Address, power int64, signed comet.BlockIDFlag) error
MinSignedPerWindow(ctx context.Context) (int64, error)
// NOTE: @MSalopek deprecated in v50
// IterateValidatorMissedBlockBitArray(ctx sdk.Context,
// address sdk.ConsAddress, handler func(index int64, missed bool) (stop bool))
IterateMissedBlockBitmap(ctx context.Context, addr sdk.ConsAddress, cb func(index int64, missed bool) (stop bool)) error
}
type TestStakingKeeper ¶
type TestStakingKeeper interface {
ccvtypes.StakingKeeper
Delegate(
ctx context.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus,
validator stakingtypes.Validator, subtractAccount bool,
) (newShares math.LegacyDec, err error)
Undelegate(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, sharesAmount math.LegacyDec,
) (time.Time, math.Int, error)
BeginRedelegation(
ctx context.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, sharesAmount math.LegacyDec,
) (completionTime time.Time, err error)
GetUnbondingDelegationByUnbondingID(ctx context.Context, id uint64) (ubd stakingtypes.UnbondingDelegation, err error)
GetRedelegations(ctx context.Context, delegator sdk.AccAddress, maxRetrieve uint16) (redelegations []stakingtypes.Redelegation, err error)
GetUnbondingDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (ubd stakingtypes.UnbondingDelegation, err error)
GetAllValidators(ctx context.Context) (validators []stakingtypes.Validator, err error)
GetValidatorSet() stakingtypes.ValidatorSet
}
Click to show internal directories.
Click to hide internal directories.