2020-03-16 22:28:54 +00:00
|
|
|
import
|
|
|
|
options,
|
2021-08-03 15:17:11 +00:00
|
|
|
rpc_types
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-06-19 09:21:17 +00: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 17:06:28 +00:00
|
|
|
|
2021-08-12 13:08:20 +00:00
|
|
|
proc get_v1_validator_block(slot: Slot, graffiti: GraffitiBytes, randao_reveal: ValidatorSig): phase0.BeaconBlock
|
2020-06-05 09:57:40 +00:00
|
|
|
|
2020-12-07 12:51:14 +00:00
|
|
|
proc get_v1_validator_attestation_data(slot: Slot, committee_index: CommitteeIndex): AttestationData
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-09-14 11:13:30 +00:00
|
|
|
proc get_v1_validator_aggregate_attestation(slot: Slot, attestation_data_root: Eth2Digest): Attestation
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-09-14 11:13:30 +00:00
|
|
|
proc post_v1_validator_aggregate_and_proofs(payload: SignedAggregateAndProof): bool
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-06-19 09:21:17 +00:00
|
|
|
# TODO epoch is part of the REST path
|
2021-08-03 15:17:11 +00:00
|
|
|
proc get_v1_validator_duties_attester(epoch: Epoch, public_keys: seq[ValidatorPubKey]): seq[RpcAttesterDuties]
|
2020-03-16 22:28:54 +00:00
|
|
|
|
2020-06-19 09:21:17 +00:00
|
|
|
# TODO epoch is part of the REST path
|
2021-08-03 15:17:11 +00:00
|
|
|
proc get_v1_validator_duties_proposer(epoch: Epoch): seq[RpcValidatorDuties]
|
2020-05-22 17:04:52 +00:00
|
|
|
|
2020-06-19 09:21:17 +00:00
|
|
|
proc post_v1_validator_beacon_committee_subscriptions(committee_index: CommitteeIndex,
|
|
|
|
slot: Slot,
|
|
|
|
aggregator: bool,
|
|
|
|
validator_pubkey: ValidatorPubKey,
|
|
|
|
slot_signature: ValidatorSig): bool
|