Documentation ¶
Index ¶
- Variables
- func RunCommitLOOP(t *testing.T, p types.CCIPCommitFactoryGenerator)
- func RunExecutionLOOP(t *testing.T, p types.CCIPExecutionFactoryGenerator)
- type CommitLOOPTester
- type CommitProviderEvaluator
- type CommitProviderTester
- type CommitStoreReaderEvaluator
- type ExecProviderEvaluator
- type ExecProviderTester
- type ExecutionLOOPTester
- type GasPriceEstimatorCommitEvaluator
- type GasPriceEstimatorExecEvaluator
- type OffRampEvaluator
- type OnRampEvaluator
- type PriceGetterEvaluator
- type PriceRegistryReaderEvaluator
- type TokenDataReaderEvaluator
- type TokenPoolBatchedReaderEvaluator
Constants ¶
This section is empty.
Variables ¶
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}, } )
var CommitFactoryServer = commitFactoryServer{ // contains filtered or unexported fields }
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.
var CommitStoreReader = staticCommitStoreReader{ // contains filtered or unexported fields }
CommitStoreReader is a test implementation of the CommitStoreReader interface
var ExecFactoryServer = execFactoryServer{ // contains filtered or unexported fields }
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.
var GasPriceEstimatorCommit = staticGasPriceEstimatorCommit{ // contains filtered or unexported fields }
var GasPriceEstimatorExec = staticGasPriceEstimatorExec{ // contains filtered or unexported fields }
var OffRampReader = staticOffRamp{ // contains filtered or unexported fields }
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.
var PriceGetter = staticPriceGetter{ // contains filtered or unexported fields }
PriceGetter is a static test implementation of testtypes.Evaluator for cciptypes.PriceGetter.
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
var TokenDataReader = staticTokenDataReader{ staticTokenDataReaderConfig{ // contains filtered or unexported fields }, }
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 ¶
func (e CommitLOOPTester) Run(t *testing.T, p types.CCIPCommitFactoryGenerator)
type CommitProviderEvaluator ¶
type CommitProviderEvaluator interface { types.CCIPCommitProvider testtypes.Evaluator[types.CCIPCommitProvider] }
type CommitProviderTester ¶
type CommitProviderTester interface { types.CCIPCommitProvider testtypes.Evaluator[types.CCIPCommitProvider] testtypes.AssertEqualer[types.CCIPCommitProvider] }
type CommitStoreReaderEvaluator ¶
type CommitStoreReaderEvaluator interface { ccip.CommitStoreReader testtypes.Evaluator[ccip.CommitStoreReader] }
type ExecProviderEvaluator ¶
type ExecProviderEvaluator interface { types.CCIPExecProvider testtypes.Evaluator[types.CCIPExecProvider] }
type ExecProviderTester ¶
type ExecProviderTester interface { types.CCIPExecProvider testtypes.Evaluator[types.CCIPExecProvider] testtypes.AssertEqualer[types.CCIPExecProvider] }
type ExecutionLOOPTester ¶
type ExecutionLOOPTester struct { SrcProvider types.CCIPExecProvider DstProvider types.CCIPExecProvider SrcChainID int64 DstChainID int64 SourceTokenAddress string }
func (ExecutionLOOPTester) Run ¶
func (e ExecutionLOOPTester) Run(t *testing.T, p types.CCIPExecutionFactoryGenerator)
type GasPriceEstimatorCommitEvaluator ¶
type GasPriceEstimatorCommitEvaluator interface { cciptypes.GasPriceEstimatorCommit testtypes.Evaluator[cciptypes.GasPriceEstimatorCommit] }
type GasPriceEstimatorExecEvaluator ¶
type GasPriceEstimatorExecEvaluator interface { cciptypes.GasPriceEstimatorExec testtypes.Evaluator[cciptypes.GasPriceEstimatorExec] }
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] }
type TokenDataReaderEvaluator ¶
type TokenDataReaderEvaluator interface { cciptypes.TokenDataReader testtypes.Evaluator[cciptypes.TokenDataReader] }
type TokenPoolBatchedReaderEvaluator ¶
type TokenPoolBatchedReaderEvaluator interface { cciptypes.TokenPoolBatchedReader testtypes.Evaluator[cciptypes.TokenPoolBatchedReader] }