Toolverse
All skills

jb-terminal-wrapper

by openclaw

Terminal wrapper pattern for extending JBMultiTerminal functionality. Use when: (1) need dynamic\nsplits at pay time, (2) revnet can't modify ruleset data hooks, (3) want atomic pay + distribute\noperations, (4) need to intercept/redirect tokens before delivery, (5) implementing

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openclaw
Category
Backend

About this skill

Terminal wrapper pattern for extending JBMultiTerminal functionality. Use when: (1) need dynamic\nsplits at pay time, (2) revnet can't modify ruleset data hooks, (3) want atomic pay + distribute\noperations, (4) need to intercept/redirect tokens before delivery, (5) implementing pay-time\nconfiguration, (6) cash out + bridge/swap in one tx, (7) cash out + stake redeemed funds.\nCovers IJBTerminal implementation, _acceptFunds pattern from JBSwapTerminalRegistry, beneficiary\nmanipulation for both pay and cash out flows, and the critical mental model that wrappers are\nadditive (not restrictive).

How to use

  1. Sklonuj repozytorium openclaw/skills i przejdź do katalogu skills/mejango/juicy/jb-terminal-wrapper.

  2. Zapoznaj się z architekturą: utwórz kontrakt implementujący interfejs IJBTerminal, który opakowuje JBMultiTerminal. Kontrakt powinien zawierać referencje do MULTI_TERMINAL i CONTROLLER jako zmienne immutable.

  3. Zaimplementuj funkcję pay() w swoim wrapperie, która przyjmuje parametry: projectId, token, oraz kwotę. Użyj wspólnego helpera _acceptFunds (wzorzec z JBSwapTerminalRegistry) do obsługi zarówno ETH jak i tokenów ERC20.

  4. Dodaj logikę dla swoich przypadków użycia: dynamiczne podziały w momencie płatności, przechwycenie tokenów przed dostarczeniem, lub połączenie operacji płatności z dystrybucją w jedną transakcję atomową.

  5. Pamiętaj, że wrapper jest warstwą addytywną — rozszerza funkcjonalność bez ograniczania dostępu permissionless. Manipulacja beneficjentem powinna działać zarówno dla przepływów płatności jak i wypłat.

  6. Przetestuj wrapper z rzeczywistym projektem revnet, szczególnie scenariusze gdzie ruleset data hooks nie mogą być modyfikowane bezpośrednio.

Related skills

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

postgresql-psql

by timelessco

Comprehensive guide for PostgreSQL psql - the interactive terminal client for PostgreSQL. Use when connecting to PostgreSQL databases, executing queries, managing databases/tables, configuring connection options, formatting output, writing scripts, managing transactions, and

Backend
34173

patent-search

by RobThePCGuy

Advanced prior art search using the PatentsView API. Use this skill when users need to search for patents, perform prior art searches, analyze patent landscapes, or find patents by inventor, title, date range, or technical fields. Helps with patent research, freedom to operate

Backend
36218

architecture-decision-records

by wshobson

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

Backend
29130

drizzle

by lobehub

Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.

Backend
79340

literature-review

by K-Dense-AI

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature

Backend
238507