Functions
valueRegister
Registers a new value tokenName | Type | Description |
---|---|---|
code | address | Token contract address |
data | bytes32 | Hash of the underlying matter or metadata |
std | TokenStandard | Token standard (e.g. ERC20) |
decimals | uint8 | Token’s decimal precision |
symbol | string | Display symbol (max 30 characters) |
Name | Type | Description |
---|---|---|
id | uint64 | New value ID |
desc | Descriptor | Descriptor after registration |
valueUpdate
Updates the data hash of an existing valueName | Type | Description |
---|---|---|
id | uint64 | Value ID |
data | bytes32 | New data hash |
Name | Type | Description |
---|---|---|
desc | Descriptor | Updated descriptor (revision bumped) |
valueUpdate
Updates the data hash and symbol of an existing valueName | Type | Description |
---|---|---|
id | uint64 | Value ID |
data | bytes32 | New data hash |
symbol | string | New display symbol |
Name | Type | Description |
---|---|---|
desc | Descriptor | Updated descriptor |
valueUpgrade
Upgrades the kind/set revision of a valueName | Type | Description |
---|---|---|
id | uint64 | Value ID |
kindRev0 | uint32 | New kind revision (0 = no change) |
setRev0 | uint32 | New set revision (0 = no change) |
Name | Type | Description |
---|---|---|
desc | Descriptor | Descriptor after upgrade |
valueTouch
Touches a value, bumping its revision without changing its contentName | Type | Description |
---|---|---|
id | uint64 | Value ID |
Name | Type | Description |
---|---|---|
desc | Descriptor | Descriptor after touch |
valueTransfer
Transfers ownership of a value to a new addressName | Type | Description |
---|---|---|
id | uint64 | Value ID |
to | address | Address to transfer ownership to |
Name | Type | Description |
---|---|---|
from | address | Address of the previous owner |
valueRevision
Resolves and validates a revision of a valueName | Type | Description |
---|---|---|
id | uint64 | Value ID |
rev0 | uint32 | Requested revision (0 = latest) |
Name | Type | Description |
---|---|---|
rev | uint32 | Validated revision (0 = not found) |
valueDescriptor
Returns the descriptor of a value at a specific revisionName | Type | Description |
---|---|---|
id | uint64 | Value ID |
rev0 | uint32 | Revision to query (0 = latest) |
Name | Type | Description |
---|---|---|
desc | Descriptor | Descriptor at the given revision |
valueSnapshot
Returns descriptor and elements of a value at a specific revisionName | Type | Description |
---|---|---|
id | uint64 | Value ID |
rev0 | uint32 | Revision to query (0 = latest) |
Name | Type | Description |
---|---|---|
desc | Descriptor | Descriptor at the given revision |
elems | bytes32[] | Element values at the given revision |
valueOwner
Returns the current owner of a valueName | Type | Description |
---|---|---|
id | uint64 | Value ID |
Name | Type | Description |
---|---|---|
owner | address | Current owner’s address |
valueSota
Returns the latest descriptor and current owner of a valueName | Type | Description |
---|---|---|
id | uint64 | Value ID |
Name | Type | Description |
---|---|---|
desc | Descriptor | Latest descriptor |
owner | address | Current owner’s address |
valueStatus
Checks whether all specified values are active (revision > 0)Name | Type | Description |
---|---|---|
ids | uint64[] | Array of value IDs |
Name | Type | Description |
---|---|---|
active | bool | True if all values exist and are active |
Events
ValueRegistered
Emitted when a new value is registeredName | Type | Description |
---|---|---|
id | uint64 | ID of the newly registered value |
desc | Descriptor | Descriptor of the value |
code | address | Token contract address |
data | bytes32 | Hash of the underlying asset or metadata |
spec | TokenSpec | Token specification (standard, decimals, symbol) |
owner | address | Address of the initial owner |
ValueUpdated
Emitted when a value is updatedName | Type | Description |
---|---|---|
id | uint64 | ID of the value |
desc | Descriptor | Updated descriptor (with bumped revision) |
data | bytes32 | New hash of the asset or metadata |
spec | TokenSpec | Updated or unchanged token specification |
ValueUpgraded
Emitted when a value is upgraded (revision of kind/set updated)Name | Type | Description |
---|---|---|
id | uint64 | ID of the value |
desc | Descriptor | Descriptor after upgrade |
ValueTouched
Emitted when a value is touched (revision bump only, no content change)Name | Type | Description |
---|---|---|
id | uint64 | ID of the value |
desc | Descriptor | Descriptor after touch |
ValueTransferred
Emitted when ownership of a value is transferredName | Type | Description |
---|---|---|
id | uint64 | ID of the value |
from | address | Previous owner address |
to | address | New owner address |