nimbus-eth2/beacon_chain/rpc
Etan Kissling 9ee134324b
allow `withXxx` to access fork-specific fields (#2943)
So far, `withState` and `withBlck` templates could only be used to have
convenience access to fork-agnostic BeaconState and BeaconBlock fields.
This patch:
- injects an additional `stateFork` constant that allows to use
  `when` expressions to also access Altair and Merge-specific fields.
- introduces a `withStateAndBlck` template to support operating on both
  a `BeaconState` and `BeaconBlock` at a time.
- makes sync committee related functions Merge aware.
- changes a couple if-else trees for forks into case statements so that
  forgotten future forks are promoted to compile-time errors.
2021-10-06 20:05:06 +03:00
..
rest_api.nim Validator key management API (#2755) 2021-10-04 22:08:31 +03:00
rest_beacon_api.nim allow `withXxx` to access fork-specific fields (#2943) 2021-10-06 20:05:06 +03:00
rest_config_api.nim Number of REST fixes. (#2961) 2021-10-06 15:43:03 +02:00
rest_debug_api.nim allow `withXxx` to access fork-specific fields (#2943) 2021-10-06 20:05:06 +03:00
rest_event_api.nim REST /eth/v1/events API call implementation. (#2878) 2021-09-22 14:17:15 +02:00
rest_key_management_api.nim Validator key management API (#2755) 2021-10-04 22:08:31 +03:00
rest_nimbus_api.nim cleanups and fixes (#2827) 2021-08-27 11:00:06 +02:00
rest_node_api.nim Number of REST fixes. (#2961) 2021-10-06 15:43:03 +02:00
rest_utils.nim Validator key management API (#2755) 2021-10-04 22:08:31 +03:00
rest_validator_api.nim use `allSyncCommittees` everywhere (#2917) 2021-09-28 18:02:01 +00:00
rpc_api.nim REST API client, JSON-RPC cleanups (#2756) 2021-08-03 17:17:11 +02:00
rpc_beacon_api.nim altair-capable beacon block creation (#2834) 2021-08-29 14:50:21 +00:00
rpc_config_api.nim cleanups and fixes (#2827) 2021-08-27 11:00:06 +02:00
rpc_debug_api.nim cleanups and fixes (#2827) 2021-08-27 11:00:06 +02:00
rpc_event_api.nim cleanups and fixes (#2827) 2021-08-27 11:00:06 +02:00
rpc_nimbus_api.nim cleanups and fixes (#2827) 2021-08-27 11:00:06 +02:00
rpc_node_api.nim cleanups and fixes (#2827) 2021-08-27 11:00:06 +02:00
rpc_utils.nim rework spec imports (#2779) 2021-08-12 13:08:20 +00:00
rpc_validator_api.nim implement forked merge state/block support (#2890) 2021-09-27 14:22:58 +00:00