-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add skeleton code for Electra fork (#8008)
- Loading branch information
1 parent
00fb79b
commit a254e03
Showing
121 changed files
with
6,405 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,8 @@ | |
"altair", | ||
"bellatrix", | ||
"capella", | ||
"deneb" | ||
"deneb", | ||
"electra" | ||
] | ||
}, | ||
"data": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/BeaconBlockBodyElectra.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"title" : "BeaconBlockBodyElectra", | ||
"type" : "object", | ||
"required" : [ "randao_reveal", "eth1_data", "graffiti", "proposer_slashings", "attester_slashings", "attestations", "deposits", "voluntary_exits", "sync_aggregate", "execution_payload", "bls_to_execution_changes", "blob_kzg_commitments" ], | ||
"properties" : { | ||
"randao_reveal" : { | ||
"type" : "string", | ||
"pattern" : "^0x[a-fA-F0-9]{2,}$", | ||
"description" : "SSZ hexadecimal", | ||
"format" : "bytes" | ||
}, | ||
"eth1_data" : { | ||
"$ref" : "#/components/schemas/Eth1Data" | ||
}, | ||
"graffiti" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
}, | ||
"proposer_slashings" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/ProposerSlashing" | ||
} | ||
}, | ||
"attester_slashings" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/AttesterSlashing" | ||
} | ||
}, | ||
"attestations" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/Attestation" | ||
} | ||
}, | ||
"deposits" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/Deposit" | ||
} | ||
}, | ||
"voluntary_exits" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/SignedVoluntaryExit" | ||
} | ||
}, | ||
"sync_aggregate" : { | ||
"$ref" : "#/components/schemas/SyncAggregate" | ||
}, | ||
"execution_payload" : { | ||
"$ref" : "#/components/schemas/ExecutionPayloadElectra" | ||
}, | ||
"bls_to_execution_changes" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/SignedBLSToExecutionChange" | ||
} | ||
}, | ||
"blob_kzg_commitments" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"pattern" : "^0x[a-fA-F0-9]{2,}$", | ||
"description" : "Bytes48 hexadecimal", | ||
"format" : "bytes" | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...tion-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/BeaconBlockElectra.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"title" : "BeaconBlockElectra", | ||
"type" : "object", | ||
"required" : [ "slot", "proposer_index", "parent_root", "state_root", "body" ], | ||
"properties" : { | ||
"slot" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"proposer_index" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"parent_root" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
}, | ||
"state_root" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
}, | ||
"body" : { | ||
"$ref" : "#/components/schemas/BeaconBlockBodyElectra" | ||
} | ||
} | ||
} |
175 changes: 175 additions & 0 deletions
175
...tion-test/resources/tech/pegasys/teku/beaconrestapi/beacon/schema/BeaconStateElectra.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
{ | ||
"title" : "BeaconStateElectra", | ||
"type" : "object", | ||
"required" : [ "genesis_time", "genesis_validators_root", "slot", "fork", "latest_block_header", "block_roots", "state_roots", "historical_roots", "eth1_data", "eth1_data_votes", "eth1_deposit_index", "validators", "balances", "randao_mixes", "slashings", "previous_epoch_participation", "current_epoch_participation", "justification_bits", "previous_justified_checkpoint", "current_justified_checkpoint", "finalized_checkpoint", "inactivity_scores", "current_sync_committee", "next_sync_committee", "latest_execution_payload_header", "next_withdrawal_index", "next_withdrawal_validator_index", "historical_summaries" ], | ||
"properties" : { | ||
"genesis_time" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"genesis_validators_root" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
}, | ||
"slot" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"fork" : { | ||
"$ref" : "#/components/schemas/Fork" | ||
}, | ||
"latest_block_header" : { | ||
"$ref" : "#/components/schemas/BeaconBlockHeader" | ||
}, | ||
"block_roots" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
} | ||
}, | ||
"state_roots" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
} | ||
}, | ||
"historical_roots" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
} | ||
}, | ||
"eth1_data" : { | ||
"$ref" : "#/components/schemas/Eth1Data" | ||
}, | ||
"eth1_data_votes" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/Eth1Data" | ||
} | ||
}, | ||
"eth1_deposit_index" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"validators" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/Validator" | ||
} | ||
}, | ||
"balances" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
} | ||
}, | ||
"randao_mixes" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"description" : "Bytes32 hexadecimal", | ||
"example" : "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", | ||
"format" : "byte" | ||
} | ||
}, | ||
"slashings" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
} | ||
}, | ||
"previous_epoch_participation" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"example" : "1", | ||
"description" : "unsigned 8 bit integer, max value 255", | ||
"format" : "uint8" | ||
} | ||
}, | ||
"current_epoch_participation" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"example" : "1", | ||
"description" : "unsigned 8 bit integer, max value 255", | ||
"format" : "uint8" | ||
} | ||
}, | ||
"justification_bits" : { | ||
"type" : "string", | ||
"pattern" : "^0x[a-fA-F0-9]{2,}$", | ||
"description" : "SSZ hexadecimal", | ||
"format" : "bytes" | ||
}, | ||
"previous_justified_checkpoint" : { | ||
"$ref" : "#/components/schemas/Checkpoint" | ||
}, | ||
"current_justified_checkpoint" : { | ||
"$ref" : "#/components/schemas/Checkpoint" | ||
}, | ||
"finalized_checkpoint" : { | ||
"$ref" : "#/components/schemas/Checkpoint" | ||
}, | ||
"inactivity_scores" : { | ||
"type" : "array", | ||
"items" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
} | ||
}, | ||
"current_sync_committee" : { | ||
"$ref" : "#/components/schemas/SyncCommittee" | ||
}, | ||
"next_sync_committee" : { | ||
"$ref" : "#/components/schemas/SyncCommittee" | ||
}, | ||
"latest_execution_payload_header" : { | ||
"$ref" : "#/components/schemas/ExecutionPayloadHeaderElectra" | ||
}, | ||
"next_withdrawal_index" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"next_withdrawal_validator_index" : { | ||
"type" : "string", | ||
"description" : "unsigned 64 bit integer", | ||
"example" : "1", | ||
"format" : "uint64" | ||
}, | ||
"historical_summaries" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/HistoricalSummary" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.