Extending/adding entities
I extended some of the existing entities with more fields and created a few new ones based on emitted events mentioned in Lens' docs
I'd appreciate some feedback on whether such additions are in line with what is planned for this subgraph or whether there's stuff I should tweak and anything else.
Thanks
Hi @svskaushik , these entities look clean, I'm confused about the whitelisting entities like ProfileCreatorWhitelisted, FollowModuleWhitelist, ReferenceModuleWhitelist, and CollectModuleWhitelist. Are these in place to verify the user is whitelisted for the Lens Protocol? Or can users make their own whitelists?
Hi @lndavis6, thanks for taking the time to look through! Yes, the idea behind the whitelisting entities was to keep a track of whether users are whitelisted for Lens (indexing the whitelisting events from the contract)
An example of the intended return values below if it helps.
A query for profileCreatorWhitelist for the address 0x39c9bc23b1f993b94dec69b7ac11c95145ec4e15 returns the following:
{
"data": {
"profileCreatorWhitelists": [
{
"id": "0x39c9bc23b1f993b94dec69b7ac11c95145ec4e15",
"isWhitelisted": true,
"lastUpdated": "1649155635"
}
]
}
}
(this is from a test contract on mumbai)
I guess these would just serve a similar purpose as directly reading isProfileCreatorWhitelisted from the contract, with the additional timestamp.
I hope that helps a little
Makes sense! Thank you @svskaushik