Documentation ¶
Index ¶
- Variables
- func GetTxKeyWith(propose []byte, blockHeight uint64) string
- type AdditionalData
- func (*AdditionalData) Descriptor() ([]byte, []int)
- func (m *AdditionalData) GetExtraData() map[string][]byte
- func (m *AdditionalData) Marshal() (dAtA []byte, err error)
- func (m *AdditionalData) MarshalTo(dAtA []byte) (int, error)
- func (m *AdditionalData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AdditionalData) ProtoMessage()
- func (m *AdditionalData) Reset()
- func (m *AdditionalData) Size() (n int)
- func (m *AdditionalData) String() string
- func (m *AdditionalData) Unmarshal(dAtA []byte) error
- func (m *AdditionalData) XXX_DiscardUnknown()
- func (m *AdditionalData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AdditionalData) XXX_Merge(src proto.Message)
- func (m *AdditionalData) XXX_Size() int
- func (m *AdditionalData) XXX_Unmarshal(b []byte) error
- type AliasCertInfo
- func (*AliasCertInfo) Descriptor() ([]byte, []int)
- func (m *AliasCertInfo) GetBlockHeight() uint64
- func (m *AliasCertInfo) GetCert() []byte
- func (m *AliasCertInfo) GetHash() string
- func (m *AliasCertInfo) Marshal() (dAtA []byte, err error)
- func (m *AliasCertInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *AliasCertInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AliasCertInfo) ProtoMessage()
- func (m *AliasCertInfo) Reset()
- func (m *AliasCertInfo) Size() (n int)
- func (m *AliasCertInfo) String() string
- func (m *AliasCertInfo) Unmarshal(dAtA []byte) error
- func (m *AliasCertInfo) XXX_DiscardUnknown()
- func (m *AliasCertInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AliasCertInfo) XXX_Merge(src proto.Message)
- func (m *AliasCertInfo) XXX_Size() int
- func (m *AliasCertInfo) XXX_Unmarshal(b []byte) error
- type AliasInfo
- func (*AliasInfo) Descriptor() ([]byte, []int)
- func (m *AliasInfo) GetAlias() string
- func (m *AliasInfo) GetHisCerts() []*AliasCertInfo
- func (m *AliasInfo) GetNowCert() *AliasCertInfo
- func (m *AliasInfo) Marshal() (dAtA []byte, err error)
- func (m *AliasInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *AliasInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AliasInfo) ProtoMessage()
- func (m *AliasInfo) Reset()
- func (m *AliasInfo) Size() (n int)
- func (m *AliasInfo) String() string
- func (m *AliasInfo) Unmarshal(dAtA []byte) error
- func (m *AliasInfo) XXX_DiscardUnknown()
- func (m *AliasInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AliasInfo) XXX_Merge(src proto.Message)
- func (m *AliasInfo) XXX_Size() int
- func (m *AliasInfo) XXX_Unmarshal(b []byte) error
- type AliasInfos
- func (*AliasInfos) Descriptor() ([]byte, []int)
- func (m *AliasInfos) GetAliasInfos() []*AliasInfo
- func (m *AliasInfos) Marshal() (dAtA []byte, err error)
- func (m *AliasInfos) MarshalTo(dAtA []byte) (int, error)
- func (m *AliasInfos) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AliasInfos) ProtoMessage()
- func (m *AliasInfos) Reset()
- func (m *AliasInfos) Size() (n int)
- func (m *AliasInfos) String() string
- func (m *AliasInfos) Unmarshal(dAtA []byte) error
- func (m *AliasInfos) XXX_DiscardUnknown()
- func (m *AliasInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AliasInfos) XXX_Merge(src proto.Message)
- func (m *AliasInfos) XXX_Size() int
- func (m *AliasInfos) XXX_Unmarshal(b []byte) error
- type BirdsNest
- func (*BirdsNest) Descriptor() ([]byte, []int)
- func (m *BirdsNest) GetConfig() *BirdsNestConfig
- func (m *BirdsNest) GetCurrentIndex() uint32
- func (m *BirdsNest) GetFilters() []*CuckooFilter
- func (m *BirdsNest) GetHeight() uint64
- func (m *BirdsNest) Marshal() (dAtA []byte, err error)
- func (m *BirdsNest) MarshalTo(dAtA []byte) (int, error)
- func (m *BirdsNest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BirdsNest) ProtoMessage()
- func (m *BirdsNest) Reset()
- func (m *BirdsNest) Size() (n int)
- func (m *BirdsNest) String() string
- func (m *BirdsNest) Unmarshal(dAtA []byte) error
- func (m *BirdsNest) XXX_DiscardUnknown()
- func (m *BirdsNest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BirdsNest) XXX_Merge(src proto.Message)
- func (m *BirdsNest) XXX_Size() int
- func (m *BirdsNest) XXX_Unmarshal(b []byte) error
- type BirdsNestConfig
- func (*BirdsNestConfig) Descriptor() ([]byte, []int)
- func (m *BirdsNestConfig) GetChainId() string
- func (m *BirdsNestConfig) GetCuckoo() *CuckooConfig
- func (m *BirdsNestConfig) GetLength() uint32
- func (m *BirdsNestConfig) GetRules() *RulesConfig
- func (m *BirdsNestConfig) GetSnapshot() *SnapshotSerializerConfig
- func (m *BirdsNestConfig) Marshal() (dAtA []byte, err error)
- func (m *BirdsNestConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *BirdsNestConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BirdsNestConfig) ProtoMessage()
- func (m *BirdsNestConfig) Reset()
- func (m *BirdsNestConfig) Size() (n int)
- func (m *BirdsNestConfig) String() string
- func (m *BirdsNestConfig) Unmarshal(dAtA []byte) error
- func (m *BirdsNestConfig) XXX_DiscardUnknown()
- func (m *BirdsNestConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BirdsNestConfig) XXX_Merge(src proto.Message)
- func (m *BirdsNestConfig) XXX_Size() int
- func (m *BirdsNestConfig) XXX_Unmarshal(b []byte) error
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetAdditionalData() *AdditionalData
- func (b *Block) GetBlockHashStr() string
- func (m *Block) GetDag() *DAG
- func (m *Block) GetHeader() *BlockHeader
- func (b *Block) GetTimestamp() time.Time
- func (b *Block) GetTxKey() string
- func (m *Block) GetTxs() []*Transaction
- func (b *Block) Hash() []byte
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (m *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (m *BlockHeader) GetBlockHash() []byte
- func (m *BlockHeader) GetBlockHeight() uint64
- func (m *BlockHeader) GetBlockTimestamp() int64
- func (m *BlockHeader) GetBlockType() BlockType
- func (m *BlockHeader) GetBlockVersion() uint32
- func (m *BlockHeader) GetChainId() string
- func (m *BlockHeader) GetConsensusArgs() []byte
- func (m *BlockHeader) GetDagHash() []byte
- func (m *BlockHeader) GetPreBlockHash() []byte
- func (m *BlockHeader) GetPreConfHeight() uint64
- func (m *BlockHeader) GetProposer() *accesscontrol.Member
- func (m *BlockHeader) GetRwSetRoot() []byte
- func (m *BlockHeader) GetSignature() []byte
- func (m *BlockHeader) GetTxCount() uint32
- func (m *BlockHeader) GetTxRoot() []byte
- func (m *BlockHeader) Marshal() (dAtA []byte, err error)
- func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) Size() (n int)
- func (m *BlockHeader) String() string
- func (m *BlockHeader) Unmarshal(dAtA []byte) error
- func (m *BlockHeader) XXX_DiscardUnknown()
- func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockHeader) XXX_Merge(src proto.Message)
- func (m *BlockHeader) XXX_Size() int
- func (m *BlockHeader) XXX_Unmarshal(b []byte) error
- type BlockHeightSerializeIntervalConfig
- func (*BlockHeightSerializeIntervalConfig) Descriptor() ([]byte, []int)
- func (m *BlockHeightSerializeIntervalConfig) GetInterval() uint64
- func (m *BlockHeightSerializeIntervalConfig) Marshal() (dAtA []byte, err error)
- func (m *BlockHeightSerializeIntervalConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockHeightSerializeIntervalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockHeightSerializeIntervalConfig) ProtoMessage()
- func (m *BlockHeightSerializeIntervalConfig) Reset()
- func (m *BlockHeightSerializeIntervalConfig) Size() (n int)
- func (m *BlockHeightSerializeIntervalConfig) String() string
- func (m *BlockHeightSerializeIntervalConfig) Unmarshal(dAtA []byte) error
- func (m *BlockHeightSerializeIntervalConfig) XXX_DiscardUnknown()
- func (m *BlockHeightSerializeIntervalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockHeightSerializeIntervalConfig) XXX_Merge(src proto.Message)
- func (m *BlockHeightSerializeIntervalConfig) XXX_Size() int
- func (m *BlockHeightSerializeIntervalConfig) XXX_Unmarshal(b []byte) error
- type BlockInfo
- func (*BlockInfo) Descriptor() ([]byte, []int)
- func (m *BlockInfo) GetBlock() *Block
- func (m *BlockInfo) GetRwsetList() []*TxRWSet
- func (m *BlockInfo) Marshal() (dAtA []byte, err error)
- func (m *BlockInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockInfo) ProtoMessage()
- func (m *BlockInfo) Reset()
- func (m *BlockInfo) Size() (n int)
- func (m *BlockInfo) String() string
- func (m *BlockInfo) Unmarshal(dAtA []byte) error
- func (m *BlockInfo) XXX_DiscardUnknown()
- func (m *BlockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockInfo) XXX_Merge(src proto.Message)
- func (m *BlockInfo) XXX_Size() int
- func (m *BlockInfo) XXX_Unmarshal(b []byte) error
- type BlockType
- type CertInfo
- func (*CertInfo) Descriptor() ([]byte, []int)
- func (m *CertInfo) GetCert() []byte
- func (m *CertInfo) GetHash() string
- func (m *CertInfo) Marshal() (dAtA []byte, err error)
- func (m *CertInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *CertInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CertInfo) ProtoMessage()
- func (m *CertInfo) Reset()
- func (m *CertInfo) Size() (n int)
- func (m *CertInfo) String() string
- func (m *CertInfo) Unmarshal(dAtA []byte) error
- func (m *CertInfo) XXX_DiscardUnknown()
- func (m *CertInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertInfo) XXX_Merge(src proto.Message)
- func (m *CertInfo) XXX_Size() int
- func (m *CertInfo) XXX_Unmarshal(b []byte) error
- type CertInfos
- func (*CertInfos) Descriptor() ([]byte, []int)
- func (m *CertInfos) GetCertInfos() []*CertInfo
- func (m *CertInfos) Marshal() (dAtA []byte, err error)
- func (m *CertInfos) MarshalTo(dAtA []byte) (int, error)
- func (m *CertInfos) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CertInfos) ProtoMessage()
- func (m *CertInfos) Reset()
- func (m *CertInfos) Size() (n int)
- func (m *CertInfos) String() string
- func (m *CertInfos) Unmarshal(dAtA []byte) error
- func (m *CertInfos) XXX_DiscardUnknown()
- func (m *CertInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CertInfos) XXX_Merge(src proto.Message)
- func (m *CertInfos) XXX_Size() int
- func (m *CertInfos) XXX_Unmarshal(b []byte) error
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)
- func (m *Contract) GetAddress() string
- func (m *Contract) GetCreator() *accesscontrol.MemberFull
- func (m *Contract) GetName() string
- func (m *Contract) GetRuntimeType() RuntimeType
- func (m *Contract) GetStatus() ContractStatus
- func (m *Contract) GetVersion() string
- func (m *Contract) Marshal() (dAtA []byte, err error)
- func (m *Contract) MarshalTo(dAtA []byte) (int, error)
- func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Contract) ProtoMessage()
- func (m *Contract) Reset()
- func (m *Contract) Size() (n int)
- func (m *Contract) String() string
- func (m *Contract) Unmarshal(dAtA []byte) error
- func (m *Contract) XXX_DiscardUnknown()
- func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Contract) XXX_Merge(src proto.Message)
- func (m *Contract) XXX_Size() int
- func (m *Contract) XXX_Unmarshal(b []byte) error
- type ContractEvent
- func (*ContractEvent) Descriptor() ([]byte, []int)
- func (m *ContractEvent) GetContractName() string
- func (m *ContractEvent) GetContractVersion() string
- func (m *ContractEvent) GetEventData() []string
- func (m *ContractEvent) GetTopic() string
- func (m *ContractEvent) GetTxId() string
- func (m *ContractEvent) Marshal() (dAtA []byte, err error)
- func (m *ContractEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractEvent) ProtoMessage()
- func (m *ContractEvent) Reset()
- func (m *ContractEvent) Size() (n int)
- func (m *ContractEvent) String() string
- func (m *ContractEvent) Unmarshal(dAtA []byte) error
- func (m *ContractEvent) XXX_DiscardUnknown()
- func (m *ContractEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractEvent) XXX_Merge(src proto.Message)
- func (m *ContractEvent) XXX_Size() int
- func (m *ContractEvent) XXX_Unmarshal(b []byte) error
- type ContractEventInfo
- func (*ContractEventInfo) Descriptor() ([]byte, []int)
- func (m *ContractEventInfo) GetBlockHeight() uint64
- func (m *ContractEventInfo) GetChainId() string
- func (m *ContractEventInfo) GetContractName() string
- func (m *ContractEventInfo) GetContractVersion() string
- func (m *ContractEventInfo) GetEventData() []string
- func (m *ContractEventInfo) GetEventIndex() uint32
- func (m *ContractEventInfo) GetTopic() string
- func (m *ContractEventInfo) GetTxId() string
- func (m *ContractEventInfo) Marshal() (dAtA []byte, err error)
- func (m *ContractEventInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractEventInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractEventInfo) ProtoMessage()
- func (m *ContractEventInfo) Reset()
- func (m *ContractEventInfo) Size() (n int)
- func (m *ContractEventInfo) String() string
- func (m *ContractEventInfo) Unmarshal(dAtA []byte) error
- func (m *ContractEventInfo) XXX_DiscardUnknown()
- func (m *ContractEventInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractEventInfo) XXX_Merge(src proto.Message)
- func (m *ContractEventInfo) XXX_Size() int
- func (m *ContractEventInfo) XXX_Unmarshal(b []byte) error
- type ContractEventInfoList
- func (*ContractEventInfoList) Descriptor() ([]byte, []int)
- func (m *ContractEventInfoList) GetContractEvents() []*ContractEventInfo
- func (m *ContractEventInfoList) Marshal() (dAtA []byte, err error)
- func (m *ContractEventInfoList) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractEventInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractEventInfoList) ProtoMessage()
- func (m *ContractEventInfoList) Reset()
- func (m *ContractEventInfoList) Size() (n int)
- func (m *ContractEventInfoList) String() string
- func (m *ContractEventInfoList) Unmarshal(dAtA []byte) error
- func (m *ContractEventInfoList) XXX_DiscardUnknown()
- func (m *ContractEventInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractEventInfoList) XXX_Merge(src proto.Message)
- func (m *ContractEventInfoList) XXX_Size() int
- func (m *ContractEventInfoList) XXX_Unmarshal(b []byte) error
- type ContractResult
- func (*ContractResult) Descriptor() ([]byte, []int)
- func (m *ContractResult) GetCode() uint32
- func (m *ContractResult) GetContractEvent() []*ContractEvent
- func (m *ContractResult) GetGasUsed() uint64
- func (m *ContractResult) GetMessage() string
- func (m *ContractResult) GetResult() []byte
- func (m *ContractResult) Marshal() (dAtA []byte, err error)
- func (m *ContractResult) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractResult) ProtoMessage()
- func (m *ContractResult) Reset()
- func (m *ContractResult) Size() (n int)
- func (m *ContractResult) String() string
- func (m *ContractResult) Unmarshal(dAtA []byte) error
- func (m *ContractResult) XXX_DiscardUnknown()
- func (m *ContractResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractResult) XXX_Merge(src proto.Message)
- func (m *ContractResult) XXX_Size() int
- func (m *ContractResult) XXX_Unmarshal(b []byte) error
- type ContractStatus
- type CuckooConfig
- func (*CuckooConfig) Descriptor() ([]byte, []int)
- func (m *CuckooConfig) GetBitsPerItem() uint32
- func (m *CuckooConfig) GetKeyType() KeyType
- func (m *CuckooConfig) GetMaxNumKeys() uint32
- func (m *CuckooConfig) GetTableType() uint32
- func (m *CuckooConfig) GetTagsPerBucket() uint32
- func (m *CuckooConfig) Marshal() (dAtA []byte, err error)
- func (m *CuckooConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *CuckooConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CuckooConfig) ProtoMessage()
- func (m *CuckooConfig) Reset()
- func (m *CuckooConfig) Size() (n int)
- func (m *CuckooConfig) String() string
- func (m *CuckooConfig) Unmarshal(dAtA []byte) error
- func (m *CuckooConfig) XXX_DiscardUnknown()
- func (m *CuckooConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CuckooConfig) XXX_Merge(src proto.Message)
- func (m *CuckooConfig) XXX_Size() int
- func (m *CuckooConfig) XXX_Unmarshal(b []byte) error
- type CuckooFilter
- func (*CuckooFilter) Descriptor() ([]byte, []int)
- func (m *CuckooFilter) GetConfig() []byte
- func (m *CuckooFilter) GetCuckoo() []byte
- func (m *CuckooFilter) GetExtension() []byte
- func (m *CuckooFilter) Marshal() (dAtA []byte, err error)
- func (m *CuckooFilter) MarshalTo(dAtA []byte) (int, error)
- func (m *CuckooFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CuckooFilter) ProtoMessage()
- func (m *CuckooFilter) Reset()
- func (m *CuckooFilter) Size() (n int)
- func (m *CuckooFilter) String() string
- func (m *CuckooFilter) Unmarshal(dAtA []byte) error
- func (m *CuckooFilter) XXX_DiscardUnknown()
- func (m *CuckooFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CuckooFilter) XXX_Merge(src proto.Message)
- func (m *CuckooFilter) XXX_Size() int
- func (m *CuckooFilter) XXX_Unmarshal(b []byte) error
- type DAG
- func (*DAG) Descriptor() ([]byte, []int)
- func (m *DAG) GetVertexes() []*DAG_Neighbor
- func (m *DAG) Marshal() (dAtA []byte, err error)
- func (m *DAG) MarshalTo(dAtA []byte) (int, error)
- func (m *DAG) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DAG) ProtoMessage()
- func (m *DAG) Reset()
- func (m *DAG) Size() (n int)
- func (m *DAG) String() string
- func (m *DAG) Unmarshal(dAtA []byte) error
- func (m *DAG) XXX_DiscardUnknown()
- func (m *DAG) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DAG) XXX_Merge(src proto.Message)
- func (m *DAG) XXX_Size() int
- func (m *DAG) XXX_Unmarshal(b []byte) error
- type DAG_Neighbor
- func (*DAG_Neighbor) Descriptor() ([]byte, []int)
- func (m *DAG_Neighbor) GetNeighbors() []uint32
- func (m *DAG_Neighbor) Marshal() (dAtA []byte, err error)
- func (m *DAG_Neighbor) MarshalTo(dAtA []byte) (int, error)
- func (m *DAG_Neighbor) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DAG_Neighbor) ProtoMessage()
- func (m *DAG_Neighbor) Reset()
- func (m *DAG_Neighbor) Size() (n int)
- func (m *DAG_Neighbor) String() string
- func (m *DAG_Neighbor) Unmarshal(dAtA []byte) error
- func (m *DAG_Neighbor) XXX_DiscardUnknown()
- func (m *DAG_Neighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DAG_Neighbor) XXX_Merge(src proto.Message)
- func (m *DAG_Neighbor) XXX_Size() int
- func (m *DAG_Neighbor) XXX_Unmarshal(b []byte) error
- type EndorsementEntry
- func (*EndorsementEntry) Descriptor() ([]byte, []int)
- func (m *EndorsementEntry) GetSignature() []byte
- func (m *EndorsementEntry) GetSigner() *accesscontrol.Member
- func (m *EndorsementEntry) Marshal() (dAtA []byte, err error)
- func (m *EndorsementEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *EndorsementEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EndorsementEntry) ProtoMessage()
- func (m *EndorsementEntry) Reset()
- func (m *EndorsementEntry) Size() (n int)
- func (m *EndorsementEntry) String() string
- func (m *EndorsementEntry) Unmarshal(dAtA []byte) error
- func (m *EndorsementEntry) XXX_DiscardUnknown()
- func (m *EndorsementEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EndorsementEntry) XXX_Merge(src proto.Message)
- func (m *EndorsementEntry) XXX_Size() int
- func (m *EndorsementEntry) XXX_Unmarshal(b []byte) error
- type EthTxParameterKey
- type FilterExtensionType
- type KeyType
- type KeyValuePair
- func (*KeyValuePair) Descriptor() ([]byte, []int)
- func (m *KeyValuePair) GetKey() string
- func (m *KeyValuePair) GetValue() []byte
- func (m *KeyValuePair) Marshal() (dAtA []byte, err error)
- func (m *KeyValuePair) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyValuePair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyValuePair) ProtoMessage()
- func (m *KeyValuePair) Reset()
- func (m *KeyValuePair) Size() (n int)
- func (m *KeyValuePair) String() string
- func (m *KeyValuePair) Unmarshal(dAtA []byte) error
- func (m *KeyValuePair) XXX_DiscardUnknown()
- func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyValuePair) XXX_Merge(src proto.Message)
- func (m *KeyValuePair) XXX_Size() int
- func (m *KeyValuePair) XXX_Unmarshal(b []byte) error
- type KeyVersion
- func (*KeyVersion) Descriptor() ([]byte, []int)
- func (m *KeyVersion) GetRefOffset() int32
- func (m *KeyVersion) GetRefTxId() string
- func (m *KeyVersion) Marshal() (dAtA []byte, err error)
- func (m *KeyVersion) MarshalTo(dAtA []byte) (int, error)
- func (m *KeyVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*KeyVersion) ProtoMessage()
- func (m *KeyVersion) Reset()
- func (m *KeyVersion) Size() (n int)
- func (m *KeyVersion) String() string
- func (m *KeyVersion) Unmarshal(dAtA []byte) error
- func (m *KeyVersion) XXX_DiscardUnknown()
- func (m *KeyVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyVersion) XXX_Merge(src proto.Message)
- func (m *KeyVersion) XXX_Size() int
- func (m *KeyVersion) XXX_Unmarshal(b []byte) error
- type Limit
- func (*Limit) Descriptor() ([]byte, []int)
- func (m *Limit) GetGasLimit() uint64
- func (m *Limit) GetGasPrice() uint64
- func (m *Limit) Marshal() (dAtA []byte, err error)
- func (m *Limit) MarshalTo(dAtA []byte) (int, error)
- func (m *Limit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Limit) ProtoMessage()
- func (m *Limit) Reset()
- func (m *Limit) Size() (n int)
- func (m *Limit) String() string
- func (m *Limit) Unmarshal(dAtA []byte) error
- func (m *Limit) XXX_DiscardUnknown()
- func (m *Limit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Limit) XXX_Merge(src proto.Message)
- func (m *Limit) XXX_Size() int
- func (m *Limit) XXX_Unmarshal(b []byte) error
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (m *Payload) GetChainId() string
- func (m *Payload) GetContractName() string
- func (m *Payload) GetExpirationTime() int64
- func (m *Payload) GetLimit() *Limit
- func (m *Payload) GetMethod() string
- func (t *Payload) GetParameter(key string) []byte
- func (m *Payload) GetParameters() []*KeyValuePair
- func (m *Payload) GetSequence() uint64
- func (m *Payload) GetTimestamp() int64
- func (m *Payload) GetTxId() string
- func (m *Payload) GetTxType() TxType
- func (m *Payload) Marshal() (dAtA []byte, err error)
- func (m *Payload) MarshalTo(dAtA []byte) (int, error)
- func (m *Payload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Payload) ProtoMessage()
- func (m *Payload) Reset()
- func (m *Payload) Size() (n int)
- func (m *Payload) String() string
- func (m *Payload) Unmarshal(dAtA []byte) error
- func (m *Payload) XXX_DiscardUnknown()
- func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payload) XXX_Merge(src proto.Message)
- func (m *Payload) XXX_Size() int
- func (m *Payload) XXX_Unmarshal(b []byte) error
- type PrivateGetContract
- func (*PrivateGetContract) Descriptor() ([]byte, []int)
- func (m *PrivateGetContract) GetContractCode() []byte
- func (m *PrivateGetContract) GetGasLimit() uint64
- func (m *PrivateGetContract) GetVersion() string
- func (m *PrivateGetContract) Marshal() (dAtA []byte, err error)
- func (m *PrivateGetContract) MarshalTo(dAtA []byte) (int, error)
- func (m *PrivateGetContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PrivateGetContract) ProtoMessage()
- func (m *PrivateGetContract) Reset()
- func (m *PrivateGetContract) Size() (n int)
- func (m *PrivateGetContract) String() string
- func (m *PrivateGetContract) Unmarshal(dAtA []byte) error
- func (m *PrivateGetContract) XXX_DiscardUnknown()
- func (m *PrivateGetContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PrivateGetContract) XXX_Merge(src proto.Message)
- func (m *PrivateGetContract) XXX_Size() int
- func (m *PrivateGetContract) XXX_Unmarshal(b []byte) error
- type RawTxRequest
- func (*RawTxRequest) Descriptor() ([]byte, []int)
- func (m *RawTxRequest) GetRawTx() []byte
- func (m *RawTxRequest) Marshal() (dAtA []byte, err error)
- func (m *RawTxRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RawTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RawTxRequest) ProtoMessage()
- func (m *RawTxRequest) Reset()
- func (m *RawTxRequest) Size() (n int)
- func (m *RawTxRequest) String() string
- func (m *RawTxRequest) Unmarshal(dAtA []byte) error
- func (m *RawTxRequest) XXX_DiscardUnknown()
- func (m *RawTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RawTxRequest) XXX_Merge(src proto.Message)
- func (m *RawTxRequest) XXX_Size() int
- func (m *RawTxRequest) XXX_Unmarshal(b []byte) error
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetCode() TxStatusCode
- func (m *Result) GetContractResult() *ContractResult
- func (m *Result) GetMessage() string
- func (m *Result) GetRwSetHash() []byte
- func (m *Result) Marshal() (dAtA []byte, err error)
- func (m *Result) MarshalTo(dAtA []byte) (int, error)
- func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) Size() (n int)
- func (m *Result) String() string
- func (m *Result) Unmarshal(dAtA []byte) error
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Result) XXX_Merge(src proto.Message)
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
- type RuleType
- type RulesConfig
- func (*RulesConfig) Descriptor() ([]byte, []int)
- func (m *RulesConfig) GetAbsoluteExpireTime() int64
- func (m *RulesConfig) Marshal() (dAtA []byte, err error)
- func (m *RulesConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *RulesConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RulesConfig) ProtoMessage()
- func (m *RulesConfig) Reset()
- func (m *RulesConfig) Size() (n int)
- func (m *RulesConfig) String() string
- func (m *RulesConfig) Unmarshal(dAtA []byte) error
- func (m *RulesConfig) XXX_DiscardUnknown()
- func (m *RulesConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RulesConfig) XXX_Merge(src proto.Message)
- func (m *RulesConfig) XXX_Size() int
- func (m *RulesConfig) XXX_Unmarshal(b []byte) error
- type RuntimeType
- type SerializeIntervalType
- type ShardingBirdsNest
- func (*ShardingBirdsNest) Descriptor() ([]byte, []int)
- func (m *ShardingBirdsNest) GetConfig() *ShardingBirdsNestConfig
- func (m *ShardingBirdsNest) GetHeight() uint64
- func (m *ShardingBirdsNest) GetLength() uint32
- func (m *ShardingBirdsNest) Marshal() (dAtA []byte, err error)
- func (m *ShardingBirdsNest) MarshalTo(dAtA []byte) (int, error)
- func (m *ShardingBirdsNest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShardingBirdsNest) ProtoMessage()
- func (m *ShardingBirdsNest) Reset()
- func (m *ShardingBirdsNest) Size() (n int)
- func (m *ShardingBirdsNest) String() string
- func (m *ShardingBirdsNest) Unmarshal(dAtA []byte) error
- func (m *ShardingBirdsNest) XXX_DiscardUnknown()
- func (m *ShardingBirdsNest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShardingBirdsNest) XXX_Merge(src proto.Message)
- func (m *ShardingBirdsNest) XXX_Size() int
- func (m *ShardingBirdsNest) XXX_Unmarshal(b []byte) error
- type ShardingBirdsNestConfig
- func (*ShardingBirdsNestConfig) Descriptor() ([]byte, []int)
- func (m *ShardingBirdsNestConfig) GetBirdsnest() *BirdsNestConfig
- func (m *ShardingBirdsNestConfig) GetChainId() string
- func (m *ShardingBirdsNestConfig) GetLength() uint32
- func (m *ShardingBirdsNestConfig) GetSnapshot() *SnapshotSerializerConfig
- func (m *ShardingBirdsNestConfig) GetTimeout() int64
- func (m *ShardingBirdsNestConfig) Marshal() (dAtA []byte, err error)
- func (m *ShardingBirdsNestConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *ShardingBirdsNestConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShardingBirdsNestConfig) ProtoMessage()
- func (m *ShardingBirdsNestConfig) Reset()
- func (m *ShardingBirdsNestConfig) Size() (n int)
- func (m *ShardingBirdsNestConfig) String() string
- func (m *ShardingBirdsNestConfig) Unmarshal(dAtA []byte) error
- func (m *ShardingBirdsNestConfig) XXX_DiscardUnknown()
- func (m *ShardingBirdsNestConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShardingBirdsNestConfig) XXX_Merge(src proto.Message)
- func (m *ShardingBirdsNestConfig) XXX_Size() int
- func (m *ShardingBirdsNestConfig) XXX_Unmarshal(b []byte) error
- type SnapshotSerializerConfig
- func (*SnapshotSerializerConfig) Descriptor() ([]byte, []int)
- func (m *SnapshotSerializerConfig) GetBlockHeight() *BlockHeightSerializeIntervalConfig
- func (m *SnapshotSerializerConfig) GetPath() string
- func (m *SnapshotSerializerConfig) GetTimed() *TimedSerializeIntervalConfig
- func (m *SnapshotSerializerConfig) GetType() SerializeIntervalType
- func (m *SnapshotSerializerConfig) Marshal() (dAtA []byte, err error)
- func (m *SnapshotSerializerConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *SnapshotSerializerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SnapshotSerializerConfig) ProtoMessage()
- func (m *SnapshotSerializerConfig) Reset()
- func (m *SnapshotSerializerConfig) Size() (n int)
- func (m *SnapshotSerializerConfig) String() string
- func (m *SnapshotSerializerConfig) Unmarshal(dAtA []byte) error
- func (m *SnapshotSerializerConfig) XXX_DiscardUnknown()
- func (m *SnapshotSerializerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SnapshotSerializerConfig) XXX_Merge(src proto.Message)
- func (m *SnapshotSerializerConfig) XXX_Size() int
- func (m *SnapshotSerializerConfig) XXX_Unmarshal(b []byte) error
- type StrSlice
- func (*StrSlice) Descriptor() ([]byte, []int)
- func (m *StrSlice) GetStrArr() []string
- func (m *StrSlice) Marshal() (dAtA []byte, err error)
- func (m *StrSlice) MarshalTo(dAtA []byte) (int, error)
- func (m *StrSlice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StrSlice) ProtoMessage()
- func (m *StrSlice) Reset()
- func (m *StrSlice) Size() (n int)
- func (m *StrSlice) String() string
- func (m *StrSlice) Unmarshal(dAtA []byte) error
- func (m *StrSlice) XXX_DiscardUnknown()
- func (m *StrSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StrSlice) XXX_Merge(src proto.Message)
- func (m *StrSlice) XXX_Size() int
- func (m *StrSlice) XXX_Unmarshal(b []byte) error
- type SubscribeResult
- func (*SubscribeResult) Descriptor() ([]byte, []int)
- func (m *SubscribeResult) GetData() []byte
- func (m *SubscribeResult) Marshal() (dAtA []byte, err error)
- func (m *SubscribeResult) MarshalTo(dAtA []byte) (int, error)
- func (m *SubscribeResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubscribeResult) ProtoMessage()
- func (m *SubscribeResult) Reset()
- func (m *SubscribeResult) Size() (n int)
- func (m *SubscribeResult) String() string
- func (m *SubscribeResult) Unmarshal(dAtA []byte) error
- func (m *SubscribeResult) XXX_DiscardUnknown()
- func (m *SubscribeResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeResult) XXX_Merge(src proto.Message)
- func (m *SubscribeResult) XXX_Size() int
- func (m *SubscribeResult) XXX_Unmarshal(b []byte) error
- type TimedSerializeIntervalConfig
- func (*TimedSerializeIntervalConfig) Descriptor() ([]byte, []int)
- func (m *TimedSerializeIntervalConfig) GetInterval() int64
- func (m *TimedSerializeIntervalConfig) Marshal() (dAtA []byte, err error)
- func (m *TimedSerializeIntervalConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *TimedSerializeIntervalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TimedSerializeIntervalConfig) ProtoMessage()
- func (m *TimedSerializeIntervalConfig) Reset()
- func (m *TimedSerializeIntervalConfig) Size() (n int)
- func (m *TimedSerializeIntervalConfig) String() string
- func (m *TimedSerializeIntervalConfig) Unmarshal(dAtA []byte) error
- func (m *TimedSerializeIntervalConfig) XXX_DiscardUnknown()
- func (m *TimedSerializeIntervalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimedSerializeIntervalConfig) XXX_Merge(src proto.Message)
- func (m *TimedSerializeIntervalConfig) XXX_Size() int
- func (m *TimedSerializeIntervalConfig) XXX_Unmarshal(b []byte) error
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)
- func (m *Transaction) GetEndorsers() []*EndorsementEntry
- func (m *Transaction) GetPayload() *Payload
- func (m *Transaction) GetResult() *Result
- func (m *Transaction) GetSender() *EndorsementEntry
- func (t *Transaction) GetSenderAccountId() []byte
- func (m *Transaction) Marshal() (dAtA []byte, err error)
- func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
- func (m *Transaction) MarshalToSizedBuffer(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
- type TransactionInfo
- func (*TransactionInfo) Descriptor() ([]byte, []int)
- func (m *TransactionInfo) GetBlockHash() []byte
- func (m *TransactionInfo) GetBlockHeight() uint64
- func (m *TransactionInfo) GetBlockTimestamp() int64
- func (m *TransactionInfo) GetTransaction() *Transaction
- func (m *TransactionInfo) GetTxIndex() uint32
- func (m *TransactionInfo) Marshal() (dAtA []byte, err error)
- func (m *TransactionInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionInfo) ProtoMessage()
- func (m *TransactionInfo) Reset()
- func (m *TransactionInfo) Size() (n int)
- func (m *TransactionInfo) String() string
- func (m *TransactionInfo) Unmarshal(dAtA []byte) error
- func (m *TransactionInfo) XXX_DiscardUnknown()
- func (m *TransactionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionInfo) XXX_Merge(src proto.Message)
- func (m *TransactionInfo) XXX_Size() int
- func (m *TransactionInfo) XXX_Unmarshal(b []byte) error
- type TransactionInfoWithRWSet
- func (*TransactionInfoWithRWSet) Descriptor() ([]byte, []int)
- func (m *TransactionInfoWithRWSet) GetBlockHash() []byte
- func (m *TransactionInfoWithRWSet) GetBlockHeight() uint64
- func (m *TransactionInfoWithRWSet) GetBlockTimestamp() int64
- func (m *TransactionInfoWithRWSet) GetRwSet() *TxRWSet
- func (m *TransactionInfoWithRWSet) GetTransaction() *Transaction
- func (m *TransactionInfoWithRWSet) GetTxIndex() uint32
- func (m *TransactionInfoWithRWSet) Marshal() (dAtA []byte, err error)
- func (m *TransactionInfoWithRWSet) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionInfoWithRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionInfoWithRWSet) ProtoMessage()
- func (m *TransactionInfoWithRWSet) Reset()
- func (m *TransactionInfoWithRWSet) Size() (n int)
- func (m *TransactionInfoWithRWSet) String() string
- func (m *TransactionInfoWithRWSet) Unmarshal(dAtA []byte) error
- func (m *TransactionInfoWithRWSet) XXX_DiscardUnknown()
- func (m *TransactionInfoWithRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionInfoWithRWSet) XXX_Merge(src proto.Message)
- func (m *TransactionInfoWithRWSet) XXX_Size() int
- func (m *TransactionInfoWithRWSet) XXX_Unmarshal(b []byte) error
- type TransactionWithRWSet
- func (*TransactionWithRWSet) Descriptor() ([]byte, []int)
- func (m *TransactionWithRWSet) GetRwSet() *TxRWSet
- func (m *TransactionWithRWSet) GetTransaction() *Transaction
- func (m *TransactionWithRWSet) Marshal() (dAtA []byte, err error)
- func (m *TransactionWithRWSet) MarshalTo(dAtA []byte) (int, error)
- func (m *TransactionWithRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransactionWithRWSet) ProtoMessage()
- func (m *TransactionWithRWSet) Reset()
- func (m *TransactionWithRWSet) Size() (n int)
- func (m *TransactionWithRWSet) String() string
- func (m *TransactionWithRWSet) Unmarshal(dAtA []byte) error
- func (m *TransactionWithRWSet) XXX_DiscardUnknown()
- func (m *TransactionWithRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionWithRWSet) XXX_Merge(src proto.Message)
- func (m *TransactionWithRWSet) XXX_Size() int
- func (m *TransactionWithRWSet) XXX_Unmarshal(b []byte) error
- type TxBatchInfo
- func (*TxBatchInfo) Descriptor() ([]byte, []int)
- func (m *TxBatchInfo) GetBatchIds() []string
- func (m *TxBatchInfo) GetIndex() []uint32
- func (m *TxBatchInfo) Marshal() (dAtA []byte, err error)
- func (m *TxBatchInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *TxBatchInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxBatchInfo) ProtoMessage()
- func (m *TxBatchInfo) Reset()
- func (m *TxBatchInfo) Size() (n int)
- func (m *TxBatchInfo) String() string
- func (m *TxBatchInfo) Unmarshal(dAtA []byte) error
- func (m *TxBatchInfo) XXX_DiscardUnknown()
- func (m *TxBatchInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxBatchInfo) XXX_Merge(src proto.Message)
- func (m *TxBatchInfo) XXX_Size() int
- func (m *TxBatchInfo) XXX_Unmarshal(b []byte) error
- type TxRWSet
- func (*TxRWSet) Descriptor() ([]byte, []int)
- func (m *TxRWSet) GetTxId() string
- func (m *TxRWSet) GetTxReads() []*TxRead
- func (m *TxRWSet) GetTxWrites() []*TxWrite
- func (m *TxRWSet) Marshal() (dAtA []byte, err error)
- func (m *TxRWSet) MarshalTo(dAtA []byte) (int, error)
- func (m *TxRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxRWSet) ProtoMessage()
- func (m *TxRWSet) Reset()
- func (m *TxRWSet) Size() (n int)
- func (m *TxRWSet) String() string
- func (m *TxRWSet) Unmarshal(dAtA []byte) error
- func (m *TxRWSet) XXX_DiscardUnknown()
- func (m *TxRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxRWSet) XXX_Merge(src proto.Message)
- func (m *TxRWSet) XXX_Size() int
- func (m *TxRWSet) XXX_Unmarshal(b []byte) error
- type TxRead
- func (*TxRead) Descriptor() ([]byte, []int)
- func (m *TxRead) GetContractName() string
- func (m *TxRead) GetKey() []byte
- func (m *TxRead) GetValue() []byte
- func (m *TxRead) GetVersion() *KeyVersion
- func (m *TxRead) Marshal() (dAtA []byte, err error)
- func (m *TxRead) MarshalTo(dAtA []byte) (int, error)
- func (m *TxRead) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxRead) ProtoMessage()
- func (m *TxRead) Reset()
- func (m *TxRead) Size() (n int)
- func (m *TxRead) String() string
- func (m *TxRead) Unmarshal(dAtA []byte) error
- func (m *TxRead) XXX_DiscardUnknown()
- func (m *TxRead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxRead) XXX_Merge(src proto.Message)
- func (m *TxRead) XXX_Size() int
- func (m *TxRead) XXX_Unmarshal(b []byte) error
- type TxRequest
- func (*TxRequest) Descriptor() ([]byte, []int)
- func (m *TxRequest) GetEndorsers() []*EndorsementEntry
- func (m *TxRequest) GetPayload() *Payload
- func (m *TxRequest) GetSender() *EndorsementEntry
- func (m *TxRequest) Marshal() (dAtA []byte, err error)
- func (m *TxRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *TxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxRequest) ProtoMessage()
- func (m *TxRequest) Reset()
- func (m *TxRequest) Size() (n int)
- func (m *TxRequest) String() string
- func (m *TxRequest) Unmarshal(dAtA []byte) error
- func (m *TxRequest) XXX_DiscardUnknown()
- func (m *TxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxRequest) XXX_Merge(src proto.Message)
- func (m *TxRequest) XXX_Size() int
- func (m *TxRequest) XXX_Unmarshal(b []byte) error
- type TxResponse
- func (*TxResponse) Descriptor() ([]byte, []int)
- func (m *TxResponse) GetCode() TxStatusCode
- func (m *TxResponse) GetContractResult() *ContractResult
- func (m *TxResponse) GetMessage() string
- func (m *TxResponse) GetTxBlockHeight() uint64
- func (m *TxResponse) GetTxId() string
- func (m *TxResponse) GetTxTimestamp() int64
- func (m *TxResponse) Marshal() (dAtA []byte, err error)
- func (m *TxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *TxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxResponse) ProtoMessage()
- func (m *TxResponse) Reset()
- func (m *TxResponse) Size() (n int)
- func (m *TxResponse) String() string
- func (m *TxResponse) Unmarshal(dAtA []byte) error
- func (m *TxResponse) XXX_DiscardUnknown()
- func (m *TxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxResponse) XXX_Merge(src proto.Message)
- func (m *TxResponse) XXX_Size() int
- func (m *TxResponse) XXX_Unmarshal(b []byte) error
- type TxStatusCode
- type TxType
- type TxWrite
- func (*TxWrite) Descriptor() ([]byte, []int)
- func (m *TxWrite) GetContractName() string
- func (m *TxWrite) GetKey() []byte
- func (m *TxWrite) GetValue() []byte
- func (m *TxWrite) Marshal() (dAtA []byte, err error)
- func (m *TxWrite) MarshalTo(dAtA []byte) (int, error)
- func (m *TxWrite) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TxWrite) ProtoMessage()
- func (m *TxWrite) Reset()
- func (m *TxWrite) Size() (n int)
- func (m *TxWrite) String() string
- func (m *TxWrite) Unmarshal(dAtA []byte) error
- func (m *TxWrite) XXX_DiscardUnknown()
- func (m *TxWrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxWrite) XXX_Merge(src proto.Message)
- func (m *TxWrite) XXX_Size() int
- func (m *TxWrite) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthBirdsnest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBirdsnest = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBirdsnest = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthBlock = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBlock = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBlock = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthContract = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowContract = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupContract = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthRequest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRequest = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRequest = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthResult = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowResult = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupResult = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthRwset = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRwset = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRwset = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTransaction = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTransaction = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTransaction = fmt.Errorf("proto: unexpected end of group") )
var BlockType_name = map[int32]string{
0: "NORMAL_BLOCK",
1: "CONFIG_BLOCK",
2: "CONTRACT_MGR_BLOCK",
4: "HAS_COINBASE",
}
var BlockType_value = map[string]int32{
"NORMAL_BLOCK": 0,
"CONFIG_BLOCK": 1,
"CONTRACT_MGR_BLOCK": 2,
"HAS_COINBASE": 4,
}
var EthTxParameterKey_name = map[int32]string{
0: "VALUE",
1: "DATA",
2: "TX_TYPE",
3: "GAS_TIP",
4: "FROM",
}
var EthTxParameterKey_value = map[string]int32{
"VALUE": 0,
"DATA": 1,
"TX_TYPE": 2,
"GAS_TIP": 3,
"FROM": 4,
}
var RuntimeType_name = map[int32]string{
0: "INVALID",
1: "NATIVE",
2: "WASMER",
3: "WXVM",
4: "GASM",
5: "EVM",
6: "DOCKER_GO",
7: "JAVA",
8: "GO",
}
var RuntimeType_value = map[string]int32{
"INVALID": 0,
"NATIVE": 1,
"WASMER": 2,
"WXVM": 3,
"GASM": 4,
"EVM": 5,
"DOCKER_GO": 6,
"JAVA": 7,
"GO": 8,
}
var SerializeIntervalType_name = map[int32]string{
0: "Height",
1: "Timed",
2: "Exit",
}
var SerializeIntervalType_value = map[string]int32{
"Height": 0,
"Timed": 1,
"Exit": 2,
}
var TxStatusCode_name = map[int32]string{
0: "SUCCESS",
1: "TIMEOUT",
2: "INVALID_PARAMETER",
3: "NO_PERMISSION",
4: "CONTRACT_FAIL",
5: "INTERNAL_ERROR",
10: "INVALID_CONTRACT_TRANSACTION_TYPE",
11: "INVALID_CONTRACT_PARAMETER_CONTRACT_NAME",
12: "INVALID_CONTRACT_PARAMETER_METHOD",
13: "INVALID_CONTRACT_PARAMETER_INIT_METHOD",
14: "INVALID_CONTRACT_PARAMETER_UPGRADE_METHOD",
15: "INVALID_CONTRACT_PARAMETER_BYTE_CODE",
16: "INVALID_CONTRACT_PARAMETER_RUNTIME_TYPE",
17: "INVALID_CONTRACT_PARAMETER_VERSION",
20: "GET_FROM_TX_CONTEXT_FAILED",
21: "PUT_INTO_TX_CONTEXT_FAILED",
22: "CONTRACT_VERSION_EXIST_FAILED",
23: "CONTRACT_VERSION_NOT_EXIST_FAILED",
24: "CONTRACT_BYTE_CODE_NOT_EXIST_FAILED",
25: "MARSHAL_SENDER_FAILED",
26: "INVOKE_INIT_METHOD_FAILED",
27: "INVOKE_UPGRADE_METHOD_FAILED",
28: "CREATE_RUNTIME_INSTANCE_FAILED",
29: "UNMARSHAL_CREATOR_FAILED",
30: "UNMARSHAL_SENDER_FAILED",
31: "GET_SENDER_PK_FAILED",
32: "GET_CREATOR_PK_FAILED",
33: "GET_CREATOR_FAILED",
34: "GET_CREATOR_CERT_FAILED",
35: "GET_SENDER_CERT_FAILED",
36: "CONTRACT_FREEZE_FAILED",
37: "CONTRACT_TOO_DEEP_FAILED",
38: "CONTRACT_REVOKE_FAILED",
39: "CONTRACT_INVOKE_METHOD_FAILED",
40: "ARCHIVED_TX",
41: "ARCHIVED_BLOCK",
42: "GAS_BALANCE_NOT_ENOUGH_FAILED",
43: "GAS_LIMIT_NOT_SET",
44: "GAS_LIMIT_TOO_SMALL",
45: "MAKE_SNAPSHOT_STATUS_FINISH",
46: "MAKE_SNAPSHOT_STATUS_UNFINISHED",
}
var TxStatusCode_value = map[string]int32{
"SUCCESS": 0,
"TIMEOUT": 1,
"INVALID_PARAMETER": 2,
"NO_PERMISSION": 3,
"CONTRACT_FAIL": 4,
"INTERNAL_ERROR": 5,
"INVALID_CONTRACT_TRANSACTION_TYPE": 10,
"INVALID_CONTRACT_PARAMETER_CONTRACT_NAME": 11,
"INVALID_CONTRACT_PARAMETER_METHOD": 12,
"INVALID_CONTRACT_PARAMETER_INIT_METHOD": 13,
"INVALID_CONTRACT_PARAMETER_UPGRADE_METHOD": 14,
"INVALID_CONTRACT_PARAMETER_BYTE_CODE": 15,
"INVALID_CONTRACT_PARAMETER_RUNTIME_TYPE": 16,
"INVALID_CONTRACT_PARAMETER_VERSION": 17,
"GET_FROM_TX_CONTEXT_FAILED": 20,
"PUT_INTO_TX_CONTEXT_FAILED": 21,
"CONTRACT_VERSION_EXIST_FAILED": 22,
"CONTRACT_VERSION_NOT_EXIST_FAILED": 23,
"CONTRACT_BYTE_CODE_NOT_EXIST_FAILED": 24,
"MARSHAL_SENDER_FAILED": 25,
"INVOKE_INIT_METHOD_FAILED": 26,
"INVOKE_UPGRADE_METHOD_FAILED": 27,
"CREATE_RUNTIME_INSTANCE_FAILED": 28,
"UNMARSHAL_CREATOR_FAILED": 29,
"UNMARSHAL_SENDER_FAILED": 30,
"GET_SENDER_PK_FAILED": 31,
"GET_CREATOR_PK_FAILED": 32,
"GET_CREATOR_FAILED": 33,
"GET_CREATOR_CERT_FAILED": 34,
"GET_SENDER_CERT_FAILED": 35,
"CONTRACT_FREEZE_FAILED": 36,
"CONTRACT_TOO_DEEP_FAILED": 37,
"CONTRACT_REVOKE_FAILED": 38,
"CONTRACT_INVOKE_METHOD_FAILED": 39,
"ARCHIVED_TX": 40,
"ARCHIVED_BLOCK": 41,
"GAS_BALANCE_NOT_ENOUGH_FAILED": 42,
"GAS_LIMIT_NOT_SET": 43,
"GAS_LIMIT_TOO_SMALL": 44,
"MAKE_SNAPSHOT_STATUS_FINISH": 45,
"MAKE_SNAPSHOT_STATUS_UNFINISHED": 46,
}
Functions ¶
Types ¶
type AdditionalData ¶
type AdditionalData struct { // extra data, with map type, excluded in hash calculation ExtraData map[string][]byte `` /* 176-byte string literal not displayed */ }
block additional data
func (*AdditionalData) Descriptor ¶
func (*AdditionalData) Descriptor() ([]byte, []int)
func (*AdditionalData) GetExtraData ¶
func (m *AdditionalData) GetExtraData() map[string][]byte
func (*AdditionalData) Marshal ¶
func (m *AdditionalData) Marshal() (dAtA []byte, err error)
func (*AdditionalData) MarshalTo ¶
func (m *AdditionalData) MarshalTo(dAtA []byte) (int, error)
func (*AdditionalData) MarshalToSizedBuffer ¶
func (m *AdditionalData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AdditionalData) ProtoMessage ¶
func (*AdditionalData) ProtoMessage()
func (*AdditionalData) Reset ¶
func (m *AdditionalData) Reset()
func (*AdditionalData) Size ¶
func (m *AdditionalData) Size() (n int)
func (*AdditionalData) String ¶
func (m *AdditionalData) String() string
func (*AdditionalData) Unmarshal ¶
func (m *AdditionalData) Unmarshal(dAtA []byte) error
func (*AdditionalData) XXX_DiscardUnknown ¶
func (m *AdditionalData) XXX_DiscardUnknown()
func (*AdditionalData) XXX_Marshal ¶
func (m *AdditionalData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AdditionalData) XXX_Merge ¶
func (m *AdditionalData) XXX_Merge(src proto.Message)
func (*AdditionalData) XXX_Size ¶
func (m *AdditionalData) XXX_Size() int
func (*AdditionalData) XXX_Unmarshal ¶
func (m *AdditionalData) XXX_Unmarshal(b []byte) error
type AliasCertInfo ¶
type AliasCertInfo struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` BlockHeight uint64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` }
cert info
func (*AliasCertInfo) Descriptor ¶
func (*AliasCertInfo) Descriptor() ([]byte, []int)
func (*AliasCertInfo) GetBlockHeight ¶
func (m *AliasCertInfo) GetBlockHeight() uint64
func (*AliasCertInfo) GetCert ¶
func (m *AliasCertInfo) GetCert() []byte
func (*AliasCertInfo) GetHash ¶
func (m *AliasCertInfo) GetHash() string
func (*AliasCertInfo) Marshal ¶
func (m *AliasCertInfo) Marshal() (dAtA []byte, err error)
func (*AliasCertInfo) MarshalTo ¶
func (m *AliasCertInfo) MarshalTo(dAtA []byte) (int, error)
func (*AliasCertInfo) MarshalToSizedBuffer ¶
func (m *AliasCertInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AliasCertInfo) ProtoMessage ¶
func (*AliasCertInfo) ProtoMessage()
func (*AliasCertInfo) Reset ¶
func (m *AliasCertInfo) Reset()
func (*AliasCertInfo) Size ¶
func (m *AliasCertInfo) Size() (n int)
func (*AliasCertInfo) String ¶
func (m *AliasCertInfo) String() string
func (*AliasCertInfo) Unmarshal ¶
func (m *AliasCertInfo) Unmarshal(dAtA []byte) error
func (*AliasCertInfo) XXX_DiscardUnknown ¶
func (m *AliasCertInfo) XXX_DiscardUnknown()
func (*AliasCertInfo) XXX_Marshal ¶
func (m *AliasCertInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AliasCertInfo) XXX_Merge ¶
func (m *AliasCertInfo) XXX_Merge(src proto.Message)
func (*AliasCertInfo) XXX_Size ¶
func (m *AliasCertInfo) XXX_Size() int
func (*AliasCertInfo) XXX_Unmarshal ¶
func (m *AliasCertInfo) XXX_Unmarshal(b []byte) error
type AliasInfo ¶
type AliasInfo struct { Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"` NowCert *AliasCertInfo `protobuf:"bytes,2,opt,name=now_cert,json=nowCert,proto3" json:"now_cert,omitempty"` HisCerts []*AliasCertInfo `protobuf:"bytes,3,rep,name=his_certs,json=hisCerts,proto3" json:"his_certs,omitempty"` }
alias info
func (*AliasInfo) GetHisCerts ¶
func (m *AliasInfo) GetHisCerts() []*AliasCertInfo
func (*AliasInfo) GetNowCert ¶
func (m *AliasInfo) GetNowCert() *AliasCertInfo
func (*AliasInfo) MarshalToSizedBuffer ¶
func (*AliasInfo) XXX_Marshal ¶
type AliasInfos ¶
type AliasInfos struct {
AliasInfos []*AliasInfo `protobuf:"bytes,1,rep,name=alias_infos,json=aliasInfos,proto3" json:"alias_infos,omitempty"`
}
alias info
func (*AliasInfos) Descriptor ¶
func (*AliasInfos) Descriptor() ([]byte, []int)
func (*AliasInfos) GetAliasInfos ¶
func (m *AliasInfos) GetAliasInfos() []*AliasInfo
func (*AliasInfos) Marshal ¶
func (m *AliasInfos) Marshal() (dAtA []byte, err error)
func (*AliasInfos) MarshalTo ¶
func (m *AliasInfos) MarshalTo(dAtA []byte) (int, error)
func (*AliasInfos) MarshalToSizedBuffer ¶
func (m *AliasInfos) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AliasInfos) ProtoMessage ¶
func (*AliasInfos) ProtoMessage()
func (*AliasInfos) Reset ¶
func (m *AliasInfos) Reset()
func (*AliasInfos) Size ¶
func (m *AliasInfos) Size() (n int)
func (*AliasInfos) String ¶
func (m *AliasInfos) String() string
func (*AliasInfos) Unmarshal ¶
func (m *AliasInfos) Unmarshal(dAtA []byte) error
func (*AliasInfos) XXX_DiscardUnknown ¶
func (m *AliasInfos) XXX_DiscardUnknown()
func (*AliasInfos) XXX_Marshal ¶
func (m *AliasInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AliasInfos) XXX_Merge ¶
func (m *AliasInfos) XXX_Merge(src proto.Message)
func (*AliasInfos) XXX_Size ¶
func (m *AliasInfos) XXX_Size() int
func (*AliasInfos) XXX_Unmarshal ¶
func (m *AliasInfos) XXX_Unmarshal(b []byte) error
type BirdsNest ¶
type BirdsNest struct { // Bird's Nest config Config *BirdsNestConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // The final height Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // current index CurrentIndex uint32 `protobuf:"varint,3,opt,name=currentIndex,proto3" json:"currentIndex,omitempty"` // A group of cuckoos filter Filters []*CuckooFilter `protobuf:"bytes,4,rep,name=filters,proto3" json:"filters,omitempty"` }
Bird's Nest
func (*BirdsNest) GetConfig ¶
func (m *BirdsNest) GetConfig() *BirdsNestConfig
func (*BirdsNest) GetFilters ¶
func (m *BirdsNest) GetFilters() []*CuckooFilter
func (*BirdsNest) MarshalToSizedBuffer ¶
func (*BirdsNest) XXX_Marshal ¶
type BirdsNestConfig ¶
type BirdsNestConfig struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Length uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` // rules config Rules *RulesConfig `protobuf:"bytes,3,opt,name=rules,proto3" json:"rules,omitempty"` // Cuckoo config Cuckoo *CuckooConfig `protobuf:"bytes,4,opt,name=cuckoo,proto3" json:"cuckoo,omitempty"` // Snapshot config Snapshot *SnapshotSerializerConfig `protobuf:"bytes,5,opt,name=snapshot,proto3" json:"snapshot,omitempty"` }
func (*BirdsNestConfig) Descriptor ¶
func (*BirdsNestConfig) Descriptor() ([]byte, []int)
func (*BirdsNestConfig) GetChainId ¶
func (m *BirdsNestConfig) GetChainId() string
func (*BirdsNestConfig) GetCuckoo ¶
func (m *BirdsNestConfig) GetCuckoo() *CuckooConfig
func (*BirdsNestConfig) GetLength ¶
func (m *BirdsNestConfig) GetLength() uint32
func (*BirdsNestConfig) GetRules ¶
func (m *BirdsNestConfig) GetRules() *RulesConfig
func (*BirdsNestConfig) GetSnapshot ¶
func (m *BirdsNestConfig) GetSnapshot() *SnapshotSerializerConfig
func (*BirdsNestConfig) Marshal ¶
func (m *BirdsNestConfig) Marshal() (dAtA []byte, err error)
func (*BirdsNestConfig) MarshalTo ¶
func (m *BirdsNestConfig) MarshalTo(dAtA []byte) (int, error)
func (*BirdsNestConfig) MarshalToSizedBuffer ¶
func (m *BirdsNestConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BirdsNestConfig) ProtoMessage ¶
func (*BirdsNestConfig) ProtoMessage()
func (*BirdsNestConfig) Reset ¶
func (m *BirdsNestConfig) Reset()
func (*BirdsNestConfig) Size ¶
func (m *BirdsNestConfig) Size() (n int)
func (*BirdsNestConfig) String ¶
func (m *BirdsNestConfig) String() string
func (*BirdsNestConfig) Unmarshal ¶
func (m *BirdsNestConfig) Unmarshal(dAtA []byte) error
func (*BirdsNestConfig) XXX_DiscardUnknown ¶
func (m *BirdsNestConfig) XXX_DiscardUnknown()
func (*BirdsNestConfig) XXX_Marshal ¶
func (m *BirdsNestConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BirdsNestConfig) XXX_Merge ¶
func (m *BirdsNestConfig) XXX_Merge(src proto.Message)
func (*BirdsNestConfig) XXX_Size ¶
func (m *BirdsNestConfig) XXX_Size() int
func (*BirdsNestConfig) XXX_Unmarshal ¶
func (m *BirdsNestConfig) XXX_Unmarshal(b []byte) error
type Block ¶
type Block struct { // header of the block Header *BlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // execution sequence of intra block transactions, generated by proposer Dag *DAG `protobuf:"bytes,2,opt,name=dag,proto3" json:"dag,omitempty"` // transaction list in this block Txs []*Transaction `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"` // stores the voting information of the current block // not included in block hash value calculation AdditionalData *AdditionalData `protobuf:"bytes,4,opt,name=additional_data,json=additionalData,proto3" json:"additional_data,omitempty"` }
Block definition
func (*Block) GetAdditionalData ¶
func (m *Block) GetAdditionalData() *AdditionalData
func (*Block) GetHeader ¶
func (m *Block) GetHeader() *BlockHeader
func (*Block) GetTxs ¶
func (m *Block) GetTxs() []*Transaction
func (*Block) XXX_Marshal ¶
type BlockHeader ¶
type BlockHeader struct { // block version BlockVersion uint32 `protobuf:"varint,1,opt,name=block_version,json=blockVersion,proto3" json:"block_version,omitempty"` // config block or normal block or other else BlockType BlockType `protobuf:"varint,2,opt,name=block_type,json=blockType,proto3,enum=common.BlockType" json:"block_type,omitempty"` // blockchain identifier ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // block height BlockHeight uint64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // block hash (block identifier) BlockHash []byte `protobuf:"bytes,5,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // previous block hash PreBlockHash []byte `protobuf:"bytes,6,opt,name=pre_block_hash,json=preBlockHash,proto3" json:"pre_block_hash,omitempty"` // previous config block height, used to trace and check if chain config is valid PreConfHeight uint64 `protobuf:"varint,7,opt,name=pre_conf_height,json=preConfHeight,proto3" json:"pre_conf_height,omitempty"` // count of transactions TxCount uint32 `protobuf:"varint,8,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"` // merkle root of transactions // used to verify the existence of this transactions TxRoot []byte `protobuf:"bytes,9,opt,name=tx_root,json=txRoot,proto3" json:"tx_root,omitempty"` // Save the DAG feature summary, and hash the DAG after Pb serialization // hash of serialized DAG DagHash []byte `protobuf:"bytes,10,opt,name=dag_hash,json=dagHash,proto3" json:"dag_hash,omitempty"` // The root hash of Merkle tree generated by read_write_set_digest in the result of each transaction in the block // used to verify the read-write set of the block RwSetRoot []byte `protobuf:"bytes,11,opt,name=rw_set_root,json=rwSetRoot,proto3" json:"rw_set_root,omitempty"` // the time stamp of the block BlockTimestamp int64 `protobuf:"varint,12,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"` // consensus parameters // used to store information, include in block hash calculation ConsensusArgs []byte `protobuf:"bytes,13,opt,name=consensus_args,json=consensusArgs,proto3" json:"consensus_args,omitempty"` // proposal node identifier Proposer *accesscontrol.Member `protobuf:"bytes,14,opt,name=proposer,proto3" json:"proposer,omitempty"` // signature of proposer Signature []byte `protobuf:"bytes,15,opt,name=signature,proto3" json:"signature,omitempty"` }
header of the block
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) GetBlockHash ¶
func (m *BlockHeader) GetBlockHash() []byte
func (*BlockHeader) GetBlockHeight ¶
func (m *BlockHeader) GetBlockHeight() uint64
func (*BlockHeader) GetBlockTimestamp ¶
func (m *BlockHeader) GetBlockTimestamp() int64
func (*BlockHeader) GetBlockType ¶
func (m *BlockHeader) GetBlockType() BlockType
func (*BlockHeader) GetBlockVersion ¶
func (m *BlockHeader) GetBlockVersion() uint32
func (*BlockHeader) GetChainId ¶
func (m *BlockHeader) GetChainId() string
func (*BlockHeader) GetConsensusArgs ¶
func (m *BlockHeader) GetConsensusArgs() []byte
func (*BlockHeader) GetDagHash ¶
func (m *BlockHeader) GetDagHash() []byte
func (*BlockHeader) GetPreBlockHash ¶
func (m *BlockHeader) GetPreBlockHash() []byte
func (*BlockHeader) GetPreConfHeight ¶
func (m *BlockHeader) GetPreConfHeight() uint64
func (*BlockHeader) GetProposer ¶
func (m *BlockHeader) GetProposer() *accesscontrol.Member
func (*BlockHeader) GetRwSetRoot ¶
func (m *BlockHeader) GetRwSetRoot() []byte
func (*BlockHeader) GetSignature ¶
func (m *BlockHeader) GetSignature() []byte
func (*BlockHeader) GetTxCount ¶
func (m *BlockHeader) GetTxCount() uint32
func (*BlockHeader) GetTxRoot ¶
func (m *BlockHeader) GetTxRoot() []byte
func (*BlockHeader) Marshal ¶
func (m *BlockHeader) Marshal() (dAtA []byte, err error)
func (*BlockHeader) MarshalTo ¶
func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error)
func (*BlockHeader) MarshalToSizedBuffer ¶
func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) Size ¶
func (m *BlockHeader) Size() (n int)
func (*BlockHeader) String ¶
func (m *BlockHeader) String() string
func (*BlockHeader) Unmarshal ¶
func (m *BlockHeader) Unmarshal(dAtA []byte) error
func (*BlockHeader) XXX_DiscardUnknown ¶
func (m *BlockHeader) XXX_DiscardUnknown()
func (*BlockHeader) XXX_Marshal ¶
func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeader) XXX_Merge ¶
func (m *BlockHeader) XXX_Merge(src proto.Message)
func (*BlockHeader) XXX_Size ¶
func (m *BlockHeader) XXX_Size() int
func (*BlockHeader) XXX_Unmarshal ¶
func (m *BlockHeader) XXX_Unmarshal(b []byte) error
type BlockHeightSerializeIntervalConfig ¶
type BlockHeightSerializeIntervalConfig struct {
Interval uint64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
}
Block height serialization interval
func (*BlockHeightSerializeIntervalConfig) Descriptor ¶
func (*BlockHeightSerializeIntervalConfig) Descriptor() ([]byte, []int)
func (*BlockHeightSerializeIntervalConfig) GetInterval ¶
func (m *BlockHeightSerializeIntervalConfig) GetInterval() uint64
func (*BlockHeightSerializeIntervalConfig) Marshal ¶
func (m *BlockHeightSerializeIntervalConfig) Marshal() (dAtA []byte, err error)
func (*BlockHeightSerializeIntervalConfig) MarshalTo ¶
func (m *BlockHeightSerializeIntervalConfig) MarshalTo(dAtA []byte) (int, error)
func (*BlockHeightSerializeIntervalConfig) MarshalToSizedBuffer ¶
func (m *BlockHeightSerializeIntervalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockHeightSerializeIntervalConfig) ProtoMessage ¶
func (*BlockHeightSerializeIntervalConfig) ProtoMessage()
func (*BlockHeightSerializeIntervalConfig) Reset ¶
func (m *BlockHeightSerializeIntervalConfig) Reset()
func (*BlockHeightSerializeIntervalConfig) Size ¶
func (m *BlockHeightSerializeIntervalConfig) Size() (n int)
func (*BlockHeightSerializeIntervalConfig) String ¶
func (m *BlockHeightSerializeIntervalConfig) String() string
func (*BlockHeightSerializeIntervalConfig) Unmarshal ¶
func (m *BlockHeightSerializeIntervalConfig) Unmarshal(dAtA []byte) error
func (*BlockHeightSerializeIntervalConfig) XXX_DiscardUnknown ¶
func (m *BlockHeightSerializeIntervalConfig) XXX_DiscardUnknown()
func (*BlockHeightSerializeIntervalConfig) XXX_Marshal ¶
func (m *BlockHeightSerializeIntervalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeightSerializeIntervalConfig) XXX_Merge ¶
func (m *BlockHeightSerializeIntervalConfig) XXX_Merge(src proto.Message)
func (*BlockHeightSerializeIntervalConfig) XXX_Size ¶
func (m *BlockHeightSerializeIntervalConfig) XXX_Size() int
func (*BlockHeightSerializeIntervalConfig) XXX_Unmarshal ¶
func (m *BlockHeightSerializeIntervalConfig) XXX_Unmarshal(b []byte) error
type BlockInfo ¶
type BlockInfo struct { // block Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // The read/write set list corresponding to the transaction included in the block RwsetList []*TxRWSet `protobuf:"bytes,2,rep,name=rwset_list,json=rwsetList,proto3" json:"rwset_list,omitempty"` }
block information
func (*BlockInfo) MarshalToSizedBuffer ¶
func (*BlockInfo) XXX_Marshal ¶
type BlockType ¶
type BlockType int32
BlockType specify block pack txs type
const ( // Normal block, pack multi txs into one block BlockType_NORMAL_BLOCK BlockType = 0 // Config block, only include 1 chain config update tx in this block BlockType_CONFIG_BLOCK BlockType = 1 // Sql Contract init or upgrade block, only include 1 sql contract init or upgrade tx in this block BlockType_CONTRACT_MGR_BLOCK BlockType = 2 // block.Txs[0] is a coinbase tx BlockType_HAS_COINBASE BlockType = 4 )
type CertInfo ¶
type CertInfo struct { // certificate hash Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // certificate contents Cert []byte `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` }
certificate information
func (*CertInfo) MarshalToSizedBuffer ¶
func (*CertInfo) XXX_Marshal ¶
type CertInfos ¶
type CertInfos struct {
CertInfos []*CertInfo `protobuf:"bytes,1,rep,name=cert_infos,json=certInfos,proto3" json:"cert_infos,omitempty"`
}
certificate collection
func (*CertInfos) MarshalToSizedBuffer ¶
func (*CertInfos) XXX_Marshal ¶
type Contract ¶
type Contract struct { // smart contract name, set by contract creator, can have multiple versions Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // smart contract version, set by contract creator, name + version should be unique Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // smart contract runtime type, set by contract creator RuntimeType RuntimeType `protobuf:"varint,3,opt,name=runtime_type,json=runtimeType,proto3,enum=common.RuntimeType" json:"runtime_type,omitempty"` //contract status Status ContractStatus `protobuf:"varint,4,opt,name=status,proto3,enum=common.ContractStatus" json:"status,omitempty"` //contract creator identity Creator *accesscontrol.MemberFull `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"` //contract address Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` }
func (*Contract) GetCreator ¶
func (m *Contract) GetCreator() *accesscontrol.MemberFull
func (*Contract) GetRuntimeType ¶
func (m *Contract) GetRuntimeType() RuntimeType
func (*Contract) GetStatus ¶
func (m *Contract) GetStatus() ContractStatus
func (*Contract) MarshalToSizedBuffer ¶
func (*Contract) XXX_Marshal ¶
type ContractEvent ¶
type ContractEvent struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` ContractName string `protobuf:"bytes,3,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` ContractVersion string `protobuf:"bytes,4,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"` EventData []string `protobuf:"bytes,5,rep,name=event_data,json=eventData,proto3" json:"event_data,omitempty"` }
contract event saved in block chain
func (*ContractEvent) Descriptor ¶
func (*ContractEvent) Descriptor() ([]byte, []int)
func (*ContractEvent) GetContractName ¶
func (m *ContractEvent) GetContractName() string
func (*ContractEvent) GetContractVersion ¶
func (m *ContractEvent) GetContractVersion() string
func (*ContractEvent) GetEventData ¶
func (m *ContractEvent) GetEventData() []string
func (*ContractEvent) GetTopic ¶
func (m *ContractEvent) GetTopic() string
func (*ContractEvent) GetTxId ¶
func (m *ContractEvent) GetTxId() string
func (*ContractEvent) Marshal ¶
func (m *ContractEvent) Marshal() (dAtA []byte, err error)
func (*ContractEvent) MarshalTo ¶
func (m *ContractEvent) MarshalTo(dAtA []byte) (int, error)
func (*ContractEvent) MarshalToSizedBuffer ¶
func (m *ContractEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractEvent) ProtoMessage ¶
func (*ContractEvent) ProtoMessage()
func (*ContractEvent) Reset ¶
func (m *ContractEvent) Reset()
func (*ContractEvent) Size ¶
func (m *ContractEvent) Size() (n int)
func (*ContractEvent) String ¶
func (m *ContractEvent) String() string
func (*ContractEvent) Unmarshal ¶
func (m *ContractEvent) Unmarshal(dAtA []byte) error
func (*ContractEvent) XXX_DiscardUnknown ¶
func (m *ContractEvent) XXX_DiscardUnknown()
func (*ContractEvent) XXX_Marshal ¶
func (m *ContractEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractEvent) XXX_Merge ¶
func (m *ContractEvent) XXX_Merge(src proto.Message)
func (*ContractEvent) XXX_Size ¶
func (m *ContractEvent) XXX_Size() int
func (*ContractEvent) XXX_Unmarshal ¶
func (m *ContractEvent) XXX_Unmarshal(b []byte) error
type ContractEventInfo ¶
type ContractEventInfo struct { BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` TxId string `protobuf:"bytes,4,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` EventIndex uint32 `protobuf:"varint,5,opt,name=event_index,json=eventIndex,proto3" json:"event_index,omitempty"` ContractName string `protobuf:"bytes,6,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` ContractVersion string `protobuf:"bytes,7,opt,name=contract_version,json=contractVersion,proto3" json:"contract_version,omitempty"` EventData []string `protobuf:"bytes,8,rep,name=event_data,json=eventData,proto3" json:"event_data,omitempty"` }
contract event published to user
func (*ContractEventInfo) Descriptor ¶
func (*ContractEventInfo) Descriptor() ([]byte, []int)
func (*ContractEventInfo) GetBlockHeight ¶
func (m *ContractEventInfo) GetBlockHeight() uint64
func (*ContractEventInfo) GetChainId ¶
func (m *ContractEventInfo) GetChainId() string
func (*ContractEventInfo) GetContractName ¶
func (m *ContractEventInfo) GetContractName() string
func (*ContractEventInfo) GetContractVersion ¶
func (m *ContractEventInfo) GetContractVersion() string
func (*ContractEventInfo) GetEventData ¶
func (m *ContractEventInfo) GetEventData() []string
func (*ContractEventInfo) GetEventIndex ¶
func (m *ContractEventInfo) GetEventIndex() uint32
func (*ContractEventInfo) GetTopic ¶
func (m *ContractEventInfo) GetTopic() string
func (*ContractEventInfo) GetTxId ¶
func (m *ContractEventInfo) GetTxId() string
func (*ContractEventInfo) Marshal ¶
func (m *ContractEventInfo) Marshal() (dAtA []byte, err error)
func (*ContractEventInfo) MarshalTo ¶
func (m *ContractEventInfo) MarshalTo(dAtA []byte) (int, error)
func (*ContractEventInfo) MarshalToSizedBuffer ¶
func (m *ContractEventInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractEventInfo) ProtoMessage ¶
func (*ContractEventInfo) ProtoMessage()
func (*ContractEventInfo) Reset ¶
func (m *ContractEventInfo) Reset()
func (*ContractEventInfo) Size ¶
func (m *ContractEventInfo) Size() (n int)
func (*ContractEventInfo) String ¶
func (m *ContractEventInfo) String() string
func (*ContractEventInfo) Unmarshal ¶
func (m *ContractEventInfo) Unmarshal(dAtA []byte) error
func (*ContractEventInfo) XXX_DiscardUnknown ¶
func (m *ContractEventInfo) XXX_DiscardUnknown()
func (*ContractEventInfo) XXX_Marshal ¶
func (m *ContractEventInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractEventInfo) XXX_Merge ¶
func (m *ContractEventInfo) XXX_Merge(src proto.Message)
func (*ContractEventInfo) XXX_Size ¶
func (m *ContractEventInfo) XXX_Size() int
func (*ContractEventInfo) XXX_Unmarshal ¶
func (m *ContractEventInfo) XXX_Unmarshal(b []byte) error
type ContractEventInfoList ¶
type ContractEventInfoList struct {
ContractEvents []*ContractEventInfo `protobuf:"bytes,1,rep,name=contract_events,json=contractEvents,proto3" json:"contract_events,omitempty"`
}
contract event published to user
func (*ContractEventInfoList) Descriptor ¶
func (*ContractEventInfoList) Descriptor() ([]byte, []int)
func (*ContractEventInfoList) GetContractEvents ¶
func (m *ContractEventInfoList) GetContractEvents() []*ContractEventInfo
func (*ContractEventInfoList) Marshal ¶
func (m *ContractEventInfoList) Marshal() (dAtA []byte, err error)
func (*ContractEventInfoList) MarshalTo ¶
func (m *ContractEventInfoList) MarshalTo(dAtA []byte) (int, error)
func (*ContractEventInfoList) MarshalToSizedBuffer ¶
func (m *ContractEventInfoList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractEventInfoList) ProtoMessage ¶
func (*ContractEventInfoList) ProtoMessage()
func (*ContractEventInfoList) Reset ¶
func (m *ContractEventInfoList) Reset()
func (*ContractEventInfoList) Size ¶
func (m *ContractEventInfoList) Size() (n int)
func (*ContractEventInfoList) String ¶
func (m *ContractEventInfoList) String() string
func (*ContractEventInfoList) Unmarshal ¶
func (m *ContractEventInfoList) Unmarshal(dAtA []byte) error
func (*ContractEventInfoList) XXX_DiscardUnknown ¶
func (m *ContractEventInfoList) XXX_DiscardUnknown()
func (*ContractEventInfoList) XXX_Marshal ¶
func (m *ContractEventInfoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractEventInfoList) XXX_Merge ¶
func (m *ContractEventInfoList) XXX_Merge(src proto.Message)
func (*ContractEventInfoList) XXX_Size ¶
func (m *ContractEventInfoList) XXX_Size() int
func (*ContractEventInfoList) XXX_Unmarshal ¶
func (m *ContractEventInfoList) XXX_Unmarshal(b []byte) error
type ContractResult ¶
type ContractResult struct { // user contract defined return code, 0-ok, >0 user define error code. for example, insufficient balance in token transfer Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // user contract defined result Result []byte `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` // user contract defined result message Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // gas used by current contract(include contract call) GasUsed uint64 `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` // contract events ContractEvent []*ContractEvent `protobuf:"bytes,5,rep,name=contract_event,json=contractEvent,proto3" json:"contract_event,omitempty"` }
invoke user contract method return UserContractReturnPayload Unmarshal from TransactResult.TxResponse.payload
func (*ContractResult) Descriptor ¶
func (*ContractResult) Descriptor() ([]byte, []int)
func (*ContractResult) GetCode ¶
func (m *ContractResult) GetCode() uint32
func (*ContractResult) GetContractEvent ¶
func (m *ContractResult) GetContractEvent() []*ContractEvent
func (*ContractResult) GetGasUsed ¶
func (m *ContractResult) GetGasUsed() uint64
func (*ContractResult) GetMessage ¶
func (m *ContractResult) GetMessage() string
func (*ContractResult) GetResult ¶
func (m *ContractResult) GetResult() []byte
func (*ContractResult) Marshal ¶
func (m *ContractResult) Marshal() (dAtA []byte, err error)
func (*ContractResult) MarshalTo ¶
func (m *ContractResult) MarshalTo(dAtA []byte) (int, error)
func (*ContractResult) MarshalToSizedBuffer ¶
func (m *ContractResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractResult) ProtoMessage ¶
func (*ContractResult) ProtoMessage()
func (*ContractResult) Reset ¶
func (m *ContractResult) Reset()
func (*ContractResult) Size ¶
func (m *ContractResult) Size() (n int)
func (*ContractResult) String ¶
func (m *ContractResult) String() string
func (*ContractResult) Unmarshal ¶
func (m *ContractResult) Unmarshal(dAtA []byte) error
func (*ContractResult) XXX_DiscardUnknown ¶
func (m *ContractResult) XXX_DiscardUnknown()
func (*ContractResult) XXX_Marshal ¶
func (m *ContractResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractResult) XXX_Merge ¶
func (m *ContractResult) XXX_Merge(src proto.Message)
func (*ContractResult) XXX_Size ¶
func (m *ContractResult) XXX_Size() int
func (*ContractResult) XXX_Unmarshal ¶
func (m *ContractResult) XXX_Unmarshal(b []byte) error
type ContractStatus ¶
type ContractStatus int32
current contract status
const ( // normal, can be invoked ContractStatus_NORMAL ContractStatus = 0 // frozen, cannot be invoked temporarily ContractStatus_FROZEN ContractStatus = 1 // revoked, cannot be invoked permanently ContractStatus_REVOKED ContractStatus = 2 )
func (ContractStatus) EnumDescriptor ¶
func (ContractStatus) EnumDescriptor() ([]byte, []int)
func (ContractStatus) String ¶
func (x ContractStatus) String() string
type CuckooConfig ¶
type CuckooConfig struct { KeyType KeyType `protobuf:"varint,1,opt,name=key_type,json=keyType,proto3,enum=common.KeyType" json:"key_type,omitempty"` // num of tags for each bucket, which is b in paper. tag is fingerprint, which is f in paper. TagsPerBucket uint32 `protobuf:"varint,2,opt,name=tags_per_bucket,json=tagsPerBucket,proto3" json:"tags_per_bucket,omitempty"` // num of bits for each item, which is length of tag(fingerprint) BitsPerItem uint32 `protobuf:"varint,3,opt,name=bits_per_item,json=bitsPerItem,proto3" json:"bits_per_item,omitempty"` // num of keys that filter will store. this value should close to and lower // nextPow2(maxNumKeys/tagsPerBucket) * maxLoadFactor. cause table.NumBuckets is always a power of two MaxNumKeys uint32 `protobuf:"varint,4,opt,name=max_num_keys,json=maxNumKeys,proto3" json:"max_num_keys,omitempty"` // has two constant parameters to choose from: // TableTypeSingle normal single table // TableTypePacked packed table, use semi-sort to save 1 bit per item TableType uint32 `protobuf:"varint,5,opt,name=table_type,json=tableType,proto3" json:"table_type,omitempty"` }
Cuckoo config
func (*CuckooConfig) Descriptor ¶
func (*CuckooConfig) Descriptor() ([]byte, []int)
func (*CuckooConfig) GetBitsPerItem ¶
func (m *CuckooConfig) GetBitsPerItem() uint32
func (*CuckooConfig) GetKeyType ¶
func (m *CuckooConfig) GetKeyType() KeyType
func (*CuckooConfig) GetMaxNumKeys ¶
func (m *CuckooConfig) GetMaxNumKeys() uint32
func (*CuckooConfig) GetTableType ¶
func (m *CuckooConfig) GetTableType() uint32
func (*CuckooConfig) GetTagsPerBucket ¶
func (m *CuckooConfig) GetTagsPerBucket() uint32
func (*CuckooConfig) Marshal ¶
func (m *CuckooConfig) Marshal() (dAtA []byte, err error)
func (*CuckooConfig) MarshalTo ¶
func (m *CuckooConfig) MarshalTo(dAtA []byte) (int, error)
func (*CuckooConfig) MarshalToSizedBuffer ¶
func (m *CuckooConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CuckooConfig) ProtoMessage ¶
func (*CuckooConfig) ProtoMessage()
func (*CuckooConfig) Reset ¶
func (m *CuckooConfig) Reset()
func (*CuckooConfig) Size ¶
func (m *CuckooConfig) Size() (n int)
func (*CuckooConfig) String ¶
func (m *CuckooConfig) String() string
func (*CuckooConfig) Unmarshal ¶
func (m *CuckooConfig) Unmarshal(dAtA []byte) error
func (*CuckooConfig) XXX_DiscardUnknown ¶
func (m *CuckooConfig) XXX_DiscardUnknown()
func (*CuckooConfig) XXX_Marshal ¶
func (m *CuckooConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CuckooConfig) XXX_Merge ¶
func (m *CuckooConfig) XXX_Merge(src proto.Message)
func (*CuckooConfig) XXX_Size ¶
func (m *CuckooConfig) XXX_Size() int
func (*CuckooConfig) XXX_Unmarshal ¶
func (m *CuckooConfig) XXX_Unmarshal(b []byte) error
type CuckooFilter ¶
type CuckooFilter struct { // The field "cuckoo" is used to hold the serialized data of the cuckoo // Pb limit: The size of bytes cannot be larger than 4 GB Cuckoo []byte `protobuf:"bytes,1,opt,name=cuckoo,proto3" json:"cuckoo,omitempty"` // Carries the ID of the time Extension []byte `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"` // cuckoo configuration Config []byte `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` }
Chain table structure
func (*CuckooFilter) Descriptor ¶
func (*CuckooFilter) Descriptor() ([]byte, []int)
func (*CuckooFilter) GetConfig ¶
func (m *CuckooFilter) GetConfig() []byte
func (*CuckooFilter) GetCuckoo ¶
func (m *CuckooFilter) GetCuckoo() []byte
func (*CuckooFilter) GetExtension ¶
func (m *CuckooFilter) GetExtension() []byte
func (*CuckooFilter) Marshal ¶
func (m *CuckooFilter) Marshal() (dAtA []byte, err error)
func (*CuckooFilter) MarshalTo ¶
func (m *CuckooFilter) MarshalTo(dAtA []byte) (int, error)
func (*CuckooFilter) MarshalToSizedBuffer ¶
func (m *CuckooFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CuckooFilter) ProtoMessage ¶
func (*CuckooFilter) ProtoMessage()
func (*CuckooFilter) Reset ¶
func (m *CuckooFilter) Reset()
func (*CuckooFilter) Size ¶
func (m *CuckooFilter) Size() (n int)
func (*CuckooFilter) String ¶
func (m *CuckooFilter) String() string
func (*CuckooFilter) Unmarshal ¶
func (m *CuckooFilter) Unmarshal(dAtA []byte) error
func (*CuckooFilter) XXX_DiscardUnknown ¶
func (m *CuckooFilter) XXX_DiscardUnknown()
func (*CuckooFilter) XXX_Marshal ¶
func (m *CuckooFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CuckooFilter) XXX_Merge ¶
func (m *CuckooFilter) XXX_Merge(src proto.Message)
func (*CuckooFilter) XXX_Size ¶
func (m *CuckooFilter) XXX_Size() int
func (*CuckooFilter) XXX_Unmarshal ¶
func (m *CuckooFilter) XXX_Unmarshal(b []byte) error
type DAG ¶
type DAG struct { // sequence number of transaction topological sort // the sequence number of the transaction topological sort associated with the transaction Vertexes []*DAG_Neighbor `protobuf:"bytes,2,rep,name=vertexes,proto3" json:"vertexes,omitempty"` }
transaction execution sequence Using adjacency table storage
func (*DAG) GetVertexes ¶
func (m *DAG) GetVertexes() []*DAG_Neighbor
type DAG_Neighbor ¶
type DAG_Neighbor struct {
Neighbors []uint32 `protobuf:"varint,1,rep,packed,name=neighbors,proto3" json:"neighbors,omitempty"`
}
Neighbor node: related transactions with reading and writing conflicts
func (*DAG_Neighbor) Descriptor ¶
func (*DAG_Neighbor) Descriptor() ([]byte, []int)
func (*DAG_Neighbor) GetNeighbors ¶
func (m *DAG_Neighbor) GetNeighbors() []uint32
func (*DAG_Neighbor) Marshal ¶
func (m *DAG_Neighbor) Marshal() (dAtA []byte, err error)
func (*DAG_Neighbor) MarshalTo ¶
func (m *DAG_Neighbor) MarshalTo(dAtA []byte) (int, error)
func (*DAG_Neighbor) MarshalToSizedBuffer ¶
func (m *DAG_Neighbor) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DAG_Neighbor) ProtoMessage ¶
func (*DAG_Neighbor) ProtoMessage()
func (*DAG_Neighbor) Reset ¶
func (m *DAG_Neighbor) Reset()
func (*DAG_Neighbor) Size ¶
func (m *DAG_Neighbor) Size() (n int)
func (*DAG_Neighbor) String ¶
func (m *DAG_Neighbor) String() string
func (*DAG_Neighbor) Unmarshal ¶
func (m *DAG_Neighbor) Unmarshal(dAtA []byte) error
func (*DAG_Neighbor) XXX_DiscardUnknown ¶
func (m *DAG_Neighbor) XXX_DiscardUnknown()
func (*DAG_Neighbor) XXX_Marshal ¶
func (m *DAG_Neighbor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DAG_Neighbor) XXX_Merge ¶
func (m *DAG_Neighbor) XXX_Merge(src proto.Message)
func (*DAG_Neighbor) XXX_Size ¶
func (m *DAG_Neighbor) XXX_Size() int
func (*DAG_Neighbor) XXX_Unmarshal ¶
func (m *DAG_Neighbor) XXX_Unmarshal(b []byte) error
type EndorsementEntry ¶
type EndorsementEntry struct { // signer Signer *accesscontrol.Member `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` // signature Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` }
endorsement info, including a signer and his signature
func (*EndorsementEntry) Descriptor ¶
func (*EndorsementEntry) Descriptor() ([]byte, []int)
func (*EndorsementEntry) GetSignature ¶
func (m *EndorsementEntry) GetSignature() []byte
func (*EndorsementEntry) GetSigner ¶
func (m *EndorsementEntry) GetSigner() *accesscontrol.Member
func (*EndorsementEntry) Marshal ¶
func (m *EndorsementEntry) Marshal() (dAtA []byte, err error)
func (*EndorsementEntry) MarshalTo ¶
func (m *EndorsementEntry) MarshalTo(dAtA []byte) (int, error)
func (*EndorsementEntry) MarshalToSizedBuffer ¶
func (m *EndorsementEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EndorsementEntry) ProtoMessage ¶
func (*EndorsementEntry) ProtoMessage()
func (*EndorsementEntry) Reset ¶
func (m *EndorsementEntry) Reset()
func (*EndorsementEntry) Size ¶
func (m *EndorsementEntry) Size() (n int)
func (*EndorsementEntry) String ¶
func (m *EndorsementEntry) String() string
func (*EndorsementEntry) Unmarshal ¶
func (m *EndorsementEntry) Unmarshal(dAtA []byte) error
func (*EndorsementEntry) XXX_DiscardUnknown ¶
func (m *EndorsementEntry) XXX_DiscardUnknown()
func (*EndorsementEntry) XXX_Marshal ¶
func (m *EndorsementEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EndorsementEntry) XXX_Merge ¶
func (m *EndorsementEntry) XXX_Merge(src proto.Message)
func (*EndorsementEntry) XXX_Size ¶
func (m *EndorsementEntry) XXX_Size() int
func (*EndorsementEntry) XXX_Unmarshal ¶
func (m *EndorsementEntry) XXX_Unmarshal(b []byte) error
type EthTxParameterKey ¶
type EthTxParameterKey int32
EthTx parameter keys
const ( //EthTx value EthTxParameterKey_VALUE EthTxParameterKey = 0 //EthTx input data EthTxParameterKey_DATA EthTxParameterKey = 1 //Legacy=0 / AccessList=1 / DynamicFee=2 EthTxParameterKey_TX_TYPE EthTxParameterKey = 2 //EIP1559中的优先级费/小费 EthTxParameterKey_GAS_TIP EthTxParameterKey = 3 //from address,the value is 20 bytes address, only used for estimate gas EthTxParameterKey_FROM EthTxParameterKey = 4 )
func (EthTxParameterKey) EnumDescriptor ¶
func (EthTxParameterKey) EnumDescriptor() ([]byte, []int)
func (EthTxParameterKey) String ¶
func (x EthTxParameterKey) String() string
type FilterExtensionType ¶
type FilterExtensionType int32
const ( FilterExtensionType_FETDefault FilterExtensionType = 0 FilterExtensionType_FETTimestamp FilterExtensionType = 1 )
func (FilterExtensionType) EnumDescriptor ¶
func (FilterExtensionType) EnumDescriptor() ([]byte, []int)
func (FilterExtensionType) String ¶
func (x FilterExtensionType) String() string
type KeyValuePair ¶
type KeyValuePair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
a k-v pair
func (*KeyValuePair) Descriptor ¶
func (*KeyValuePair) Descriptor() ([]byte, []int)
func (*KeyValuePair) GetKey ¶
func (m *KeyValuePair) GetKey() string
func (*KeyValuePair) GetValue ¶
func (m *KeyValuePair) GetValue() []byte
func (*KeyValuePair) Marshal ¶
func (m *KeyValuePair) Marshal() (dAtA []byte, err error)
func (*KeyValuePair) MarshalTo ¶
func (m *KeyValuePair) MarshalTo(dAtA []byte) (int, error)
func (*KeyValuePair) MarshalToSizedBuffer ¶
func (m *KeyValuePair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeyValuePair) ProtoMessage ¶
func (*KeyValuePair) ProtoMessage()
func (*KeyValuePair) Reset ¶
func (m *KeyValuePair) Reset()
func (*KeyValuePair) Size ¶
func (m *KeyValuePair) Size() (n int)
func (*KeyValuePair) String ¶
func (m *KeyValuePair) String() string
func (*KeyValuePair) Unmarshal ¶
func (m *KeyValuePair) Unmarshal(dAtA []byte) error
func (*KeyValuePair) XXX_DiscardUnknown ¶
func (m *KeyValuePair) XXX_DiscardUnknown()
func (*KeyValuePair) XXX_Marshal ¶
func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyValuePair) XXX_Merge ¶
func (m *KeyValuePair) XXX_Merge(src proto.Message)
func (*KeyValuePair) XXX_Size ¶
func (m *KeyValuePair) XXX_Size() int
func (*KeyValuePair) XXX_Unmarshal ¶
func (m *KeyValuePair) XXX_Unmarshal(b []byte) error
type KeyVersion ¶
type KeyVersion struct { // the transaction identifier that last modified the key RefTxId string `protobuf:"bytes,3,opt,name=ref_tx_id,json=refTxId,proto3" json:"ref_tx_id,omitempty"` // the offset of the key in the write set of the transaction, starts from 0 RefOffset int32 `protobuf:"varint,4,opt,name=ref_offset,json=refOffset,proto3" json:"ref_offset,omitempty"` }
key read version
func (*KeyVersion) Descriptor ¶
func (*KeyVersion) Descriptor() ([]byte, []int)
func (*KeyVersion) GetRefOffset ¶
func (m *KeyVersion) GetRefOffset() int32
func (*KeyVersion) GetRefTxId ¶
func (m *KeyVersion) GetRefTxId() string
func (*KeyVersion) Marshal ¶
func (m *KeyVersion) Marshal() (dAtA []byte, err error)
func (*KeyVersion) MarshalTo ¶
func (m *KeyVersion) MarshalTo(dAtA []byte) (int, error)
func (*KeyVersion) MarshalToSizedBuffer ¶
func (m *KeyVersion) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*KeyVersion) ProtoMessage ¶
func (*KeyVersion) ProtoMessage()
func (*KeyVersion) Reset ¶
func (m *KeyVersion) Reset()
func (*KeyVersion) Size ¶
func (m *KeyVersion) Size() (n int)
func (*KeyVersion) String ¶
func (m *KeyVersion) String() string
func (*KeyVersion) Unmarshal ¶
func (m *KeyVersion) Unmarshal(dAtA []byte) error
func (*KeyVersion) XXX_DiscardUnknown ¶
func (m *KeyVersion) XXX_DiscardUnknown()
func (*KeyVersion) XXX_Marshal ¶
func (m *KeyVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyVersion) XXX_Merge ¶
func (m *KeyVersion) XXX_Merge(src proto.Message)
func (*KeyVersion) XXX_Size ¶
func (m *KeyVersion) XXX_Size() int
func (*KeyVersion) XXX_Unmarshal ¶
func (m *KeyVersion) XXX_Unmarshal(b []byte) error
type Limit ¶
type Limit struct { // gas limit GasLimit uint64 `protobuf:"varint,1,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // gas price GasPrice uint64 `protobuf:"varint,2,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` }
Limit defines transaction limitation, Limit as a message for easy expansion
func (*Limit) XXX_Marshal ¶
type Payload ¶
type Payload struct { // blockchain identifier ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // transaction type TxType TxType `protobuf:"varint,2,opt,name=tx_type,json=txType,proto3,enum=common.TxType" json:"tx_type,omitempty"` // transaction id set by sender, should be unique TxId string `protobuf:"bytes,3,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // transaction timestamp, in unix timestamp format, seconds Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // expiration timestamp in unix timestamp format // after that the transaction is invalid if it is not included in block yet ExpirationTime int64 `protobuf:"varint,5,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` // smart contract name ContractName string `protobuf:"bytes,6,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` // invoke method Method string `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"` // invoke parameters in k-v format Parameters []*KeyValuePair `protobuf:"bytes,8,rep,name=parameters,proto3" json:"parameters,omitempty"` // sequence number, default is 0 Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` // transaction limitation Limit *Limit `protobuf:"bytes,10,opt,name=limit,proto3" json:"limit,omitempty"` }
transaction payload
func (*Payload) GetParameter ¶
GetParameter 获得某个参数的值
func (*Payload) GetParameters ¶
func (m *Payload) GetParameters() []*KeyValuePair
func (*Payload) MarshalToSizedBuffer ¶
func (*Payload) XXX_Marshal ¶
type PrivateGetContract ¶
type PrivateGetContract struct { ContractCode []byte `protobuf:"bytes,1,opt,name=contract_code,json=contractCode,proto3" json:"contract_code,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` GasLimit uint64 `protobuf:"varint,3,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` }
func (*PrivateGetContract) Descriptor ¶
func (*PrivateGetContract) Descriptor() ([]byte, []int)
func (*PrivateGetContract) GetContractCode ¶
func (m *PrivateGetContract) GetContractCode() []byte
func (*PrivateGetContract) GetGasLimit ¶
func (m *PrivateGetContract) GetGasLimit() uint64
func (*PrivateGetContract) GetVersion ¶
func (m *PrivateGetContract) GetVersion() string
func (*PrivateGetContract) Marshal ¶
func (m *PrivateGetContract) Marshal() (dAtA []byte, err error)
func (*PrivateGetContract) MarshalTo ¶
func (m *PrivateGetContract) MarshalTo(dAtA []byte) (int, error)
func (*PrivateGetContract) MarshalToSizedBuffer ¶
func (m *PrivateGetContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PrivateGetContract) ProtoMessage ¶
func (*PrivateGetContract) ProtoMessage()
func (*PrivateGetContract) Reset ¶
func (m *PrivateGetContract) Reset()
func (*PrivateGetContract) Size ¶
func (m *PrivateGetContract) Size() (n int)
func (*PrivateGetContract) String ¶
func (m *PrivateGetContract) String() string
func (*PrivateGetContract) Unmarshal ¶
func (m *PrivateGetContract) Unmarshal(dAtA []byte) error
func (*PrivateGetContract) XXX_DiscardUnknown ¶
func (m *PrivateGetContract) XXX_DiscardUnknown()
func (*PrivateGetContract) XXX_Marshal ¶
func (m *PrivateGetContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrivateGetContract) XXX_Merge ¶
func (m *PrivateGetContract) XXX_Merge(src proto.Message)
func (*PrivateGetContract) XXX_Size ¶
func (m *PrivateGetContract) XXX_Size() int
func (*PrivateGetContract) XXX_Unmarshal ¶
func (m *PrivateGetContract) XXX_Unmarshal(b []byte) error
type RawTxRequest ¶
type RawTxRequest struct {
RawTx []byte `protobuf:"bytes,1,opt,name=rawTx,proto3" json:"rawTx,omitempty"`
}
func (*RawTxRequest) Descriptor ¶
func (*RawTxRequest) Descriptor() ([]byte, []int)
func (*RawTxRequest) GetRawTx ¶
func (m *RawTxRequest) GetRawTx() []byte
func (*RawTxRequest) Marshal ¶
func (m *RawTxRequest) Marshal() (dAtA []byte, err error)
func (*RawTxRequest) MarshalTo ¶
func (m *RawTxRequest) MarshalTo(dAtA []byte) (int, error)
func (*RawTxRequest) MarshalToSizedBuffer ¶
func (m *RawTxRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RawTxRequest) ProtoMessage ¶
func (*RawTxRequest) ProtoMessage()
func (*RawTxRequest) Reset ¶
func (m *RawTxRequest) Reset()
func (*RawTxRequest) Size ¶
func (m *RawTxRequest) Size() (n int)
func (*RawTxRequest) String ¶
func (m *RawTxRequest) String() string
func (*RawTxRequest) Unmarshal ¶
func (m *RawTxRequest) Unmarshal(dAtA []byte) error
func (*RawTxRequest) XXX_DiscardUnknown ¶
func (m *RawTxRequest) XXX_DiscardUnknown()
func (*RawTxRequest) XXX_Marshal ¶
func (m *RawTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RawTxRequest) XXX_Merge ¶
func (m *RawTxRequest) XXX_Merge(src proto.Message)
func (*RawTxRequest) XXX_Size ¶
func (m *RawTxRequest) XXX_Size() int
func (*RawTxRequest) XXX_Unmarshal ¶
func (m *RawTxRequest) XXX_Unmarshal(b []byte) error
type Result ¶
type Result struct { // response code Code TxStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=common.TxStatusCode" json:"code,omitempty"` // returned data, set in smart contract ContractResult *ContractResult `protobuf:"bytes,2,opt,name=contract_result,json=contractResult,proto3" json:"contract_result,omitempty"` // hash of the transaction's read-write set RwSetHash []byte `protobuf:"bytes,3,opt,name=rw_set_hash,json=rwSetHash,proto3" json:"rw_set_hash,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` }
tx result, part of a transaction in block
func (*Result) GetCode ¶
func (m *Result) GetCode() TxStatusCode
func (*Result) GetContractResult ¶
func (m *Result) GetContractResult() *ContractResult
func (*Result) MarshalToSizedBuffer ¶
func (*Result) XXX_Marshal ¶
type RulesConfig ¶
type RulesConfig struct { // absolute expire time second AbsoluteExpireTime int64 `protobuf:"varint,1,opt,name=absolute_expire_time,json=absoluteExpireTime,proto3" json:"absolute_expire_time,omitempty"` }
func (*RulesConfig) Descriptor ¶
func (*RulesConfig) Descriptor() ([]byte, []int)
func (*RulesConfig) GetAbsoluteExpireTime ¶
func (m *RulesConfig) GetAbsoluteExpireTime() int64
func (*RulesConfig) Marshal ¶
func (m *RulesConfig) Marshal() (dAtA []byte, err error)
func (*RulesConfig) MarshalTo ¶
func (m *RulesConfig) MarshalTo(dAtA []byte) (int, error)
func (*RulesConfig) MarshalToSizedBuffer ¶
func (m *RulesConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RulesConfig) ProtoMessage ¶
func (*RulesConfig) ProtoMessage()
func (*RulesConfig) Reset ¶
func (m *RulesConfig) Reset()
func (*RulesConfig) Size ¶
func (m *RulesConfig) Size() (n int)
func (*RulesConfig) String ¶
func (m *RulesConfig) String() string
func (*RulesConfig) Unmarshal ¶
func (m *RulesConfig) Unmarshal(dAtA []byte) error
func (*RulesConfig) XXX_DiscardUnknown ¶
func (m *RulesConfig) XXX_DiscardUnknown()
func (*RulesConfig) XXX_Marshal ¶
func (m *RulesConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RulesConfig) XXX_Merge ¶
func (m *RulesConfig) XXX_Merge(src proto.Message)
func (*RulesConfig) XXX_Size ¶
func (m *RulesConfig) XXX_Size() int
func (*RulesConfig) XXX_Unmarshal ¶
func (m *RulesConfig) XXX_Unmarshal(b []byte) error
type RuntimeType ¶
type RuntimeType int32
smart contract runtime, contains vm type and language type
const ( RuntimeType_INVALID RuntimeType = 0 // native implement in chainmaker-go RuntimeType_NATIVE RuntimeType = 1 // vm-wasmer, language-c++ RuntimeType_WASMER RuntimeType = 2 // vm-wxvm, language-cpp RuntimeType_WXVM RuntimeType = 3 // wasm interpreter in go RuntimeType_GASM RuntimeType = 4 // vm-evm RuntimeType_EVM RuntimeType = 5 // vm-docker, language-golang RuntimeType_DOCKER_GO RuntimeType = 6 // vm-java, language-java RuntimeType_JAVA RuntimeType = 7 // vm-go, language-go RuntimeType_GO RuntimeType = 8 )
func (RuntimeType) EnumDescriptor ¶
func (RuntimeType) EnumDescriptor() ([]byte, []int)
func (RuntimeType) String ¶
func (x RuntimeType) String() string
type SerializeIntervalType ¶
type SerializeIntervalType int32
const ( // Timed serialize type SerializeIntervalType_Height SerializeIntervalType = 0 // Timed serialize type SerializeIntervalType_Timed SerializeIntervalType = 1 // Exit serialize type SerializeIntervalType_Exit SerializeIntervalType = 2 )
func (SerializeIntervalType) EnumDescriptor ¶
func (SerializeIntervalType) EnumDescriptor() ([]byte, []int)
func (SerializeIntervalType) String ¶
func (x SerializeIntervalType) String() string
type ShardingBirdsNest ¶
type ShardingBirdsNest struct { Length uint32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` // The final height Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // Bird's Nest config Config *ShardingBirdsNestConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` }
Sharding Bird's Nest
func (*ShardingBirdsNest) Descriptor ¶
func (*ShardingBirdsNest) Descriptor() ([]byte, []int)
func (*ShardingBirdsNest) GetConfig ¶
func (m *ShardingBirdsNest) GetConfig() *ShardingBirdsNestConfig
func (*ShardingBirdsNest) GetHeight ¶
func (m *ShardingBirdsNest) GetHeight() uint64
func (*ShardingBirdsNest) GetLength ¶
func (m *ShardingBirdsNest) GetLength() uint32
func (*ShardingBirdsNest) Marshal ¶
func (m *ShardingBirdsNest) Marshal() (dAtA []byte, err error)
func (*ShardingBirdsNest) MarshalTo ¶
func (m *ShardingBirdsNest) MarshalTo(dAtA []byte) (int, error)
func (*ShardingBirdsNest) MarshalToSizedBuffer ¶
func (m *ShardingBirdsNest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ShardingBirdsNest) ProtoMessage ¶
func (*ShardingBirdsNest) ProtoMessage()
func (*ShardingBirdsNest) Reset ¶
func (m *ShardingBirdsNest) Reset()
func (*ShardingBirdsNest) Size ¶
func (m *ShardingBirdsNest) Size() (n int)
func (*ShardingBirdsNest) String ¶
func (m *ShardingBirdsNest) String() string
func (*ShardingBirdsNest) Unmarshal ¶
func (m *ShardingBirdsNest) Unmarshal(dAtA []byte) error
func (*ShardingBirdsNest) XXX_DiscardUnknown ¶
func (m *ShardingBirdsNest) XXX_DiscardUnknown()
func (*ShardingBirdsNest) XXX_Marshal ¶
func (m *ShardingBirdsNest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShardingBirdsNest) XXX_Merge ¶
func (m *ShardingBirdsNest) XXX_Merge(src proto.Message)
func (*ShardingBirdsNest) XXX_Size ¶
func (m *ShardingBirdsNest) XXX_Size() int
func (*ShardingBirdsNest) XXX_Unmarshal ¶
func (m *ShardingBirdsNest) XXX_Unmarshal(b []byte) error
type ShardingBirdsNestConfig ¶
type ShardingBirdsNestConfig struct { ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Length uint32 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` // sharding task timeout Timeout int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // Bird's Nest configuration Birdsnest *BirdsNestConfig `protobuf:"bytes,4,opt,name=birdsnest,proto3" json:"birdsnest,omitempty"` // Snapshot config Snapshot *SnapshotSerializerConfig `protobuf:"bytes,5,opt,name=snapshot,proto3" json:"snapshot,omitempty"` }
Sharding bird's Nest configuration
func (*ShardingBirdsNestConfig) Descriptor ¶
func (*ShardingBirdsNestConfig) Descriptor() ([]byte, []int)
func (*ShardingBirdsNestConfig) GetBirdsnest ¶
func (m *ShardingBirdsNestConfig) GetBirdsnest() *BirdsNestConfig
func (*ShardingBirdsNestConfig) GetChainId ¶
func (m *ShardingBirdsNestConfig) GetChainId() string
func (*ShardingBirdsNestConfig) GetLength ¶
func (m *ShardingBirdsNestConfig) GetLength() uint32
func (*ShardingBirdsNestConfig) GetSnapshot ¶
func (m *ShardingBirdsNestConfig) GetSnapshot() *SnapshotSerializerConfig
func (*ShardingBirdsNestConfig) GetTimeout ¶
func (m *ShardingBirdsNestConfig) GetTimeout() int64
func (*ShardingBirdsNestConfig) Marshal ¶
func (m *ShardingBirdsNestConfig) Marshal() (dAtA []byte, err error)
func (*ShardingBirdsNestConfig) MarshalTo ¶
func (m *ShardingBirdsNestConfig) MarshalTo(dAtA []byte) (int, error)
func (*ShardingBirdsNestConfig) MarshalToSizedBuffer ¶
func (m *ShardingBirdsNestConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ShardingBirdsNestConfig) ProtoMessage ¶
func (*ShardingBirdsNestConfig) ProtoMessage()
func (*ShardingBirdsNestConfig) Reset ¶
func (m *ShardingBirdsNestConfig) Reset()
func (*ShardingBirdsNestConfig) Size ¶
func (m *ShardingBirdsNestConfig) Size() (n int)
func (*ShardingBirdsNestConfig) String ¶
func (m *ShardingBirdsNestConfig) String() string
func (*ShardingBirdsNestConfig) Unmarshal ¶
func (m *ShardingBirdsNestConfig) Unmarshal(dAtA []byte) error
func (*ShardingBirdsNestConfig) XXX_DiscardUnknown ¶
func (m *ShardingBirdsNestConfig) XXX_DiscardUnknown()
func (*ShardingBirdsNestConfig) XXX_Marshal ¶
func (m *ShardingBirdsNestConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShardingBirdsNestConfig) XXX_Merge ¶
func (m *ShardingBirdsNestConfig) XXX_Merge(src proto.Message)
func (*ShardingBirdsNestConfig) XXX_Size ¶
func (m *ShardingBirdsNestConfig) XXX_Size() int
func (*ShardingBirdsNestConfig) XXX_Unmarshal ¶
func (m *ShardingBirdsNestConfig) XXX_Unmarshal(b []byte) error
type SnapshotSerializerConfig ¶
type SnapshotSerializerConfig struct { // serialization type Type SerializeIntervalType `protobuf:"varint,1,opt,name=type,proto3,enum=common.SerializeIntervalType" json:"type,omitempty"` Timed *TimedSerializeIntervalConfig `protobuf:"bytes,2,opt,name=timed,proto3" json:"timed,omitempty"` BlockHeight *BlockHeightSerializeIntervalConfig `protobuf:"bytes,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // filepath Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` }
Snapshot serializer config
func (*SnapshotSerializerConfig) Descriptor ¶
func (*SnapshotSerializerConfig) Descriptor() ([]byte, []int)
func (*SnapshotSerializerConfig) GetBlockHeight ¶
func (m *SnapshotSerializerConfig) GetBlockHeight() *BlockHeightSerializeIntervalConfig
func (*SnapshotSerializerConfig) GetPath ¶
func (m *SnapshotSerializerConfig) GetPath() string
func (*SnapshotSerializerConfig) GetTimed ¶
func (m *SnapshotSerializerConfig) GetTimed() *TimedSerializeIntervalConfig
func (*SnapshotSerializerConfig) GetType ¶
func (m *SnapshotSerializerConfig) GetType() SerializeIntervalType
func (*SnapshotSerializerConfig) Marshal ¶
func (m *SnapshotSerializerConfig) Marshal() (dAtA []byte, err error)
func (*SnapshotSerializerConfig) MarshalTo ¶
func (m *SnapshotSerializerConfig) MarshalTo(dAtA []byte) (int, error)
func (*SnapshotSerializerConfig) MarshalToSizedBuffer ¶
func (m *SnapshotSerializerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SnapshotSerializerConfig) ProtoMessage ¶
func (*SnapshotSerializerConfig) ProtoMessage()
func (*SnapshotSerializerConfig) Reset ¶
func (m *SnapshotSerializerConfig) Reset()
func (*SnapshotSerializerConfig) Size ¶
func (m *SnapshotSerializerConfig) Size() (n int)
func (*SnapshotSerializerConfig) String ¶
func (m *SnapshotSerializerConfig) String() string
func (*SnapshotSerializerConfig) Unmarshal ¶
func (m *SnapshotSerializerConfig) Unmarshal(dAtA []byte) error
func (*SnapshotSerializerConfig) XXX_DiscardUnknown ¶
func (m *SnapshotSerializerConfig) XXX_DiscardUnknown()
func (*SnapshotSerializerConfig) XXX_Marshal ¶
func (m *SnapshotSerializerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SnapshotSerializerConfig) XXX_Merge ¶
func (m *SnapshotSerializerConfig) XXX_Merge(src proto.Message)
func (*SnapshotSerializerConfig) XXX_Size ¶
func (m *SnapshotSerializerConfig) XXX_Size() int
func (*SnapshotSerializerConfig) XXX_Unmarshal ¶
func (m *SnapshotSerializerConfig) XXX_Unmarshal(b []byte) error
type StrSlice ¶
type StrSlice struct {
StrArr []string `protobuf:"bytes,1,rep,name=str_arr,json=strArr,proto3" json:"str_arr,omitempty"`
}
func (*StrSlice) MarshalToSizedBuffer ¶
func (*StrSlice) XXX_Marshal ¶
type SubscribeResult ¶
type SubscribeResult struct { // when TxType == SUBSCRIBE_BLOCK_INFO, data type is pb.BlockInfo; // when TxType == SUBSCRIBE_TX_INFO,data type is pb.Transaction. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` }
func (*SubscribeResult) Descriptor ¶
func (*SubscribeResult) Descriptor() ([]byte, []int)
func (*SubscribeResult) GetData ¶
func (m *SubscribeResult) GetData() []byte
func (*SubscribeResult) Marshal ¶
func (m *SubscribeResult) Marshal() (dAtA []byte, err error)
func (*SubscribeResult) MarshalTo ¶
func (m *SubscribeResult) MarshalTo(dAtA []byte) (int, error)
func (*SubscribeResult) MarshalToSizedBuffer ¶
func (m *SubscribeResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubscribeResult) ProtoMessage ¶
func (*SubscribeResult) ProtoMessage()
func (*SubscribeResult) Reset ¶
func (m *SubscribeResult) Reset()
func (*SubscribeResult) Size ¶
func (m *SubscribeResult) Size() (n int)
func (*SubscribeResult) String ¶
func (m *SubscribeResult) String() string
func (*SubscribeResult) Unmarshal ¶
func (m *SubscribeResult) Unmarshal(dAtA []byte) error
func (*SubscribeResult) XXX_DiscardUnknown ¶
func (m *SubscribeResult) XXX_DiscardUnknown()
func (*SubscribeResult) XXX_Marshal ¶
func (m *SubscribeResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeResult) XXX_Merge ¶
func (m *SubscribeResult) XXX_Merge(src proto.Message)
func (*SubscribeResult) XXX_Size ¶
func (m *SubscribeResult) XXX_Size() int
func (*SubscribeResult) XXX_Unmarshal ¶
func (m *SubscribeResult) XXX_Unmarshal(b []byte) error
type TimedSerializeIntervalConfig ¶
type TimedSerializeIntervalConfig struct {
Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
}
Timed serialization interval
func (*TimedSerializeIntervalConfig) Descriptor ¶
func (*TimedSerializeIntervalConfig) Descriptor() ([]byte, []int)
func (*TimedSerializeIntervalConfig) GetInterval ¶
func (m *TimedSerializeIntervalConfig) GetInterval() int64
func (*TimedSerializeIntervalConfig) Marshal ¶
func (m *TimedSerializeIntervalConfig) Marshal() (dAtA []byte, err error)
func (*TimedSerializeIntervalConfig) MarshalTo ¶
func (m *TimedSerializeIntervalConfig) MarshalTo(dAtA []byte) (int, error)
func (*TimedSerializeIntervalConfig) MarshalToSizedBuffer ¶
func (m *TimedSerializeIntervalConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TimedSerializeIntervalConfig) ProtoMessage ¶
func (*TimedSerializeIntervalConfig) ProtoMessage()
func (*TimedSerializeIntervalConfig) Reset ¶
func (m *TimedSerializeIntervalConfig) Reset()
func (*TimedSerializeIntervalConfig) Size ¶
func (m *TimedSerializeIntervalConfig) Size() (n int)
func (*TimedSerializeIntervalConfig) String ¶
func (m *TimedSerializeIntervalConfig) String() string
func (*TimedSerializeIntervalConfig) Unmarshal ¶
func (m *TimedSerializeIntervalConfig) Unmarshal(dAtA []byte) error
func (*TimedSerializeIntervalConfig) XXX_DiscardUnknown ¶
func (m *TimedSerializeIntervalConfig) XXX_DiscardUnknown()
func (*TimedSerializeIntervalConfig) XXX_Marshal ¶
func (m *TimedSerializeIntervalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimedSerializeIntervalConfig) XXX_Merge ¶
func (m *TimedSerializeIntervalConfig) XXX_Merge(src proto.Message)
func (*TimedSerializeIntervalConfig) XXX_Size ¶
func (m *TimedSerializeIntervalConfig) XXX_Size() int
func (*TimedSerializeIntervalConfig) XXX_Unmarshal ¶
func (m *TimedSerializeIntervalConfig) XXX_Unmarshal(b []byte) error
type Transaction ¶
type Transaction struct { // payload Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // sender account and signature Sender *EndorsementEntry `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` // endorser accounts and signatures Endorsers []*EndorsementEntry `protobuf:"bytes,3,rep,name=endorsers,proto3" json:"endorsers,omitempty"` // result of the transaction Result *Result `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` }
a transaction includes request and its result
func (*Transaction) Descriptor ¶
func (*Transaction) Descriptor() ([]byte, []int)
func (*Transaction) GetEndorsers ¶
func (m *Transaction) GetEndorsers() []*EndorsementEntry
func (*Transaction) GetPayload ¶
func (m *Transaction) GetPayload() *Payload
func (*Transaction) GetResult ¶
func (m *Transaction) GetResult() *Result
func (*Transaction) GetSender ¶
func (m *Transaction) GetSender() *EndorsementEntry
func (*Transaction) GetSenderAccountId ¶
func (t *Transaction) GetSenderAccountId() []byte
GetSenderAccountId 获得交易的发起人的唯一账户标识,这个标识如果大于200字节,则返回的是SHA256 Hash
func (*Transaction) Marshal ¶
func (m *Transaction) Marshal() (dAtA []byte, err error)
func (*Transaction) MarshalTo ¶
func (m *Transaction) MarshalTo(dAtA []byte) (int, error)
func (*Transaction) MarshalToSizedBuffer ¶
func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, 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
type TransactionInfo ¶
type TransactionInfo struct { // transaction raw data Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // block height BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // Deprecated, block hash BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // transaction index in block TxIndex uint32 `protobuf:"varint,4,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` // block header timestamp BlockTimestamp int64 `protobuf:"varint,5,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"` }
transaction info include transaction and its block height hash and tx index
func (*TransactionInfo) Descriptor ¶
func (*TransactionInfo) Descriptor() ([]byte, []int)
func (*TransactionInfo) GetBlockHash ¶
func (m *TransactionInfo) GetBlockHash() []byte
func (*TransactionInfo) GetBlockHeight ¶
func (m *TransactionInfo) GetBlockHeight() uint64
func (*TransactionInfo) GetBlockTimestamp ¶
func (m *TransactionInfo) GetBlockTimestamp() int64
func (*TransactionInfo) GetTransaction ¶
func (m *TransactionInfo) GetTransaction() *Transaction
func (*TransactionInfo) GetTxIndex ¶
func (m *TransactionInfo) GetTxIndex() uint32
func (*TransactionInfo) Marshal ¶
func (m *TransactionInfo) Marshal() (dAtA []byte, err error)
func (*TransactionInfo) MarshalTo ¶
func (m *TransactionInfo) MarshalTo(dAtA []byte) (int, error)
func (*TransactionInfo) MarshalToSizedBuffer ¶
func (m *TransactionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionInfo) ProtoMessage ¶
func (*TransactionInfo) ProtoMessage()
func (*TransactionInfo) Reset ¶
func (m *TransactionInfo) Reset()
func (*TransactionInfo) Size ¶
func (m *TransactionInfo) Size() (n int)
func (*TransactionInfo) String ¶
func (m *TransactionInfo) String() string
func (*TransactionInfo) Unmarshal ¶
func (m *TransactionInfo) Unmarshal(dAtA []byte) error
func (*TransactionInfo) XXX_DiscardUnknown ¶
func (m *TransactionInfo) XXX_DiscardUnknown()
func (*TransactionInfo) XXX_Marshal ¶
func (m *TransactionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionInfo) XXX_Merge ¶
func (m *TransactionInfo) XXX_Merge(src proto.Message)
func (*TransactionInfo) XXX_Size ¶
func (m *TransactionInfo) XXX_Size() int
func (*TransactionInfo) XXX_Unmarshal ¶
func (m *TransactionInfo) XXX_Unmarshal(b []byte) error
type TransactionInfoWithRWSet ¶
type TransactionInfoWithRWSet struct { // transaction raw data Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // block height BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // Deprecated, block hash BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` // transaction index in block TxIndex uint32 `protobuf:"varint,4,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` // block header timestamp BlockTimestamp int64 `protobuf:"varint,5,opt,name=block_timestamp,json=blockTimestamp,proto3" json:"block_timestamp,omitempty"` RwSet *TxRWSet `protobuf:"bytes,6,opt,name=rw_set,json=rwSet,proto3" json:"rw_set,omitempty"` }
func (*TransactionInfoWithRWSet) Descriptor ¶
func (*TransactionInfoWithRWSet) Descriptor() ([]byte, []int)
func (*TransactionInfoWithRWSet) GetBlockHash ¶
func (m *TransactionInfoWithRWSet) GetBlockHash() []byte
func (*TransactionInfoWithRWSet) GetBlockHeight ¶
func (m *TransactionInfoWithRWSet) GetBlockHeight() uint64
func (*TransactionInfoWithRWSet) GetBlockTimestamp ¶
func (m *TransactionInfoWithRWSet) GetBlockTimestamp() int64
func (*TransactionInfoWithRWSet) GetRwSet ¶
func (m *TransactionInfoWithRWSet) GetRwSet() *TxRWSet
func (*TransactionInfoWithRWSet) GetTransaction ¶
func (m *TransactionInfoWithRWSet) GetTransaction() *Transaction
func (*TransactionInfoWithRWSet) GetTxIndex ¶
func (m *TransactionInfoWithRWSet) GetTxIndex() uint32
func (*TransactionInfoWithRWSet) Marshal ¶
func (m *TransactionInfoWithRWSet) Marshal() (dAtA []byte, err error)
func (*TransactionInfoWithRWSet) MarshalTo ¶
func (m *TransactionInfoWithRWSet) MarshalTo(dAtA []byte) (int, error)
func (*TransactionInfoWithRWSet) MarshalToSizedBuffer ¶
func (m *TransactionInfoWithRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionInfoWithRWSet) ProtoMessage ¶
func (*TransactionInfoWithRWSet) ProtoMessage()
func (*TransactionInfoWithRWSet) Reset ¶
func (m *TransactionInfoWithRWSet) Reset()
func (*TransactionInfoWithRWSet) Size ¶
func (m *TransactionInfoWithRWSet) Size() (n int)
func (*TransactionInfoWithRWSet) String ¶
func (m *TransactionInfoWithRWSet) String() string
func (*TransactionInfoWithRWSet) Unmarshal ¶
func (m *TransactionInfoWithRWSet) Unmarshal(dAtA []byte) error
func (*TransactionInfoWithRWSet) XXX_DiscardUnknown ¶
func (m *TransactionInfoWithRWSet) XXX_DiscardUnknown()
func (*TransactionInfoWithRWSet) XXX_Marshal ¶
func (m *TransactionInfoWithRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionInfoWithRWSet) XXX_Merge ¶
func (m *TransactionInfoWithRWSet) XXX_Merge(src proto.Message)
func (*TransactionInfoWithRWSet) XXX_Size ¶
func (m *TransactionInfoWithRWSet) XXX_Size() int
func (*TransactionInfoWithRWSet) XXX_Unmarshal ¶
func (m *TransactionInfoWithRWSet) XXX_Unmarshal(b []byte) error
type TransactionWithRWSet ¶
type TransactionWithRWSet struct { // transaction raw data Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` RwSet *TxRWSet `protobuf:"bytes,2,opt,name=rw_set,json=rwSet,proto3" json:"rw_set,omitempty"` }
transaction and read write set
func (*TransactionWithRWSet) Descriptor ¶
func (*TransactionWithRWSet) Descriptor() ([]byte, []int)
func (*TransactionWithRWSet) GetRwSet ¶
func (m *TransactionWithRWSet) GetRwSet() *TxRWSet
func (*TransactionWithRWSet) GetTransaction ¶
func (m *TransactionWithRWSet) GetTransaction() *Transaction
func (*TransactionWithRWSet) Marshal ¶
func (m *TransactionWithRWSet) Marshal() (dAtA []byte, err error)
func (*TransactionWithRWSet) MarshalTo ¶
func (m *TransactionWithRWSet) MarshalTo(dAtA []byte) (int, error)
func (*TransactionWithRWSet) MarshalToSizedBuffer ¶
func (m *TransactionWithRWSet) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransactionWithRWSet) ProtoMessage ¶
func (*TransactionWithRWSet) ProtoMessage()
func (*TransactionWithRWSet) Reset ¶
func (m *TransactionWithRWSet) Reset()
func (*TransactionWithRWSet) Size ¶
func (m *TransactionWithRWSet) Size() (n int)
func (*TransactionWithRWSet) String ¶
func (m *TransactionWithRWSet) String() string
func (*TransactionWithRWSet) Unmarshal ¶
func (m *TransactionWithRWSet) Unmarshal(dAtA []byte) error
func (*TransactionWithRWSet) XXX_DiscardUnknown ¶
func (m *TransactionWithRWSet) XXX_DiscardUnknown()
func (*TransactionWithRWSet) XXX_Marshal ¶
func (m *TransactionWithRWSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionWithRWSet) XXX_Merge ¶
func (m *TransactionWithRWSet) XXX_Merge(src proto.Message)
func (*TransactionWithRWSet) XXX_Size ¶
func (m *TransactionWithRWSet) XXX_Size() int
func (*TransactionWithRWSet) XXX_Unmarshal ¶
func (m *TransactionWithRWSet) XXX_Unmarshal(b []byte) error
type TxBatchInfo ¶
type TxBatchInfo struct { BatchIds []string `protobuf:"bytes,1,rep,name=batch_ids,json=batchIds,proto3" json:"batch_ids,omitempty"` Index []uint32 `protobuf:"varint,2,rep,packed,name=index,proto3" json:"index,omitempty"` }
tx batch info,saved in additional data
func (*TxBatchInfo) Descriptor ¶
func (*TxBatchInfo) Descriptor() ([]byte, []int)
func (*TxBatchInfo) GetBatchIds ¶
func (m *TxBatchInfo) GetBatchIds() []string
func (*TxBatchInfo) GetIndex ¶
func (m *TxBatchInfo) GetIndex() []uint32
func (*TxBatchInfo) Marshal ¶
func (m *TxBatchInfo) Marshal() (dAtA []byte, err error)
func (*TxBatchInfo) MarshalTo ¶
func (m *TxBatchInfo) MarshalTo(dAtA []byte) (int, error)
func (*TxBatchInfo) MarshalToSizedBuffer ¶
func (m *TxBatchInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TxBatchInfo) ProtoMessage ¶
func (*TxBatchInfo) ProtoMessage()
func (*TxBatchInfo) Reset ¶
func (m *TxBatchInfo) Reset()
func (*TxBatchInfo) Size ¶
func (m *TxBatchInfo) Size() (n int)
func (*TxBatchInfo) String ¶
func (m *TxBatchInfo) String() string
func (*TxBatchInfo) Unmarshal ¶
func (m *TxBatchInfo) Unmarshal(dAtA []byte) error
func (*TxBatchInfo) XXX_DiscardUnknown ¶
func (m *TxBatchInfo) XXX_DiscardUnknown()
func (*TxBatchInfo) XXX_Marshal ¶
func (m *TxBatchInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxBatchInfo) XXX_Merge ¶
func (m *TxBatchInfo) XXX_Merge(src proto.Message)
func (*TxBatchInfo) XXX_Size ¶
func (m *TxBatchInfo) XXX_Size() int
func (*TxBatchInfo) XXX_Unmarshal ¶
func (m *TxBatchInfo) XXX_Unmarshal(b []byte) error
type TxRWSet ¶
type TxRWSet struct { // transaction identifier TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // read set TxReads []*TxRead `protobuf:"bytes,2,rep,name=tx_reads,json=txReads,proto3" json:"tx_reads,omitempty"` // write set TxWrites []*TxWrite `protobuf:"bytes,3,rep,name=tx_writes,json=txWrites,proto3" json:"tx_writes,omitempty"` }
TxRWSet describes all the operations of a transaction on ledger
func (*TxRWSet) MarshalToSizedBuffer ¶
func (*TxRWSet) XXX_Marshal ¶
type TxRead ¶
type TxRead struct { // read key Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // the value of the key Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contract name, used in cross-contract calls // set to null if only the contract in transaction request is called ContractName string `protobuf:"bytes,3,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` // read key version Version *KeyVersion `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` }
TxRead describes a read operation on a key
func (*TxRead) GetVersion ¶
func (m *TxRead) GetVersion() *KeyVersion
func (*TxRead) MarshalToSizedBuffer ¶
func (*TxRead) XXX_Marshal ¶
type TxRequest ¶
type TxRequest struct { // payload Payload *Payload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // sender account and sender's signature Sender *EndorsementEntry `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` // endorsers account and signatures Endorsers []*EndorsementEntry `protobuf:"bytes,3,rep,name=endorsers,proto3" json:"endorsers,omitempty"` }
transaction request proposed by user
func (*TxRequest) GetEndorsers ¶
func (m *TxRequest) GetEndorsers() []*EndorsementEntry
func (*TxRequest) GetSender ¶
func (m *TxRequest) GetSender() *EndorsementEntry
func (*TxRequest) MarshalToSizedBuffer ¶
func (*TxRequest) XXX_Marshal ¶
type TxResponse ¶
type TxResponse struct { // response code Code TxStatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=common.TxStatusCode" json:"code,omitempty"` // response message Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // returned data, set in smart contract ContractResult *ContractResult `protobuf:"bytes,3,opt,name=contract_result,json=contractResult,proto3" json:"contract_result,omitempty"` // tx id of request TxId string `protobuf:"bytes,4,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` // async tx mode: tx timestamp is zero // sync tx mode: tx timestamp is TxRequest.Payload.Timestamp TxTimestamp int64 `protobuf:"varint,5,opt,name=tx_timestamp,json=txTimestamp,proto3" json:"tx_timestamp,omitempty"` // async tx mode: tx block height is zero // sync tx mode: tx block height is the height of block which this tx was packaged TxBlockHeight uint64 `protobuf:"varint,6,opt,name=tx_block_height,json=txBlockHeight,proto3" json:"tx_block_height,omitempty"` }
tx request - tx response, only for RPC response
func (*TxResponse) Descriptor ¶
func (*TxResponse) Descriptor() ([]byte, []int)
func (*TxResponse) GetCode ¶
func (m *TxResponse) GetCode() TxStatusCode
func (*TxResponse) GetContractResult ¶
func (m *TxResponse) GetContractResult() *ContractResult
func (*TxResponse) GetMessage ¶
func (m *TxResponse) GetMessage() string
func (*TxResponse) GetTxBlockHeight ¶
func (m *TxResponse) GetTxBlockHeight() uint64
func (*TxResponse) GetTxId ¶
func (m *TxResponse) GetTxId() string
func (*TxResponse) GetTxTimestamp ¶
func (m *TxResponse) GetTxTimestamp() int64
func (*TxResponse) Marshal ¶
func (m *TxResponse) Marshal() (dAtA []byte, err error)
func (*TxResponse) MarshalTo ¶
func (m *TxResponse) MarshalTo(dAtA []byte) (int, error)
func (*TxResponse) MarshalToSizedBuffer ¶
func (m *TxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TxResponse) ProtoMessage ¶
func (*TxResponse) ProtoMessage()
func (*TxResponse) Reset ¶
func (m *TxResponse) Reset()
func (*TxResponse) Size ¶
func (m *TxResponse) Size() (n int)
func (*TxResponse) String ¶
func (m *TxResponse) String() string
func (*TxResponse) Unmarshal ¶
func (m *TxResponse) Unmarshal(dAtA []byte) error
func (*TxResponse) XXX_DiscardUnknown ¶
func (m *TxResponse) XXX_DiscardUnknown()
func (*TxResponse) XXX_Marshal ¶
func (m *TxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxResponse) XXX_Merge ¶
func (m *TxResponse) XXX_Merge(src proto.Message)
func (*TxResponse) XXX_Size ¶
func (m *TxResponse) XXX_Size() int
func (*TxResponse) XXX_Unmarshal ¶
func (m *TxResponse) XXX_Unmarshal(b []byte) error
type TxStatusCode ¶
type TxStatusCode int32
TxStatusCode describes the tx status in tx result
const ( TxStatusCode_SUCCESS TxStatusCode = 0 TxStatusCode_TIMEOUT TxStatusCode = 1 TxStatusCode_INVALID_PARAMETER TxStatusCode = 2 TxStatusCode_NO_PERMISSION TxStatusCode = 3 TxStatusCode_CONTRACT_FAIL TxStatusCode = 4 TxStatusCode_INTERNAL_ERROR TxStatusCode = 5 TxStatusCode_INVALID_CONTRACT_TRANSACTION_TYPE TxStatusCode = 10 TxStatusCode_INVALID_CONTRACT_PARAMETER_CONTRACT_NAME TxStatusCode = 11 TxStatusCode_INVALID_CONTRACT_PARAMETER_METHOD TxStatusCode = 12 TxStatusCode_INVALID_CONTRACT_PARAMETER_INIT_METHOD TxStatusCode = 13 TxStatusCode_INVALID_CONTRACT_PARAMETER_UPGRADE_METHOD TxStatusCode = 14 TxStatusCode_INVALID_CONTRACT_PARAMETER_BYTE_CODE TxStatusCode = 15 TxStatusCode_INVALID_CONTRACT_PARAMETER_RUNTIME_TYPE TxStatusCode = 16 TxStatusCode_INVALID_CONTRACT_PARAMETER_VERSION TxStatusCode = 17 TxStatusCode_GET_FROM_TX_CONTEXT_FAILED TxStatusCode = 20 TxStatusCode_PUT_INTO_TX_CONTEXT_FAILED TxStatusCode = 21 TxStatusCode_CONTRACT_VERSION_EXIST_FAILED TxStatusCode = 22 TxStatusCode_CONTRACT_VERSION_NOT_EXIST_FAILED TxStatusCode = 23 TxStatusCode_CONTRACT_BYTE_CODE_NOT_EXIST_FAILED TxStatusCode = 24 TxStatusCode_MARSHAL_SENDER_FAILED TxStatusCode = 25 TxStatusCode_INVOKE_INIT_METHOD_FAILED TxStatusCode = 26 TxStatusCode_INVOKE_UPGRADE_METHOD_FAILED TxStatusCode = 27 TxStatusCode_CREATE_RUNTIME_INSTANCE_FAILED TxStatusCode = 28 TxStatusCode_UNMARSHAL_CREATOR_FAILED TxStatusCode = 29 TxStatusCode_UNMARSHAL_SENDER_FAILED TxStatusCode = 30 TxStatusCode_GET_SENDER_PK_FAILED TxStatusCode = 31 TxStatusCode_GET_CREATOR_PK_FAILED TxStatusCode = 32 TxStatusCode_GET_CREATOR_FAILED TxStatusCode = 33 TxStatusCode_GET_CREATOR_CERT_FAILED TxStatusCode = 34 TxStatusCode_GET_SENDER_CERT_FAILED TxStatusCode = 35 TxStatusCode_CONTRACT_FREEZE_FAILED TxStatusCode = 36 TxStatusCode_CONTRACT_TOO_DEEP_FAILED TxStatusCode = 37 TxStatusCode_CONTRACT_REVOKE_FAILED TxStatusCode = 38 TxStatusCode_CONTRACT_INVOKE_METHOD_FAILED TxStatusCode = 39 TxStatusCode_ARCHIVED_TX TxStatusCode = 40 TxStatusCode_ARCHIVED_BLOCK TxStatusCode = 41 TxStatusCode_GAS_BALANCE_NOT_ENOUGH_FAILED TxStatusCode = 42 TxStatusCode_GAS_LIMIT_NOT_SET TxStatusCode = 43 TxStatusCode_GAS_LIMIT_TOO_SMALL TxStatusCode = 44 TxStatusCode_MAKE_SNAPSHOT_STATUS_FINISH TxStatusCode = 45 TxStatusCode_MAKE_SNAPSHOT_STATUS_UNFINISHED TxStatusCode = 46 )
func (TxStatusCode) EnumDescriptor ¶
func (TxStatusCode) EnumDescriptor() ([]byte, []int)
func (TxStatusCode) String ¶
func (x TxStatusCode) String() string
type TxType ¶
type TxType int32
transaction type definition
const ( // call a pre created contract, tx included in block TxType_INVOKE_CONTRACT TxType = 0 // query a pre-created contract, tx not included in block TxType_QUERY_CONTRACT TxType = 1 // subscribe block info,tx info and contract info. tx not included in block TxType_SUBSCRIBE TxType = 2 // archive/restore block, tx not included in block TxType_ARCHIVE TxType = 3 // ethereum tx flag: >0xF, default legacy eth tx TxType_ETH_TX TxType = 16 // separate hot and cold data TxType_HOT_COLD_DATA_SEPARATION TxType = 4 // snapshot TxType_SNAPSHOT TxType = 5 )
func (TxType) IsEthTxType ¶
IsEthTxType 该交易类型是不是一个以太坊适配的交易 @return bool
type TxWrite ¶
type TxWrite struct { // write key Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // write value Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contract name, used in cross-contract calls // set to null if only the contract in transaction request is called ContractName string `protobuf:"bytes,3,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` }
TxRead describes a write/delete operation on a key