Skip to content

Commit d8b69b5

Browse files
committed
Merge branch 'develop' into feature/st-prover-3
# Conflicts: # packages/protocol/test/BlockProver.test.ts # packages/sequencer/src/worker/worker/LocalTaskWorkerModule.ts
2 parents b52ebea + 4ecf421 commit d8b69b5

Some content is hidden

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

42 files changed

+310
-179
lines changed

.github/workflows/pull-request-develop.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v3
1919
- uses: actions/setup-node@v3
2020
with:
21-
node-version: 18
21+
node-version: 22.9.0
2222
# This only caches ~/.npm, therefore each subsequent
2323
# job needs to run `npm ci` to install deps from npm cache
2424
# alternative is to cache `node_modules` directly
@@ -39,7 +39,7 @@ jobs:
3939
- uses: actions/checkout@v3
4040
- uses: actions/setup-node@v3
4141
with:
42-
node-version: 18
42+
node-version: 22.9.0
4343
cache: npm
4444

4545
- name: "Install dependencies"
@@ -57,7 +57,7 @@ jobs:
5757
- uses: actions/checkout@v3
5858
- uses: actions/setup-node@v3
5959
with:
60-
node-version: 18
60+
node-version: 22.9.0
6161
cache: npm
6262

6363
- name: "Install dependencies"
@@ -80,7 +80,7 @@ jobs:
8080
- uses: actions/checkout@v3
8181
- uses: actions/setup-node@v3
8282
with:
83-
node-version: 18
83+
node-version: 22.9.0
8484
cache: npm
8585

8686
- name: "Install dependencies"
@@ -135,7 +135,7 @@ jobs:
135135
- uses: actions/checkout@v3
136136
- uses: actions/setup-node@v3
137137
with:
138-
node-version: 18
138+
node-version: 22.9.0
139139
cache: npm
140140

141141
- name: "Install dependencies"
@@ -145,7 +145,7 @@ jobs:
145145
run: npm run build
146146

147147
- name: "Migrate DB"
148-
run: npm run migrate
148+
run: npm run prisma:migrate
149149

150150
- name: "Wait for lightnet readiness"
151151
uses: o1-labs/wait-for-mina-network-action@v1

nx.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"options": {
66
"cacheableOperations": [
77
"build",
8+
"prisma:generate",
89
"lint",
910
"test",
1011
"integration"
@@ -13,6 +14,12 @@
1314
}
1415
},
1516
"targetDefaults": {
17+
"prisma:generate": {
18+
"inputs": [
19+
"{projectRoot}/package.json",
20+
"{projectRoot}/prisma/**/*"
21+
]
22+
},
1623
"build": {
1724
"dependsOn": [
1825
"^build"

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
"type": "module",
66
"scripts": {
77
"dev": "npx lerna run dev",
8-
"build": "npx lerna run build",
8+
"build": "npm run prisma:generate && lerna run build",
99
"build:clean": "npx nx reset && npm run build",
1010
"build-docker": "docker build -t protokit-base -f ./packages/deployment/docker/base/Dockerfile .",
1111
"lint": "npx lerna run lint",
1212
"lint:staged": "eslint",
1313
"test": "npx lerna run test -- --passWithNoTests",
14-
"test:ci": "npx lerna run test -- --passWithNoTests --forceExit",
15-
"test:integration": "npx lerna run test:integration -- --passWithNoTests --forceExit",
14+
"test:ci": "npx lerna run test --concurrency=1 -- --passWithNoTests --forceExit",
15+
"test:integration": "npx lerna run test:integration --concurrency=1 -- --passWithNoTests --forceExit",
1616
"test:watch": "npx lerna run test:watch",
17-
"migrate": "npx lerna run prisma-migrate",
18-
"prisma-generate": "npx lerna run prisma-generate",
17+
"prisma:migrate": "npx lerna run prisma:migrate",
18+
"prisma:generate": "npx lerna run prisma:generate",
1919
"commit": "cz",
2020
"publish:canary": "npx lerna publish prerelease --no-private --exact --yes --canary --preid develop --dist-tag latest --loglevel verbose --force-git-tag --force-publish"
2121
},

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc -p tsconfig.json",
99
"dev": "tsc -p tsconfig.json --watch",
1010
"lint": "eslint ./src ./test",
11-
"test:file": "node --experimental-vm-modules --experimental-wasm-modules --experimental-wasm-threads ../../node_modules/jest/bin/jest.js",
11+
"test:file": "node --experimental-vm-modules --experimental-wasm-modules ../../node_modules/jest/bin/jest.js",
1212
"test": "npm run test:file -- ./test/**",
1313
"test:watch": "npm run test:file -- ./test/** --watch"
1414
},

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc -p tsconfig.json",
99
"dev": "tsc -p tsconfig.json --watch",
1010
"lint": "eslint ./src ./test",
11-
"test:file": "node --experimental-vm-modules --experimental-wasm-modules --experimental-wasm-threads ../../node_modules/jest/bin/jest.js",
11+
"test:file": "node --experimental-vm-modules --experimental-wasm-modules ../../node_modules/jest/bin/jest.js",
1212
"test": "npm run test:file -- ./test/**",
1313
"test:watch": "npm run test:file -- ./test/** --watch"
1414
},

packages/common/src/config/ModuleContainer.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
DependencyContainer,
55
Frequency,
66
InjectionToken,
7-
instancePerContainerCachingFactory,
7+
instanceCachingFactory,
88
isClassProvider,
99
isFactoryProvider,
1010
isTokenProvider,
@@ -417,9 +417,7 @@ export class ModuleContainer<
417417
// this enables us to have a singletoned factory
418418
// that returns the same instance for each resolve
419419
this.container.register(key, {
420-
useFactory: instancePerContainerCachingFactory(
421-
declaration.useFactory
422-
),
420+
useFactory: instanceCachingFactory(declaration.useFactory),
423421
});
424422
} else if (isClassProvider(declaration)) {
425423
this.container.register(key, declaration, {

packages/common/test/zkProgrammable/ZkProgrammable.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ import { Field, Struct, Proof, ZkProgram } from "o1js";
66
import {
77
MOCK_PROOF,
88
provableMethod,
9-
} from "../../src/zkProgrammable/provableMethod";
10-
import {
119
AreProofsEnabled,
1210
CompileArtifact,
1311
MOCK_VERIFICATION_KEY,
1412
ZkProgrammable,
15-
} from "../../src/zkProgrammable/ZkProgrammable";
16-
import { ProvableMethodExecutionContext } from "../../src/zkProgrammable/ProvableMethodExecutionContext";
13+
ProvableMethodExecutionContext,
14+
} from "../../src";
1715

1816
const appChainMock: AreProofsEnabled = {
1917
areProofsEnabled: false,
@@ -86,6 +84,7 @@ class TestProgrammable extends ZkProgrammable<
8684

8785
return [
8886
{
87+
name: program.name,
8988
compile: program.compile.bind(program),
9089
verify: program.verify.bind(program),
9190
analyzeMethods: program.analyzeMethods.bind(program),
@@ -129,6 +128,7 @@ class OtherTestProgrammable extends ZkProgrammable<undefined, void> {
129128

130129
return [
131130
{
131+
name: program.name,
132132
compile: program.compile.bind(program),
133133
verify: program.verify.bind(program),
134134
analyzeMethods: program.analyzeMethods.bind(program),

packages/deployment/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc -p tsconfig.json",
99
"dev": "tsc -p tsconfig.json --watch",
1010
"lint": "eslint ./src ./test",
11-
"test:file": "node --experimental-vm-modules --experimental-wasm-modules --experimental-wasm-threads ../../node_modules/jest/bin/jest.js",
11+
"test:file": "node --experimental-vm-modules --experimental-wasm-modules ../../node_modules/jest/bin/jest.js",
1212
"test": "npm run test:file -- ./test/**",
1313
"test:watch": "npm run test:file -- ./test/** --watch"
1414
},

packages/indexer/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DATABASE_URL=postgresql://admin:password@localhost:5432/protokit?schema=public
1+
INDEXER_DATABASE_URL=postgresql://admin:password@localhost:5432/protokit-indexer?schema=public

packages/indexer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "tsc -p tsconfig.json",
1010
"dev": "tsc -p tsconfig.json --watch",
1111
"lint": "eslint ./src ./test",
12-
"test:file": "node --experimental-vm-modules --experimental-wasm-modules --experimental-wasm-threads ../../node_modules/jest/bin/jest.js",
12+
"test:file": "node --experimental-vm-modules --experimental-wasm-modules ../../node_modules/jest/bin/jest.js",
1313
"test": "npm run test:file -- ./src/** ./test/**",
1414
"test:watch": "npm run test:file -- ./src/** ./test/** --watch",
1515
"prisma:generate": "prisma generate --schema=./prisma/schema.prisma",

0 commit comments

Comments
 (0)