package
2.0.0
Repository: https://github.com/lorenzo-protocol/lorenzo.git
Documentation: pkg.go.dev

# README

IBC Testing

This package contains the necessary code to test the IBC modules. It is a forked version of IBC Testing, customized for Lorenzo.

The customization aims to maximize compatibility with the original source code while ensuring it is suitably adapted for Lorenzo’s specific requirements.

The maintainer must keep it updated with the currently used version of the IBC code repository to ensure ongoing compatibility and functionality.

# Packages

This package is only intended to be used for testing core IBC.
No description provided by the author

# Functions

ApplyValSetChanges takes in tmtypes.ValidatorSet and []abci.ValidatorUpdate and will return a new tmtypes.ValidatorSet which has the provided validator updates applied to the provided validator set.
AssertEvents asserts that expected events are present in the actual events.
GenerateKeys generates a new set of secp256k1 private keys and public keys.
GetChainID returns the chainID used for the provided index.
MakeBlockID copied unimported test functions from tmtypes to use them here.
No description provided by the author
No description provided by the author
NewCoordinator initializes Coordinator with N TestChain's.
NewDefaultEndpoint constructs a new endpoint using default values.
NewEndpoint constructs a new endpoint without the counterparty.
NewPath constructs an endpoint for each chain using the default values for the endpoints.
NewSolomachine returns a new solomachine instance with an `nKeys` amount of generated private/public key pairs and a sequence starting at 1.
No description provided by the author
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.
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.
ParsePacketFromEvents parses events emitted from a MsgRecvPacket and returns the acknowledgement.
SetupTestingApp is a test helper function to initialize a new Lorenzo app.
SetupWithGenesisValSet initializes a new LorenzoApp with a validator set and genesis accounts that also act as delegators.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
used for testing proposals.
Application Ports.
Default params constants used to create a TM client.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DefaultTrustLevel sets params variables used to create a TM client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Coordinator is a testing struct which contains N TestChain's.
Endpoint is a which represents a channel endpoint and its associated client and connections.
Path contains two endpoints representing two chains connected over IBC.
No description provided by the author
Solomachine is a testing helper used to simulate a counterparty solo machine client.
No description provided by the author
TestChain is a testing struct that wraps a simapp with the last TM Header, the current ABCI header and the validators of the TestChain.

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author