Module era_test_node::utils
source · Functions
- Creates a [DebugCall] from a [L2Tx], [VmExecutionResultAndLogs] and a list of [Call]s.
- Converts
h256
value as BE into the u64 - Creates and inserts a given number of empty blocks into the node, with a given interval between them. The blocks will be empty (contain no transactions). Currently this is quite slow - as we invoke the VM for each operation, in the future we might want to optimise it by adding a way to set state via some system contract call.
- Returns a [jsonrpc_core::Error] indicating that the method is not implemented.
- Takes long integers and returns them in human friendly format with “_”. For example: 12_334_093
- Returns the actual [U64] block number from [BlockNumber].
- Converts a timestamp in milliseconds since epoch to a DateTime in UTC.