{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/448c07afec5b46fb85eb438ea402f4f8\" frameborder=\"0\" width=\"1672\" height=\"1254\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1254,"width":1672,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1254,"thumbnail_width":1672,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/448c07afec5b46fb85eb438ea402f4f8-1693545662759.gif","duration":525.2666666666679,"title":"LensV2 Demo: Enabling Momoka Collect with Actions","description":"Demo from Phala team: Collect & customized action on Momoka posts in Lens v2\n\nCollect and customized actions are not available on Momoka publications, because the on-chain contract cannot be aware of the Momoka data off the chain. So we have developed a solution for that.\n\nBy connecting Lens API to the blockchain with Phala's oracle solution, we have built an Action on Lens v2 to allow Momoka collect and more.\n\nIn this demo, it shows that:\n1. Momoka publications can be collected with the help of Phala's oracle solution\n2. A simple Web UI was hacked to add a \"Momoka Collect\" button (kudos to Nader's algo playground)\n3. We have developed a mechanism to enable arbitrary customized action on Momoka publications\n\nLinks:\n1. TRY IT OUT! - Collect any Momoka publication on Lens testnet: https://lens-v2-momoka-collect-ui.vercel.app/\n2. Contract implementation on Lens v2: https://github.com/Phala-Network/lens-core/pull/1/files\n3. Demo UI codebase: https://github.com/Phala-Network/lens-v2-momoka-collect-ui"}