mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalClient

type InternalClient struct {
	mock.Mock
}

InternalClient is an autogenerated mock type for the InternalClient type

func NewInternalClient

func NewInternalClient(t mockConstructorTestingTNewInternalClient) *InternalClient

NewInternalClient creates a new instance of InternalClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*InternalClient) Balance

Balance provides a mock function with given fields: ctx, account, block, currencies

func (*InternalClient) BatchCallContext

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

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

func (*InternalClient) BlockAuthor

func (_m *InternalClient) BlockAuthor(ctx context.Context, blockIndex int64) (string, error)

BlockAuthor provides a mock function with given fields: ctx, blockIndex

func (*InternalClient) BlockRewardTransaction

func (_m *InternalClient) BlockRewardTransaction(blockIdentifier *types.BlockIdentifier, miner string, uncles []*coretypes.Header) *types.Transaction

BlockRewardTransaction provides a mock function with given fields: blockIdentifier, miner, uncles

func (*InternalClient) CallContext

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

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

func (*InternalClient) EstimateGas

func (_m *InternalClient) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, msg

func (*InternalClient) GetBlockReceipts

GetBlockReceipts provides a mock function with given fields: ctx, blockHash, txs, baseFee

func (*InternalClient) GetClient

GetClient provides a mock function with given fields:

func (*InternalClient) GetContractCallGasLimit

func (_m *InternalClient) GetContractCallGasLimit(ctx context.Context, toAddress string, fromAddress string, data []byte) (uint64, error)

GetContractCallGasLimit provides a mock function with given fields: ctx, toAddress, fromAddress, data

func (*InternalClient) GetContractCurrency

func (_m *InternalClient) GetContractCurrency(addr common.Address, erc20 bool) (*rosetta_geth_sdkclient.ContractCurrency, error)

GetContractCurrency provides a mock function with given fields: addr, erc20

func (*InternalClient) GetErc20TransferGasLimit

func (_m *InternalClient) GetErc20TransferGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int, currency *types.Currency) (uint64, error)

GetErc20TransferGasLimit provides a mock function with given fields: ctx, toAddress, fromAddress, value, currency

func (*InternalClient) GetGasPrice

func (_m *InternalClient) GetGasPrice(ctx context.Context, input rosetta_geth_sdkclient.Options) (*big.Int, error)

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

func (*InternalClient) GetLoadedTransaction

GetLoadedTransaction provides a mock function with given fields: ctx, request

func (*InternalClient) GetNativeTransferGasLimit

func (_m *InternalClient) GetNativeTransferGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int) (uint64, error)

GetNativeTransferGasLimit provides a mock function with given fields: ctx, toAddress, fromAddress, value

func (*InternalClient) GetNonce

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

func (*InternalClient) GetRosettaConfig

func (_m *InternalClient) GetRosettaConfig() configuration.RosettaConfig

GetRosettaConfig provides a mock function with given fields:

func (*InternalClient) GetTransactionReceipt

GetTransactionReceipt provides a mock function with given fields: ctx, tx

func (*InternalClient) GetUncles

GetUncles provides a mock function with given fields: ctx, head, body

func (*InternalClient) ParseOps

ParseOps provides a mock function with given fields: tx

func (*InternalClient) PopulateCrossChainTransactions

func (_m *InternalClient) PopulateCrossChainTransactions(_a0 *coretypes.Block, _a1 []*rosetta_geth_sdkclient.LoadedTransaction) ([]*types.Transaction, error)

PopulateCrossChainTransactions provides a mock function with given fields: _a0, _a1

func (*InternalClient) Status

Status provides a mock function with given fields: ctx

func (*InternalClient) Submit

func (_m *InternalClient) Submit(ctx context.Context, signedTx *coretypes.Transaction) error

Submit provides a mock function with given fields: ctx, signedTx

func (*InternalClient) TraceBlockByHash

TraceBlockByHash provides a mock function with given fields: ctx, blockHash, txs

func (*InternalClient) TraceReplayBlockTransactions

func (_m *InternalClient) TraceReplayBlockTransactions(ctx context.Context, hsh string) (map[string][]*rosetta_geth_sdkclient.FlatCall, error)

TraceReplayBlockTransactions provides a mock function with given fields: ctx, hsh

func (*InternalClient) TraceReplayTransaction

func (_m *InternalClient) TraceReplayTransaction(ctx context.Context, hsh string) (json.RawMessage, []*rosetta_geth_sdkclient.FlatCall, error)

TraceReplayTransaction provides a mock function with given fields: ctx, hsh

func (*InternalClient) TraceTransaction

TraceTransaction provides a mock function with given fields: ctx, hash

Jump to

Keyboard shortcuts

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