optimism

package
v0.0.0-...-607e7b9 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrencyFetcher

type CurrencyFetcher struct {
	mock.Mock
}

CurrencyFetcher is an autogenerated mock type for the CurrencyFetcher type

func NewCurrencyFetcher

func NewCurrencyFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *CurrencyFetcher

NewCurrencyFetcher creates a new instance of CurrencyFetcher. 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 (*CurrencyFetcher) FetchCurrency

func (_m *CurrencyFetcher) FetchCurrency(ctx context.Context, blockNum uint64, contractAddress string) (*types.Currency, error)

FetchCurrency provides a mock function with given fields: ctx, blockNum, contractAddress

type GraphQL

type GraphQL struct {
	mock.Mock
}

GraphQL is an autogenerated mock type for the GraphQL type

func NewGraphQL

func NewGraphQL(t interface {
	mock.TestingT
	Cleanup(func())
}) *GraphQL

NewGraphQL creates a new instance of GraphQL. 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 (*GraphQL) Query

func (_m *GraphQL) Query(ctx context.Context, input string) (string, error)

Query provides a mock function with given fields: ctx, input

type JSONRPC

type JSONRPC struct {
	mock.Mock
}

JSONRPC is an autogenerated mock type for the JSONRPC type

func NewJSONRPC

func NewJSONRPC(t interface {
	mock.TestingT
	Cleanup(func())
}) *JSONRPC

NewJSONRPC creates a new instance of JSONRPC. 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 (*JSONRPC) BatchCallContext

func (_m *JSONRPC) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error

BatchCallContext provides a mock function with given fields: ctx, b

func (*JSONRPC) CallContext

func (_m *JSONRPC) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error

CallContext provides a mock function with given fields: ctx, result, method, args

func (*JSONRPC) Close

func (_m *JSONRPC) Close()

Close provides a mock function with given fields:

Jump to

Keyboard shortcuts

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