Skip to content

Commit

Permalink
Bump @chainsafe/ssz to 0.11.0 (#2622)
Browse files Browse the repository at this point in the history
* Bump chainsafe/ssz to 0.11.0

* Try fixing karma

* Add karma aliases

* Add `common` configuration

---------

Co-authored-by: acolytec3 <17355484+acolytec3@users.noreply.github.com>
  • Loading branch information
FrederikBolding and acolytec3 authored Apr 8, 2023
1 parent c83f11b commit e8cf85b
Show file tree
Hide file tree
Showing 13 changed files with 112 additions and 30 deletions.
76 changes: 48 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/block/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ module.exports = function (config) {
acornOptions: {
ecmaVersion: 12,
},
resolve: {
alias: {
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
},
concurrency: 1,
Expand Down
4 changes: 4 additions & 0 deletions packages/blockchain/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ module.exports = function (config) {
resolve: {
alias: {
'bigint-crypto-utils': '../../node_modules/bigint-crypto-utils/dist/bundles/umd.js',
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
Expand Down
5 changes: 5 additions & 0 deletions packages/client/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ module.exports = function (config) {
'../../node_modules/multiformats/cjs/src/hashes/identity.js',
'multiformats/hashes/sha2':
'../../node_modules/multiformats/cjs/src/hashes/sha2-browser.js',
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},

transforms: [
require('karma-typescript-es6-transform')({
presets: [['@babel/preset-env', { targets: { chrome: '74' } }]],
Expand Down
8 changes: 8 additions & 0 deletions packages/common/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ module.exports = function (config) {
acornOptions: {
ecmaVersion: 12,
},
resolve: {
alias: {
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
},
concurrency: 1,
Expand Down
4 changes: 4 additions & 0 deletions packages/evm/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module.exports = function (config) {
resolve: {
alias: {
'bigint-crypto-utils': '../../node_modules/bigint-crypto-utils/dist/bundles/umd.js',
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
Expand Down
4 changes: 4 additions & 0 deletions packages/statemanager/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ module.exports = function (config) {
resolve: {
alias: {
'bigint-crypto-utils': '../../node_modules/bigint-crypto-utils/dist/bundles/umd.js',
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
Expand Down
9 changes: 9 additions & 0 deletions packages/trie/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ module.exports = function (config) {
acornOptions: {
ecmaVersion: 12,
},
resolve: {
alias: {
'bigint-crypto-utils': '../../node_modules/bigint-crypto-utils/dist/bundles/umd.js',
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
},
colors: true,
Expand Down
8 changes: 8 additions & 0 deletions packages/tx/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ module.exports = function (config) {
acornOptions: {
ecmaVersion: 12,
},
resolve: {
alias: {
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
},
browsers: ['FirefoxHeadless', 'ChromeHeadless'],
Expand Down
2 changes: 1 addition & 1 deletion packages/tx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"tsc": "../../config/cli/ts-compile.sh"
},
"dependencies": {
"@chainsafe/ssz": "^0.10.2",
"@chainsafe/ssz": "^0.11.0",
"@ethereumjs/common": "^3.1.1",
"@ethereumjs/rlp": "^4.0.1",
"@ethereumjs/util": "^8.0.5",
Expand Down
8 changes: 8 additions & 0 deletions packages/util/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ module.exports = function (config) {
acornOptions: {
ecmaVersion: 12,
},
resolve: {
alias: {
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
tsconfig: './tsconfig.json',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"tsc": "../../config/cli/ts-compile.sh"
},
"dependencies": {
"@chainsafe/ssz": "^0.10.2",
"@chainsafe/ssz": "^0.11.0",
"@ethereumjs/rlp": "^4.0.1",
"ethereum-cryptography": "^1.1.2"
},
Expand Down
4 changes: 4 additions & 0 deletions packages/vm/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module.exports = function (config) {
resolve: {
alias: {
'bigint-crypto-utils': '../../node_modules/bigint-crypto-utils/dist/bundles/umd.js',
'@chainsafe/persistent-merkle-tree/hasher':
'../../node_modules/@chainsafe/persistent-merkle-tree/lib/hasher/noble.js',
'@chainsafe/as-sha256/hashObject':
'../../node_modules/@chainsafe/as-sha256/lib/hashObject.js',
},
},
},
Expand Down

0 comments on commit e8cf85b

Please sign in to comment.