# README
testing package for ibc
Customized version of cosmos-sdk x/ibc/testing
# Functions
AssertEvents asserts that expected events are present in the actual events.
DefaultWasmAppFactory instantiates and sets up the default wasmd app.
GetChainID returns the chainID used for the provided index.
No description provided by the author
MakeBlockID copied unimported test functions from cmttypes to use them here.
NewCoordinator initializes Coordinator with n default wasm TestChain instances.
NewCoordinatorX initializes Coordinator with N TestChain instances using the given app factory.
NewDefaultEndpoint constructs a new endpoint using default values.
NewDefaultTestChain initializes a new test chain with a default of 4 validators Use this function if the tests do not need custom control over the validator set.
NewEndpoint constructs a new endpoint without the counterparty.
NewPath constructs an endpoint for each chain using the default values for the endpoints.
NewTestChain initializes a new test chain with a default of 4 validators Use this function if the tests do not need custom control over the validator set.
NewTestChainWithValSet initializes a new TestChain instance with the given validator set and signer array.
ParseAckFromEvents parses events emitted from a MsgRecvPacket and returns the acknowledgement.
ParseChannelIDFromEvents parses events emitted from a MsgChannelOpenInit or MsgChannelOpenTry and returns the channel identifier.
No description provided by the author
ParseClientIDFromEvents parses events emitted from a MsgCreateClient and returns the client identifier.
ParseConnectionIDFromEvents parses events emitted from a MsgConnectionOpenInit or MsgConnectionOpenTry and returns the connection identifier.
No description provided by the author
ParsePacketFromEvents parses events emitted from a MsgRecvPacket and returns the acknowledgement.
No description provided by the author
# Structs
Coordinator is a testing struct which contains N TestChain's.
Endpoint is a which represents a channel endpoint and its associated client and connections.
No description provided by the author
Path contains two endpoints representing two chains connected over IBC.
No description provided by the author
TestChain is a testing struct that wraps a simapp with the last CMT header, the current ABCI header and the validators of the TestChain.
# Interfaces
ChainApp Abstract chain app definition used for testing.
# Type aliases
ChainAppFactory abstract factory method that usually implemented by app.SetupWithGenesisValSet.
No description provided by the author