* Update rules_go and fix proto conflicts
* gaz
* Update generated code
* First pass inclusion of using baked states
* more emptypb fixes
* remove testnet genesis files, only embed mainnet
* Refactoring for SaveGenesisData, fix tests that use mainnet config but do not support mainnet genesis values
* a bit more refactoring, load genesis from a file. Needs tests still
* Add method to ensure an embedded genesis file also has the appropriate genesis block
* gofmt
* more clear error
* Check genesis fork version to ensure testnet config matches genesis file
* viz
* test for SaveGenesisData
* More genesis db method tests
* Merge
* Minor tweaks, lint, fmt, etc
* Add more test to genesis db methods
* Revert beacon-chain/state/stateV0/BUILD.bazel
* Update beacon-chain/db/iface/errors.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* PR feedback
* Update beacon-chain/db/kv/genesis.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* fmt.Errorf works better for nil errors
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* update ethereumapis deps
* V1AttToV1Alpha1 migration
* Implementation plus happy path test
* fix root variable names
* Invalid attestation test
* gzl
* mod tidy
* use a single append to concatenate two slices
* remove outdated comment from attestation processing
* invoke ProcessAttestationNoVerifySignature when validating attestations
* implement missing PoolMock members
* use new VerifyAttestationNoVerifySignature function
* Implement SubmitAttesterSlashing in the beacon API
* gzl
* remove migration test rule
* fix BUILD file formatting
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* pool interface and mock
* implementation
* gofmt
* gzl
* Use migration package for slashing mapping
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* update ethereumapis dependency
* span
* initial implementation
* introduce stategen Service interface and MockService
* Include AddStateForSlot function in the mock service
* return states from mock
* add GenesisState to POWChain mock
* populate roots in helper state
* initialize Slot when creating helper state
* tests
* code refactor - extract helper functions
* gzl
* use SetSlot in tests
* handle SetSlot error
* use new testutil's NewBeaconState
* gzl
* go mod tidy
* rename Service to StateManager
* move regex check to helper
* implement StateByStateRoot
* initial implementation
* tests
* refactor code into smaller functions
* gzl
* simplify StateByStateRoot and tests
* Nishant's feedback
* gzl
* handle error in test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
* update ethereumapis dependency
* span
* initial implementation
* introduce stategen Service interface and MockService
* Include AddStateForSlot function in the mock service
* return states from mock
* add GenesisState to POWChain mock
* populate roots in helper state
* initialize Slot when creating helper state
* tests
* code refactor - extract helper functions
* gzl
* use SetSlot in tests
* handle SetSlot error
* use new testutil's NewBeaconState
* gzl
* go mod tidy
* rename Service to StateManager
* move regex check to helper
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Implement GetSpec in the config API
* extract map creation
* fix deepsource compliant
* Revert "fix deepsource compliant"
This reverts commit 0c99310cc95c82400370d64a2b95879e9d2cae02.
* use struct tags for api map keys
* remove log
* use spec tag
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Add funnction to retrieve deposit contract's address from powchain
* change bytes.Equal to assert.DeepEqual
* add DepositContractAddress to mocks
* Extract powchain info to a separate struct
* span
* Revert "Extract powchain info to a separate struct"
This reverts commit e01dd5222b2ddc92607391f4b927b099100e03dd.
* implementation + test
* use the correct hexutil library
* read contract address from configuration
* return ETH1 chain ID instead of fork version
* gzl (I hate you)
* remove unused ChainInfoFetcher
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Start Beacon API outline
* Rename to v1
* Add impl
* Change to outline
* Add comments
* Remove unneeded items
* Fix linting
* tidy
* Fix visibility
* go.sum
* Fix deps
* Tidy
* Implement blocks API endpoints
* Add check for interface type and fix pointers
* Fix pointer name
* gaz
* Fix comments
* Fix imports
* Fix analysis
* Add more coverage
* Add coverage and fix errors
* Fix head test
* Fix test remove println
* Fix error text and cleanup
* Change tests to TDD
* Add tests for finalized
* Fix att test
* Fix analysis
* Fix go mo d
* Fix proto
* fix go mod
* Extend testing
* Fix tests
* Move migration to package and test block atts
* Fix migration
* Gaz
* Check for block canonical before returning
* Fix text
* Gaz
* Fix tests
* Fix tests
* Fix canonical
* Fix test again
* Fix tests
* Remove unneeded comment
* Plug in RPC service
* Fix err msg