Evm_node_lib_dev.Fees
val gas_used_for_da_fees :
da_fee_per_byte:Evm_node_lib_dev_encoding.Ethereum_types.quantity ->
base_fee_per_gas:Z.t ->
?access_list:Evm_node_lib_dev_encoding.Transaction.access_list_item list ->
bytes ->
Z.t
gas_used_for_da_fees ~da_fee_per_byte ~base_fee_per_gas ?access_list
tx_data
computes the amount of gas unit taken by the kernel to reimburse the sequencer for its L1 costs, given the provided base_fee_per_gas
.
val da_fees_gas_limit_overhead :
da_fee_per_byte:Evm_node_lib_dev_encoding.Ethereum_types.quantity ->
minimum_base_fee_per_gas:Z.t ->
?access_list:Evm_node_lib_dev_encoding.Transaction.access_list_item list ->
bytes ->
Z.t
da_fees_gas_limit_overhead ~da_fee_per_byte ~base_fee_per_gas ?access_list tx_data
returns the overhead (in gas unit) to be added to the execution gas limit. This overhead will be used by the kernel to reimburse the sequencer for its L1 costs.
val execution_gas_limit :
da_fee_per_byte:Evm_node_lib_dev_encoding.Ethereum_types.quantity ->
minimum_base_fee_per_gas:Z.t ->
?access_list:Evm_node_lib_dev_encoding.Transaction.access_list_item list ->
gas_limit:Z.t ->
bytes ->
(Z.t, string) Stdlib.result
execution_gas_limit ~da_fee_per_byte ~minimum_base_fee_per_gas
?access_list ~gas_limit tx_data
computes the gas specifically allocated to executing the transaction from gas_limit
, based on the size of tx_data
.