mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
350 lines
12 KiB
Go
350 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: proto/sharding/p2p/v1/messages.proto
|
|
|
|
package 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
|
|
)
|
|
|
|
var Topic_name = map[int32]string{
|
|
0: "UNKNOWN",
|
|
1: "COLLATION_BODY_REQUEST",
|
|
2: "COLLATION_BODY_RESPONSE",
|
|
3: "TRANSACTIONS",
|
|
}
|
|
var Topic_value = map[string]int32{
|
|
"UNKNOWN": 0,
|
|
"COLLATION_BODY_REQUEST": 1,
|
|
"COLLATION_BODY_RESPONSE": 2,
|
|
"TRANSACTIONS": 3,
|
|
}
|
|
|
|
func (x Topic) String() string {
|
|
return proto.EnumName(Topic_name, int32(x))
|
|
}
|
|
func (Topic) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_messages_8b1affe159ebec96, []int{0}
|
|
}
|
|
|
|
type CollationBodyRequest struct {
|
|
ShardId uint64 `protobuf:"varint,1,opt,name=shard_id,json=shardId" json:"shard_id,omitempty"`
|
|
Period uint64 `protobuf:"varint,2,opt,name=period" 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_8b1affe159ebec96, []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_8b1affe159ebec96, []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" json:"nonce,omitempty"`
|
|
GasPrice uint64 `protobuf:"varint,2,opt,name=gas_price,json=gasPrice" json:"gas_price,omitempty"`
|
|
GasLimit uint64 `protobuf:"varint,3,opt,name=gas_limit,json=gasLimit" json:"gas_limit,omitempty"`
|
|
Recipient []byte `protobuf:"bytes,4,opt,name=recipient,proto3" json:"recipient,omitempty"`
|
|
Value uint64 `protobuf:"varint,5,opt,name=value" json:"value,omitempty"`
|
|
Input []byte `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
|
|
Signature *Signature `protobuf:"bytes,7,opt,name=signature" 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_8b1affe159ebec96, []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" json:"v,omitempty"`
|
|
R uint64 `protobuf:"varint,2,opt,name=r" json:"r,omitempty"`
|
|
S uint64 `protobuf:"varint,3,opt,name=s" 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_8b1affe159ebec96, []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_8b1affe159ebec96)
|
|
}
|
|
|
|
var fileDescriptor_messages_8b1affe159ebec96 = []byte{
|
|
// 459 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74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