services

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 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 Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Balance

Balance provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Client) BatchCallContext

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

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

func (*Client) BlockAuthor

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

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

func (*Client) BlockRewardTransaction

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

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

func (*Client) CallContext

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

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

func (*Client) GetBaseFee added in v0.0.7

func (_m *Client) GetBaseFee(ctx context.Context) (*big.Int, error)

GetBaseFee provides a mock function with given fields: ctx

func (*Client) GetBlockReceipts

func (_m *Client) GetBlockReceipts(ctx context.Context, blockHash common.Hash, txs []client.RPCTransaction, baseFee *big.Int) ([]*client.RosettaTxReceipt, error)

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

func (*Client) GetContractCallGasLimit

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

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

func (*Client) GetContractCurrency

func (_m *Client) GetContractCurrency(addr common.Address, erc20 bool) (*client.ContractCurrency, error)

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

func (*Client) GetErc20TransferGasLimit

func (_m *Client) 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 (*Client) GetGasFeeCap added in v0.0.7

func (_m *Client) GetGasFeeCap(_a0 context.Context, _a1 client.Options, _a2 *big.Int) (*big.Int, error)

GetGasFeeCap provides a mock function with given fields: _a0, _a1, _a2

func (*Client) GetGasPrice

func (_m *Client) GetGasPrice(_a0 context.Context, _a1 client.Options) (*big.Int, error)

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

func (*Client) GetGasTipCap added in v0.0.7

func (_m *Client) GetGasTipCap(_a0 context.Context, _a1 client.Options) (*big.Int, error)

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

func (*Client) GetL1DataFee added in v0.0.7

func (_m *Client) GetL1DataFee(ctx context.Context, ethTxBytes []byte) (*big.Int, error)

GetL1DataFee provides a mock function with given fields: ctx, ethTxBytes

func (*Client) GetLoadedTransaction

func (_m *Client) GetLoadedTransaction(ctx context.Context, request *types.BlockTransactionRequest) (*client.LoadedTransaction, error)

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

func (*Client) GetNativeTransferGasLimit

func (_m *Client) 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 (*Client) GetNonce

func (_m *Client) GetNonce(_a0 context.Context, _a1 client.Options) (uint64, error)

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

func (*Client) GetRosettaConfig

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

GetRosettaConfig provides a mock function with given fields:

func (*Client) GetTransactionReceipt

func (_m *Client) GetTransactionReceipt(ctx context.Context, tx *client.LoadedTransaction) (*client.RosettaTxReceipt, error)

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

func (*Client) GetUncles

func (_m *Client) GetUncles(ctx context.Context, head *coretypes.Header, body *client.RPCBlock) ([]*coretypes.Header, error)

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

func (*Client) ParseOps

func (_m *Client) ParseOps(tx *client.LoadedTransaction) ([]*types.Operation, error)

ParseOps provides a mock function with given fields: tx

func (*Client) PopulateCrossChainTransactions

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

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

func (*Client) Status

Status provides a mock function with given fields: _a0

func (*Client) Submit

func (_m *Client) Submit(_a0 context.Context, _a1 *coretypes.Transaction) error

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

func (*Client) TraceBlockByHash

func (_m *Client) TraceBlockByHash(_a0 context.Context, _a1 common.Hash, _a2 []client.RPCTransaction) (map[string][]*client.FlatCall, error)

TraceBlockByHash provides a mock function with given fields: _a0, _a1, _a2

func (*Client) TraceReplayBlockTransactions

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

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

func (*Client) TraceReplayTransaction

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

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

func (*Client) TraceTransaction

func (_m *Client) TraceTransaction(ctx context.Context, hash common.Hash) (json.RawMessage, []*client.FlatCall, error)

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