Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
87 lines (87 loc) · 7.74 KB
/
Copy pathpackage.json
File metadata and controls
87 lines (87 loc) · 7.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"name": "@uspeaks/api-layer",
"version": "0.1.0",
"private": true,
"packageManager": "pnpm@10.30.0",
"engines": {
"node": ">=20 <27"
},
"scripts": {
"sync:abis": "tsx scripts/sync-abis.ts",
"ingest:promoted-facets": "tsx scripts/ingest-promoted-facets.ts",
"sync:method-policy": "tsx scripts/sync-reviewed-method-policy.ts",
"sync:event-projections": "tsx scripts/sync-reviewed-event-projections.ts",
"sync:write-invariants": "tsx scripts/sync-reviewed-write-invariants.ts",
"sync:scenarios": "tsx scripts/sync-scenarios.ts",
"build:manifest": "tsx scripts/generate-manifest.ts",
"build:typechain": "typechain --target ethers-v6 --out-dir generated/typechain \"generated/abis/facets/*.json\"",
"build:abi-registry": "tsx scripts/generate-abi-registry.ts",
"build:write-invariants": "tsx scripts/generate-write-invariant-registry.ts",
"build:rpc-registry": "tsx scripts/generate-rpc-registry.ts",
"seed:api-surface": "tsx scripts/seed-api-surface.ts",
"build:http-api": "tsx scripts/generate-http-api.ts",
"build:wrappers": "tsx scripts/generate-client.ts",
"coverage:check": "tsx scripts/check-wrapper-coverage.ts && tsx scripts/check-http-api-coverage.ts && tsx scripts/generate-write-invariant-registry.ts",
"report:test-gaps": "tsx scripts/generate-test-roadmap.ts",
"test:gap-report": "vitest run scripts/generate-test-roadmap.test.ts --maxWorkers 1",
"gap-builder:plan": "tsx scripts/gap-builder-plan.ts --max-items 40 --min-batch-items 10 --fail-on-empty",
"gap-builder:plan:forty-percent": "tsx scripts/gap-builder-plan.ts --target-percent 40 --min-batch-items 10 --fail-on-empty",
"test:gap-builder": "vitest run scripts/gap-builder-plan.test.ts --maxWorkers 1",
"test:write-invariants": "vitest run scripts/write-invariants-lib.test.ts --maxWorkers 1",
"report:actor-negative-paths": "tsx scripts/generate-actor-negative-path-report.ts",
"test:actor-negative-paths": "vitest run scripts/actor-negative-paths-lib.test.ts packages/api/src/shared/auth.test.ts packages/api/src/shared/execution-context.test.ts packages/api/src/app.test.ts packages/api/src/funding/funding.test.ts packages/api/src/workflows/manage-access-control.test.ts packages/api/src/workflows/control-plane-admin-safety.integration.test.ts packages/api/src/workflows/multisig-command-safety.integration.test.ts packages/api/src/workflows/proposal-command-safety.integration.test.ts packages/api/src/workflows/selected-gap-write-safety.integration.test.ts packages/api/src/workflows/delegation-echo-score-command-safety.integration.test.ts packages/api/src/workflows/escrow-governor-command-safety.integration.test.ts packages/api/src/workflows/legacy-ownership-timelock-command-safety.integration.test.ts packages/api/src/workflows/payment-command-safety.integration.test.ts packages/api/src/workflows/voice-asset-command-safety.integration.test.ts packages/api/src/workflows/token-supply-vesting-command-safety.integration.test.ts packages/api/src/workflows/dataset-license-command-safety.integration.test.ts --maxWorkers 1",
"test:redteam": "vitest run scripts/red-team-harness-lib.test.ts scripts/red-team-auth-boundaries.test.ts scripts/red-team-access-control-workflow.test.ts scripts/red-team-reward-campaign.test.ts packages/api/src/shared/validation.test.ts packages/client/src/runtime/abi-codec.test.ts packages/api/src/funding/checkout.test.ts packages/api/src/funding/webhook.test.ts packages/api/src/transaction-request-privacy.test.ts --maxWorkers 1",
"redteam:local-fork": "API_LAYER_RUN_RED_TEAM_LOCAL_FORK=1 vitest run scripts/red-team-harness-lib.test.ts scripts/red-team-auth-boundaries.test.ts scripts/red-team-local-fork.test.ts scripts/red-team-access-control-workflow.test.ts scripts/red-team-reward-campaign.test.ts packages/api/src/shared/validation.test.ts packages/client/src/runtime/abi-codec.test.ts packages/api/src/funding/checkout.test.ts packages/api/src/funding/webhook.test.ts packages/api/src/transaction-request-privacy.test.ts packages/api/src/workflows/emergency-response.integration.test.ts packages/api/src/workflows/governance-timelock-consequence-flow.integration.test.ts packages/api/src/workflows/multisig-protocol-change.integration.test.ts packages/indexer/src/worker.test.ts packages/indexer/src/events.test.ts --maxWorkers 1",
"lint": "eslint .",
"codegen": "pnpm run sync:abis && pnpm run sync:method-policy && pnpm run build:manifest && pnpm run sync:event-projections && pnpm run build:typechain && pnpm run build:abi-registry && pnpm run build:write-invariants && pnpm run build:rpc-registry && pnpm run seed:api-surface && pnpm run build:http-api && pnpm run build:wrappers && pnpm run coverage:check",
"build": "pnpm run codegen && pnpm -r build",
"test": "vitest run --maxWorkers 1",
"test:indexer:assurance": "vitest run packages/indexer/src scripts/indexer-receipt-proof-lib.test.ts scripts/indexer-trace-capability-lib.test.ts --maxWorkers 1",
"funding:worker": "tsx scripts/run-funding-worker.ts",
"test:indexer:postgres": "tsx scripts/run-indexer-postgres-assurance.ts",
"proof:indexer:local-fork-receipts": "tsx scripts/run-local-fork-indexer-proof.ts",
"proof:indexer:trace-capability": "tsx scripts/verify-indexer-trace-capability.ts",
"test:coverage": "tsx scripts/run-test-coverage.ts",
"test:contract:api:base-sepolia": "API_LAYER_RUN_CONTRACT_INTEGRATION=1 vitest run packages/api/src/app.contract-integration.test.ts --maxWorkers 1",
"baseline:show": "tsx scripts/show-validated-baseline.ts",
"baseline:verify": "tsx scripts/verify-validated-baseline.ts",
"setup:base-sepolia": "tsx scripts/base-sepolia-operator-setup.ts",
"test:contract:base-sepolia": "tsx scripts/run-base-sepolia-contract-proof.ts",
"test:contract:admin-reads:base-sepolia": "API_LAYER_RUN_CONTRACT_INTEGRATION=1 vitest run packages/api/src/app.contract-integration.test.ts -t \"proves admin, emergency, and multisig control-plane reads through HTTP on Base Sepolia\" --maxWorkers 1",
"verify:layer1:live:base-sepolia": "tsx scripts/verify-layer1-live.ts --output verify-live-output.json",
"verify:marketplace:purchase:base-sepolia": "tsx scripts/verify-marketplace-purchase-live.ts --output verify-marketplace-purchase-output.json",
"verify:governance:base-sepolia": "tsx scripts/verify-governance-workflows.ts --output verify-governance-output.json",
"verify:local-fork": "tsx scripts/run-local-fork-assurance.ts",
"test:local-fork-runner": "vitest run scripts/verify-local-fork-lib.test.ts --maxWorkers 1",
"verify:promotion:base-sepolia": "tsx scripts/promote-base-sepolia-scenarios.ts",
"verify:promotion:base-sepolia:preflight": "tsx scripts/promote-base-sepolia-scenarios.ts --preflight",
"debug:tx": "tsx scripts/debug-tx.ts",
"debug:simulate": "tsx scripts/debug-simulate.ts",
"debug:trace": "tsx scripts/debug-trace.ts",
"dev:api": "pnpm --filter @uspeaks/api dev",
"dev:indexer": "pnpm --filter @uspeaks/api-indexer dev",
"scenario:api": "pnpm run sync:scenarios && tsx scenario-adapter/src/run-api-mode.ts",
"scenario:api:base-sepolia": "pnpm run sync:scenarios && tsx scripts/run-base-sepolia-api-scenario.ts",
"scenario:gate": "pnpm run sync:scenarios && tsx ops/scenario-gate.ts",
"ops:orchestrate": "tsx ops/orchestrate.ts"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@typechain/ethers-v6": "^0.5.1",
"@types/express": "^5.0.3",
"@types/node": "^24.3.0",
"@types/pg": "^8.15.5",
"@vitest/coverage-istanbul": "3.2.4",
"@vitest/coverage-v8": "^3.2.4",
"c8": "^11.0.0",
"dotenv": "^16.4.7",
"eslint": "10.8.0",
"ethers": "^6.15.0",
"globals": "16.5.0",
"tsx": "^4.20.5",
"typechain": "^8.3.2",
"typescript": "^5.9.2",
"typescript-eslint": "8.65.0",
"vitest": "^3.2.4"
}
}