Documentation ¶
Index ¶
- func BlockUntilSuccessful(ctx context.Context, c *ethclient.Client, retryable func() error) error
- func Ecrecover(block *types.Block) ([]byte, error)
- func EthToWei(ethAmount float64) *big.Int
- func GetBlockRange(ctx context.Context, from, to uint64, c *ethrpc.Client) ([]*json.RawMessage, error)
- func GetBlockRangeInPages(ctx context.Context, from, to, pageSize uint64, c *ethrpc.Client) ([]*json.RawMessage, error)
- func GetForkID(rpc *ethrpc.Client) (uint64, error)
- func GetReceipts(ctx context.Context, rawBlocks []*json.RawMessage, c *ethrpc.Client, ...) ([]*json.RawMessage, error)
- func GetRollupAddress(rpc *ethrpc.Client) (string, error)
- func GetRollupManagerAddress(rpc *ethrpc.Client) (string, error)
- func GetTxPoolStatus(rpc *ethrpc.Client) (uint64, uint64, error)
- func GetZkEVMBatches(rpc *ethrpc.Client) (uint64, uint64, uint64, error)
- func HexToBigInt(hexString string) (*big.Int, error)
- func SendTx(ctx context.Context, c *ethclient.Client, privateKey *ecdsa.PrivateKey, ...) error
- func SetLogLevel(verbosity int)
- func SetLogMode(mode LogMode) error
- func ValidateUrl(input string) error
- type BlockUntilSuccessfulFn
- type LogMode
- type VerbosityLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockUntilSuccessful ¶
func GetBlockRange ¶
func GetBlockRangeInPages ¶
func GetReceipts ¶
func GetReceipts(ctx context.Context, rawBlocks []*json.RawMessage, c *ethrpc.Client, batchSize uint64) ([]*json.RawMessage, error)
func GetRollupManagerAddress ¶ added in v0.1.63
func HexToBigInt ¶
HexToBigInt converts a hexadecimal string to a big integer.
func SendTx ¶
func SendTx(ctx context.Context, c *ethclient.Client, privateKey *ecdsa.PrivateKey, to *common.Address, amount *big.Int, data []byte, gasLimit uint64) error
SendTx is a simple wrapper to send a transaction from one Ethereum address to another.
func SetLogLevel ¶
func SetLogLevel(verbosity int)
SetLogLevel sets the log level based on the flags. https://logging.apache.org/log4j/2.x/manual/customloglevels.html
func ValidateUrl ¶
ValidateUrl checks if a string URL can be parsed and if it has a valid scheme.
Types ¶
type BlockUntilSuccessfulFn ¶
BlockUntilSuccessfulFn is designed to wait until a specified number of Ethereum blocks have been mined, periodically checking for the completion of a given function within each block interval.
type VerbosityLevel ¶
type VerbosityLevel int
VerbosityLevel represents the verbosity levels. https://pkg.go.dev/github.com/rs/zerolog#readme-leveled-logging
const ( Silent VerbosityLevel = 0 Panic VerbosityLevel = 100 Fatal VerbosityLevel = 200 Error VerbosityLevel = 300 Warn VerbosityLevel = 400 Info VerbosityLevel = 500 Debug VerbosityLevel = 600 Trace VerbosityLevel = 700 )
Click to show internal directories.
Click to hide internal directories.