Skip to main content
Corridor is a TypeScript monorepo (pnpm workspaces) with one Rust service for FROST signing. The ledger runs on embedded Postgres (PGlite) locally, so there is no database to install, and test keys are generated and funded from the Tempo testnet faucet on first run.

Prerequisites

  • Node.js 22 or later and pnpm 9
  • Rust stable, only for the FROST signer and the Zcash tooling
  • For the shielded lane: zcash-devtool built locally

Run it

1

Clone and install

2

Verify

107 tests cover the ledger invariants, the reference codec, routing and hub enforcement, the saga engine (forced failures, compensation order, lease fencing), the mainnet Across and payout legs (fees, partner rounding, slow fills, crash recovery), signers, partner adapters, webhooks, the Solana memo leg, ZIP-321 batches, NEAR quotes and vault accounting.
3

A first memo transfer on Tempo

Generates testnet keys into .env.local on first run, funds them from the Moderato faucet, sends a transferWithMemo, finds it again by its indexed memo topic and books it exactly once.
4

Run the flows

5

Open the treasury console

Run a payout, a payout with a forced partner failure, and an importer flow from the console, then watch every movement reconcile. The console owns the local ledger, so stop other flows before starting it: the embedded Postgres has a single owner.

Scripts

Private keys are written to .env.local and .keys/, both gitignored. Never commit them. The console snapshot refuses to publish if any value from either location appears in its output.

Repository layout