Module Storage.Sc_rollup

Smart contract rollup.

Contains the current latest attributed index for stakers.

Contains the index of any staker that currently have stake.

Contains the most recent inbox level staked by an active staker.

Contains for all commitment not yet cemented the list of stakers that have staked on it.

This storage contains for each rollup and inbox level not yet cemented the level of publication of the first commitment. This is used to compute the curfew for a given rollup and inbox level.

Stores the commitments published for an inbox level.

Refutation games are indexed by the rollup, by one staker, and by its opponent staker. Hence, each game appears twice. This is convenient to quickly compute the opponents of a given staker.

Game_timeout stores the block level at which the staker whose turn it is to move will (become vulnerable to) timeout. The staker pair should always be in lexical order to ensure that this value is not duplicated.

A carbonated storage for keeping track of applied outbox messages for a a SCORU.

A carbonated storage for stakers (identified by their public key hashes) that are able to stake on commitments. If the storage is empty then the rollup is public (anyone can publish commitments for the rollup), otherwise it is private (only the members of the whitelist can publish commitments).

Maximal space available for the whitelist without needing to burn new fees.

Current storage space in bytes used by the whitelist.

Outbox level and message of the latest whitelist update of a given rollup.