mocks

package
v2.14.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainReader

type ChainReader struct {
	mock.Mock
}

ChainReader is an autogenerated mock type for the ChainReader type

func NewChainReader

func NewChainReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChainReader

NewChainReader creates a new instance of ChainReader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChainReader) Bind

func (_m *ChainReader) Bind(ctx context.Context, bindings []types.BoundContract) error

Bind provides a mock function with given fields: ctx, bindings

func (*ChainReader) Close

func (_m *ChainReader) Close() error

Close provides a mock function with given fields:

func (*ChainReader) GetLatestValue

func (_m *ChainReader) GetLatestValue(ctx context.Context, contractName string, method string, params interface{}, returnVal interface{}) error

GetLatestValue provides a mock function with given fields: ctx, contractName, method, params, returnVal

func (*ChainReader) HealthReport

func (_m *ChainReader) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*ChainReader) Name

func (_m *ChainReader) Name() string

Name provides a mock function with given fields:

func (*ChainReader) QueryKey

func (_m *ChainReader) QueryKey(ctx context.Context, contractName string, filter query.KeyFilter, limitAndSort query.LimitAndSort, sequenceDataType interface{}) ([]types.Sequence, error)

QueryKey provides a mock function with given fields: ctx, contractName, filter, limitAndSort, sequenceDataType

func (*ChainReader) Ready

func (_m *ChainReader) Ready() error

Ready provides a mock function with given fields:

func (*ChainReader) Start

func (_m *ChainReader) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type ChainWriter

type ChainWriter struct {
	mock.Mock
}

ChainWriter is an autogenerated mock type for the ChainWriter type

func NewChainWriter

func NewChainWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChainWriter

NewChainWriter creates a new instance of ChainWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChainWriter) GetFeeComponents

func (_m *ChainWriter) GetFeeComponents(ctx context.Context) (*types.ChainFeeComponents, error)

GetFeeComponents provides a mock function with given fields: ctx

func (*ChainWriter) GetTransactionStatus

func (_m *ChainWriter) GetTransactionStatus(ctx context.Context, transactionID string) (types.TransactionStatus, error)

GetTransactionStatus provides a mock function with given fields: ctx, transactionID

func (*ChainWriter) SubmitTransaction

func (_m *ChainWriter) SubmitTransaction(ctx context.Context, contractName string, method string, args interface{}, transactionID string, toAddress string, meta *types.TxMeta, value *big.Int) error

SubmitTransaction provides a mock function with given fields: ctx, contractName, method, args, transactionID, toAddress, meta, value

Jump to

Keyboard shortcuts

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