ibctesting

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChainIDPrefix = "fxcore"

ChainIDPrefix defines the default chain ID prefix for Evmos test chains

View Source
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.

Jump to

Keyboard shortcuts

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