mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-31 23:41:22 +00:00
347 lines
12 KiB
Go
347 lines
12 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: messages.proto
|
||
|
|
||
|
package ethereum_messages_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_b2b448a5e8345e4f, []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_b2b448a5e8345e4f, []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_b2b448a5e8345e4f, []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 *Signture `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_b2b448a5e8345e4f, []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() *Signture {
|
||
|
if m != nil {
|
||
|
return m.Signature
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type Signture 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 *Signture) Reset() { *m = Signture{} }
|
||
|
func (m *Signture) String() string { return proto.CompactTextString(m) }
|
||
|
func (*Signture) ProtoMessage() {}
|
||
|
func (*Signture) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_messages_b2b448a5e8345e4f, []int{3}
|
||
|
}
|
||
|
func (m *Signture) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_Signture.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *Signture) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_Signture.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (dst *Signture) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_Signture.Merge(dst, src)
|
||
|
}
|
||
|
func (m *Signture) XXX_Size() int {
|
||
|
return xxx_messageInfo_Signture.Size(m)
|
||
|
}
|
||
|
func (m *Signture) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_Signture.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_Signture proto.InternalMessageInfo
|
||
|
|
||
|
func (m *Signture) GetV() uint64 {
|
||
|
if m != nil {
|
||
|
return m.V
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Signture) GetR() uint64 {
|
||
|
if m != nil {
|
||
|
return m.R
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *Signture) GetS() uint64 {
|
||
|
if m != nil {
|
||
|
return m.S
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*CollationBodyRequest)(nil), "ethereum.messages.v1.CollationBodyRequest")
|
||
|
proto.RegisterType((*CollationBodyResponse)(nil), "ethereum.messages.v1.CollationBodyResponse")
|
||
|
proto.RegisterType((*Transaction)(nil), "ethereum.messages.v1.Transaction")
|
||
|
proto.RegisterType((*Signture)(nil), "ethereum.messages.v1.Signture")
|
||
|
proto.RegisterEnum("ethereum.messages.v1.Topic", Topic_name, Topic_value)
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("messages.proto", fileDescriptor_messages_b2b448a5e8345e4f) }
|
||
|
|
||
|
var fileDescriptor_messages_b2b448a5e8345e4f = []byte{
|
||
|
// 445 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xcd, 0x6e, 0xd3, 0x4c,
|
||
|
0x14, 0x86, 0xbf, 0x69, 0xf3, 0x7b, 0x62, 0x7d, 0x58, 0xa3, 0x50, 0x0c, 0xe5, 0x27, 0xca, 0x2a,
|
||
|
0xb0, 0x88, 0xc4, 0xcf, 0x92, 0x4d, 0x1a, 0x22, 0x51, 0x11, 0xd9, 0xc5, 0x76, 0x85, 0x58, 0x59,
|
||
|
0x53, 0xfb, 0xc8, 0x1e, 0x91, 0xcc, 0x98, 0x39, 0x76, 0xa4, 0x5e, 0x16, 0x17, 0xc5, 0x7d, 0xa0,
|
||
|
0xb1, 0x9d, 0x52, 0x01, 0x3b, 0x3f, 0xef, 0x7b, 0x34, 0x3e, 0xcf, 0xd8, 0x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