mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-23 04:50:59 +00:00
7a622e8505
The spec imports are a mess to work with, so this branch cleans them up a bit to ensure that we avoid generic sandwitches and that importing stuff generally becomes easier. * reexport crypto/digest/presets because these are part of the public symbol set of the rest of the spec types * don't export `merge` types from `base` - this causes circular deps * fix circular deps in `ssz/spec_types` - this is the first step in disentangling ssz from spec * be explicit about phase0 vs altair - longer term, `altair` will become the "natural" type set, then merge and so on, so no point in giving `phase0` special preferential treatment
29 lines
1.3 KiB
Nim
29 lines
1.3 KiB
Nim
import
|
|
options,
|
|
rpc_types
|
|
|
|
# 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.
|
|
|
|
proc get_v1_validator_block(slot: Slot, graffiti: GraffitiBytes, randao_reveal: ValidatorSig): phase0.BeaconBlock
|
|
|
|
proc post_v1_validator_block(body: phase0.SignedBeaconBlock): bool
|
|
|
|
proc get_v1_validator_attestation_data(slot: Slot, committee_index: CommitteeIndex): AttestationData
|
|
|
|
proc get_v1_validator_aggregate_attestation(slot: Slot, attestation_data_root: Eth2Digest): Attestation
|
|
|
|
proc post_v1_validator_aggregate_and_proofs(payload: SignedAggregateAndProof): bool
|
|
|
|
# TODO epoch is part of the REST path
|
|
proc get_v1_validator_duties_attester(epoch: Epoch, public_keys: seq[ValidatorPubKey]): seq[RpcAttesterDuties]
|
|
|
|
# TODO epoch is part of the REST path
|
|
proc get_v1_validator_duties_proposer(epoch: Epoch): seq[RpcValidatorDuties]
|
|
|
|
proc post_v1_validator_beacon_committee_subscriptions(committee_index: CommitteeIndex,
|
|
slot: Slot,
|
|
aggregator: bool,
|
|
validator_pubkey: ValidatorPubKey,
|
|
slot_signature: ValidatorSig): bool
|