Build
Run it locally
The contract tests need no account; the app runs against the live Testnet indexer.
The contracts and their tests
git clone --recurse-submodules https://github.com/Blockchain-Oracle/tsuneni && cd tsuneni
cd contracts && forge build && forge test100 tests in four files: 84 on a Base Sepolia fork over a public RPC, 48 of them through Reactive's metered harness, and 16 for the Mainnet hedge on a local chain with Hyperliquid's precompiles mocked.
The app
pnpm install
pnpm --filter @tsuneni/web devIt opens at http://localhost:3000 against the live Testnet indexer. Without the Try settings below, Try says its faucet is down and offers public faucets; connecting your own wallet works.
The indexer (optional)
pnpm --filter @tsuneni/indexer devAn embedded database and public RPCs; point the app at it with NEXT_PUBLIC_INDEXER_URL.
| Variable | Turns on |
|---|---|
NEXT_PUBLIC_INDEXER_URL | Another indexer (default: the live Testnet one) |
NEXT_PUBLIC_WC_PROJECT_ID | WalletConnect wallets |
TRY_DATABASE_URL · TRY_OPERATOR_KEY | Try's funding queue and the funder's operator |
TRY_RESERVE_FLOOR | Wallets' worth of reserve held back from public Try |
NEXT_PUBLIC_TURNSTILE_SITE_KEY · TURNSTILE_SECRET | A bot check before funding (both or neither) |
PONDER_RPC_URL_84532 · PONDER_RPC_URL_1301 · PONDER_RPC_URL_5318007 | The indexer's RPCs |
Deploying contracts and firing live loops need a funded testnet key; see the scripts' headers in contracts/script.