Documentation ¶
Index ¶
- type Client
- func (_m *Client) Balance(_a0 context.Context, _a1 *types.AccountIdentifier, ...) (*types.AccountBalanceResponse, error)
- func (_m *Client) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *Client) BlockAuthor(ctx context.Context, blockIndex int64) (string, error)
- func (_m *Client) BlockRewardTransaction(blockIdentifier *types.BlockIdentifier, miner string, ...) *types.Transaction
- func (_m *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *Client) GetBaseFee(ctx context.Context) (*big.Int, error)
- func (_m *Client) GetBlockHash(ctx context.Context, blockIdentifier types.BlockIdentifier) (string, error)
- func (_m *Client) GetBlockReceipts(ctx context.Context, blockHash common.Hash, txs []client.RPCTransaction, ...) ([]*client.RosettaTxReceipt, error)
- func (_m *Client) GetContractCallGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int, ...) (uint64, error)
- func (_m *Client) GetContractCurrency(addr common.Address, erc20 bool) (*client.ContractCurrency, error)
- func (_m *Client) GetCustomizedBlockBody(raw json.RawMessage, body *client.RPCBlock) error
- func (_m *Client) GetErc20TransferGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int, ...) (uint64, error)
- func (_m *Client) GetGasFeeCap(_a0 context.Context, _a1 client.Options, _a2 *big.Int) (*big.Int, error)
- func (_m *Client) GetGasPrice(_a0 context.Context, _a1 client.Options) (*big.Int, error)
- func (_m *Client) GetGasTipCap(_a0 context.Context, _a1 client.Options) (*big.Int, error)
- func (_m *Client) GetL1DataFee(ctx context.Context, ethTxBytes []byte) (*big.Int, error)
- func (_m *Client) GetLoadedTransaction(ctx context.Context, request *types.BlockTransactionRequest) (*client.LoadedTransaction, error)
- func (_m *Client) GetNativeTransferGasLimit(ctx context.Context, toAddress string, fromAddress string, value *big.Int) (uint64, error)
- func (_m *Client) GetNonce(_a0 context.Context, _a1 client.Options) (uint64, error)
- func (_m *Client) GetRosettaConfig() configuration.RosettaConfig
- func (_m *Client) GetTransactionReceipt(ctx context.Context, tx *client.LoadedTransaction) (*client.RosettaTxReceipt, error)
- func (_m *Client) GetUncles(ctx context.Context, head *coretypes.Header, body *client.RPCBlock) ([]*coretypes.Header, error)
- func (_m *Client) ParseOps(tx *client.LoadedTransaction) ([]*types.Operation, error)
- func (_m *Client) PopulateCrossChainTransactions(_a0 *coretypes.Block, _a1 []*client.LoadedTransaction) ([]*types.Transaction, error)
- func (_m *Client) SkipTxReceiptParsing(contractAddress string) bool
- func (_m *Client) Status(_a0 context.Context) (*types.BlockIdentifier, int64, *types.SyncStatus, []*types.Peer, error)
- func (_m *Client) Submit(_a0 context.Context, _a1 *coretypes.Transaction) error
- func (_m *Client) TraceBlockByHash(_a0 context.Context, _a1 common.Hash, _a2 []client.RPCTransaction) (map[string][]*client.FlatCall, error)
- func (_m *Client) TraceReplayBlockTransactions(ctx context.Context, hsh string) (map[string][]*client.FlatCall, error)
- func (_m *Client) TraceReplayTransaction(ctx context.Context, hsh string) (json.RawMessage, []*client.FlatCall, error)
- func (_m *Client) TraceTransaction(ctx context.Context, hash common.Hash) (json.RawMessage, []*client.FlatCall, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v0.0.7
NewClient creates a new instance of Client. 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 (*Client) Balance ¶
func (_m *Client) Balance(_a0 context.Context, _a1 *types.AccountIdentifier, _a2 *types.PartialBlockIdentifier, _a3 []*types.Currency) (*types.AccountBalanceResponse, error)
Balance provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Client) BatchCallContext ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*Client) BlockAuthor ¶
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
GetBaseFee provides a mock function with given fields: ctx
func (*Client) GetBlockHash ¶ added in v0.0.15
func (_m *Client) GetBlockHash(ctx context.Context, blockIdentifier types.BlockIdentifier) (string, error)
GetBlockHash provides a mock function with given fields: ctx, blockIdentifier
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) GetCustomizedBlockBody ¶ added in v0.0.15
GetCustomizedBlockBody provides a mock function with given fields: raw, body
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 ¶
GetGasPrice provides a mock function with given fields: _a0, _a1
func (*Client) GetGasTipCap ¶ added in v0.0.7
GetGasTipCap provides a mock function with given fields: _a0, _a1
func (*Client) GetL1DataFee ¶ added in v0.0.7
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) 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) 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) SkipTxReceiptParsing ¶ added in v0.0.15
SkipTxReceiptParsing provides a mock function with given fields: contractAddress
func (*Client) Status ¶
func (_m *Client) Status(_a0 context.Context) (*types.BlockIdentifier, int64, *types.SyncStatus, []*types.Peer, error)
Status provides a mock function with given fields: _a0
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