prysm-pulse/beacon-chain/state/v2
Radosław Kapka 8455656597
Use beacon state interfaces instead of concrete structs (#10195)
* return interface from testing/util

* remove usages of v1

* return interface from InitializeFromProto

* return interface from InitializeFromProto

* fix test

* fix interface visibility

* more fixes

* use InitializeFromProtoUnsafe in testing/util

* return early error from mock

* v2

* fix tests

* remove unnecessary assertion

* use struct in nil state test

* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"

This reverts commit 7d70238a301209f6dbfc8ff1d81b16e33b0bd67d.

* use struct in sync committee test

* v3

* use InitializeFromProtoUnsafe in mock

* use version information

* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"

This reverts commit 5d5e6f2884d21caec7530c16ad2a0d0d27c44aa1.

* revert changes to ClearPreGenesisData

* fix build error

* remove error from PreGenesisState

* bzl
2022-02-08 09:30:06 +00:00
..
BUILD.bazel Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
deprecated_getters_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
deprecated_getters.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
deprecated_setters_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
deprecated_setters.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
field_roots.go Refactor States To Allow for Single Cached Hasher (#9922) 2021-11-29 16:30:17 +00:00
getters_block_test.go Use field params root length (#10012) 2021-12-14 18:42:05 +00:00
getters_block.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_checkpoint.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
getters_eth1.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
getters_misc.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
getters_participation.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
getters_randao.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_state.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_sync_committee.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
getters_validator_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
getters_validator.go Move ErrNilValidatorsInState from one in each state version to a common one (#10074) 2022-01-18 08:19:20 +00:00
proofs_test.go Initialize Merkle Layers and Recompute Dirty Fields in BeaconState Proofs (#10032) 2022-01-11 17:36:03 +08:00
proofs.go Initialize Merkle Layers and Recompute Dirty Fields in BeaconState Proofs (#10032) 2022-01-11 17:36:03 +08:00
setters_block.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_checkpoint.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_eth1.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_misc.go Add Balance Field Trie (#9793) 2021-11-19 20:01:15 +08:00
setters_participation.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_randao.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_state.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
setters_sync_committee.go Clean Up V2 BeaconState (#9648) 2021-09-23 01:10:25 +00:00
setters_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
setters_validator.go Add Balance Field Trie (#9793) 2021-11-19 20:01:15 +08:00
state_trie_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
state_trie.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
types.go Add Balance Field Trie (#9793) 2021-11-19 20:01:15 +08:00