Skip to content

Commit 0ea1fd2

Browse files
tk-oshrugs
andauthored
feat(monorepo): split indexer into apps and packages (namehash#68)
Co-authored-by: shrugs <[email protected]>
1 parent 64054e1 commit 0ea1fd2

File tree

92 files changed

+1095
-829
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+1095
-829
lines changed

.github/workflows/ci.yml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: CI pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
static-analysis:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: .nvmrc
26+
27+
- name: Audit dependencies
28+
run: pnpm audit --audit-level=low
29+
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Run Biome CI
34+
run: pnpm -r lint:ci
35+
36+
- name: Run TypeScript type checks
37+
run: pnpm -r typecheck
38+
39+
# This will run the dev command in background, wait for
40+
# RUNTIME_CHECK_TIMEOUT_SECONDS seconds, and then kill the process if it
41+
# is still running. If the command does not throw an error within that
42+
# time, the step will exit successfully. If it does throw an error,
43+
# the step will exit and fail the CI pipeline. This runtime check uses
44+
# a pglite database that only lives in the CI environment.
45+
# It will be discarded after the CI run.
46+
- name: Run Ponder runtime integrity checks
47+
working-directory: apps/ensnode
48+
env:
49+
ACTIVE_PLUGINS: eth,base.eth,linea.eth
50+
RPC_URL_1: https://eth.drpc.org
51+
RPC_URL_8453: https://base.drpc.org
52+
RPC_URL_59144: https://linea.drpc.org
53+
RUNTIME_CHECK_TIMEOUT_SECONDS: 10
54+
run: |
55+
pnpm dev -vv &
56+
PID=$!
57+
sleep $RUNTIME_CHECK_TIMEOUT_SECONDS
58+
if ps -p $PID > /dev/null; then
59+
kill $PID
60+
wait $PID || true
61+
exit 0
62+
else
63+
wait $PID
64+
exit $?
65+
fi
66+
unit-tests:
67+
runs-on: ubuntu-latest
68+
69+
steps:
70+
- name: Checkout repository
71+
uses: actions/checkout@v4
72+
73+
- name: Setup pnpm
74+
uses: pnpm/action-setup@v4
75+
76+
- name: Setup Node.js
77+
uses: actions/setup-node@v4
78+
with:
79+
node-version-file: .nvmrc
80+
81+
- name: Install dependencies
82+
run: pnpm install --frozen-lockfile
83+
84+
- name: Run unit tests
85+
run: pnpm -r test

.github/workflows/static-analysis.yml

-40
This file was deleted.

.github/workflows/unit-tests.yml

-31
This file was deleted.

.gitignore

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dependencies
2-
/node_modules
2+
node_modules
33

44
# Debug
55
npm-debug.log*
@@ -13,6 +13,10 @@ yarn-error.log*
1313
# Env files
1414
.env*.local
1515

16+
# Generated files
17+
build
18+
dist
19+
1620
# Ponder
17-
/generated/
18-
/.ponder/
21+
generated
22+
ponder

.vscode/settings.json

+4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"editor.defaultFormatter": "biomejs.biome",
3+
"editor.formatOnSave": true,
34
"editor.codeActionsOnSave": {
45
"source.organizeImports.biome": "explicit",
56
"quickfix.biome": "explicit"
7+
},
8+
"[json]": {
9+
"editor.defaultFormatter": "biomejs.biome"
610
}
711
}

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 NameHash
3+
Copyright (c) 2025 NameHash
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

0 commit comments

Comments
 (0)