Mavryk_raw_protocol_alpha.Sc_rollup_reprThe basic components of an optimistic rollup for smart-contracts.
An optimistic rollup for smart-contracts is made of two main components:
module Address : sig ... endA smart rollup has an address starting with "sr1".
module Internal_for_tests : sig ... endmodule State_hash :
module type of struct include Mavryk_protocol_environment_alpha.Smart_rollup.State_hash endmodule Number_of_ticks : sig ... endNumber of ticks computed by a single commitment. This represents a claim about the state of the PVM, which can be disputed as part of a commitment dispute.
type t = Address.tA smart contract rollup is identified by its address.
val encoding : t Mavryk_protocol_environment_alpha.Data_encoding.tval rpc_arg : t Mavryk_protocol_environment_alpha.RPC_arg.tval pp : Mavryk_protocol_environment_alpha.Format.formatter -> t -> unitval in_memory_size : t -> Cache_memory_helpers.sintin_memory_size sc_rollup returns the number of bytes sc_rollup uses in RAM.
module Staker : sig ... endA Staker is an implicit account, identified by its public key hash.
module Index : Storage_description.INDEX with type t = Address.tThe data model uses an index of these addresses.