Documentation ¶
Index ¶
- Variables
- func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer)
- func RegisterP2PServiceServer(s *grpc.Server, srv P2PServiceServer)
- type AK2AccountRequest
- func (*AK2AccountRequest) Descriptor() ([]byte, []int)
- func (m *AK2AccountRequest) GetAddress() string
- func (m *AK2AccountRequest) GetBcname() string
- func (*AK2AccountRequest) ProtoMessage()
- func (m *AK2AccountRequest) Reset()
- func (m *AK2AccountRequest) String() string
- func (m *AK2AccountRequest) XXX_DiscardUnknown()
- func (m *AK2AccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AK2AccountRequest) XXX_Merge(src proto.Message)
- func (m *AK2AccountRequest) XXX_Size() int
- func (m *AK2AccountRequest) XXX_Unmarshal(b []byte) error
- type AK2AccountResponse
- func (*AK2AccountResponse) Descriptor() ([]byte, []int)
- func (m *AK2AccountResponse) GetAccount() []string
- func (m *AK2AccountResponse) GetBcname() string
- func (*AK2AccountResponse) ProtoMessage()
- func (m *AK2AccountResponse) Reset()
- func (m *AK2AccountResponse) String() string
- func (m *AK2AccountResponse) XXX_DiscardUnknown()
- func (m *AK2AccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AK2AccountResponse) XXX_Merge(src proto.Message)
- func (m *AK2AccountResponse) XXX_Size() int
- func (m *AK2AccountResponse) XXX_Unmarshal(b []byte) error
- type Acl
- func (*Acl) Descriptor() ([]byte, []int)
- func (m *Acl) GetAkSets() *AkSets
- func (m *Acl) GetAksWeight() map[string]float64
- func (m *Acl) GetPm() *PermissionModel
- func (*Acl) ProtoMessage()
- func (m *Acl) Reset()
- func (m *Acl) String() string
- func (m *Acl) XXX_DiscardUnknown()
- func (m *Acl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Acl) XXX_Merge(src proto.Message)
- func (m *Acl) XXX_Size() int
- func (m *Acl) XXX_Unmarshal(b []byte) error
- type AclStatus
- func (*AclStatus) Descriptor() ([]byte, []int)
- func (m *AclStatus) GetAccountName() string
- func (m *AclStatus) GetAcl() *Acl
- func (m *AclStatus) GetBcname() string
- func (m *AclStatus) GetConfirmed() bool
- func (m *AclStatus) GetContractName() string
- func (m *AclStatus) GetMethodName() string
- func (*AclStatus) ProtoMessage()
- func (m *AclStatus) Reset()
- func (m *AclStatus) String() string
- func (m *AclStatus) XXX_DiscardUnknown()
- func (m *AclStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AclStatus) XXX_Merge(src proto.Message)
- func (m *AclStatus) XXX_Size() int
- func (m *AclStatus) XXX_Unmarshal(b []byte) error
- type AkSet
- func (*AkSet) Descriptor() ([]byte, []int)
- func (m *AkSet) GetAks() []string
- func (*AkSet) ProtoMessage()
- func (m *AkSet) Reset()
- func (m *AkSet) String() string
- func (m *AkSet) XXX_DiscardUnknown()
- func (m *AkSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AkSet) XXX_Merge(src proto.Message)
- func (m *AkSet) XXX_Size() int
- func (m *AkSet) XXX_Unmarshal(b []byte) error
- type AkSets
- func (*AkSets) Descriptor() ([]byte, []int)
- func (m *AkSets) GetExpression() string
- func (m *AkSets) GetSets() map[string]*AkSet
- func (*AkSets) ProtoMessage()
- func (m *AkSets) Reset()
- func (m *AkSets) String() string
- func (m *AkSets) XXX_DiscardUnknown()
- func (m *AkSets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AkSets) XXX_Merge(src proto.Message)
- func (m *AkSets) XXX_Size() int
- func (m *AkSets) XXX_Unmarshal(b []byte) error
- type BlockFilter
- func (*BlockFilter) Descriptor() ([]byte, []int)
- func (m *BlockFilter) GetAuthRequire() string
- func (m *BlockFilter) GetBcname() string
- func (m *BlockFilter) GetContract() string
- func (m *BlockFilter) GetEventName() string
- func (m *BlockFilter) GetExcludeTx() bool
- func (m *BlockFilter) GetExcludeTxEvent() bool
- func (m *BlockFilter) GetFromAddr() string
- func (m *BlockFilter) GetInitiator() string
- func (m *BlockFilter) GetRange() *BlockRange
- func (m *BlockFilter) GetToAddr() string
- func (*BlockFilter) ProtoMessage()
- func (m *BlockFilter) Reset()
- func (m *BlockFilter) String() string
- func (m *BlockFilter) XXX_DiscardUnknown()
- func (m *BlockFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockFilter) XXX_Merge(src proto.Message)
- func (m *BlockFilter) XXX_Size() int
- func (m *BlockFilter) XXX_Unmarshal(b []byte) error
- type BlockRange
- func (*BlockRange) Descriptor() ([]byte, []int)
- func (m *BlockRange) GetEnd() string
- func (m *BlockRange) GetStart() string
- func (*BlockRange) ProtoMessage()
- func (m *BlockRange) Reset()
- func (m *BlockRange) String() string
- func (m *BlockRange) XXX_DiscardUnknown()
- func (m *BlockRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockRange) XXX_Merge(src proto.Message)
- func (m *BlockRange) XXX_Size() int
- func (m *BlockRange) XXX_Unmarshal(b []byte) error
- type ContractEvent
- func (*ContractEvent) Descriptor() ([]byte, []int)
- func (m *ContractEvent) GetBody() []byte
- func (m *ContractEvent) GetContract() string
- func (m *ContractEvent) GetName() string
- func (*ContractEvent) ProtoMessage()
- func (m *ContractEvent) Reset()
- func (m *ContractEvent) String() string
- 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 ContractResponse
- func (*ContractResponse) Descriptor() ([]byte, []int)
- func (m *ContractResponse) GetBody() []byte
- func (m *ContractResponse) GetMessage() string
- func (m *ContractResponse) GetStatus() int32
- func (*ContractResponse) ProtoMessage()
- func (m *ContractResponse) Reset()
- func (m *ContractResponse) String() string
- func (m *ContractResponse) XXX_DiscardUnknown()
- func (m *ContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractResponse) XXX_Merge(src proto.Message)
- func (m *ContractResponse) XXX_Size() int
- func (m *ContractResponse) XXX_Unmarshal(b []byte) error
- type ContractStatData
- func (*ContractStatData) Descriptor() ([]byte, []int)
- func (m *ContractStatData) GetAccountCount() int64
- func (m *ContractStatData) GetContractCount() int64
- func (*ContractStatData) ProtoMessage()
- func (m *ContractStatData) Reset()
- func (m *ContractStatData) String() string
- func (m *ContractStatData) XXX_DiscardUnknown()
- func (m *ContractStatData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractStatData) XXX_Merge(src proto.Message)
- func (m *ContractStatData) XXX_Size() int
- func (m *ContractStatData) XXX_Unmarshal(b []byte) error
- type ContractStatus
- func (*ContractStatus) Descriptor() ([]byte, []int)
- func (m *ContractStatus) GetContractName() string
- func (m *ContractStatus) GetDesc() []byte
- func (m *ContractStatus) GetIsBanned() bool
- func (m *ContractStatus) GetRuntime() string
- func (m *ContractStatus) GetTimestamp() int64
- func (m *ContractStatus) GetTxid() string
- func (*ContractStatus) ProtoMessage()
- func (m *ContractStatus) Reset()
- func (m *ContractStatus) String() string
- func (m *ContractStatus) XXX_DiscardUnknown()
- func (m *ContractStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractStatus) XXX_Merge(src proto.Message)
- func (m *ContractStatus) XXX_Size() int
- func (m *ContractStatus) XXX_Unmarshal(b []byte) error
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetPayload() []byte
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type EventServiceClient
- type EventServiceServer
- type EventService_SubscribeClient
- type EventService_SubscribeServer
- type FilteredBlock
- func (*FilteredBlock) Descriptor() ([]byte, []int)
- func (m *FilteredBlock) GetBcname() string
- func (m *FilteredBlock) GetBlockHeight() int64
- func (m *FilteredBlock) GetBlockid() string
- func (m *FilteredBlock) GetTxs() []*FilteredTransaction
- func (*FilteredBlock) ProtoMessage()
- func (m *FilteredBlock) Reset()
- func (m *FilteredBlock) String() string
- func (m *FilteredBlock) XXX_DiscardUnknown()
- func (m *FilteredBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FilteredBlock) XXX_Merge(src proto.Message)
- func (m *FilteredBlock) XXX_Size() int
- func (m *FilteredBlock) XXX_Unmarshal(b []byte) error
- type FilteredTransaction
- func (*FilteredTransaction) Descriptor() ([]byte, []int)
- func (m *FilteredTransaction) GetEvents() []*ContractEvent
- func (m *FilteredTransaction) GetTxid() string
- func (*FilteredTransaction) ProtoMessage()
- func (m *FilteredTransaction) Reset()
- func (m *FilteredTransaction) String() string
- func (m *FilteredTransaction) XXX_DiscardUnknown()
- func (m *FilteredTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FilteredTransaction) XXX_Merge(src proto.Message)
- func (m *FilteredTransaction) XXX_Size() int
- func (m *FilteredTransaction) XXX_Unmarshal(b []byte) error
- type GasPrice
- func (*GasPrice) Descriptor() ([]byte, []int)
- func (m *GasPrice) GetCpuRate() int64
- func (m *GasPrice) GetDiskRate() int64
- func (m *GasPrice) GetMemRate() int64
- func (m *GasPrice) GetXfeeRate() int64
- func (*GasPrice) ProtoMessage()
- func (m *GasPrice) Reset()
- func (m *GasPrice) String() string
- func (m *GasPrice) XXX_DiscardUnknown()
- func (m *GasPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GasPrice) XXX_Merge(src proto.Message)
- func (m *GasPrice) XXX_Size() int
- func (m *GasPrice) XXX_Unmarshal(b []byte) error
- type GovernTokenBalance
- func (*GovernTokenBalance) Descriptor() ([]byte, []int)
- func (m *GovernTokenBalance) GetAvailableBalanceForProposal() string
- func (m *GovernTokenBalance) GetAvailableBalanceForTdpos() string
- func (m *GovernTokenBalance) GetLockedBalanceForProposal() string
- func (m *GovernTokenBalance) GetLockedBalanceForTdpos() string
- func (m *GovernTokenBalance) GetTotalBalance() string
- func (*GovernTokenBalance) ProtoMessage()
- func (m *GovernTokenBalance) Reset()
- func (m *GovernTokenBalance) String() string
- func (m *GovernTokenBalance) XXX_DiscardUnknown()
- func (m *GovernTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GovernTokenBalance) XXX_Merge(src proto.Message)
- func (m *GovernTokenBalance) XXX_Size() int
- func (m *GovernTokenBalance) XXX_Unmarshal(b []byte) error
- type InvokeRequest
- func (*InvokeRequest) Descriptor() ([]byte, []int)
- func (m *InvokeRequest) GetAmount() string
- func (m *InvokeRequest) GetArgs() map[string][]byte
- func (m *InvokeRequest) GetContractName() string
- func (m *InvokeRequest) GetMethodName() string
- func (m *InvokeRequest) GetModuleName() string
- func (m *InvokeRequest) GetResourceLimits() []*ResourceLimit
- func (*InvokeRequest) ProtoMessage()
- func (m *InvokeRequest) Reset()
- func (m *InvokeRequest) String() string
- func (m *InvokeRequest) XXX_DiscardUnknown()
- func (m *InvokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InvokeRequest) XXX_Merge(src proto.Message)
- func (m *InvokeRequest) XXX_Size() int
- func (m *InvokeRequest) XXX_Unmarshal(b []byte) error
- type InvokeResponse
- func (*InvokeResponse) Descriptor() ([]byte, []int)
- func (m *InvokeResponse) GetGasUsed() int64
- func (m *InvokeResponse) GetInputs() []*TxInputExt
- func (m *InvokeResponse) GetOutputs() []*TxOutputExt
- func (m *InvokeResponse) GetRequests() []*InvokeRequest
- func (m *InvokeResponse) GetResponse() [][]byte
- func (m *InvokeResponse) GetResponses() []*ContractResponse
- func (m *InvokeResponse) GetUtxoInputs() []*TxInput
- func (m *InvokeResponse) GetUtxoOutputs() []*TxOutput
- func (*InvokeResponse) ProtoMessage()
- func (m *InvokeResponse) Reset()
- func (m *InvokeResponse) String() string
- func (m *InvokeResponse) XXX_DiscardUnknown()
- func (m *InvokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InvokeResponse) XXX_Merge(src proto.Message)
- func (m *InvokeResponse) XXX_Size() int
- func (m *InvokeResponse) XXX_Unmarshal(b []byte) error
- type P2PServiceClient
- type P2PServiceServer
- type P2PService_SendP2PMessageClient
- type P2PService_SendP2PMessageServer
- type PeerInfo
- func (*PeerInfo) Descriptor() ([]byte, []int)
- func (m *PeerInfo) GetAccount() string
- func (m *PeerInfo) GetAddress() string
- func (m *PeerInfo) GetId() string
- func (m *PeerInfo) GetPeer() []*PeerInfo
- func (*PeerInfo) ProtoMessage()
- func (m *PeerInfo) Reset()
- func (m *PeerInfo) String() string
- func (m *PeerInfo) XXX_DiscardUnknown()
- func (m *PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerInfo) XXX_Merge(src proto.Message)
- func (m *PeerInfo) XXX_Size() int
- func (m *PeerInfo) XXX_Unmarshal(b []byte) error
- type PermissionModel
- func (*PermissionModel) Descriptor() ([]byte, []int)
- func (m *PermissionModel) GetAcceptValue() float64
- func (m *PermissionModel) GetRule() PermissionRule
- func (*PermissionModel) ProtoMessage()
- func (m *PermissionModel) Reset()
- func (m *PermissionModel) String() string
- func (m *PermissionModel) XXX_DiscardUnknown()
- func (m *PermissionModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PermissionModel) XXX_Merge(src proto.Message)
- func (m *PermissionModel) XXX_Size() int
- func (m *PermissionModel) XXX_Unmarshal(b []byte) error
- type PermissionRule
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetArgs() map[string][]byte
- func (m *Proposal) GetMethod() string
- func (m *Proposal) GetModule() string
- func (m *Proposal) GetProposer() string
- func (m *Proposal) GetStatus() ProposalStatus
- func (m *Proposal) GetTrigger() *TriggerDesc
- func (m *Proposal) GetVoteAmount() string
- func (*Proposal) ProtoMessage()
- func (m *Proposal) Reset()
- func (m *Proposal) String() string
- func (m *Proposal) XXX_DiscardUnknown()
- func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proposal) XXX_Merge(src proto.Message)
- func (m *Proposal) XXX_Size() int
- func (m *Proposal) XXX_Unmarshal(b []byte) error
- type ProposalStatus
- type ResourceLimit
- func (*ResourceLimit) Descriptor() ([]byte, []int)
- func (m *ResourceLimit) GetLimit() int64
- func (m *ResourceLimit) GetType() ResourceType
- func (*ResourceLimit) ProtoMessage()
- func (m *ResourceLimit) Reset()
- func (m *ResourceLimit) String() string
- func (m *ResourceLimit) XXX_DiscardUnknown()
- func (m *ResourceLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceLimit) XXX_Merge(src proto.Message)
- func (m *ResourceLimit) XXX_Size() int
- func (m *ResourceLimit) XXX_Unmarshal(b []byte) error
- type ResourceType
- type SignatureInfo
- func (*SignatureInfo) Descriptor() ([]byte, []int)
- func (m *SignatureInfo) GetPublicKey() string
- func (m *SignatureInfo) GetSign() []byte
- func (*SignatureInfo) ProtoMessage()
- func (m *SignatureInfo) Reset()
- func (m *SignatureInfo) String() string
- func (m *SignatureInfo) XXX_DiscardUnknown()
- func (m *SignatureInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignatureInfo) XXX_Merge(src proto.Message)
- func (m *SignatureInfo) XXX_Size() int
- func (m *SignatureInfo) XXX_Unmarshal(b []byte) error
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest) GetFilter() []byte
- func (m *SubscribeRequest) GetType() SubscribeType
- func (*SubscribeRequest) ProtoMessage()
- func (m *SubscribeRequest) Reset()
- func (m *SubscribeRequest) String() string
- func (m *SubscribeRequest) XXX_DiscardUnknown()
- func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeRequest) XXX_Merge(src proto.Message)
- func (m *SubscribeRequest) XXX_Size() int
- func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
- type SubscribeType
- type TriggerDesc
- func (*TriggerDesc) Descriptor() ([]byte, []int)
- func (m *TriggerDesc) GetArgs() map[string][]byte
- func (m *TriggerDesc) GetHeight() int64
- func (m *TriggerDesc) GetMethod() string
- func (m *TriggerDesc) GetModule() string
- func (*TriggerDesc) ProtoMessage()
- func (m *TriggerDesc) Reset()
- func (m *TriggerDesc) String() string
- func (m *TriggerDesc) XXX_DiscardUnknown()
- func (m *TriggerDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TriggerDesc) XXX_Merge(src proto.Message)
- func (m *TriggerDesc) XXX_Size() int
- func (m *TriggerDesc) XXX_Unmarshal(b []byte) error
- type TxInput
- func (*TxInput) Descriptor() ([]byte, []int)
- func (m *TxInput) GetAmount() []byte
- func (m *TxInput) GetFromAddr() []byte
- func (m *TxInput) GetFrozenHeight() int64
- func (m *TxInput) GetRefOffset() int32
- func (m *TxInput) GetRefTxid() []byte
- func (*TxInput) ProtoMessage()
- func (m *TxInput) Reset()
- func (m *TxInput) String() string
- func (m *TxInput) XXX_DiscardUnknown()
- func (m *TxInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxInput) XXX_Merge(src proto.Message)
- func (m *TxInput) XXX_Size() int
- func (m *TxInput) XXX_Unmarshal(b []byte) error
- type TxInputExt
- func (*TxInputExt) Descriptor() ([]byte, []int)
- func (m *TxInputExt) GetBucket() string
- func (m *TxInputExt) GetKey() []byte
- func (m *TxInputExt) GetRefOffset() int32
- func (m *TxInputExt) GetRefTxid() []byte
- func (*TxInputExt) ProtoMessage()
- func (m *TxInputExt) Reset()
- func (m *TxInputExt) String() string
- func (m *TxInputExt) XXX_DiscardUnknown()
- func (m *TxInputExt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxInputExt) XXX_Merge(src proto.Message)
- func (m *TxInputExt) XXX_Size() int
- func (m *TxInputExt) XXX_Unmarshal(b []byte) error
- type TxOutput
- func (*TxOutput) Descriptor() ([]byte, []int)
- func (m *TxOutput) GetAmount() []byte
- func (m *TxOutput) GetFrozenHeight() int64
- func (m *TxOutput) GetToAddr() []byte
- func (*TxOutput) ProtoMessage()
- func (m *TxOutput) Reset()
- func (m *TxOutput) String() string
- func (m *TxOutput) XXX_DiscardUnknown()
- func (m *TxOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxOutput) XXX_Merge(src proto.Message)
- func (m *TxOutput) XXX_Size() int
- func (m *TxOutput) XXX_Unmarshal(b []byte) error
- type TxOutputExt
- func (*TxOutputExt) Descriptor() ([]byte, []int)
- func (m *TxOutputExt) GetBucket() string
- func (m *TxOutputExt) GetKey() []byte
- func (m *TxOutputExt) GetValue() []byte
- func (*TxOutputExt) ProtoMessage()
- func (m *TxOutputExt) Reset()
- func (m *TxOutputExt) String() string
- func (m *TxOutputExt) XXX_DiscardUnknown()
- func (m *TxOutputExt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxOutputExt) XXX_Merge(src proto.Message)
- func (m *TxOutputExt) XXX_Size() int
- func (m *TxOutputExt) XXX_Unmarshal(b []byte) error
- type UnimplementedEventServiceServer
- type UnimplementedP2PServiceServer
- type WasmCodeDesc
- func (*WasmCodeDesc) Descriptor() ([]byte, []int)
- func (m *WasmCodeDesc) GetCompiler() string
- func (m *WasmCodeDesc) GetContractType() string
- func (m *WasmCodeDesc) GetDigest() []byte
- func (m *WasmCodeDesc) GetRuntime() string
- func (m *WasmCodeDesc) GetVmCompiler() string
- func (*WasmCodeDesc) ProtoMessage()
- func (m *WasmCodeDesc) Reset()
- func (m *WasmCodeDesc) String() string
- func (m *WasmCodeDesc) XXX_DiscardUnknown()
- func (m *WasmCodeDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WasmCodeDesc) XXX_Merge(src proto.Message)
- func (m *WasmCodeDesc) XXX_Size() int
- func (m *WasmCodeDesc) XXX_Unmarshal(b []byte) error
- type XuperMessage
- func (*XuperMessage) Descriptor() ([]byte, []int)
- func (m *XuperMessage) GetData() *XuperMessage_MessageData
- func (m *XuperMessage) GetHeader() *XuperMessage_MessageHeader
- func (*XuperMessage) ProtoMessage()
- func (m *XuperMessage) Reset()
- func (m *XuperMessage) String() string
- func (m *XuperMessage) XXX_DiscardUnknown()
- func (m *XuperMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *XuperMessage) XXX_Merge(src proto.Message)
- func (m *XuperMessage) XXX_Size() int
- func (m *XuperMessage) XXX_Unmarshal(b []byte) error
- type XuperMessage_ErrorType
- type XuperMessage_MessageData
- func (*XuperMessage_MessageData) Descriptor() ([]byte, []int)
- func (m *XuperMessage_MessageData) GetMsgInfo() []byte
- func (*XuperMessage_MessageData) ProtoMessage()
- func (m *XuperMessage_MessageData) Reset()
- func (m *XuperMessage_MessageData) String() string
- func (m *XuperMessage_MessageData) XXX_DiscardUnknown()
- func (m *XuperMessage_MessageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *XuperMessage_MessageData) XXX_Merge(src proto.Message)
- func (m *XuperMessage_MessageData) XXX_Size() int
- func (m *XuperMessage_MessageData) XXX_Unmarshal(b []byte) error
- type XuperMessage_MessageHeader
- func (*XuperMessage_MessageHeader) Descriptor() ([]byte, []int)
- func (m *XuperMessage_MessageHeader) GetBcname() string
- func (m *XuperMessage_MessageHeader) GetDataCheckSum() uint32
- func (m *XuperMessage_MessageHeader) GetEnableCompress() bool
- func (m *XuperMessage_MessageHeader) GetErrorType() XuperMessage_ErrorType
- func (m *XuperMessage_MessageHeader) GetFrom() string
- func (m *XuperMessage_MessageHeader) GetLogid() string
- func (m *XuperMessage_MessageHeader) GetType() XuperMessage_MessageType
- func (m *XuperMessage_MessageHeader) GetVersion() string
- func (*XuperMessage_MessageHeader) ProtoMessage()
- func (m *XuperMessage_MessageHeader) Reset()
- func (m *XuperMessage_MessageHeader) String() string
- func (m *XuperMessage_MessageHeader) XXX_DiscardUnknown()
- func (m *XuperMessage_MessageHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *XuperMessage_MessageHeader) XXX_Merge(src proto.Message)
- func (m *XuperMessage_MessageHeader) XXX_Size() int
- func (m *XuperMessage_MessageHeader) XXX_Unmarshal(b []byte) error
- type XuperMessage_MessageType
Constants ¶
This section is empty.
Variables ¶
var PermissionRule_name = map[int32]string{
0: "NULL",
1: "SIGN_THRESHOLD",
2: "SIGN_AKSET",
3: "SIGN_RATE",
4: "SIGN_SUM",
5: "CA_SERVER",
6: "COMMUNITY_VOTE",
}
var PermissionRule_value = map[string]int32{
"NULL": 0,
"SIGN_THRESHOLD": 1,
"SIGN_AKSET": 2,
"SIGN_RATE": 3,
"SIGN_SUM": 4,
"CA_SERVER": 5,
"COMMUNITY_VOTE": 6,
}
var ProposalStatus_name = map[int32]string{
0: "VOTING",
1: "SUCCESS",
2: "FAILURE",
3: "CANCELED",
}
var ProposalStatus_value = map[string]int32{
"VOTING": 0,
"SUCCESS": 1,
"FAILURE": 2,
"CANCELED": 3,
}
var ResourceType_name = map[int32]string{
0: "CPU",
1: "MEMORY",
2: "DISK",
3: "XFEE",
}
var ResourceType_value = map[string]int32{
"CPU": 0,
"MEMORY": 1,
"DISK": 2,
"XFEE": 3,
}
var SubscribeType_name = map[int32]string{
0: "BLOCK",
}
var SubscribeType_value = map[string]int32{
"BLOCK": 0,
}
var XuperMessage_ErrorType_name = map[int32]string{
0: "SUCCESS",
1: "NONE",
2: "UNKNOW_ERROR",
3: "CHECK_SUM_ERROR",
4: "UNMARSHAL_MSG_BODY_ERROR",
5: "CONNECT_REFUSE",
6: "GET_BLOCKCHAIN_ERROR",
7: "BLOCKCHAIN_NOTEXIST",
8: "GET_BLOCK_ERROR",
9: "CONFIRM_BLOCKCHAINSTATUS_ERROR",
10: "GET_AUTHENTICATION_ERROR",
11: "GET_AUTHENTICATION_NOT_PASS",
}
var XuperMessage_ErrorType_value = map[string]int32{
"SUCCESS": 0,
"NONE": 1,
"UNKNOW_ERROR": 2,
"CHECK_SUM_ERROR": 3,
"UNMARSHAL_MSG_BODY_ERROR": 4,
"CONNECT_REFUSE": 5,
"GET_BLOCKCHAIN_ERROR": 6,
"BLOCKCHAIN_NOTEXIST": 7,
"GET_BLOCK_ERROR": 8,
"CONFIRM_BLOCKCHAINSTATUS_ERROR": 9,
"GET_AUTHENTICATION_ERROR": 10,
"GET_AUTHENTICATION_NOT_PASS": 11,
}
var XuperMessage_MessageType_name = map[int32]string{
0: "SENDBLOCK",
1: "POSTTX",
2: "BATCHPOSTTX",
3: "GET_BLOCK",
4: "PING",
5: "GET_BLOCKCHAINSTATUS",
6: "GET_BLOCK_RES",
7: "GET_BLOCKCHAINSTATUS_RES",
8: "CONFIRM_BLOCKCHAINSTATUS",
9: "CONFIRM_BLOCKCHAINSTATUS_RES",
10: "MSG_TYPE_NONE",
11: "GET_RPC_PORT",
12: "GET_RPC_PORT_RES",
13: "GET_AUTHENTICATION",
14: "GET_AUTHENTICATION_RES",
15: "CHAINED_BFT_NEW_VIEW_MSG",
16: "CHAINED_BFT_NEW_PROPOSAL_MSG",
17: "CHAINED_BFT_VOTE_MSG",
18: "NEW_BLOCKID",
19: "NEW_NODE",
20: "GET_BLOCKIDS",
21: "GET_BLOCKIDS_RES",
22: "GET_BLOCKS",
23: "GET_BLOCKS_RES",
24: "GET_PEER_INFO",
25: "GET_PEER_INFO_RES",
26: "GET_BLOCK_HEADERS",
27: "GET_BLOCKS_HEADERS_RES",
28: "GET_BLOCK_TXS",
29: "GET_BLOCKS_TXS_RES",
}
var XuperMessage_MessageType_value = map[string]int32{
"SENDBLOCK": 0,
"POSTTX": 1,
"BATCHPOSTTX": 2,
"GET_BLOCK": 3,
"PING": 4,
"GET_BLOCKCHAINSTATUS": 5,
"GET_BLOCK_RES": 6,
"GET_BLOCKCHAINSTATUS_RES": 7,
"CONFIRM_BLOCKCHAINSTATUS": 8,
"CONFIRM_BLOCKCHAINSTATUS_RES": 9,
"MSG_TYPE_NONE": 10,
"GET_RPC_PORT": 11,
"GET_RPC_PORT_RES": 12,
"GET_AUTHENTICATION": 13,
"GET_AUTHENTICATION_RES": 14,
"CHAINED_BFT_NEW_VIEW_MSG": 15,
"CHAINED_BFT_NEW_PROPOSAL_MSG": 16,
"CHAINED_BFT_VOTE_MSG": 17,
"NEW_BLOCKID": 18,
"NEW_NODE": 19,
"GET_BLOCKIDS": 20,
"GET_BLOCKIDS_RES": 21,
"GET_BLOCKS": 22,
"GET_BLOCKS_RES": 23,
"GET_PEER_INFO": 24,
"GET_PEER_INFO_RES": 25,
"GET_BLOCK_HEADERS": 26,
"GET_BLOCKS_HEADERS_RES": 27,
"GET_BLOCK_TXS": 28,
"GET_BLOCKS_TXS_RES": 29,
}
Functions ¶
func RegisterEventServiceServer ¶
func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer)
func RegisterP2PServiceServer ¶
func RegisterP2PServiceServer(s *grpc.Server, srv P2PServiceServer)
Types ¶
type AK2AccountRequest ¶
type AK2AccountRequest struct { Bcname string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AK2AccountRequest) Descriptor ¶
func (*AK2AccountRequest) Descriptor() ([]byte, []int)
func (*AK2AccountRequest) GetAddress ¶
func (m *AK2AccountRequest) GetAddress() string
func (*AK2AccountRequest) GetBcname ¶
func (m *AK2AccountRequest) GetBcname() string
func (*AK2AccountRequest) ProtoMessage ¶
func (*AK2AccountRequest) ProtoMessage()
func (*AK2AccountRequest) Reset ¶
func (m *AK2AccountRequest) Reset()
func (*AK2AccountRequest) String ¶
func (m *AK2AccountRequest) String() string
func (*AK2AccountRequest) XXX_DiscardUnknown ¶
func (m *AK2AccountRequest) XXX_DiscardUnknown()
func (*AK2AccountRequest) XXX_Marshal ¶
func (m *AK2AccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AK2AccountRequest) XXX_Merge ¶
func (m *AK2AccountRequest) XXX_Merge(src proto.Message)
func (*AK2AccountRequest) XXX_Size ¶
func (m *AK2AccountRequest) XXX_Size() int
func (*AK2AccountRequest) XXX_Unmarshal ¶
func (m *AK2AccountRequest) XXX_Unmarshal(b []byte) error
type AK2AccountResponse ¶
type AK2AccountResponse struct { Bcname string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"` Account []string `protobuf:"bytes,2,rep,name=account,proto3" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AK2AccountResponse) Descriptor ¶
func (*AK2AccountResponse) Descriptor() ([]byte, []int)
func (*AK2AccountResponse) GetAccount ¶
func (m *AK2AccountResponse) GetAccount() []string
func (*AK2AccountResponse) GetBcname ¶
func (m *AK2AccountResponse) GetBcname() string
func (*AK2AccountResponse) ProtoMessage ¶
func (*AK2AccountResponse) ProtoMessage()
func (*AK2AccountResponse) Reset ¶
func (m *AK2AccountResponse) Reset()
func (*AK2AccountResponse) String ¶
func (m *AK2AccountResponse) String() string
func (*AK2AccountResponse) XXX_DiscardUnknown ¶
func (m *AK2AccountResponse) XXX_DiscardUnknown()
func (*AK2AccountResponse) XXX_Marshal ¶
func (m *AK2AccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AK2AccountResponse) XXX_Merge ¶
func (m *AK2AccountResponse) XXX_Merge(src proto.Message)
func (*AK2AccountResponse) XXX_Size ¶
func (m *AK2AccountResponse) XXX_Size() int
func (*AK2AccountResponse) XXX_Unmarshal ¶
func (m *AK2AccountResponse) XXX_Unmarshal(b []byte) error
type Acl ¶
type Acl struct { Pm *PermissionModel `protobuf:"bytes,1,opt,name=pm,proto3" json:"pm,omitempty"` AksWeight map[string]float64 `` /* 161-byte string literal not displayed */ AkSets *AkSets `protobuf:"bytes,3,opt,name=akSets,proto3" json:"akSets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Acl实际使用的结构
func (*Acl) Descriptor ¶
func (*Acl) GetAksWeight ¶
func (*Acl) GetPm ¶
func (m *Acl) GetPm() *PermissionModel
func (*Acl) ProtoMessage ¶
func (*Acl) ProtoMessage()
func (*Acl) XXX_DiscardUnknown ¶
func (m *Acl) XXX_DiscardUnknown()
func (*Acl) XXX_Unmarshal ¶
type AclStatus ¶
type AclStatus struct { Bcname string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"` AccountName string `protobuf:"bytes,2,opt,name=accountName,proto3" json:"accountName,omitempty"` ContractName string `protobuf:"bytes,3,opt,name=contractName,proto3" json:"contractName,omitempty"` MethodName string `protobuf:"bytes,4,opt,name=methodName,proto3" json:"methodName,omitempty"` Confirmed bool `protobuf:"varint,5,opt,name=confirmed,proto3" json:"confirmed,omitempty"` Acl *Acl `protobuf:"bytes,6,opt,name=acl,proto3" json:"acl,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
查询Acl
func (*AclStatus) Descriptor ¶
func (*AclStatus) GetAccountName ¶
func (*AclStatus) GetConfirmed ¶
func (*AclStatus) GetContractName ¶
func (*AclStatus) GetMethodName ¶
func (*AclStatus) ProtoMessage ¶
func (*AclStatus) ProtoMessage()
func (*AclStatus) XXX_DiscardUnknown ¶
func (m *AclStatus) XXX_DiscardUnknown()
func (*AclStatus) XXX_Marshal ¶
func (*AclStatus) XXX_Unmarshal ¶
type AkSet ¶
type AkSet struct { Aks []string `protobuf:"bytes,1,rep,name=aks,proto3" json:"aks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
AK集的表示方法
func (*AkSet) Descriptor ¶
func (*AkSet) ProtoMessage ¶
func (*AkSet) ProtoMessage()
func (*AkSet) XXX_DiscardUnknown ¶
func (m *AkSet) XXX_DiscardUnknown()
func (*AkSet) XXX_Marshal ¶
func (*AkSet) XXX_Unmarshal ¶
type AkSets ¶
type AkSets struct { Sets map[string]*AkSet `` /* 149-byte string literal not displayed */ Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AkSets) Descriptor ¶
func (*AkSets) GetExpression ¶
func (*AkSets) ProtoMessage ¶
func (*AkSets) ProtoMessage()
func (*AkSets) XXX_DiscardUnknown ¶
func (m *AkSets) XXX_DiscardUnknown()
func (*AkSets) XXX_Marshal ¶
func (*AkSets) XXX_Unmarshal ¶
type BlockFilter ¶
type BlockFilter struct { Bcname string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"` Range *BlockRange `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` ExcludeTx bool `protobuf:"varint,3,opt,name=exclude_tx,json=excludeTx,proto3" json:"exclude_tx,omitempty"` ExcludeTxEvent bool `protobuf:"varint,4,opt,name=exclude_tx_event,json=excludeTxEvent,proto3" json:"exclude_tx_event,omitempty"` Contract string `protobuf:"bytes,10,opt,name=contract,proto3" json:"contract,omitempty"` EventName string `protobuf:"bytes,11,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"` Initiator string `protobuf:"bytes,12,opt,name=initiator,proto3" json:"initiator,omitempty"` AuthRequire string `protobuf:"bytes,13,opt,name=auth_require,json=authRequire,proto3" json:"auth_require,omitempty"` FromAddr string `protobuf:"bytes,14,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"` ToAddr string `protobuf:"bytes,15,opt,name=to_addr,json=toAddr,proto3" json:"to_addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockFilter) Descriptor ¶
func (*BlockFilter) Descriptor() ([]byte, []int)
func (*BlockFilter) GetAuthRequire ¶
func (m *BlockFilter) GetAuthRequire() string
func (*BlockFilter) GetBcname ¶
func (m *BlockFilter) GetBcname() string
func (*BlockFilter) GetContract ¶
func (m *BlockFilter) GetContract() string
func (*BlockFilter) GetEventName ¶
func (m *BlockFilter) GetEventName() string
func (*BlockFilter) GetExcludeTx ¶
func (m *BlockFilter) GetExcludeTx() bool
func (*BlockFilter) GetExcludeTxEvent ¶
func (m *BlockFilter) GetExcludeTxEvent() bool
func (*BlockFilter) GetFromAddr ¶
func (m *BlockFilter) GetFromAddr() string
func (*BlockFilter) GetInitiator ¶
func (m *BlockFilter) GetInitiator() string
func (*BlockFilter) GetRange ¶
func (m *BlockFilter) GetRange() *BlockRange
func (*BlockFilter) GetToAddr ¶
func (m *BlockFilter) GetToAddr() string
func (*BlockFilter) ProtoMessage ¶
func (*BlockFilter) ProtoMessage()
func (*BlockFilter) Reset ¶
func (m *BlockFilter) Reset()
func (*BlockFilter) String ¶
func (m *BlockFilter) String() string
func (*BlockFilter) XXX_DiscardUnknown ¶
func (m *BlockFilter) XXX_DiscardUnknown()
func (*BlockFilter) XXX_Marshal ¶
func (m *BlockFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockFilter) XXX_Merge ¶
func (m *BlockFilter) XXX_Merge(src proto.Message)
func (*BlockFilter) XXX_Size ¶
func (m *BlockFilter) XXX_Size() int
func (*BlockFilter) XXX_Unmarshal ¶
func (m *BlockFilter) XXX_Unmarshal(b []byte) error
type BlockRange ¶
type BlockRange struct { Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockRange) Descriptor ¶
func (*BlockRange) Descriptor() ([]byte, []int)
func (*BlockRange) GetEnd ¶
func (m *BlockRange) GetEnd() string
func (*BlockRange) GetStart ¶
func (m *BlockRange) GetStart() string
func (*BlockRange) ProtoMessage ¶
func (*BlockRange) ProtoMessage()
func (*BlockRange) Reset ¶
func (m *BlockRange) Reset()
func (*BlockRange) String ¶
func (m *BlockRange) String() string
func (*BlockRange) XXX_DiscardUnknown ¶
func (m *BlockRange) XXX_DiscardUnknown()
func (*BlockRange) XXX_Marshal ¶
func (m *BlockRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockRange) XXX_Merge ¶
func (m *BlockRange) XXX_Merge(src proto.Message)
func (*BlockRange) XXX_Size ¶
func (m *BlockRange) XXX_Size() int
func (*BlockRange) XXX_Unmarshal ¶
func (m *BlockRange) XXX_Unmarshal(b []byte) error
type ContractEvent ¶
type ContractEvent struct { Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContractEvent) Descriptor ¶
func (*ContractEvent) Descriptor() ([]byte, []int)
func (*ContractEvent) GetBody ¶
func (m *ContractEvent) GetBody() []byte
func (*ContractEvent) GetContract ¶
func (m *ContractEvent) GetContract() string
func (*ContractEvent) GetName ¶
func (m *ContractEvent) GetName() string
func (*ContractEvent) ProtoMessage ¶
func (*ContractEvent) ProtoMessage()
func (*ContractEvent) Reset ¶
func (m *ContractEvent) Reset()
func (*ContractEvent) String ¶
func (m *ContractEvent) String() string
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 ContractResponse ¶
type ContractResponse struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ContractResponse is the response returnd by contract
func (*ContractResponse) Descriptor ¶
func (*ContractResponse) Descriptor() ([]byte, []int)
func (*ContractResponse) GetBody ¶
func (m *ContractResponse) GetBody() []byte
func (*ContractResponse) GetMessage ¶
func (m *ContractResponse) GetMessage() string
func (*ContractResponse) GetStatus ¶
func (m *ContractResponse) GetStatus() int32
func (*ContractResponse) ProtoMessage ¶
func (*ContractResponse) ProtoMessage()
func (*ContractResponse) Reset ¶
func (m *ContractResponse) Reset()
func (*ContractResponse) String ¶
func (m *ContractResponse) String() string
func (*ContractResponse) XXX_DiscardUnknown ¶
func (m *ContractResponse) XXX_DiscardUnknown()
func (*ContractResponse) XXX_Marshal ¶
func (m *ContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractResponse) XXX_Merge ¶
func (m *ContractResponse) XXX_Merge(src proto.Message)
func (*ContractResponse) XXX_Size ¶
func (m *ContractResponse) XXX_Size() int
func (*ContractResponse) XXX_Unmarshal ¶
func (m *ContractResponse) XXX_Unmarshal(b []byte) error
type ContractStatData ¶
type ContractStatData struct { AccountCount int64 `protobuf:"varint,1,opt,name=accountCount,proto3" json:"accountCount,omitempty"` ContractCount int64 `protobuf:"varint,2,opt,name=contractCount,proto3" json:"contractCount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContractStatData) Descriptor ¶
func (*ContractStatData) Descriptor() ([]byte, []int)
func (*ContractStatData) GetAccountCount ¶
func (m *ContractStatData) GetAccountCount() int64
func (*ContractStatData) GetContractCount ¶
func (m *ContractStatData) GetContractCount() int64
func (*ContractStatData) ProtoMessage ¶
func (*ContractStatData) ProtoMessage()
func (*ContractStatData) Reset ¶
func (m *ContractStatData) Reset()
func (*ContractStatData) String ¶
func (m *ContractStatData) String() string
func (*ContractStatData) XXX_DiscardUnknown ¶
func (m *ContractStatData) XXX_DiscardUnknown()
func (*ContractStatData) XXX_Marshal ¶
func (m *ContractStatData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractStatData) XXX_Merge ¶
func (m *ContractStatData) XXX_Merge(src proto.Message)
func (*ContractStatData) XXX_Size ¶
func (m *ContractStatData) XXX_Size() int
func (*ContractStatData) XXX_Unmarshal ¶
func (m *ContractStatData) XXX_Unmarshal(b []byte) error
type ContractStatus ¶
type ContractStatus struct { ContractName string `protobuf:"bytes,1,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` Txid string `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"` Desc []byte `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"` IsBanned bool `protobuf:"varint,4,opt,name=is_banned,json=isBanned,proto3" json:"is_banned,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Runtime string `protobuf:"bytes,6,opt,name=runtime,proto3" json:"runtime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Status of a contract
func (*ContractStatus) Descriptor ¶
func (*ContractStatus) Descriptor() ([]byte, []int)
func (*ContractStatus) GetContractName ¶
func (m *ContractStatus) GetContractName() string
func (*ContractStatus) GetDesc ¶
func (m *ContractStatus) GetDesc() []byte
func (*ContractStatus) GetIsBanned ¶
func (m *ContractStatus) GetIsBanned() bool
func (*ContractStatus) GetRuntime ¶
func (m *ContractStatus) GetRuntime() string
func (*ContractStatus) GetTimestamp ¶
func (m *ContractStatus) GetTimestamp() int64
func (*ContractStatus) GetTxid ¶
func (m *ContractStatus) GetTxid() string
func (*ContractStatus) ProtoMessage ¶
func (*ContractStatus) ProtoMessage()
func (*ContractStatus) Reset ¶
func (m *ContractStatus) Reset()
func (*ContractStatus) String ¶
func (m *ContractStatus) String() string
func (*ContractStatus) XXX_DiscardUnknown ¶
func (m *ContractStatus) XXX_DiscardUnknown()
func (*ContractStatus) XXX_Marshal ¶
func (m *ContractStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractStatus) XXX_Merge ¶
func (m *ContractStatus) XXX_Merge(src proto.Message)
func (*ContractStatus) XXX_Size ¶
func (m *ContractStatus) XXX_Size() int
func (*ContractStatus) XXX_Unmarshal ¶
func (m *ContractStatus) XXX_Unmarshal(b []byte) error
type Event ¶
type Event struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetPayload ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type EventServiceClient ¶
type EventServiceClient interface {
Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (EventService_SubscribeClient, error)
}
EventServiceClient is the client API for EventService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEventServiceClient ¶
func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient
type EventServiceServer ¶
type EventServiceServer interface {
Subscribe(*SubscribeRequest, EventService_SubscribeServer) error
}
EventServiceServer is the server API for EventService service.
type EventService_SubscribeClient ¶
type EventService_SubscribeClient interface { Recv() (*Event, error) grpc.ClientStream }
type EventService_SubscribeServer ¶
type EventService_SubscribeServer interface { Send(*Event) error grpc.ServerStream }
type FilteredBlock ¶
type FilteredBlock struct { Bcname string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"` Blockid string `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"` BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Txs []*FilteredTransaction `protobuf:"bytes,4,rep,name=txs,proto3" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FilteredBlock) Descriptor ¶
func (*FilteredBlock) Descriptor() ([]byte, []int)
func (*FilteredBlock) GetBcname ¶
func (m *FilteredBlock) GetBcname() string
func (*FilteredBlock) GetBlockHeight ¶
func (m *FilteredBlock) GetBlockHeight() int64
func (*FilteredBlock) GetBlockid ¶
func (m *FilteredBlock) GetBlockid() string
func (*FilteredBlock) GetTxs ¶
func (m *FilteredBlock) GetTxs() []*FilteredTransaction
func (*FilteredBlock) ProtoMessage ¶
func (*FilteredBlock) ProtoMessage()
func (*FilteredBlock) Reset ¶
func (m *FilteredBlock) Reset()
func (*FilteredBlock) String ¶
func (m *FilteredBlock) String() string
func (*FilteredBlock) XXX_DiscardUnknown ¶
func (m *FilteredBlock) XXX_DiscardUnknown()
func (*FilteredBlock) XXX_Marshal ¶
func (m *FilteredBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilteredBlock) XXX_Merge ¶
func (m *FilteredBlock) XXX_Merge(src proto.Message)
func (*FilteredBlock) XXX_Size ¶
func (m *FilteredBlock) XXX_Size() int
func (*FilteredBlock) XXX_Unmarshal ¶
func (m *FilteredBlock) XXX_Unmarshal(b []byte) error
type FilteredTransaction ¶
type FilteredTransaction struct { Txid string `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` Events []*ContractEvent `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FilteredTransaction) Descriptor ¶
func (*FilteredTransaction) Descriptor() ([]byte, []int)
func (*FilteredTransaction) GetEvents ¶
func (m *FilteredTransaction) GetEvents() []*ContractEvent
func (*FilteredTransaction) GetTxid ¶
func (m *FilteredTransaction) GetTxid() string
func (*FilteredTransaction) ProtoMessage ¶
func (*FilteredTransaction) ProtoMessage()
func (*FilteredTransaction) Reset ¶
func (m *FilteredTransaction) Reset()
func (*FilteredTransaction) String ¶
func (m *FilteredTransaction) String() string
func (*FilteredTransaction) XXX_DiscardUnknown ¶
func (m *FilteredTransaction) XXX_DiscardUnknown()
func (*FilteredTransaction) XXX_Marshal ¶
func (m *FilteredTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilteredTransaction) XXX_Merge ¶
func (m *FilteredTransaction) XXX_Merge(src proto.Message)
func (*FilteredTransaction) XXX_Size ¶
func (m *FilteredTransaction) XXX_Size() int
func (*FilteredTransaction) XXX_Unmarshal ¶
func (m *FilteredTransaction) XXX_Unmarshal(b []byte) error
type GasPrice ¶
type GasPrice struct { CpuRate int64 `protobuf:"varint,1,opt,name=cpu_rate,json=cpuRate,proto3" json:"cpu_rate,omitempty"` MemRate int64 `protobuf:"varint,2,opt,name=mem_rate,json=memRate,proto3" json:"mem_rate,omitempty"` DiskRate int64 `protobuf:"varint,3,opt,name=disk_rate,json=diskRate,proto3" json:"disk_rate,omitempty"` XfeeRate int64 `protobuf:"varint,4,opt,name=xfee_rate,json=xfeeRate,proto3" json:"xfee_rate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GasPrice) Descriptor ¶
func (*GasPrice) GetCpuRate ¶
func (*GasPrice) GetDiskRate ¶
func (*GasPrice) GetMemRate ¶
func (*GasPrice) GetXfeeRate ¶
func (*GasPrice) ProtoMessage ¶
func (*GasPrice) ProtoMessage()
func (*GasPrice) XXX_DiscardUnknown ¶
func (m *GasPrice) XXX_DiscardUnknown()
func (*GasPrice) XXX_Marshal ¶
func (*GasPrice) XXX_Unmarshal ¶
type GovernTokenBalance ¶
type GovernTokenBalance struct { TotalBalance string `protobuf:"bytes,1,opt,name=total_balance,json=totalBalance,proto3" json:"total_balance,omitempty"` AvailableBalanceForTdpos string `` /* 137-byte string literal not displayed */ LockedBalanceForTdpos string `` /* 128-byte string literal not displayed */ AvailableBalanceForProposal string `` /* 146-byte string literal not displayed */ LockedBalanceForProposal string `` /* 137-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GovernTokenBalance
func (*GovernTokenBalance) Descriptor ¶
func (*GovernTokenBalance) Descriptor() ([]byte, []int)
func (*GovernTokenBalance) GetAvailableBalanceForProposal ¶
func (m *GovernTokenBalance) GetAvailableBalanceForProposal() string
func (*GovernTokenBalance) GetAvailableBalanceForTdpos ¶
func (m *GovernTokenBalance) GetAvailableBalanceForTdpos() string
func (*GovernTokenBalance) GetLockedBalanceForProposal ¶
func (m *GovernTokenBalance) GetLockedBalanceForProposal() string
func (*GovernTokenBalance) GetLockedBalanceForTdpos ¶
func (m *GovernTokenBalance) GetLockedBalanceForTdpos() string
func (*GovernTokenBalance) GetTotalBalance ¶
func (m *GovernTokenBalance) GetTotalBalance() string
func (*GovernTokenBalance) ProtoMessage ¶
func (*GovernTokenBalance) ProtoMessage()
func (*GovernTokenBalance) Reset ¶
func (m *GovernTokenBalance) Reset()
func (*GovernTokenBalance) String ¶
func (m *GovernTokenBalance) String() string
func (*GovernTokenBalance) XXX_DiscardUnknown ¶
func (m *GovernTokenBalance) XXX_DiscardUnknown()
func (*GovernTokenBalance) XXX_Marshal ¶
func (m *GovernTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GovernTokenBalance) XXX_Merge ¶
func (m *GovernTokenBalance) XXX_Merge(src proto.Message)
func (*GovernTokenBalance) XXX_Size ¶
func (m *GovernTokenBalance) XXX_Size() int
func (*GovernTokenBalance) XXX_Unmarshal ¶
func (m *GovernTokenBalance) XXX_Unmarshal(b []byte) error
type InvokeRequest ¶
type InvokeRequest struct { ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` ContractName string `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"` MethodName string `protobuf:"bytes,3,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"` Args map[string][]byte `` /* 149-byte string literal not displayed */ ResourceLimits []*ResourceLimit `protobuf:"bytes,5,rep,name=resource_limits,json=resourceLimits,proto3" json:"resource_limits,omitempty"` // amount is the amount transfer to the contract // attention: In one transaction, transfer to only one contract is allowed Amount string `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
预执行的请求结构
func (*InvokeRequest) Descriptor ¶
func (*InvokeRequest) Descriptor() ([]byte, []int)
func (*InvokeRequest) GetAmount ¶
func (m *InvokeRequest) GetAmount() string
func (*InvokeRequest) GetArgs ¶
func (m *InvokeRequest) GetArgs() map[string][]byte
func (*InvokeRequest) GetContractName ¶
func (m *InvokeRequest) GetContractName() string
func (*InvokeRequest) GetMethodName ¶
func (m *InvokeRequest) GetMethodName() string
func (*InvokeRequest) GetModuleName ¶
func (m *InvokeRequest) GetModuleName() string
func (*InvokeRequest) GetResourceLimits ¶
func (m *InvokeRequest) GetResourceLimits() []*ResourceLimit
func (*InvokeRequest) ProtoMessage ¶
func (*InvokeRequest) ProtoMessage()
func (*InvokeRequest) Reset ¶
func (m *InvokeRequest) Reset()
func (*InvokeRequest) String ¶
func (m *InvokeRequest) String() string
func (*InvokeRequest) XXX_DiscardUnknown ¶
func (m *InvokeRequest) XXX_DiscardUnknown()
func (*InvokeRequest) XXX_Marshal ¶
func (m *InvokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InvokeRequest) XXX_Merge ¶
func (m *InvokeRequest) XXX_Merge(src proto.Message)
func (*InvokeRequest) XXX_Size ¶
func (m *InvokeRequest) XXX_Size() int
func (*InvokeRequest) XXX_Unmarshal ¶
func (m *InvokeRequest) XXX_Unmarshal(b []byte) error
type InvokeResponse ¶
type InvokeResponse struct { Inputs []*TxInputExt `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"` Outputs []*TxOutputExt `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"` Response [][]byte `protobuf:"bytes,3,rep,name=response,proto3" json:"response,omitempty"` GasUsed int64 `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` Requests []*InvokeRequest `protobuf:"bytes,5,rep,name=requests,proto3" json:"requests,omitempty"` Responses []*ContractResponse `protobuf:"bytes,6,rep,name=responses,proto3" json:"responses,omitempty"` UtxoInputs []*TxInput `protobuf:"bytes,7,rep,name=utxoInputs,proto3" json:"utxoInputs,omitempty"` UtxoOutputs []*TxOutput `protobuf:"bytes,8,rep,name=utxoOutputs,proto3" json:"utxoOutputs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
预执行的返回结构
func (*InvokeResponse) Descriptor ¶
func (*InvokeResponse) Descriptor() ([]byte, []int)
func (*InvokeResponse) GetGasUsed ¶
func (m *InvokeResponse) GetGasUsed() int64
func (*InvokeResponse) GetInputs ¶
func (m *InvokeResponse) GetInputs() []*TxInputExt
func (*InvokeResponse) GetOutputs ¶
func (m *InvokeResponse) GetOutputs() []*TxOutputExt
func (*InvokeResponse) GetRequests ¶
func (m *InvokeResponse) GetRequests() []*InvokeRequest
func (*InvokeResponse) GetResponse ¶
func (m *InvokeResponse) GetResponse() [][]byte
func (*InvokeResponse) GetResponses ¶
func (m *InvokeResponse) GetResponses() []*ContractResponse
func (*InvokeResponse) GetUtxoInputs ¶
func (m *InvokeResponse) GetUtxoInputs() []*TxInput
func (*InvokeResponse) GetUtxoOutputs ¶
func (m *InvokeResponse) GetUtxoOutputs() []*TxOutput
func (*InvokeResponse) ProtoMessage ¶
func (*InvokeResponse) ProtoMessage()
func (*InvokeResponse) Reset ¶
func (m *InvokeResponse) Reset()
func (*InvokeResponse) String ¶
func (m *InvokeResponse) String() string
func (*InvokeResponse) XXX_DiscardUnknown ¶
func (m *InvokeResponse) XXX_DiscardUnknown()
func (*InvokeResponse) XXX_Marshal ¶
func (m *InvokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InvokeResponse) XXX_Merge ¶
func (m *InvokeResponse) XXX_Merge(src proto.Message)
func (*InvokeResponse) XXX_Size ¶
func (m *InvokeResponse) XXX_Size() int
func (*InvokeResponse) XXX_Unmarshal ¶
func (m *InvokeResponse) XXX_Unmarshal(b []byte) error
type P2PServiceClient ¶
type P2PServiceClient interface {
SendP2PMessage(ctx context.Context, opts ...grpc.CallOption) (P2PService_SendP2PMessageClient, error)
}
P2PServiceClient is the client API for P2PService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewP2PServiceClient ¶
func NewP2PServiceClient(cc *grpc.ClientConn) P2PServiceClient
type P2PServiceServer ¶
type P2PServiceServer interface {
SendP2PMessage(P2PService_SendP2PMessageServer) error
}
P2PServiceServer is the server API for P2PService service.
type P2PService_SendP2PMessageClient ¶
type P2PService_SendP2PMessageClient interface { Send(*XuperMessage) error Recv() (*XuperMessage, error) grpc.ClientStream }
type P2PService_SendP2PMessageServer ¶
type P2PService_SendP2PMessageServer interface { Send(*XuperMessage) error Recv() (*XuperMessage, error) grpc.ServerStream }
type PeerInfo ¶
type PeerInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` Peer []*PeerInfo `protobuf:"bytes,4,rep,name=peer,proto3" json:"peer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerInfo) Descriptor ¶
func (*PeerInfo) GetAccount ¶
func (*PeerInfo) GetAddress ¶
func (*PeerInfo) ProtoMessage ¶
func (*PeerInfo) ProtoMessage()
func (*PeerInfo) XXX_DiscardUnknown ¶
func (m *PeerInfo) XXX_DiscardUnknown()
func (*PeerInfo) XXX_Marshal ¶
func (*PeerInfo) XXX_Unmarshal ¶
type PermissionModel ¶
type PermissionModel struct { Rule PermissionRule `protobuf:"varint,1,opt,name=rule,proto3,enum=protos.PermissionRule" json:"rule,omitempty"` AcceptValue float64 `protobuf:"fixed64,2,opt,name=acceptValue,proto3" json:"acceptValue,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PermissionModel) Descriptor ¶
func (*PermissionModel) Descriptor() ([]byte, []int)
func (*PermissionModel) GetAcceptValue ¶
func (m *PermissionModel) GetAcceptValue() float64
func (*PermissionModel) GetRule ¶
func (m *PermissionModel) GetRule() PermissionRule
func (*PermissionModel) ProtoMessage ¶
func (*PermissionModel) ProtoMessage()
func (*PermissionModel) Reset ¶
func (m *PermissionModel) Reset()
func (*PermissionModel) String ¶
func (m *PermissionModel) String() string
func (*PermissionModel) XXX_DiscardUnknown ¶
func (m *PermissionModel) XXX_DiscardUnknown()
func (*PermissionModel) XXX_Marshal ¶
func (m *PermissionModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PermissionModel) XXX_Merge ¶
func (m *PermissionModel) XXX_Merge(src proto.Message)
func (*PermissionModel) XXX_Size ¶
func (m *PermissionModel) XXX_Size() int
func (*PermissionModel) XXX_Unmarshal ¶
func (m *PermissionModel) XXX_Unmarshal(b []byte) error
type PermissionRule ¶
type PermissionRule int32
-------- Account and Permission Section --------
const ( PermissionRule_NULL PermissionRule = 0 PermissionRule_SIGN_THRESHOLD PermissionRule = 1 PermissionRule_SIGN_AKSET PermissionRule = 2 PermissionRule_SIGN_RATE PermissionRule = 3 PermissionRule_SIGN_SUM PermissionRule = 4 PermissionRule_CA_SERVER PermissionRule = 5 PermissionRule_COMMUNITY_VOTE PermissionRule = 6 )
func (PermissionRule) EnumDescriptor ¶
func (PermissionRule) EnumDescriptor() ([]byte, []int)
func (PermissionRule) String ¶
func (x PermissionRule) String() string
type Proposal ¶
type Proposal struct { Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Args map[string][]byte `` /* 149-byte string literal not displayed */ Trigger *TriggerDesc `protobuf:"bytes,4,opt,name=trigger,proto3" json:"trigger,omitempty"` VoteAmount string `protobuf:"bytes,5,opt,name=vote_amount,json=voteAmount,proto3" json:"vote_amount,omitempty"` Status ProposalStatus `protobuf:"varint,6,opt,name=status,proto3,enum=protos.ProposalStatus" json:"status,omitempty"` Proposer string `protobuf:"bytes,7,opt,name=proposer,proto3" json:"proposer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Proposal
func (*Proposal) Descriptor ¶
func (*Proposal) GetProposer ¶
func (*Proposal) GetStatus ¶
func (m *Proposal) GetStatus() ProposalStatus
func (*Proposal) GetTrigger ¶
func (m *Proposal) GetTrigger() *TriggerDesc
func (*Proposal) GetVoteAmount ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) XXX_DiscardUnknown ¶
func (m *Proposal) XXX_DiscardUnknown()
func (*Proposal) XXX_Marshal ¶
func (*Proposal) XXX_Unmarshal ¶
type ProposalStatus ¶
type ProposalStatus int32
const ( ProposalStatus_VOTING ProposalStatus = 0 ProposalStatus_SUCCESS ProposalStatus = 1 ProposalStatus_FAILURE ProposalStatus = 2 ProposalStatus_CANCELED ProposalStatus = 3 )
func (ProposalStatus) EnumDescriptor ¶
func (ProposalStatus) EnumDescriptor() ([]byte, []int)
func (ProposalStatus) String ¶
func (x ProposalStatus) String() string
type ResourceLimit ¶
type ResourceLimit struct { Type ResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ResourceType" json:"type,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResourceLimit) Descriptor ¶
func (*ResourceLimit) Descriptor() ([]byte, []int)
func (*ResourceLimit) GetLimit ¶
func (m *ResourceLimit) GetLimit() int64
func (*ResourceLimit) GetType ¶
func (m *ResourceLimit) GetType() ResourceType
func (*ResourceLimit) ProtoMessage ¶
func (*ResourceLimit) ProtoMessage()
func (*ResourceLimit) Reset ¶
func (m *ResourceLimit) Reset()
func (*ResourceLimit) String ¶
func (m *ResourceLimit) String() string
func (*ResourceLimit) XXX_DiscardUnknown ¶
func (m *ResourceLimit) XXX_DiscardUnknown()
func (*ResourceLimit) XXX_Marshal ¶
func (m *ResourceLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceLimit) XXX_Merge ¶
func (m *ResourceLimit) XXX_Merge(src proto.Message)
func (*ResourceLimit) XXX_Size ¶
func (m *ResourceLimit) XXX_Size() int
func (*ResourceLimit) XXX_Unmarshal ¶
func (m *ResourceLimit) XXX_Unmarshal(b []byte) error
type ResourceType ¶
type ResourceType int32
const ( ResourceType_CPU ResourceType = 0 ResourceType_MEMORY ResourceType = 1 ResourceType_DISK ResourceType = 2 // the fee used in kernel contract ResourceType_XFEE ResourceType = 3 )
func (ResourceType) EnumDescriptor ¶
func (ResourceType) EnumDescriptor() ([]byte, []int)
func (ResourceType) String ¶
func (x ResourceType) String() string
type SignatureInfo ¶
type SignatureInfo struct { PublicKey string `protobuf:"bytes,1,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` Sign []byte `protobuf:"bytes,2,opt,name=Sign,proto3" json:"Sign,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
签名详情
func (*SignatureInfo) Descriptor ¶
func (*SignatureInfo) Descriptor() ([]byte, []int)
func (*SignatureInfo) GetPublicKey ¶
func (m *SignatureInfo) GetPublicKey() string
func (*SignatureInfo) GetSign ¶
func (m *SignatureInfo) GetSign() []byte
func (*SignatureInfo) ProtoMessage ¶
func (*SignatureInfo) ProtoMessage()
func (*SignatureInfo) Reset ¶
func (m *SignatureInfo) Reset()
func (*SignatureInfo) String ¶
func (m *SignatureInfo) String() string
func (*SignatureInfo) XXX_DiscardUnknown ¶
func (m *SignatureInfo) XXX_DiscardUnknown()
func (*SignatureInfo) XXX_Marshal ¶
func (m *SignatureInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignatureInfo) XXX_Merge ¶
func (m *SignatureInfo) XXX_Merge(src proto.Message)
func (*SignatureInfo) XXX_Size ¶
func (m *SignatureInfo) XXX_Size() int
func (*SignatureInfo) XXX_Unmarshal ¶
func (m *SignatureInfo) XXX_Unmarshal(b []byte) error
type SubscribeRequest ¶
type SubscribeRequest struct { Type SubscribeType `protobuf:"varint,1,opt,name=type,proto3,enum=protos.SubscribeType" json:"type,omitempty"` Filter []byte `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetFilter ¶
func (m *SubscribeRequest) GetFilter() []byte
func (*SubscribeRequest) GetType ¶
func (m *SubscribeRequest) GetType() SubscribeType
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
func (*SubscribeRequest) XXX_DiscardUnknown ¶
func (m *SubscribeRequest) XXX_DiscardUnknown()
func (*SubscribeRequest) XXX_Marshal ¶
func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeRequest) XXX_Merge ¶
func (m *SubscribeRequest) XXX_Merge(src proto.Message)
func (*SubscribeRequest) XXX_Size ¶
func (m *SubscribeRequest) XXX_Size() int
func (*SubscribeRequest) XXX_Unmarshal ¶
func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
type SubscribeType ¶
type SubscribeType int32
const ( // 区块事件,payload为BlockFilter SubscribeType_BLOCK SubscribeType = 0 )
func (SubscribeType) EnumDescriptor ¶
func (SubscribeType) EnumDescriptor() ([]byte, []int)
func (SubscribeType) String ¶
func (x SubscribeType) String() string
type TriggerDesc ¶
type TriggerDesc struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` Args map[string][]byte `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TriggerDesc
func (*TriggerDesc) Descriptor ¶
func (*TriggerDesc) Descriptor() ([]byte, []int)
func (*TriggerDesc) GetArgs ¶
func (m *TriggerDesc) GetArgs() map[string][]byte
func (*TriggerDesc) GetHeight ¶
func (m *TriggerDesc) GetHeight() int64
func (*TriggerDesc) GetMethod ¶
func (m *TriggerDesc) GetMethod() string
func (*TriggerDesc) GetModule ¶
func (m *TriggerDesc) GetModule() string
func (*TriggerDesc) ProtoMessage ¶
func (*TriggerDesc) ProtoMessage()
func (*TriggerDesc) Reset ¶
func (m *TriggerDesc) Reset()
func (*TriggerDesc) String ¶
func (m *TriggerDesc) String() string
func (*TriggerDesc) XXX_DiscardUnknown ¶
func (m *TriggerDesc) XXX_DiscardUnknown()
func (*TriggerDesc) XXX_Marshal ¶
func (m *TriggerDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TriggerDesc) XXX_Merge ¶
func (m *TriggerDesc) XXX_Merge(src proto.Message)
func (*TriggerDesc) XXX_Size ¶
func (m *TriggerDesc) XXX_Size() int
func (*TriggerDesc) XXX_Unmarshal ¶
func (m *TriggerDesc) XXX_Unmarshal(b []byte) error
type TxInput ¶
type TxInput struct { // The transaction id referenced to RefTxid []byte `protobuf:"bytes,1,opt,name=ref_txid,json=refTxid,proto3" json:"ref_txid,omitempty"` // The output offset of the transaction referenced to RefOffset int32 `protobuf:"varint,2,opt,name=ref_offset,json=refOffset,proto3" json:"ref_offset,omitempty"` // The address of the launcher FromAddr []byte `protobuf:"bytes,5,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"` // The amount of the transaction Amount []byte `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` // Frozen height FrozenHeight int64 `protobuf:"varint,7,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Transaction input
func (*TxInput) Descriptor ¶
func (*TxInput) GetFromAddr ¶
func (*TxInput) GetFrozenHeight ¶
func (*TxInput) GetRefOffset ¶
func (*TxInput) GetRefTxid ¶
func (*TxInput) ProtoMessage ¶
func (*TxInput) ProtoMessage()
func (*TxInput) XXX_DiscardUnknown ¶
func (m *TxInput) XXX_DiscardUnknown()
func (*TxInput) XXX_Marshal ¶
func (*TxInput) XXX_Unmarshal ¶
type TxInputExt ¶
type TxInputExt struct { Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` RefTxid []byte `protobuf:"bytes,3,opt,name=ref_txid,json=refTxid,proto3" json:"ref_txid,omitempty"` RefOffset int32 `protobuf:"varint,4,opt,name=ref_offset,json=refOffset,proto3" json:"ref_offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
扩展输入
func (*TxInputExt) Descriptor ¶
func (*TxInputExt) Descriptor() ([]byte, []int)
func (*TxInputExt) GetBucket ¶
func (m *TxInputExt) GetBucket() string
func (*TxInputExt) GetKey ¶
func (m *TxInputExt) GetKey() []byte
func (*TxInputExt) GetRefOffset ¶
func (m *TxInputExt) GetRefOffset() int32
func (*TxInputExt) GetRefTxid ¶
func (m *TxInputExt) GetRefTxid() []byte
func (*TxInputExt) ProtoMessage ¶
func (*TxInputExt) ProtoMessage()
func (*TxInputExt) Reset ¶
func (m *TxInputExt) Reset()
func (*TxInputExt) String ¶
func (m *TxInputExt) String() string
func (*TxInputExt) XXX_DiscardUnknown ¶
func (m *TxInputExt) XXX_DiscardUnknown()
func (*TxInputExt) XXX_Marshal ¶
func (m *TxInputExt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxInputExt) XXX_Merge ¶
func (m *TxInputExt) XXX_Merge(src proto.Message)
func (*TxInputExt) XXX_Size ¶
func (m *TxInputExt) XXX_Size() int
func (*TxInputExt) XXX_Unmarshal ¶
func (m *TxInputExt) XXX_Unmarshal(b []byte) error
type TxOutput ¶
type TxOutput struct { // The amount of the transaction Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // The address of the launcher ToAddr []byte `protobuf:"bytes,2,opt,name=to_addr,json=toAddr,proto3" json:"to_addr,omitempty"` // Fronzen height FrozenHeight int64 `protobuf:"varint,4,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Transaction output
func (*TxOutput) Descriptor ¶
func (*TxOutput) GetFrozenHeight ¶
func (*TxOutput) ProtoMessage ¶
func (*TxOutput) ProtoMessage()
func (*TxOutput) XXX_DiscardUnknown ¶
func (m *TxOutput) XXX_DiscardUnknown()
func (*TxOutput) XXX_Marshal ¶
func (*TxOutput) XXX_Unmarshal ¶
type TxOutputExt ¶
type TxOutputExt struct { Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
扩展输出
func (*TxOutputExt) Descriptor ¶
func (*TxOutputExt) Descriptor() ([]byte, []int)
func (*TxOutputExt) GetBucket ¶
func (m *TxOutputExt) GetBucket() string
func (*TxOutputExt) GetKey ¶
func (m *TxOutputExt) GetKey() []byte
func (*TxOutputExt) GetValue ¶
func (m *TxOutputExt) GetValue() []byte
func (*TxOutputExt) ProtoMessage ¶
func (*TxOutputExt) ProtoMessage()
func (*TxOutputExt) Reset ¶
func (m *TxOutputExt) Reset()
func (*TxOutputExt) String ¶
func (m *TxOutputExt) String() string
func (*TxOutputExt) XXX_DiscardUnknown ¶
func (m *TxOutputExt) XXX_DiscardUnknown()
func (*TxOutputExt) XXX_Marshal ¶
func (m *TxOutputExt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxOutputExt) XXX_Merge ¶
func (m *TxOutputExt) XXX_Merge(src proto.Message)
func (*TxOutputExt) XXX_Size ¶
func (m *TxOutputExt) XXX_Size() int
func (*TxOutputExt) XXX_Unmarshal ¶
func (m *TxOutputExt) XXX_Unmarshal(b []byte) error
type UnimplementedEventServiceServer ¶
type UnimplementedEventServiceServer struct { }
UnimplementedEventServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedEventServiceServer) Subscribe ¶
func (*UnimplementedEventServiceServer) Subscribe(req *SubscribeRequest, srv EventService_SubscribeServer) error
type UnimplementedP2PServiceServer ¶
type UnimplementedP2PServiceServer struct { }
UnimplementedP2PServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedP2PServiceServer) SendP2PMessage ¶
func (*UnimplementedP2PServiceServer) SendP2PMessage(srv P2PService_SendP2PMessageServer) error
type WasmCodeDesc ¶
type WasmCodeDesc struct { Runtime string `protobuf:"bytes,1,opt,name=runtime,proto3" json:"runtime,omitempty"` Compiler string `protobuf:"bytes,2,opt,name=compiler,proto3" json:"compiler,omitempty"` Digest []byte `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"` VmCompiler string `protobuf:"bytes,4,opt,name=vm_compiler,json=vmCompiler,proto3" json:"vm_compiler,omitempty"` ContractType string `protobuf:"bytes,5,opt,name=contract_type,json=contractType,proto3" json:"contract_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WasmCodeDesc) Descriptor ¶
func (*WasmCodeDesc) Descriptor() ([]byte, []int)
func (*WasmCodeDesc) GetCompiler ¶
func (m *WasmCodeDesc) GetCompiler() string
func (*WasmCodeDesc) GetContractType ¶
func (m *WasmCodeDesc) GetContractType() string
func (*WasmCodeDesc) GetDigest ¶
func (m *WasmCodeDesc) GetDigest() []byte
func (*WasmCodeDesc) GetRuntime ¶
func (m *WasmCodeDesc) GetRuntime() string
func (*WasmCodeDesc) GetVmCompiler ¶
func (m *WasmCodeDesc) GetVmCompiler() string
func (*WasmCodeDesc) ProtoMessage ¶
func (*WasmCodeDesc) ProtoMessage()
func (*WasmCodeDesc) Reset ¶
func (m *WasmCodeDesc) Reset()
func (*WasmCodeDesc) String ¶
func (m *WasmCodeDesc) String() string
func (*WasmCodeDesc) XXX_DiscardUnknown ¶
func (m *WasmCodeDesc) XXX_DiscardUnknown()
func (*WasmCodeDesc) XXX_Marshal ¶
func (m *WasmCodeDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WasmCodeDesc) XXX_Merge ¶
func (m *WasmCodeDesc) XXX_Merge(src proto.Message)
func (*WasmCodeDesc) XXX_Size ¶
func (m *WasmCodeDesc) XXX_Size() int
func (*WasmCodeDesc) XXX_Unmarshal ¶
func (m *WasmCodeDesc) XXX_Unmarshal(b []byte) error
type XuperMessage ¶
type XuperMessage struct { Header *XuperMessage_MessageHeader `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"` Data *XuperMessage_MessageData `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
XuperMessage is the message of Xuper p2p server
func (*XuperMessage) Descriptor ¶
func (*XuperMessage) Descriptor() ([]byte, []int)
func (*XuperMessage) GetData ¶
func (m *XuperMessage) GetData() *XuperMessage_MessageData
func (*XuperMessage) GetHeader ¶
func (m *XuperMessage) GetHeader() *XuperMessage_MessageHeader
func (*XuperMessage) ProtoMessage ¶
func (*XuperMessage) ProtoMessage()
func (*XuperMessage) Reset ¶
func (m *XuperMessage) Reset()
func (*XuperMessage) String ¶
func (m *XuperMessage) String() string
func (*XuperMessage) XXX_DiscardUnknown ¶
func (m *XuperMessage) XXX_DiscardUnknown()
func (*XuperMessage) XXX_Marshal ¶
func (m *XuperMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*XuperMessage) XXX_Merge ¶
func (m *XuperMessage) XXX_Merge(src proto.Message)
func (*XuperMessage) XXX_Size ¶
func (m *XuperMessage) XXX_Size() int
func (*XuperMessage) XXX_Unmarshal ¶
func (m *XuperMessage) XXX_Unmarshal(b []byte) error
type XuperMessage_ErrorType ¶
type XuperMessage_ErrorType int32
const ( // success XuperMessage_SUCCESS XuperMessage_ErrorType = 0 XuperMessage_NONE XuperMessage_ErrorType = 1 // common error XuperMessage_UNKNOW_ERROR XuperMessage_ErrorType = 2 XuperMessage_CHECK_SUM_ERROR XuperMessage_ErrorType = 3 XuperMessage_UNMARSHAL_MSG_BODY_ERROR XuperMessage_ErrorType = 4 XuperMessage_CONNECT_REFUSE XuperMessage_ErrorType = 5 // block error XuperMessage_GET_BLOCKCHAIN_ERROR XuperMessage_ErrorType = 6 XuperMessage_BLOCKCHAIN_NOTEXIST XuperMessage_ErrorType = 7 XuperMessage_GET_BLOCK_ERROR XuperMessage_ErrorType = 8 XuperMessage_CONFIRM_BLOCKCHAINSTATUS_ERROR XuperMessage_ErrorType = 9 XuperMessage_GET_AUTHENTICATION_ERROR XuperMessage_ErrorType = 10 XuperMessage_GET_AUTHENTICATION_NOT_PASS XuperMessage_ErrorType = 11 )
func (XuperMessage_ErrorType) EnumDescriptor ¶
func (XuperMessage_ErrorType) EnumDescriptor() ([]byte, []int)
func (XuperMessage_ErrorType) String ¶
func (x XuperMessage_ErrorType) String() string
type XuperMessage_MessageData ¶
type XuperMessage_MessageData struct { // msgInfo is the message infomation, use protobuf coding style MsgInfo []byte `protobuf:"bytes,3,opt,name=msgInfo,proto3" json:"msgInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MessageData is the message data of Xuper p2p server
func (*XuperMessage_MessageData) Descriptor ¶
func (*XuperMessage_MessageData) Descriptor() ([]byte, []int)
func (*XuperMessage_MessageData) GetMsgInfo ¶
func (m *XuperMessage_MessageData) GetMsgInfo() []byte
func (*XuperMessage_MessageData) ProtoMessage ¶
func (*XuperMessage_MessageData) ProtoMessage()
func (*XuperMessage_MessageData) Reset ¶
func (m *XuperMessage_MessageData) Reset()
func (*XuperMessage_MessageData) String ¶
func (m *XuperMessage_MessageData) String() string
func (*XuperMessage_MessageData) XXX_DiscardUnknown ¶
func (m *XuperMessage_MessageData) XXX_DiscardUnknown()
func (*XuperMessage_MessageData) XXX_Marshal ¶
func (m *XuperMessage_MessageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*XuperMessage_MessageData) XXX_Merge ¶
func (m *XuperMessage_MessageData) XXX_Merge(src proto.Message)
func (*XuperMessage_MessageData) XXX_Size ¶
func (m *XuperMessage_MessageData) XXX_Size() int
func (*XuperMessage_MessageData) XXX_Unmarshal ¶
func (m *XuperMessage_MessageData) XXX_Unmarshal(b []byte) error
type XuperMessage_MessageHeader ¶
type XuperMessage_MessageHeader struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Logid string `protobuf:"bytes,2,opt,name=logid,proto3" json:"logid,omitempty"` From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` Bcname string `protobuf:"bytes,4,opt,name=bcname,proto3" json:"bcname,omitempty"` Type XuperMessage_MessageType `protobuf:"varint,5,opt,name=type,proto3,enum=protos.XuperMessage_MessageType" json:"type,omitempty"` DataCheckSum uint32 `protobuf:"varint,6,opt,name=dataCheckSum,proto3" json:"dataCheckSum,omitempty"` ErrorType XuperMessage_ErrorType `protobuf:"varint,7,opt,name=errorType,proto3,enum=protos.XuperMessage_ErrorType" json:"errorType,omitempty"` EnableCompress bool `protobuf:"varint,8,opt,name=enableCompress,proto3" json:"enableCompress,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MessageHeader is the message header of Xuper p2p server
func (*XuperMessage_MessageHeader) Descriptor ¶
func (*XuperMessage_MessageHeader) Descriptor() ([]byte, []int)
func (*XuperMessage_MessageHeader) GetBcname ¶
func (m *XuperMessage_MessageHeader) GetBcname() string
func (*XuperMessage_MessageHeader) GetDataCheckSum ¶
func (m *XuperMessage_MessageHeader) GetDataCheckSum() uint32
func (*XuperMessage_MessageHeader) GetEnableCompress ¶
func (m *XuperMessage_MessageHeader) GetEnableCompress() bool
func (*XuperMessage_MessageHeader) GetErrorType ¶
func (m *XuperMessage_MessageHeader) GetErrorType() XuperMessage_ErrorType
func (*XuperMessage_MessageHeader) GetFrom ¶
func (m *XuperMessage_MessageHeader) GetFrom() string
func (*XuperMessage_MessageHeader) GetLogid ¶
func (m *XuperMessage_MessageHeader) GetLogid() string
func (*XuperMessage_MessageHeader) GetType ¶
func (m *XuperMessage_MessageHeader) GetType() XuperMessage_MessageType
func (*XuperMessage_MessageHeader) GetVersion ¶
func (m *XuperMessage_MessageHeader) GetVersion() string
func (*XuperMessage_MessageHeader) ProtoMessage ¶
func (*XuperMessage_MessageHeader) ProtoMessage()
func (*XuperMessage_MessageHeader) Reset ¶
func (m *XuperMessage_MessageHeader) Reset()
func (*XuperMessage_MessageHeader) String ¶
func (m *XuperMessage_MessageHeader) String() string
func (*XuperMessage_MessageHeader) XXX_DiscardUnknown ¶
func (m *XuperMessage_MessageHeader) XXX_DiscardUnknown()
func (*XuperMessage_MessageHeader) XXX_Marshal ¶
func (m *XuperMessage_MessageHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*XuperMessage_MessageHeader) XXX_Merge ¶
func (m *XuperMessage_MessageHeader) XXX_Merge(src proto.Message)
func (*XuperMessage_MessageHeader) XXX_Size ¶
func (m *XuperMessage_MessageHeader) XXX_Size() int
func (*XuperMessage_MessageHeader) XXX_Unmarshal ¶
func (m *XuperMessage_MessageHeader) XXX_Unmarshal(b []byte) error
type XuperMessage_MessageType ¶
type XuperMessage_MessageType int32
const ( XuperMessage_SENDBLOCK XuperMessage_MessageType = 0 XuperMessage_POSTTX XuperMessage_MessageType = 1 XuperMessage_BATCHPOSTTX XuperMessage_MessageType = 2 XuperMessage_GET_BLOCK XuperMessage_MessageType = 3 XuperMessage_PING XuperMessage_MessageType = 4 XuperMessage_GET_BLOCKCHAINSTATUS XuperMessage_MessageType = 5 XuperMessage_GET_BLOCK_RES XuperMessage_MessageType = 6 XuperMessage_GET_BLOCKCHAINSTATUS_RES XuperMessage_MessageType = 7 // 向邻近确认区块是否为最新状态区块 XuperMessage_CONFIRM_BLOCKCHAINSTATUS XuperMessage_MessageType = 8 XuperMessage_CONFIRM_BLOCKCHAINSTATUS_RES XuperMessage_MessageType = 9 XuperMessage_MSG_TYPE_NONE XuperMessage_MessageType = 10 // query RPC port information XuperMessage_GET_RPC_PORT XuperMessage_MessageType = 11 XuperMessage_GET_RPC_PORT_RES XuperMessage_MessageType = 12 // get authentication information XuperMessage_GET_AUTHENTICATION XuperMessage_MessageType = 13 XuperMessage_GET_AUTHENTICATION_RES XuperMessage_MessageType = 14 // chained-bft NEW_VIEW message XuperMessage_CHAINED_BFT_NEW_VIEW_MSG XuperMessage_MessageType = 15 // chained-bft NEW_PROPOSAL message XuperMessage_CHAINED_BFT_NEW_PROPOSAL_MSG XuperMessage_MessageType = 16 // chained-bft vote message XuperMessage_CHAINED_BFT_VOTE_MSG XuperMessage_MessageType = 17 // broadcast new block id to other node XuperMessage_NEW_BLOCKID XuperMessage_MessageType = 18 // new node used to add to network automatic XuperMessage_NEW_NODE XuperMessage_MessageType = 19 // 消息头同步对(GET_HASHES <-> HASHES), // 发送方通过GET_HASHES消息询问区间范围内的所有区块哈希信息, // 接受方发送HASHES信息, 该消息携带其所知的区间范围内的BlockId列表 XuperMessage_GET_BLOCKIDS XuperMessage_MessageType = 20 XuperMessage_GET_BLOCKIDS_RES XuperMessage_MessageType = 21 // 消息对(GET_BLOCKS <-> BLOCKS), // 发送方通过GET_BLOCKS消息询问BlockId列表内的所有对应区块信息, // 接受方发送BLOCKS信息, 该消息携带具体Block XuperMessage_GET_BLOCKS XuperMessage_MessageType = 22 XuperMessage_GET_BLOCKS_RES XuperMessage_MessageType = 23 XuperMessage_GET_PEER_INFO XuperMessage_MessageType = 24 XuperMessage_GET_PEER_INFO_RES XuperMessage_MessageType = 25 XuperMessage_GET_BLOCK_HEADERS XuperMessage_MessageType = 26 XuperMessage_GET_BLOCKS_HEADERS_RES XuperMessage_MessageType = 27 XuperMessage_GET_BLOCK_TXS XuperMessage_MessageType = 28 XuperMessage_GET_BLOCKS_TXS_RES XuperMessage_MessageType = 29 )
func (XuperMessage_MessageType) EnumDescriptor ¶
func (XuperMessage_MessageType) EnumDescriptor() ([]byte, []int)
func (XuperMessage_MessageType) String ¶
func (x XuperMessage_MessageType) String() string