# Social Layer 与 Smart Contract 乐高式组合

Web3 social 终于在第三次（Steem 为代表的 2016-2018 为第一次，Bitcloud、Mirror、任务平台为代表的 2020-2022 为第二次）尝试的时候迎来曙光，其中以 Farcaster、Telegram 小程序、Twitter + Blinks 为三类代表。

### 01 开放的社交层

让我们先将 twitter 与 Farcaster 进行对比。Farcaster 通过 Farcaster Hub 将 Social Layer 抽离出来，成为一个公共的社交层，使得开发者可以无许可地在 Social Layer 上构建客户端和应用。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2F7fxfM4KcIBiABNUOL7rC%2Fsocial%20layer.png?alt=media&#x26;token=6d84bf13-fcfa-4084-99a8-7d50c7b1972c" alt=""><figcaption></figcaption></figure>

之前，开放的 Twitter 也让第三方可以通过 twitter API 共享其 twitter 数据库（Database），当时涌现出了很多比 twitter App 好用的客户端。Farcaster Hub 与 Twitter Database 的区别在于，前者由人们无许可地分布式维护，而后者由 twitter 团队维护。

### 02 Frame 与 Open Action

从 [Lens 提出 Open Action](https://mirror.xyz/0x678b508ae5918b5725A803949239eE3D1b9fC9a6/-hJH-2IYSe56rK7IEdwSI17hUWt-paTyAs1r4Zes0uQ) 到现在，刚刚过去一年。该领域涌现出了 Frame、Blinks 等让人为之兴奋的创新，也让我们对 web3 social 有了更多期待（关于 web3 UI 交互范式可见《[Reputation - the 🗝 to unlock new paradigms in Social and Consumer](https://mirror.xyz/0x6BE454113A58861A09Fc2A57940a344357B3859a/U_vbDWo3my127uDRT8ciPHuaOwXliPwn2etKKWNMnbM)》The Composability paradigm）。

#### 2.1 Farcaster Frame

由于 Farcaster Hub 采用公私钥（以太坊地址）作为账户，以及制定了一套 Frame OG，这使得采用 Farcaster Hub 作为 Social Layer 的客户端 —— 比如 Warpcast 可以将“Content”与“Frame”（可调用 Smart Contract）进行组合。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2FdgFzSIM3VGQwcdhKK8DO%2FFrame.png?alt=media&#x26;token=df8e5614-eb5f-47e9-abdb-60765ef9db9a" alt=""><figcaption></figcaption></figure>

Warpcast 用户在与“Content”下的“Frame”进行交互，可以直接调用智能合约，进行 “mint”、 “swap”、 “vote”、 “stake”等操作。

Farcaster 不是第一个提出“Frame”想法的 Social Layer，不过它将其扩散到了加密社区，让大多数人知晓（[Lens V2 与 Open Action](https://mirror.xyz/lensprotocol.eth/-hJH-2IYSe56rK7IEdwSI17hUWt-paTyAs1r4Zes0uQ)）。

#### 2.2 Blinks：Frame 在 Twitter 等 web2 平台的应用

与 Farcaster Frame 类似，Blinks 通过 Action API、Action URL 在 twitter 等 web2 平台实现了“Frame”。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2FM9vPIjvDxI56BAuxREjw%2FBlinks.png?alt=media&#x26;token=5a8446ab-4f82-4a87-8e58-3aa9c80f1755" alt=""><figcaption></figcaption></figure>

发布者可以在 tweet 的同时，附带 Action URL，在 twitter 页面发布类似“Frame”的 Action。在有安装支持 Blinks 的插件之后，可以将浏览者 twitter 页面的 Action URL 解析为“可交互式 Action” —— 如 Frame 一样，并与之进行交互（调用智能合约）。

如此，[Blinks 在 twitter、reddit、Discord、Telegram 等 web2 平台](https://dialectlabs.medium.com/introducing-the-blinks-client-sdk-8bf0e3474349)的基础上，实现了 “content” 与 “Frame” 的组合。人们也在 Blinks 的基础上，创建了丰富的应用场景（《[33 个 Blinks 用法一览](https://x.com/starzqeth/status/1812650846024601837)》）。

Blinks 打开了“将 twitter 作为交互层，结合 twitter Database 与 Smart Contract 进行组合”的新范式，它还将其拓展到了 reddit、discord 等更多 web2 平台。

### 03 Channel 与社区 $toekn 社交空投

#### 3.1 /DEGEN channel 进行社交空投，实现冷启动

Farcaster 通过 Farcaster Hub 、采用公私钥（以太坊地址）作为账户、Channel 创建，还实现了：

1. 创建 on-chain channel - 让社区的内容建设和社交互动可以汇聚在一个充分去中心化的 social layer；
2. 社交空投 - 根据 on-chain channel 的内容建设和社交互动，以及社交空投算法，对社区成员空投社区 $token；

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2FVoqa7steuiYssu6uU92z%2Fchannel.png?alt=media&#x26;token=cb1e1d62-59de-4a39-8d55-d55b252688fc" alt=""><figcaption></figcaption></figure>

$DEGEN 的社交空投点燃了 Farcaster 参与者热情，让 Farcaster 社交网络规模成指数扩张。与此同时，Farcaster 生态众多社区都通过类似的方式进行启动。

#### 3.2 通过 Twitter API 在 Twitter Community 进行社交空投

与 Farcaster 生态项目 $DEGEN 等通过“社交-空投”来进行冷启动一样，Wormhole3 也构建了中间件（包括 twitter API 在内的一系列工具），使得人们可以在 twitter community 进行社交空投，以启动其社区。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2F20CphkRIox4XBph0cLKP%2Fcommunity.png?alt=media&#x26;token=70f19377-061d-4330-bbdd-5ee0492c09cf" alt=""><figcaption></figcaption></figure>

Wormhole3 - 中间件直接将 twitter database 与 social layer 进行连接，人们可以在 tweet 时带上特定标签，即可将内容发布到 on-chain community（如下图，通过 #trump 将内容发布到 on-chain trump 社区）。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2FdB5Qcb4JfFrYfNMmCpg8%2F%23%20trump.png?alt=media&#x26;token=ed1d84c4-9ede-4bda-a78c-2da2768d824e" alt=""><figcaption></figcaption></figure>

在此基础上，参与社区内容建设和社交互动的社区成员可以根据社交空投算法，获得社区 $token。

Wormhole3 - 中间件不仅仅支持 twitter，还支持其他 web2 平台。比如，曾经 wormhole3 团队开发了一个 WordPress 插件（[steem4wp](https://steemit.com/blog/@robertyan/steem4wp-v0-1-0-wordpress--steemhive-20200406t180545806z)）。任何安装了该插件的博客、网站，其数据与 Social Layer 双向打通。Wormhole3 团队也帮助博客、网站实现了，在对其博客、网站的参与者空投 $STEEM。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2FdMahN66AxDNWvEKXOE5L%2Fsteem4wp.png?alt=media&#x26;token=97e93b9a-04cd-41e7-874c-9755b38fb7ed" alt=""><figcaption></figcaption></figure>

#### 3.3 Blinks 升级版

虽然 Wormhole3 - 中间件设计了丰富的控件，可以解决资源使用等问题。然而，其依旧受到 Twitter Database 的制约。

我们可以拓展 Blinks，为 Wormhole3 - 中间件解决此难点。同时，它将带来更好地体验。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2F25x9vi9DEh6y5CEydzxs%2FBlinks%20%2B%20.png?alt=media&#x26;token=5cee49bf-9b63-4ce7-8f24-b9dc2b555077" alt=""><figcaption></figcaption></figure>

Mask、CrossBell 等在这块做了很多探索，比如我们在 tweet 时，可以点亮一个“OpenGraph Button”。这样，tweet 的内容可以直接发布到 on-chain community。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2FZVTkwg9reAiVfKDN29Iu%2F420.png?alt=media&#x26;token=bedab10c-1e26-4f0c-9b1c-7a8e09afec44" alt=""><figcaption></figcaption></figure>

在比如，我们可以在 tweet 内容的下面，嵌入一个“OpenGraph Button”，让人们可以直接通过该“Button”与 on-chain tweet 进行各种交互（一如 Farcaster 的自定义 Action）。我们亦可在个人头像出嵌入一个“OpenGraph Button”，展现该用户的“去中心化声誉”以及直接购买该用户的“个人代币”。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2FbeDqFfzueqAZmUst6GLx%2F528.png?alt=media&#x26;token=8ec72f50-54af-48ac-ada8-ce3279c6e863" alt=""><figcaption></figcaption></figure>

通过强化版 Blinks，我们可以极大拓展 Twitter ，使 social layer 与 smart contract 更好地进行乐高式组合。

<figure><img src="https://255164175-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmd3cDbQ6chKwxf5iNPN2%2Fuploads%2F1zPDzceOl4Y2kVPNk8iT%2FBlinks%20%2B%2B.png?alt=media&#x26;token=6a384a86-24b7-422c-8b5f-f7cd0407db54" alt=""><figcaption></figcaption></figure>
