Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateL1DataFee ¶
func CalculateL1GasUsed ¶
CalculateL1GasUsed computes the L1 gas used based on the calldata and constant sized overhead. The overhead can be decreased as the cost of the batch submission goes down via contract optimizations. This will not overflow under standard network conditions.
Types ¶
type Message ¶
type Message interface {
From() common.Address
To() *common.Address
GasPrice() *big.Int
Gas() uint64
GasFeeCap() *big.Int
GasTipCap() *big.Int
Value() *big.Int
Nonce() uint64
Data() []byte
AccessList() types.AccessList
IsL1MessageTx() bool
}
Message represents the interface of a message. It should be a subset of the methods found on types.Message
Click to show internal directories.
Click to hide internal directories.