Evm_node_lib_dev.Simulationtype estimate_gas_input_v1 = {call : Evm_node_lib_dev_encoding.Ethereum_types.call;with_da_fees : bool;If true, the gas returned by the simulation include the DA gas units.
*)}type estimate_gas_input_v2 = {call : Evm_node_lib_dev_encoding.Ethereum_types.call;with_da_fees : bool;If true, the gas returned by the simulation includes the DA gas units.
*)timestamp : Tezos_base.TzPervasives.Time.Protocol.t;Timestamp used during simulation.
*)}type estimate_gas_input = | V0 of Evm_node_lib_dev_encoding.Ethereum_types.call| V1 of estimate_gas_input_v1| V2 of estimate_gas_input_v2val hex_string_to_bytes : Evm_node_lib_dev_encoding.Ethereum_types.hex -> byteshex_string_to_bytes s transforms a hex string s into a byte string.
val of_opt :
('a -> Evm_node_lib_dev_encoding.Rlp.item) ->
'a option ->
Evm_node_lib_dev_encoding.Rlp.itemval rlp_v1 : estimate_gas_input_v1 -> Evm_node_lib_dev_encoding.Rlp.itemval rlp_v2 : estimate_gas_input_v2 -> Evm_node_lib_dev_encoding.Rlp.itemval rlp_encode : estimate_gas_input -> bytesEncoding used to forward the call to the kernel, to be used in simulation mode only.
val split_in_messages : bytes -> (simulation_message list, 'a) Stdlib.resultTag indicating simulation is a validation
This tag can no longer be used, but if you plan to add another tag please avoid using this one to avoid mistakes.
val encode_message : simulation_message -> stringval encode : estimate_gas_input -> (string list, 'a) Stdlib.resulttype execution_result = {value : Evm_node_lib_dev_encoding.Ethereum_types.hash option;gas_used : Evm_node_lib_dev_encoding.Ethereum_types.quantity option;}type call_result =
(execution_result, Evm_node_lib_dev_encoding.Ethereum_types.hash)
Stdlib.resultmodule Encodings : sig ... endval simulation_result :
bytes ->
(((execution_result, Evm_node_lib_dev_encoding.Ethereum_types.hash)
Stdlib.result,
string)
Stdlib.result,
Tezos_base.TzPervasives.tztrace)
Stdlib.resultval gas_estimation :
bytes ->
(((execution_result, Evm_node_lib_dev_encoding.Ethereum_types.hash)
Stdlib.result,
string)
Stdlib.result,
Tezos_base.TzPervasives.tztrace)
Stdlib.result