1
- # Copyright (c) 2018-2023 Status Research & Development GmbH
1
+ # Copyright (c) 2018-2024 Status Research & Development GmbH
2
2
# Licensed and distributed under either of
3
3
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
4
4
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
@@ -12,14 +12,6 @@ import
12
12
13
13
export chronos, client, rest_types, eth2_rest_serialization
14
14
15
- proc getAttesterDuties * (
16
- epoch: Epoch ,
17
- body: seq [ValidatorIndex ]
18
- ): RestResponse [GetAttesterDutiesResponse ] {.
19
- rest , endpoint : " /eth/v1/validator/duties/attester/{epoch}" ,
20
- meth : MethodPost .}
21
- # # https://ethereum.github.io/beacon-APIs/#/Validator/getAttesterDuties
22
-
23
15
proc getAttesterDutiesPlain * (
24
16
epoch: Epoch ,
25
17
body: seq [ValidatorIndex ]
@@ -28,28 +20,13 @@ proc getAttesterDutiesPlain*(
28
20
meth : MethodPost .}
29
21
# # https://ethereum.github.io/beacon-APIs/#/Validator/getAttesterDuties
30
22
31
- proc getProposerDuties * (
32
- epoch: Epoch
33
- ): RestResponse [GetProposerDutiesResponse ] {.
34
- rest , endpoint : " /eth/v1/validator/duties/proposer/{epoch}" ,
35
- meth : MethodGet .}
36
- # # https://ethereum.github.io/beacon-APIs/#/Validator/getProposerDuties
37
-
38
23
proc getProposerDutiesPlain * (
39
24
epoch: Epoch
40
25
): RestPlainResponse {.
41
26
rest , endpoint : " /eth/v1/validator/duties/proposer/{epoch}" ,
42
27
meth : MethodGet .}
43
28
# # https://ethereum.github.io/beacon-APIs/#/Validator/getProposerDuties
44
29
45
- proc getSyncCommitteeDuties * (
46
- epoch: Epoch ,
47
- body: seq [ValidatorIndex ]
48
- ): RestResponse [GetSyncCommitteeDutiesResponse ] {.
49
- rest , endpoint : " /eth/v1/validator/duties/sync/{epoch}" ,
50
- meth : MethodPost .}
51
- # # https://ethereum.github.io/beacon-APIs/#/Validator/getSyncCommitteeDuties
52
-
53
30
proc getSyncCommitteeDutiesPlain * (
54
31
epoch: Epoch ,
55
32
body: seq [ValidatorIndex ]
@@ -76,14 +53,6 @@ proc produceBlindedBlockPlain*(
76
53
accept : preferSSZ, meth : MethodGet .}
77
54
# # https://ethereum.github.io/beacon-APIs/#/Validator/produceBlindedBlock
78
55
79
- proc produceAttestationData * (
80
- slot: Slot ,
81
- committee_index: CommitteeIndex
82
- ): RestResponse [ProduceAttestationDataResponse ] {.
83
- rest , endpoint : " /eth/v1/validator/attestation_data" ,
84
- meth : MethodGet .}
85
- # # https://ethereum.github.io/beacon-APIs/#/Validator/produceAttestationData
86
-
87
56
proc produceAttestationDataPlain * (
88
57
slot: Slot ,
89
58
committee_index: CommitteeIndex
@@ -92,14 +61,6 @@ proc produceAttestationDataPlain*(
92
61
meth : MethodGet .}
93
62
# # https://ethereum.github.io/beacon-APIs/#/Validator/produceAttestationData
94
63
95
- proc getAggregatedAttestation * (
96
- attestation_data_root: Eth2Digest ,
97
- slot: Slot
98
- ): RestResponse [GetAggregatedAttestationResponse ] {.
99
- rest , endpoint : " /eth/v1/validator/aggregate_attestation"
100
- meth: MethodGet .}
101
- # # https://ethereum.github.io/beacon-APIs/#/Validator/getAggregatedAttestation
102
-
103
64
proc getAggregatedAttestationPlain * (
104
65
attestation_data_root: Eth2Digest ,
105
66
slot: Slot
@@ -129,15 +90,6 @@ proc prepareSyncCommitteeSubnets*(
129
90
meth : MethodPost .}
130
91
# # https://ethereum.github.io/beacon-APIs/#/Validator/prepareSyncCommitteeSubnets
131
92
132
- proc produceSyncCommitteeContribution * (
133
- slot: Slot ,
134
- subcommittee_index: SyncSubcommitteeIndex ,
135
- beacon_block_root: Eth2Digest
136
- ): RestResponse [ProduceSyncCommitteeContributionResponse ] {.
137
- rest , endpoint : " /eth/v1/validator/sync_committee_contribution" ,
138
- meth : MethodGet .}
139
- # # https://ethereum.github.io/beacon-APIs/#/Validator/produceSyncCommitteeContribution
140
-
141
93
proc produceSyncCommitteeContributionPlain * (
142
94
slot: Slot ,
143
95
subcommittee_index: SyncSubcommitteeIndex ,
@@ -181,4 +133,3 @@ proc submitSyncCommitteeSelectionsPlain*(
181
133
rest , endpoint : " /eth/v1/validator/sync_committee_selections" ,
182
134
meth : MethodPost .}
183
135
# # https://ethereum.github.io/beacon-APIs/#/Validator/submitSyncCommitteeSelections
184
-
0 commit comments