Versions in this module Expand all Collapse all v1 v1.0.21 Jan 19, 2023 v1.0.20 Jan 19, 2023 Changes in this version + type CommonTransaction interface + Hash func() common.Hash + RawWithSignature func(key *ecdsa.PrivateKey, domainID *big.Int) ([]byte, error) + type EVMClient struct + func NewEVMClient(url string, privateKey *ecdsa.PrivateKey) (*EVMClient, error) + func (c *EVMClient) BaseFee() (*big.Int, error) + func (c *EVMClient) CallContext(ctx context.Context, target interface{}, rpcMethod string, args ...interface{}) error + func (c *EVMClient) CallContract(ctx context.Context, callArgs map[string]interface{}, blockNumber *big.Int) ([]byte, error) + func (c *EVMClient) FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, ...) ([]types.Log, error) + func (c *EVMClient) From() common.Address + func (c *EVMClient) GetTransactionByHash(h common.Hash) (tx *types.Transaction, isPending bool, err error) + func (c *EVMClient) LatestBlock() (*big.Int, error) + func (c *EVMClient) LockNonce() + func (c *EVMClient) PendingCallContract(ctx context.Context, callArgs map[string]interface{}) ([]byte, error) + func (c *EVMClient) RelayerAddress() common.Address + func (c *EVMClient) SendRawTransaction(ctx context.Context, tx []byte) error + func (c *EVMClient) SignAndSendTransaction(ctx context.Context, tx CommonTransaction) (common.Hash, error) + func (c *EVMClient) SubscribePendingTransactions(ctx context.Context, ch chan<- common.Hash) (*rpc.ClientSubscription, error) + func (c *EVMClient) UnlockNonce() + func (c *EVMClient) UnsafeIncreaseNonce() error + func (c *EVMClient) UnsafeNonce() (*big.Int, error) + func (c *EVMClient) WaitAndReturnTxReceipt(h common.Hash) (*types.Receipt, error)