Skip to content

Commit

Permalink
indexer: add factory mode (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
fracek authored Jul 14, 2024
2 parents 253b046 + 1abfd1a commit 02ccc95
Show file tree
Hide file tree
Showing 21 changed files with 745 additions and 119 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16
- uses: pnpm/action-setup@v2.2.2
- uses: pnpm/action-setup@v4
with:
version: 7.1.7
version: 8.15.5
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand All @@ -38,4 +38,4 @@ jobs:
- name: Run build
run: pnpm build
- name: Run test
run: CI=true pnpm test
run: pnpm test:ci
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16
- uses: pnpm/action-setup@v2.2.2
- uses: pnpm/action-setup@v4
with:
version: 7.1.7
version: 8.15.5
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion examples/indexer/src/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function createIndexerConfig(streamUrl: string) {
},
],
},
transform({ block: { header, logs, transactions } }) {
async transform({ block: { header, logs, transactions } }) {
const ctx = useIndexerContext();
ctx.counter += 1;

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build": "turbo run build --parallel",
"typecheck": "turbo run typecheck --parallel",
"test": "turbo run test",
"test:ci": "turbo run test:ci",
"lint": "turbo run lint --parallel",
"lint:fix": "turbo run lint:fix --parallel",
"format": "turbo run format --parallel",
Expand Down
1 change: 1 addition & 0 deletions packages/beaconchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:proto": "buf generate proto",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:ci": "vitest run",
"lint": "biome check .",
"lint:fix": "pnpm lint --write",
"format": "biome format . --write"
Expand Down
1 change: 1 addition & 0 deletions packages/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:proto": "buf generate proto",
"typecheck": "tsc --noEmit",
"test": "vitest",
"test:ci": "vitest run",
"lint": "biome check .",
"lint:fix": "pnpm lint --write",
"format": "biome format . --write"
Expand Down
1 change: 1 addition & 0 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"typecheck": "tsc --noEmit",
"lint:fix": "pnpm lint --write",
"test": "vitest",
"test:ci": "vitest run",
"format": "biome format . --write"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 02ccc95

Please sign in to comment.