Documentation ¶
Overview ¶
Package corepb is a generated protocol buffer package.
It is generated from these files:
block.proto
It has these top-level messages:
Account ContractMeta Data Transaction BlockHeader Block NetBlocks NetBlock DownloadBlock Random
Package corepb is a generated protocol buffer package.
It is generated from these files:
genesis.proto
It has these top-level messages:
Genesis GenesisMeta GenesisConsensus GenesisConsensusDpos GenesisTokenDistribution
Index ¶
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetAddress() []byte
- func (m *Account) GetBalance() []byte
- func (m *Account) GetBirthPlace() []byte
- func (m *Account) GetContractMeta() *ContractMeta
- func (m *Account) GetNonce() uint64
- func (m *Account) GetVarsHash() []byte
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- type Block
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (m *BlockHeader) GetAlg() uint32
- func (m *BlockHeader) GetChainId() uint32
- func (m *BlockHeader) GetCoinbase() []byte
- func (m *BlockHeader) GetConsensusRoot() *consensuspb.ConsensusRoot
- func (m *BlockHeader) GetEventsRoot() []byte
- func (m *BlockHeader) GetHash() []byte
- func (m *BlockHeader) GetParentHash() []byte
- func (m *BlockHeader) GetRandom() *Random
- func (m *BlockHeader) GetSign() []byte
- func (m *BlockHeader) GetStateRoot() []byte
- func (m *BlockHeader) GetTimestamp() int64
- func (m *BlockHeader) GetTxsRoot() []byte
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) String() string
- type ContractMeta
- type Data
- type DownloadBlock
- type Genesis
- type GenesisConsensus
- type GenesisConsensusDpos
- type GenesisMeta
- type GenesisTokenDistribution
- func (*GenesisTokenDistribution) Descriptor() ([]byte, []int)
- func (m *GenesisTokenDistribution) GetAddress() string
- func (m *GenesisTokenDistribution) GetValue() string
- func (*GenesisTokenDistribution) ProtoMessage()
- func (m *GenesisTokenDistribution) Reset()
- func (m *GenesisTokenDistribution) String() string
- type NetBlock
- type NetBlocks
- type Random
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetAlg() uint32
- func (m *Transaction) GetChainId() uint32
- func (m *Transaction) GetData() *Data
- func (m *Transaction) GetFrom() []byte
- func (m *Transaction) GetGasLimit() []byte
- func (m *Transaction) GetGasPrice() []byte
- func (m *Transaction) GetHash() []byte
- func (m *Transaction) GetNonce() uint64
- func (m *Transaction) GetSign() []byte
- func (m *Transaction) GetTimestamp() int64
- func (m *Transaction) GetTo() []byte
- func (m *Transaction) GetValue() []byte
- func (*Transaction) ProtoMessage()
- func (m *Transaction) Reset()
- func (m *Transaction) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Balance []byte `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` VarsHash []byte `protobuf:"bytes,4,opt,name=vars_hash,json=varsHash,proto3" json:"vars_hash,omitempty"` BirthPlace []byte `protobuf:"bytes,5,opt,name=birth_place,json=birthPlace,proto3" json:"birth_place,omitempty"` ContractMeta *ContractMeta `protobuf:"bytes,6,opt,name=contract_meta,json=contractMeta" json:"contract_meta,omitempty"` }
func (*Account) Descriptor ¶
func (*Account) GetAddress ¶ added in v1.0.0
func (*Account) GetBalance ¶
func (*Account) GetBirthPlace ¶ added in v1.0.0
func (*Account) GetContractMeta ¶ added in v1.0.5
func (m *Account) GetContractMeta() *ContractMeta
func (*Account) GetVarsHash ¶ added in v1.0.0
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
type Block ¶
type Block struct { Header *BlockHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions" json:"transactions,omitempty"` Dependency *dagpb.Dag `protobuf:"bytes,3,opt,name=dependency" json:"dependency,omitempty"` Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` }
func (*Block) Descriptor ¶
func (*Block) GetDependency ¶ added in v1.0.0
func (*Block) GetHeader ¶
func (m *Block) GetHeader() *BlockHeader
func (*Block) GetTransactions ¶
func (m *Block) GetTransactions() []*Transaction
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
type BlockHeader ¶
type BlockHeader struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` ParentHash []byte `protobuf:"bytes,2,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` Coinbase []byte `protobuf:"bytes,4,opt,name=coinbase,proto3" json:"coinbase,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` ChainId uint32 `protobuf:"varint,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Alg uint32 `protobuf:"varint,7,opt,name=alg,proto3" json:"alg,omitempty"` Sign []byte `protobuf:"bytes,8,opt,name=sign,proto3" json:"sign,omitempty"` StateRoot []byte `protobuf:"bytes,9,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` TxsRoot []byte `protobuf:"bytes,10,opt,name=txs_root,json=txsRoot,proto3" json:"txs_root,omitempty"` EventsRoot []byte `protobuf:"bytes,11,opt,name=events_root,json=eventsRoot,proto3" json:"events_root,omitempty"` ConsensusRoot *consensuspb.ConsensusRoot `protobuf:"bytes,12,opt,name=consensus_root,json=consensusRoot" json:"consensus_root,omitempty"` Random *Random `protobuf:"bytes,13,opt,name=random" json:"random,omitempty"` }
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) GetAlg ¶ added in v1.0.0
func (m *BlockHeader) GetAlg() uint32
func (*BlockHeader) GetChainId ¶
func (m *BlockHeader) GetChainId() uint32
func (*BlockHeader) GetCoinbase ¶
func (m *BlockHeader) GetCoinbase() []byte
func (*BlockHeader) GetConsensusRoot ¶ added in v1.0.0
func (m *BlockHeader) GetConsensusRoot() *consensuspb.ConsensusRoot
func (*BlockHeader) GetEventsRoot ¶ added in v1.0.0
func (m *BlockHeader) GetEventsRoot() []byte
func (*BlockHeader) GetHash ¶
func (m *BlockHeader) GetHash() []byte
func (*BlockHeader) GetParentHash ¶
func (m *BlockHeader) GetParentHash() []byte
func (*BlockHeader) GetRandom ¶ added in v1.0.2
func (m *BlockHeader) GetRandom() *Random
func (*BlockHeader) GetSign ¶ added in v1.0.0
func (m *BlockHeader) GetSign() []byte
func (*BlockHeader) GetStateRoot ¶
func (m *BlockHeader) GetStateRoot() []byte
func (*BlockHeader) GetTimestamp ¶
func (m *BlockHeader) GetTimestamp() int64
func (*BlockHeader) GetTxsRoot ¶
func (m *BlockHeader) GetTxsRoot() []byte
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) String ¶
func (m *BlockHeader) String() string
type ContractMeta ¶ added in v1.0.5
type ContractMeta struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
}
func (*ContractMeta) Descriptor ¶ added in v1.0.5
func (*ContractMeta) Descriptor() ([]byte, []int)
func (*ContractMeta) GetVersion ¶ added in v1.0.5
func (m *ContractMeta) GetVersion() string
func (*ContractMeta) ProtoMessage ¶ added in v1.0.5
func (*ContractMeta) ProtoMessage()
func (*ContractMeta) Reset ¶ added in v1.0.5
func (m *ContractMeta) Reset()
func (*ContractMeta) String ¶ added in v1.0.5
func (m *ContractMeta) String() string
type Data ¶ added in v1.0.0
type Data struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
func (*Data) Descriptor ¶ added in v1.0.0
func (*Data) GetPayload ¶ added in v1.0.0
func (*Data) ProtoMessage ¶ added in v1.0.0
func (*Data) ProtoMessage()
type DownloadBlock ¶ added in v1.0.0
type DownloadBlock struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Sign []byte `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"` }
func (*DownloadBlock) Descriptor ¶ added in v1.0.0
func (*DownloadBlock) Descriptor() ([]byte, []int)
func (*DownloadBlock) GetHash ¶ added in v1.0.0
func (m *DownloadBlock) GetHash() []byte
func (*DownloadBlock) GetSign ¶ added in v1.0.0
func (m *DownloadBlock) GetSign() []byte
func (*DownloadBlock) ProtoMessage ¶ added in v1.0.0
func (*DownloadBlock) ProtoMessage()
func (*DownloadBlock) Reset ¶ added in v1.0.0
func (m *DownloadBlock) Reset()
func (*DownloadBlock) String ¶ added in v1.0.0
func (m *DownloadBlock) String() string
type Genesis ¶ added in v1.0.0
type Genesis struct { // genesis meta Meta *GenesisMeta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` // genesis consensus config Consensus *GenesisConsensus `protobuf:"bytes,2,opt,name=consensus" json:"consensus,omitempty"` // genesis token distribution address // map<string, string> token_distribution = 3; TokenDistribution []*GenesisTokenDistribution `protobuf:"bytes,3,rep,name=token_distribution,json=tokenDistribution" json:"token_distribution,omitempty"` }
func (*Genesis) Descriptor ¶ added in v1.0.0
func (*Genesis) GetConsensus ¶ added in v1.0.0
func (m *Genesis) GetConsensus() *GenesisConsensus
func (*Genesis) GetMeta ¶ added in v1.0.0
func (m *Genesis) GetMeta() *GenesisMeta
func (*Genesis) GetTokenDistribution ¶ added in v1.0.0
func (m *Genesis) GetTokenDistribution() []*GenesisTokenDistribution
func (*Genesis) ProtoMessage ¶ added in v1.0.0
func (*Genesis) ProtoMessage()
type GenesisConsensus ¶ added in v1.0.0
type GenesisConsensus struct { // ChainID. Dpos *GenesisConsensusDpos `protobuf:"bytes,1,opt,name=dpos" json:"dpos,omitempty"` }
func (*GenesisConsensus) Descriptor ¶ added in v1.0.0
func (*GenesisConsensus) Descriptor() ([]byte, []int)
func (*GenesisConsensus) GetDpos ¶ added in v1.0.0
func (m *GenesisConsensus) GetDpos() *GenesisConsensusDpos
func (*GenesisConsensus) ProtoMessage ¶ added in v1.0.0
func (*GenesisConsensus) ProtoMessage()
func (*GenesisConsensus) Reset ¶ added in v1.0.0
func (m *GenesisConsensus) Reset()
func (*GenesisConsensus) String ¶ added in v1.0.0
func (m *GenesisConsensus) String() string
type GenesisConsensusDpos ¶ added in v1.0.0
type GenesisConsensusDpos struct { // dpos genesis dynasty address Dynasty []string `protobuf:"bytes,1,rep,name=dynasty" json:"dynasty,omitempty"` }
func (*GenesisConsensusDpos) Descriptor ¶ added in v1.0.0
func (*GenesisConsensusDpos) Descriptor() ([]byte, []int)
func (*GenesisConsensusDpos) GetDynasty ¶ added in v1.0.0
func (m *GenesisConsensusDpos) GetDynasty() []string
func (*GenesisConsensusDpos) ProtoMessage ¶ added in v1.0.0
func (*GenesisConsensusDpos) ProtoMessage()
func (*GenesisConsensusDpos) Reset ¶ added in v1.0.0
func (m *GenesisConsensusDpos) Reset()
func (*GenesisConsensusDpos) String ¶ added in v1.0.0
func (m *GenesisConsensusDpos) String() string
type GenesisMeta ¶ added in v1.0.0
type GenesisMeta struct { // ChainID. ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` }
func (*GenesisMeta) Descriptor ¶ added in v1.0.0
func (*GenesisMeta) Descriptor() ([]byte, []int)
func (*GenesisMeta) GetChainId ¶ added in v1.0.0
func (m *GenesisMeta) GetChainId() uint32
func (*GenesisMeta) ProtoMessage ¶ added in v1.0.0
func (*GenesisMeta) ProtoMessage()
func (*GenesisMeta) Reset ¶ added in v1.0.0
func (m *GenesisMeta) Reset()
func (*GenesisMeta) String ¶ added in v1.0.0
func (m *GenesisMeta) String() string
type GenesisTokenDistribution ¶ added in v1.0.0
type GenesisTokenDistribution struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
func (*GenesisTokenDistribution) Descriptor ¶ added in v1.0.0
func (*GenesisTokenDistribution) Descriptor() ([]byte, []int)
func (*GenesisTokenDistribution) GetAddress ¶ added in v1.0.0
func (m *GenesisTokenDistribution) GetAddress() string
func (*GenesisTokenDistribution) GetValue ¶ added in v1.0.0
func (m *GenesisTokenDistribution) GetValue() string
func (*GenesisTokenDistribution) ProtoMessage ¶ added in v1.0.0
func (*GenesisTokenDistribution) ProtoMessage()
func (*GenesisTokenDistribution) Reset ¶ added in v1.0.0
func (m *GenesisTokenDistribution) Reset()
func (*GenesisTokenDistribution) String ¶ added in v1.0.0
func (m *GenesisTokenDistribution) String() string
type NetBlock ¶
type NetBlock struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Batch uint64 `protobuf:"varint,2,opt,name=batch,proto3" json:"batch,omitempty"` Block *Block `protobuf:"bytes,3,opt,name=block" json:"block,omitempty"` }
func (*NetBlock) Descriptor ¶
func (*NetBlock) ProtoMessage ¶
func (*NetBlock) ProtoMessage()
type NetBlocks ¶
type NetBlocks struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Batch uint64 `protobuf:"varint,2,opt,name=batch,proto3" json:"batch,omitempty"` Blocks []*Block `protobuf:"bytes,3,rep,name=blocks" json:"blocks,omitempty"` }
func (*NetBlocks) Descriptor ¶
func (*NetBlocks) ProtoMessage ¶
func (*NetBlocks) ProtoMessage()
type Random ¶ added in v1.0.2
type Random struct { VrfSeed []byte `protobuf:"bytes,1,opt,name=vrf_seed,json=vrfSeed,proto3" json:"vrf_seed,omitempty"` VrfProof []byte `protobuf:"bytes,2,opt,name=vrf_proof,json=vrfProof,proto3" json:"vrf_proof,omitempty"` }
func (*Random) Descriptor ¶ added in v1.0.2
func (*Random) GetVrfProof ¶ added in v1.0.2
func (*Random) GetVrfSeed ¶ added in v1.0.2
func (*Random) ProtoMessage ¶ added in v1.0.2
func (*Random) ProtoMessage()
type Transaction ¶
type Transaction struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` From []byte `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` To []byte `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` Nonce uint64 `protobuf:"varint,5,opt,name=nonce,proto3" json:"nonce,omitempty"` Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Data *Data `protobuf:"bytes,7,opt,name=data" json:"data,omitempty"` ChainId uint32 `protobuf:"varint,8,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` GasPrice []byte `protobuf:"bytes,9,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` GasLimit []byte `protobuf:"bytes,10,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` Alg uint32 `protobuf:"varint,11,opt,name=alg,proto3" json:"alg,omitempty"` Sign []byte `protobuf:"bytes,12,opt,name=sign,proto3" json:"sign,omitempty"` }
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetAlg ¶
func (m *Transaction) GetAlg() uint32
func (*Transaction) GetChainId ¶
func (m *Transaction) GetChainId() uint32
func (*Transaction) GetData ¶
func (m *Transaction) GetData() *Data
func (*Transaction) GetFrom ¶
func (m *Transaction) GetFrom() []byte
func (*Transaction) GetGasLimit ¶ added in v1.0.0
func (m *Transaction) GetGasLimit() []byte
func (*Transaction) GetGasPrice ¶ added in v1.0.0
func (m *Transaction) GetGasPrice() []byte
func (*Transaction) GetHash ¶
func (m *Transaction) GetHash() []byte
func (*Transaction) GetNonce ¶
func (m *Transaction) GetNonce() uint64
func (*Transaction) GetSign ¶
func (m *Transaction) GetSign() []byte
func (*Transaction) GetTimestamp ¶
func (m *Transaction) GetTimestamp() int64
func (*Transaction) GetTo ¶
func (m *Transaction) GetTo() []byte
func (*Transaction) GetValue ¶
func (m *Transaction) GetValue() []byte
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) Reset ¶
func (m *Transaction) Reset()
func (*Transaction) String ¶
func (m *Transaction) String() string
Click to show internal directories.
Click to hide internal directories.