AsyncOrderLibrary
Title: AsyncOrderLibrary
Helpers attached to AsyncOrder for identity and pricing.
Functions
orderId
Stable identifier for an order, derived from its addressing fields.
(chainId, poolId, owner, zeroForOne, salt) uniquely identifies one open order.
block.chainidkeeps ids unique across chains where the same PoolKey can be deployed (for example Unichain mainnet and Sepolia).saltis contract-assigned at create time and stored off-chain (in the event log) so the maker can pass it back when calling cancel / updatePrice / fill.view(notpure) becauseblock.chainidreads EVM context.
function orderId(AsyncOrder calldata order) internal view returns (bytes32);Parameters
| Name | Type | Description |
|---|---|---|
| order | AsyncOrder |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes32 |