Contracts SDK
TypeScript SDK with hand-written ABIs and typed clients for ForexizRegistry, ForexizCollateral, ForexizMarginManager, ForexizCommitments.
npm install @forexiz/contracts-sdk
Forexiz exposes its primitives as public APIs and a typed SDK. Use them to integrate Pyth-referenced quotes, verify signed receipts, fetch Merkle proofs, or query on-chain vault state directly.
$ npm install @forexiz/contracts-sdk
$ pnpm add @forexiz/contracts-sdk
import { client } from '@forexiz/contracts-sdk'
const vault = client.vault('arbitrumOne')
await vault.collateralOf(account)TypeScript SDK with hand-written ABIs and typed clients for ForexizRegistry, ForexizCollateral, ForexizMarginManager, ForexizCommitments.
npm install @forexiz/contracts-sdk
SSE stream of every Pyth-referenced quote. REST snapshot per symbol. Session-aware (24/5 FX window). Degraded events on stale feeds.
GET /v1/pricing/stream (SSE) GET /v1/pricing/snapshot GET /v1/pricing/feeds
Ed25519 fill-receipt signer + verifier. Public key rotation log. Canonical-JSON serialization (RFC 8785 subset).
POST /v1/signer/sign (gated) POST /v1/signer/verify (public) GET /.well-known/fill-signing-keys.json
Per-window Merkle batches. Strict-monotonic batchSeq. Per-fill proof generation. Forced-close on shutdown.
GET /v1/commitment/state GET /v1/commitment/proof/:fillId POST /v1/commitment/fill (gated)
The Graph indexer for vault Deposit / Withdraw / Liquidate / EmergencyExit events plus commitment BatchCommitted.
# Coming Phase 4
Responsible disclosure today. Live Immunefi listing post-$1M TVL. Hall of fame on /trust/audits.
[email protected] # PGP key fingerprint: see SECURITY.md
Every contract is verified on Arbiscan. Click through for source, ABI, and read/write function explorer. Same ABI shipped in the SDK, same source as in the public repo.