Module era_test_node::node
source · Expand description
In-memory node, that supports forking other networks.
Structs
- Keeps track of a block’s batch number, miniblock number and timestamp. Useful for keeping track of the current context when creating multiple blocks.
- In-memory node, that can be used for local & unit testing. It also supports the option of forking testnet/mainnet. All contents are removed when object is destroyed.
- Helper struct for InMemoryNode. S - is the Source of the Fork.
- Creates a restorable snapshot for the InMemoryNodeInner. The snapshot contains all the necessary data required to restore the InMemoryNodeInner state to a previous point in time.
- Information about the executed transaction.
Enums
Constants
- Acceptable gas overestimation limit.
- L1 Gas Price Scale Factor for gas estimation.
- The max possible number of gas that
eth_estimateGas
is allowed to overestimate. - The factor by which to scale the gasLimit.
- L1 Gas Price.
- L2 Gas Price (0.25 gwei).
- The maximum number of previous blocks to store the state for.
- Max possible size of an ABI encoded tx (in bytes).
- Timestamp of the first block (if not running in fork mode).
- The zks protocol version.
- Network ID we use for the test node.