<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/448c07afec5b46fb85eb438ea402f4f8&quot; frameborder=&quot;0&quot; width=&quot;1672&quot; height=&quot;1254&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>1254</height><width>1672</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>1254</thumbnail_height><thumbnail_width>1672</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/448c07afec5b46fb85eb438ea402f4f8-1693545662759.gif</thumbnail_url><duration>525.2666666666679</duration><title>LensV2 Demo: Enabling Momoka Collect with Actions</title><description>Demo from Phala team: Collect &amp; customized action on Momoka posts in Lens v2

Collect 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.

By connecting Lens API to the blockchain with Phala&apos;s oracle solution, we have built an Action on Lens v2 to allow Momoka collect and more.

In this demo, it shows that:
1. Momoka publications can be collected with the help of Phala&apos;s oracle solution
2. A simple Web UI was hacked to add a &quot;Momoka Collect&quot; button (kudos to Nader&apos;s algo playground)
3. We have developed a mechanism to enable arbitrary customized action on Momoka publications

Links:
1. TRY IT OUT! - Collect any Momoka publication on Lens testnet: https://lens-v2-momoka-collect-ui.vercel.app/
2. Contract implementation on Lens v2: https://github.com/Phala-Network/lens-core/pull/1/files
3. Demo UI codebase: https://github.com/Phala-Network/lens-v2-momoka-collect-ui</description></oembed>