-
Notifications
You must be signed in to change notification settings - Fork 615
feat(blob-lib): make blob lib and fix encoding test flake #11782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
60282ae
feat: move blobs into blob lib
Maddiaa0 4fc3f81
chore: update deps
Maddiaa0 452f4ae
chore: add revert code
Maddiaa0 bed3d51
fmt
Maddiaa0 50c2009
fix: yarn prepare
Maddiaa0 a20eeb1
chore: add eslint
Maddiaa0 1ed4f5a
fmt
Maddiaa0 3322a95
gitignore generted web file
Maddiaa0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,83 @@ | ||
| { | ||
| "name": "@aztec/blob-lib", | ||
| "version": "0.1.0", | ||
| "type": "module", | ||
| "exports": { | ||
| ".": "./dest/index.js" | ||
| }, | ||
| "typedocOptions": { | ||
| "entryPoints": [ | ||
| "./src/index.ts" | ||
| ], | ||
| "name": "Blob Lib", | ||
| "tsconfig": "./tsconfig.json" | ||
| }, | ||
| "scripts": { | ||
| "build": "yarn clean && tsc -b", | ||
| "build:dev": "tsc -b --watch", | ||
| "clean": "rm -rf ./dest .tsbuildinfo", | ||
| "formatting": "run -T prettier --check ./src && run -T eslint ./src", | ||
| "formatting:fix": "run -T eslint --fix ./src && run -T prettier -w ./src", | ||
| "start:dev": "tsc-watch -p tsconfig.json --onSuccess 'yarn start'", | ||
| "start": "node ./dest/index.js", | ||
| "test": "HARDWARE_CONCURRENCY=${HARDWARE_CONCURRENCY:-16} RAYON_NUM_THREADS=${RAYON_NUM_THREADS:-4} NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}" | ||
| }, | ||
| "inherits": [ | ||
| "../package.common.json" | ||
| ], | ||
| "dependencies": { | ||
| "@aztec/foundation": "workspace:^", | ||
| "tslib": "^2.4.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@jest/globals": "^29.5.0", | ||
| "@types/jest": "^29.5.0", | ||
| "@types/node": "^18.14.6", | ||
| "get-port": "^7.1.0", | ||
| "jest": "^29.5.0", | ||
| "ts-node": "^10.9.1", | ||
| "typescript": "^5.0.4" | ||
| }, | ||
| "files": [ | ||
| "dest", | ||
| "src", | ||
| "!*.test.*" | ||
| ], | ||
| "types": "./dest/index.d.ts", | ||
| "jest": { | ||
| "moduleNameMapper": { | ||
| "^(\\.{1,2}/.*)\\.[cm]?js$": "$1" | ||
| }, | ||
| "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", | ||
| "rootDir": "./src", | ||
| "transform": { | ||
| "^.+\\.tsx?$": [ | ||
| "@swc/jest", | ||
| { | ||
| "jsc": { | ||
| "parser": { | ||
| "syntax": "typescript", | ||
| "decorators": true | ||
| }, | ||
| "transform": { | ||
| "decoratorVersion": "2022-03" | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| }, | ||
| "extensionsToTreatAsEsm": [ | ||
| ".ts" | ||
| ], | ||
| "reporters": [ | ||
| "default" | ||
| ], | ||
| "testTimeout": 30000, | ||
| "setupFiles": [ | ||
| "../../foundation/src/jest/setup.mjs" | ||
| ] | ||
| }, | ||
| "engines": { | ||
| "node": ">=18" | ||
| } | ||
| } |
5 changes: 3 additions & 2 deletions
5
...-project/foundation/src/blob/blob.test.ts → yarn-project/blob-lib/src/blob.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "extends": "..", | ||
| "compilerOptions": { | ||
| "outDir": "dest", | ||
| "rootDir": "src", | ||
| "tsBuildInfoFile": ".tsbuildinfo" | ||
| }, | ||
| "include": ["src"], | ||
| "references": [ | ||
| { | ||
| "path": "../foundation" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
yarn-project/circuits.js/src/structs/blobs/blob_public_inputs.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
yarn-project/circuits.js/src/structs/blobs/blob_public_inputs.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /*! | ||
|
Maddiaa0 marked this conversation as resolved.
Outdated
|
||
| * The buffer module from node.js, for the browser. | ||
| * | ||
| * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> | ||
| * @license MIT | ||
| */ | ||
|
|
||
| /*! | ||
| * The buffer module from node.js, for the browser. | ||
| * | ||
| * @author Feross Aboukhadijeh <https://feross.org> | ||
| * @license MIT | ||
| */ | ||
|
|
||
| /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ | ||
|
|
||
| /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ | ||
|
|
||
| /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ | ||
|
|
||
| /** | ||
| * @license | ||
| * Copyright 2019 Google LLC | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.