cred402/package.json
caelum0x bd9004603a feat(qie): add QIE Hackathon 3.0 x402 credit-score integration
QIE is EVM-compatible (Cosmos SDK + eth_* JSON-RPC, testnet chain 1983 /
mainnet 1990), so this reuses the existing generic EVM x402 payment path
(same shape as the Flare integration) rather than bespoke chain code:

- lib/x402/qie_networks.ts, qie_rpc.ts, qie_finality.ts, qie_client.ts,
  qie_gateway.ts, qie_payment_attempt_store.ts
- api/qie_x402_routes.ts wired into api/server.ts
- scripts/qie_x402_check.ts (readiness/preflight, mirrors x402:algorand:check)
- docs/qie_x402.md + a QIE Hackathon section in docs/SUBMISSIONS.md

Fails closed without CRED402_QIE_PAY_TO / asset / facilitator configured,
same discipline as the Algorand integration. Honest gaps flagged rather
than faked: QUSDC's exact testnet contract address is unconfirmed (falls
back to pricing in native QIE), and a real signed transaction needs a
funded faucet key + live facilitator neither of which exist yet — both
documented as TODO with exact unblock steps in docs/SUBMISSIONS.md.

Track: AI + Autonomous Agents. Deadline: 2026-11-30, with a QIE Mainnet
(chain 1990) contract deployment required at submission, not just
testnet — confirmed via the hackathon's own dashboard + press coverage.

9/9 new tests pass (node:test via tsx --test), typecheck clean.
2026-10-19 02:43:44 +03:00

88 lines
3.8 KiB
JSON

{
"name": "cred402",
"version": "0.1.0",
"private": true,
"description": "Cred402 — credit lines for autonomous RWA agents on Casper. x402 machine-to-machine revenue becomes on-chain reputation and DeFi credit.",
"license": "Apache-2.0",
"type": "module",
"engines": {
"node": ">=20"
},
"scripts": {
"dev": "tsx watch api/server.ts",
"start": "tsx api/server.ts",
"demo": "tsx scripts/run_demo_flow.ts",
"demo:dispute": "tsx scripts/run_demo_flow.ts --dispute",
"demo:multichain": "tsx scripts/multichain_demo.ts",
"demo:marketplace": "tsx scripts/marketplace_demo.ts",
"demo:realfi": "tsx scripts/realfi_demo.ts",
"ship:check": "tsx scripts/ship_first_check.ts",
"casper:health": "tsx scripts/casper_health.ts",
"casper:sidecar": "tsx scripts/sidecar_watch.ts",
"graphql:sdl": "tsx scripts/export_graphql_sdl.ts",
"cli": "tsx cli/cred402.ts",
"status": "tsx scripts/status.ts",
"webhook:receiver": "tsx examples/webhook-receiver/server.ts",
"notify": "tsx services/notification-service/src/main.ts",
"index:journal": "tsx -e \"console.log('run the Go indexer: cd services/event-indexer && go run ./cmd/indexer --journal \\$CRED402_DATA_DIR/events.ndjson')\"",
"demo:request-evidence": "tsx scripts/steps.ts request-evidence",
"demo:pay-x402": "tsx scripts/steps.ts pay-x402",
"demo:submit-evidence": "tsx scripts/steps.ts submit-evidence",
"demo:score-agent": "tsx scripts/steps.ts score-agent",
"deploy:testnet": "tsx scripts/deploy_testnet.ts",
"seed": "tsx scripts/seed_demo_agents.ts",
"mcp": "tsx mcp/server.ts",
"mcp:sdk": "tsx mcp/server_sdk.ts",
"mcp:demo": "tsx scripts/mcp_demo.ts",
"sdk:demo": "tsx scripts/sdk_demo.ts",
"typecheck": "tsc --noEmit",
"test": "tsx --test test/*.test.ts",
"simulate": "tsx scripts/simulate.ts",
"demo:bureau": "tsx scripts/demo_bureau.ts",
"record:demo": "node scripts/record_demo.mjs",
"demo:x402": "tsx scripts/universal_credit_demo.ts",
"demo:gateway": "tsx scripts/gateway_demo.ts",
"flare:credit": "tsx scripts/flare_credit.ts",
"keeperhub:execute": "tsx scripts/keeperhub_execute.ts",
"keeper:run": "tsx scripts/keeper_run.ts",
"automations:run": "tsx scripts/automations_run.ts",
"collateral:run": "tsx scripts/collateral_run.ts",
"x402:market": "tsx scripts/x402_market_run.ts",
"fassets:mint": "tsx scripts/fassets_mint_run.ts",
"scheduler:run": "tsx scripts/scheduler_run.ts",
"demo:grand": "tsx scripts/grand_demo.ts",
"record:hackathon": "node scripts/record_hackathon_demo.mjs",
"submit:check": "tsx scripts/submission_check.ts",
"x402:algorand:check": "tsx scripts/algorand_x402_check.ts",
"x402:algorand:ready": "tsx scripts/algorand_x402_ready.ts",
"x402:algorand:release-check": "tsx scripts/algorand_x402_release_check.ts",
"x402:algorand:pay": "tsx scripts/algorand_x402_pay.ts",
"x402:algorand:refunds": "tsx scripts/algorand_x402_refunds.ts",
"x402:algorand:challenge-check": "tsx scripts/algorand_x402_challenge_check.ts",
"record:algorand": "node scripts/record_algorand_x402_demo.mjs",
"x402:qie:check": "tsx scripts/qie_x402_check.ts"
},
"devDependencies": {
"@types/node": "^22.10.0",
"playwright": "^1.61.0",
"tsx": "^4.19.2",
"typescript": "^5.7.2"
},
"dependencies": {
"@algorandfoundation/algokit-utils": "^10.0.0-alpha.46",
"@casper-ecosystem/casper-eip-712": "^1.2.1",
"@modelcontextprotocol/sdk": "^1.29.0",
"@noble/curves": "^1.9.7",
"@noble/hashes": "^1.8.0",
"@x402/avm": "^2.23.0",
"@x402/core": "^2.23.0",
"@x402/evm": "^2.23.0",
"@x402/extensions": "^2.23.0",
"@x402/fetch": "^2.23.0",
"casper-js-sdk": "^5.0.12",
"graphql": "^16.14.2",
"plaid": "^42.2.0",
"stripe": "^22.2.1"
}
}