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 Solidity type code for the property value.
lookupQuantifier
Map a quantifier path step to its display label.
function lookupQuantifier(code: number): QuantifierInfo;Parameters
| Name | Type | Description |
|---|---|---|
code | number | Quantifier step value. |
Returns
QuantifierInfo — Display metadata for the quantifier.
lookupTypeCode
Map a raw type code byte to its Solidity 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.
isQuantifier
Check whether a path step is a quantifier (ALL_OR_EMPTY, ALL, or ANY).
function isQuantifier(step: number): boolean;Parameters
| Name | Type | Description |
|---|---|---|
step | number | - |
Returns
boolean
Types
Op
Callcium policy operator codes.
TypeCode
ABI type code ranges and sentinel values for the descriptor format.
Quantifier
Reserved path step values that trigger quantified evaluation over array elements.
Scope
Rule scope discriminant: context (EVM environment) vs. calldata (ABI payload).
ContextProperty
Well-known context property IDs for context-scope rules.
Limits
Protocol-imposed safety limits for path depth and quantifier array size.
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.
QuantifierInfo
Display metadata for a quantifier step.
TypeCodeInfo
Display metadata for a descriptor type code.
TypeClassInfo
Structural classification without label — used by the decoder hot path.
TypeClass
Structural category for a descriptor type code.