Skip to content

Commit e0ea5c8

Browse files
committed
Define primitive.yaml#/ClientCode
1 parent 40eec80 commit e0ea5c8

File tree

5 files changed

+34
-38
lines changed

5 files changed

+34
-38
lines changed

apis/node/version.v2.yaml

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ get:
22
operationId: "getNodeVersionV2"
33
tags:
44
- Node
5-
summary: "Get version information for the beacon node and execution payload validator."
6-
description: "Retrieves structured information about the version of the beacon node and its attached execution payload validator."
5+
summary: "Get version information for the beacon node and execution client."
6+
description: "Retrieves structured information about the version of the beacon node and its attached execution client in the same format as used on the [Engine API](https://github.com/ethereum/execution-apis/blob/main/src/engine/identification.md)."
77
responses:
88
"200":
99
description: Request successful
@@ -16,39 +16,24 @@ get:
1616
properties:
1717
data:
1818
type: object
19-
required: [beacon_node, execution_payload_validator]
19+
required: [beacon_node, execution_client]
2020
properties:
2121
beacon_node:
2222
$ref: '../../beacon-node-oapi.yaml#/components/schemas/ClientVersionV1'
23-
execution_payload_validator:
23+
execution_client:
2424
$ref: '../../beacon-node-oapi.yaml#/components/schemas/ClientVersionV1'
25-
examples:
26-
Stateful Execution Payload Validator:
27-
value:
28-
data:
29-
beacon_node:
30-
code: "LH"
31-
name: "Lighthouse"
32-
version: "v8.0.1"
33-
commit: "ced49dd2"
34-
execution_payload_validator:
35-
code: "NM"
36-
name: "Nethermind"
37-
version: "v1.35.8"
38-
commit: "c066aee2"
39-
Stateless Execution Payload Validator:
40-
value:
41-
data:
42-
beacon_node:
43-
code: "LS"
44-
name: "Lodestar"
45-
version: "v1.38.0"
46-
commit: "dbd94781"
47-
execution_payload_validator:
48-
code: "TBD"
49-
name: "ZK Proof Verifier"
50-
version: "v0.0.1"
51-
commit: "c066aee2"
25+
example:
26+
data:
27+
beacon_node:
28+
code: "LH"
29+
name: "Lighthouse"
30+
version: "v8.0.1"
31+
commit: "ced49dd2"
32+
execution_client:
33+
code: "NM"
34+
name: "Nethermind"
35+
version: "v1.35.8"
36+
commit: "c066aee2"
5237

5338
"500":
5439
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'

spellcheck.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,9 @@ matrix:
7070
delimiters:
7171
- open: 'commit:.*'
7272
close: '$'
73+
# Ignore the 2-character ClientCode enum values (BU, EJ, EG, ...)
74+
- pyspelling.filters.context:
75+
context_visible_first: true
76+
delimiters:
77+
- open: 'enum: \[BU'
78+
close: '$'

types/node.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
ClientVersionV1:
22
type: object
3-
description: "A structure which uniquely identifies a client implementation and its version; similar to [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3)."
4-
required: [name, version, commit]
3+
description: "A structure which uniquely identifies a client implementation and its version. Mirrors the client version specification in the [Engine API](https://github.com/ethereum/execution-apis/blob/main/src/engine/identification.md)."
4+
required: [code, name, version, commit]
55
properties:
66
code:
7-
type: string
8-
example: "LS"
7+
$ref: './primitive.yaml#/ClientCode'
98
name:
109
type: string
10+
description: "Human-readable name of the client, e.g. Lighthouse or go-ethereum"
1111
example: "Lodestar"
1212
version:
1313
type: string
14+
description: "the version string of the current implementation e.g. v4.6.0 or 1.0.0-alpha.1 or 1.0.0+20130313144700"
1415
example: "v1.23.4"
1516
commit:
1617
type: string
18+
description: "4 bytes - first four bytes of the latest commit hash of this build e.g. fa4ff922"
1719
example: "fa4ff922"

types/primitive.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ Version:
1717
description: "A string which uniquely identifies the client implementation and its version; similar to [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3)."
1818
example: "Lighthouse/v0.1.5 (Linux x86_64)"
1919

20+
ClientCode:
21+
type: string
22+
description: "A two-character client code that uniquely maps to a client name as defined in the [Engine API](https://github.com/ethereum/execution-apis/blob/main/src/engine/identification.md#clientcode)."
23+
enum: [BU, EJ, EG, GE, GR, LH, LS, NM, NB, TE, TK, PM, RH]
24+
example: LS
25+
2026
GenesisTime:
2127
$ref: "./primitive.yaml#/Uint64"
2228
example: "1590832934"

wordlist.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,5 @@ KZGProofs
3737
KZGCommitmentInclusionProof
3838
LMD
3939
fulu
40-
ZK
41-
Stateful
42-
Verifier
4340
LH
4441
ClientVersionV

0 commit comments

Comments
 (0)