Documentation
¶
Index ¶
- Variables
- type CollationBodyRequest
- func (*CollationBodyRequest) Descriptor() ([]byte, []int)
- func (m *CollationBodyRequest) GetChunkRoot() []byte
- func (m *CollationBodyRequest) GetPeriod() uint64
- func (m *CollationBodyRequest) GetProposerAddress() []byte
- func (m *CollationBodyRequest) GetShardId() uint64
- func (m *CollationBodyRequest) GetSignature() []byte
- func (m *CollationBodyRequest) Marshal() (dAtA []byte, err error)
- func (m *CollationBodyRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CollationBodyRequest) ProtoMessage()
- func (m *CollationBodyRequest) Reset()
- func (m *CollationBodyRequest) Size() (n int)
- func (m *CollationBodyRequest) String() string
- func (m *CollationBodyRequest) Unmarshal(dAtA []byte) error
- func (m *CollationBodyRequest) XXX_DiscardUnknown()
- func (m *CollationBodyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollationBodyRequest) XXX_Merge(src proto.Message)
- func (m *CollationBodyRequest) XXX_Size() int
- func (m *CollationBodyRequest) XXX_Unmarshal(b []byte) error
- type CollationBodyResponse
- func (*CollationBodyResponse) Descriptor() ([]byte, []int)
- func (m *CollationBodyResponse) GetBody() []byte
- func (m *CollationBodyResponse) GetHeaderHash() []byte
- func (m *CollationBodyResponse) Marshal() (dAtA []byte, err error)
- func (m *CollationBodyResponse) MarshalTo(dAtA []byte) (int, error)
- func (*CollationBodyResponse) ProtoMessage()
- func (m *CollationBodyResponse) Reset()
- func (m *CollationBodyResponse) Size() (n int)
- func (m *CollationBodyResponse) String() string
- func (m *CollationBodyResponse) Unmarshal(dAtA []byte) error
- func (m *CollationBodyResponse) XXX_DiscardUnknown()
- func (m *CollationBodyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollationBodyResponse) XXX_Merge(src proto.Message)
- func (m *CollationBodyResponse) XXX_Size() int
- func (m *CollationBodyResponse) XXX_Unmarshal(b []byte) error
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)
- func (m *Signature) GetR() uint64
- func (m *Signature) GetS() uint64
- func (m *Signature) GetV() uint64
- func (m *Signature) Marshal() (dAtA []byte, err error)
- func (m *Signature) MarshalTo(dAtA []byte) (int, error)
- func (*Signature) ProtoMessage()
- func (m *Signature) Reset()
- func (m *Signature) Size() (n int)
- func (m *Signature) String() string
- func (m *Signature) Unmarshal(dAtA []byte) error
- func (m *Signature) XXX_DiscardUnknown()
- func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Signature) XXX_Merge(src proto.Message)
- func (m *Signature) XXX_Size() int
- func (m *Signature) XXX_Unmarshal(b []byte) error
- type Topic
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetGasLimit() uint64
- func (m *Transaction) GetGasPrice() uint64
- func (m *Transaction) GetInput() []byte
- func (m *Transaction) GetNonce() uint64
- func (m *Transaction) GetRecipient() []byte
- func (m *Transaction) GetSignature() *Signature
- func (m *Transaction) GetValue() uint64
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) Size() (n int)
- func (m *Transaction) String() string
- func (m *Transaction) Unmarshal(dAtA []byte) error
- func (m *Transaction) XXX_DiscardUnknown()
- func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Transaction) XXX_Merge(src proto.Message)
- func (m *Transaction) XXX_Size() int
- func (m *Transaction) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMessages = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMessages = fmt.Errorf("proto: integer overflow") )
View Source
var Topic_name = map[int32]string{
0: "UNKNOWN",
1: "COLLATION_BODY_REQUEST",
2: "COLLATION_BODY_RESPONSE",
3: "TRANSACTIONS",
}
View Source
var Topic_value = map[string]int32{
"UNKNOWN": 0,
"COLLATION_BODY_REQUEST": 1,
"COLLATION_BODY_RESPONSE": 2,
"TRANSACTIONS": 3,
}
Functions ¶
This section is empty.
Types ¶
type CollationBodyRequest ¶
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 (*CollationBodyRequest) Descriptor ¶
func (*CollationBodyRequest) Descriptor() ([]byte, []int)
func (*CollationBodyRequest) GetChunkRoot ¶
func (m *CollationBodyRequest) GetChunkRoot() []byte
func (*CollationBodyRequest) GetPeriod ¶
func (m *CollationBodyRequest) GetPeriod() uint64
func (*CollationBodyRequest) GetProposerAddress ¶
func (m *CollationBodyRequest) GetProposerAddress() []byte
func (*CollationBodyRequest) GetShardId ¶
func (m *CollationBodyRequest) GetShardId() uint64
func (*CollationBodyRequest) GetSignature ¶
func (m *CollationBodyRequest) GetSignature() []byte
func (*CollationBodyRequest) Marshal ¶
func (m *CollationBodyRequest) Marshal() (dAtA []byte, err error)
func (*CollationBodyRequest) MarshalTo ¶
func (m *CollationBodyRequest) MarshalTo(dAtA []byte) (int, error)
func (*CollationBodyRequest) ProtoMessage ¶
func (*CollationBodyRequest) ProtoMessage()
func (*CollationBodyRequest) Reset ¶
func (m *CollationBodyRequest) Reset()
func (*CollationBodyRequest) Size ¶
func (m *CollationBodyRequest) Size() (n int)
func (*CollationBodyRequest) String ¶
func (m *CollationBodyRequest) String() string
func (*CollationBodyRequest) Unmarshal ¶
func (m *CollationBodyRequest) Unmarshal(dAtA []byte) error
func (*CollationBodyRequest) XXX_DiscardUnknown ¶
func (m *CollationBodyRequest) XXX_DiscardUnknown()
func (*CollationBodyRequest) XXX_Marshal ¶
func (m *CollationBodyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollationBodyRequest) XXX_Merge ¶
func (m *CollationBodyRequest) XXX_Merge(src proto.Message)
func (*CollationBodyRequest) XXX_Size ¶
func (m *CollationBodyRequest) XXX_Size() int
func (*CollationBodyRequest) XXX_Unmarshal ¶
func (m *CollationBodyRequest) XXX_Unmarshal(b []byte) error
type CollationBodyResponse ¶
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 (*CollationBodyResponse) Descriptor ¶
func (*CollationBodyResponse) Descriptor() ([]byte, []int)
func (*CollationBodyResponse) GetBody ¶
func (m *CollationBodyResponse) GetBody() []byte
func (*CollationBodyResponse) GetHeaderHash ¶
func (m *CollationBodyResponse) GetHeaderHash() []byte
func (*CollationBodyResponse) Marshal ¶
func (m *CollationBodyResponse) Marshal() (dAtA []byte, err error)
func (*CollationBodyResponse) MarshalTo ¶
func (m *CollationBodyResponse) MarshalTo(dAtA []byte) (int, error)
func (*CollationBodyResponse) ProtoMessage ¶
func (*CollationBodyResponse) ProtoMessage()
func (*CollationBodyResponse) Reset ¶
func (m *CollationBodyResponse) Reset()
func (*CollationBodyResponse) Size ¶
func (m *CollationBodyResponse) Size() (n int)
func (*CollationBodyResponse) String ¶
func (m *CollationBodyResponse) String() string
func (*CollationBodyResponse) Unmarshal ¶
func (m *CollationBodyResponse) Unmarshal(dAtA []byte) error
func (*CollationBodyResponse) XXX_DiscardUnknown ¶
func (m *CollationBodyResponse) XXX_DiscardUnknown()
func (*CollationBodyResponse) XXX_Marshal ¶
func (m *CollationBodyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollationBodyResponse) XXX_Merge ¶
func (m *CollationBodyResponse) XXX_Merge(src proto.Message)
func (*CollationBodyResponse) XXX_Size ¶
func (m *CollationBodyResponse) XXX_Size() int
func (*CollationBodyResponse) XXX_Unmarshal ¶
func (m *CollationBodyResponse) XXX_Unmarshal(b []byte) error
type Signature ¶
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 (*Signature) Descriptor ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) XXX_DiscardUnknown ¶
func (m *Signature) XXX_DiscardUnknown()
func (*Signature) XXX_Marshal ¶
func (*Signature) XXX_Unmarshal ¶
type Transaction ¶
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 (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetGasLimit ¶
func (m *Transaction) GetGasLimit() uint64
func (*Transaction) GetGasPrice ¶
func (m *Transaction) GetGasPrice() uint64
func (*Transaction) GetInput ¶
func (m *Transaction) GetInput() []byte
func (*Transaction) GetNonce ¶
func (m *Transaction) GetNonce() uint64
func (*Transaction) GetRecipient ¶
func (m *Transaction) GetRecipient() []byte
func (*Transaction) GetSignature ¶
func (m *Transaction) GetSignature() *Signature
func (*Transaction) GetValue ¶
func (m *Transaction) GetValue() uint64
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) Size ¶
func (m *Transaction) Size() (n int)
func (*Transaction) String ¶
func (m *Transaction) String() string
func (*Transaction) Unmarshal ¶
func (m *Transaction) Unmarshal(dAtA []byte) error
func (*Transaction) XXX_DiscardUnknown ¶
func (m *Transaction) XXX_DiscardUnknown()
func (*Transaction) XXX_Marshal ¶
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Transaction) XXX_Merge ¶
func (m *Transaction) XXX_Merge(src proto.Message)
func (*Transaction) XXX_Size ¶
func (m *Transaction) XXX_Size() int
func (*Transaction) XXX_Unmarshal ¶
func (m *Transaction) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.