Reference
Cheatsheet
Cheatsheet
Quick reference for common commands and operations.
Contract Operations
# Build
cd contracts && scarb build
# Deploy to devnet
./scripts/dev/deploy-devnet.sh
# Force redeploy (new address)
FORCE_REDEPLOY=true ./scripts/dev/deploy-devnet.sh
# Upgrade (keep address)
./scripts/upgrade.sh devnet
./scripts/upgrade.sh sepolia
# Manual upgrade (timelock)
sncast --profile=sepolia invoke --contract-address $ADDR --function propose_upgrade --calldata $CLASS_HASH
# Wait 60s
sncast --profile=sepolia invoke --contract-address $ADDR --function execute_upgradeAPI Quick Reference
# Health check
curl http://localhost:3001/health
# Get APY
curl http://localhost:3001/api/apy
# Get TVL
curl http://localhost:3001/api/metrics/tvl
# Get user position
curl http://localhost:3001/api/metrics/0xYOUR_ADDRESS
# Get pending withdrawals
curl http://localhost:3001/api/withdrawals/0xYOUR_ADDRESSStarknet Token Addresses (Sepolia)
STRK: 0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938dToken Decimals
| Token | Decimals |
|---|---|
| STRK | 18 |
| wBTC | 8 |
| LBTC | 8 |
| tBTC | 18 |
| sBTC | 18 |