2018-07-17 18:39:04 +00:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2018-07-28 19:53:02 +00:00
|
|
|
// source: proto/sharding/v1/messages.proto
|
2018-07-17 18:39:04 +00:00
|
|
|
|
|
|
|
package ethereum_messages_v1
|
|
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
|
import fmt "fmt"
|
|
|
|
import math "math"
|
2018-07-28 19:53:02 +00:00
|
|
|
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
2018-07-17 18:39:04 +00:00
|
|
|
|
|
|
|
// 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 (
|
2018-07-28 19:53:02 +00:00
|
|
|
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
|
2018-07-17 18:39:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var Topic_name = map[int32]string{
|
|
|
|
0: "UNKNOWN",
|
|
|
|
1: "COLLATION_BODY_REQUEST",
|
|
|
|
2: "COLLATION_BODY_RESPONSE",
|
|
|
|
3: "TRANSACTIONS",
|
2018-07-28 19:53:02 +00:00
|
|
|
4: "BEACON_BLOCK_HASH_ANNOUNCE",
|
|
|
|
5: "BEACON_BLOCK_REQUEST",
|
|
|
|
6: "BEACON_BLOCK_RESPONSE",
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
|
|
|
var Topic_value = map[string]int32{
|
2018-07-28 19:53:02 +00:00
|
|
|
"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,
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x Topic) String() string {
|
|
|
|
return proto.EnumName(Topic_name, int32(x))
|
|
|
|
}
|
|
|
|
func (Topic) EnumDescriptor() ([]byte, []int) {
|
2018-07-28 19:53:02 +00:00
|
|
|
return fileDescriptor_messages_ebbb8b6f046bbe65, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type BeaconBlockHashAnnounce struct {
|
|
|
|
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockHashAnnounce) Reset() { *m = BeaconBlockHashAnnounce{} }
|
|
|
|
func (m *BeaconBlockHashAnnounce) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BeaconBlockHashAnnounce) ProtoMessage() {}
|
|
|
|
func (*BeaconBlockHashAnnounce) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_messages_ebbb8b6f046bbe65, []int{0}
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockHashAnnounce) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_BeaconBlockHashAnnounce.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockHashAnnounce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_BeaconBlockHashAnnounce.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *BeaconBlockHashAnnounce) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BeaconBlockHashAnnounce.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockHashAnnounce) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_BeaconBlockHashAnnounce.Size(m)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockHashAnnounce) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BeaconBlockHashAnnounce.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BeaconBlockHashAnnounce proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *BeaconBlockHashAnnounce) GetHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Hash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type BeaconBlockRequest struct {
|
|
|
|
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockRequest) Reset() { *m = BeaconBlockRequest{} }
|
|
|
|
func (m *BeaconBlockRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BeaconBlockRequest) ProtoMessage() {}
|
|
|
|
func (*BeaconBlockRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_messages_ebbb8b6f046bbe65, []int{1}
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_BeaconBlockRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_BeaconBlockRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *BeaconBlockRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BeaconBlockRequest.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_BeaconBlockRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BeaconBlockRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BeaconBlockRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *BeaconBlockRequest) GetHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Hash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type BeaconBlockResponse struct {
|
|
|
|
ParentHash []byte `protobuf:"bytes,1,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
|
|
|
|
SlotNumber uint64 `protobuf:"varint,2,opt,name=slot_number,json=slotNumber,proto3" json:"slot_number,omitempty"`
|
|
|
|
RandaoReveal []byte `protobuf:"bytes,3,opt,name=randao_reveal,json=randaoReveal,proto3" json:"randao_reveal,omitempty"`
|
|
|
|
AttestationBitmask []byte `protobuf:"bytes,4,opt,name=attestation_bitmask,json=attestationBitmask,proto3" json:"attestation_bitmask,omitempty"`
|
|
|
|
AttestationAggregateSig []uint32 `protobuf:"varint,5,rep,packed,name=attestation_aggregate_sig,json=attestationAggregateSig,proto3" json:"attestation_aggregate_sig,omitempty"`
|
|
|
|
ShardAggregateVotes []*AggregateVote `protobuf:"bytes,6,rep,name=shard_aggregate_votes,json=shardAggregateVotes,proto3" json:"shard_aggregate_votes,omitempty"`
|
|
|
|
MainChainRef []byte `protobuf:"bytes,7,opt,name=main_chain_ref,json=mainChainRef,proto3" json:"main_chain_ref,omitempty"`
|
|
|
|
ActiveStateHash []byte `protobuf:"bytes,8,opt,name=active_state_hash,json=activeStateHash,proto3" json:"active_state_hash,omitempty"`
|
|
|
|
CrystallizedStateHash []byte `protobuf:"bytes,9,opt,name=crystallized_state_hash,json=crystallizedStateHash,proto3" json:"crystallized_state_hash,omitempty"`
|
|
|
|
Timestamp *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) Reset() { *m = BeaconBlockResponse{} }
|
|
|
|
func (m *BeaconBlockResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*BeaconBlockResponse) ProtoMessage() {}
|
|
|
|
func (*BeaconBlockResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_messages_ebbb8b6f046bbe65, []int{2}
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_BeaconBlockResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_BeaconBlockResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *BeaconBlockResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_BeaconBlockResponse.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_BeaconBlockResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *BeaconBlockResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_BeaconBlockResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_BeaconBlockResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetParentHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ParentHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetSlotNumber() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.SlotNumber
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetRandaoReveal() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.RandaoReveal
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetAttestationBitmask() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.AttestationBitmask
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetAttestationAggregateSig() []uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AttestationAggregateSig
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetShardAggregateVotes() []*AggregateVote {
|
|
|
|
if m != nil {
|
|
|
|
return m.ShardAggregateVotes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetMainChainRef() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.MainChainRef
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetActiveStateHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ActiveStateHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetCrystallizedStateHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.CrystallizedStateHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *BeaconBlockResponse) GetTimestamp() *timestamp.Timestamp {
|
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type AggregateVote struct {
|
|
|
|
ShardId uint32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
|
|
|
|
ShardBlockHash []byte `protobuf:"bytes,2,opt,name=shard_block_hash,json=shardBlockHash,proto3" json:"shard_block_hash,omitempty"`
|
|
|
|
SignerBitmask []byte `protobuf:"bytes,3,opt,name=signer_bitmask,json=signerBitmask,proto3" json:"signer_bitmask,omitempty"`
|
|
|
|
AggregateSig []uint32 `protobuf:"varint,4,rep,packed,name=aggregate_sig,json=aggregateSig,proto3" json:"aggregate_sig,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AggregateVote) Reset() { *m = AggregateVote{} }
|
|
|
|
func (m *AggregateVote) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*AggregateVote) ProtoMessage() {}
|
|
|
|
func (*AggregateVote) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_messages_ebbb8b6f046bbe65, []int{3}
|
|
|
|
}
|
|
|
|
func (m *AggregateVote) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_AggregateVote.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *AggregateVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_AggregateVote.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (dst *AggregateVote) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_AggregateVote.Merge(dst, src)
|
|
|
|
}
|
|
|
|
func (m *AggregateVote) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_AggregateVote.Size(m)
|
|
|
|
}
|
|
|
|
func (m *AggregateVote) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_AggregateVote.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_AggregateVote proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *AggregateVote) GetShardId() uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.ShardId
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AggregateVote) GetShardBlockHash() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.ShardBlockHash
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AggregateVote) GetSignerBitmask() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.SignerBitmask
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *AggregateVote) GetAggregateSig() []uint32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.AggregateSig
|
|
|
|
}
|
|
|
|
return nil
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
2018-07-28 19:53:02 +00:00
|
|
|
return fileDescriptor_messages_ebbb8b6f046bbe65, []int{4}
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
|
|
|
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) {
|
2018-07-28 19:53:02 +00:00
|
|
|
return fileDescriptor_messages_ebbb8b6f046bbe65, []int{5}
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
|
|
|
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 {
|
2018-07-28 19:53:02 +00:00
|
|
|
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:"-"`
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Transaction) Reset() { *m = Transaction{} }
|
|
|
|
func (m *Transaction) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Transaction) ProtoMessage() {}
|
|
|
|
func (*Transaction) Descriptor() ([]byte, []int) {
|
2018-07-28 19:53:02 +00:00
|
|
|
return fileDescriptor_messages_ebbb8b6f046bbe65, []int{6}
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
func (m *Transaction) GetSignature() *Signature {
|
2018-07-17 18:39:04 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Signature
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
type Signature struct {
|
2018-07-17 18:39:04 +00:00
|
|
|
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:"-"`
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
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_ebbb8b6f046bbe65, []int{7}
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
2018-07-28 19:53:02 +00:00
|
|
|
func (m *Signature) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Signature.Unmarshal(m, b)
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
2018-07-28 19:53:02 +00:00
|
|
|
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
2018-07-28 19:53:02 +00:00
|
|
|
func (dst *Signature) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Signature.Merge(dst, src)
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
2018-07-28 19:53:02 +00:00
|
|
|
func (m *Signature) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Signature.Size(m)
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
2018-07-28 19:53:02 +00:00
|
|
|
func (m *Signature) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Signature.DiscardUnknown(m)
|
2018-07-17 18:39:04 +00:00
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
var xxx_messageInfo_Signature proto.InternalMessageInfo
|
2018-07-17 18:39:04 +00:00
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
func (m *Signature) GetV() uint64 {
|
2018-07-17 18:39:04 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.V
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
func (m *Signature) GetR() uint64 {
|
2018-07-17 18:39:04 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.R
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
func (m *Signature) GetS() uint64 {
|
2018-07-17 18:39:04 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.S
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2018-07-28 19:53:02 +00:00
|
|
|
proto.RegisterType((*BeaconBlockHashAnnounce)(nil), "ethereum.messages.v1.BeaconBlockHashAnnounce")
|
|
|
|
proto.RegisterType((*BeaconBlockRequest)(nil), "ethereum.messages.v1.BeaconBlockRequest")
|
|
|
|
proto.RegisterType((*BeaconBlockResponse)(nil), "ethereum.messages.v1.BeaconBlockResponse")
|
|
|
|
proto.RegisterType((*AggregateVote)(nil), "ethereum.messages.v1.AggregateVote")
|
2018-07-17 18:39:04 +00:00
|
|
|
proto.RegisterType((*CollationBodyRequest)(nil), "ethereum.messages.v1.CollationBodyRequest")
|
|
|
|
proto.RegisterType((*CollationBodyResponse)(nil), "ethereum.messages.v1.CollationBodyResponse")
|
|
|
|
proto.RegisterType((*Transaction)(nil), "ethereum.messages.v1.Transaction")
|
2018-07-28 19:53:02 +00:00
|
|
|
proto.RegisterType((*Signature)(nil), "ethereum.messages.v1.Signature")
|
2018-07-17 18:39:04 +00:00
|
|
|
proto.RegisterEnum("ethereum.messages.v1.Topic", Topic_name, Topic_value)
|
|
|
|
}
|
|
|
|
|
2018-07-28 19:53:02 +00:00
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("proto/sharding/v1/messages.proto", fileDescriptor_messages_ebbb8b6f046bbe65)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_messages_ebbb8b6f046bbe65 = []byte{
|
|
|
|
// 839 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x54, 0xed, 0x6e, 0xe2, 0x46,
|
|
|
|
0x14, 0xad, 0x13, 0x20, 0xe1, 0x02, 0x59, 0x3a, 0x49, 0x36, 0x4e, 0xb6, 0x6d, 0x10, 0x69, 0x25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