Replace the design-note docs (p1–p7) with the implemented "make it real" phase docs (p8–p10) and wire production-grade, env-gated real integrations: - p8 Casper Testnet: byte-exact deploys + WASM install via casper-js-sdk; live node reads (node.testnet.casper.network); CRED402_CHAIN=sim|testnet transport. - p9 x402 + data + MCP: real EIP-712 typed-data digests (@casper-ecosystem/ casper-eip-712); casper-x402 facilitator client (x402 V2); live Open-Meteo GHI; official @modelcontextprotocol/sdk server; casper-sidecar SSE event feed. - p10 RealFi + cross-chain: real Stripe test-mode webhooks (HMAC-verified) and Plaid sandbox → privacy-preserving on-chain envelopes; Base Sepolia EVM deploy (Foundry); reachable via /api/realfi/* and /api/x402/facilitator routes. - Sign-in with Casper Wallet: real extension provider + challenge/ed25519/session flow (/v1/auth/wallet/*), console connect + sign-in button. - Branding: Cred402 logo mark, favicon, OG image; Vercel config for the console. All env-gated with sim/free-API fallbacks; full suite green, all toolchains (TS/Rust/Go/Solidity) build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
953 B
TOML
37 lines
953 B
TOML
[profile.default]
|
|
src = "src"
|
|
out = "out"
|
|
libs = ["lib"]
|
|
test = "test"
|
|
script = "script"
|
|
solc_version = "0.8.24"
|
|
optimizer = true
|
|
optimizer_runs = 200
|
|
evm_version = "cancun"
|
|
# via_ir avoids "stack too deep" in the credit-note verifier and keeps the whole
|
|
# satellite suite (incl. Cred402RealFiMirror) compiling reproducibly.
|
|
via_ir = true
|
|
ffi = false
|
|
fs_permissions = [{ access = "read", path = "./" }]
|
|
|
|
[profile.default.fuzz]
|
|
runs = 256
|
|
|
|
# Real testnet targets (p10). Set the RPC env vars in .env, then:
|
|
# forge script script/Deploy.s.sol:Deploy --rpc-url base_sepolia --broadcast
|
|
[rpc_endpoints]
|
|
base_sepolia = "${BASE_SEPOLIA_RPC_URL}"
|
|
arbitrum_sepolia = "${ARBITRUM_SEPOLIA_RPC_URL}"
|
|
|
|
[etherscan]
|
|
base_sepolia = { key = "${ETHERSCAN_API_KEY}", chain = 84532 }
|
|
|
|
[fmt]
|
|
line_length = 120
|
|
tab_width = 4
|
|
bracket_spacing = true
|
|
int_types = "long"
|
|
|
|
# Cred402 EVM satellite.
|
|
# "Casper-rooted, chain-executed." EVM executes credit; Casper approves credit.
|