How the standard works

A diamond maps four-byte selectors to facet addresses. Delegated calls execute module code against the main contract’s state. The DiamondCut event records additions, replacements and removals of external functions. Ethereum ERC 2535 ↗

An upgrade example

Suppose the order-processing facet is replaced while the address remains the same. An integration calls the old address and selector but runs different code. Keep both facet addresses, the block number and the associated event to establish what changed.

Reconciling the configuration

The standard’s inspection functions show the current selector-to-facet mapping. Compare that map with the history, then review upgrade rights and any initialization data. The resulting record links the visible interface to the implementation that actually handles each call.