Dynamic Digital Assets (DDAs) in the AZTEQ Metaverse represent a hybrid token structure that unifies fungible, non-fungible, and semi-fungible properties within a single on-chain entity, enabling assets to evolve while preserving core integrity. Designed for gaming and metaverse applications, DDAs allow items like avatars or virtual land to incorporate dynamic behaviors, such as upgrading traits through gameplay in Life districts, without requiring new mints or separate contracts. This architecture reduces transaction overhead and enhances interoperability, making DDAs ideal for composable ecosystems where assets interact seamlessly. The foundational design draws on a partitioned data model, where each DDA is divided into guaranteed memory for immutable characteristics and persistent memory for mutable attributes. stores permanent data, such as an asset's unique identifier, origin metadata (e.g., district clan in an Azimal), and base type, ensuring provenance and preventing tampering. , conversely, holds updatable fields like equipped traits or accumulated experience points, which can be modified via authorized transactions. This duality is enforced at the blockchain level on Avenge, where object-like storage units treat DDAs as addressable entities with versioned states, allowing efficient updates without full rewrites. At the protocol level, DDAs support merging and composability through a token aggregation mechanism.
Merging combines multiple instances of the same type into a consolidated asset, preserving quantities and properties. For instance, two fungible components (e.g., resource tokens from quests in Tapiru) can be fused, while non-fungible elements (e.g., unique Azimal variants) retain individuality. Composability extends this by enabling hierarchical ownership: a parent DDA can "own" child assets, forming nested structures where children inherit or modify parent behaviors. This is achieved via linked mappings, where a parent's ID references child contracts and quantities, facilitating batch operations like transfers or infusions.
Mathematically, merging can be formalized as follows.
Let two DDAs be represented as
$D_1=(ID_1,Q_1,P_1)$ and
$D_2=(ID_2,Q_2,P_2)$
where ( ID ) is the unique identifier, ( Q ) is quantity (for semi-fungible types), and ( P ) is the property set ( + ). If compatible (same type), the merged DDA
$D_m=(ID_m,Q_m,P_m)$
satisfies
$Q_m=Q_1+Q_2$
$P_m=P_1∪P_2$ (with conflict resolution via precedence rules)
For composability, a parent DDA
$D_p$
owning children
$D_{c1}, D_{c2}$
uses a mapping function
$M:ID_p→{(Contract_{ci},ID_{ci},Q_{ci})}$
the composite value
$V(D_p)$
is