Versions in this module Expand all Collapse all v0 v0.1.0 Aug 30, 2022 Changes in this version + const Average + const ContractInvalidError + const DefaultGasLimit + const DefaultGasMultiplier + const DefaultGasPrice + const DefaultMaxGasPrice + const EthClientError + const Fast + const Fastest + const Retries + const Timeout + var DefaultGasParams = NewDefaultGasParams() + func ValidateEthereumAddress(address string) error + type Client struct + Client *ethclient.Client + CoreContract *contracts.Core + EGSSpeed string + EgsAPIKey string + GasLimit uint64 + GasMultiplier float64 + GasPrice *big.Int + MaxGasPrice *big.Int + RegistrationContract *contracts.Registration + RegistrationContractAddress ethcommon.Address + StarkContractAddress ethcommon.Address + func NewEthereumClient(url string, params GasParams) (*Client, error) + func NewEthereumClientAndAttachContracts(ctx context.Context, cfg *config.Config, gasParams GasParams) (*Client, error) + func (e *Client) BuildTransactOpts(ctx context.Context, l1signer signers.L1Signer) (*bind.TransactOpts, error) + func (e *Client) NewIERC20Contract(ctx context.Context, address string) (*contracts.IERC20, error) + func (e *Client) NewIERC721Contract(ctx context.Context, address string) (*contracts.IERC721, error) + type EtherClient interface + NewIERC20Contract func(ctx context.Context, address string) (*contracts.IERC20, error) + NewIERC721Contract func(ctx context.Context, address string) (*contracts.IERC721, error) + type GasParams struct + EGSSpeed string + EgsAPIKey string + GasLimit uint64 + GasMultiplier float64 + GasPrice *big.Int + MaxGasPrice *big.Int + func NewDefaultGasParams() GasParams