Structs§
- ConfigID
- To register an on-chain config in Rust:
- Configuration
Resource - Diem
Version - Defines the version of Diem Validator software.
- Next
Validator SetProposal - OnChain
Config Payload - Registered
Currencies - VMConfig
- Defines all the on chain configuration data needed by VM.
- VMPublishing
Option - 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.
- Validator
Set
Constants§
- DIEM_
MAX_ KNOWN_ VERSION - DIEM_
VERSION_ 2 - ON_
CHAIN_ CONFIG_ REGISTRY - State sync will panic if the value of any config in this registry is uninitialized
Traits§
- Config
Storage - Trait to be implemented by a storage type from which to read on-chain configs
- OnChain
Config - Trait to be implemented by a Rust struct representation of an on-chain config that is stored in storage as a serialized byte array