Skip to content

Commit

Permalink
Add deneb to simpleserialize.com
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 committed Mar 29, 2024
1 parent 9cf6991 commit c2f92e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/simpleserialize.com/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@babel/runtime": "^7.14.6",
"@babel/types": "^7.14.5",
"@chainsafe/ssz": "workspace:^",
"@lodestar/types": "^1.7.2",
"@lodestar/types": "^1.14.0",
"bn.js": "^5.2.0",
"bulma": "^0.9.3",
"core-js": "^3.15.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/simpleserialize.com/src/components/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type State = {
userHasEditedInput: boolean;
};

const DEFAULT_FORK = "capella";
const DEFAULT_FORK = "deneb";

class Input extends React.Component<Props, State> {
worker: Worker;
Expand Down
2 changes: 2 additions & 0 deletions packages/simpleserialize.com/src/util/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ phase0 = patchSszTypes(phase0);
altair = patchSszTypes(altair);
bellatrix = patchSszTypes(bellatrix);
capella = patchSszTypes(capella);
deneb = patchSszTypes(deneb);
primitive = patchSszTypes(primitive);

export const forks = {
phase0: {...phase0, ...primitive},
altair: {...phase0, ...altair, ...primitive},
bellatrix: {...phase0, ...altair, ...bellatrix, ...primitive},
capella: {...phase0, ...altair, ...bellatrix, ...capella, ...primitive},
deneb: {...phase0, ...altair, ...bellatrix, ...capella, ...deneb, ...primitive},
} as Record<string, Record<string, Type<unknown>>>;

export type ForkName = keyof typeof forks;
Expand Down

0 comments on commit c2f92e6

Please sign in to comment.