Documentation ¶
Index ¶
- func CalculateL1DataFee(tx *types.Transaction, state StateDB) (*big.Int, error)
- func CalculateL1GasUsed(data []byte, overhead *big.Int) *big.Int
- func EstimateL1DataFeeForMessage(msg Message, baseFee, chainID *big.Int, signer types.Signer, state StateDB) (*big.Int, error)
- func VerifyFee(signer types.Signer, tx *types.Transaction, state StateDB) error
- type Message
- type StateDB
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.