LensHubInitializable
Inherits: LensHub, VersionedInitializable, ILensHubInitializable
Author: Lens Protocol
Extension of LensHub contract that includes initialization for fresh deployments.
State Variables
REVISION
uint256 internal constant REVISION = 1;
Functions
constructor
constructor(
address followNFTImpl,
address collectNFTImpl,
address moduleRegistry,
uint256 tokenGuardianCooldown,
Types.MigrationParams memory migrationParams
) LensHub(followNFTImpl, collectNFTImpl, moduleRegistry, tokenGuardianCooldown, migrationParams);
initialize
Initializes the LensHub, setting the initial governance address, the name and symbol of the profiles in the LensNFTBase contract, and Protocol State (Paused).
This is assuming a proxy pattern is implemented.
function initialize(string calldata name, string calldata symbol, address newGovernance)
external
override
initializer;
Parameters
Name | Type | Description |
---|---|---|
name | string | The name of the Profile NFT. |
symbol | string | The symbol of the Profile NFT. |
newGovernance | address | The governance address to set. |
getRevision
function getRevision() internal pure virtual override returns (uint256);