Cointegrity

Diamond Standard (EIP-2535)

Web3 / smart contracts

The Diamond Standard, formalized as EIP-2535, is a smart contract architecture pattern that overcomes Ethereum's 24KB bytecode size limit by organizing contract functionality into separate facets managed by a central proxy diamond contract. The diamond stores function selectors that route calls to appropriate facets, allowing unlimited code to be added across multiple contracts while maintaining a single persistent storage and address. Each facet is an independent contract implementing specific functions, and the diamond's selector mapping enables seamless function delegation. This architecture also enables flexible upgradability where facets can be added, removed, or replaced independently, making diamonds ideal for complex protocols that need to grow and evolve without redeployment or storage migration. Example: Aavegotchi, a play-to-earn NFT game, uses the Diamond Standard to manage complex game mechanics across multiple facets including character management, lending, and governance, all accessible through a single diamond contract interface. Why it matters for smart contracts: Diamonds overcome contract size limitations while enabling granular, independent upgrades of different protocol components. This allows complex protocols to scale functionality without redeploying storage, reducing costs and complexity while maintaining robust version management.

Category: smart contracts, blockchain technology

Explore the full Web3 Glossary — 2,038+ expert-curated definitions. Need guidance? Talk to our consultants.