ProfileCreationProxy

Git Source

Inherits: ImmutableOwnable

Author: Lens Protocol

This is an ownable proxy contract that enforces ".lens" handle suffixes at profile creation. Only the owner can create profiles.

State Variables

LENS_HANDLES

ILensHandles immutable LENS_HANDLES;

TOKEN_HANDLE_REGISTRY

ITokenHandleRegistry immutable TOKEN_HANDLE_REGISTRY;

Functions

constructor

constructor(address owner, address hub, address lensHandles, address tokenHandleRegistry)
    ImmutableOwnable(owner, hub);

proxyCreateProfile

function proxyCreateProfile(Types.CreateProfileParams calldata createProfileParams)
    external
    onlyOwner
    returns (uint256);

proxyCreateProfileWithHandle

function proxyCreateProfileWithHandle(Types.CreateProfileParams memory createProfileParams, string calldata handle)
    external
    onlyOwner
    returns (uint256, uint256);

proxyCreateHandle

function proxyCreateHandle(address to, string calldata handle) external onlyOwner returns (uint256);

Errors

ProfileAlreadyExists

error ProfileAlreadyExists();