Documentation ¶
Index ¶
- func AddValidatorsToAppGenesis(app *c4eapp.App, genesisState c4eapp.GenesisState, bondDenom string, ...) sdk.Coin
- func BaseSetup() (*c4eapp.App, c4eapp.GenesisState)
- func Setup(isCheckTx bool) *c4eapp.App
- func SetupAndGetValidatorsRelatedCoins(isCheckTx bool, balances ...banktypes.Balance) (*c4eapp.App, sdk.Coin)
- func SetupApp(initBlock int64) (*c4eapp.App, sdk.Context, sdk.Coin)
- func SetupAppWithTime(initBlock int64, initTime time.Time, balances ...banktypes.Balance) (*c4eapp.App, sdk.Context, sdk.Coin)
- func SetupWithBondDenom(isCheckTx bool, bondDenom string) (*c4eapp.App, sdk.Coin)
- func SetupWithValidatorsAmount(isCheckTx bool, bondDenom string, validatorsAmount int, ...) (*c4eapp.App, sdk.Coin)
- type TestHelper
- func (th *TestHelper) BeginBlocker(req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (th *TestHelper) EndBlocker(req abci.RequestEndBlock) abci.ResponseEndBlock
- func (th TestHelper) GetContext() sdk.Context
- func (th TestHelper) GetWrappedContext() context.Context
- func (th *TestHelper) IncrementContextBlockHeight()
- func (th *TestHelper) IncrementContextBlockHeightAndSetTime(time time.Time)
- func (th *TestHelper) SetContextBlockHeight(height int64)
- func (th *TestHelper) SetContextBlockHeightAndAddTime(height int64, durationToAdd time.Duration)
- func (th *TestHelper) SetContextBlockHeightAndTime(height int64, time time.Time)
- func (th *TestHelper) SetContextBlockTime(time time.Time)
- func (th *TestHelper) ValidateGenesisAndInvariants()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupAppWithTime ¶
func SetupWithBondDenom ¶
Setup initializes a new chainforenergyApp
Types ¶
type TestHelper ¶
type TestHelper struct { App *c4eapp.App Context sdk.Context WrappedContext context.Context InitialValidatorsCoin sdk.Coin InitTime time.Time BankUtils *testcosmos.ContextBankUtils AuthUtils *testcosmos.ContextAuthUtils StakingUtils *testcosmos.ContextStakingUtils GovUtils *testcosmos.ContextGovUtils DistributionUtils *testcosmos.ContextDistributionUtils FeegrantUtils *testcosmos.ContextFeegrantUtils C4eVestingUtils *testcfevesting.ContextC4eVestingUtils C4eMinterUtils *testcfeminter.ContextC4eMinterUtils C4eDistributorUtils *testcfedistributor.ContextC4eDistributorUtils C4eClaimUtils *testcfeclaim.ContextC4eClaimUtils }
func SetupTestApp ¶
func SetupTestApp(t require.TestingT) *TestHelper
func SetupTestAppWithHeight ¶
func SetupTestAppWithHeight(t require.TestingT, initBlock int64) *TestHelper
func (*TestHelper) BeginBlocker ¶
func (th *TestHelper) BeginBlocker(req abci.RequestBeginBlock) abci.ResponseBeginBlock
func (*TestHelper) EndBlocker ¶
func (th *TestHelper) EndBlocker(req abci.RequestEndBlock) abci.ResponseEndBlock
func (TestHelper) GetContext ¶
func (th TestHelper) GetContext() sdk.Context
func (TestHelper) GetWrappedContext ¶
func (th TestHelper) GetWrappedContext() context.Context
func (*TestHelper) IncrementContextBlockHeight ¶
func (th *TestHelper) IncrementContextBlockHeight()
func (*TestHelper) IncrementContextBlockHeightAndSetTime ¶
func (th *TestHelper) IncrementContextBlockHeightAndSetTime(time time.Time)
func (*TestHelper) SetContextBlockHeight ¶
func (th *TestHelper) SetContextBlockHeight(height int64)
func (*TestHelper) SetContextBlockHeightAndAddTime ¶
func (th *TestHelper) SetContextBlockHeightAndAddTime(height int64, durationToAdd time.Duration)
func (*TestHelper) SetContextBlockHeightAndTime ¶
func (th *TestHelper) SetContextBlockHeightAndTime(height int64, time time.Time)
func (*TestHelper) SetContextBlockTime ¶
func (th *TestHelper) SetContextBlockTime(time time.Time)
func (*TestHelper) ValidateGenesisAndInvariants ¶ added in v1.3.1
func (th *TestHelper) ValidateGenesisAndInvariants()
Click to show internal directories.
Click to hide internal directories.