package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

is_private context rollup returns true if and only if the rollup is private, along with the new context accounting for the gas consumption of the function call.

init context rollup ~whitelist returns the new context resulting from the addition of the elements of whitelist to the whitelist in the given rollup's storage, along with the used storage space.

check_access_to_private_rollup context rollup staker_pkh returns an error if staker_pkh is not in the whitelist of rollup if the rollup is marked as private. Returns the gas consumed by performing the call otherwise. Assumes the private rollup feature is activated.

find_whitelist_uncarbonated context rollup returns the whitelist from the storage.

replace context rollup ~whitelist replaces the whitelist of rollup in the storage by whitelist. Returns the resulting context along with the used storage space.

make_public context rollup removes the whitelist of rollup from the storage thus making the rollup public. Returns the resulting context along with the freed storage space.

adjust_storage_space ctxt ~new_storage_size updates the used storage space for the whitelist according to new_storage_size. The additional positive amount of unpaid storage is returned. If no unpaid storage is consumed, this amount is 0.

Note that when storage space for the whitelist is released we may later use that space for free. For this reason, the amount returned may be less than the given (positive) storage_diff.

get_last_whitelist_update ctxt rollup returns the pair (outbox level, message index) of the latest message of update to the whitelist. Returns None if no whitelist update has been applied. The returned context accounts for the gas consumption of the storage's update.

set_last_whitelist_update ctxt rollup (outbox_level, message_index) set the outbox level and message index of the latest message of update to the whitelist. Returns the new context, and the difference from the old (maybe 0) to the new size of the underlying storage.

OCaml

Innovation. Community. Security.