2020-03-16 22:28:54 +00:00
|
|
|
import
|
2020-05-22 17:04:52 +00:00
|
|
|
# Standard library
|
2020-03-16 22:28:54 +00:00
|
|
|
options,
|
2020-05-22 17:04:52 +00:00
|
|
|
# Local modules
|
|
|
|
../[datatypes, digest, crypto],
|
|
|
|
json_rpc/jsonmarshal,
|
|
|
|
validator_callsigs_types
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-05-22 17:04:52 +00:00
|
|
|
# TODO check which arguments are part of the path in the REST API
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-05-22 17:04:52 +00:00
|
|
|
proc get_v1_validator_blocks(slot: Slot, graffiti: Eth2Digest, randao_reveal: ValidatorSig): BeaconBlock
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-05-22 17:04:52 +00:00
|
|
|
# TODO this doesn't have "validator" in it's path but is used by the validators nonetheless
|
|
|
|
proc post_v1_beacon_blocks(body: SignedBeaconBlock)
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-05-22 17:04:52 +00:00
|
|
|
proc get_v1_validator_attestation_data(slot: Slot, committee_index: CommitteeIndex): AttestationData
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-05-22 17:04:52 +00:00
|
|
|
proc get_v1_validator_aggregate_attestation(query: Eth2Digest): Attestation
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-05-22 17:04:52 +00:00
|
|
|
proc post_v1_validator_aggregate_and_proof(payload: SignedAggregateAndProof)
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-05-22 17:04:52 +00:00
|
|
|
# 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]
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-05-22 17:04:52 +00:00
|
|
|
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)
|