Files
core/contracts/misc/ModuleWhitelistProxy.sol
donosonaumczuk 353dd03c7e misc: Unused imports removed
Co-authored-by: Victor Naumik <vicnaum@gmail.com>
2023-03-23 21:45:11 +00:00

26 lines
782 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;
import {ILensHub} from 'contracts/interfaces/ILensHub.sol';
import {ImmutableOwnable} from 'contracts/misc/ImmutableOwnable.sol';
/**
* @title ModuleWhitelistProxy
* @author Lens Protocol
*
* @notice This is an ownable proxy contract that enforces ".lens" handle suffixes at profile creation.
* Only the owner can create profiles.
*/
contract ModuleWhitelistProxy is ImmutableOwnable {
uint256 latestId;
constructor(address owner, address hub) ImmutableOwnable(owner, hub) {}
function proxyWhitelistActionModule(address actionModule) external onlyOwner returns (uint256) {
++latestId;
ILensHub(LENS_HUB).whitelistActionModuleId(actionModule, latestId);
return latestId;
}
}