Agent skill
Agent skill
Examples
| Description | ||
|---|---|---|
| cp-swap-reference | Fork of Raydium AMM that creates markets without paying rent-exemption | Example | Docs |
| create-and-transfer | Create account via macro and transfer via CPI | Example |
| escrow | Peer-to-peer light-token swap with offer/accept flow | Example |
| fundraiser | Token fundraiser with target, deadline, and refunds | Example |
| light-token-minter | Create light-mints with metadata, mint tokens | Example |
| pinocchio-swap | Light Token swap reference implementation | Example | Docs |
| token-swap | AMM with liquidity pools and swaps | Example |
Macros
Instructions
The instructions use pure CPI calls which you can combine with existing and / or light macros. For existing programs, you can replace spl_token with light_token instructions as you need. The API is a superset of SPL-token so switching is straightforward.| Description | ||
|---|---|---|
| approve | Approve delegate via CPI | Example | Docs |
| burn | Burn tokens via CPI | Example | Docs |
| close | Close token account via CPI | Example | Docs |
| create-associated-token-account | Create associated light-token account via CPI | Example | Docs |
| create-mint | Create light-token mint via CPI | Example | Docs |
| create-token-account | Create light-token account via CPI | Example | Docs |
| freeze | Freeze token account via CPI | Example | Docs |
| mint-to | Mint tokens via CPI | Example | Docs |
| revoke | Revoke delegate via CPI | Example | Docs |
| thaw | Thaw token account via CPI | Example | Docs |
| transfer-checked | Transfer with mint validation via CPI | Example | Docs |
| transfer-interface | Transfer between light-token, T22, and SPL accounts via CPI | Example | Docs |