Documentation ¶
Index ¶
- type MockEVMClient
- func (m *MockEVMClient) BlockConfirmations() uint64
- func (m *MockEVMClient) BlockNumber(ctx context.Context) (uint64, error)
- func (m *MockEVMClient) ChainID(ctx context.Context) (*big.Int, error)
- func (m *MockEVMClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (m *MockEVMClient) GetBlockTimestamp(blockNumber *big.Int) uint64
- func (m *MockEVMClient) GetChainID() uint64
- func (m *MockEVMClient) GetClient() client.Core
- func (m *MockEVMClient) GetPrivateKey() string
- func (m *MockEVMClient) RetryBlockNumber() (uint64, error)
- func (m *MockEVMClient) RetryFilterLogs(q ethereum.FilterQuery) ([]types.Log, error)
- func (m *MockEVMClient) SetChainID(chainId uint64)
- func (m *MockEVMClient) ValidateContractDeployedAt(contractAddress string) (*common.Address, error)
- func (m *MockEVMClient) WaitForConfirmations(raw types.Log) error
- func (m *MockEVMClient) WaitForTransaction(hex string, onSuccess, onRevert func(), onError func(err error))
- type MockEVMCoreClient
- func (m *MockEVMCoreClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (m *MockEVMCoreClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (m *MockEVMCoreClient) BlockNumber(ctx context.Context) (uint64, error)
- func (m *MockEVMCoreClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (m *MockEVMCoreClient) ChainID(ctx context.Context) (*big.Int, error)
- func (m *MockEVMCoreClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (m *MockEVMCoreClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)
- func (m *MockEVMCoreClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (m *MockEVMCoreClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (m *MockEVMCoreClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (m *MockEVMCoreClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (m *MockEVMCoreClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (m *MockEVMCoreClient) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (m *MockEVMCoreClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (m *MockEVMCoreClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (m *MockEVMCoreClient) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)
- func (m *MockEVMCoreClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEVMClient ¶
func (*MockEVMClient) BlockConfirmations ¶
func (m *MockEVMClient) BlockConfirmations() uint64
func (*MockEVMClient) BlockNumber ¶
func (m *MockEVMClient) BlockNumber(ctx context.Context) (uint64, error)
func (*MockEVMClient) FilterLogs ¶
func (*MockEVMClient) GetBlockTimestamp ¶
func (m *MockEVMClient) GetBlockTimestamp(blockNumber *big.Int) uint64
func (*MockEVMClient) GetChainID ¶
func (m *MockEVMClient) GetChainID() uint64
func (*MockEVMClient) GetClient ¶
func (m *MockEVMClient) GetClient() client.Core
func (*MockEVMClient) GetPrivateKey ¶
func (m *MockEVMClient) GetPrivateKey() string
func (*MockEVMClient) RetryBlockNumber ¶
func (m *MockEVMClient) RetryBlockNumber() (uint64, error)
func (*MockEVMClient) RetryFilterLogs ¶
func (m *MockEVMClient) RetryFilterLogs(q ethereum.FilterQuery) ([]types.Log, error)
func (*MockEVMClient) SetChainID ¶
func (m *MockEVMClient) SetChainID(chainId uint64)
func (*MockEVMClient) ValidateContractDeployedAt ¶
func (m *MockEVMClient) ValidateContractDeployedAt(contractAddress string) (*common.Address, error)
func (*MockEVMClient) WaitForConfirmations ¶
func (m *MockEVMClient) WaitForConfirmations(raw types.Log) error
func (*MockEVMClient) WaitForTransaction ¶
func (m *MockEVMClient) WaitForTransaction(hex string, onSuccess, onRevert func(), onError func(err error))
type MockEVMCoreClient ¶
func (*MockEVMCoreClient) BlockByHash ¶
func (*MockEVMCoreClient) BlockByNumber ¶
func (*MockEVMCoreClient) BlockNumber ¶
func (m *MockEVMCoreClient) BlockNumber(ctx context.Context) (uint64, error)
func (*MockEVMCoreClient) CallContract ¶
func (*MockEVMCoreClient) EstimateGas ¶
func (m *MockEVMCoreClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)
func (*MockEVMCoreClient) FilterLogs ¶
func (*MockEVMCoreClient) HeaderByNumber ¶
func (*MockEVMCoreClient) PendingCodeAt ¶
func (*MockEVMCoreClient) PendingNonceAt ¶
func (*MockEVMCoreClient) SendTransaction ¶
func (m *MockEVMCoreClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
func (*MockEVMCoreClient) SubscribeFilterLogs ¶
func (*MockEVMCoreClient) SuggestGasPrice ¶
func (*MockEVMCoreClient) SuggestGasTipCap ¶
func (*MockEVMCoreClient) TransactionByHash ¶
func (m *MockEVMCoreClient) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)
func (*MockEVMCoreClient) TransactionReceipt ¶
Click to show internal directories.
Click to hide internal directories.