Skip to content

Commit

Permalink
all: cross fork monolith-types (#9)
Browse files Browse the repository at this point in the history
* all: plumbing to get fork-monolith support in

* all: hack together the monolith ssz generator

* cmd/sszgen: monolith code generator + polishes + tests

* cmd/sszgen: fix a formatting error

* tests: regenerate ssz codecs to fix merge issues

* tests: fix another merge issue

* various wip snippets for integration testing

* ssz, tests: support operating on zero values across the board

* ssz, tests: rework monolith API to support clearing pointer fields

* cmd, ssz, tests: implement a bunch more monolithic type support

* ssz, tests: fix weird false failure reporting

* cmd, ssz, tests: add a fe wmore missing monolith field encoders
  • Loading branch information
karalabe authored Sep 17, 2024
1 parent e314ffd commit 15a90a9
Show file tree
Hide file tree
Showing 92 changed files with 3,857 additions and 587 deletions.
39 changes: 39 additions & 0 deletions cmd/sszgen/forks.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// ssz: Go Simple Serialize (SSZ) codec library
// Copyright 2024 ssz Authors
// SPDX-License-Identifier: BSD-3-Clause

package main

// forkMapping maps fork names to fork values. This is used internally by the
// ssz codec generator to convert tags to values.
var forkMapping = map[string]string{
"unknown": "Unknown",
"frontier": "Frontier",
"homestead": "Homestead",
"dao": "DAO",
"tangerine": "Tangerine",
"spurious": "Spurious",
"byzantium": "Byzantium",
"constantinople": "Constantinople",
"istanbul": "Istanbul",
"muir": "Muir",
"phase0": "Phase0",
"berlin": "Berlin",
"london": "London",
"altair": "Altair",
"arrow": "Arrow",
"gray": "Gray",
"bellatrix": "Bellatrix",
"paris": "Paris",
"merge": "Merge",
"shapella": "Shapella",
"shanghai": "Shanghai",
"capella": "Capella",
"dencun": "Dencun",
"cancun": "Cancun",
"deneb": "Deneb",
"pectra": "Pectra",
"prague": "Prague",
"electra": "Electra",
"future": "Future",
}
Loading

0 comments on commit 15a90a9

Please sign in to comment.