Skip to content

Commit c45b809

Browse files
Cleanup payload types (#3675)
* Add transparent support * Add `Config` struct * Deprecate `enum_behaviour` * Partially remove enum_behaviour from project * Revert "Partially remove enum_behaviour from project" This reverts commit 46ffb7f. * Revert "Deprecate `enum_behaviour`" This reverts commit 89b64a6. * Add `struct_behaviour` * Tidy * Move tests into `ssz_derive` * Bump ssz derive * Fix comment * newtype transaparent ssz * use ssz transparent and create macros for per fork implementations * use superstruct map macros Co-authored-by: Paul Hauner <[email protected]>
1 parent d8a49aa commit c45b809

File tree

25 files changed

+979
-1058
lines changed

25 files changed

+979
-1058
lines changed

Cargo.lock

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

beacon_node/beacon_chain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ slot_clock = { path = "../../common/slot_clock" }
3333
eth2_hashing = "0.3.0"
3434
eth2_ssz = "0.4.1"
3535
eth2_ssz_types = "0.2.2"
36-
eth2_ssz_derive = "0.3.0"
36+
eth2_ssz_derive = "0.3.1"
3737
state_processing = { path = "../../consensus/state_processing" }
3838
tree_hash = "0.4.1"
3939
types = { path = "../../consensus/types" }

beacon_node/eth1/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ hex = "0.4.2"
2121
types = { path = "../../consensus/types"}
2222
merkle_proof = { path = "../../consensus/merkle_proof"}
2323
eth2_ssz = "0.4.1"
24-
eth2_ssz_derive = "0.3.0"
24+
eth2_ssz_derive = "0.3.1"
2525
tree_hash = "0.4.1"
2626
parking_lot = "0.12.0"
2727
slog = "2.5.2"

beacon_node/operation_pool/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ parking_lot = "0.12.0"
1313
types = { path = "../../consensus/types" }
1414
state_processing = { path = "../../consensus/state_processing" }
1515
eth2_ssz = "0.4.1"
16-
eth2_ssz_derive = "0.3.0"
16+
eth2_ssz_derive = "0.3.1"
1717
rayon = "1.5.0"
1818
serde = "1.0.116"
1919
serde_derive = "1.0.116"

beacon_node/store/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ leveldb = { version = "0.8.6", default-features = false }
1414
parking_lot = "0.12.0"
1515
itertools = "0.10.0"
1616
eth2_ssz = "0.4.1"
17-
eth2_ssz_derive = "0.3.0"
17+
eth2_ssz_derive = "0.3.1"
1818
types = { path = "../../consensus/types" }
1919
state_processing = { path = "../../consensus/state_processing" }
2020
slog = "2.5.2"

common/eth2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ bytes = "1.0.1"
2121
account_utils = { path = "../../common/account_utils" }
2222
sensitive_url = { path = "../../common/sensitive_url" }
2323
eth2_ssz = "0.4.1"
24-
eth2_ssz_derive = "0.3.0"
24+
eth2_ssz_derive = "0.3.1"
2525
futures-util = "0.3.8"
2626
futures = "0.3.8"
2727
store = { path = "../../beacon_node/store", optional = true }

consensus/cached_tree_hash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
ethereum-types = "0.12.1"
99
eth2_ssz_types = "0.2.2"
1010
eth2_hashing = "0.3.0"
11-
eth2_ssz_derive = "0.3.0"
11+
eth2_ssz_derive = "0.3.1"
1212
eth2_ssz = "0.4.1"
1313
tree_hash = "0.4.1"
1414
smallvec = "1.6.1"

consensus/fork_choice/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ types = { path = "../types" }
1111
state_processing = { path = "../state_processing" }
1212
proto_array = { path = "../proto_array" }
1313
eth2_ssz = "0.4.1"
14-
eth2_ssz_derive = "0.3.0"
14+
eth2_ssz_derive = "0.3.1"
1515
slog = { version = "2.5.2", features = ["max_level_trace", "release_max_level_trace"] }
1616

1717
[dev-dependencies]

consensus/proto_array/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ path = "src/bin.rs"
1111
[dependencies]
1212
types = { path = "../types" }
1313
eth2_ssz = "0.4.1"
14-
eth2_ssz_derive = "0.3.0"
14+
eth2_ssz_derive = "0.3.1"
1515
serde = "1.0.116"
1616
serde_derive = "1.0.116"
1717
serde_yaml = "0.8.13"

consensus/ssz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "Apache-2.0"
1010
name = "ssz"
1111

1212
[dev-dependencies]
13-
eth2_ssz_derive = "0.3.0"
13+
eth2_ssz_derive = "0.3.1"
1414

1515
[dependencies]
1616
ethereum-types = "0.12.1"

0 commit comments

Comments
 (0)