Vauban Docs
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_upgrade

API 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_ADDRESS

Starknet Token Addresses (Sepolia)

STRK: 0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d

Token Decimals

TokenDecimals
STRK18
wBTC8
LBTC8
tBTC18
sBTC18