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

KindElements

Git Source

State Variables

CODE

uint256 constant CODE = 0

DATA

uint256 constant DATA = 1

ELEM_SPEC

uint256 constant ELEM_SPEC = 2

RELS0

uint256 constant RELS0 = 3

RELS1

uint256 constant RELS1 = 4

RELS2

uint256 constant RELS2 = 5

RELS3

uint256 constant RELS3 = 6

COUNT

uint256 constant COUNT = 7

Functions

packRelationSpec

function packRelationSpec(uint64[] memory rels) internal pure returns (bytes32, bytes32, bytes32, bytes32);

unpackRelationSpec

function unpackRelationSpec(bytes32 p0, bytes32 p1, bytes32 p2, bytes32 p3)
    internal
    pure
    returns (uint64[] memory);

packElementSpec

function packElementSpec(uint8[] memory elemSpec) internal pure returns (bytes32);

unpackElementSpec

function unpackElementSpec(bytes32 packed) internal pure returns (uint8[] memory);

Structs

View

struct View {
    MatterHash code;
    MatterHash data;
    Info elemSpec;
    Info rels0;
    Info rels1;
    Info rels2;
    Info rels3;
}