Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

RelationElements

Git Source

State Variables

CODE

uint256 constant CODE = 0

DATA

uint256 constant DATA = 1

RULE

uint256 constant RULE = 2

ADJS0

uint256 constant ADJS0 = 3

ADJS1

uint256 constant ADJS1 = 4

ADJS2

uint256 constant ADJS2 = 5

ADJS3

uint256 constant ADJS3 = 6

INDICES

uint256 constant INDICES = 7

COUNT

uint256 constant COUNT = 8

Structs

View

struct View {
    MatterHash code; // Logic for processing the relation
    MatterHash data; // Metadata about the relation
    Info rule; // Relation rule
    Info adjs0; // Adjacency slot 0
    Info adjs1; // Adjacency slot 1
    Info adjs2; // Adjacency slot 2
    Info adjs3; // Adjacency slot 3
    Info indices; // Adjacency indices
}