LogoLogo
General DocsTechnical DocsSource CodeMarketing SiteGet Early Access
  • Protocol
    • Overview
    • Treasury & Departments
      • Signers & Access Control
      • Spending Funds & Allowance
      • Departments
    • Capital Stack
      • Share Classes
      • Debt
    • Shareholder Governance
    • Modules
      • Equity Financing Module
        • Priced Rounds
        • SAFEs
      • Billing
      • Payroll
      • Documents
      • Vesting & Unlocks
    • Lifecycle Events
      • Recapitalization
      • Liquidation
      • Acquisition
    • KYC Procceses
  • Smart Contracts
    • Overview
    • Smart Contract Security
    • Deployment of Core Contracts
    • Contract Upgrades
    • Mezz Guards
    • Documents
    • Glossary
    • Source Code
      • Core
        • Base
          • Team
          • TeamControlled
          • AdminControlled
          • Credentialed
          • MezzUUPSUpgradeable
        • MezzShares
          • CommonShares
          • PreferredShares
        • Treasury
        • Department
          • GeneralDepartment
        • Module
          • EquityFinancingModule
        • CapitalStack
        • DelegateRegistry
        • TokenTimelock
        • PayrollManager
        • PricedRound
        • MezzGovernor
          • ProposalGovernor
          • StartupGovernor
          • ShareClassGovernor
          • LateStageGovernor
        • MezzGuard
          • BlacklistGuard
          • WhitelistGuard
          • ShareholderGuard
      • MezzHub
      • MezzDeployer
      • MezzMigrator
      • BillingRouter
      • DocumentRegistry
      • FeeController
      • Events
      • Errors
  • Technical Documentation
    • Creating a Custom Module
Powered by GitBook
On this page
  • State Variables
  • MEZZ_MIGRATOR
  • Functions
  • constructor
  • supportsInterface
  • _authorizeUpgrade
  1. Smart Contracts
  2. Source Code
  3. Core
  4. Base

MezzUUPSUpgradeable

PreviousCredentialedNextMezzShares

Last updated 1 year ago

Inherits: Credentialed, UUPSUpgradeable, IMezzUUPSUpgradeable

Author: Daniel Yamagata & Naveen Ailawadi

A base contract inherited by user-facing, upgradeable core contract

All calls to 'upgradeToAndCall()' must be made by the Mezz Migrator

State Variables

MEZZ_MIGRATOR

IMezzMigrator public immutable MEZZ_MIGRATOR;

Functions

constructor

constructor(address _mezzMigrator);

supportsInterface

ERC165 support

function supportsInterface(bytes4 interfaceId) public view virtual override(Credentialed, IERC165) returns (bool);

_authorizeUpgrade

Called in UUPSUpgradeable's upgradeToAndCall(...). Overridden such that the caller must be MEZZ_MIGRATOR.

function _authorizeUpgrade(address) internal virtual override;
Git Source