Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 3.96 KB
/
Copy pathpackage.json
File metadata and controls
86 lines (86 loc) · 3.96 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
{
"name": "recourse",
"version": "0.1.0",
"private": true,
"description": "Bonded, insured, slashable AI agents on NEAR. Every job leaves a TEE-attested receipt; a failed job is slashed and paid out cross-chain through NEAR Intents.",
"license": "MIT",
"packageManager": "pnpm@9.12.3",
"engines": {
"node": ">=22",
"pnpm": ">=9 <10"
},
"scripts": {
"build": "pnpm -r build && pnpm build:contract",
"build:contract": "cargo near build reproducible-wasm --manifest-path contracts/recourse/Cargo.toml",
"build:contract:dev": "cargo near build non-reproducible-wasm --manifest-path contracts/recourse/Cargo.toml",
"build:test-token": "cargo near build non-reproducible-wasm --manifest-path contracts/test-token/Cargo.toml",
"sdk:abi": "pnpm build:contract:dev && cp target/near/recourse/recourse_abi.json packages/sdk/abi/recourse_abi.json",
"demo": "tsx demo/run-demo.ts --mode sandbox",
"demo:testnet": "tsx demo/run-demo.ts --mode testnet",
"judge": "tsx scripts/judge.ts",
"test": "pnpm test:contract && pnpm test:invariants && pnpm test:integration && pnpm test:adversarial && pnpm test:services && pnpm test:e2e",
"test:contract": "cargo test --manifest-path contracts/recourse/Cargo.toml",
"test:invariants": "cargo test --manifest-path contracts/recourse/Cargo.toml --test invariants",
"test:integration": "pnpm build:contract:dev && pnpm build:test-token && cargo test --manifest-path contracts/recourse/Cargo.toml --test integration",
"test:adversarial": "vitest run tests/adversarial --passWithNoTests",
"test:services": "vitest run packages services --passWithNoTests",
"test:e2e": "playwright test",
"test:e2e:install": "playwright install chromium",
"dev": "docker compose up --build",
"deploy": "tsx scripts/deploy.ts",
"deploy:dao": "tsx scripts/deploy-dao.ts",
"seed": "tsx scripts/seed.ts",
"seed:objective": "tsx scripts/seed-objective.ts",
"setup-service-keys": "tsx scripts/setup-service-keys.ts",
"register-tee-signer": "tsx scripts/register-tee-signer.ts",
"testnet:verify-receipt": "tsx scripts/verify-live-receipt.ts",
"testnet:verify-payout": "tsx scripts/verify-testnet-payout.ts",
"scenario:01": "tsx demo/scenarios/01-happy-path.ts",
"scenario:02": "tsx demo/scenarios/02-wrong-work-is-fined.ts",
"scenario:03": "tsx demo/scenarios/03-no-delivery.ts",
"scenario:04": "tsx demo/scenarios/04-bogus-claim.ts",
"scenario:05": "tsx demo/scenarios/05-appeal.ts",
"scenario:06": "tsx demo/scenarios/06-attacks.ts",
"scenario:07": "tsx demo/scenarios/07-underwriting-market.ts",
"record-fixtures": "tsx scripts/record-fixtures.ts",
"verify-receipt": "tsx scripts/verify-receipt.ts",
"rerun-verdict": "tsx services/arbiter/src/rerun-verdict.ts",
"mainnet:run": "tsx demo/mainnet-run/run.ts",
"mainnet:verify": "tsx demo/mainnet-run/verify.ts",
"spike:a": "tsx spikes/spike-a-ecrecover/recover.ts",
"spike:b": "tsx spikes/spike-b-oneclick/quote.ts",
"spike:c": "tsx spikes/spike-c-sandbox/hello.ts",
"typecheck": "tsc --noEmit -p tsconfig.json && pnpm -r typecheck",
"lint": "eslint .",
"demo:keep": "tsx demo/run-demo.ts --mode sandbox --keep",
"export-receipts": "tsx scripts/export-receipts.ts",
"hosted": "tsx scripts/hosted-sandbox.ts",
"indexer": "pnpm --filter @recourse/indexer start",
"web": "pnpm --filter @recourse/web dev"
},
"devDependencies": {
"@playwright/test": "1.55.1",
"@types/node": "20.17.10",
"eslint": "9.17.0",
"ethers": "6.13.4",
"near-api-js": "7.4.0",
"tsx": "4.19.2",
"typescript": "5.7.2",
"typescript-eslint": "8.18.1",
"vite": "6.4.4",
"vitest": "4.1.12"
},
"pnpm": {
"overrides": {
"next>postcss": "8.5.32",
"postcss": "8.5.32",
"ws": "8.21.0",
"esbuild": "0.25.0",
"sharp": "0.35.5",
"tinypool": "2.1.2",
"minimatch": "11.0.1",
"vite": "6.4.4",
"@vitest/mocker": "4.1.12"
}
}
}