Skip to content

Commit

Permalink
chore: run lint & update natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
kulkarohan committed Sep 27, 2023
1 parent ae17f8a commit f24185c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/upgrades/UpgradeGate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@ import {UpgradeGateStorageV1} from "./UpgradeGateStorageV1.sol";
/// @title UpgradeGate
/// @notice Contract for managing upgrades and safe upgrade paths for 1155 contracts
contract UpgradeGate is IUpgradeGate, Ownable2StepUpgradeable, UpgradeGateStorageV1 {
/// @notice Constructor for deployment pathway
/// @notice Constructor for deployment pathway
constructor(address _defaultOwner) initializer {
__Ownable_init(_defaultOwner);
emit UpgradeGateSetup();
}

/// @notice ContractURI for contract information with the strategy
/// @notice The URI of the upgrade grate contract
function contractURI() external pure returns (string memory) {
return "https://github.com/ourzora/zora-1155-contracts/";
}

/// @notice The name of the sale strategy
/// @notice The name of the upgrade gate contract
function contractName() external pure returns (string memory) {
return "ZORA 1155 Factory Managed Upgrade Gate";
}

/// ///
/// CREATOR TOKEN UPGRADES ///
/// CREATOR TOKEN UPGRADES ///
/// ///

/// @notice If an implementation is registered by the Builder DAO as an optional upgrade
/// @notice If an implementation is registered as an optional upgrade
/// @param baseImpl The base implementation address
/// @param upgradeImpl The upgrade implementation address
function isRegisteredUpgradePath(address baseImpl, address upgradeImpl) public view returns (bool) {
return isAllowedUpgrade[baseImpl][upgradeImpl];
}

/// @notice Called by the Builder DAO to offer implementation upgrades for created DAOs
/// @notice Registers optional upgrades
/// @param baseImpls The base implementation addresses
/// @param upgradeImpl The upgrade implementation address
function registerUpgradePath(address[] memory baseImpls, address upgradeImpl) public onlyOwner {
Expand All @@ -47,7 +47,7 @@ contract UpgradeGate is IUpgradeGate, Ownable2StepUpgradeable, UpgradeGateStorag
}
}

/// @notice Called by the Builder DAO to remove an upgrade
/// @notice Removes an upgrade
/// @param baseImpl The base implementation address
/// @param upgradeImpl The upgrade implementation address
function removeUpgradePath(address baseImpl, address upgradeImpl) public onlyOwner {
Expand Down

0 comments on commit f24185c

Please sign in to comment.