Documentation Index
Fetch the complete documentation index at: https://docs.keystoneos.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Sepolia (Chain ID: 11155111) - Coordinator Chain
The coordinator chain hosts the state machine, compliance registry, and audit trail. It coordinates settlement execution across all chains via LayerZero.Core Contracts
Test Tokens
Base Sepolia (Chain ID: 84532) - Remote Escrow Chain
The remote escrow chain handles asset custody for settlements where tokens live on Base. Connected to the Sepolia coordinator via LayerZero.Core Contracts
| Contract | Address | BaseScan |
|---|---|---|
| KeystoneEscrow | 0x353A903b9A7D4851aAe817e4dB5e912cdC6e8E5C | View |
Test Tokens
Cross-Chain Configuration
| Parameter | Value |
|---|---|
| Coordinator Chain | Sepolia (EID: 40161) |
| Remote Chain | Base Sepolia (EID: 40245) |
| LayerZero Endpoint (both chains) | 0x6EDCE65403992e310A62460808c4b910D972f10f |
| Deployer / Authorized Creator | 0x7003bb68C5b97267dd2C3361690406A3065D8194 |
v0.2.0 contracts with AccessControl-based escrow (OPERATOR_ROLE + DEFAULT_ADMIN_ROLE), wallet-bound deposit keys, and hybrid fee model. Deployed from the keystone-smart-contracts repository, branch
KEY-115-escrow-access-control.Contract Descriptions
SettlementCoordinator
On-chain state machine enforcement with autonomous post-compliance execution. Validates state transitions against registered rules, enforces compliance and deposit gates, and callsexecuteSettlement with recipient addresses when all deposits are confirmed. Supports LayerZero OApp messaging for cross-chain coordination. Restricted settlement creation via creator allowlist. See SettlementCoordinator for full documentation.
KeystoneEscrow
Multi-leg atomic escrow for DvP settlement with per-leg fee deduction. Supports commitment-based deposits (deposit secrets verified against on-chain deposit keys), per-leg deposits, and atomic execution with recipient reveal at execution time. Handles ERC-20 and ERC-3643 token standards. See KeystoneEscrow for full documentation.ComplianceRegistry
On-chain attestation of compliance screening results. Stores compliance status (Pass/Flagged/Fail) per party per settlement using hashed identifiers - no PII is stored on-chain. Serves as a gate that the SettlementCoordinator checks before allowing transitions past compliance. See ComplianceRegistry for full documentation.Test Tokens
- KBOND represents a tokenised government bond for repo collateral (18 decimals, mintable ERC-20)
- TUSDC represents stablecoin payment, mimicking USDC (6 decimals, mintable ERC-20)
Integration
To interact with these contracts directly, you need:- The contract ABI (available in the keystone-smart-contracts repository)
- An EVM-compatible wallet library (ethers.js, web3.py, viem, etc.)
- Sepolia ETH for gas (available from Sepolia faucets)
- Base Sepolia ETH for gas on Base (available from Base Sepolia faucet)