mocks

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IClient

type IClient struct {
	mock.Mock
}

IClient is an autogenerated mock type for the IClient type

func (*IClient) CallContract

func (_m *IClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, msg, blockNumber

func (*IClient) FilterLogs

func (_m *IClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)

FilterLogs provides a mock function with given fields: ctx, q

func (*IClient) GetBalance

func (_m *IClient) GetBalance(ctx context.Context, hexAddr string) (*big.Int, error)

GetBalance provides a mock function with given fields: ctx, hexAddr

func (*IClient) GetBlockByHash

func (_m *IClient) GetBlockByHash(hash common.Hash) (*bsctypes.Block, error)

GetBlockByHash provides a mock function with given fields: hash

func (*IClient) GetBlockNumber

func (_m *IClient) GetBlockNumber() (uint64, error)

GetBlockNumber provides a mock function with given fields:

func (*IClient) GetBlockReceipts

func (_m *IClient) GetBlockReceipts(hash common.Hash) (types.Receipts, error)

GetBlockReceipts provides a mock function with given fields: hash

func (*IClient) GetChainID

func (_m *IClient) GetChainID() *big.Int

GetChainID provides a mock function with given fields:

func (*IClient) GetHeaderByHeight

func (_m *IClient) GetHeaderByHeight(ctx context.Context, height *big.Int) (*types.Header, error)

GetHeaderByHeight provides a mock function with given fields: ctx, height

func (*IClient) GetMedianGasPriceForBlock

func (_m *IClient) GetMedianGasPriceForBlock(ctx context.Context) (*big.Int, *big.Int, error)

GetMedianGasPriceForBlock provides a mock function with given fields: ctx

func (*IClient) GetStatus

func (_m *IClient) GetStatus(opts *bind.CallOpts, _link string) (bmcperiphery.TypesLinkStats, error)

GetStatus provides a mock function with given fields: opts, _link

func (*IClient) HandleRelayMessage

func (_m *IClient) HandleRelayMessage(opts *bind.TransactOpts, _prev string, _msg []byte) (*types.Transaction, error)

HandleRelayMessage provides a mock function with given fields: opts, _prev, _msg

func (*IClient) Log

func (_m *IClient) Log() log.Logger

Log provides a mock function with given fields:

func (*IClient) NonceAt

func (_m *IClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)

NonceAt provides a mock function with given fields: ctx, account, blockNumber

func (*IClient) ParseMessage

func (_m *IClient) ParseMessage(_a0 types.Log) (*bmcperiphery.BmcperipheryMessage, error)

ParseMessage provides a mock function with given fields: _a0

func (*IClient) SuggestGasPrice

func (_m *IClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice provides a mock function with given fields: ctx

func (*IClient) TransactionByHash

func (_m *IClient) TransactionByHash(ctx context.Context, blockHash common.Hash) (*types.Transaction, bool, error)

TransactionByHash provides a mock function with given fields: ctx, blockHash

func (*IClient) TransactionCount

func (_m *IClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)

TransactionCount provides a mock function with given fields: ctx, blockHash

func (*IClient) TransactionInBlock

func (_m *IClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)

TransactionInBlock provides a mock function with given fields: ctx, blockHash, index

func (*IClient) TransactionReceipt

func (_m *IClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

TransactionReceipt provides a mock function with given fields: ctx, txHash

Jump to

Keyboard shortcuts

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