A Set is a meta object from which other objects are created.

Set Object

Metadata

The metadata of a set object contains essential information about its type and versioning.

FieldValueDescription
traits0Status flags (reserved for future use)
rev1Current revision number
krevlatestKindOfSet()Revision of the Kind of Set
srevlatestSetOfSet()Revision of the Set of Set
kindID_KIND_OF_SETKind ID (always points to Kind of Set)
setID_SET_OF_SETSet ID (always points to Set of Set)

Elements

Each set has 2 elements, defined by its kind, the Kind of Set.

IndexElementMutableDescription
0dataYesShared data for all objects minted from this set
1codeNoAddress of the set contract

Set Contract

Set Registry

Set objects support the following operations:

OperationDescription
register_setRegisters a new set into the registry.
update_setUpdates the mutable elements of an existing set.
upgrade_setApplies a new revision of kind or set to the set object.