Module diem_types::on_chain_config
source · Structs§
- To register an on-chain config in Rust:
- Defines the version of Diem Validator software.
- Defines all the on chain configuration data needed by VM.
- Defines and holds the publishing policies for the VM. There are three possible configurations: 1. No module publishing, only allowlisted scripts are allowed. 2. No module publishing, custom scripts are allowed. 3. Both module publishing and custom scripts are allowed. We represent these as an enum instead of a struct since allowlisting and module/script publishing are mutually exclusive options.
Constants§
- State sync will panic if the value of any config in this registry is uninitialized
Traits§
- Trait to be implemented by a storage type from which to read on-chain configs
- Trait to be implemented by a Rust struct representation of an on-chain config that is stored in storage as a serialized byte array