-
Notifications
You must be signed in to change notification settings - Fork 169
/
primitive.yaml
124 lines (103 loc) · 4.18 KB
/
primitive.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Pubkey:
type: string
format: hex
pattern: "^0x[a-fA-F0-9]{96}$"
description: "The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded with 0x prefix, case insensitive._"
example: "0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a"
ForkVersion:
type: string
format: hex
description: "a fork version number"
example: "0x00000000"
pattern: "^0x[a-fA-F0-9]{8}$"
Version:
type: string
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)."
example: "Lighthouse/v0.1.5 (Linux x86_64)"
GenesisTime:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- example: "1590832934"
- description: "The genesis_time configured for the beacon node, which is the unix time in seconds at which the Eth2.0 chain began."
Gwei:
$ref: "./primitive.yaml#/Uint64"
Uint64:
type: string
example: "1"
Uint256:
type: string
example: "1"
Int64:
type: string
example: "1"
DependentRoot:
allOf:
- $ref: "./primitive.yaml#/Root"
- description: "The block root that this response is dependent on."
ExecutionOptimistic:
allOf:
- type: boolean
- example: false
- description: "True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value."
Finalized:
allOf:
- type: boolean
- example: false
- description: "True if the response references the finalized history of the chain, as determined by fork choice. If the field is not present, additional calls are necessary to compare the epoch of the requested information with the finalized checkpoint."
Root:
type: string
format: hex
example: "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
pattern: "^0x[a-fA-F0-9]{64}$"
Bytes32:
type: string
format: hex
example: "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
pattern: "^0x[a-fA-F0-9]{64}$"
Graffiti:
type: string
format: hex
example: "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
pattern: "^0x[a-fA-F0-9]{64}$"
Hex:
type: string
format: hex
pattern: "^0x[a-fA-F0-9]{2,}$"
Signature:
type: string
format: hex
pattern: "^0x[a-fA-F0-9]{192}$"
example: "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
BitList:
type: string
format: hex
example: "0x01"
pattern: "^0x[a-fA-F0-9]+$"
Uint8:
type: string
description: "Unsigned 8 bit integer, max value 255"
pattern: "^[1-2]?[0-9]{1,2}$"
example: "0"
ExecutionAddress:
type: string
format: hex
description: "An address on the execution (Ethereum 1) network."
example: "0xabcf8e0d4e9587369b2301d0790347320302cc09"
pattern: "^0x[a-fA-F0-9]{40}$"
Transaction:
type: string
format: hex
description: "A transaction on the execution (Ethereum 1) network."
example: "0x02f878831469668303f51d843b9ac9f9843b9aca0082520894c93269b73096998db66be0441e836d873535cb9c8894a19041886f000080c001a031cc29234036afbf9a1fb9476b463367cb1f957ac0b919b69bbc798436e604aaa018c4e9c3914eb27aadd0b91e10b18655739fcf8c1fc398763a9f1beecb8ddc86"
pattern: "^0x[a-fA-F0-9]{0,2147483648}$"
ExtraData:
type: string
format: hex
description: "Extra data on the execution (Ethereum 1) network."
example: "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2"
pattern: "^0x[a-fA-F0-9]{0,64}$"
LogsBloom:
type: string
format: hex
example: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
pattern: "^0x[a-fA-F0-9]{512}$"