Smart Contracts
Useful resources for working with the Lens Protocol smart contracts.
Deployed Contracts
The Lens Protocol smart contracts are deployed on the Polygon Mainnet and Amoy Testnet. Below are the addresses and ABIs for the deployed contracts.
- Polygon Mainnet
- Amoy Testnet
Contract | Address | ABI | |
---|---|---|---|
LensHub | 0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d | JSON | |
LensHandles | 0xe7E7EaD361f3AaCD73A61A9bD6C10cA17F38E945 | JSON | |
TokenHandleRegistry | 0xD4F2F33680FCCb36748FA9831851643781608844 | JSON | |
FollowNFT | 0x288715E67B7b184fD299143280CA6c1Eb7F31e1B | JSON | |
CollectNFT | 0x0c2a7761E2971D906338F5da1ecF0027E4247fd7 | JSON | |
ModuleRegistry | 0x1eD5983F0c883B96f7C35528a1e22EEA67DE3Ff9 | JSON |
Misc / Helpers
Contract | Address | ABI | |
---|---|---|---|
PermissionlessCreator | 0x0b5e6100243f793e480DE6088dE6bA70aA9f3872 | JSON | |
ProfileCreationProxy | 0xdCB72aaB62d52aBC2E6be99BEEe535C2D1361fc0 | JSON | |
PublicActProxy | 0x53582b1b7BE71622E7386D736b6baf87749B7a2B | JSON | |
LitAccessControl | 0xE1A4f40b74f6E91159ffBd95489FE74Efe71fD97 | JSON |
Follow Modules
Contract | Address | ABI | |
---|---|---|---|
FeeFollowModule | 0xa8f6ba162dB789039D07A4f0ce90b1aE1f46FE8E | JSON | |
RevertFollowModule | 0x4E2D0157464501C98E781491a9dbC99c2F3fD90f | JSON |
Open Action Modules
Contract | Address | ABI | |
---|---|---|---|
CollectPublicationAction | 0x0D90C58cBe787CD70B5Effe94Ce58185D72143fB | JSON |
Reference Modules
Contract | Address | ABI | |
---|---|---|---|
DegreesOfSeparationReferenceModule | 0xBe69302b0E3bAc1018B2772A7B26EB2325b3F9C8 | JSON | |
FollowerOnlyReferenceModule | 0x19F8980aF29207bbd7A6D0aD0858d59bd11d4647 | JSON |
Collect Action Modules
Submodules of CollectPublicationAction module.
Contract | Address | ABI | |
---|---|---|---|
SimpleFeeCollectModule | 0x060f5448ae8aCF0Bc06D040400c6A89F45b488bb | JSON | |
MultirecipientFeeCollectModule | 0x50f1D8779078c790b82dE5Aa8d72A841e1CBBbE1 | JSON |
Advanced Material
Contracts Book
If you want to dig deep into the contract please read our contracts book.
Run It Locally
First, clone the repository using SSH:
git clone [email protected]:lens-protocol/core.git
Next, install Foundry. You can follow the installation steps below, or for more detailed instructions, refer to the Foundry documentation.
# Install Foundrycurl -L https://foundry.paradigm.xyz | bash
# Once Foundry is installed, run the following commandfoundryup
After installing Foundry, navigate to the cloned repository folder and install the dependencies:
npm install && forge install
Finally, you can build the project:
npm run build