core_pb

package
v0.0.0-...-169a2f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Block

type Block struct {
	Hash         []byte      `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Height       uint64      `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	ParentHash   []byte      `protobuf:"bytes,3,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	Proposer     []byte      `protobuf:"bytes,4,opt,name=proposer,proto3" json:"proposer,omitempty"`
	QuorumCert   *QuorumCert `protobuf:"bytes,5,opt,name=quorumCert,proto3" json:"quorumCert,omitempty"`
	ExecHeight   uint64      `protobuf:"varint,6,opt,name=execHeight,proto3" json:"execHeight,omitempty"`
	MerkleRoot   []byte      `protobuf:"bytes,7,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"`
	Timestamp    int64       `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Transactions [][]byte    `protobuf:"bytes,9,rep,name=transactions,proto3" json:"transactions,omitempty"` // transaction hashes
	Signature    []byte      `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"`      // signature of proposer
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetExecHeight

func (x *Block) GetExecHeight() uint64

func (*Block) GetHash

func (x *Block) GetHash() []byte

func (*Block) GetHeight

func (x *Block) GetHeight() uint64

func (*Block) GetMerkleRoot

func (x *Block) GetMerkleRoot() []byte

func (*Block) GetParentHash

func (x *Block) GetParentHash() []byte

func (*Block) GetProposer

func (x *Block) GetProposer() []byte

func (*Block) GetQuorumCert

func (x *Block) GetQuorumCert() *QuorumCert

func (*Block) GetSignature

func (x *Block) GetSignature() []byte

func (*Block) GetTimestamp

func (x *Block) GetTimestamp() int64

func (*Block) GetTransactions

func (x *Block) GetTransactions() [][]byte

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BlockCommit

type BlockCommit struct {
	Hash          []byte         `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	ElapsedExec   float64        `protobuf:"fixed64,2,opt,name=elapsedExec,proto3" json:"elapsedExec,omitempty"`
	ElapsedMerkle float64        `protobuf:"fixed64,3,opt,name=elapsedMerkle,proto3" json:"elapsedMerkle,omitempty"`
	OldBlockTxs   [][]byte       `protobuf:"bytes,5,rep,name=oldBlockTxs,proto3" json:"oldBlockTxs,omitempty"`
	StateChanges  []*StateChange `protobuf:"bytes,6,rep,name=stateChanges,proto3" json:"stateChanges,omitempty"`
	LeafCount     []byte         `protobuf:"bytes,7,opt,name=leafCount,proto3" json:"leafCount,omitempty"`
	MerkleRoot    []byte         `protobuf:"bytes,8,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockCommit) Descriptor deprecated

func (*BlockCommit) Descriptor() ([]byte, []int)

Deprecated: Use BlockCommit.ProtoReflect.Descriptor instead.

func (*BlockCommit) GetElapsedExec

func (x *BlockCommit) GetElapsedExec() float64

func (*BlockCommit) GetElapsedMerkle

func (x *BlockCommit) GetElapsedMerkle() float64

func (*BlockCommit) GetHash

func (x *BlockCommit) GetHash() []byte

func (*BlockCommit) GetLeafCount

func (x *BlockCommit) GetLeafCount() []byte

func (*BlockCommit) GetMerkleRoot

func (x *BlockCommit) GetMerkleRoot() []byte

func (*BlockCommit) GetOldBlockTxs

func (x *BlockCommit) GetOldBlockTxs() [][]byte

func (*BlockCommit) GetStateChanges

func (x *BlockCommit) GetStateChanges() []*StateChange

func (*BlockCommit) ProtoMessage

func (*BlockCommit) ProtoMessage()

func (*BlockCommit) ProtoReflect

func (x *BlockCommit) ProtoReflect() protoreflect.Message

func (*BlockCommit) Reset

func (x *BlockCommit) Reset()

func (*BlockCommit) String

func (x *BlockCommit) String() string

type QuorumCert

type QuorumCert struct {
	BlockHash  []byte       `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	Signatures []*Signature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	// contains filtered or unexported fields
}

func (*QuorumCert) Descriptor deprecated

func (*QuorumCert) Descriptor() ([]byte, []int)

Deprecated: Use QuorumCert.ProtoReflect.Descriptor instead.

func (*QuorumCert) GetBlockHash

func (x *QuorumCert) GetBlockHash() []byte

func (*QuorumCert) GetSignatures

func (x *QuorumCert) GetSignatures() []*Signature

func (*QuorumCert) ProtoMessage

func (*QuorumCert) ProtoMessage()

func (*QuorumCert) ProtoReflect

func (x *QuorumCert) ProtoReflect() protoreflect.Message

func (*QuorumCert) Reset

func (x *QuorumCert) Reset()

func (*QuorumCert) String

func (x *QuorumCert) String() string

type Signature

type Signature struct {
	PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	Value  []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

func (*Signature) Descriptor() ([]byte, []int)

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetPubKey

func (x *Signature) GetPubKey() []byte

func (*Signature) GetValue

func (x *Signature) GetValue() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

func (x *Signature) ProtoReflect() protoreflect.Message

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type StateChange

type StateChange struct {
	Key           []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value         []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	PrevValue     []byte `protobuf:"bytes,3,opt,name=prevValue,proto3" json:"prevValue,omitempty"`
	TreeIndex     []byte `protobuf:"bytes,4,opt,name=treeIndex,proto3" json:"treeIndex,omitempty"`
	PrevTreeIndex []byte `protobuf:"bytes,5,opt,name=prevTreeIndex,proto3" json:"prevTreeIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*StateChange) Descriptor deprecated

func (*StateChange) Descriptor() ([]byte, []int)

Deprecated: Use StateChange.ProtoReflect.Descriptor instead.

func (*StateChange) GetKey

func (x *StateChange) GetKey() []byte

func (*StateChange) GetPrevTreeIndex

func (x *StateChange) GetPrevTreeIndex() []byte

func (*StateChange) GetPrevValue

func (x *StateChange) GetPrevValue() []byte

func (*StateChange) GetTreeIndex

func (x *StateChange) GetTreeIndex() []byte

func (*StateChange) GetValue

func (x *StateChange) GetValue() []byte

func (*StateChange) ProtoMessage

func (*StateChange) ProtoMessage()

func (*StateChange) ProtoReflect

func (x *StateChange) ProtoReflect() protoreflect.Message

func (*StateChange) Reset

func (x *StateChange) Reset()

func (*StateChange) String

func (x *StateChange) String() string

type Transaction

type Transaction struct {
	Hash      []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	Nonce     int64  `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Sender    []byte `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
	CodeAddr  []byte `protobuf:"bytes,5,opt,name=codeAddr,proto3" json:"codeAddr,omitempty"`
	Input     []byte `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
	Expiry    uint64 `protobuf:"varint,7,opt,name=expiry,proto3" json:"expiry,omitempty"` // expiry block height
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetCodeAddr

func (x *Transaction) GetCodeAddr() []byte

func (*Transaction) GetExpiry

func (x *Transaction) GetExpiry() uint64

func (*Transaction) GetHash

func (x *Transaction) GetHash() []byte

func (*Transaction) GetInput

func (x *Transaction) GetInput() []byte

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() int64

func (*Transaction) GetSender

func (x *Transaction) GetSender() []byte

func (*Transaction) GetSignature

func (x *Transaction) GetSignature() []byte

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TxCommit

type TxCommit struct {
	Hash        []byte  `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	BlockHash   []byte  `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	BlockHeight uint64  `protobuf:"varint,3,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	Error       string  `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	Elapsed     float64 `protobuf:"fixed64,5,opt,name=elapsed,proto3" json:"elapsed,omitempty"`
	// contains filtered or unexported fields
}

func (*TxCommit) Descriptor deprecated

func (*TxCommit) Descriptor() ([]byte, []int)

Deprecated: Use TxCommit.ProtoReflect.Descriptor instead.

func (*TxCommit) GetBlockHash

func (x *TxCommit) GetBlockHash() []byte

func (*TxCommit) GetBlockHeight

func (x *TxCommit) GetBlockHeight() uint64

func (*TxCommit) GetElapsed

func (x *TxCommit) GetElapsed() float64

func (*TxCommit) GetError

func (x *TxCommit) GetError() string

func (*TxCommit) GetHash

func (x *TxCommit) GetHash() []byte

func (*TxCommit) ProtoMessage

func (*TxCommit) ProtoMessage()

func (*TxCommit) ProtoReflect

func (x *TxCommit) ProtoReflect() protoreflect.Message

func (*TxCommit) Reset

func (x *TxCommit) Reset()

func (*TxCommit) String

func (x *TxCommit) String() string

type TxList

type TxList struct {
	List []*Transaction `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*TxList) Descriptor deprecated

func (*TxList) Descriptor() ([]byte, []int)

Deprecated: Use TxList.ProtoReflect.Descriptor instead.

func (*TxList) GetList

func (x *TxList) GetList() []*Transaction

func (*TxList) ProtoMessage

func (*TxList) ProtoMessage()

func (*TxList) ProtoReflect

func (x *TxList) ProtoReflect() protoreflect.Message

func (*TxList) Reset

func (x *TxList) Reset()

func (*TxList) String

func (x *TxList) String() string

type Vote

type Vote struct {
	BlockHash []byte     `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	Signature *Signature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*Vote) Descriptor deprecated

func (*Vote) Descriptor() ([]byte, []int)

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetBlockHash

func (x *Vote) GetBlockHash() []byte

func (*Vote) GetSignature

func (x *Vote) GetSignature() *Signature

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

func (x *Vote) ProtoReflect() protoreflect.Message

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL