evmtesting

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertAccounts

func ConvertAccounts(accounts [][]byte) []common.Address

func MidToInternalType

func MidToInternalType(m MidLevelTestStruct) chain_reader_tester.MidLevelTestStruct

func OracleIdsToBytes

func OracleIdsToBytes(oracleIDs [32]commontypes.OracleID) [32]byte

func RunChainReaderEvmTests

func RunChainReaderEvmTests[T TestingT[T]](t T, it *EVMChainReaderInterfaceTester[T])

func ToInternalType

func ToInternalType(testStruct TestStruct) chain_reader_tester.TestStruct

Types

type EVMChainReaderInterfaceTester

type EVMChainReaderInterfaceTester[T TestingT[T]] struct {
	Helper EVMChainReaderInterfaceTesterHelper[T]
	// contains filtered or unexported fields
}

func (*EVMChainReaderInterfaceTester[T]) AwaitTx

func (it *EVMChainReaderInterfaceTester[T]) AwaitTx(t T, tx *evmtypes.Transaction)

func (*EVMChainReaderInterfaceTester[T]) GetAccountBytes

func (it *EVMChainReaderInterfaceTester[T]) GetAccountBytes(i int) []byte

func (*EVMChainReaderInterfaceTester[T]) GetAuthWithGasSet

func (it *EVMChainReaderInterfaceTester[T]) GetAuthWithGasSet(t T) *bind.TransactOpts

func (*EVMChainReaderInterfaceTester[T]) GetBindings

func (it *EVMChainReaderInterfaceTester[T]) GetBindings(_ T) []clcommontypes.BoundContract

func (*EVMChainReaderInterfaceTester[T]) GetChainReader

func (it *EVMChainReaderInterfaceTester[T]) GetChainReader(t T) clcommontypes.ContractReader

func (*EVMChainReaderInterfaceTester[T]) IncNonce

func (it *EVMChainReaderInterfaceTester[T]) IncNonce()

func (*EVMChainReaderInterfaceTester[T]) MaxWaitTimeForEvents

func (it *EVMChainReaderInterfaceTester[T]) MaxWaitTimeForEvents() time.Duration

func (*EVMChainReaderInterfaceTester[T]) Name

func (it *EVMChainReaderInterfaceTester[T]) Name() string

func (*EVMChainReaderInterfaceTester[T]) SetLatestValue added in v2.14.0

func (it *EVMChainReaderInterfaceTester[T]) SetLatestValue(t T, testStruct *TestStruct)

func (*EVMChainReaderInterfaceTester[T]) Setup

func (it *EVMChainReaderInterfaceTester[T]) Setup(t T)

func (*EVMChainReaderInterfaceTester[T]) TriggerEvent

func (it *EVMChainReaderInterfaceTester[T]) TriggerEvent(t T, testStruct *TestStruct)

type EVMChainReaderInterfaceTesterHelper

type EVMChainReaderInterfaceTesterHelper[T TestingT[T]] interface {
	SetupAuth(t T) *bind.TransactOpts
	Client(t T) client.Client
	Commit()
	Backend() bind.ContractBackend
	ChainID() *big.Int
	Context(t T) context.Context
	NewSqlxDB(t T) *sqlx.DB
	MaxWaitTimeForEvents() time.Duration
	GasPriceBufferPercent() int64
}

Jump to

Keyboard shortcuts

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