

The router (destination chain)
The router is the only place a payment counts. For a statement it accepts exactly one of two outcomes:- Paid, via
pay(order): only the matched filler, only beforepayBy, only the exact amount of the exact asset to the exact recipient, and never to the payer. The router checks the recipient’s balance rose by exactly the amount, records Paid, and sends the outcome in the same transaction. - ExpiredUnpaid, via
expire(order): anyone, at or afterpayBy, while the statement is still pending.
resend(order) repeats the message for a recorded outcome, if delivery ever needs a second try. It can never change the outcome.
The inbox (Ethereum)
The inbox is the order’s verifier. It does three things:accepts(request): at listing, confirms the request names this inbox, its router, its chain, a 20-byte non-zero recipient and a supported asset encoding.record(statement, outcome): stores an outcome, but only when called by the chain’s canonical messenger on behalf of the configured router. A repeated identical outcome is ignored. A conflicting one reverts.verifyandverifyExpired: tell the market which outcome is recorded. They are view functions, so the market reads them with no way for them to change state.
Every router and inbox field is
immutable. Neither contract has an owner.
The verifier registry
The market only lists against approved inboxes.approve(verifier, route)pins the inbox’s code hash and a route label such asbase.listrequires the verifier to be approved and its current code hash to equal the pinned one.matchOffer,fulfillandrefundExpiredcheck the code hash again against the one saved in the order.disable(verifier)stops new listings on that route. Orders already listed keep working, because each order carries its own pinned hash.

