Callcium
API

Constants

Protocol constants, enums, and lookup helpers.

Functions

lookupOp

Map an operator code to its display label. Strips the NOT flag automatically. A context source adds ctx.

Git Source

function lookupOp(code: number): OpInfo;

Parameters

NameTypeDescription
codenumberOperator byte value (can include the NOT flag).

Returns

OpInfo — Display metadata for the base operator.

lookupScope

Map a scope code to its display label.

Git Source

function lookupScope(code: number): ScopeInfo;

Parameters

NameTypeDescription
codenumberScope byte value.

Returns

ScopeInfo — Display metadata for the scope.

lookupQuantifier

Map a loop quantifier code to its display label.

Git Source

function lookupQuantifier(code: number): QuantifierInfo;

Parameters

NameTypeDescription
codenumberQuantifier byte value.

Returns

QuantifierInfo — Display metadata for the quantifier.

lookupContextProperty

Map a context property code to its display label and ABI type code.

Git Source

function lookupContextProperty(code: number): ContextPropertyInfo;

Parameters

NameTypeDescription
codenumberContext property ID.

Returns

ContextPropertyInfo — Display metadata including the ABI type code for the property value.

lookupTypeCode

Map a raw type code byte to its ABI type label, structural category, and dynamism.

Git Source

function lookupTypeCode(code: number): TypeCodeInfo;

Parameters

NameTypeDescription
codenumberA single-byte descriptor type code.

Returns

TypeCodeInfo — Label, type class, and whether the code alone implies ABI dynamism (false for tuples and static arrays).

Types

Op

Callcium policy operator codes, with the NOT flag and the operand source fields.

Git Source

Source

Operand source: constant values, or a context property.

Git Source

TypeCode

ABI type code ranges and sentinel values for the descriptor format.

Git Source

Scope

Rule scope discriminant: context (EVM environment), calldata (ABI payload) or loop (array elements).

Git Source

LoopQuantifier

Loop quantifier: the body holds for every element (ALL) or for some element (ANY).

Git Source

ContextProperty

Well-known context property IDs for context-scope rules.

Git Source

Operands

Operand count category of an operator.

Git Source

OpInfo

Display metadata for an operator code.

Git Source

ScopeInfo

Display metadata for a scope code.

Git Source

QuantifierInfo

Display metadata for a loop quantifier code.

Git Source

ContextPropertyInfo

Display metadata for a context property code.

Git Source

ComparisonCode

A defined comparison code.

Git Source

ScopeCode

A defined scope code.

Git Source

QuantifierCode

A defined loop quantifier code.

Git Source

TypeCodeInfo

Display metadata for a descriptor type code.

Git Source

TypeClassInfo

Structural classification without label.

Git Source

TypeClass

Structural category for a descriptor type code.

Git Source

On this page