Reclaiming ownership to the creators 🌱
Headstart is bringing web2 creators onchain via Lens Protocol, ERC-6551, and SAFE AA-wallet.
- 🛸 Out-of-the-box smart contract account available to web2 creators
- 💸 Seamlessly onboard to Lens Protocol
- 🪐 Built on top of wagmi and viem
Install dependencies by running yarn
To run local development run:
yarn dev
To build all apps and packages, run the following command:
yarn build
- Foundry installed (see docs)
To deploy Headstart contract :
cd apps/contract
cp .env.example .env
Fill .env
with relevants variables
forge script script/deploy-headstart.s.sol:DeployHeadstart --rpc-url mumbai --broadcast --verify
🤝 Deployed to Mumbai and Polygon powering a core part of the Headstart ecosystem, Lens Protocol. Utilizing SAFE{Core} Account Abstraction SDk we used SAFE Account Abstraction for creating what we believe could be a future onboarding mechanism. By incentivizing creators with content they already created they can already start reaping the benefits of accumulating followers and collecting (funds). But to naturally onboard them to transfer the ownership of the Token Bound Account ERC-6551 we utilize Web3Auth social login and in the background a fully functioning SAFE wallet.
Link to the relevant section of code
Headstart Subgraph indexes each content creator profile. The profile entity features the tokenbound account address, its owner, token identifier, the Lens handle that it owns and the Lens profile identifier associated to that handle.
The Profile entity is as follow :
type Profile @entity {
id: String!
accountAddress: Bytes!
ownedBy: Bytes!
tokenId: BigInt!
handle: String!
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
profileId: BigInt!
}
Best use of Existing subgraph, our implementation: We integrated Lens Subgraphs to build components of our frontend.
Utilizing SAFE{Core} Account Abstraction SDk we used SAFE Account Abstraction for creating what we believe could be a future onboarding mechanism. By incentivizing creators with content they already created they can already start reaping the benefits of accumulating followers and collecting (funds). But to naturally onboard them to transfer the ownership of the Token Bound Account ERC-6551 we utilize Web3Auth social login and in the background a fully functioning SAFE wallet.
Using the ERC-6551 and SAFE Account Abstraction Wallet we believe this has true potential to benefit the community, properly incentivizing more people to join the ecosystem and put even more great content onchain!
We kept the Nounish vibes, Headstart ⌐◨-◨ looking at creating a new onboarding mechanism utilizing the latest tech and exploring the realm of possibilities.
Chain | Address | Explorer |
---|---|---|
mumbai | 0x5AaE213043e6378BEA5ca4d6f8e37e9DC80Edf9c | https://mumbai.polygonscan.com/address/0x5AaE213043e6378BEA5ca4d6f8e37e9DC80Edf9c |
ERC-6551
The Graph
SAFE{CORE} Account abstraction SDK + Web3auth for social login
wagmi
viem
LensClientSDK
Foundry
Next.js
tailwind
turborepo
web
: another Next.js appcontracts
: smart contracts foundry projectthe-graph
: TheGraph directory
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting