Versions in this module Expand all Collapse all v6 v6.0.0 Dec 6, 2023 Changes in this version + func ConnectDB(ctx context.Context, databasePath string) (*sql.DB, error) + func Migrate(db *sql.DB, gitSha string) error + type BlockSaver interface + SaveBlock func(ctx context.Context, height uint64, txs []Tx) error + type Chain struct + func (chain *Chain) SaveBlock(ctx context.Context, height uint64, txs []Tx) error + type Collector struct + func NewCollector(log *zap.Logger, finder TxFinder, saver BlockSaver, rate time.Duration) *Collector + func (p *Collector) Collect(ctx context.Context) + func (p *Collector) Stop() + type CosmosMessageResult struct + ChannelID sql.NullString + ClientChainID sql.NullString + ClientID sql.NullString + ConnID sql.NullString + CounterpartyChannelID sql.NullString + CounterpartyClientID sql.NullString + CounterpartyConnID sql.NullString + CounterpartyPortID sql.NullString + Height int64 + Index int + PortID sql.NullString + Type string + type Event struct + Attributes []EventAttribute + Type string + type EventAttribute struct + Key string + Value string + type Query struct + func NewQuery(db *sql.DB) *Query + func (q *Query) CosmosMessages(ctx context.Context, chainPkey int64) ([]CosmosMessageResult, error) + func (q *Query) CurrentSchemaVersion(ctx context.Context) (SchemaVersionResult, error) + func (q *Query) RecentTestCases(ctx context.Context, limit int) ([]TestCaseResult, error) + func (q *Query) Transactions(ctx context.Context, chainPkey int64) ([]TxResult, error) + type SchemaVersionResult struct + CreatedAt time.Time + GitSha string + type TestCase struct + func CreateTestCase(ctx context.Context, db *sql.DB, testName, gitSha string) (*TestCase, error) + func (tc *TestCase) AddChain(ctx context.Context, chainID, chainType string) (*Chain, error) + type TestCaseResult struct + ChainHeight sql.NullInt64 + ChainID string + ChainPKey int64 + ChainType string + CreatedAt time.Time + GitSha string + ID int64 + Name string + TxTotal sql.NullInt64 + type Tx struct + Data []byte + Events []Event + type TxFinder interface + FindTxs func(ctx context.Context, height uint64) ([]Tx, error) + type TxResult struct + Height int64 + Tx []byte Other modules containing this package github.com/strangelove-ventures/interchaintest/v7 github.com/strangelove-ventures/interchaintest/v8