prysm-pulse/beacon-chain/state/v2
Preston Van Loon c1197d7881
Add static analysis for unsafe uint casting (#10318)
* Add static analysis for unsafe uint casting

* Fix violations of uintcast

* go mod tidy

* Add exclusion to nogo for darwin build

* Add test for math.Int

* Move some things to const so they are assured not to exceed int64

* Self review

* lint

* fix tests

* fix test

* Add init check for non 64 bit OS

* Move new deps from WORKSPACE to deps.bzl

* fix bazel build for go analysis runs

* Update BUILD.bazel

Remove TODO

* add math.AddInt method

* Add new test casts

* Add case where builtin functions and declared functions are covered

* Fix new findings

* cleanup

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-11 09:34:30 +00:00
..
BUILD.bazel Native state feature flag (#10232) 2022-02-14 12:33:02 +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 Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08: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 Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +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 Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_sync_committee.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_test.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_validator_test.go Refactor for DRY state getters_validator_test and getters_test (#10117) 2022-02-11 14:48:29 +08:00
getters_validator.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +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 Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00: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 Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
types.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00