Skip to content

Commit

Permalink
Add electra type
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Oct 29, 2024
1 parent cf3e1f0 commit 84de62c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/simpleserialize.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@babel/runtime": "^7.14.6",
"@babel/types": "^7.14.5",
"@chainsafe/ssz": "0.16.0",
"@lodestar/types": "^1.14.0",
"@lodestar/types": "^1.23.0",
"bn.js": "^5.2.0",
"bulma": "^0.9.3",
"core-js": "^3.15.2",
Expand Down
9 changes: 4 additions & 5 deletions packages/simpleserialize.com/src/util/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ let {
bellatrix,
capella,
deneb,
allForks,
allForksBlinded,
allForksBlobs,
allForksExecution,
allForksLightClient,
electra,
sszTypesFor,
...primitive
} = ssz;

Expand All @@ -29,6 +26,7 @@ altair = patchSszTypes(altair);
bellatrix = patchSszTypes(bellatrix);
capella = patchSszTypes(capella);
deneb = patchSszTypes(deneb);
electra = patchSszTypes(electra);
primitive = patchSszTypes(primitive);

export const forks = {
Expand All @@ -37,6 +35,7 @@ export const forks = {
bellatrix: {...phase0, ...altair, ...bellatrix, ...primitive},
capella: {...phase0, ...altair, ...bellatrix, ...capella, ...primitive},
deneb: {...phase0, ...altair, ...bellatrix, ...capella, ...deneb, ...primitive},
electra: {...phase0, ...altair, ...bellatrix, ...capella, ...deneb, ...electra, ...primitive},
} as Record<string, Record<string, Type<unknown>>>;

export type ForkName = keyof typeof forks;
Expand Down
32 changes: 12 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@
"@babel/helper-validator-identifier" "^7.24.5"
to-fast-properties "^2.0.0"

"@chainsafe/as-sha256@^0.4.1", "@chainsafe/as-sha256@^0.4.2":
"@chainsafe/as-sha256@^0.4.2":
version "0.4.2"
resolved "https://registry.yarnpkg.com/@chainsafe/as-sha256/-/as-sha256-0.4.2.tgz#21ad1371e2245e430c1a554a05f10d333c6f42cc"
integrity sha512-HJ8GZBRjLeWtRsAXf3EbNsNzmTGpzTFjfpSf4yHkLYC+E52DhT6hwz+7qpj6I/EmFzSUm5tYYvT9K8GZokLQCQ==
Expand Down Expand Up @@ -1281,7 +1281,7 @@
"@chainsafe/hashtree-linux-arm64-gnu" "1.0.1"
"@chainsafe/hashtree-linux-x64-gnu" "1.0.1"

"@chainsafe/persistent-merkle-tree@^0.7.1", "@chainsafe/persistent-merkle-tree@^0.7.2":
"@chainsafe/persistent-merkle-tree@^0.7.2":
version "0.7.2"
resolved "https://registry.yarnpkg.com/@chainsafe/persistent-merkle-tree/-/persistent-merkle-tree-0.7.2.tgz#f0ef91daf36752f827432333cbc965f4bf6e750e"
integrity sha512-BUAqrmSUmy6bZhXxnhpR+aYoEDdCeS1dQvq/aje0CDEB14ZHF9UVN2mL9MolOD0ANUiP1OaPG3KfVBxvuW8aTg==
Expand All @@ -1297,14 +1297,6 @@
"@chainsafe/as-sha256" "^0.4.2"
"@chainsafe/persistent-merkle-tree" "^0.7.2"

"@chainsafe/ssz@^0.15.1":
version "0.15.1"
resolved "https://registry.yarnpkg.com/@chainsafe/ssz/-/ssz-0.15.1.tgz#008a711c3bcdc0d207cd4be15108870b0b1c60c0"
integrity sha512-f09UKTyYwWA1nr1BwrwsFpkXMspDDIZtwWXK1pM5mpPMnexmuPVstnN+P0M4YJ2aHcfqJXG7QOqnOwGj5Z7bUw==
dependencies:
"@chainsafe/as-sha256" "^0.4.1"
"@chainsafe/persistent-merkle-tree" "^0.7.1"

"@colors/colors@1.5.0":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
Expand Down Expand Up @@ -1589,18 +1581,18 @@
yargs "17.7.2"
yargs-parser "21.1.1"

"@lodestar/params@^1.18.1":
version "1.18.1"
resolved "https://registry.yarnpkg.com/@lodestar/params/-/params-1.18.1.tgz#9b801abeaa59633dcefaaed82a2021bacca32270"
integrity sha512-IB/7bsiAAMhUqauJPg8vuLPahFZ5Yk2Astu3MH8IUz6ZzX3rbzXLZoQeulInYdbH2mpleyw18lK7re7h0JYR1A==
"@lodestar/params@1.23.0-rc.1":
version "1.23.0-rc.1"
resolved "https://registry.yarnpkg.com/@lodestar/params/-/params-1.23.0-rc.1.tgz#38ca349571ee3b998fabef7e8ddb39dff70191e4"
integrity sha512-QCaImULUlF/GarNu8rH2W0ud+Y5EjDl6m46b3uAp6FY/qQoDBxQLTJqC4cLjL1R++LjT2l9GmPQjndI11/as3Q==

"@lodestar/types@^1.14.0":
version "1.18.1"
resolved "https://registry.yarnpkg.com/@lodestar/types/-/types-1.18.1.tgz#36f297448e0649ec43e4e344de55b23136c63eca"
integrity sha512-P/tCHlvN9/u2N05qWK7Tto4EK+ONz1bbRROnzVdnqxZ/IBQqzfqBO5Cm3WO70+6dulrojp4dfcq9HKhBtmwLRA==
"@lodestar/types@^1.23.0":
version "1.23.0-rc.1"
resolved "https://registry.yarnpkg.com/@lodestar/types/-/types-1.23.0-rc.1.tgz#0a2586c95623e49ac8027edd88b63c270427e15b"
integrity sha512-mEfQS8t7xTXF5H0uZqW4Ims9skfKRDIw8eqi1l1I8gqIvqN81h/zPGXIJrYm5DDq2k/AJK86WMT9sNLoKLfOyw==
dependencies:
"@chainsafe/ssz" "^0.15.1"
"@lodestar/params" "^1.18.1"
"@chainsafe/ssz" "^0.18.0"
"@lodestar/params" "1.23.0-rc.1"
ethereum-cryptography "^2.0.0"

"@nicolo-ribaudo/chokidar-2@2.1.8-no-fsevents.3":
Expand Down

0 comments on commit 84de62c

Please sign in to comment.