Versions in this module Expand all Collapse all v0 v0.1.0 Jun 4, 2021 Changes in this version + const ChannelIDPrefix + const ChannelTransferVersion + const ConnectionIDPrefix + 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 = fmt.Sprintf("%s/%s", "upgrade", "upgradedClient") + 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 ibctesting.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, ...) (ibctesting.TestChannel, ibctesting.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) (*ibctesting.TestConnection, *ibctesting.TestConnection, error) + func (coord *Coordinator) ConnOpenTry(source, counterparty TestChainI, ...) error + func (coord *Coordinator) CreateChannel(chainA, chainB TestChainI, connA, connB *ibctesting.TestConnection, ...) (ibctesting.TestChannel, ibctesting.TestChannel) + func (coord *Coordinator) CreateClient(source, counterparty TestChainI, clientType string) (clientID string, err error) + func (coord *Coordinator) CreateConnection(chainA, chainB TestChainI, clientA, clientB string) (*ibctesting.TestConnection, *ibctesting.TestConnection) + func (coord *Coordinator) CreateMockChannels(chainA, chainB TestChainI, connA, connB *ibctesting.TestConnection, ...) (ibctesting.TestChannel, ibctesting.TestChannel) + func (coord *Coordinator) CreateTransferChannels(chainA, chainB TestChainI, connA, connB *ibctesting.TestConnection, ...) (ibctesting.TestChannel, ibctesting.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 ibctesting.TestChannel) error + func (coord *Coordinator) Setup(chainA, chainB TestChainI, order channeltypes.Order) (string, string, *ibctesting.TestConnection, *ibctesting.TestConnection, ...) + func (coord *Coordinator) SetupClientConnections(chainA, chainB TestChainI, clientType string) (string, string, *ibctesting.TestConnection, *ibctesting.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.BinaryMarshaler + Connections []*ibctesting.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) AddTestConnection(clientID, counterpartyClientID string) *ibctesting.TestConnection + func (chain *TestChain) ChanCloseInit(counterparty TestChainI, channel ibctesting.TestChannel) error + func (chain *TestChain) ChanOpenAck(counterparty TestChainI, ch, counterpartyCh ibctesting.TestChannel) error + func (chain *TestChain) ChanOpenConfirm(counterparty TestChainI, ch, counterpartyCh ibctesting.TestChannel) error + func (chain *TestChain) ChanOpenInit(ch, counterparty ibctesting.TestChannel, order channeltypes.Order, ...) error + func (chain *TestChain) ChanOpenTry(counterparty TestChainI, ch, counterpartyCh ibctesting.TestChannel, ...) error + func (chain *TestChain) ConnectionOpenAck(counterparty TestChainI, ...) error + func (chain *TestChain) ConnectionOpenConfirm(counterparty TestChainI, ...) error + func (chain *TestChain) ConnectionOpenInit(counterparty TestChainI, ...) error + func (chain *TestChain) ConnectionOpenTry(counterparty TestChainI, ...) error + func (chain *TestChain) ConstructMsgCreateClient(counterparty TestChainI, clientID string, clientType string) *clienttypes.MsgCreateClient + func (chain *TestChain) ConstructNextTestConnection(clientID, counterpartyClientID string) *ibctesting.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 ibctesting.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 *ibctesting.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) GetFirstTestConnection(clientID, counterpartyClientID string) *ibctesting.TestConnection + 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(counterpartyChainID 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) 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 + AddTestConnection func(clientID, counterpartyClientID string) *ibctesting.TestConnection + ChanCloseInit func(counterparty TestChainI, channel ibctesting.TestChannel) error + ChanOpenAck func(counterparty TestChainI, ch, counterpartyCh ibctesting.TestChannel) error + ChanOpenConfirm func(counterparty TestChainI, ch, counterpartyCh ibctesting.TestChannel) error + ChanOpenInit func(ch, counterparty ibctesting.TestChannel, order channeltypes.Order, ...) error + ChanOpenTry func(counterparty TestChainI, ch, counterpartyCh ibctesting.TestChannel, ...) error + ConnectionOpenAck func(counterparty TestChainI, ...) error + ConnectionOpenConfirm func(counterparty TestChainI, ...) error + ConnectionOpenInit func(counterparty TestChainI, ...) error + ConnectionOpenTry func(counterparty TestChainI, ...) error + ConstructNextTestConnection func(clientID, counterpartyClientID string) *ibctesting.TestConnection + CreatePortCapability func(portID string) + GetApp func() interface{} + GetChainID func() string + GetChannel func(testChannel ibctesting.TestChannel) channeltypes.Channel + GetContext func() sdk.Context + GetLastHeader func() *ibctmtypes.Header + GetPrefix func() commitmenttypes.MerklePrefix + GetSenderAccount func() authtypes.AccountI + NewClientID func(counterpartyChainID 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 TxSignMode uint8 + const TxSignModeFabricTx + const TxSignModeStdTx