Functions
onSetRegister
Called before a set is registered| Name | Type | Description |
|---|---|---|
set | uint64 | Set ID |
od | Descriptor | Descriptor of the set |
| Name | Type | Description |
|---|---|---|
selector | bytes4 | Must return onSetRegister.selector |
onSetUpdate
Called before a set is updated| Name | Type | Description |
|---|---|---|
set | uint64 | Set ID |
od | Descriptor | Updated descriptor |
| Name | Type | Description |
|---|---|---|
selector | bytes4 | Must return onSetUpdate.selector |
onSetUpgrade
Called before a set is upgraded| Name | Type | Description |
|---|---|---|
set | uint64 | Set ID |
od | Descriptor | Descriptor after upgrade |
| Name | Type | Description |
|---|---|---|
selector | bytes4 | Must return onSetUpgrade.selector |
onSetTouch
Called before a set is touched (revision bump with no content change)| Name | Type | Description |
|---|---|---|
set | uint64 | Set ID |
od | Descriptor | Descriptor after touch |
| Name | Type | Description |
|---|---|---|
selector | bytes4 | Must return onSetTouch.selector |
onObjectRelate
Called before an object from this set is linked to another object| Name | Type | Description |
|---|---|---|
id | uint64 | Head object ID (belongs to this set) |
rel | uint64 | Relation ID |
data | uint64 | Optional relation data (uint64 encoded) |
tailSet | uint64 | Set ID of the tail object |
tailId | uint64 | ID of the tail object |
tailKind | uint64 | Kind ID of the tail object |
| Name | Type | Description |
|---|---|---|
od | Descriptor | Updated descriptor of the head object |
onObjectUnrelate
Called before an object from this set is unlinked from another object| Name | Type | Description |
|---|---|---|
id | uint64 | Head object ID (belongs to this set) |
rel | uint64 | Relation ID |
data | uint64 | Optional relation data (uint64 encoded) |
tailSet | uint64 | Set ID of the tail object |
tailId | uint64 | ID of the tail object |
tailKind | uint64 | Kind ID of the tail object |
| Name | Type | Description |
|---|---|---|
od | Descriptor | Updated descriptor of the head object |
onObjectTransfer
Called before ownership of an object from this set is transferred as part of a relation or unrelation operation.| Name | Type | Description |
|---|---|---|
id | uint64 | ID of the object being transferred |
from | address | Current owner |
to | address | New owner |
| Name | Type | Description |
|---|---|---|
selector | bytes4 | Must return onObjectTransfer.selector to proceed |