Versions in this module Expand all Collapse all v0 v0.0.2 Mar 8, 2023 Changes in this version + const ChainIDPrefix + var TimeIncrement = time.Second * 5 + func CreateSortedSignerArray(altPrivVal, suitePrivVal octypes.PrivValidator, ...) []octypes.PrivValidator + func GetChainID(index int) string + func MakeBlockID(hash []byte, partSetSize uint32, partSetHash []byte) octypes.BlockID + type Coordinator struct + Chains map[string]*TestChain + CurrentTime time.Time + func NewCoordinator(t *testing.T, n int, opts ...[]wasmkeeper.Option) *Coordinator + func (coord *Coordinator) ChanOpenInitOnBothChains(path *Path) error + func (coord *Coordinator) CloseChannel(path *Path) + func (coord *Coordinator) CommitBlock(chains ...*TestChain) + func (coord *Coordinator) CommitNBlocks(chain *TestChain, n uint64) + func (coord *Coordinator) ConnOpenInitOnBothChains(path *Path) error + func (coord *Coordinator) CreateChannels(path *Path) + func (coord *Coordinator) CreateConnections(path *Path) + func (coord *Coordinator) CreateMockChannels(path *Path) + func (coord *Coordinator) CreateTransferChannels(path *Path) + func (coord *Coordinator) GetChain(chainID string) *TestChain + func (coord *Coordinator) IncrementTime() + func (coord *Coordinator) IncrementTimeBy(increment time.Duration) + func (coord *Coordinator) RelayAndAckPendingPackets(path *Path) error + func (coord *Coordinator) Setup(path *Path) + func (coord *Coordinator) SetupClients(path *Path) + func (coord *Coordinator) SetupConnections(path *Path) + func (coord *Coordinator) TimeoutPendingPackets(path *Path) error + func (coord *Coordinator) UpdateTime() + func (coord *Coordinator) UpdateTimeForChain(chain *TestChain) + type Endpoint struct + Chain *TestChain + ChannelConfig *ibctesting.ChannelConfig + ChannelID string + ClientConfig ibctesting.ClientConfig + ClientID string + ConnectionConfig *ibctesting.ConnectionConfig + ConnectionID string + Counterparty *Endpoint + func NewDefaultEndpoint(chain *TestChain) *Endpoint + func NewEndpoint(chain *TestChain, clientConfig ibctesting.ClientConfig, ...) *Endpoint + func (endpoint *Endpoint) AcknowledgePacket(packet channeltypes.Packet, ack []byte) error + func (endpoint *Endpoint) ChanCloseConfirm() error + func (endpoint *Endpoint) ChanCloseInit() error + func (endpoint *Endpoint) ChanOpenAck() error + func (endpoint *Endpoint) ChanOpenConfirm() error + func (endpoint *Endpoint) ChanOpenInit() error + func (endpoint *Endpoint) ChanOpenTry() error + func (endpoint *Endpoint) ConnOpenAck() error + func (endpoint *Endpoint) ConnOpenConfirm() error + func (endpoint *Endpoint) ConnOpenInit() error + func (endpoint *Endpoint) ConnOpenTry() error + func (endpoint *Endpoint) CreateClient() (err error) + func (endpoint *Endpoint) GetChannel() channeltypes.Channel + func (endpoint *Endpoint) GetClientState() exported.ClientState + func (endpoint *Endpoint) GetConnection() connectiontypes.ConnectionEnd + func (endpoint *Endpoint) GetConsensusState(height exported.Height) exported.ConsensusState + func (endpoint *Endpoint) QueryClientStateProof() (exported.ClientState, []byte) + func (endpoint *Endpoint) QueryConnectionHandshakeProof() (clientState exported.ClientState, proofClient, proofConsensus []byte, ...) + func (endpoint *Endpoint) QueryProof(key []byte) ([]byte, clienttypes.Height) + func (endpoint *Endpoint) QueryProofAtHeight(key []byte, height uint64) ([]byte, clienttypes.Height) + func (endpoint *Endpoint) RecvPacket(packet channeltypes.Packet) error + func (endpoint *Endpoint) SendPacket(packet exported.PacketI) error + func (endpoint *Endpoint) SetChannel(channel channeltypes.Channel) + func (endpoint *Endpoint) SetChannelClosed() error + func (endpoint *Endpoint) SetClientState(clientState exported.ClientState) + func (endpoint *Endpoint) SetConnection(connection connectiontypes.ConnectionEnd) + func (endpoint *Endpoint) SetConsensusState(consensusState exported.ConsensusState, height exported.Height) + func (endpoint *Endpoint) TimeoutPacket(packet channeltypes.Packet) error + func (endpoint *Endpoint) UpdateClient() (err error) + func (endpoint *Endpoint) WriteAcknowledgement(ack exported.Acknowledgement, packet exported.PacketI) error + type PacketAck struct + Ack []byte + Packet channeltypes.Packet + type Path struct + EndpointA *Endpoint + EndpointB *Endpoint + func NewPath(chainA, chainB *TestChain) *Path + func (path *Path) Invert() *Path + func (path *Path) RelayPacket(packet channeltypes.Packet, ack []byte) error + func (path *Path) SendMsg(msgs ...sdk.Msg) error + func (path *Path) SetChannelOrdered() + type TestChain struct + App *app.WasmApp + ChainID string + Codec codec.BinaryCodec + Coordinator *Coordinator + CurrentHeader tmproto.Header + LastHeader *ibcoctypes.Header + PendingAckPackets []PacketAck + PendingSendPackets []channeltypes.Packet + QueryServer types.QueryServer + SenderAccount authtypes.AccountI + SenderPrivKey cryptotypes.PrivKey + Signers []octypes.PrivValidator + TxConfig client.TxConfig + Vals *octypes.ValidatorSet + func NewTestChain(t *testing.T, coord *Coordinator, chainID string, opts ...wasm.Option) *TestChain + func (chain *TestChain) AllBalances(acc sdk.AccAddress) sdk.Coins + func (chain *TestChain) Balance(acc sdk.AccAddress, denom string) sdk.Coin + func (chain *TestChain) CommitBlock() + func (chain *TestChain) ConstructUpdateOCClientHeader(counterparty *TestChain, clientID string) (*ibcoctypes.Header, error) + func (chain *TestChain) ConstructUpdateOCClientHeaderWithTrustedHeight(counterparty *TestChain, clientID string, trustedHeight clienttypes.Height) (*ibcoctypes.Header, error) + func (chain *TestChain) ContractInfo(contractAddr sdk.AccAddress) *types.ContractInfo + func (chain *TestChain) CreateChannelCapability(scopedKeeper capabilitykeeper.ScopedKeeper, portID, channelID string) + func (chain *TestChain) CreateOCClientHeader(chainID string, blockHeight int64, trustedHeight clienttypes.Height, ...) *ibcoctypes.Header + func (chain *TestChain) CreatePortCapability(scopedKeeper capabilitykeeper.ScopedKeeper, portID string) + func (chain *TestChain) CurrentOCClientHeader() *ibcoctypes.Header + func (chain *TestChain) ExpireClient(amount time.Duration) + func (chain *TestChain) GetAcknowledgement(packet exported.PacketI) []byte + func (chain *TestChain) GetChannelCapability(portID, channelID string) *capabilitytypes.Capability + func (chain *TestChain) GetClientState(clientID string) exported.ClientState + func (chain *TestChain) GetConsensusState(clientID string, height exported.Height) (exported.ConsensusState, bool) + func (chain *TestChain) GetContext() sdk.Context + func (chain *TestChain) GetPortCapability(portID string) *capabilitytypes.Capability + func (chain *TestChain) GetPrefix() commitmenttypes.MerklePrefix + func (chain *TestChain) GetValsAtHeight(height int64) (*octypes.ValidatorSet, bool) + func (chain *TestChain) InstantiateContract(codeID uint64, initMsg []byte) sdk.AccAddress + func (chain *TestChain) NextBlock() + func (chain *TestChain) QueryConsensusStateProof(clientID string) ([]byte, clienttypes.Height) + func (chain *TestChain) QueryProof(key []byte) ([]byte, clienttypes.Height) + func (chain *TestChain) QueryProofAtHeight(key []byte, height int64) ([]byte, clienttypes.Height) + func (chain *TestChain) QueryUpgradeProof(key []byte, height uint64) ([]byte, clienttypes.Height) + func (chain *TestChain) SeedNewContractInstance() sdk.AccAddress + func (chain *TestChain) SendMsgs(msgs ...sdk.Msg) (*sdk.Result, error) + func (chain *TestChain) SmartQuery(contractAddr string, queryMsg interface{}, response interface{}) error + func (chain *TestChain) StoreCode(byteCode []byte) types.MsgStoreCodeResponse + func (chain *TestChain) StoreCodeFile(filename string) types.MsgStoreCodeResponse