Documentation ¶
Index ¶
- func PrintAndCheckGasInfo(gasInfo rocketpool.GasInfo, checkThreshold bool, gasThreshold float64, ...) bool
- func PrintAndWaitForTransaction(config config.RocketPoolConfig, hash common.Hash, ec *ethclient.Client, ...) error
- func PrintErrorResponse(err error)
- func PrintResponse(response interface{}, responseError error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintAndCheckGasInfo ¶ added in v1.0.0
func PrintAndCheckGasInfo(gasInfo rocketpool.GasInfo, checkThreshold bool, gasThreshold float64, logger log.ColorLogger) bool
Print the gas price and cost of a TX
func PrintAndWaitForTransaction ¶ added in v1.0.0
func PrintAndWaitForTransaction(config config.RocketPoolConfig, hash common.Hash, ec *ethclient.Client, logger log.ColorLogger) error
Print a TX's details to the logger and waits for it to be mined.
func PrintResponse ¶
func PrintResponse(response interface{}, responseError error)
Print an API response response must be a pointer to a struct type with Error and Status string fields
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.