mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
5aac06f04e
* begin move * use same import path * imports * regen protos * regen * no rename * generate ssz * gaz * fmt * edit build file * imports * modify * remove generated files * remove protos * edit imports in prysm * beacon chain all builds * edit script * add generated pbs * add replace rules * license for ethereumapis protos * change visibility * fmt * update build files to gaz ignore * use proper form * edit imports * wrap block * revert scripts * revert go mod
52 lines
1.7 KiB
Protocol Buffer
52 lines
1.7 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package ethereum.beacon.p2p.v1;
|
|
|
|
import "google/protobuf/descriptor.proto";
|
|
import "proto/eth/ext/options.proto";
|
|
|
|
message Status {
|
|
bytes fork_digest = 1 [(ethereum.eth.ext.ssz_size) = "4"];
|
|
bytes finalized_root = 2 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
uint64 finalized_epoch = 3 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/eth2-types.Epoch"];
|
|
bytes head_root = 4 [(ethereum.eth.ext.ssz_size) = "32"];
|
|
uint64 head_slot = 5 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/eth2-types.Slot"];
|
|
}
|
|
|
|
message BeaconBlocksByRangeRequest {
|
|
uint64 start_slot = 1 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/eth2-types.Slot"];
|
|
uint64 count = 2;
|
|
uint64 step = 3;
|
|
}
|
|
|
|
message ENRForkID {
|
|
bytes current_fork_digest = 1 [(ethereum.eth.ext.ssz_size) = "4"];
|
|
bytes next_fork_version = 2 [(ethereum.eth.ext.ssz_size) = "4"];
|
|
uint64 next_fork_epoch = 3 [(ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/eth2-types.Epoch"];
|
|
}
|
|
/*
|
|
Spec Definition:
|
|
MetaData
|
|
(
|
|
seq_number: uint64
|
|
attnets: Bitvector[ATTESTATION_SUBNET_COUNT]
|
|
)
|
|
*/
|
|
message MetaDataV0 {
|
|
uint64 seq_number = 1;
|
|
bytes attnets = 2 [(ethereum.eth.ext.ssz_size) = "8", (ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/go-bitfield.Bitvector64"];
|
|
}
|
|
|
|
/*
|
|
Spec Definition:
|
|
MetaData
|
|
(
|
|
seq_number: uint64
|
|
attnets: Bitvector[ATTESTATION_SUBNET_COUNT]
|
|
)
|
|
*/
|
|
message MetaDataV1 {
|
|
uint64 seq_number = 1;
|
|
bytes attnets = 2 [(ethereum.eth.ext.ssz_size) = "8", (ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/go-bitfield.Bitvector64"];
|
|
bytes syncnets = 3 [(ethereum.eth.ext.ssz_size) = "64", (ethereum.eth.ext.cast_type) = "github.com/prysmaticlabs/go-bitfield.Bitvector512"];
|
|
} |