Перейти к содержимому
TakoAPI
Назад к навыкам

token-vesting

от sneg55

Productivity & Tasks
661Число загрузок по данным clawskills.sh
0Просмотры
0 лайковВойдите, чтобы поставить лайк навыку
—Ещё нет оценок
Ваша оценка

Кратко

Create and manage token vesting streams using the Sablier Lockup protocol (linear, dynamic, tranched).

Описание

Что делает этот навык

Manages token vesting streams on EVM blockchains using the Sablier Lockup v3.0 protocol. Supports linear, tranched, and dynamic stream models, each locking ERC-20 tokens in a smart contract and releasing them to the recipient over time. Streams are represented as ERC-721 NFTs and can be canceled, withdrawn from, or transferred.

Streaming tokens second-by-second on-chain removes the need for manual batch distributions and makes vesting trustless without a custodian.

Когда его использовать

  • Vesting employee tokens with a 1-year cliff and 4-year linear schedule
  • Distributing investor allocations in quarterly tranched unlocks
  • Running an exponential airdrop that rewards long-term token holders
  • Streaming contractor pay continuously instead of manual batch transfers
  • Canceling an unvested stream to reclaim tokens after an employee departs

Пример сценария

ВВОД

User asks: set up a 4-year vesting stream for 10,000 tokens to 0xRecipient with a 1-year cliff on Ethereum

АГЕНТ
  1. 1

    Look up the SablierLockup contract address for Ethereum mainnet

  2. 2

    Calculate deposit amount in wei and duration in seconds (cliff: 31536000, total: 126144000)

  3. 3

    Run cast send to approve SablierLockup to spend the ERC-20 tokens

  4. 4

    Run cast send with createWithDurationsLL to create the linear stream

  5. 5

    Return the stream ID and the app.sablier.com link to view and manage it

ВЫВОД

Stream created with ID 12345; recipient's allocation accrues every second starting now, with cliff unlock at year one

Требования

  • ETH_RPC_URL environment variable (RPC endpoint from a provider such as Alchemy or Infura)
  • ETH_PRIVATE_KEY environment variable or Foundry keystore configured for transaction signing
  • Foundry toolkit installed (cast and/or forge CLI)

Установка

clawhub install sneg55/token-vesting

Выполните команду CLI или вставьте промпт в Claude Code, Cursor, Codex — любой кодинг-агент, которым пользуетесь.

Ссылки