Skip to content

ObjectInteraction

Title: IObjectInteraction

Handles object interactions via directed relations (arcs).

Functions

relate

Links a tail object to a head object through a relation

function relate(uint256 tail, uint64 rel, uint256 head) external;
Parameters
NameTypeDescription
tailuint256Encoded tail node
reluint64Relation ID
headuint256Encoded head node

unrelate

Unlinks a tail object from a head object

function unrelate(uint256 tail, uint64 rel, uint256 head) external;
Parameters
NameTypeDescription
tailuint256Encoded tail node
reluint64Relation ID
headuint256Encoded head node

Events

Related

Emitted when a tail is linked to a head through a relation

event Related(uint128 head, Descriptor desc, uint256 arc);
Parameters
NameTypeDescription
headuint128Encoded SID of the head object
descDescriptorDescriptor of the head after the relation
arcuint256Encoded incoming arc

Related

Emitted when multiple tails are linked to a head

event Related(uint128 head, Descriptor desc, uint256[] arcs);
Parameters
NameTypeDescription
headuint128Encoded SID of the head object
descDescriptorDescriptor of the head after the relations
arcsuint256[]Array of encoded incoming arcs

Unrelated

Emitted when a tail is unlinked from a head

event Unrelated(uint128 head, Descriptor desc, uint256 arc);
Parameters
NameTypeDescription
headuint128Encoded SID of the head object
descDescriptorDescriptor of the head after unlinking
arcuint256Encoded incoming arc

Unrelated

Emitted when multiple tails are unlinked from a head

event Unrelated(uint128 head, Descriptor desc, uint256[] arcs);
Parameters
NameTypeDescription
headuint128Encoded SID of the head object
descDescriptorDescriptor of the head after unlinking
arcsuint256[]Array of encoded incoming arcs
©2025 every