-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
167 lines (167 loc) · 14.5 KB
/
Copy pathpackage.json
File metadata and controls
167 lines (167 loc) · 14.5 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
{
"description": "Zoltar",
"name": "zoltar",
"private": true,
"repository": {},
"license": "Unlicense",
"type": "module",
"devDependencies": {
"@biomejs/biome": "2.3.11",
"@foundry-rs/anvil": "1.5.1",
"@observablehq/plot": "0.6.17",
"@solidity-parser/parser": "0.20.2",
"better-typescript-lib": "2.11.0",
"bun-types": "1.3.11",
"elkjs": "0.12.0",
"funtypes": "5.1.1",
"happy-dom": "20.10.6",
"knip": "6.17.1",
"preact": "10.26.4",
"prettier": "3.8.4",
"prettier-plugin-solidity": "2.3.1",
"typescript": "5.8.2"
},
"dependencies": {
"@preact/signals": "2.0.1",
"@zoltar/shared": "file:shared",
"solc": "0.8.17",
"tevm": "1.0.0-rc.151"
},
"overrides": {
"brace-expansion": "5.0.9",
"fast-uri": "3.1.5",
"nanoid": "3.3.18",
"postcss": "8.5.23",
"tmp": "0.2.7",
"ws": "8.21.0"
},
"scripts": {
"preinstall": "bun ./scripts/link-shared-node-modules.mts",
"refresh:shared-dependencies": "bun ./scripts/ensure-shared-package-fresh.mts --refresh && cd solidity && bun ../scripts/ensure-shared-package-fresh.mts --refresh && cd ../ui && bun ../scripts/ensure-shared-package-fresh.mts --refresh",
"check:shared-dependencies": "bun run refresh:shared-dependencies",
"check:unit-terminology": "bun ./scripts/check-unit-terminology.mts",
"check:uniswap-deployment-artifact": "bun ./scripts/check-uniswap-deployment-artifact.mts",
"anvil": "bun x anvil",
"install:anvil": "bun install --frozen-lockfile",
"ensure-shared-build": "bun ./scripts/ensure-contract-artifacts.mts --ensure-shared-only",
"ensure-contract-artifacts": "bun ./scripts/ensure-contract-artifacts.mts",
"shared:build": "bun x tsc --project shared/tsconfig.json && bun ./scripts/ensure-contract-artifacts.mts --sync-shared-freshness",
"generate:shared-js": "bun run shared:build",
"generate:ui-contract-artifact": "bun ./ui/build/projectArtifacts.mts",
"generate:ui-vendor": "bun run ui:vendor",
"generate:contracts": "bun run compile-contracts",
"generate:ui": "bun run generate:shared-js && bun run generate:ui-vendor",
"check:generated-artifacts": "bun run generate && bun ./scripts/check-generated-artifacts.mts",
"check:generated-clean": "bun run check:generated-artifacts",
"setup": "bun ./scripts/install-frozen.mts && bun ./scripts/install-frozen.mts ui && bun run setup-contracts && bun run ui:vendor && cd ui && bun run refresh:shared-dependency && tsc && bun run build:workers && bun ./build/tests.mts",
"setup-contracts": "cd solidity && bun run setup",
"compile-contracts": "cd solidity && bun run compile-contracts",
"generate": "bun run generate:contracts && bun run generate:ui-vendor",
"check:mainnet-deployment": "bun run generate && bun run refresh:shared-dependencies && cd ui && bun x tsc --project tsconfig.json && cd .. && bun ./scripts/check-mainnet-deployment.mts",
"check:mainnet-deployment:generated": "bun run generate && bun run refresh:shared-dependencies && bun ./scripts/check-mainnet-deployment.mts",
"check:mainnet-deployment:current": "bun ./scripts/check-mainnet-deployment.mts",
"tsc:app": "bun ./scripts/run-app-typescript.mts",
"tsc:docs": "bun x tsc --project docs/tsconfig.json --noEmit",
"tsc:scripts": "bun x tsc --project tsconfig.scripts.json --noEmit",
"tsc:solidity": "cd solidity && bun ../scripts/ensure-shared-package-fresh.mts --refresh && bun x tsc --project tsconfig.typecheck.json",
"tsc:solidity:current": "cd solidity && bun x tsc --project tsconfig.typecheck.json",
"tsc:ci:current": "bun run tsc:docs && bun run tsc:app && bun run tsc:scripts && bun run tsc:solidity:current",
"ci:preflight:current": "bun ./scripts/run-ci-preflight.mts",
"tsc": "bun run ensure-shared-build && bun run check:shared-dependencies && bun run tsc:docs && bun run tsc:app && bun run tsc:scripts && bun run tsc:solidity",
"ui:setup": "bun ./scripts/install-frozen.mts && bun ./scripts/install-frozen.mts ui && cd solidity && bun run setup && cd .. && bun run ui:vendor && cd ui && bun run refresh:shared-dependency && tsc && bun run build:workers && bun ./build/tests.mts",
"app:build": "bun run generate && cd ui && bun run build && bun run build:tests",
"ui:build": "bun run app:build",
"ui:build:prod": "bun run check:mainnet-deployment && cd ui && bun run build:prod",
"ui:build:prod:current": "bun run check:mainnet-deployment:current && cd ui && bun ./build/production.mts",
"ui:build:prod:prepared": "bun run refresh:shared-dependencies && cd ui && bun x tsc --project tsconfig.json && cd .. && bun run ui:build:prod:current",
"ui:workers": "cd ui && bun ./build/workers.mts",
"app:watch": "bun run app:build && bun ./ui/build/watch.mts",
"ui:watch": "bun run app:watch",
"app:serve": "bun run app:build && bun ./ui/dev-server.ts",
"ui:serve": "bun run app:serve",
"ui:vendor": "cd ui && bun ./build/vendor.mts",
"cleanup:foundry-anvil-state": "bun ./scripts/cleanup-foundry-anvil-state.mts",
"deploy:testnet": "bun run ensure-contract-artifacts && bun run refresh:shared-dependencies && bun ./scripts/deploy-testnet.mts",
"gas-costs": "cd solidity && bun run gas-costs",
"test": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && bun run tsc && bun run test:run",
"test:run": "bun ./scripts/run-tests.mts",
"test:run:shard": "bun test --preload ./bun-test-setup-ui.ts --reporter=dots --timeout 300000",
"test:run:balanced-shard": "bun ./scripts/run-balanced-test-shard.mts",
"test:peripherals": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && bun run tsc:solidity && bun test --preload ./bun-test-setup-solidity.ts --timeout 300000 solidity/ts/tests/peripherals",
"test:security-pool-workflow": "bun run ensure-shared-build && bun run check:shared-dependencies && bun run tsc:app && bun test --preload ./bun-test-setup-ui.ts --timeout 300000 ui/ts/tests/features/security-pools/workflow",
"test:integration:mainnet": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && RUN_MAINNET_INTEGRATION_TESTS=1 bun test --preload ./bun-test-setup-ui.ts --timeout 300000 ui/ts/tests/protocol/uniswapQuoter.integration.test.ts",
"test:integration:mainnet-fork": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && RUN_MAINNET_FORK_INTEGRATION_TESTS=1 bun test --preload ./bun-test-setup-ui.ts --timeout 300000 ./ui/ts/tests/protocol/uniswapQuoter.fork.test.ts",
"test:auction-fuzz": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && bun run tsc && bun test --timeout 300000 ./solidity/ts/fuzz/auctionTickMath.fuzz.ts",
"test:launch-invariants": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && bun run tsc:solidity && bun test --preload ./bun-test-setup-solidity.ts --timeout 300000 solidity/ts/tests/peripheralsInvariant.test.ts solidity/ts/tests/peripherals/escalationMigration.test.ts solidity/ts/tests/peripherals/truthAuction.test.ts ./solidity/ts/fuzz/auctionTickMath.fuzz.ts",
"test:launch-invariants:run": "bun test --preload ./bun-test-setup-solidity.ts --timeout 300000 solidity/ts/tests/peripheralsInvariant.test.ts solidity/ts/tests/peripherals/escalationMigration.test.ts solidity/ts/tests/peripherals/truthAuction.test.ts ./solidity/ts/fuzz/auctionTickMath.fuzz.ts",
"update:escalation-game-bytecode-snapshot": "UPDATE_ESCALATION_GAME_BYTECODE_SNAPSHOT=1 bun test solidity/ts/tests/escalationGameInterfaceRegression.test.ts",
"coverage:ui": "bun run ensure-shared-build && bun run check:shared-dependencies && bun test --preload ./bun-test-setup-ui.ts --isolate --coverage --coverage-reporter=lcov --coverage-reporter=text --coverage-dir=coverage/ui ui/ts/tests",
"coverage:contracts:ts": "bun run ensure-contract-artifacts && bun test --timeout 300000 --coverage --coverage-reporter=lcov --coverage-reporter=text --coverage-dir=coverage/contracts-ts solidity/ts/tests",
"coverage:contracts:bytecode": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && bun ./scripts/run-solidity-bytecode-coverage.mts",
"coverage:contracts:bytecode:shard1": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && bun ./scripts/run-solidity-bytecode-coverage.mts --shard 1",
"coverage:contracts:bytecode:shard2": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && bun ./scripts/run-solidity-bytecode-coverage.mts --shard 2",
"coverage:typescript": "bun run ensure-contract-artifacts && bun run check:shared-dependencies && bun ./scripts/run-typescript-coverage.mts",
"coverage:report": "bun ./scripts/coverage-report.mts",
"coverage:check": "bun ./scripts/coverage-report.mts --check",
"coverage:fast": "bun run coverage:typescript && bun ./scripts/coverage-report.mts --typescript-only --check",
"coverage:full": "bun run coverage:typescript && bun run coverage:contracts:bytecode && bun run coverage:check",
"coverage": "bun run coverage:fast",
"docs:check-html": "bun ./scripts/check-docs-html.mts",
"docs:build-charts": "bun ./scripts/build-doc-charts.mts",
"docs:build-runtime": "bun ./scripts/build-doc-runtime.mts",
"docs:build-index": "bun ./scripts/build-docs-index.mts",
"docs:check-charts": "bun ./scripts/check-doc-charts.mts",
"docs:check-runtime": "bun ./scripts/check-doc-runtime.mts",
"docs:check-index": "bun ./scripts/build-docs-index.mts --check",
"docs:check-examples": "bun ./scripts/check-docs-examples.mts",
"docs:check-content": "bun ./scripts/check-docs-content.mts",
"docs:check-contract-reference": "bun ./scripts/generate-contract-interaction-reference.mts --check",
"docs:check-reference-values": "bun ./scripts/check-docs-reference-values.mts",
"docs:generate-contract-reference": "bun ./scripts/generate-contract-interaction-reference.mts",
"docs:check": "bun run tsc:docs && bun run docs:check-html && bun run docs:check-charts && bun run docs:check-runtime && bun run docs:check-contract-reference && bun run docs:check-index && bun run docs:check-examples && bun run docs:check-content && bun run docs:check-reference-values && bun run check:mainnet-deployment:generated",
"docs:check:current": "bun run tsc:docs && bun run docs:check-html && bun run docs:check-charts && bun run docs:check-runtime && bun run docs:check-contract-reference && bun run docs:check-index && bun run docs:check-examples && bun run docs:check-content && bun run docs:check-reference-values && bun run check:mainnet-deployment:current",
"check:static": "bunx @biomejs/biome check package.json .prettierrc.json shared/package.json ui/package.json solidity/package.json tsconfig.scripts.json bun-test-setup*.ts README.md AGENTS.md .codex/review-contract.md docs scripts shared/ts solidity/ts ui/AGENTS.md ui/ts ui/build ui/dev-server.ts ui/css && bun scripts/lint-no-bare-catch.mts && bun scripts/lint-no-signal-wrapper-comparisons.mts && bun scripts/lint-no-direct-viem-imports.mts && bun scripts/lint-no-nested-solidity-ternaries.mts && bun run lint:ui-layer-boundaries",
"check:repository": "bun run check:unit-terminology && bun run check:uniswap-deployment-artifact && bun run lint:ui-strings && bun run check:agents && bun run check:html-structure && bun run check:html-format && bun run check:solidity-format",
"check": "bun run check:static && bun run docs:check && bun run check:repository",
"check:ci:current": "bun run check:static && bun run docs:check:current && bun run check:repository",
"check:changed": "bun scripts/check-changed.mts && bun run lint:ui-strings && bun run check:agents",
"check:agents": "bun scripts/check-agent-configs.mts",
"check:html-structure": "bun scripts/check-html-structure.mts",
"check:html-format": "bun scripts/check-html-format.mts",
"check:solidity-format": "bun scripts/format-solidity-one-line.mts --check",
"lint": "bun x @biomejs/biome check package.json .prettierrc.json shared/package.json tsconfig.scripts.json bun-test-setup*.ts scripts shared/ts solidity/ts ui/ts ui/build ui/dev-server.ts && bun scripts/lint-no-bare-catch.mts && bun scripts/lint-no-signal-wrapper-comparisons.mts && bun scripts/lint-no-direct-viem-imports.mts && bun scripts/lint-no-nested-solidity-ternaries.mts && bun run lint:solidity-one-line",
"lint:viem-imports": "bun scripts/lint-no-direct-viem-imports.mts",
"lint:ui-layer-boundaries": "bun scripts/lint-ui-layer-boundaries.mts",
"lint:fix": "bun x @biomejs/biome check --write package.json .prettierrc.json shared/package.json tsconfig.scripts.json bun-test-setup*.ts scripts shared/ts solidity/ts ui/ts ui/build ui/dev-server.ts && bun run lint:solidity-one-line:fix",
"lint:bare-catch": "bun scripts/lint-no-bare-catch.mts",
"lint:signals": "bun scripts/lint-no-signal-wrapper-comparisons.mts",
"lint:solidity-ternaries": "bun scripts/lint-no-nested-solidity-ternaries.mts",
"lint:solidity-one-line": "bun scripts/format-solidity-one-line.mts --check",
"lint:solidity-one-line:fix": "bun scripts/format-solidity-one-line.mts --write",
"lint:ui-strings": "bun scripts/lint-ui-tsx-strings.mts",
"format": "bunx @biomejs/biome format --write package.json .prettierrc.json shared/package.json ui/package.json solidity/package.json tsconfig.scripts.json bun-test-setup*.ts README.md AGENTS.md .codex/review-contract.md docs scripts shared/ts ui/AGENTS.md ui/tsconfig.json ui/build ui/dev-server.ts solidity/ts ui/ts ui/css && bun run format:html && bun run format:solidity",
"format:check": "bunx @biomejs/biome format package.json .prettierrc.json shared/package.json ui/package.json solidity/package.json tsconfig.scripts.json bun-test-setup*.ts README.md AGENTS.md .codex/review-contract.md docs scripts shared/ts ui/AGENTS.md ui/tsconfig.json ui/build ui/dev-server.ts solidity/ts ui/ts ui/css && bun run check:html-format && bun run check:solidity-format",
"format:solidity": "bun scripts/format-solidity-one-line.mts --write",
"trading:setup": "cd trading && bun run setup",
"trading:compile": "cd trading && bun run compile",
"trading:test": "cd trading && bun run test",
"trading:check": "cd trading && bun run check",
"trading:ui:build": "cd trading && bun run ui:build",
"trading:ui:serve": "cd trading && bun run ui:serve",
"format:html": "bun scripts/format-html-prose.mts",
"knip": "bun x knip",
"knip:fix": "bun x knip --fix",
"ui:publish:ipfs": "docker build --target publisher -f ui/Dockerfile . -t zoltar-ui-publisher && docker run --rm --add-host=host.docker.internal:host-gateway zoltar-ui-publisher",
"anvil:docker": "docker run --rm --name anvil -p 8545:8545 --entrypoint anvil ghcr.io/foundry-rs/foundry:v1.5.1 --host 0.0.0.0 --port 8545 --block-base-fee-per-gas 0 --gas-price 0 --no-priority-fee --chain-id 1"
},
"knip": {
"ignoreFiles": [
"docs/charts/virtualModules.d.ts"
],
"ignore": [
"ui/build/workers.mts",
"ui/ts/index.dev.ts",
"ui/ts/liveReload.ts"
]
}
}