Documentation
¶
Index ¶
- Constants
- func EstimateSendTransactionGas(client rocketpool.ExecutionClient, toAddress common.Address, data []byte, ...) (gaslimit.Limits, error)
- func IsTransactionDue(rp *rocketpool.RocketPool, startTime time.Time) (bool, time.Duration, error)
- func PrintAndWaitForTransaction(cfg *config.RocketPoolConfig, hash common.Hash, ec rocketpool.ExecutionClient, ...) error
- func SendTransaction(client rocketpool.ExecutionClient, toAddress common.Address, chainID *big.Int, ...) (common.Hash, error)
Constants ¶
View Source
const TimeoutSafetyFactor int = 2
The fraction of the timeout period to trigger overdue transactions
Variables ¶
This section is empty.
Functions ¶
func EstimateSendTransactionGas ¶
func EstimateSendTransactionGas(client rocketpool.ExecutionClient, toAddress common.Address, data []byte, useSafeGasLimit bool, opts *bind.TransactOpts) (gaslimit.Limits, error)
Estimate the gas of SendTransaction
func IsTransactionDue ¶
func IsTransactionDue(rp *rocketpool.RocketPool, startTime time.Time) (bool, time.Duration, error)
True if a transaction is due and needs to bypass the gas threshold
func PrintAndWaitForTransaction ¶
func PrintAndWaitForTransaction(cfg *config.RocketPoolConfig, hash common.Hash, ec rocketpool.ExecutionClient, logger *log.ColorLogger) error
Print a TX's details to the logger and waits for it to validated.
func SendTransaction ¶
func SendTransaction(client rocketpool.ExecutionClient, toAddress common.Address, chainID *big.Int, data []byte, useSafeGasLimit bool, opts *bind.TransactOpts) (common.Hash, error)
Send a transaction to an address useSafeGasLimit will amplify the estimated gas limit to by 50% for safety (no effect if the gas limit in opts is already set).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.