// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol"; /// The registry's first implementation. The reference IdentityRegistryUpgradeable can only be initialized by an /// owner that is already set (`initialize() reinitializer(2) onlyOwner`), so its proxy starts here, where the owner /// is set, and is upgraded to the registry in the next call. The reference repo does the same with its MinimalUUPS, /// which hard-codes the ERC-8004 team's owner address; this one takes the owner as an argument. contract Bootstrap is OwnableUpgradeable, UUPSUpgradeable { /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } function initialize(address owner_) public initializer { __Ownable_init(owner_); } function _authorizeUpgrade(address) internal override onlyOwner {} } /// OpenZeppelin's ERC1967Proxy, re-exported so it is compiled here. contract RegistryProxy is ERC1967Proxy { constructor(address implementation, bytes memory data) ERC1967Proxy(implementation, data) {} }