mock

package
v2.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChainProcessor

type MockChainProcessor struct {
	// contains filtered or unexported fields
}

func NewMockChainProcessor

func NewMockChainProcessor(ctx context.Context, log *zap.Logger, chainID string, getMockMessages func() []TransactionMessage) *MockChainProcessor

func (*MockChainProcessor) Provider

func (mcp *MockChainProcessor) Provider() provider.ChainProvider

Provider returns the ChainProvider, which provides the methods for querying, assembling IBC messages, and sending transactions.

func (*MockChainProcessor) Run

func (mcp *MockChainProcessor) Run(ctx context.Context, initialBlockHistory uint64, _ *processor.StuckPacket) error

func (*MockChainProcessor) SetPathProcessors

func (mcp *MockChainProcessor) SetPathProcessors(pathProcessors processor.PathProcessors)

type TransactionMessage

type TransactionMessage struct {
	EventType  string
	PacketInfo *chantypes.Packet
}

types used for parsing IBC messages from transactions, then passed to message handlers for mutating the MockChainProcessor state if necessary and retaining applicable messages for sending to the Path Processors

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL