mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
362 lines
13 KiB
Go
362 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: proto/sharding/p2p/v1/messages.proto
|
|
|
|
package ethereum_sharding_p2p_v1
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type Topic int32
|
|
|
|
const (
|
|
Topic_UNKNOWN Topic = 0
|
|
Topic_COLLATION_BODY_REQUEST Topic = 1
|
|
Topic_COLLATION_BODY_RESPONSE Topic = 2
|
|
Topic_TRANSACTIONS Topic = 3
|
|
Topic_BEACON_BLOCK_HASH_ANNOUNCE Topic = 4
|
|
Topic_BEACON_BLOCK_REQUEST Topic = 5
|
|
Topic_BEACON_BLOCK_RESPONSE Topic = 6
|
|
)
|
|
|
|
var Topic_name = map[int32]string{
|
|
0: "UNKNOWN",
|
|
1: "COLLATION_BODY_REQUEST",
|
|
2: "COLLATION_BODY_RESPONSE",
|
|
3: "TRANSACTIONS",
|
|
4: "BEACON_BLOCK_HASH_ANNOUNCE",
|
|
5: "BEACON_BLOCK_REQUEST",
|
|
6: "BEACON_BLOCK_RESPONSE",
|
|
}
|
|
var Topic_value = map[string]int32{
|
|
"UNKNOWN": 0,
|
|
"COLLATION_BODY_REQUEST": 1,
|
|
"COLLATION_BODY_RESPONSE": 2,
|
|
"TRANSACTIONS": 3,
|
|
"BEACON_BLOCK_HASH_ANNOUNCE": 4,
|
|
"BEACON_BLOCK_REQUEST": 5,
|
|
"BEACON_BLOCK_RESPONSE": 6,
|
|
}
|
|
|
|
func (x Topic) String() string {
|
|
return proto.EnumName(Topic_name, int32(x))
|
|
}
|
|
func (Topic) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_messages_a2b5338ab8a3879b, []int{0}
|
|
}
|
|
|
|
type CollationBodyRequest struct {
|
|
ShardId uint64 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
|
|
Period uint64 `protobuf:"varint,2,opt,name=period,proto3" json:"period,omitempty"`
|
|
ChunkRoot []byte `protobuf:"bytes,3,opt,name=chunk_root,json=chunkRoot,proto3" json:"chunk_root,omitempty"`
|
|
ProposerAddress []byte `protobuf:"bytes,4,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"`
|
|
Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CollationBodyRequest) Reset() { *m = CollationBodyRequest{} }
|
|
func (m *CollationBodyRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CollationBodyRequest) ProtoMessage() {}
|
|
func (*CollationBodyRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_messages_a2b5338ab8a3879b, []int{0}
|
|
}
|
|
func (m *CollationBodyRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CollationBodyRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *CollationBodyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CollationBodyRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *CollationBodyRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CollationBodyRequest.Merge(dst, src)
|
|
}
|
|
func (m *CollationBodyRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CollationBodyRequest.Size(m)
|
|
}
|
|
func (m *CollationBodyRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CollationBodyRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CollationBodyRequest proto.InternalMessageInfo
|
|
|
|
func (m *CollationBodyRequest) GetShardId() uint64 {
|
|
if m != nil {
|
|
return m.ShardId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CollationBodyRequest) GetPeriod() uint64 {
|
|
if m != nil {
|
|
return m.Period
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CollationBodyRequest) GetChunkRoot() []byte {
|
|
if m != nil {
|
|
return m.ChunkRoot
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CollationBodyRequest) GetProposerAddress() []byte {
|
|
if m != nil {
|
|
return m.ProposerAddress
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CollationBodyRequest) GetSignature() []byte {
|
|
if m != nil {
|
|
return m.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CollationBodyResponse struct {
|
|
HeaderHash []byte `protobuf:"bytes,1,opt,name=header_hash,json=headerHash,proto3" json:"header_hash,omitempty"`
|
|
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CollationBodyResponse) Reset() { *m = CollationBodyResponse{} }
|
|
func (m *CollationBodyResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CollationBodyResponse) ProtoMessage() {}
|
|
func (*CollationBodyResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_messages_a2b5338ab8a3879b, []int{1}
|
|
}
|
|
func (m *CollationBodyResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CollationBodyResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *CollationBodyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CollationBodyResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *CollationBodyResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CollationBodyResponse.Merge(dst, src)
|
|
}
|
|
func (m *CollationBodyResponse) XXX_Size() int {
|
|
return xxx_messageInfo_CollationBodyResponse.Size(m)
|
|
}
|
|
func (m *CollationBodyResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CollationBodyResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CollationBodyResponse proto.InternalMessageInfo
|
|
|
|
func (m *CollationBodyResponse) GetHeaderHash() []byte {
|
|
if m != nil {
|
|
return m.HeaderHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CollationBodyResponse) GetBody() []byte {
|
|
if m != nil {
|
|
return m.Body
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Transaction struct {
|
|
Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
|
|
GasPrice uint64 `protobuf:"varint,2,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
|
|
GasLimit uint64 `protobuf:"varint,3,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
|
|
Recipient []byte `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
|
|
Value uint64 `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"`
|
|
Input []byte `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
|
|
Signature *Signature `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Transaction) Reset() { *m = Transaction{} }
|
|
func (m *Transaction) String() string { return proto.CompactTextString(m) }
|
|
func (*Transaction) ProtoMessage() {}
|
|
func (*Transaction) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_messages_a2b5338ab8a3879b, []int{2}
|
|
}
|
|
func (m *Transaction) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Transaction.Unmarshal(m, b)
|
|
}
|
|
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Transaction.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Transaction) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Transaction.Merge(dst, src)
|
|
}
|
|
func (m *Transaction) XXX_Size() int {
|
|
return xxx_messageInfo_Transaction.Size(m)
|
|
}
|
|
func (m *Transaction) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Transaction.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Transaction proto.InternalMessageInfo
|
|
|
|
func (m *Transaction) GetNonce() uint64 {
|
|
if m != nil {
|
|
return m.Nonce
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Transaction) GetGasPrice() uint64 {
|
|
if m != nil {
|
|
return m.GasPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Transaction) GetGasLimit() uint64 {
|
|
if m != nil {
|
|
return m.GasLimit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Transaction) GetRecipient() []byte {
|
|
if m != nil {
|
|
return m.Recipient
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Transaction) GetValue() uint64 {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Transaction) GetInput() []byte {
|
|
if m != nil {
|
|
return m.Input
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Transaction) GetSignature() *Signature {
|
|
if m != nil {
|
|
return m.Signature
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Signature struct {
|
|
V uint64 `protobuf:"varint,1,opt,name=v,proto3" json:"v,omitempty"`
|
|
R uint64 `protobuf:"varint,2,opt,name=r,proto3" json:"r,omitempty"`
|
|
S uint64 `protobuf:"varint,3,opt,name=s,proto3" json:"s,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Signature) Reset() { *m = Signature{} }
|
|
func (m *Signature) String() string { return proto.CompactTextString(m) }
|
|
func (*Signature) ProtoMessage() {}
|
|
func (*Signature) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_messages_a2b5338ab8a3879b, []int{3}
|
|
}
|
|
func (m *Signature) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Signature.Unmarshal(m, b)
|
|
}
|
|
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *Signature) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Signature.Merge(dst, src)
|
|
}
|
|
func (m *Signature) XXX_Size() int {
|
|
return xxx_messageInfo_Signature.Size(m)
|
|
}
|
|
func (m *Signature) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Signature.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Signature proto.InternalMessageInfo
|
|
|
|
func (m *Signature) GetV() uint64 {
|
|
if m != nil {
|
|
return m.V
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Signature) GetR() uint64 {
|
|
if m != nil {
|
|
return m.R
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Signature) GetS() uint64 {
|
|
if m != nil {
|
|
return m.S
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*CollationBodyRequest)(nil), "ethereum.sharding.p2p.v1.CollationBodyRequest")
|
|
proto.RegisterType((*CollationBodyResponse)(nil), "ethereum.sharding.p2p.v1.CollationBodyResponse")
|
|
proto.RegisterType((*Transaction)(nil), "ethereum.sharding.p2p.v1.Transaction")
|
|
proto.RegisterType((*Signature)(nil), "ethereum.sharding.p2p.v1.Signature")
|
|
proto.RegisterEnum("ethereum.sharding.p2p.v1.Topic", Topic_name, Topic_value)
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("proto/sharding/p2p/v1/messages.proto", fileDescriptor_messages_a2b5338ab8a3879b)
|
|
}
|
|
|
|
var fileDescriptor_messages_a2b5338ab8a3879b = []byte{
|
|
// 503 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xdd, 0x6a, 0xdb, 0x3c,
|
|
0x18, 0xc7, 0x5f, 0xb5, 0xf9, 0x68, 0x9e, 0x04, 0x5e, 0x23, 0xd2, 0xce, 0x6d, 0xf7, 0x11, 0xb2,
|
|
0x1d, 0x64, 0x3b, 0x70, 0x68, 0xc6, 0x2e, 0xc0, 0xf1, 0x02, 0x29, 0x0d, 0x76, 0x67, 0x27, 0x8c,
|
|
0x1d, 0x19, 0xd5, 0x16, 0xb1, 0x58, 0x62, 0x69, 0x92, 0x1d, 0xe8, 0x65, 0x0d, 0x76, 0x55, 0xbb,
|
|
0x8a, 0x21, 0xd9, 0xee, 0xba, 0x8e, 0x9d, 0xf9, 0xff, 0x81, 0x9e, 0xe7, 0x27, 0x0b, 0xde, 0x08,
|
|
0xc9, 0x0b, 0x3e, 0x55, 0x19, 0x91, 0x29, 0xcb, 0xb7, 0x53, 0x31, 0x13, 0xd3, 0xc3, 0xd5, 0x74,
|
|
0x4f, 0x95, 0x22, 0x5b, 0xaa, 0x1c, 0x13, 0x63, 0x9b, 0x16, 0x19, 0x95, 0xb4, 0xdc, 0x3b, 0x4d,
|
|
0xd1, 0x11, 0x33, 0xe1, 0x1c, 0xae, 0xc6, 0xdf, 0x11, 0x0c, 0x3d, 0xbe, 0xdb, 0x91, 0x82, 0xf1,
|
|
0x7c,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