Contract Metadata (ERC-7572)

Contract Metadata (ERC-7572)

Fabrica token contracts implement the ERC-7572 standard for contract-level metadata, providing enhanced discoverability and interoperability for property tokens.

Contract-Level Metadata

Unlike token-specific metadata (which describes individual properties), contract-level metadata provides information about the token contract itself, including:

  • Contract name and description
  • External links (documentation, website)
  • Supported interfaces
  • Issuer information
  • Legal framework references

Implementation

The Fabrica token contract implements the ERC-7572 interface:

function contractURI() external view returns (string memory);

This function returns a URI pointing to a JSON metadata file that follows the ERC-7572 metadata schema:

{
    "name": "Fabrica Land",
    "symbol": "Fabrica",
    "description": "Own real land, onchain. Fabrica turns real estate into non-custodial, permissionless digital assets you can buy, sell, or borrow against in seconds. Each NFT represents true legal ownership of real property, held directly in your wallet.",
    "image": "https://ipfs.fabrica.land/ipfs/QmNeEqLTrKTru1qFUEDiE1Zkb2qdCEvzfqmFbbVXUggF5D",
    "banner_image": "https://ipfs.fabrica.land/ipfs/Qmb7CimDCxPkp8eMnJMD2nhYmEZPgB45x6kTt5eKBq9pJ8",
    "featured_image": "https://ipfs.fabrica.land/ipfs/QmaGGi6EWCUJkQkvfkskBQWAsR5A1AQ74CaE5cdidW7psR",
    "external_link": "https://fabrica.land",
    "collaborators": [
        "0x1908d26657e238a9f464a98b1f017F4cbd2066c7"
    ]
}

Benefits

Contract-level metadata provides several advantages:

  1. Marketplace Integration: Enables marketplaces to display collection information
  2. Verification: Helps users verify the authenticity of Fabrica token contracts
  3. Discoverability: Improves contract discoverability through metadata indexing
  4. Legal Framework: Links to the legal framework governing the token contract

Accessing Contract Metadata

Contract metadata can be accessed by:

  1. Calling the contractURI() function directly on the token contract
  2. Using blockchain explorers that support ERC-7572

This implementation enhances the overall ecosystem by providing standardized contract-level information that complements the token-specific metadata for individual properties.