Versions in this module Expand all Collapse all v0 v0.2.1 Jan 24, 2022 v0.2.0 Jul 8, 2021 Changes in this version + const ChannelIDPrefix + const ChannelTransferVersion + const ConnectionIDPrefix + const DefaultDelayPeriod + const Fabric + const MaxClockDrift + const MockPort + const SoloMachine + const Tendermint + const TransferPort + const TrustingPeriod + const UnbondingPeriod + var ChainIDPrefix = "testchain" + var ConnectionVersion = connectiontypes.ExportedVersionsToProto(connectiontypes.GetCompatibleVersions())[0] + var DefaultOpenInitVersion *connectiontypes.Version + var DefaultTrustLevel ibctmtypes.Fraction = ibctmtypes.DefaultTrustLevel + var TestCoin = sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100)) + var TestHash = tmhash.Sum([]byte("TESTING HASH")) + var UpgradePath = []string + func GetChainID(index int) string + type Account struct + func NewAccount(base authtypes.AccountI, sid *msp.SerializedIdentity) *Account + func (acc Account) GetAddress() sdk.AccAddress + type Coordinator struct + Chains map[string]TestChainI + func NewCoordinator(t *testing.T, n int, mspID string, txSignMode TxSignMode) *Coordinator + func (coord *Coordinator) AcknowledgePacket(source, counterparty TestChainI, counterpartyClient string, ...) error + func (coord *Coordinator) ChanCloseInit(source, counterparty TestChainI, channel TestChannel) error + func (coord *Coordinator) ChanOpenAck(source, counterparty TestChainI, ...) error + func (coord *Coordinator) ChanOpenConfirm(source, counterparty TestChainI, ...) error + func (coord *Coordinator) ChanOpenInit(source, counterparty TestChainI, ...) (TestChannel, TestChannel, error) + func (coord *Coordinator) ChanOpenTry(source, counterparty TestChainI, ...) error + func (coord *Coordinator) CommitBlock(chains ...TestChainI) + func (coord *Coordinator) ConnOpenAck(source, counterparty TestChainI, ...) error + func (coord *Coordinator) ConnOpenConfirm(source, counterparty TestChainI, ...) error + func (coord *Coordinator) ConnOpenInit(source, counterparty TestChainI, clientID, counterpartyClientID string, ...) (*TestConnection, *TestConnection, error) + func (coord *Coordinator) ConnOpenTry(source, counterparty TestChainI, ...) error + func (coord *Coordinator) CreateChannel(chainA, chainB TestChainI, connA, connB *TestConnection, ...) (TestChannel, TestChannel) + func (coord *Coordinator) CreateClient(source, counterparty TestChainI, clientType string) (clientID string, err error) + func (coord *Coordinator) CreateConnection(chainA, chainB TestChainI, clientA, clientB string, nextChannelVersion string) (*TestConnection, *TestConnection) + func (coord *Coordinator) CreateMockChannels(chainA, chainB TestChainI, connA, connB *TestConnection, ...) (TestChannel, TestChannel) + func (coord *Coordinator) CreateTransferChannels(chainA, chainB TestChainI, connA, connB *TestConnection, ...) (TestChannel, TestChannel) + func (coord *Coordinator) GetChain(chainID string) TestChainI + func (coord *Coordinator) IncrementTime() + func (coord *Coordinator) RecvPacket(source, counterparty TestChainI, sourceClient string, ...) error + func (coord *Coordinator) RelayPacket(source, counterparty TestChainI, sourceClient, counterpartyClient string, ...) error + func (coord *Coordinator) SendMsg(source, counterparty TestChainI, counterpartyClientID string, msg sdk.Msg) error + func (coord *Coordinator) SendMsgs(source, counterparty TestChainI, counterpartyClientID string, msgs []sdk.Msg) error + func (coord *Coordinator) SetChannelClosed(source, counterparty TestChainI, testChannel TestChannel) error + func (coord *Coordinator) Setup(chainA, chainB TestChainI, order channeltypes.Order) (string, string, *TestConnection, *TestConnection, TestChannel, TestChannel) + func (coord *Coordinator) SetupClientConnections(chainA, chainB TestChainI, clientType string) (string, string, *TestConnection, *TestConnection) + func (coord *Coordinator) SetupClients(chainA, chainB TestChainI, clientType string) (string, string) + func (coord *Coordinator) UpdateClient(source, counterparty TestChainI, clientID string, clientType string) (err error) + type TestChain struct + App *example.IBCApp + CC *chaincode.IBCChaincode + ChainID string + ClientIDs []string + Codec codec.BinaryCodec + Connections []*TestConnection + CurrentHeader tmproto.Header + LastHeader *ibctmtypes.Header + NextChannelVersion string + QueryServer types.QueryServer + SenderAccount authtypes.AccountI + Signers []tmtypes.PrivValidator + Stub *fabricmock.ChaincodeStub + TxConfig client.TxConfig + Vals *tmtypes.ValidatorSet + func NewTestFabricChain(t *testing.T, chainID string, mspID string, txSignMode TxSignMode) *TestChain + func (*TestChain) ConstructUpdateClientHeader(counterparty TestChainI, clientID string) (exported.Header, error) + func (chain *TestChain) AddTestChannel(conn *TestConnection, portID string) TestChannel + func (chain *TestChain) AddTestConnection(clientID, counterpartyClientID, nextChannelVersion string) *TestConnection + func (chain *TestChain) ChanCloseInit(counterparty TestChainI, channel TestChannel) error + func (chain *TestChain) ChanOpenAck(counterparty TestChainI, ch, counterpartyCh TestChannel) error + func (chain *TestChain) ChanOpenConfirm(counterparty TestChainI, ch, counterpartyCh TestChannel) error + func (chain *TestChain) ChanOpenInit(ch, counterparty TestChannel, order channeltypes.Order, connectionID string) error + func (chain *TestChain) ChanOpenTry(counterparty TestChainI, ch, counterpartyCh TestChannel, ...) error + func (chain *TestChain) ConnectionOpenAck(counterparty TestChainI, connection, counterpartyConnection *TestConnection) error + func (chain *TestChain) ConnectionOpenConfirm(counterparty TestChainI, connection, counterpartyConnection *TestConnection) error + func (chain *TestChain) ConnectionOpenInit(counterparty TestChainI, connection, counterpartyConnection *TestConnection) error + func (chain *TestChain) ConnectionOpenTry(counterparty TestChainI, connection, counterpartyConnection *TestConnection) error + func (chain *TestChain) ConstructMsgCreateClient(counterparty TestChainI, clientID string, clientType string) *clienttypes.MsgCreateClient + func (chain *TestChain) ConstructNextTestConnection(clientID, counterpartyClientID, nextChannelVersion string) *TestConnection + func (chain *TestChain) CreateChannelCapability(portID, channelID string) + func (chain *TestChain) CreateClient(counterparty TestChainI, clientID string) error + func (chain *TestChain) CreatePortCapability(portID string) + func (chain *TestChain) ExpireClient(amount time.Duration) + func (chain *TestChain) GetAcknowledgement(packet exported.PacketI) []byte + func (chain *TestChain) GetChannel(testChannel TestChannel) channeltypes.Channel + func (chain *TestChain) GetChannelCapability(portID, channelID string) *capabilitytypes.Capability + func (chain *TestChain) GetClientState(clientID string) exported.ClientState + func (chain *TestChain) GetConnection(testConnection *TestConnection) connectiontypes.ConnectionEnd + func (chain *TestChain) GetConsensusState(clientID string, height exported.Height) (exported.ConsensusState, bool) + func (chain *TestChain) GetContext() sdk.Context + func (chain *TestChain) GetFabricContext() *contractapi.TransactionContext + func (chain *TestChain) GetPacketData(counterparty TestChainI) []byte + func (chain *TestChain) GetPortCapability(portID string) *capabilitytypes.Capability + func (chain *TestChain) GetPrefix() commitmenttypes.MerklePrefix + func (chain *TestChain) NewClientID(clientType string) string + func (chain *TestChain) NewFabricClientState(counterparty TestChainI, clientID string) *fabrictypes.ClientState + func (chain *TestChain) NewFabricConsensusState(counterparty TestChainI) *fabrictypes.ConsensusState + func (chain *TestChain) NextBlock() + func (chain *TestChain) NextTestChannel(conn *TestConnection, portID string) TestChannel + func (chain *TestChain) QueryClientStateProof(clientID string) (exported.ClientState, []byte) + func (chain *TestChain) QueryConsensusStateProof(clientID string) ([]byte, clienttypes.Height) + func (chain *TestChain) QueryProof(key []byte) ([]byte, clienttypes.Height) + func (chain *TestChain) SendMsgs(msgs ...sdk.Msg) (*sdk.Result, error) + func (chain *TestChain) SendPacket(packet exported.PacketI) error + func (chain *TestChain) UpdateClient(counterparty TestChainI, clientID string) error + func (chain *TestChain) WriteAcknowledgement(packet exported.PacketI) error + func (chain TestChain) GetApp() interface{} + func (chain TestChain) GetChainID() string + func (chain TestChain) GetLastHeader() *ibctmtypes.Header + func (chain TestChain) GetSenderAccount() authtypes.AccountI + func (chain TestChain) Type() string + type TestChainI interface + AddTestChannel func(conn *TestConnection, portID string) TestChannel + AddTestConnection func(clientID, counterpartyClientID, nextChannelVersion string) *TestConnection + ChanCloseInit func(counterparty TestChainI, channel TestChannel) error + ChanOpenAck func(counterparty TestChainI, ch, counterpartyCh TestChannel) error + ChanOpenConfirm func(counterparty TestChainI, ch, counterpartyCh TestChannel) error + ChanOpenInit func(ch, counterparty TestChannel, order channeltypes.Order, connectionID string) error + ChanOpenTry func(counterparty TestChainI, ch, counterpartyCh TestChannel, ...) error + ConnectionOpenAck func(counterparty TestChainI, connection, counterpartyConnection *TestConnection) error + ConnectionOpenConfirm func(counterparty TestChainI, connection, counterpartyConnection *TestConnection) error + ConnectionOpenInit func(counterparty TestChainI, connection, counterpartyConnection *TestConnection) error + ConnectionOpenTry func(counterparty TestChainI, connection, counterpartyConnection *TestConnection) error + ConstructNextTestConnection func(clientID, counterpartyClientID, nextChannelVersion string) *TestConnection + CreatePortCapability func(portID string) + GetApp func() interface{} + GetChainID func() string + GetChannel func(testChannel TestChannel) channeltypes.Channel + GetContext func() sdk.Context + GetLastHeader func() *ibctmtypes.Header + GetPrefix func() commitmenttypes.MerklePrefix + GetSenderAccount func() authtypes.AccountI + NewClientID func(clientType string) string + NextBlock func() + QueryClientStateProof func(clientID string) (exported.ClientState, []byte) + QueryConsensusStateProof func(clientID string) ([]byte, clienttypes.Height) + QueryProof func(key []byte) ([]byte, clienttypes.Height) + SendMsgs func(msgs ...sdk.Msg) (*sdk.Result, error) + Type func() string + type TestChannel struct + ClientID string + CounterpartyClientID string + ID string + PortID string + Version string + type TestConnection struct + Channels []TestChannel + ClientID string + CounterpartyClientID string + ID string + NextChannelVersion string + func (conn *TestConnection) FirstOrNextTestChannel(portID string) TestChannel + type TxSignMode uint8 + const TxSignModeFabricTx + const TxSignModeStdTx