2020-03-17 00:28:54 +02:00
|
|
|
import
|
|
|
|
options,
|
2021-08-03 17:17:11 +02:00
|
|
|
rpc_types
|
2020-03-17 00:28:54 +02:00
|
|
|
|
2020-06-19 12:21:17 +03:00
|
|
|
# calls that return a bool are actually without a return type in the main REST API
|
|
|
|
# spec but nim-json-rpc requires that all RPC calls have a return type.
|
2020-05-27 20:06:28 +03:00
|
|
|
|
2021-08-12 15:08:20 +02:00
|
|
|
proc get_v1_validator_block(slot: Slot, graffiti: GraffitiBytes, randao_reveal: ValidatorSig): phase0.BeaconBlock
|
2020-06-05 12:57:40 +03:00
|
|
|
|
2020-12-07 14:51:14 +02:00
|
|
|
proc get_v1_validator_attestation_data(slot: Slot, committee_index: CommitteeIndex): AttestationData
|
2020-03-17 00:28:54 +02:00
|
|
|
|
2020-09-14 14:13:30 +03:00
|
|
|
proc get_v1_validator_aggregate_attestation(slot: Slot, attestation_data_root: Eth2Digest): Attestation
|
2020-03-17 00:28:54 +02:00
|
|
|
|
2020-09-14 14:13:30 +03:00
|
|
|
proc post_v1_validator_aggregate_and_proofs(payload: SignedAggregateAndProof): bool
|
2020-03-17 00:28:54 +02:00
|
|
|
|
2020-06-19 12:21:17 +03:00
|
|
|
# TODO epoch is part of the REST path
|
2021-08-03 17:17:11 +02:00
|
|
|
proc get_v1_validator_duties_attester(epoch: Epoch, public_keys: seq[ValidatorPubKey]): seq[RpcAttesterDuties]
|
2020-03-17 00:28:54 +02:00
|
|
|
|
2020-06-19 12:21:17 +03:00
|
|
|
# TODO epoch is part of the REST path
|
2021-08-03 17:17:11 +02:00
|
|
|
proc get_v1_validator_duties_proposer(epoch: Epoch): seq[RpcValidatorDuties]
|
2020-05-22 20:04:52 +03:00
|
|
|
|
2020-06-19 12:21:17 +03:00
|
|
|
proc post_v1_validator_beacon_committee_subscriptions(committee_index: CommitteeIndex,
|
|
|
|
slot: Slot,
|
|
|
|
aggregator: bool,
|
|
|
|
validator_pubkey: ValidatorPubKey,
|
|
|
|
slot_signature: ValidatorSig): bool
|