Concept Flow - Diamond pattern (EIP-2535)
Start: Deploy Diamond Contract
Add Facets (Modules)
Map Functions to Facets
Call Function
Diamond Delegatecall to Facet
Execute Facet Logic
Return Result
End
The Diamond pattern deploys a main contract (Diamond) that delegates calls to multiple smaller contracts (Facets) based on function selectors.
