Documentation ¶
Index ¶
- type InternalClient
- func (_m *InternalClient) Balance(ctx context.Context, account *types.AccountIdentifier, ...) (*types.AccountBalanceResponse, error)
- func (_m *InternalClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *InternalClient) BlockAuthor(ctx context.Context, blockIndex int64) (string, error)
- func (_m *InternalClient) BlockRewardTransaction(blockIdentifier *types.BlockIdentifier, miner string, ...) *types.Transaction
- func (_m *InternalClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *InternalClient) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
- func (_m *InternalClient) GetBlockReceipts(ctx context.Context, blockHash common.Hash, ...) ([]*rosetta_geth_sdkclient.RosettaTxReceipt, error)
- func (_m *InternalClient) GetClient() *rosetta_geth_sdkclient.SDKClient
- func (_m *InternalClient) GetContractCallGasLimit(ctx context.Context, toAddress string, fromAddress string, data []byte) (uint64, error)
- func (_m *InternalClient) GetContractCurrency(addr common.Address, erc20 bool) (*rosetta_geth_sdkclient.ContractCurrency, error)
- func (_m *InternalClient) GetErc20TransferGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int, ...) (uint64, error)
- func (_m *InternalClient) GetGasPrice(ctx context.Context, input rosetta_geth_sdkclient.Options) (*big.Int, error)
- func (_m *InternalClient) GetLoadedTransaction(ctx context.Context, request *types.BlockTransactionRequest) (*rosetta_geth_sdkclient.LoadedTransaction, error)
- func (_m *InternalClient) GetNativeTransferGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int) (uint64, error)
- func (_m *InternalClient) GetNonce(ctx context.Context, input rosetta_geth_sdkclient.Options) (uint64, error)
- func (_m *InternalClient) GetRosettaConfig() configuration.RosettaConfig
- func (_m *InternalClient) GetTransactionReceipt(ctx context.Context, tx *rosetta_geth_sdkclient.LoadedTransaction) (*rosetta_geth_sdkclient.RosettaTxReceipt, error)
- func (_m *InternalClient) GetUncles(ctx context.Context, head *coretypes.Header, ...) ([]*coretypes.Header, error)
- func (_m *InternalClient) ParseOps(tx *rosetta_geth_sdkclient.LoadedTransaction) ([]*types.Operation, error)
- func (_m *InternalClient) PopulateCrossChainTransactions(_a0 *coretypes.Block, _a1 []*rosetta_geth_sdkclient.LoadedTransaction) ([]*types.Transaction, error)
- func (_m *InternalClient) Status(ctx context.Context) (*types.BlockIdentifier, int64, *types.SyncStatus, []*types.Peer, error)
- func (_m *InternalClient) Submit(ctx context.Context, signedTx *coretypes.Transaction) error
- func (_m *InternalClient) TraceBlockByHash(ctx context.Context, blockHash common.Hash, ...) (map[string][]*rosetta_geth_sdkclient.FlatCall, error)
- func (_m *InternalClient) TraceReplayBlockTransactions(ctx context.Context, hsh string) (map[string][]*rosetta_geth_sdkclient.FlatCall, error)
- func (_m *InternalClient) TraceReplayTransaction(ctx context.Context, hsh string) (json.RawMessage, []*rosetta_geth_sdkclient.FlatCall, error)
- func (_m *InternalClient) TraceTransaction(ctx context.Context, hash common.Hash) (json.RawMessage, []*rosetta_geth_sdkclient.FlatCall, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InternalClient ¶
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 ¶
func (_m *InternalClient) Balance(ctx context.Context, account *types.AccountIdentifier, block *types.PartialBlockIdentifier, currencies []*types.Currency) (*types.AccountBalanceResponse, error)
Balance provides a mock function with given fields: ctx, account, block, currencies
func (*InternalClient) BatchCallContext ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*InternalClient) BlockAuthor ¶
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 ¶
EstimateGas provides a mock function with given fields: ctx, msg
func (*InternalClient) GetBlockReceipts ¶
func (_m *InternalClient) GetBlockReceipts(ctx context.Context, blockHash common.Hash, txs []rosetta_geth_sdkclient.RPCTransaction, baseFee *big.Int) ([]*rosetta_geth_sdkclient.RosettaTxReceipt, error)
GetBlockReceipts provides a mock function with given fields: ctx, blockHash, txs, baseFee
func (*InternalClient) GetClient ¶
func (_m *InternalClient) GetClient() *rosetta_geth_sdkclient.SDKClient
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 ¶
func (_m *InternalClient) GetLoadedTransaction(ctx context.Context, request *types.BlockTransactionRequest) (*rosetta_geth_sdkclient.LoadedTransaction, error)
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 ¶
func (_m *InternalClient) GetNonce(ctx context.Context, input rosetta_geth_sdkclient.Options) (uint64, error)
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 ¶
func (_m *InternalClient) GetTransactionReceipt(ctx context.Context, tx *rosetta_geth_sdkclient.LoadedTransaction) (*rosetta_geth_sdkclient.RosettaTxReceipt, error)
GetTransactionReceipt provides a mock function with given fields: ctx, tx
func (*InternalClient) GetUncles ¶
func (_m *InternalClient) GetUncles(ctx context.Context, head *coretypes.Header, body *rosetta_geth_sdkclient.RPCBlock) ([]*coretypes.Header, error)
GetUncles provides a mock function with given fields: ctx, head, body
func (*InternalClient) ParseOps ¶
func (_m *InternalClient) ParseOps(tx *rosetta_geth_sdkclient.LoadedTransaction) ([]*types.Operation, error)
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 ¶
func (_m *InternalClient) Status(ctx context.Context) (*types.BlockIdentifier, int64, *types.SyncStatus, []*types.Peer, error)
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 ¶
func (_m *InternalClient) TraceBlockByHash(ctx context.Context, blockHash common.Hash, txs []rosetta_geth_sdkclient.RPCTransaction) (map[string][]*rosetta_geth_sdkclient.FlatCall, error)
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 ¶
func (_m *InternalClient) TraceTransaction(ctx context.Context, hash common.Hash) (json.RawMessage, []*rosetta_geth_sdkclient.FlatCall, error)
TraceTransaction provides a mock function with given fields: ctx, hash