Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oracle ¶
type Oracle struct {
// contains filtered or unexported fields
}
Oracle recommends gas prices based on the content of recent blocks. Suitable for both light and full clients.
type RollupOracle ¶
type RollupOracle struct {
// contains filtered or unexported fields
}
RollupOracle holds the L1 and L2 gas prices for fee calculation
func NewRollupOracle ¶
func NewRollupOracle(l1GasPrice *big.Int, l2GasPrice *big.Int) *RollupOracle
NewRollupOracle returns an initialized RollupOracle
func (*RollupOracle) SetL1GasPrice ¶
func (gpo *RollupOracle) SetL1GasPrice(gasPrice *big.Int) error
SetL1GasPrice returns the current L1 gas price
func (*RollupOracle) SetL2GasPrice ¶
func (gpo *RollupOracle) SetL2GasPrice(gasPrice *big.Int) error
SetL2GasPrice returns the current L2 gas price
func (*RollupOracle) SuggestL1GasPrice ¶
SuggestL1GasPrice returns the gas price which should be charged per byte of published data by the sequencer.
func (*RollupOracle) SuggestL2GasPrice ¶
SuggestL2GasPrice returns the gas price which should be charged per unit of gas set manually by the sequencer depending on congestion
Click to show internal directories.
Click to hide internal directories.