Evm_node_lib_dev.Simulation
type 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_v2
val hex_string_to_bytes : Evm_node_lib_dev_encoding.Ethereum_types.hex -> bytes
hex_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.item
val rlp_v1 : estimate_gas_input_v1 -> Evm_node_lib_dev_encoding.Rlp.item
val rlp_v2 : estimate_gas_input_v2 -> Evm_node_lib_dev_encoding.Rlp.item
val rlp_encode : estimate_gas_input -> bytes
Encoding 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.result
Tag 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 -> string
val encode : estimate_gas_input -> (string list, 'a) Stdlib.result
type 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.result
module Encodings : sig ... end
val simulation_result :
bytes ->
(((execution_result, Evm_node_lib_dev_encoding.Ethereum_types.hash)
Stdlib.result,
string)
Stdlib.result,
Tezos_base.TzPervasives.tztrace)
Stdlib.result
val gas_estimation :
bytes ->
(((execution_result, Evm_node_lib_dev_encoding.Ethereum_types.hash)
Stdlib.result,
string)
Stdlib.result,
Tezos_base.TzPervasives.tztrace)
Stdlib.result