-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathblock.yaml
92 lines (86 loc) · 3.13 KB
/
block.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
BeaconBlockCommon:
# An abstract object to collect the common fields between the BeaconBlockHeader and the BeaconBlock objects
type: object
properties:
slot:
allOf:
- $ref: "./primitive.yaml#/Uint64"
- description: "The slot to which this block corresponds."
proposer_index:
allOf:
- $ref: './primitive.yaml#/Uint64'
- description: "Index of validator in validator registry."
parent_root:
allOf:
- $ref: './primitive.yaml#/Root'
- description: "The signing merkle root of the parent `BeaconBlock`."
state_root:
allOf:
- $ref: './primitive.yaml#/Root'
- description: "The tree hash merkle root of the `BeaconState` for the `BeaconBlock`."
BeaconBlockBody:
type: object
description: "The [`BeaconBlockBody`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#beaconblockbody) object from the CL spec."
properties:
randao_reveal:
allOf:
- $ref: './primitive.yaml#/Signature'
- description: "The RanDAO reveal value provided by the validator."
eth1_data:
$ref: './eth1.yaml#/Eth1Data'
graffiti:
$ref: "./primitive.yaml#/Graffiti"
proposer_slashings:
type: array
items:
$ref: './proposer_slashing.yaml#/ProposerSlashing'
attester_slashings:
type: array
items:
$ref: './attester_slashing.yaml#/AttesterSlashing'
attestations:
type: array
items:
$ref: './attestation.yaml#/Attestation'
deposits:
type: array
items:
$ref: './deposit.yaml#/Deposit'
voluntary_exits:
type: array
items:
$ref: './voluntary_exit.yaml#/SignedVoluntaryExit'
BeaconBlock:
description: "The [`BeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#beaconblock) object from the CL spec."
allOf:
- $ref: '#/BeaconBlockCommon'
- type: object
properties:
body:
$ref: '#/BeaconBlockBody'
SignedBeaconBlock:
type: object
description: "The [`SignedBeaconBlock`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#signedbeaconblock) object envelope from the CL spec."
properties:
message:
$ref: "#/BeaconBlock"
signature:
$ref: "./primitive.yaml#/Signature"
BeaconBlockHeader:
description: "The [`BeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#beaconblockheader) object from the CL spec."
allOf:
- $ref: './block.yaml#/BeaconBlockCommon'
- type: object
properties:
body_root:
allOf:
- $ref: './primitive.yaml#/Root'
- description: "The tree hash merkle root of the `BeaconBlockBody` for the `BeaconBlock`"
SignedBeaconBlockHeader:
type: object
description: "The [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#signedbeaconblockheader) object envelope from the CL spec."
properties:
message:
$ref: "./block.yaml#/BeaconBlockHeader"
signature:
$ref: "./primitive.yaml#/Signature"