Documentation ¶
Index ¶
- type Client
- func (_m *Client) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *Client) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *Client) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *Client) Call(result interface{}, method string, args ...interface{}) error
- func (_m *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *Client) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *Client) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *Client) Close()
- func (_m *Client) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *Client) Dial(ctx context.Context) error
- func (_m *Client) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *Client) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *Client) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (_m *Client) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *Client) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *Client) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (_m *Client) PendingTransactionCount(ctx context.Context) (uint, error)
- func (_m *Client) SendRawTx(bytes []byte) (common.Hash, error)
- func (_m *Client) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *Client) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *Client) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *Client) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *Client) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type GethClient
- func (_m *GethClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *GethClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *GethClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *GethClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *GethClient) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *GethClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *GethClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *GethClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *GethClient) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *GethClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *GethClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (_m *GethClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *GethClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *GethClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (_m *GethClient) PendingTransactionCount(ctx context.Context) (uint, error)
- func (_m *GethClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *GethClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *GethClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *GethClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *GethClient) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *GethClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *GethClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type HeadTrackable
- type KeyStore
- func (_m *KeyStore) Accounts() []accounts.Account
- func (_m *KeyStore) Delete(address common.Address) error
- func (_m *KeyStore) Export(address common.Address, newPassword string) ([]byte, error)
- func (_m *KeyStore) GetAccountByAddress(_a0 common.Address) (accounts.Account, error)
- func (_m *KeyStore) GetAccounts() []accounts.Account
- func (_m *KeyStore) HasAccountWithAddress(_a0 common.Address) bool
- func (_m *KeyStore) HasAccounts() bool
- func (_m *KeyStore) Import(keyJSON []byte, oldPassword string) (accounts.Account, error)
- func (_m *KeyStore) NewAccount() (accounts.Account, error)
- func (_m *KeyStore) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
- func (_m *KeyStore) Unlock(password string) error
- func (_m *KeyStore) Wallets() []accounts.Wallet
- type RPCClient
- func (_m *RPCClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *RPCClient) Call(result interface{}, method string, args ...interface{}) error
- func (_m *RPCClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *RPCClient) Close()
- func (_m *RPCClient) EthSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (ethereum.Subscription, error)
- type Subscription
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 ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
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.
func (*Client) BalanceAt ¶
func (_m *Client) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
BalanceAt provides a mock function with given fields: ctx, account, blockNumber
func (*Client) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*Client) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: ctx, number
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) CallContract ¶
func (_m *Client) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, msg, blockNumber
func (*Client) CodeAt ¶
func (_m *Client) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, account, blockNumber
func (*Client) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, call
func (*Client) FilterLogs ¶
FilterLogs provides a mock function with given fields: ctx, q
func (*Client) HeaderByHash ¶
HeaderByHash provides a mock function with given fields: ctx, hash
func (*Client) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: ctx, number
func (*Client) PendingBalanceAt ¶
PendingBalanceAt provides a mock function with given fields: ctx, account
func (*Client) PendingCodeAt ¶
PendingCodeAt provides a mock function with given fields: ctx, account
func (*Client) PendingNonceAt ¶
PendingNonceAt provides a mock function with given fields: ctx, account
func (*Client) PendingStorageAt ¶
func (_m *Client) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
PendingStorageAt provides a mock function with given fields: ctx, account, key
func (*Client) PendingTransactionCount ¶
PendingTransactionCount provides a mock function with given fields: ctx
func (*Client) SendTransaction ¶
SendTransaction provides a mock function with given fields: ctx, tx
func (*Client) SubscribeFilterLogs ¶
func (_m *Client) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch
func (*Client) SubscribeNewHead ¶
func (_m *Client) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*Client) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*Client) TransactionCount ¶
TransactionCount provides a mock function with given fields: ctx, blockHash
type GethClient ¶
GethClient is an autogenerated mock type for the GethClient type
func NewGethClient ¶
func NewGethClient(t mockConstructorTestingTNewGethClient) *GethClient
NewGethClient creates a new instance of GethClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GethClient) BalanceAt ¶
func (_m *GethClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
BalanceAt provides a mock function with given fields: ctx, account, blockNumber
func (*GethClient) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*GethClient) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: ctx, number
func (*GethClient) CallContract ¶
func (_m *GethClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, msg, blockNumber
func (*GethClient) CodeAt ¶
func (_m *GethClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, account, blockNumber
func (*GethClient) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, call
func (*GethClient) FilterLogs ¶
func (_m *GethClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
FilterLogs provides a mock function with given fields: ctx, q
func (*GethClient) HeaderByHash ¶
HeaderByHash provides a mock function with given fields: ctx, hash
func (*GethClient) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: ctx, number
func (*GethClient) PendingBalanceAt ¶
func (_m *GethClient) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
PendingBalanceAt provides a mock function with given fields: ctx, account
func (*GethClient) PendingCodeAt ¶
PendingCodeAt provides a mock function with given fields: ctx, account
func (*GethClient) PendingNonceAt ¶
PendingNonceAt provides a mock function with given fields: ctx, account
func (*GethClient) PendingStorageAt ¶
func (_m *GethClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
PendingStorageAt provides a mock function with given fields: ctx, account, key
func (*GethClient) PendingTransactionCount ¶
func (_m *GethClient) PendingTransactionCount(ctx context.Context) (uint, error)
PendingTransactionCount provides a mock function with given fields: ctx
func (*GethClient) SendTransaction ¶
func (_m *GethClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction provides a mock function with given fields: ctx, tx
func (*GethClient) SubscribeFilterLogs ¶
func (_m *GethClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch
func (*GethClient) SubscribeNewHead ¶
func (_m *GethClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*GethClient) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*GethClient) TransactionCount ¶
TransactionCount provides a mock function with given fields: ctx, blockHash
func (*GethClient) TransactionInBlock ¶
func (_m *GethClient) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
TransactionInBlock provides a mock function with given fields: ctx, blockHash, index
func (*GethClient) TransactionReceipt ¶
func (_m *GethClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt provides a mock function with given fields: ctx, txHash
type HeadTrackable ¶
HeadTrackable is an autogenerated mock type for the HeadTrackable type
func (*HeadTrackable) Connect ¶
func (_m *HeadTrackable) Connect(head *models.Head) error
Connect provides a mock function with given fields: head
func (*HeadTrackable) Disconnect ¶
func (_m *HeadTrackable) Disconnect()
Disconnect provides a mock function with given fields:
func (*HeadTrackable) OnNewLongestChain ¶
func (_m *HeadTrackable) OnNewLongestChain(ctx context.Context, head *models.Head)
OnNewLongestChain provides a mock function with given fields: ctx, head
type KeyStore ¶
KeyStore is an autogenerated mock type for the KeyStore type
func (*KeyStore) GetAccountByAddress ¶
GetAccountByAddress provides a mock function with given fields: _a0
func (*KeyStore) GetAccounts ¶
GetAccounts provides a mock function with given fields:
func (*KeyStore) HasAccountWithAddress ¶
HasAccountWithAddress provides a mock function with given fields: _a0
func (*KeyStore) HasAccounts ¶
HasAccounts provides a mock function with given fields:
func (*KeyStore) NewAccount ¶
NewAccount provides a mock function with given fields:
func (*KeyStore) SignTx ¶
func (_m *KeyStore) SignTx(account accounts.Account, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
SignTx provides a mock function with given fields: account, tx, chainID
type RPCClient ¶
RPCClient is an autogenerated mock type for the RPCClient type
func NewRPCClient ¶
func NewRPCClient(t mockConstructorTestingTNewRPCClient) *RPCClient
NewRPCClient creates a new instance of RPCClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RPCClient) BatchCallContext ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*RPCClient) CallContext ¶
func (_m *RPCClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
CallContext provides a mock function with given fields: ctx, result, method, args
func (*RPCClient) Close ¶
func (_m *RPCClient) Close()
Close provides a mock function with given fields:
func (*RPCClient) EthSubscribe ¶
func (_m *RPCClient) EthSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (ethereum.Subscription, error)
EthSubscribe provides a mock function with given fields: ctx, channel, args
type Subscription ¶
Subscription is an autogenerated mock type for the Subscription type
func (*Subscription) Err ¶
func (_m *Subscription) Err() <-chan error
Err provides a mock function with given fields:
func (*Subscription) Unsubscribe ¶
func (_m *Subscription) Unsubscribe()
Unsubscribe provides a mock function with given fields: