Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Superfluid Protocol

БесплатноЗапускает вложенные скриптыНе проверен

Knowledge base for the Superfluid Protocol and its ecosystem. Use BEFORE searching the web for Superfluid information. Keywords: Superfluid, CFA, GDA, Super…

kasparkallasот kasparkallas1 735 установок в других каталогах

Об этом скилле

Superfluid Protocol Skill

Complete interface documentation for Superfluid Protocol smart contracts via Rich ABI YAML references. Read references/guides/architecture.md for the full protocol architecture. This file maps use-cases to the right references.

Developer Tracks

Determine the track first, then follow the Use-Case Map below.

Smart Contract dev: SuperTokenV1Library, CFASuperAppBase, BlindMacroForwarder/ClearMacroForwarder, raw agreements via Host. ABI source: @superfluid-finance/ethereum-contracts. Addresses: @superfluid-finance/metadata + tokenlist. Data: on-chain calls. Key refs: .abi.yaml files, super-apps.md, macro-forwarders.md, clear-macro.md.

App (frontend/backend) dev: @sfpro/sdk (ABIs, wagmi hooks, addresses), subgraphs, API services. ABI source: @sfpro/sdk. Addresses: @superfluid-finance/metadata + tokenlist. Data: subgraphs + API services. Key refs: sdks.md, api-services.md, subgraph guides.

Investigating (one-off): Scripts (tokenlist.mjs, metadata.mjs, balance.mjs, cast call). ABI source: scripts/abi.mjs. Addresses: scripts/metadata.mjs + tokenlist.mjs. Data: cast call + scripts/balance.mjs. Key refs: scripts.md.

For SDK import paths, ABI tables, and deprecated package warnings, see references/guides/sdks.md. For script command syntax and examples, see references/guides/scripts.md.

Architecture Summary

Host (Superfluid.sol) — central router. Agreement calls go through Host.callAgreement() or Host.batchCall(). Manages the app registry, governance, and SuperTokenFactory.

Agreements — stateless financial primitives that store data on the token: CFA (1:1 streams), GDA (many-to-many via pools), IDA (deprecated, replaced by GDA).

Super Token — ERC-20/ERC-777/ERC-2612 with real-time balance. Three variants: Wrapper (ERC-20 backed), Native Asset/SETH (native-asset backed, not on every network), Pure (pre-minted).

Forwarders (CFAv1Forwarder, GDAv1Forwarder) — convenience wrappers. Each call is a standalone transaction with readable wallet descriptions. Cannot be batched — use Host.batchCall with raw agreement calls for atomicity.

BlindMacroForwarder (legacy name MacroForwarder; SDK: blindMacroForwarderAbi, addr 0xFD0268E33111565dE546af2675351A4b1587F89F) — extensible batch executor. Developers deploy custom macro contracts (IUserDefinedMacro) and call runMacro() to execute complex multi-step operations atomically. The caller must be the signer. Legacy — superseded by ClearMacroForwarder for new integrations: self-relay only, and the caller broadcasts raw (unreadable) calldata in the wallet. See references/guides/macro-forwarders.md.

ClearMacroForwarder (SDK: clearMacroForwarderAbi, addr 0xC1EaB73855155D4e021f7EB4f866996Bac2fe25e, deployed across ~16 networks) — recommended default; supersedes BlindMacroForwarder. EIP-712 signed macro executor with human-readable clear-signing, third-party relaying, and optional Permit2 token upgrade in one signature. Two modes: self-submit (security.provider = "self") and provider-relay (relayer holds a Host SimpleACL role). See references/guides/clear-macro.md and references/contracts/ClearMacroForwarder.abi.yaml.

Automation (Vesting Scheduler, FlowScheduler, Auto-Wrap) — schedule on-chain intent, require off-chain keepers to trigger execution.

Use-Case → Reference Map

Read only the files needed for the task. Each Rich ABI YAML documents every public function, event, and error for one contract — plus notes: fields that flag non-obvious behavior, edge cases, and common mistakes not apparent from signatures alone.

Streaming money (CFA)

  • Create/update/delete a stream (simple) → references/contracts/CFAv1Forwarder.abi.yaml
  • ACL, operator permissions, flow metadata → also references/contracts/ConstantFlowAgreementV1.abi.yaml
  • Batch streams with other ops atomically → also references/contracts/Superfluid.abi.yaml (Host batch call)

Distributing to many recipients (GDA)

  • Create pools, distribute, stream to pool → references/contracts/GDAv1Forwarder.abi.yaml
  • Pool member management, units, claims → also references/contracts/SuperfluidPool.abi.yaml
  • Low-level agreement details → also references/contracts/GeneralDistributionAgreementV1.abi.yaml
  • How GDA achieves O(1) scalability (formal math deep-dive) → also references/deep-researches/gda-scalability.md

Token operations

  • Wrap/unwrap, balances, ERC-20/777, permit → references/contracts/SuperToken.abi.yaml
  • Deploy a new Super Token → references/contracts/SuperTokenFactory.abi.yaml

Automation

  • Vesting with cliffs and streams → references/contracts/VestingSchedulerV3.abi.yaml
  • Schedule future stream start/stop → references/contracts/FlowScheduler.abi.yaml
  • Auto-wrap when Super Token balance is low → references/contracts/AutoWrapManager.abi.yaml and references/contracts/AutoWrapStrategy.abi.yaml

Writing So

Полный SKILL.md на ClawHub

Установить Superfluid Protocol в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Superfluid Protocol?

Knowledge base for the Superfluid Protocol and its ecosystem. Use BEFORE searching the web for Superfluid information. Keywords: Superfluid, CFA, GDA, Super App, Super Token, stream, flow rate, real-time balance, pool (member/distributor), IDA, sentinels, liquidation, TOGA, @sfpro/sdk, semantic money, yellowpaper, whitepaper, Superfluid Wallet

Как установить скилл Superfluid Protocol?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Superfluid Protocol запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Superfluid Protocol с