@@ -18,12 +18,16 @@ export base
1818const
1919 # https://github.com/ethereum/consensus-specs/blob/v1.5.0-alpha.10/specs/phase0/p2p-interface.md#topics-and-messages
2020 # https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.3/specs/capella/p2p-interface.md#topics-and-messages
21+ # https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.6/specs/gloas/p2p-interface.md#topics-and-messages
2122 topicBeaconBlocksSuffix = " beacon_block/ssz_snappy"
2223 topicVoluntaryExitsSuffix = " voluntary_exit/ssz_snappy"
2324 topicProposerSlashingsSuffix = " proposer_slashing/ssz_snappy"
2425 topicAttesterSlashingsSuffix = " attester_slashing/ssz_snappy"
2526 topicAggregateAndProofsSuffix = " beacon_aggregate_and_proof/ssz_snappy"
2627 topicBlsToExecutionChangeSuffix = " bls_to_execution_change/ssz_snappy"
28+ topicExecutionPayloadHeaderSuffix = " execution_payload_header/ssz_snappy"
29+ topicExecutionPayloadSuffix = " execution_payload/ssz_snappy"
30+ topicPayloadAttestationMessageSuffix = " payload_attestation_message/ssz_snappy"
2731
2832const
2933 # The spec now includes this as a bare uint64 as `RESP_TIMEOUT`
@@ -71,6 +75,18 @@ func getAggregateAndProofsTopic*(forkDigest: ForkDigest): string =
7175func getBlsToExecutionChangeTopic * (forkDigest: ForkDigest ): string =
7276 eth2Prefix (forkDigest) & topicBlsToExecutionChangeSuffix
7377
78+ # https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.6/specs/gloas/p2p-interface.md#execution_payload_header
79+ func getExecutionPayloadHeaderTopic * (forkDigest: ForkDigest ): string =
80+ eth2Prefix (forkDigest) & topicExecutionPayloadHeaderSuffix
81+
82+ # https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.6/specs/gloas/p2p-interface.md#execution_payload
83+ func getExecutionPayloadTopic * (forkDigest: ForkDigest ): string =
84+ eth2Prefix (forkDigest) & topicExecutionPayloadSuffix
85+
86+ # https://github.com/ethereum/consensus-specs/blob/v1.6.0-alpha.6/specs/gloas/p2p-interface.md#payload_attestation_message
87+ func getPayloadAttestationMessageTopic * (forkDigest: ForkDigest ): string =
88+ eth2Prefix (forkDigest) & topicPayloadAttestationMessageSuffix
89+
7490# https://github.com/ethereum/consensus-specs/blob/v1.5.0-beta.2/specs/phase0/validator.md#broadcast-attestation
7591func compute_subnet_for_attestation * (
7692 committees_per_slot: uint64 , slot: Slot , committee_index: CommitteeIndex ):
0 commit comments