stable-layer-sdk
por k66inthesky
Web & Frontend DevelopmentResumo
A TypeScript SDK for interacting with the Stable Layer protocol on the Sui blockchain.
Descrição
O que esta skill faz
TypeScript SDK for the Stable Layer protocol on the Sui blockchain. Supports minting and burning stablecoins by depositing or redeeming USDC, and claiming yield farming rewards from vault farms.
Wraps raw Sui transaction construction into typed methods, removing the need to manually compose Move calls for minting, burning, and reward claiming.
Quando usá-la
- Minting BtcUSDC by depositing USDC on Sui mainnet
- Burning stablecoins to redeem USDC
- Claiming accumulated yield farming rewards
- Querying total stablecoin supply across coin types
- Integrating Stable Layer transactions into a dApp
Exemplo de fluxo de trabalho
User asks: mint 1 USDC worth of BtcUSDC on Sui mainnet
- 1
Initialize StableLayerClient with network and sender address
- 2
Create a new Sui Transaction object
- 3
Call buildMintTx with stableCoinType, usdcCoin reference, and amount
- 4
Sign and execute the transaction via SuiClient
BtcUSDC minted and deposited into vault farm, transaction result returned
Requisitos
- Sui wallet address and private key
Instalação
clawhub install k66inthesky/stable-layer-sdkExecute o comando da CLI ou cole o prompt no Claude Code, Cursor, Codex ou no agente de código que você usa.