mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
29 lines
822 B
Solidity
29 lines
822 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity 0.8.15;
|
|
|
|
import {ILensHub} from '../interfaces/ILensHub.sol';
|
|
import {DataTypes} from '../libraries/DataTypes.sol';
|
|
import {Errors} from '../libraries/Errors.sol';
|
|
import {Ownable} from '@openzeppelin/contracts/access/Ownable.sol';
|
|
|
|
/**
|
|
* @title ProfileCreationProxy
|
|
* @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 ProfileCreationProxy is Ownable {
|
|
ILensHub immutable LENS_HUB;
|
|
|
|
constructor(address owner, ILensHub hub) {
|
|
_transferOwnership(owner);
|
|
LENS_HUB = hub;
|
|
}
|
|
|
|
function proxyCreateProfile(DataTypes.CreateProfileData memory vars) external onlyOwner {
|
|
LENS_HUB.createProfile(vars);
|
|
}
|
|
}
|