Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
366 lines (366 loc) · 37.4 KB
/
Copy pathpackage.json
File metadata and controls
366 lines (366 loc) · 37.4 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
{
"name": "xlnfinance",
"version": "0.1.31",
"packageManager": "bun@1.4.3",
"bin": {
"xln": "cli/xln.ts"
},
"scripts": {
"xln": "bun cli/xln.ts",
"test:agent-payments:live": "bun cli/scripts/agent-payments/proof.ts",
"advisor": "bun tools/advisor.ts",
"xln1000": "bun tools/xln1000/cli.ts",
"test:cli": "bun tools/checks/check-environment.ts && bun test ./cli/__tests__",
"test:cli:orchestration": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=cli-orchestration -- bun cli/scripts/orchestration-smoke.ts",
"test:cli:orchestration:bun": "XLN_CLI_ORCH=1 bun test ./cli/__tests__/orchestration.integration.test.ts",
"bv": "bun brainvault/brainvault",
"clean-slate": "bun scripts/dev/run-dev.ts --clean",
"contracts:sync": "./scripts/sync-contract-artifacts.sh",
"contracts:tron:compile": "cd jurisdictions && bun scripts/compile-tron.cjs --all",
"dev": "bun scripts/dev/run-dev.ts",
"dev:debug": "bun scripts/dev/run-dev.ts --mode=debug",
"dev:trace": "bun scripts/dev/run-dev.ts --mode=trace",
"dev:verbose": "bun scripts/dev/run-dev.ts --mode=verbose",
"relay": "bun core/network/relay/standalone-server.ts --port 9000",
"watchtower": "bun core/watchtower/standalone-server.ts --port 9100",
"build": "./scripts/build-runtime.sh",
"daemon:control": "bun core/scripts/operations/production/daemon-control.ts",
"custody": "bun custody/server.ts",
"custody:prod": "bun core/scripts/operations/custody/start-custody-prod.ts",
"notify:done": "bash ./scripts/notify.sh 'Task complete' 'XLN Agent' 'All done'",
"notify:fail": "bash ./scripts/notify.sh 'Task failed' 'XLN Agent' 'Check logs' 'Basso'",
"progress:note": "bun tools/progress-timeline.ts",
"stand:status": "bun tools/stand-lock.ts status",
"stand:run": "bun tools/stand-lock.ts run",
"xlnc:prototype": "bun tools/stand-lock.ts run --reason=xlnc-prototype --timeout-ms=60000 -- bun tools/xlnc/prototype.ts",
"test:e2e:notify": "bun run test:e2e:fast && bash ./scripts/notify.sh 'E2E fast passed' 'XLN Agent' || bash ./scripts/notify.sh 'E2E fast failed' 'XLN Agent' 'See report' 'Basso'",
"test:e2e": "bun run test:e2e:fast",
"test:e2e:monitor": "bun core/scripts/e2e/harness/e2e-fail-fast-monitor.ts",
"test:e2e:fast": "bun core/scripts/e2e/runners/run-e2e-fast.ts",
"test:e2e:functional": "bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --all --strict-browser-health --qa-category=functional --shards=2 --workers-per-shard=1 --max-mm-concurrency=1 --stack-timeout-ms=300000 --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:resilience": "bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --all --strict-browser-health --qa-category=resilience --shards=2 --workers-per-shard=1 --max-mm-concurrency=1 --stack-timeout-ms=300000 --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:categories": "bun run test:e2e:functional && bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --all --strict-browser-health --qa-category=resilience --skip-build --shards=2 --workers-per-shard=1 --max-mm-concurrency=1 --stack-timeout-ms=300000 --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:full": "bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --all --strict-browser-health --shards=16 --workers-per-shard=1 --max-mm-concurrency=4 --max-reset-concurrency=4 --stack-timeout-ms=300000 --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:release": "bun run prod:bootstrap:soundcheck && bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --all --exclude-market-maker --strict-browser-health --shards=2 --workers-per-shard=1 --stack-timeout-ms=300000 --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:mm": "bun run prod:bootstrap:soundcheck && bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --all --market-maker-only --strict-browser-health --shards=7 --workers-per-shard=1 --max-mm-concurrency=1 --stack-timeout-ms=300000 --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:payment:smoke": "bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --strict-browser-health --shards=1 --workers-per-shard=1 --pw-project=chromium --pw-files=tests/e2e/payments/e2e-payment-smoke.spec.ts",
"test:e2e:prod:payment": "PW_SKIP_WEBSERVER=1 PW_ONLY_CHROMIUM=1 PW_BASE_URL=https://xln.finance E2E_BASE_URL=https://xln.finance E2E_API_BASE_URL=https://xln.finance PW_VIDEO=retain-on-failure PW_TRACE=on-first-retry bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=e2e-prod-payment --scope=e2e -- bunx playwright test tests/e2e/payments/e2e-payment-smoke.spec.ts --project=chromium",
"test:e2e:parallel:isolated": "bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --strict-browser-health",
"test:e2e:parallel:max": "E2E_LONG=1 bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --strict-browser-health --shards=7 --workers-per-shard=1 --stack-timeout-ms=300000 --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:parallel:long": "E2E_LONG=1 bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --strict-browser-health --shards=7 --workers-per-shard=1 --max-mm-concurrency=1 --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:mvp": "bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --strict-browser-health --video=retain-on-failure --trace=off --screenshot=only-on-failure --max-failures=1",
"test:e2e:core": "bun core/scripts/e2e/runners/run-e2e-core.ts",
"test:e2e:core:fast": "bun core/scripts/e2e/runners/run-e2e-core.ts --skip-build",
"test:e2e:coverage": "bun core/scripts/checks/policy/check-flow-e2e-coverage.ts",
"test:cleanup": "bun core/scripts/e2e/harness/test-artifact-cleanup.ts",
"test:persistence:cli": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=persistence-cli -- bun core/scripts/operations/persistence/persistence-wal-smoke.ts",
"test:consensus:collision": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=consensus-collision -- bun core/scripts/operations/persistence/persistence-simultaneous-proposal-smoke.ts",
"test:lending:fast": "bun tools/checks/check-environment.ts && bun test core/__tests__/finance/state/lending.test.ts core/__tests__/finance/state/lending-funding.test.ts core/__tests__/rscore/parity/account-lending-semantic-parity.test.ts core/__tests__/rscore/tx-wire.test.ts core/__tests__/entity/scheduler/scheduled-wake-account-tx-order.test.ts tests/frontend/assets/lending-balance.test.ts ui/src/runtime/financial/balance.test.ts",
"test:lending:e2e": "cd ui && bunx playwright test tests/lending tests/e2e-lending.spec.ts",
"test:dispute:fast": "bun tools/checks/check-environment.ts && bun test core/__tests__/security/dispute/dispute-finalization.test.ts core/__tests__/entity/consensus/invariants/entity-certified-j-height.test.ts tests/frontend/payments/compact-dispute-projection.test.ts tests/frontend/account/account-dispute-view.test.ts ui/src/runtime/financial/manage-dispute.test.ts",
"test:dispute:e2e:react": "XLN_LOCAL_PROD_SMOKE_WALLET_TESTS=e2e-dispute-finality.spec.ts bun run stand:run --reason wallet-dispute-react --timeout-ms 180000 -- bun core/scripts/operations/production/local-prod-smoke.ts",
"test:dispute:e2e:svelte": "XLN_LOCAL_PROD_SMOKE_WALLET_UI=svelte XLN_LOCAL_PROD_SMOKE_WALLET_TESTS=e2e-svelte-dispute-finality.spec.ts bun run stand:run --reason wallet-dispute-svelte --timeout-ms 180000 -- bun core/scripts/operations/production/local-prod-smoke.ts",
"test:dispute:e2e": "bun run test:dispute:e2e:react && bun run test:dispute:e2e:svelte",
"test:recovery:fast": "bun tools/checks/check-environment.ts && bun test core/__tests__/storage/recovery/recovery-tower.test.ts ui/src/runtime/backup-size.test.ts ui/src/runtime/recovery-cancel.test.ts ui/src/runtime/recovery-failure.test.ts tests/frontend/recovery/recovery-coverage.test.ts tests/frontend/recovery/recovery-tower-config.test.ts",
"test:recovery:e2e:react": "XLN_LOCAL_PROD_SMOKE_WALLET_TESTS=e2e-tower-restore.spec.ts bun run stand:run --reason wallet-recovery-react --timeout-ms 180000 -- bun core/scripts/operations/production/local-prod-smoke.ts",
"test:recovery:e2e:svelte": "XLN_LOCAL_PROD_SMOKE_WALLET_UI=svelte XLN_LOCAL_PROD_SMOKE_WALLET_TESTS=e2e-svelte-tower-restore.spec.ts bun run stand:run --reason wallet-recovery-svelte --timeout-ms 180000 -- bun core/scripts/operations/production/local-prod-smoke.ts",
"test:recovery:e2e": "bun run test:recovery:e2e:react && bun run test:recovery:e2e:svelte",
"test:notifications:fast": "bun tools/checks/check-environment.ts && bun test ui/src/runtime/financial/receipts.test.ts tests/frontend/payments/payment-spotlight-store.test.ts tests/frontend/payments/payment-terminal-monitor.test.ts",
"test:notifications:e2e:react": "XLN_LOCAL_PROD_SMOKE_WALLET_TESTS=e2e-notifications.spec.ts bun run stand:run --reason=wallet-notifications-react --timeout-ms=180000 -- bun core/scripts/operations/production/local-prod-smoke.ts",
"test:notifications:e2e:svelte": "XLN_LOCAL_PROD_SMOKE_WALLET_UI=svelte XLN_LOCAL_PROD_SMOKE_WALLET_TESTS=e2e-notifications.spec.ts,e2e-svelte-swap-notification.spec.ts bun run stand:run --reason=wallet-notifications-svelte --timeout-ms=180000 -- bun core/scripts/operations/production/local-prod-smoke.ts",
"test:notifications:e2e": "bun run test:notifications:e2e:react && bun run test:notifications:e2e:svelte",
"test:watchtower:smoke": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=watchtower-smoke -- bun core/scripts/operations/production/watchtower-smoke.ts",
"test:watchtower:rpc": "bun run stand:run --reason=watchtower-rpc --timeout-ms=60000 -- bun test core/__tests__/security/watchtower/watchtower-rpc-last-resort.test.ts",
"test:rpc-settlement": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=rpc-settlement -- bun core/scripts/operations/settlement/rpc-settlement-parity.ts",
"test:tron:nile": "bun core/scripts/operations/production/tron-nile-smoke.ts",
"test:p2p:relay": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=p2p-relay -- bun core/scenarios/network/p2p-relay.ts",
"soak:quick": "bun core/scripts/release/run-soak-gate.ts --profile=quick --iterations=2",
"perf:runtime": "bun core/scripts/operations/benchmark/analyze-runtime-perf.ts",
"soak:swap10m": "bun core/scripts/release/run-soak-gate.ts --profile=swap --minutes=10",
"soak:release": "bun core/scripts/release/run-soak-gate.ts --profile=release --minutes=240",
"soak:capped-testnet": "bun core/scripts/release/run-soak-gate.ts --profile=release --minutes=60",
"prod:health": "bun core/scripts/operations/production/prod-health-smoke.ts",
"prod:health:release": "bun core/scripts/operations/production/prod-health-smoke.ts --require-clean-source --require-source-match",
"prod:health:capped-testnet": "bun core/scripts/operations/production/prod-health-smoke.ts --expected-hubs=3 --require-hub-self-relay --expected-towers=1 --tower-url=https://xln.finance/api/tower/healthz",
"prod:smoke:local": "bun core/scripts/operations/production/local-prod-smoke.ts",
"scenario:mm-mesh": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=mm-mesh -- bun core/scenarios/run.ts mm-mesh",
"scenario:mm-mesh:hub-kill": "XLN_ADVERSARY_PROFILE=hub-kill bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=mm-mesh-hub-kill -- bun core/scenarios/run.ts mm-mesh --adversary=hub-kill",
"scenario:mm-mesh:mm-restart": "XLN_ADVERSARY_PROFILE=mm-restart bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=mm-mesh-mm-restart -- bun core/scenarios/run.ts mm-mesh --adversary=mm-restart",
"prod:bootstrap:bench": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=bootstrap-bench -- bun core/scripts/operations/bootstrap/bootstrap-benchmark.ts",
"prod:bootstrap:fresh": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=bootstrap-fresh -- bun core/scripts/operations/bootstrap/bootstrap-soundcheck.ts --mode=fresh",
"prod:bootstrap:template": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=bootstrap-template -- bun core/scripts/operations/bootstrap/bootstrap-soundcheck.ts --mode=template",
"prod:bootstrap:clone": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=bootstrap-clone --keep-test-artifacts -- bun core/scripts/operations/bootstrap/bootstrap-soundcheck.ts --mode=clone",
"prod:bootstrap:hydrate": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=bootstrap-hydrate --keep-test-artifacts -- bun core/scripts/operations/bootstrap/bootstrap-soundcheck.ts --mode=hydrate",
"prod:bootstrap:rotation": "XLN_STORAGE_EPOCH_MAX_BYTES=524288 XLN_LOCAL_PROD_SMOKE_REQUIRE_EPOCH_ROTATION=1 XLN_LOCAL_PROD_SMOKE_POST_BOOTSTRAP_STABILITY_MS=2000 bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=bootstrap-rotation --keep-test-artifacts -- bun core/scripts/operations/bootstrap/bootstrap-soundcheck.ts --mode=fresh",
"prod:bootstrap:soundcheck": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=bootstrap-soundcheck -- bun core/scripts/operations/bootstrap/bootstrap-soundcheck.ts --mode=all",
"prod:diagnose": "./scripts/operations/prod-diagnose.sh",
"security:contract-governance": "bun core/scripts/checks/contracts/check-contract-governance-scan.ts",
"security:consensus-hanko": "bun core/scripts/checks/consensus/check-consensus-hanko-scan.ts",
"security:failure-taxonomy": "bun core/scripts/checks/consensus/check-failure-taxonomy-scan.ts",
"security:delivery-boundary": "bun core/scripts/checks/consensus/check-delivery-boundary-scan.ts",
"security:canonical-identity": "bun core/scripts/checks/consensus/check-canonical-identity-scan.ts",
"security:canonical-fill": "bun core/scripts/checks/consensus/check-canonical-fill-scan.ts",
"security:swap-cancel-canonical": "bun core/scripts/checks/consensus/check-swap-cancel-canonical-scan.ts",
"security:audit-pack": "bun core/scripts/checks/repository/check-security-audit-pack.ts",
"audit:plan": "bun tools/audit.ts plan",
"audit:status": "bun tools/audit.ts status",
"audit:validate": "bun tools/audit.ts validate",
"audit:verify": "bun tools/audit.ts verify",
"audit:gate:merge": "bun tools/audit.ts gate merge",
"audit:gate:release": "bun tools/audit.ts gate release",
"audit:gate:ideal": "bun tools/audit.ts gate ideal",
"gate:quick": "bun core/scripts/release/run-release-gate.ts --profile=quick",
"gate:ci": "bun core/scripts/release/run-release-gate.ts --profile=ci",
"gate:release": "bun core/scripts/release/run-release-gate.ts --profile=release",
"gate:mainnet-preflight": "bun core/scripts/release/run-mainnet-preflight-gate.ts",
"gate:mainnet-preflight:plan": "bun core/scripts/release/run-mainnet-preflight-gate.ts --dry-run --allow-dirty",
"gate:mainnet": "bun core/scripts/release/run-mainnet-preflight-gate.ts --include-soak --include-scale",
"gate:capped-testnet": "bun core/scripts/release/run-capped-testnet-gate.ts",
"gate:capped-testnet:preflight": "bun core/scripts/release/run-capped-testnet-gate.ts --skip-soak",
"debug:receipts": "bun core/scripts/operations/diagnostics/read-frame-receipts.ts",
"debug:disk": "bun core/scripts/operations/diagnostics/debug-disk.ts",
"debug:persistence": "bun core/scripts/operations/diagnostics/inspect-persistence.ts",
"bench:storage:hub": "bun core/scripts/operations/benchmark/bench-storage-hub.ts",
"bench:swap:orderbook": "bun core/scripts/operations/benchmark/bench-swap-orderbook-tps.ts --swaps 100000 --warmup 10000 --min-tps 10000",
"bench:swap:orderbook:rust": "cargo run --quiet --release --manifest-path rscore/Cargo.toml -p xln-rscore-process --bin xlnrs -- orderbook-bench --swaps 100000 --warmup 10000 --levels 32",
"bench:swap:runtime": "bun core/scripts/operations/benchmark/bench-swap-runtime-tps.ts --swaps 25000 --warmup 2500 --min-tps 10000",
"bench:swap:consensus": "bun core/scripts/operations/benchmark/bench-swap-hub-consensus-tps.ts --swaps 1000 --warmup 100 --min-aggregate-account-consensus-tps 2000 --batch-size 20 --independent-hub-cohorts 1",
"bench:swap:consensus:aggregate-scale": "bun core/scripts/operations/benchmark/bench-swap-hub-consensus-tps.ts --swaps 10000 --warmup 1000 --min-aggregate-account-consensus-tps 10000 --batch-size 20 --users 1000 --independent-hub-cohorts 16",
"bench:swap:scenarios": "bun core/scripts/operations/benchmark/bench-swap-scenarios-tps.ts --swaps 25000 --warmup 2500 --min-tps 10000",
"bench:crypto": "bun tools/stand-lock.ts run --reason crypto-primitives-all -- bun core/scripts/operations/benchmark/crypto/crypto-bench.ts",
"bench:crypto:ts": "bun tools/stand-lock.ts run --reason crypto-primitives-ts -- bun core/scripts/operations/benchmark/crypto/crypto-primitives.ts --workers=8",
"bench:crypto:rust": "bun tools/stand-lock.ts run --reason crypto-primitives-rust -- cargo bench --quiet --manifest-path rscore/Cargo.toml -p xln-rscore-crypto --bench crypto_primitives",
"bench:radapter:hub10k": "bun --expose-gc core/scripts/operations/benchmark/bench-radapter-hub-1m.ts --accounts=10000 --hot-percent=10 --memory=hot --seed-mode=bulk --chunk=1000 --traffic-rounds=10 --touch-per-round=100 --new-after-read=100 --rss-cap-mb=1024 --max-read-p99-ms=500 --max-durable-p99-ms=2000 --max-cold-open-ms=1000 --max-cold-read-ms=500",
"bench:radapter:hub10k:rotation": "bun --expose-gc core/scripts/operations/benchmark/bench-radapter-hub-1m.ts --accounts=10000 --hot-percent=10 --memory=hot --seed-mode=bulk --chunk=1000 --traffic-rounds=10 --touch-per-round=100 --new-after-read=100 --rotation-probe --rotation-epoch-bytes=1073741824 --rss-cap-mb=1024 --max-read-p99-ms=500 --max-durable-p99-ms=2000 --max-cold-open-ms=1000 --max-cold-read-ms=500 --max-snapshot-ms=5000 --max-epoch-seed-ms=5000 --max-rotation-probe-ms=10000",
"bench:radapter:hub100k:hot10k": "bun --expose-gc core/scripts/operations/benchmark/bench-radapter-hub-1m.ts --accounts=100000 --hot-accounts=10000 --memory=hot --seed-mode=bulk --chunk=5000 --traffic-rounds=10 --touch-per-round=100 --new-after-read=100 --rss-cap-mb=2048 --max-read-p99-ms=750 --max-durable-p99-ms=3000 --max-cold-open-ms=1500 --max-cold-read-ms=750",
"bench:radapter:hub1m:assert": "bun --expose-gc core/scripts/operations/benchmark/bench-radapter-hub-1m.ts --accounts=1000000 --hot-percent=1 --memory=hot --seed-mode=bulk --chunk=10000 --traffic-rounds=10 --touch-per-round=100 --new-after-read=100 --rss-cap-mb=24576 --max-read-p99-ms=1000 --max-durable-p99-ms=8000 --max-cold-open-ms=5000 --max-cold-read-ms=1000 --keep-db",
"bench:radapter:hub1m:rotation": "bun --expose-gc core/scripts/operations/benchmark/bench-radapter-hub-1m.ts --accounts=1000000 --hot-percent=1 --memory=hot --seed-mode=bulk --chunk=10000 --traffic-rounds=10 --touch-per-round=100 --new-after-read=100 --rotation-probe --rotation-epoch-bytes=1073741824 --rss-cap-mb=24576 --max-read-p99-ms=1000 --max-durable-p99-ms=8000 --max-cold-open-ms=5000 --max-cold-read-ms=1000 --max-snapshot-ms=180000 --max-epoch-seed-ms=180000 --max-rotation-probe-ms=360000 --keep-db",
"bench:radapter:hub1m": "bun --expose-gc core/scripts/operations/benchmark/bench-radapter-hub-1m.ts --accounts=1000000 --hot-percent=1 --memory=hot --seed-mode=bulk --chunk=10000 --traffic-rounds=10 --touch-per-round=100 --keep-db",
"bench:radapter:hub1m:allmem": "bun --expose-gc core/scripts/operations/benchmark/bench-radapter-hub-1m.ts --accounts=1000000 --hot-percent=1 --memory=all --seed-mode=bulk --chunk=10000 --traffic-rounds=10 --touch-per-round=100 --keep-db",
"test:scenarios:parallel:isolated": "bun core/scenarios/run.ts",
"test:scenarios:core": "bun tools/stand-lock.ts run --reason core-scenarios --timeout-ms 600000 -- bun core/scenarios/run.ts all --set=core --workers=4",
"test:unit": "bun core/scripts/e2e/runners/run-unit-tests.ts",
"test:stress:storage": "bun core/scripts/e2e/runners/run-unit-tests.ts core/__tests__/storage/operations/storage-hub-10k-checkpoint-rollover.test.ts",
"test:all:fast": "bun core/scripts/e2e/runners/run-all-tests-fast.ts",
"test:feedback:20": "bun core/scenarios/run.ts --set=smoke --workers=2",
"test:all:quick": "bun core/scripts/e2e/runners/run-all-tests-fast.ts --quick --scenario-workers=2 --e2e-shards=1",
"test:all:smoke": "bun core/scripts/e2e/runners/run-all-tests-fast.ts --smoke --scenario-workers=2 --e2e-shards=1",
"test:system:parallel": "bun core/scripts/e2e/runners/run-system-tests-parallel.ts",
"test:system:parallel:stream": "bun core/scripts/e2e/runners/run-system-tests-parallel.ts --stream",
"test:e2e:flows": "bun core/scripts/e2e/runners/run-e2e-parallel-isolated.ts --strict-browser-health --pw-project=chromium --pw-files=tests/e2e/product/e2e-user-journey.spec.ts,tests/e2e/payments/e2e-rebalance-bar.spec.ts,tests/e2e/runtime/e2e-ahb-isolated.spec.ts,tests/e2e/payments/e2e-multiroute-load.spec.ts",
"debug:incidents": "bun core/scripts/operations/diagnostics/debug-incidents.ts",
"test": "bun core/scripts/e2e/runners/run-all-tests-fast.ts --quick --scenario-workers=2 --e2e-shards=1",
"test:contracts": "bun run test:contracts:full",
"test:contracts:full": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=contracts --child-cwd=jurisdictions -- bunx hardhat test",
"build:static": "cd frontend && bun run build:static && echo '\u2705 Static build complete for GitHub Pages'",
"build:deploy": "bun run build:static && echo '\ud83d\ude80 Ready for GitHub Pages deployment'",
"native": "bun scripts/native/build-platforms.ts",
"rscore:fmt": "cargo fmt --manifest-path rscore/Cargo.toml --all -- --check",
"rscore:clippy": "cargo clippy --manifest-path rscore/Cargo.toml --workspace --all-targets --all-features -- -D warnings",
"rscore:test": "bun tools/checks/run-rscore-tests.ts",
"rscore:lending": "bun tools/rscore-differential/index.ts",
"rscore:check": "bun run rscore:fmt && bun run rscore:clippy && bun run rscore:test && bun run rscore:parity",
"rscore:parity": "XLN_RSCORE_REQUIRE_BINARY=1 bun core/scripts/checks/rscore/check-rscore-parity.ts",
"rscore:evidence:record": "bun core/scripts/operations/hlt/replay/commands/run-authority-evidence-record.ts",
"rscore:evidence:replay": "bun core/scripts/operations/hlt/replay/commands/run-mixed-ts-rust-parity.ts",
"native:all": "bun scripts/native/build-platforms.ts all",
"native:package": "bun scripts/native/build-platforms.ts all --package --smoke",
"native:mobile": "bun scripts/native/build-platforms.ts mobile",
"native:mobile:package": "bun scripts/native/build-platforms.ts mobile --package",
"native:ios": "bun scripts/native/build-platforms.ts ios --open",
"native:ios:package": "bun scripts/native/build-platforms.ts ios --package",
"native:android": "bun scripts/native/build-platforms.ts android --open",
"native:android:package": "bun scripts/native/build-platforms.ts android --package",
"native:desktop": "bun scripts/native/build-platforms.ts desktop --open",
"native:desktop:smoke": "bun scripts/native/build-platforms.ts desktop --smoke",
"native:extension": "bun scripts/native/build-platforms.ts extension",
"deploy": "./scripts/deployment/deploy-platform.sh",
"deploy:chains:testnet": "cd jurisdictions && bun scripts/deploy-chain-matrix.cjs --profile=testnet --write-jurisdictions",
"deploy:chains:mainnet": "cd jurisdictions && bun scripts/deploy-chain-matrix.cjs --profile=mainnet --yes --write-jurisdictions",
"deploy:mainnets": "bun run deploy:chains:mainnet",
"deploy:frontend": "./scripts/deployment/deploy-platform.sh --frontend",
"deploy:full": "./scripts/deployment/deploy-platform.sh --frontend",
"deploy:fresh": "./scripts/deployment/deploy-platform.sh --fresh",
"deploy:prod": "./scripts/deployment/deploy-platform.sh --remote root@xln.finance --push --frontend --fresh --production --reset-mesh",
"deploy:prod:frontend": "./scripts/deployment/deploy-platform.sh --remote root@xln.finance --push --frontend-only --production",
"deploy:prod:runtime": "./scripts/deployment/deploy-platform.sh --runtime-only --remote root@xln.finance --push --production --reset-mesh",
"deploy:prod:full": "./scripts/deployment/deploy-platform.sh --remote root@xln.finance --push --frontend --fresh --production --reset-mesh",
"deploy:prod:fresh": "./scripts/deployment/deploy-platform.sh --remote root@xln.finance --push --frontend --fresh --production --reset-mesh",
"deploy:qa": "./scripts/deployment/deploy-qa-evidence.sh --remote root@xln.finance",
"deploy:qa:dry": "./scripts/deployment/deploy-qa-evidence.sh --remote root@xln.finance --dry-run",
"test:governance": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=governance --child-cwd=jurisdictions -- bunx hardhat test --grep governance",
"test:entity": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=entity --child-cwd=jurisdictions -- bunx hardhat test --grep entity",
"verify": "bun scripts/verification/verify.ts",
"verify:install": "bun scripts/verification/install.ts",
"check": "bun run check:short && bun run check:long",
"check:short": "bun tools/run-parallel-checks.ts check:first-hub-account check:contract-artifact-drift check:frontend-file-size",
"check:long": "bun tools/run-parallel-checks.ts check:src check:frontend check:ui-types",
"check:first-hub-account": "bun tools/checks/check-environment.ts && bun test --tsconfig-override ./ui/tsconfig.json ./ui/src/runtime/first-hub-account.test.ts && bun test ./core/__tests__/entity/profile/open-account-profile-advertise.test.ts tools/checks/check-environment.test.ts",
"check:brainvault": "bun tools/checks/check-environment.ts && bun test ./brainvault/tests/core.test.ts ./tests/unit/brainvault-workers.test.ts ./tests/unit/brainvault-native.test.ts ./core/__tests__/api/server/server-rpc-startup-gate.test.ts ./core/__tests__/api/runtime-adapter/radapter-remote-reconnect.test.ts",
"check:contract-artifact-drift": "bun core/scripts/checks/contracts/check-contract-artifact-drift.ts",
"check:contract-artifact-reproducibility": "bun run stand:run --reason contract-artifact-reproducibility --timeout-ms 420000 -- bun core/scripts/checks/contracts/check-contract-artifact-reproducibility.ts",
"check:src": "bun tools/run-parallel-checks.ts soundcheck:fast check:contract-invariants check:dead-code check:audit-registry check:advisor check:single-live-todo check:script-entrypoints check:proof-program frozen-core:check check:e2e-categories check:runtime-doc-paths check:folder-width check:state-machine-size check:production-function-size check:single-runtime-mempool check:frame-candidate-isolation check:no-machine-clones check:no-readonly-account-mutation check:no-hot-full-machine-scans check:patricia-hot-path check:path-keyed-storage check:account-frame-single-transition check:minimal-runtime-wal check:orderbook-price-pages check:canonical-vocabulary check:english-source check:j-event-catalog check:runtime-contract-types check:derive-delta-invariants check:no-manual-delta-math check:no-active-infra-in-state-machine check:no-legacy check:no-vacuous-validation check:unused-surface check:canonical-payment-surface security:failure-taxonomy security:swap-cancel-canonical check:runtime-types",
"check:proof-program": "bun proofs/check.ts && bun test ./proofs/check.test.ts",
"proof:c1:calibrate-shrinker": "bun proofs/fuzz/enc-diff/calibrate-shrinker.ts",
"check:script-entrypoints": "bun tools/checks/check-environment.ts && bun test ./tools/check-environment.test.ts ./core/__tests__/testing/tooling/script-entrypoints.test.ts",
"check:audit-registry": "bun node_modules/@typescript/native/bin/tsc -p tools/audit/tsconfig.json && bun tools/audit.ts validate && bun test ./tools/checks/audit-status.test.ts ./tests/release-integrity/audit-registry.test.ts ./tests/release-integrity/audit-review-quorum.test.ts ./tests/release-integrity/audit-scope-integrity.test.ts",
"check:advisor": "bun node_modules/@typescript/native/bin/tsc -p tools/advisor/tsconfig.json && bun test tests/release-integrity/advisor/advisor.test.ts tests/release-integrity/advisor/advisor-process.test.ts tests/release-integrity/advisor/advisor-concurrency.test.ts",
"check:production-function-size": "bun core/scripts/checks/architecture/check-production-function-size.ts",
"check:unsafe-types": "bun core/scripts/checks/architecture/check-unsafe-types.ts",
"check:frontend-unsafe-types": "cd frontend && bun run check:unsafe-types",
"check:runtime-dependencies": "bun core/scripts/checks/architecture/check-runtime-dependencies.ts",
"check:e2e-categories": "bun core/scripts/checks/policy/check-e2e-test-categories.ts",
"check:frontend": "cd frontend && bun run check",
"check:ui-types": "cd ui && bun run check",
"check:frontend-file-size": "bun core/scripts/checks/policy/check-frontend-file-size.ts",
"check:fints-negative-types": "bun core/scripts/checks/fints/check-fints-negative-types.ts",
"check:fints-compiler-policy": "bun core/scripts/checks/fints/check-compiler-policy.ts",
"check:fints-decoder-authority": "bun core/scripts/checks/fints/check-decoder-authority.ts",
"test:mutation:fints": "bunx stryker run stryker.fints.config.mjs",
"check:nested-hash-coverage": "bun core/scripts/checks/fints/check-nested-hash-coverage.ts",
"check:runtime-types": "bun run check:runtime-types:ts7",
"check:runtime-types:ts7": "bun node_modules/@typescript/native/bin/tsc -p tsconfig.runtime.json --noEmit --checkers 4",
"check:runtime-types:ts5": "bun node_modules/typescript/bin/tsc -p tsconfig.runtime.json --noEmit",
"check:runtime-doc-paths": "bun core/scripts/checks/architecture/check-runtime-doc-paths.ts",
"check:folder-width": "bun core/scripts/checks/architecture/check-folder-width.ts",
"check:state-machine-size": "bun core/scripts/checks/architecture/check-state-machine-size.ts",
"check:single-runtime-mempool": "bun core/scripts/checks/consensus/check-single-runtime-mempool.ts",
"check:frame-candidate-isolation": "bun core/scripts/checks/consensus/check-frame-candidate-isolation.ts",
"check:no-machine-clones": "bun core/scripts/checks/consensus/state/check-no-machine-clones.ts",
"check:no-readonly-account-mutation": "bun core/scripts/checks/consensus/state/check-no-readonly-account-mutation.ts",
"check:no-hot-full-machine-scans": "bun core/scripts/checks/consensus/state/check-no-hot-full-machine-scans.ts",
"check:patricia-hot-path": "bun core/scripts/checks/consensus/state/check-patricia-hot-path.ts",
"check:path-keyed-storage": "bun core/scripts/checks/consensus/state/check-path-keyed-storage.ts",
"check:account-frame-single-transition": "bun core/scripts/checks/consensus/state/check-account-frame-single-transition.ts",
"check:minimal-runtime-wal": "bun core/scripts/checks/consensus/state/check-minimal-runtime-wal.ts",
"check:orderbook-price-pages": "bun core/scripts/checks/consensus/state/check-orderbook-price-pages.ts",
"check:canonical-vocabulary": "bun core/scripts/checks/architecture/check-canonical-vocabulary.ts",
"check:english-source": "bun core/scripts/checks/architecture/check-english-source.ts",
"check:single-live-todo": "bun core/scripts/checks/repository/check-single-live-todo.ts",
"check:no-weak-collections": "bun core/scripts/checks/policy/check-no-weak-collections.ts",
"check:derive-delta-invariants": "bun tests/scripts/check-derive-delta-invariants.ts",
"check:no-manual-delta-math": "bun core/scripts/checks/policy/check-no-manual-delta-math.ts",
"check:no-active-infra-in-state-machine": "bun core/scripts/checks/policy/check-no-active-infra-in-state-machine.ts",
"check:no-legacy": "bun core/scripts/checks/policy/check-no-legacy.ts",
"check:dead-code": "bunx knip --no-progress --include files,dependencies,unlisted,duplicates",
"check:unused-surface": "bun core/scripts/checks/repository/check-unused-surface.ts",
"check:canonical-payment-surface": "bun tools/checks/check-environment.ts && bun test ./core/__tests__/payments/invariants/canonical-payment-surface.test.ts",
"check:determinism": "bun core/scripts/checks/architecture/check-determinism.ts",
"check:determinism:static": "bun core/scripts/checks/architecture/check-determinism.ts --static-only",
"check:j-event-catalog": "bun core/scripts/checks/consensus/check-j-event-catalog.ts",
"check:runtime-contract-types": "bun node_modules/@typescript/native/bin/tsc -p tsconfig.runtime-contract-tests.json --noEmit --checkers 4 && bun core/scripts/checks/repository/check-test-import-resolution.ts",
"soundcheck": "bun tools/soundcheck.ts",
"soundcheck:fast": "bun tools/soundcheck.ts",
"release:snapshot": "bun tools/release-snapshot.ts",
"release:launcher:build": "bun scripts/release/build-xlnfinance-package.ts",
"release:launcher:pack": "bun scripts/release/build-xlnfinance-package.ts --pack",
"release:launcher:verify": "bun scripts/release/build-xlnfinance-package.ts --pack --smoke",
"release:manifest": "bun scripts/release/build-release-manifest.ts",
"frozen-core:check": "bun tools/frozen-core.ts check",
"frozen-core:tree": "bun tools/frozen-core.ts tree",
"frozen-core:approve": "bun tools/frozen-core.ts approve",
"frozen-core:add": "bun tools/frozen-core.ts add",
"frozen-core:remove": "bun tools/frozen-core.ts remove",
"foundation-release:init": "bun tools/foundation-release.ts init",
"foundation-release:verify": "bun tools/foundation-release.ts verify",
"foundation-release:publish-check": "bun tools/foundation-release.ts publish-check",
"test:release-integrity": "bun tools/checks/check-environment.ts && bun test ./tests/release-integrity/*.test.ts && bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=release-hanko-contract --child-cwd=jurisdictions -- bunx hardhat test test/governance/ReleaseHanko.test.ts",
"visualcheck": "bun tools/visualcheck.ts",
"build:tsc": "bun node_modules/@typescript/native/bin/tsc",
"watch": "bun node_modules/@typescript/native/bin/tsc --watch",
"env:build": "cd ./jurisdictions && bun run compile",
"format": "prettier --write ./runtime",
"check:prettier": "prettier --check ./runtime",
"lint": "bun core/scripts/checks/architecture/check-eslint-ratchet.ts",
"docs:governance": "echo 'See docs/governance-architecture.md for comprehensive governance documentation'",
"demo": "echo 'See docs/governance-architecture.md for governance demo and examples'",
"check:dead-code:report": "bunx knip --no-progress",
"check:no-vacuous-validation": "bun core/scripts/checks/policy/check-no-vacuous-validation.ts",
"check:contract-invariants": "bun core/scripts/e2e/runners/run-with-test-cleanup.ts --reason=contract-invariants --child-cwd=jurisdictions --keep-test-artifacts -- forge test --match-contract \"DepositoryInvariants|DisputeIngressGas\""
},
"keywords": [],
"author": "",
"license": "AGPL-3.0",
"description": "",
"devDependencies": {
"@nomicfoundation/hardhat-ethers": "^4.2.1",
"@nomicfoundation/hardhat-ethers-chai-matchers": "^3.0.13",
"@nomicfoundation/hardhat-ignition": "^3.1.9",
"@nomicfoundation/hardhat-ignition-ethers": "^3.1.6",
"@nomicfoundation/hardhat-keystore": "^3.1.2",
"@nomicfoundation/hardhat-mocha": "^4.0.1",
"@nomicfoundation/hardhat-network-helpers": "^3.0.12",
"@nomicfoundation/hardhat-toolbox-mocha-ethers": "^4.0.0",
"@nomicfoundation/hardhat-typechain": "^3.1.2",
"@nomicfoundation/hardhat-verify": "^3.1.3",
"@openzeppelin/contracts": "^5.6.1",
"@playwright/test": "^1.64.1",
"@stryker-mutator/core": "^10.0.0",
"@tsconfig/node20": "^20.1.10",
"@types/bun": "^1.4.3",
"@types/chai": "^5.2.3",
"@types/minimatch": "^6.0.0",
"@types/mocha": "^10.0.10",
"@types/node": "^26.6.5",
"@types/ws": "^8.18.2",
"@typescript-eslint/eslint-plugin": "^8.71.2",
"@typescript-eslint/parser": "^8.71.2",
"@typescript/native": "npm:typescript@7.0.2",
"chai": "^6.3.0",
"chai-as-promised": "^8.0.2",
"electron": "^44.9.0",
"eslint": "^10.13.0",
"eslint-plugin-import": "^2.32.0",
"fast-check": "^4.10.2",
"hardhat": "^3.20.0",
"jsonc-parser": "^3.3.1",
"knip": "^6.41.0",
"mocha": "^12.0.3",
"playwright": "^1.64.1",
"prettier": "^3.9.10",
"solc": "0.8.37",
"tronweb": "6.5.1",
"typescript": "6.0.3"
},
"dependencies": {
"@ethereumjs/block": "^10.1.3",
"@ethereumjs/common": "^10.1.3",
"@ethereumjs/mpt": "^10.1.3",
"@ethereumjs/rlp": "^10.1.3",
"@ethereumjs/statemanager": "^10.1.3",
"@ethereumjs/tx": "^10.1.3",
"@ethereumjs/util": "^10.1.3",
"@ethereumjs/vm": "^10.1.3",
"@modelcontextprotocol/sdk": "1.32.1",
"@noble/ciphers": "^2.4.0",
"@noble/curves": "^2.4.0",
"@noble/hashes": "^2.4.0",
"@noble/secp256k1": "^3.2.0",
"@node-rs/argon2": "^2.2.2",
"@x402/core": "2.28.0",
"@x402/fetch": "2.28.0",
"bip39": "^3.1.2",
"buffer": "^6.0.3",
"debug": "^4.4.3",
"dockview": "^8.6.0",
"ethers": "^6.17.0",
"hash-wasm": "4.12.0",
"jdenticon": "^3.3.0",
"level": "^10.0.0",
"mppx": "0.13.5",
"msgpackr": "^2.1.0",
"qrcode": "^1.5.4",
"secp256k1": "5.0.2",
"ws": "^8.22.0"
},
"type": "module",
"private": true,
"patchedDependencies": {
"tronweb@6.5.1": "patches/tronweb@6.5.1.patch"
},
"overrides": {
"axios": "1.20.0",
"qs": "6.16.1",
"tmp": "0.2.7"
}
}