Constants
Protocol constants, enums, and lookup helpers.
Functions
lookupOp
Map an operator code to its display label. Strips the NOT flag automatically.
function lookupOp(code: number): OpInfo;Parameters
| Name | Type | Description |
|---|---|---|
code | number | Operator byte value (may include the NOT flag). |
Returns
OpInfo — Display metadata for the base operator.
lookupScope
Map a scope code to its display label.
function lookupScope(code: number): ScopeInfo;Parameters
| Name | Type | Description |
|---|---|---|
code | number | Scope byte value. |
Returns
ScopeInfo — Display metadata for the scope.
lookupContextProperty
Map a context property code to its display label and ABI type code.
function lookupContextProperty(code: number): ContextPropertyInfo;Parameters
| Name | Type | Description |
|---|---|---|
code | number | Context property ID. |
Returns
ContextPropertyInfo — Display metadata including the ABI type code for the property value.
findContextProperty
Look up a context property code in the assigned set.
function findContextProperty(code: number): ContextPropertyInfo | undefined;Parameters
| Name | Type | Description |
|---|---|---|
code | number | Context property ID. |
Returns
ContextPropertyInfo | undefined — Display metadata, or undefined when the ID names no assigned property.
lookupTypeCode
Map a raw type code byte to its ABI type label, structural category, and dynamism.
function lookupTypeCode(code: number): TypeCodeInfo;Parameters
| Name | Type | Description |
|---|---|---|
code | number | A single-byte descriptor type code. |
Returns
TypeCodeInfo — Label, type class, and whether the type is ABI-dynamic.
isLengthOp
Return true when the operator code (with or without NOT flag) is a LENGTH_* variant.
function isLengthOp(opCode: number): boolean;Parameters
| Name | Type | Description |
|---|---|---|
opCode | number | - |
Returns
boolean
Types
Op
Callcium policy operator codes.
TypeCode
ABI type code ranges and sentinel values for the descriptor format.
PolicyFormat
Binary layout constants and normative limits for the Callcium policy format.
Scope
Rule scope discriminant: context (EVM environment) vs. calldata (ABI payload).
ContextProperty
Well-known context property IDs for context-scope rules.
MAX_CONTEXT_PROPERTY_ID
Maximum valid context property ID.
Operands
Operand count category for operator data validation.
OpInfo
Display metadata for an operator code.
ScopeInfo
Display metadata for a scope code.
ContextPropertyInfo
Display metadata for a context property code.
TypeCodeInfo
Display metadata for a descriptor type code.
TypeClassInfo
Structural classification without label.
TypeClass
Structural category for a descriptor type code.