Constraint
Constraint helpers and builder types.
Functions
arg
Target a calldata argument by path. Each argument is a big-endian uint16 step; multiple steps navigate into nested types.
function arg(p0: number): ConstraintBuilder;Parameters
| Name | Type | Description |
|---|---|---|
p0 | number | - |
Returns
ConstraintBuilder
msgSender
Target the msg.sender context property.
function msgSender(): ConstraintBuilder;Returns
ConstraintBuilder
msgValue
Target the msg.value context property.
function msgValue(): ConstraintBuilder;Returns
ConstraintBuilder
blockTimestamp
Target the block.timestamp context property.
function blockTimestamp(): ConstraintBuilder;Returns
ConstraintBuilder
blockNumber
Target the block.number context property.
function blockNumber(): ConstraintBuilder;Returns
ConstraintBuilder
chainId
Target the block.chainid context property.
function chainId(): ConstraintBuilder;Returns
ConstraintBuilder
txOrigin
Target the tx.origin context property.
function txOrigin(): ConstraintBuilder;Returns
ConstraintBuilder
Types
ConstraintBuilder
Mutable builder that accumulates operators targeting a single path.
Implements the Constraint interface so it can be passed directly to policy builders.
ScalarValue
Accepted scalar value types for operator arguments.