cred402/contracts/flare/foundry.toml
caelum0x 24d073ee83 feat: KeeperHub execution layer + Flare interoperable/confidential credit
Two hackathon integrations spanning the whole credit stack, sim-first
(green with no keys) with real integrations behind env flags.

KeeperHub — the on-chain execution & reliability layer (lib/keeperhub/):
- OnchainExecutor: pay-per-execution (x402/MPP) -> simulate -> smart gas
  with exponential backoff -> MEV-protected private routing -> audit trail;
  real MCP client to app.keeperhub.com; deterministic sim fallback.
- Autonomous Credit Keeper: FTSO position health -> check->execute deleverage.
- Credit Automations: declarative price/health/schedule rules as workflows.
- Autonomous Scheduler: KeeperHub-cron loop running keeper + automations.

Flare — interoperable + confidential primitives (packages/.../flare, lib/flare):
- FXRP credit satellite: CAN-gated, FTSO-priced, FDC-attested; Coston2
  Solidity vault (contracts/flare/).
- Confidential Compute credit scoring (TEE-attested, private inputs).
- FTSO-priced multi-asset collateral; FAssets mint->collateralize lifecycle.

x402 Credit-Service Marketplace: sells cred402's intelligence pay-per-call
over x402 (402->pay->200); paid receipts feed the revenue->reputation loop.

Wiring: 78 MCP tools, /v1 + /api routes, console Flare + x402 tabs, 11 demo
CLIs, 8 feature docs + docs/SUBMISSIONS.md, recorded demo video (media/).
346 tests pass; 7 adversarial verification workflows caught + fixed ~37
correctness/security issues.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-11 23:34:23 +03:00

40 lines
1.2 KiB
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 verification path and keeps the
# Flare satellite compiling reproducibly, matching the EVM satellite project.
via_ir = true
ffi = false
fs_permissions = [{ access = "read", path = "./" }]
[profile.default.fuzz]
runs = 256
# Real Flare-family targets. RPC endpoints are the public Flare gateways; no key needed.
# forge script script/DeployCoston2.s.sol:DeployCoston2 --rpc-url coston2 --broadcast
[rpc_endpoints]
coston2 = "https://coston2-api.flare.network/ext/C/rpc"
flare = "https://flare-api.flare.network/ext/C/rpc"
# Coston2's explorer is Blockscout, not Etherscan. Verify with:
# forge verify-contract <addr> Cred402FlareCreditVault \
# --verifier blockscout \
# --verifier-url https://coston2-explorer.flare.network/api
# (No API key required for Blockscout verification.)
[fmt]
line_length = 120
tab_width = 4
bracket_spacing = true
int_types = "long"
# Cred402 Flare satellite — Interoperable Asset Products.
# "Casper approves credit; Flare executes it in XRP liquidity; FTSO prices it."