Documentation ¶
Index ¶
- Variables
- func NewCoordinator(t *testing.T, nFxChains, mCosmosChains int) *ibctesting.Coordinator
- func NewTestChain(t *testing.T, coord *ibcgotesting.Coordinator, chainID string) *ibcgotesting.TestChain
- func NewTransferPath(chainA, chainB *ibcgotesting.TestChain) *ibcgotesting.Path
- func SetupWithGenesisValSet(t *testing.T, valSet *tmtypes.ValidatorSet, genAccs []authtypes.GenesisAccount, ...) ibctesting.TestingApp
Constants ¶
This section is empty.
Variables ¶
var ChainIDPrefix = "fxcore"
ChainIDPrefix defines the default chain ID prefix for Evmos test chains
var DefaultTestingAppInit = helpers.SetupTestingApp
Functions ¶
func NewCoordinator ¶
func NewCoordinator(t *testing.T, nFxChains, mCosmosChains int) *ibctesting.Coordinator
NewCoordinator initializes Coordinator with N Fxcore TestChain's (fx-core apps) and M Cosmos chains (Simulation Apps)
func NewTestChain ¶
func NewTestChain(t *testing.T, coord *ibcgotesting.Coordinator, chainID string) *ibcgotesting.TestChain
NewTestChain initializes a new TestChain instance with a single validator set using a generated private key. It also creates a sender account to be used for delivering transactions.
The first block height is committed to state in order to allow for client creations on counterparty chains. The TestChain will return with a block height starting at 2.
Time management is handled by the Coordinator in order to ensure synchrony between chains. Each update of any chain increments the block header time for all chains by 5 seconds.
func NewTransferPath ¶
func NewTransferPath(chainA, chainB *ibcgotesting.TestChain) *ibcgotesting.Path
func SetupWithGenesisValSet ¶
func SetupWithGenesisValSet(t *testing.T, valSet *tmtypes.ValidatorSet, genAccs []authtypes.GenesisAccount, chainID string, balances ...banktypes.Balance) ibctesting.TestingApp
SetupWithGenesisValSet initializes a new SimApp with a validator set and genesis accounts that also act as delegators. For simplicity, each validator is bonded with a delegation of one consensus engine unit (10^6) in the default token of the simapp from first genesis account. A Nop logger is set in SimApp.
Types ¶
This section is empty.