2018-07-17 18:39:04 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2018-07-31 18:54:45 +00:00
|
|
|
package ethereum.beacon.p2p.v1;
|
2018-07-17 18:39:04 +00:00
|
|
|
|
2018-11-20 19:43:07 +00:00
|
|
|
import "proto/beacon/p2p/v1/types.proto";
|
2018-07-28 19:53:02 +00:00
|
|
|
|
2018-08-29 16:32:54 +00:00
|
|
|
enum Topic {
|
|
|
|
UNKNOWN = 0;
|
2018-11-21 18:00:36 +00:00
|
|
|
BEACON_BLOCK_ANNOUNCE = 1;
|
2018-08-29 16:32:54 +00:00
|
|
|
BEACON_BLOCK_REQUEST = 2;
|
|
|
|
BEACON_BLOCK_REQUEST_BY_SLOT_NUMBER = 3;
|
|
|
|
BEACON_BLOCK_RESPONSE = 4;
|
2018-12-26 14:16:46 +00:00
|
|
|
BATCHED_BEACON_BLOCK_REQUEST = 5;
|
|
|
|
BATCHED_BEACON_BLOCK_RESPONSE = 6;
|
|
|
|
CHAIN_HEAD_REQUEST = 7;
|
|
|
|
CHAIN_HEAD_RESPONSE = 8;
|
|
|
|
BEACON_STATE_HASH_ANNOUNCE = 9;
|
|
|
|
BEACON_STATE_REQUEST = 10;
|
|
|
|
BEACON_STATE_RESPONSE = 11;
|
2019-01-21 18:41:16 +00:00
|
|
|
ATTESTATION_ANNOUNCE = 12;
|
|
|
|
ATTESTATION_REQUEST = 13;
|
|
|
|
ATTESTATION_RESPONSE = 14;
|
2018-09-09 03:05:36 +00:00
|
|
|
}
|
2018-08-29 16:32:54 +00:00
|
|
|
|
2019-03-17 02:56:05 +00:00
|
|
|
message Envelope {
|
|
|
|
bytes span_context = 1;
|
|
|
|
bytes payload = 2;
|
|
|
|
}
|
|
|
|
|
2018-11-21 18:00:36 +00:00
|
|
|
message BeaconBlockAnnounce {
|
2018-07-28 19:53:02 +00:00
|
|
|
bytes hash = 1;
|
2018-11-21 18:00:36 +00:00
|
|
|
uint64 slot_number = 2;
|
2018-07-28 19:53:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message BeaconBlockRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-08-07 12:12:10 +00:00
|
|
|
message BeaconBlockRequestBySlotNumber{
|
|
|
|
uint64 slot_number = 1;
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
message BeaconBlockResponse {
|
2018-08-05 23:23:31 +00:00
|
|
|
BeaconBlock block = 1;
|
2018-12-22 20:30:59 +00:00
|
|
|
Attestation attestation = 2;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|
|
|
|
|
2018-12-26 14:16:46 +00:00
|
|
|
message BatchedBeaconBlockRequest {
|
|
|
|
uint64 start_slot = 1;
|
|
|
|
uint64 end_slot =2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message BatchedBeaconBlockResponse {
|
|
|
|
repeated BeaconBlock batched_blocks = 1;
|
|
|
|
}
|
|
|
|
|
2018-11-20 19:43:07 +00:00
|
|
|
message ChainHeadRequest {}
|
2018-11-19 01:59:11 +00:00
|
|
|
|
|
|
|
message ChainHeadResponse {
|
|
|
|
bytes hash = 1;
|
|
|
|
uint64 slot = 2;
|
2019-03-12 20:44:21 +00:00
|
|
|
bytes finalized_state_root_hash32s =3;
|
2018-11-19 01:59:11 +00:00
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateHashAnnounce {
|
2018-07-31 00:29:40 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateRequest {
|
2019-03-12 20:44:21 +00:00
|
|
|
bytes finalized_state_root_hash32s = 1;
|
2018-07-31 00:29:40 +00:00
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateResponse {
|
2019-03-29 21:51:58 +00:00
|
|
|
BeaconState beacon_state = 1;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|
2019-01-21 18:41:16 +00:00
|
|
|
|
|
|
|
message AttestationAnnounce {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AttestationRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AttestationResponse {
|
|
|
|
bytes hash = 1;
|
|
|
|
Attestation attestation = 2;
|
|
|
|
}
|
2019-01-29 15:18:38 +00:00
|
|
|
|
|
|
|
message ProposerSlashingAnnounce {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ProposerSlashingRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ProposerSlashingResponse {
|
|
|
|
bytes hash = 1;
|
|
|
|
ProposerSlashing proposer_slashing = 2;
|
|
|
|
}
|
|
|
|
|
2019-01-30 10:11:13 +00:00
|
|
|
message AttesterSlashingAnnounce {
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2019-01-30 10:11:13 +00:00
|
|
|
message AttesterSlashingRequest {
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2019-01-30 10:11:13 +00:00
|
|
|
message AttesterSlashingResponse {
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
2019-01-30 10:11:13 +00:00
|
|
|
AttesterSlashing Attester_slashing = 2;
|
2019-01-29 15:18:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DepositAnnounce {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DepositRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DepositResponse {
|
|
|
|
bytes hash = 1;
|
|
|
|
Deposit deposit = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExitAnnounce {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExitRequest {
|
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExitResponse {
|
|
|
|
bytes hash = 1;
|
2019-02-18 16:52:16 +00:00
|
|
|
VoluntaryExit voluntary_exit = 2;
|
2019-01-29 15:18:38 +00:00
|
|
|
}
|