sablier-protocol
npx skills add https://github.com/sablier-labs/agent-skills --skill sablier-protocol
Agent 安装分布
Skill 文档
Sablier
Sablier is an onchain token distribution protocol. It powers token vesting, airdrop distributions, and onchain payroll across 27+ EVM chains and Solana.
Organizations use Sablier to distribute tokens at scaleâwhether compensating contributors, vesting team allocations, or airdropping to thousands of recipients. The protocol handles the complexity of time-based token releases, letting teams focus on what they’re building rather than manual distribution logistics.
Core Use Cases
Token Vesting
Lock tokens with customizable unlock schedules. Vesting configurations include:
- Linear unlocks â Constant rate from start to end
- Cliff periods â Initial waiting period before any tokens unlock
- Tranched releases â Discrete unlocks at specific intervals (monthly, quarterly, yearly)
- Custom curves â Exponential, logarithmic, or step-based unlock patterns
All vesting positions are represented as NFTs, enabling recipients to transfer or trade their allocations.
Airdrop Distributions
Distribute tokens to thousands of recipients efficiently using Merkle trees:
- Gas-optimized claimingârecipients pay only their own claim gas
- Built-in vestingâtokens can stream after claim rather than unlocking immediately
- Clawback supportâreclaim unclaimed allocations after expiration
- Flexible eligibilityâcustom claim conditions and allowlists
Onchain Payroll
Compensate contributors with tokens that accrue continuously:
- Real-time access to earned compensation
- No waiting for pay datesâwithdraw anytime
- Adjustable payment rates for changing arrangements
- Clean separation between sender funding and recipient access
How It Works
Sablier uses streaming as the underlying mechanism for token distribution. Rather than transferring tokens in lump sums, the protocol releases them continuously over timeâby the second.
Recipients withdraw their tokens whenever convenient. No sender approval required, no claim windows to miss. The protocol tracks exactly how much has vested at any moment, and recipients access their portion on demand.
Every distribution position mints an NFT to the recipient. This representation enables:
- Transferring ownership to another address
- Trading positions on NFT marketplaces
- Using vesting positions as collateral in DeFi
Protocol Modules
Sablier comprises three modules, each optimized for different distribution patterns:
Lockup
The core vesting module. Creators deposit tokens upfront and define an unlock schedule. Supports three stream shapes:
- Linear â Constant unlock rate, optional cliff
- Dynamic â Custom curves using configurable segments
- Tranched â Step-wise unlocks at defined timestamps
Flow
A pay-as-you-go module for ongoing distributions. No upfront deposit requiredâsenders top up as needed while recipients withdraw accrued amounts. Ideal for:
- Salaries and recurring payments
- Open-ended contributor arrangements
- Situations where total distribution isn’t known upfront
Airdrops
Merkle-tree based distribution for large recipient sets. Create a single contract that serves claims for thousands of addresses. Combines gas efficiency with optional vestingârecipients can receive streaming positions rather than immediate lump sums.
Key Features
Stream Shapes
Configure unlock curves to match any distribution requirement:
| Shape | Pattern | Use Case |
|---|---|---|
| Linear | Constant rate | Standard vesting, salaries |
| Dynamic | Custom segments | Backloaded vesting, milestones |
| Tranched | Discrete steps | Quarterly unlocks, scheduled releases |
NFT Representation
All Lockup positions mint ERC-721 tokens. Recipients hold NFTs representing their vesting allocations, enabling secondary market liquidity and DeFi composability.
Hooks System
Execute custom logic in response to stream events. Hooks enable:
- Automatic reinvestment of received tokens
- Notifications to external systems
- Custom access controls or conditions
Batch Operations
Create hundreds of distributions in a single transaction. Essential for:
- Company-wide vesting setup
- Large contributor grants
- Airdrop campaigns
Permissionless Infrastructure
Pure DeFi infrastructure with no gatekeepers. Anyone can create distributions, build on the protocol, or integrate it into existing products.
Platform Availability
Sablier smart contracts are deployed across 27+ EVM chains including Ethereum, Arbitrum, Optimism, Base, Polygon, Avalanche, and BSC.
Sablier programs are also deployed on Solana.
User Interfaces
| Network | Interface |
|---|---|
| EVM chains | app.sablier.com |
| Solana | solana.sablier.com |
Both interfaces provide full access to create, manage, and withdraw from distributions without writing code.
Developer Integration
Integrate Sablier into applications using:
- Smart contract calls â Direct interaction with Lockup, Flow, or Airdrops contracts
- Subgraph APIs â Query distribution data via The Graph
- SDK libraries â TypeScript utilities for common operations
- CSV imports â Bulk distribution creation via the UI
Common integration patterns include token vesting platforms, payroll systems, DAO contributor management, and DeFi reward distribution.
Resources
Documentation
- Sablier Docs â Protocol documentation and guides
Smart Contracts (Solidity)
| Module | Repository | UI Product |
|---|---|---|
| Lockup | sablier-labs/lockup | Vesting |
| Flow | sablier-labs/flow | Payments |
| Airdrops | sablier-labs/airdrops | Airdrops |
Solana (Rust)
- sablier-labs/solsab â Sablier programs for Solana
Indexers
- sablier-labs/indexers â Subgraph deployments for querying onchain data
Examples & Sandboxes
- sablier-labs/evm-examples â Solidity integration examples
- sablier-labs/sandbox â Generic frontend sandbox
- sablier-labs/airdrop-sandbox â Custom airdrop development sandbox
Branding
- sablier-labs/branding â Logos, colors, and brand assets