Skip to content
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

Use @lodestar/prover for the transaction verification #63

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ const webpack = require("webpack");

module.exports = {
babel: {
plugins: [
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-optional-chaining",
],
plugins: ["@babel/plugin-proposal-nullish-coalescing-operator", "@babel/plugin-proposal-optional-chaining"],
},
webpack: {
configure: {
target: ["web"],
module: {
exprContextCritical: false, // turns off Critical dependency: the request of a dependency is an expression error
},
Expand All @@ -17,7 +15,7 @@ module.exports = {
},
resolve: {
fallback: {
'@chainsafe/blst': false, // @chainsafe/blst is a peer dependency which is not needed in a browser environment
"@chainsafe/blst": false, // @chainsafe/blst is a peer dependency which is not needed in a browser environment
http: require.resolve("stream-http"),
https: require.resolve("https-browserify"),
crypto: false,
Expand All @@ -27,16 +25,17 @@ module.exports = {
path: false,
zlib: false,
fs: false
},
}
},
},
plugins: [
new webpack.DefinePlugin({
process: { argv: [] },
process: {argv: []},
}),
new webpack.ProvidePlugin({
Buffer: ["buffer", "Buffer"],
}),
new webpack.LoaderTargetPlugin('web'),
],
},
};
36 changes: 26 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@
},
"dependencies": {
"@chainsafe/bls": "7.1.1",
"@lodestar/api": "^1.9.2",
"@lodestar/config": "^1.9.2",
"@lodestar/light-client": "^1.9.2",
"@lodestar/params": "^1.9.2",
"@lodestar/types": "^1.9.2",
"@lodestar/utils": "^1.9.2",
"@chainsafe/persistent-merkle-tree": "^0.6.1",
"@chainsafe/ssz": "^0.10.2",
"@ethereumjs/statemanager": "^1.0.0-beta.1",
"@ethersproject/abi": "^5.6.0",
"@lodestar/api": "^1.9.1",
"@lodestar/config": "^1.9.1",
"@lodestar/light-client": "^1.9.1",
"@lodestar/params": "^1.9.1",
"@lodestar/prover": "next",
"@lodestar/types": "^1.9.1",
"@lodestar/utils": "^1.9.1",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
Expand Down Expand Up @@ -61,9 +62,9 @@
"last 1 safari version"
],
"devDependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@craco/craco": "^6.4.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@craco/craco": "^7.1.0",
"@types/lodash": "^4.14.177",
"@typescript-eslint/parser": "^5.13.0",
"eslint": "^7.14.0",
Expand All @@ -73,6 +74,21 @@
"prettier": "^2.5.1",
"react-scripts": "5.0.1",
"react-snap": "^1.23.0",
"ts-node": "^10.4.0"
"ts-node": "^10.4.0",
"webpack-cli": "^5.1.4"
},
"overrides": {
"webpack": "^5.88.1",
"@lodestar/prover@next" : {
"@lodestar/api": {
"cross-fetch": "3.1.5"
},
"@lodestar/light-client": {
"cross-fetch": "3.1.5"
}
}
},
"resolutions": {
"@lodestar/prover/**/cross-fetch": "3.1.5"
}
}
Loading