Documentation ¶
Index ¶
Constants ¶
View Source
const (
GasPadFactor = 2.0
)
Variables ¶
This section is empty.
Functions ¶
func DeployerGasPriceEstimator ¶ added in v1.9.4
func DeployerGasPriceEstimator(ctx context.Context, client txmgr.ETHBackend) (*big.Int, *big.Int, *big.Int, error)
DeployerGasPriceEstimator is a custom gas price estimator for use with op-deployer. It pads the base fee by 50% and multiplies the suggested tip by 20.
Types ¶
type BroadcastResult ¶
type Broadcaster ¶
type Broadcaster interface { Broadcast(ctx context.Context) ([]BroadcastResult, error) Hook(bcast script.Broadcast) }
func DiscardBroadcaster ¶
func DiscardBroadcaster() Broadcaster
type KeyedBroadcaster ¶
type KeyedBroadcaster struct {
// contains filtered or unexported fields
}
func NewKeyedBroadcaster ¶
func NewKeyedBroadcaster(cfg KeyedBroadcasterOpts) (*KeyedBroadcaster, error)
func (*KeyedBroadcaster) Broadcast ¶
func (t *KeyedBroadcaster) Broadcast(ctx context.Context) ([]BroadcastResult, error)
func (*KeyedBroadcaster) Hook ¶
func (t *KeyedBroadcaster) Hook(bcast script.Broadcast)
Click to show internal directories.
Click to hide internal directories.