test

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ExecutionRelayArgs = types.RelayArgs{
		ExternalJobID: uuid.MustParse("12348153-1234-5678-9012-fd0985d00000"),
		JobID:         42,
		ContractID:    "exec-testcontract",
		New:           true,
		RelayConfig:   []byte{1: 4, 36: 101},
		ProviderType:  string(types.CCIPExecution),
	}
	ExecutionPluginArgs = types.PluginArgs{
		TransmitterID: "exec-testtransmitter",
		PluginConfig:  []byte{133: 79},
	}
	CommitRelayArgs = types.RelayArgs{
		ExternalJobID: uuid.MustParse("12348153-1234-5678-9012-fd0985d00000"),
		JobID:         42,
		ContractID:    "commit-testcontract",
		New:           true,
		RelayConfig:   []byte{1: 4, 36: 101},
		ProviderType:  string(types.CCIPCommit),
	}
	CommitPluginArgs = types.PluginArgs{
		TransmitterID: "commit-testtransmitter",
		PluginConfig:  []byte{133: 79},
	}
)
View Source
var CommitFactoryServer = commitFactoryServer{
	// contains filtered or unexported fields
}
View Source
var CommitProvider = staticCommitProvider{
	// contains filtered or unexported fields
}

CommitProvider is a static implementation of the CommitProviderTester interface. It is to be used in tests the verify grpc implementations of the CommitProvider interface.

View Source
var CommitStoreReader = staticCommitStoreReader{
	// contains filtered or unexported fields
}

CommitStoreReader is a test implementation of the CommitStoreReader interface

View Source
var ExecFactoryServer = execFactoryServer{
	// contains filtered or unexported fields
}
View Source
var ExecutionProvider = staticExecProvider{
	// contains filtered or unexported fields
}

ExecutionProvider is a static implementation of the ExecProviderTester interface. It is to be used in tests the verify grpc implementations of the ExecProvider interface.

View Source
var GasPriceEstimatorCommit = staticGasPriceEstimatorCommit{
	// contains filtered or unexported fields
}
View Source
var GasPriceEstimatorExec = staticGasPriceEstimatorExec{
	// contains filtered or unexported fields
}
View Source
var OffRampReader = staticOffRamp{
	// contains filtered or unexported fields
}
View Source
var OnRampReader = staticOnRamp{
	// contains filtered or unexported fields
}

OnRampReader is a static test implementation of testtypes.Evaluator for ccip.OnRampReader. The implementation is a simple struct that returns predefined responses.

View Source
var PriceGetter = staticPriceGetter{
	// contains filtered or unexported fields
}

PriceGetter is a static test implementation of testtypes.Evaluator for cciptypes.PriceGetter.

View Source
var PriceRegistryReader = staticPriceRegistryReader{
	staticPriceRegistryReaderConfig{
		// contains filtered or unexported fields
	},
}

PriceRegistryReader is a static implementation of the ccip.PriceRegistryReader interface. It implements [testtypes.Evaluator[ccip.PriceRegistryReader]] and can be use as a test implementation of the ccip.PriceRegistryReader interface. when grpc serialization is required

View Source
var TokenDataReader = staticTokenDataReader{
	staticTokenDataReaderConfig{
		// contains filtered or unexported fields
	},
}
View Source
var TokenPoolBatchedReader = staticTokenPoolBatchedReader{
	staticTokenPoolBatchedReaderConfig{
		// contains filtered or unexported fields
	},
}

TokenPoolBatchedReader is a static implementation of the TokenPoolBatchedReaderEvaluator interface.

Functions

func RunCommitLOOP

func RunCommitLOOP(t *testing.T, p types.CCIPCommitFactoryGenerator)

func RunExecutionLOOP

func RunExecutionLOOP(t *testing.T, p types.CCIPExecutionFactoryGenerator)

Types

type CommitLOOPTester

type CommitLOOPTester struct {
	types.CCIPCommitProvider
}

func (CommitLOOPTester) Run

type CommitStoreReaderEvaluator

type CommitStoreReaderEvaluator interface {
	ccip.CommitStoreReader
	testtypes.Evaluator[ccip.CommitStoreReader]
}

type ExecProviderEvaluator

type ExecProviderEvaluator interface {
	types.CCIPExecProvider
	testtypes.Evaluator[types.CCIPExecProvider]
}

type ExecutionLOOPTester

type ExecutionLOOPTester struct {
	SrcProvider        types.CCIPExecProvider
	DstProvider        types.CCIPExecProvider
	SrcChainID         int64
	DstChainID         int64
	SourceTokenAddress string
}

func (ExecutionLOOPTester) Run

type OffRampEvaluator

type OffRampEvaluator interface {
	ccip.OffRampReader
	testtypes.Evaluator[ccip.OffRampReader]
}

type OnRampEvaluator

type OnRampEvaluator interface {
	ccip.OnRampReader
	testtypes.Evaluator[ccip.OnRampReader]
}

type PriceGetterEvaluator

type PriceGetterEvaluator interface {
	cciptypes.PriceGetter
	testtypes.Evaluator[cciptypes.PriceGetter]
}

type PriceRegistryReaderEvaluator

type PriceRegistryReaderEvaluator interface {
	ccip.PriceRegistryReader
	testtypes.Evaluator[ccip.PriceRegistryReader]
}

Jump to

Keyboard shortcuts

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