Skip to content

Commit

Permalink
feat: print gindices for Electra hard-fork
Browse files Browse the repository at this point in the history
  • Loading branch information
madlabman committed Dec 17, 2024
1 parent 0aa6822 commit b7486a5
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"gindex": "node script/gindex.mjs"
},
"dependencies": {
"@lodestar/types": "^1.18.1",
"@lodestar/types": "^1.23.1",
"@openzeppelin/contracts": "5.0.2",
"@openzeppelin/contracts-upgradeable": "5.0.2",
"@openzeppelin/merkle-tree": "^1.0.6",
Expand Down
4 changes: 2 additions & 2 deletions script/gindex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { concatGindices } from "@chainsafe/persistent-merkle-tree";
import { ssz } from "@lodestar/types";

for (const fork of ["deneb"]) {
/** @type ssz.deneb */
for (const fork of ["deneb", "electra"]) {
/** @type ssz.deneb|ssz.electra */
const Fork = ssz[fork];

{
Expand Down
92 changes: 66 additions & 26 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,70 @@ __metadata:
languageName: node
linkType: hard

"@chainsafe/as-sha256@npm:^0.4.1, @chainsafe/as-sha256@npm:^0.4.2":
version: 0.4.2
resolution: "@chainsafe/as-sha256@npm:0.4.2"
checksum: 10c0/af1abf43340e93fb67b570b85dc88e71c97d00dbc3e68f1d54fe3bb0d99fd8ad7f9047f3f1aeb4c27900698e6653382e123c58b888b0c3946afb9f2067e35c55
"@chainsafe/as-sha256@npm:0.5.0":
version: 0.5.0
resolution: "@chainsafe/as-sha256@npm:0.5.0"
checksum: 10c0/53c4249940d824d593b89196c14e2a0f75dc13080d1c4dc5c9b0a04ee40a06185c2811f997620090decbe24c3e69ea23b0e52780671721a848e7ba1186a0f986
languageName: node
linkType: hard

"@chainsafe/persistent-merkle-tree@npm:^0.7.1":
version: 0.7.2
resolution: "@chainsafe/persistent-merkle-tree@npm:0.7.2"
"@chainsafe/hashtree-darwin-arm64@npm:1.0.1":
version: 1.0.1
resolution: "@chainsafe/hashtree-darwin-arm64@npm:1.0.1"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard

"@chainsafe/hashtree-linux-arm64-gnu@npm:1.0.1":
version: 1.0.1
resolution: "@chainsafe/hashtree-linux-arm64-gnu@npm:1.0.1"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard

"@chainsafe/hashtree-linux-x64-gnu@npm:1.0.1":
version: 1.0.1
resolution: "@chainsafe/hashtree-linux-x64-gnu@npm:1.0.1"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard

"@chainsafe/hashtree@npm:1.0.1":
version: 1.0.1
resolution: "@chainsafe/hashtree@npm:1.0.1"
dependencies:
"@chainsafe/as-sha256": "npm:^0.4.2"
"@chainsafe/hashtree-darwin-arm64": "npm:1.0.1"
"@chainsafe/hashtree-linux-arm64-gnu": "npm:1.0.1"
"@chainsafe/hashtree-linux-x64-gnu": "npm:1.0.1"
dependenciesMeta:
"@chainsafe/hashtree-darwin-arm64":
optional: true
"@chainsafe/hashtree-linux-arm64-gnu":
optional: true
"@chainsafe/hashtree-linux-x64-gnu":
optional: true
checksum: 10c0/fb2589727f222875f2e89459424809782717ce1e24a60c08ca413874134f219061a0389114a14c1fcb66a81ea34f3511a4d5916d8094f7961137fc6230d3c53f
languageName: node
linkType: hard

"@chainsafe/persistent-merkle-tree@npm:0.8.0":
version: 0.8.0
resolution: "@chainsafe/persistent-merkle-tree@npm:0.8.0"
dependencies:
"@chainsafe/as-sha256": "npm:0.5.0"
"@chainsafe/hashtree": "npm:1.0.1"
"@noble/hashes": "npm:^1.3.0"
checksum: 10c0/23b3afb8435c2f294c53c2116b32ad3c0998c1e9012165bfc2d26c9a024a61948b36762a1219150fb6beac627f69b5cb8bb81e1766ef779c17e97a4dd0cc8e19
checksum: 10c0/5fd2567c815f21540195f825b58751220a66849946b6333df40de5969f062a556240bc0679eeb8b1bf69d807c2ba10a2c8052e71ef62b0322bcc56e18b242d3a
languageName: node
linkType: hard

"@chainsafe/ssz@npm:^0.15.1":
version: 0.15.1
resolution: "@chainsafe/ssz@npm:0.15.1"
"@chainsafe/ssz@npm:^0.18.0":
version: 0.18.0
resolution: "@chainsafe/ssz@npm:0.18.0"
dependencies:
"@chainsafe/as-sha256": "npm:^0.4.1"
"@chainsafe/persistent-merkle-tree": "npm:^0.7.1"
checksum: 10c0/59115f52606ed1240e4be9a935cbe4133a34cfd46a43f1ce9e5019f52dd085de730451fcd29ca3e4e018637acaa6fd9189f52f517ea5853801b15698fcbde7ec
"@chainsafe/as-sha256": "npm:0.5.0"
"@chainsafe/persistent-merkle-tree": "npm:0.8.0"
checksum: 10c0/fd99ef7f98d04d1b1cd8b865a3f4861953ecd6946923073a65184c02f7e699ee6cc6bd62c4f690b70e7af91b8118f972671d2ecf583f92a0c8144ba5b96b549e
languageName: node
linkType: hard

Expand Down Expand Up @@ -273,21 +313,21 @@ __metadata:
languageName: node
linkType: hard

"@lodestar/params@npm:^1.18.1":
version: 1.18.1
resolution: "@lodestar/params@npm:1.18.1"
checksum: 10c0/c86db04b6351acdbeae315c51346660aa4b4cb5c89ce13a3ecf0022a2f3e5f53e188756fa7151ad4ab858f4c0089a5feed235b1798525bd2e39ce9ae64cfcbdf
"@lodestar/params@npm:^1.23.1":
version: 1.23.1
resolution: "@lodestar/params@npm:1.23.1"
checksum: 10c0/bffe4125990f2e1e6a4cba317a681f93743db83f3fc0773b1c1eadc2d3b6f787678890f44271258c8de8f9a12a56ad878a45a6f786e2eb5d28e264c25b6c5f84
languageName: node
linkType: hard

"@lodestar/types@npm:^1.18.1":
version: 1.18.1
resolution: "@lodestar/types@npm:1.18.1"
"@lodestar/types@npm:^1.23.1":
version: 1.23.1
resolution: "@lodestar/types@npm:1.23.1"
dependencies:
"@chainsafe/ssz": "npm:^0.15.1"
"@lodestar/params": "npm:^1.18.1"
"@chainsafe/ssz": "npm:^0.18.0"
"@lodestar/params": "npm:^1.23.1"
ethereum-cryptography: "npm:^2.0.0"
checksum: 10c0/7cb118c6ec10969cac72b9f4de1e8809690385fd18e4d249892882139471d6c28a459e178ae326de578f84f9e684fcc915dc8abefd7cc5203a1080ba23aeca99
checksum: 10c0/626da54aca6ff8ce1a3d5b583116edccbb6a85d1d3ec01e43d82b0030cbd50b4a94b4e3781796fe3491c93fa25f55273bde67b26a34baaee56f7c0401df89b9c
languageName: node
linkType: hard

Expand Down Expand Up @@ -755,7 +795,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "community-staking-module@workspace:."
dependencies:
"@lodestar/types": "npm:^1.18.1"
"@lodestar/types": "npm:^1.23.1"
"@openzeppelin/contracts": "npm:5.0.2"
"@openzeppelin/contracts-upgradeable": "npm:5.0.2"
"@openzeppelin/merkle-tree": "npm:^1.0.6"
Expand Down

0 comments on commit b7486a5

Please sign in to comment.