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";
|
2019-07-22 14:03:57 +00:00
|
|
|
import "proto/eth/v1alpha1/attestation.proto";
|
|
|
|
import "proto/eth/v1alpha1/beacon_block.proto";
|
2019-05-16 04:28:02 +00:00
|
|
|
import "google/protobuf/timestamp.proto";
|
2019-08-10 20:13:04 +00:00
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
|
2018-08-29 16:32:54 +00:00
|
|
|
enum Topic {
|
|
|
|
UNKNOWN = 0;
|
2019-08-13 17:33:04 +00:00
|
|
|
BEACON_BLOCK_ANNOUNCE = 1 [deprecated=true];
|
|
|
|
BEACON_BLOCK_REQUEST = 2 [deprecated=true];
|
|
|
|
BEACON_BLOCK_REQUEST_BY_SLOT_NUMBER = 3 [deprecated=true];
|
|
|
|
BEACON_BLOCK_RESPONSE = 4 [deprecated=true];
|
|
|
|
BATCHED_BEACON_BLOCK_REQUEST = 5 [deprecated=true];
|
|
|
|
BATCHED_BEACON_BLOCK_RESPONSE = 6 [deprecated=true];
|
|
|
|
CHAIN_HEAD_REQUEST = 7 [deprecated=true];
|
|
|
|
CHAIN_HEAD_RESPONSE = 8 [deprecated=true];
|
|
|
|
BEACON_STATE_HASH_ANNOUNCE = 9 [deprecated=true];
|
|
|
|
BEACON_STATE_REQUEST = 10 [deprecated=true];
|
|
|
|
BEACON_STATE_RESPONSE = 11 [deprecated=true];
|
|
|
|
BEACON_ATTESTATION = 12 [deprecated=true];
|
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;
|
2019-05-16 04:28:02 +00:00
|
|
|
google.protobuf.Timestamp timestamp = 3;
|
2019-03-17 02:56:05 +00:00
|
|
|
}
|
|
|
|
|
2018-11-21 18:00:36 +00:00
|
|
|
message BeaconBlockAnnounce {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
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 {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2018-07-28 19:53:02 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2019-05-01 19:14:22 +00:00
|
|
|
message BeaconBlockRequestBySlotNumber {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2018-08-07 12:12:10 +00:00
|
|
|
uint64 slot_number = 1;
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
message BeaconBlockResponse {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-07-22 14:03:57 +00:00
|
|
|
ethereum.eth.v1alpha1.BeaconBlock block = 1;
|
|
|
|
ethereum.eth.v1alpha1.Attestation attestation = 2;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|
|
|
|
|
2018-12-26 14:16:46 +00:00
|
|
|
message BatchedBeaconBlockRequest {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-05-08 23:23:07 +00:00
|
|
|
uint64 start_slot = 1 [deprecated=true];
|
|
|
|
uint64 end_slot = 2 [deprecated=true];
|
|
|
|
bytes finalized_root = 3;
|
|
|
|
bytes canonical_root = 4;
|
2018-12-26 14:16:46 +00:00
|
|
|
}
|
2019-05-01 19:14:22 +00:00
|
|
|
|
2018-12-26 14:16:46 +00:00
|
|
|
message BatchedBeaconBlockResponse {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-07-22 14:03:57 +00:00
|
|
|
repeated ethereum.eth.v1alpha1.BeaconBlock batched_blocks = 1;
|
2018-12-26 14:16:46 +00:00
|
|
|
}
|
|
|
|
|
2019-08-13 17:33:04 +00:00
|
|
|
message ChainHeadRequest {
|
|
|
|
option deprecated = true;
|
|
|
|
}
|
2018-11-19 01:59:11 +00:00
|
|
|
|
|
|
|
message ChainHeadResponse {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-04-05 03:39:51 +00:00
|
|
|
uint64 canonical_slot = 1;
|
|
|
|
bytes canonical_state_root_hash32 = 2;
|
2019-04-03 15:13:19 +00:00
|
|
|
bytes finalized_state_root_hash32s = 3;
|
2019-05-08 23:23:07 +00:00
|
|
|
bytes canonical_block_root = 4;
|
|
|
|
bytes finalized_block_root = 5;
|
2018-11-19 01:59:11 +00:00
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateHashAnnounce {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2018-07-31 00:29:40 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2018-12-01 22:09:12 +00:00
|
|
|
message BeaconStateRequest {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
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-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-04-03 15:13:19 +00:00
|
|
|
BeaconState finalized_state = 1;
|
2019-07-24 14:53:38 +00:00
|
|
|
ethereum.eth.v1alpha1.BeaconBlock finalized_block = 2;
|
2018-08-05 23:23:31 +00:00
|
|
|
}
|
2019-01-21 18:41:16 +00:00
|
|
|
|
2019-05-17 02:06:40 +00:00
|
|
|
message FinalizedStateAnnounce {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-05-17 02:06:40 +00:00
|
|
|
bytes block_root = 1;
|
|
|
|
bytes state_root = 2;
|
|
|
|
uint64 slot = 3;
|
|
|
|
}
|
|
|
|
|
2019-01-29 15:18:38 +00:00
|
|
|
message ProposerSlashingAnnounce {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ProposerSlashingRequest {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ProposerSlashingResponse {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
2019-07-22 14:03:57 +00:00
|
|
|
ethereum.eth.v1alpha1.ProposerSlashing proposer_slashing = 2;
|
2019-01-29 15:18:38 +00:00
|
|
|
}
|
|
|
|
|
2019-01-30 10:11:13 +00:00
|
|
|
message AttesterSlashingAnnounce {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2019-01-30 10:11:13 +00:00
|
|
|
message AttesterSlashingRequest {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
2019-01-30 10:11:13 +00:00
|
|
|
message AttesterSlashingResponse {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
2019-07-22 14:03:57 +00:00
|
|
|
ethereum.eth.v1alpha1.AttesterSlashing Attester_slashing = 2;
|
2019-01-29 15:18:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DepositAnnounce {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DepositRequest {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DepositResponse {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
2019-07-22 14:03:57 +00:00
|
|
|
ethereum.eth.v1alpha1.Deposit deposit = 2;
|
2019-01-29 15:18:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ExitAnnounce {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExitRequest {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ExitResponse {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-01-29 15:18:38 +00:00
|
|
|
bytes hash = 1;
|
2019-07-22 14:03:57 +00:00
|
|
|
ethereum.eth.v1alpha1.VoluntaryExit voluntary_exit = 2;
|
2019-01-29 15:18:38 +00:00
|
|
|
}
|
2019-04-27 19:08:27 +00:00
|
|
|
|
|
|
|
message Handshake {
|
2019-08-13 17:33:04 +00:00
|
|
|
option deprecated = true;
|
2019-04-27 19:08:27 +00:00
|
|
|
string deposit_contract_address = 1;
|
|
|
|
}
|