The unrestricted address space beginning.
How much a single circuit should cost in terms of ergs.
MsgValueSimulator
will automatically support decommitments to bytecodes of size up to 100k.
It will mean that if 0 gas was provided for the call, only callee
s of size up to 100k could be called.
We supporting a larger value would lead to larger overhead for callers that do not provide 0 gas.
The maximal amount of public data in bytes that could be sent within an L1 batch
The limit that the Geth nodes impose is 128kb.
We leave 10kb margin for possible parameters.
The minimal price in ergs the storage could cost to protect against reentrancy + take into account the usage of the single instance circuits.
The minimum price in ergs that a storage write should cost in order to protect Ethereum’s .transfer / .send
function against reentrancy.
It is a 2300 constant used for 0-value transfer/send
calls + 1 to make sure that within the call it is not possible to store anything.
The amount of gas that is always retrived from the caller
and passed to the MsgValueSimulator
whenever it is called.
This value should be enough to cover the execution of the MsgValueSimulator
itself and the decommitment of the callee’s bytecode + pass at least 2300 gas.
This invariant is not easy to enforce within this crate, so MsgValueSimulator
is expected to be well tested in the era-contracts
repo.
The callstack depth large enough to ensure that we will not exceed the stack limit
in any of the transactions. THe +80
is an arbitrary value, meant to take into accounts
some of the internal near_calls that are performed by the bootloader which the user does
not pay directly to.