2020-03-16 22:28:54 +00:00
|
|
|
import
|
|
|
|
options,
|
2020-06-19 09:21:17 +00:00
|
|
|
callsigs_types
|
|
|
|
|
|
|
|
proc get_v1_beacon_genesis(): BeaconGenesisTuple
|
|
|
|
|
|
|
|
# TODO stateId is part of the REST path
|
|
|
|
proc get_v1_beacon_states_root(stateId: string): Eth2Digest
|
|
|
|
|
|
|
|
# TODO stateId is part of the REST path
|
|
|
|
proc get_v1_beacon_states_fork(stateId: string): Fork
|
|
|
|
|
2020-07-08 10:11:22 +00:00
|
|
|
# TODO stateId is part of the REST path
|
|
|
|
proc get_v1_beacon_states_finality_checkpoints(
|
|
|
|
stateId: string): BeaconStatesFinalityCheckpointsTuple
|
|
|
|
|
|
|
|
# TODO stateId is part of the REST path
|
|
|
|
proc get_v1_beacon_states_stateId_validators(
|
|
|
|
stateId: string, validatorIds: seq[string],
|
|
|
|
status: string): seq[BeaconStatesValidatorsTuple]
|
|
|
|
|
|
|
|
# TODO stateId and validatorId are part of the REST path
|
|
|
|
proc get_v1_beacon_states_stateId_validators_validatorId(
|
|
|
|
stateId: string, validatorId: string): BeaconStatesValidatorsTuple
|
|
|
|
|
|
|
|
# TODO stateId and epoch are part of the REST path
|
|
|
|
proc get_v1_beacon_states_stateId_committees_epoch(stateId: string,
|
|
|
|
epoch: uint64, index: uint64, slot: uint64): seq[BeaconStatesCommitteesTuple]
|
|
|
|
|
|
|
|
proc get_v1_beacon_headers(slot: uint64, parent_root: Eth2Digest): seq[BeaconHeadersTuple]
|
|
|
|
|
|
|
|
# TODO blockId is part of the REST path
|
|
|
|
proc get_v1_beacon_headers_blockId(blockId: string):
|
|
|
|
tuple[canonical: bool, header: SignedBeaconBlockHeader]
|
|
|
|
|
|
|
|
# TODO blockId is part of the REST path
|
|
|
|
proc get_v1_beacon_blocks_blockId(blockId: string): SignedBeaconBlock
|
|
|
|
|
|
|
|
# TODO blockId is part of the REST path
|
|
|
|
proc get_v1_beacon_blocks_blockId_root(blockId: string): Eth2Digest
|
|
|
|
|
|
|
|
# TODO blockId is part of the REST path
|
|
|
|
proc get_v1_beacon_blocks_blockId_attestations(blockId: string): seq[Attestation]
|
|
|
|
|
|
|
|
# TODO POST /v1/beacon/pool/attester_slashings
|
|
|
|
# TODO POST /v1/beacon/pool/proposer_slashings
|
|
|
|
# TODO POST /v1/beacon/pool/attestations
|
2021-02-09 09:23:26 +00:00
|
|
|
proc get_v1_beacon_pool_attestations(slot: Option[uint64], committee_index: Option[uint64]): seq[AttestationTuple]
|
|
|
|
proc post_v1_beacon_pool_attestations(attestation: Attestation): bool
|
2020-07-08 10:11:22 +00:00
|
|
|
|
2021-02-09 09:23:26 +00:00
|
|
|
proc get_v1_beacon_pool_attester_slashings(): seq[AttesterSlashing]
|
2020-07-08 10:11:22 +00:00
|
|
|
|
2021-02-09 09:23:26 +00:00
|
|
|
proc get_v1_beacon_pool_proposer_slashings(): seq[ProposerSlashing]
|
|
|
|
|
|
|
|
proc get_v1_beacon_pool_voluntary_exits(): seq[VoluntaryExit]
|
2020-11-27 19:48:33 +00:00
|
|
|
proc post_v1_beacon_pool_voluntary_exits(exit: SignedVoluntaryExit): bool
|
2020-07-08 10:11:22 +00:00
|
|
|
|
2020-10-28 18:51:38 +00:00
|
|
|
proc get_v1_config_fork_schedule(): seq[Fork]
|