Skip to content

Commit 414a793

Browse files
spypsyludamad
andauthored
Adding foundation to bb.js (#274)
* cleaning up bb.js deps * update bb structure to use workspaces * remove foundation .yarn/cache * chore: don't bundle .yalc * Update readme * chore: modularize bb (#271) * chore: modularize ts * chore: reformat * merge * remove yalc * Unbundle tsbuildinfo --------- Co-authored-by: ludamad <[email protected]> Co-authored-by: ludamad <[email protected]>
1 parent 63b580d commit 414a793

File tree

202 files changed

+7264
-4257
lines changed

Some content is hidden

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

202 files changed

+7264
-4257
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
.vscode
22
result
3+
node_modules
4+
.yarn/cache
5+
.yarn/install-state.gz
6+
ts/dest
7+
.tsbuildinfo

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "foundation"]
2+
path = foundation
3+
url = [email protected]:AztecProtocol/foundation.git

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 28 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.4.1.cjs

Lines changed: 873 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins:
2+
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
3+
spec: '@yarnpkg/plugin-workspace-tools'
4+
5+
# note that pnp is used in CI
6+
nodeLinker: node-modules
7+
yarnPath: .yarn/releases/yarn-3.4.1.cjs

PROJECT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
barretenberg.js

cpp/src/barretenberg/stdlib/primitives/uint/uint.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ template <typename Composer> class stdlib_uint : public testing::Test {
122122
}
123123
};
124124

125-
EXPECT_EQ(expected, a.get_value());
125+
EXPECT_EQ(uint256_t(expected), a.get_value());
126126
auto prover = composer.create_prover();
127127
auto verifier = composer.create_verifier();
128128
plonk::proof proof = prover.construct_proof();

foundation

Submodule foundation added at 003b3a6

package.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "@aztec/barretenberg-workspace",
3+
"packageManager": "[email protected]",
4+
"private": true,
5+
"scripts": {
6+
"docs": "typedoc --out docs/dist && cd docs && yarn serve",
7+
"test": "cd ts && yarn test",
8+
"build": "cd foundation && yarn && yarn build && cd ../ts && yarn build",
9+
"formatting": "cd ts && yarn formatting",
10+
"formatting:fix": "cd ts && yarn formatting:fix"
11+
},
12+
"workspaces": [
13+
"ts",
14+
"foundation"
15+
],
16+
"prettier": "@aztec/foundation/prettier",
17+
"devDependencies": {
18+
"eslint": "^8.21.0",
19+
"eslint-config-prettier": "^8.8.0",
20+
"prettier": "^2.7.1",
21+
"typedoc": "^0.23.26",
22+
"typescript": "^4.9.5"
23+
},
24+
"comments": {
25+
"purpose": "Workspace for barretenberg/ts. Provides dependencies, while allowing ts/ to be cleanly symlinked."
26+
}
27+
}

ts/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require('@rushstack/eslint-patch/modern-module-resolution');
22

33
module.exports = {
4-
extends: ['@aztec/eslint-config'],
4+
extends: ['@aztec/foundation/eslint'],
55
parserOptions: { tsconfigRootDir: __dirname },
66
};

0 commit comments

Comments
 (0)