Title | [Draft-ZIP] Lens Chain inclusion on Elastic Network |
---|---|
Proposal Type | ZIP |
One Sentence Summary: | Proposal for Lens Chain inclusion on Elastic Network. |
Proposal Author | Lens Chain |
Proposal Sponsor: | Cyfrin |
Date Created: | 24 February 2025 |
Version | v1 |
Summary of Action | Include Lens Chain in the Elastic Network |
Link to contracts | TBC |
[Draft-ZIP] Lens Chain inclusion on Elastic Network
Summary
Lens Chain is a high performance chain built leveraging ZKsync and Avail. The Lens Labs team and Matter Labs have collaborated in the creation of the chain, and the migration of user profiles, followers and publications from Lens V2 on Polygon to Lens Chain.
Since the state including the migration data will be applied on genesis, we need to request the inclusion of the chain on the Elastic Network.
Abstract
The deployment of Lens Chain, with its significant state changes at genesis, requires approval through ZKsyncβs governance system. This critical step ensures transparency and community validation of the migration process.
The implementation of this governance process, combined with our active data synchronization, represents a methodical approach to launching Lens Chain while maintaining the trust and engagement of our user community.
As far as we are aware, this is a first-time occurrence in the Elastic Network ecosystem of applying such large genesis state.
Motivation
Lens v2 has built a thriving community with over 600,000 profiles and unique handles. The protocol maintains strong engagement with 45,000 weekly active users who have collectively created 31 million publications.
When Lens Chain launches, all existing user data will be automatically deployed at genesis. This means users can immediately start using Lens Chain at launch without taking any migration steps β their profiles, connections, and content will be ready and waiting for them.
This seamless migration process, developed in partnership with Matter Labs, represents a groundbreaking technical achievement in both blockchain and ZK technology. It is the first time a blockchain ecosystem has executed such a comprehensive automated migration at genesis.
Specification
We will be applying a genesis state on block 0 which includes:
- Profiles - 645_408
- Profile Managers - 588_371
- Handles - 639_296
- Apps - 359
- Unlinked Handles - 2_421
- Follows - 27_944_873
- Root Posts - 11_756_025
- Comments Depth 1 - 3_613_497
- Comments Depth 2 - 563_735
- Comments Depth 3 - 101_472
- Comments Depth 4 - 36_221
- Quotes - 308_217
- Quotes Comments - 153_784
Mirrors will not be migrated and any comments greater depth then 4 will not be migrated either.
All Momoka publications will be migrated if they fall in the criteria above.
While the vote is happening we will be syncing Lens v2 Polygon data onto Lens v3 on Lens Chain.
Rationale
We aim to provide a seamless transition to Lens Chain while preserving usersβ existing Lens profiles, including their social connections and content history.
This ensures users can use Lens Chain and Lens V3 without any manual effort while maintaining their established social presence.
Backwards Compatibility
NA - this is a request to include Lens Chain in the Elastic Network and there are no potential breaking changes.
Security Considerations
The technical implementation has been done in collaboration with the Matter Labs team, and security reviews have been performed on their end and on our end.
Alongside all state validation has been confirmed as correct, with verification tasks run and other forms of validation.
Other Information
- A migration blog will go into more in-depth detail of how we migrated the state - stay tuned
- Lens Website - lens.xyz
- Developer Docs - Lens Chain | Lens Protocol Documentation