@lodestar/api 1.44.0-rc.1 → 1.44.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/beacon/routes/beacon/block.d.ts +1 -26
- package/lib/beacon/routes/beacon/block.d.ts.map +1 -1
- package/lib/beacon/routes/beacon/block.js +0 -127
- package/lib/beacon/routes/beacon/block.js.map +1 -1
- package/lib/beacon/routes/beacon/pool.d.ts +0 -41
- package/lib/beacon/routes/beacon/pool.d.ts.map +1 -1
- package/lib/beacon/routes/beacon/pool.js +0 -50
- package/lib/beacon/routes/beacon/pool.js.map +1 -1
- package/lib/beacon/routes/events.d.ts +1 -1
- package/lib/beacon/routes/validator.d.ts +0 -24
- package/lib/beacon/routes/validator.d.ts.map +1 -1
- package/lib/beacon/routes/validator.js +0 -45
- package/lib/beacon/routes/validator.js.map +1 -1
- package/package.json +6 -6
- package/src/beacon/routes/beacon/block.ts +0 -166
- package/src/beacon/routes/beacon/pool.ts +0 -103
- package/src/beacon/routes/validator.ts +0 -74
|
@@ -499,23 +499,6 @@ export type Endpoints = {
|
|
|
499
499
|
EmptyMeta
|
|
500
500
|
>;
|
|
501
501
|
|
|
502
|
-
/**
|
|
503
|
-
* Get aggregated attestation
|
|
504
|
-
* Aggregates all attestations matching given attestation data root and slot
|
|
505
|
-
* Returns an aggregated `Attestation` object with same `AttestationData` root.
|
|
506
|
-
*/
|
|
507
|
-
getAggregatedAttestation: Endpoint<
|
|
508
|
-
"GET",
|
|
509
|
-
{
|
|
510
|
-
/** HashTreeRoot of AttestationData that validator want's aggregated */
|
|
511
|
-
attestationDataRoot: Root;
|
|
512
|
-
slot: Slot;
|
|
513
|
-
},
|
|
514
|
-
{query: {attestation_data_root: string; slot: number}},
|
|
515
|
-
phase0.Attestation,
|
|
516
|
-
EmptyMeta
|
|
517
|
-
>;
|
|
518
|
-
|
|
519
502
|
/**
|
|
520
503
|
* Get aggregated attestation
|
|
521
504
|
* Aggregates all attestations matching given attestation data root, slot and committee index
|
|
@@ -534,18 +517,6 @@ export type Endpoints = {
|
|
|
534
517
|
VersionMeta
|
|
535
518
|
>;
|
|
536
519
|
|
|
537
|
-
/**
|
|
538
|
-
* Publish multiple aggregate and proofs
|
|
539
|
-
* Verifies given aggregate and proofs and publishes them on appropriate gossipsub topic.
|
|
540
|
-
*/
|
|
541
|
-
publishAggregateAndProofs: Endpoint<
|
|
542
|
-
"POST",
|
|
543
|
-
{signedAggregateAndProofs: SignedAggregateAndProofListPhase0},
|
|
544
|
-
{body: unknown},
|
|
545
|
-
EmptyResponseData,
|
|
546
|
-
EmptyMeta
|
|
547
|
-
>;
|
|
548
|
-
|
|
549
520
|
/**
|
|
550
521
|
* Publish multiple aggregate and proofs
|
|
551
522
|
* Verifies given aggregate and proofs and publishes them on appropriate gossipsub topic.
|
|
@@ -1040,29 +1011,6 @@ export function getDefinitions(config: ChainForkConfig): RouteDefinitions<Endpoi
|
|
|
1040
1011
|
meta: EmptyMetaCodec,
|
|
1041
1012
|
},
|
|
1042
1013
|
},
|
|
1043
|
-
getAggregatedAttestation: {
|
|
1044
|
-
url: "/eth/v1/validator/aggregate_attestation",
|
|
1045
|
-
method: "GET",
|
|
1046
|
-
req: {
|
|
1047
|
-
writeReq: ({attestationDataRoot, slot}) => ({
|
|
1048
|
-
query: {attestation_data_root: toRootHex(attestationDataRoot), slot},
|
|
1049
|
-
}),
|
|
1050
|
-
parseReq: ({query}) => ({
|
|
1051
|
-
attestationDataRoot: fromHex(query.attestation_data_root),
|
|
1052
|
-
slot: query.slot,
|
|
1053
|
-
}),
|
|
1054
|
-
schema: {
|
|
1055
|
-
query: {
|
|
1056
|
-
attestation_data_root: Schema.StringRequired,
|
|
1057
|
-
slot: Schema.UintRequired,
|
|
1058
|
-
},
|
|
1059
|
-
},
|
|
1060
|
-
},
|
|
1061
|
-
resp: {
|
|
1062
|
-
data: ssz.phase0.Attestation,
|
|
1063
|
-
meta: EmptyMetaCodec,
|
|
1064
|
-
},
|
|
1065
|
-
},
|
|
1066
1014
|
getAggregatedAttestationV2: {
|
|
1067
1015
|
url: "/eth/v2/validator/aggregate_attestation",
|
|
1068
1016
|
method: "GET",
|
|
@@ -1088,28 +1036,6 @@ export function getDefinitions(config: ChainForkConfig): RouteDefinitions<Endpoi
|
|
|
1088
1036
|
meta: VersionCodec,
|
|
1089
1037
|
},
|
|
1090
1038
|
},
|
|
1091
|
-
publishAggregateAndProofs: {
|
|
1092
|
-
url: "/eth/v1/validator/aggregate_and_proofs",
|
|
1093
|
-
method: "POST",
|
|
1094
|
-
req: {
|
|
1095
|
-
writeReqJson: ({signedAggregateAndProofs}) => ({
|
|
1096
|
-
body: SignedAggregateAndProofListPhase0Type.toJson(signedAggregateAndProofs),
|
|
1097
|
-
}),
|
|
1098
|
-
parseReqJson: ({body}) => ({
|
|
1099
|
-
signedAggregateAndProofs: SignedAggregateAndProofListPhase0Type.fromJson(body),
|
|
1100
|
-
}),
|
|
1101
|
-
writeReqSsz: ({signedAggregateAndProofs}) => ({
|
|
1102
|
-
body: SignedAggregateAndProofListPhase0Type.serialize(signedAggregateAndProofs),
|
|
1103
|
-
}),
|
|
1104
|
-
parseReqSsz: ({body}) => ({
|
|
1105
|
-
signedAggregateAndProofs: SignedAggregateAndProofListPhase0Type.deserialize(body),
|
|
1106
|
-
}),
|
|
1107
|
-
schema: {
|
|
1108
|
-
body: Schema.ObjectArray,
|
|
1109
|
-
},
|
|
1110
|
-
},
|
|
1111
|
-
resp: EmptyResponseCodec,
|
|
1112
|
-
},
|
|
1113
1039
|
publishAggregateAndProofsV2: {
|
|
1114
1040
|
url: "/eth/v2/validator/aggregate_and_proofs",
|
|
1115
1041
|
method: "POST",
|