nimbus-eth2/beacon_chain/spec/eth2_apis/validator_callsigs.nim

32 lines
1.3 KiB
Nim
Raw Normal View History

import
# Standard library
options,
# Local modules
../[datatypes, digest, crypto],
json_rpc/jsonmarshal,
validator_callsigs_types
# TODO check which arguments are part of the path in the REST API
proc get_v1_validator_blocks(slot: Slot, graffiti: Eth2Digest, randao_reveal: ValidatorSig): BeaconBlock
# TODO this doesn't have "validator" in it's path but is used by the validators nonetheless
proc post_v1_beacon_blocks(body: SignedBeaconBlock)
proc get_v1_validator_attestation_data(slot: Slot, committee_index: CommitteeIndex): AttestationData
proc get_v1_validator_aggregate_attestation(query: Eth2Digest): Attestation
proc post_v1_validator_aggregate_and_proof(payload: SignedAggregateAndProof)
# TODO this should perhaps be a GET instead of a POST?
proc post_v1_validator_duties_attester(epoch: Epoch, public_keys: seq[ValidatorPubKey]): seq[AttesterDuties]
proc get_v1_validator_duties_proposer(epoch: Epoch): seq[ValidatorPubkeySlotPair]
proc post_v1_validator_beacon_committee_subscription(committee_index: CommitteeIndex,
slot: Slot,
aggregator: bool,
validator_pubkey: ValidatorPubKey,
slot_signature: ValidatorSig)