pub struct DPPContractVersions {
pub max_serialized_size: u32,
pub contract_serialization_version: FeatureVersionBounds,
pub contract_storage_serialization_version: FeatureVersion,
pub contract_storage_document_type_version: FeatureVersion,
pub contract_structure_version: FeatureVersion,
pub created_data_contract_structure: FeatureVersion,
pub config: FeatureVersionBounds,
pub methods: DataContractMethodVersions,
pub document_type_versions: DocumentTypeVersions,
pub token_versions: TokenVersions,
}Fields§
§max_serialized_size: u32The maximum that we can store a data contract in the state. There is a possibility that a client sends a state transition serialized in a specific version and that the system re-serializes it to the current version, and in so doing increases it’s size.
contract_serialization_version: FeatureVersionBoundsThis is how we serialize and deserialize a contract
contract_storage_serialization_version: FeatureVersionThe format a node stores a contract in: the DataContractInSerializationFormat variant
Drive writes to state. It is a separate selector because a stored format need not be one
that state transitions carry or clients are sent. Each protocol version so far selects the
format of contract_serialization_version’s default; format 2, the stored format with
compiled document types, is written only from the protocol version whose table selects it.
contract_storage_document_type_version: FeatureVersionThe generation of a document type’s stored form (DocumentTypeInSerializationFormat)
that a contract stored in format 2 holds each of its document types in. The stored form
carries its generation, so changing this changes only what is written from then on; a
generation is paired with the builders whose output it stores, so one that rebuilds an
index structure on load (generation 0 rebuilds it with index_levels_from_indices 0)
is selected only with them.
contract_structure_version: FeatureVersionThis is the structure of the Contract as it is defined for code paths
created_data_contract_structure: FeatureVersion§config: FeatureVersionBounds§methods: DataContractMethodVersions§document_type_versions: DocumentTypeVersions§token_versions: TokenVersionsTrait Implementations§
Source§impl Clone for DPPContractVersions
impl Clone for DPPContractVersions
Source§fn clone(&self) -> DPPContractVersions
fn clone(&self) -> DPPContractVersions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more