Skip to content

Commit 3e8c523

Browse files
authored
Add SSZ examples (#128)
* Add ssz examples * Use plural for signed validator registrations * Make register validator example fork independent
1 parent 733f136 commit 3e8c523

28 files changed

+47
-28
lines changed

apis/builder/validators.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ post:
2222
type: array
2323
items:
2424
$ref: "../../builder-oapi.yaml#/components/schemas/SignedValidatorRegistration"
25+
example:
26+
$ref: "../../builder-oapi.yaml#/components/examples/SignedValidatorRegistrations/value"
2527
application/octet-stream:
2628
schema:
2729
description: "SSZ serialized `List[SignedValidatorRegistrationV1, VALIDATOR_REGISTRY_LIMIT]` bytes. Use content type header to indicate that SSZ data is contained in the request body."

beacon-apis

Submodule beacon-apis updated 45 files

builder-oapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ components:
119119
$ref: "#/components/schemas/ConsensusVersion"
120120

121121
examples:
122+
SignedValidatorRegistrations:
123+
$ref: "./examples/bellatrix/signed_validator_registrations.json"
122124
Bellatrix.SignedBlindedBeaconBlock:
123125
$ref: "./examples/bellatrix/signed_blinded_beacon_block.json"
124126
Bellatrix.ExecutionPayload:
667 Bytes
Binary file not shown.

examples/bellatrix/signed_blinded_beacon_block.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
],
8282
"attestations": [
8383
{
84-
"aggregation_bits": "0x01",
84+
"aggregation_bits": "0xffffffffffffffffffffffffffffffff",
8585
"signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505",
8686
"data": {
8787
"slot": "1",
@@ -153,7 +153,7 @@
153153
}
154154
],
155155
"sync_aggregate": {
156-
"sync_committee_bits": "0x01",
156+
"sync_committee_bits": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbfffffffffffffffffffffffbffffffffffffffffffffbffffffffffffff",
157157
"sync_committee_signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
158158
},
159159
"execution_payload_header": {
3.55 KB
Binary file not shown.
752 Bytes
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"value": [
3+
{
4+
"message": {
5+
"fee_recipient": "0x000102030405060708090a0b0c0d0e0f10111213",
6+
"gas_limit": "100",
7+
"timestamp": "100",
8+
"pubkey": "0x000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f"
9+
},
10+
"signature": "0x606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebf"
11+
}
12+
]
13+
}
180 Bytes
Binary file not shown.
715 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)