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 AllBonusData
- func (*AllBonusData) Descriptor() ([]byte, []int)deprecated
- func (x *AllBonusData) GetBonusPools() map[string]*Pool
- func (x *AllBonusData) GetDiscountQueue() map[int64]*BonusRewardDiscount
- func (*AllBonusData) ProtoMessage()
- func (x *AllBonusData) ProtoReflect() protoreflect.Message
- func (x *AllBonusData) Reset()
- func (x *AllBonusData) String() string
- type AllCandidate
- func (*AllCandidate) Descriptor() ([]byte, []int)deprecated
- func (x *AllCandidate) GetCandidate() map[string]string
- func (x *AllCandidate) GetFreemonry() string
- func (x *AllCandidate) GetPercentage() string
- func (*AllCandidate) ProtoMessage()
- func (x *AllCandidate) ProtoReflect() protoreflect.Message
- func (x *AllCandidate) Reset()
- func (x *AllCandidate) String() string
- type BCStatusExplorer
- func (*BCStatusExplorer) Descriptor() ([]byte, []int)deprecated
- func (x *BCStatusExplorer) GetFreeMonry() string
- func (x *BCStatusExplorer) GetHeight() int64
- func (x *BCStatusExplorer) GetNodes() int64
- func (x *BCStatusExplorer) GetPercentage() string
- func (x *BCStatusExplorer) GetTotalMoney() string
- func (*BCStatusExplorer) ProtoMessage()
- func (x *BCStatusExplorer) ProtoReflect() protoreflect.Message
- func (x *BCStatusExplorer) Reset()
- func (x *BCStatusExplorer) String() string
- 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 BonusQueryReply
- func (*BonusQueryReply) Descriptor() ([]byte, []int)
- func (m *BonusQueryReply) GetBonus() int64
- func (m *BonusQueryReply) GetInfo() string
- func (m *BonusQueryReply) GetTokenNeed() string
- func (*BonusQueryReply) ProtoMessage()
- func (m *BonusQueryReply) Reset()
- func (m *BonusQueryReply) String() string
- func (m *BonusQueryReply) XXX_DiscardUnknown()
- func (m *BonusQueryReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BonusQueryReply) XXX_Merge(src proto.Message)
- func (m *BonusQueryReply) XXX_Size() int
- func (m *BonusQueryReply) XXX_Unmarshal(b []byte) error
- type BonusRewardDiscount
- func (*BonusRewardDiscount) Descriptor() ([]byte, []int)deprecated
- func (x *BonusRewardDiscount) GetUserDiscount() map[string]string
- func (*BonusRewardDiscount) ProtoMessage()
- func (x *BonusRewardDiscount) ProtoReflect() protoreflect.Message
- func (x *BonusRewardDiscount) Reset()
- func (x *BonusRewardDiscount) String() string
- type CacheVoteCandidate
- func (*CacheVoteCandidate) Descriptor() ([]byte, []int)deprecated
- func (x *CacheVoteCandidate) GetRatio() int64
- func (x *CacheVoteCandidate) GetTotalVote() string
- func (x *CacheVoteCandidate) GetVotingUser() map[string]string
- func (*CacheVoteCandidate) ProtoMessage()
- func (x *CacheVoteCandidate) ProtoReflect() protoreflect.Message
- func (x *CacheVoteCandidate) Reset()
- func (x *CacheVoteCandidate) String() string
- type CandidateRatio
- func (*CandidateRatio) Descriptor() ([]byte, []int)deprecated
- func (x *CandidateRatio) GetBeVotedTotal() string
- func (x *CandidateRatio) GetIs_Nominate() bool
- func (x *CandidateRatio) GetMyVoting() map[string]string
- func (x *CandidateRatio) GetNominateDetails() map[string]*NominateDetails
- func (x *CandidateRatio) GetRatio() int64
- func (x *CandidateRatio) GetTatalVote() string
- func (x *CandidateRatio) GetUsed() string
- func (x *CandidateRatio) GetVotingUser() map[string]string
- func (*CandidateRatio) ProtoMessage()
- func (x *CandidateRatio) ProtoReflect() protoreflect.Message
- func (x *CandidateRatio) Reset()
- func (x *CandidateRatio) String() string
- 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 FrozenAssetsTable
- func (*FrozenAssetsTable) Descriptor() ([]byte, []int)deprecated
- func (x *FrozenAssetsTable) GetFrozenDetail() map[string]*FrozenDetails
- func (x *FrozenAssetsTable) GetThawDetail() map[string]*FrozenDetails
- func (x *FrozenAssetsTable) GetTimestamp() int64
- func (x *FrozenAssetsTable) GetTotal() string
- func (*FrozenAssetsTable) ProtoMessage()
- func (x *FrozenAssetsTable) ProtoReflect() protoreflect.Message
- func (x *FrozenAssetsTable) Reset()
- func (x *FrozenAssetsTable) String() string
- type FrozenDetails
- func (*FrozenDetails) Descriptor() ([]byte, []int)deprecated
- func (x *FrozenDetails) GetAmount() string
- func (x *FrozenDetails) GetHeight() int64
- func (x *FrozenDetails) GetTimestamp() int64
- func (*FrozenDetails) ProtoMessage()
- func (x *FrozenDetails) ProtoReflect() protoreflect.Message
- func (x *FrozenDetails) Reset()
- func (x *FrozenDetails) String() string
- 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)deprecated
- func (x *GovernTokenBalance) GetAvailableBalanceForProposal() string
- func (x *GovernTokenBalance) GetAvailableBalanceForTdpos() string
- func (x *GovernTokenBalance) GetLockedBalanceForProposal() string
- func (x *GovernTokenBalance) GetLockedBalanceForTdpos() string
- func (x *GovernTokenBalance) GetTotalBalance() string
- func (*GovernTokenBalance) ProtoMessage()
- func (x *GovernTokenBalance) ProtoReflect() protoreflect.Message
- func (x *GovernTokenBalance) Reset()
- func (x *GovernTokenBalance) String() string
- 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 NodeDetail
- func (*NodeDetail) Descriptor() ([]byte, []int)deprecated
- func (x *NodeDetail) GetAddress() string
- func (x *NodeDetail) GetAmount() string
- func (x *NodeDetail) GetHeight() int64
- func (*NodeDetail) ProtoMessage()
- func (x *NodeDetail) ProtoReflect() protoreflect.Message
- func (x *NodeDetail) Reset()
- func (x *NodeDetail) String() string
- type NodeDetails
- type NodeTable
- type NominateDetails
- func (*NominateDetails) Descriptor() ([]byte, []int)deprecated
- func (x *NominateDetails) GetAmount() string
- func (x *NominateDetails) GetIsnominate() bool
- func (*NominateDetails) ProtoMessage()
- func (x *NominateDetails) ProtoReflect() protoreflect.Message
- func (x *NominateDetails) Reset()
- func (x *NominateDetails) String() string
- 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 PledgeVotingResponse
- func (*PledgeVotingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PledgeVotingResponse) GetFreezeAmount() string
- func (x *PledgeVotingResponse) GetFreezetotal() string
- func (x *PledgeVotingResponse) GetFrozenAssetsTable() *FrozenAssetsTable
- func (x *PledgeVotingResponse) GetMyVote() int64
- func (x *PledgeVotingResponse) GetTotalAmount() string
- func (x *PledgeVotingResponse) GetUsedAmount() string
- func (x *PledgeVotingResponse) GetVoteDetailsStatus() []*VoteDetailsStatus
- func (*PledgeVotingResponse) ProtoMessage()
- func (x *PledgeVotingResponse) ProtoReflect() protoreflect.Message
- func (x *PledgeVotingResponse) Reset()
- func (x *PledgeVotingResponse) String() string
- type Pool
- func (*Pool) Descriptor() ([]byte, []int)deprecated
- func (x *Pool) GetBonusPerVote() string
- func (x *Pool) GetTotalVotes() string
- func (x *Pool) GetVoters() map[string]*Voter
- func (*Pool) ProtoMessage()
- func (x *Pool) ProtoReflect() protoreflect.Message
- func (x *Pool) Reset()
- func (x *Pool) String() string
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)deprecated
- func (x *Proposal) GetArgs() map[string][]byte
- func (x *Proposal) GetMethod() string
- func (x *Proposal) GetModule() string
- func (x *Proposal) GetProposer() string
- func (x *Proposal) GetStatus() ProposalStatus
- func (x *Proposal) GetTrigger() *TriggerDesc
- func (x *Proposal) GetVoteAmount() string
- func (*Proposal) ProtoMessage()
- func (x *Proposal) ProtoReflect() protoreflect.Message
- func (x *Proposal) Reset()
- func (x *Proposal) String() string
- type ProposalRatio
- type ProposalStatus
- func (ProposalStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProposalStatus) Enum() *ProposalStatus
- func (ProposalStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProposalStatus) Number() protoreflect.EnumNumber
- func (x ProposalStatus) String() string
- func (ProposalStatus) Type() protoreflect.EnumType
- 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 TermTable
- type TriggerDesc
- func (*TriggerDesc) Descriptor() ([]byte, []int)deprecated
- func (x *TriggerDesc) GetArgs() map[string][]byte
- func (x *TriggerDesc) GetHeight() int64
- func (x *TriggerDesc) GetMethod() string
- func (x *TriggerDesc) GetModule() string
- func (*TriggerDesc) ProtoMessage()
- func (x *TriggerDesc) ProtoReflect() protoreflect.Message
- func (x *TriggerDesc) Reset()
- func (x *TriggerDesc) String() string
- 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 VerificationInfo
- func (*VerificationInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationInfo) GetMyTotal() string
- func (x *VerificationInfo) GetPercentage() string
- func (x *VerificationInfo) GetRatio() int32
- func (x *VerificationInfo) GetTotal() string
- func (*VerificationInfo) ProtoMessage()
- func (x *VerificationInfo) ProtoReflect() protoreflect.Message
- func (x *VerificationInfo) Reset()
- func (x *VerificationInfo) String() string
- type VerificationTable
- func (*VerificationTable) Descriptor() ([]byte, []int)deprecated
- func (x *VerificationTable) GetCandidate() map[string]*VerificationInfo
- func (x *VerificationTable) GetLen() int64
- func (x *VerificationTable) GetLenCandidate() int64
- func (x *VerificationTable) GetTimeLeft() int64
- func (x *VerificationTable) GetVerification() map[string]*VerificationInfo
- func (*VerificationTable) ProtoMessage()
- func (x *VerificationTable) ProtoReflect() protoreflect.Message
- func (x *VerificationTable) Reset()
- func (x *VerificationTable) String() string
- type VoteDetailsStatus
- func (*VoteDetailsStatus) Descriptor() ([]byte, []int)deprecated
- func (x *VoteDetailsStatus) GetBallots() int64
- func (x *VoteDetailsStatus) GetRatio() int32
- func (x *VoteDetailsStatus) GetToaddr() string
- func (x *VoteDetailsStatus) GetTotalballots() string
- func (*VoteDetailsStatus) ProtoMessage()
- func (x *VoteDetailsStatus) ProtoReflect() protoreflect.Message
- func (x *VoteDetailsStatus) Reset()
- func (x *VoteDetailsStatus) String() string
- type Voter
- 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 ( ProposalStatus_name = map[int32]string{ 0: "VOTING", 1: "SUCCESS", 2: "FAILURE", 3: "CANCELED", } ProposalStatus_value = map[string]int32{ "VOTING": 0, "SUCCESS": 1, "FAILURE": 2, "CANCELED": 3, } )
Enum value maps for ProposalStatus.
var File_protos_proposal_proto protoreflect.FileDescriptor
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 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 AllBonusData ¶
type AllBonusData struct { // 所有分红奖励池 BonusPools map[string]*Pool `` /* 161-byte string literal not displayed */ // 提现分红奖励队列,到账高度---分红奖励 DiscountQueue map[int64]*BonusRewardDiscount `` /* 168-byte string literal not displayed */ // contains filtered or unexported fields }
分红数据,分为奖励池与提现队列(map结构)两个部分
func (*AllBonusData) Descriptor
deprecated
func (*AllBonusData) Descriptor() ([]byte, []int)
Deprecated: Use AllBonusData.ProtoReflect.Descriptor instead.
func (*AllBonusData) GetBonusPools ¶
func (x *AllBonusData) GetBonusPools() map[string]*Pool
func (*AllBonusData) GetDiscountQueue ¶
func (x *AllBonusData) GetDiscountQueue() map[int64]*BonusRewardDiscount
func (*AllBonusData) ProtoMessage ¶
func (*AllBonusData) ProtoMessage()
func (*AllBonusData) ProtoReflect ¶
func (x *AllBonusData) ProtoReflect() protoreflect.Message
func (*AllBonusData) Reset ¶
func (x *AllBonusData) Reset()
func (*AllBonusData) String ¶
func (x *AllBonusData) String() string
type AllCandidate ¶
type AllCandidate struct { Candidate map[string]string `` /* 159-byte string literal not displayed */ //全网冻结资产 Freemonry string `protobuf:"bytes,2,opt,name=freemonry,proto3" json:"freemonry,omitempty"` //冻结百分比 Percentage string `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"` // contains filtered or unexported fields }
纪录所有提名人,每轮开始的时候用于更新缓存表
func (*AllCandidate) Descriptor
deprecated
func (*AllCandidate) Descriptor() ([]byte, []int)
Deprecated: Use AllCandidate.ProtoReflect.Descriptor instead.
func (*AllCandidate) GetCandidate ¶
func (x *AllCandidate) GetCandidate() map[string]string
func (*AllCandidate) GetFreemonry ¶
func (x *AllCandidate) GetFreemonry() string
func (*AllCandidate) GetPercentage ¶
func (x *AllCandidate) GetPercentage() string
func (*AllCandidate) ProtoMessage ¶
func (*AllCandidate) ProtoMessage()
func (*AllCandidate) ProtoReflect ¶
func (x *AllCandidate) ProtoReflect() protoreflect.Message
func (*AllCandidate) Reset ¶
func (x *AllCandidate) Reset()
func (*AllCandidate) String ¶
func (x *AllCandidate) String() string
type BCStatusExplorer ¶
type BCStatusExplorer struct { // bolck height Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` //全网总资产 TotalMoney string `protobuf:"bytes,2,opt,name=total_money,json=totalMoney,proto3" json:"total_money,omitempty"` //全网冻结资产 FreeMonry string `protobuf:"bytes,3,opt,name=free_monry,json=freeMonry,proto3" json:"free_monry,omitempty"` //冻结百分比 Percentage string `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"` //节点数 Nodes int64 `protobuf:"varint,5,opt,name=nodes,proto3" json:"nodes,omitempty"` // contains filtered or unexported fields }
查看链的部分信息
func (*BCStatusExplorer) Descriptor
deprecated
func (*BCStatusExplorer) Descriptor() ([]byte, []int)
Deprecated: Use BCStatusExplorer.ProtoReflect.Descriptor instead.
func (*BCStatusExplorer) GetFreeMonry ¶
func (x *BCStatusExplorer) GetFreeMonry() string
func (*BCStatusExplorer) GetHeight ¶
func (x *BCStatusExplorer) GetHeight() int64
func (*BCStatusExplorer) GetNodes ¶
func (x *BCStatusExplorer) GetNodes() int64
func (*BCStatusExplorer) GetPercentage ¶
func (x *BCStatusExplorer) GetPercentage() string
func (*BCStatusExplorer) GetTotalMoney ¶
func (x *BCStatusExplorer) GetTotalMoney() string
func (*BCStatusExplorer) ProtoMessage ¶
func (*BCStatusExplorer) ProtoMessage()
func (*BCStatusExplorer) ProtoReflect ¶
func (x *BCStatusExplorer) ProtoReflect() protoreflect.Message
func (*BCStatusExplorer) Reset ¶
func (x *BCStatusExplorer) Reset()
func (*BCStatusExplorer) String ¶
func (x *BCStatusExplorer) String() string
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 BonusQueryReply ¶
type BonusQueryReply struct { // 分红数量 Bonus int64 `protobuf:"varint,1,opt,name=bonus,proto3" json:"bonus,omitempty"` // 分红信息提示 Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // tdpos共识提名候选人需要质押治理代币的最少量 TokenNeed string `protobuf:"bytes,3,opt,name=token_need,json=tokenNeed,proto3" json:"token_need,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
查询分红响应
func (*BonusQueryReply) Descriptor ¶
func (*BonusQueryReply) Descriptor() ([]byte, []int)
func (*BonusQueryReply) GetBonus ¶
func (m *BonusQueryReply) GetBonus() int64
func (*BonusQueryReply) GetInfo ¶
func (m *BonusQueryReply) GetInfo() string
func (*BonusQueryReply) GetTokenNeed ¶
func (m *BonusQueryReply) GetTokenNeed() string
func (*BonusQueryReply) ProtoMessage ¶
func (*BonusQueryReply) ProtoMessage()
func (*BonusQueryReply) Reset ¶
func (m *BonusQueryReply) Reset()
func (*BonusQueryReply) String ¶
func (m *BonusQueryReply) String() string
func (*BonusQueryReply) XXX_DiscardUnknown ¶
func (m *BonusQueryReply) XXX_DiscardUnknown()
func (*BonusQueryReply) XXX_Marshal ¶
func (m *BonusQueryReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BonusQueryReply) XXX_Merge ¶
func (m *BonusQueryReply) XXX_Merge(src proto.Message)
func (*BonusQueryReply) XXX_Size ¶
func (m *BonusQueryReply) XXX_Size() int
func (*BonusQueryReply) XXX_Unmarshal ¶
func (m *BonusQueryReply) XXX_Unmarshal(b []byte) error
type BonusRewardDiscount ¶
type BonusRewardDiscount struct { // 用户---提现数量 UserDiscount map[string]string `` /* 165-byte string literal not displayed */ // contains filtered or unexported fields }
分红奖励提现map
func (*BonusRewardDiscount) Descriptor
deprecated
func (*BonusRewardDiscount) Descriptor() ([]byte, []int)
Deprecated: Use BonusRewardDiscount.ProtoReflect.Descriptor instead.
func (*BonusRewardDiscount) GetUserDiscount ¶
func (x *BonusRewardDiscount) GetUserDiscount() map[string]string
func (*BonusRewardDiscount) ProtoMessage ¶
func (*BonusRewardDiscount) ProtoMessage()
func (*BonusRewardDiscount) ProtoReflect ¶
func (x *BonusRewardDiscount) ProtoReflect() protoreflect.Message
func (*BonusRewardDiscount) Reset ¶
func (x *BonusRewardDiscount) Reset()
func (*BonusRewardDiscount) String ¶
func (x *BonusRewardDiscount) String() string
type CacheVoteCandidate ¶
type CacheVoteCandidate struct { //分红比率 Ratio int64 `protobuf:"varint,1,opt,name=ratio,proto3" json:"ratio,omitempty"` //投票的人 VotingUser map[string]string `` /* 179-byte string literal not displayed */ //总票数 TotalVote string `protobuf:"bytes,3,opt,name=total_vote,json=totalVote,proto3" json:"total_vote,omitempty"` // contains filtered or unexported fields }
缓存表,产块分红读取这个
func (*CacheVoteCandidate) Descriptor
deprecated
func (*CacheVoteCandidate) Descriptor() ([]byte, []int)
Deprecated: Use CacheVoteCandidate.ProtoReflect.Descriptor instead.
func (*CacheVoteCandidate) GetRatio ¶
func (x *CacheVoteCandidate) GetRatio() int64
func (*CacheVoteCandidate) GetTotalVote ¶
func (x *CacheVoteCandidate) GetTotalVote() string
func (*CacheVoteCandidate) GetVotingUser ¶
func (x *CacheVoteCandidate) GetVotingUser() map[string]string
func (*CacheVoteCandidate) ProtoMessage ¶
func (*CacheVoteCandidate) ProtoMessage()
func (*CacheVoteCandidate) ProtoReflect ¶
func (x *CacheVoteCandidate) ProtoReflect() protoreflect.Message
func (*CacheVoteCandidate) Reset ¶
func (x *CacheVoteCandidate) Reset()
func (*CacheVoteCandidate) String ¶
func (x *CacheVoteCandidate) String() string
type CandidateRatio ¶
type CandidateRatio struct { //总票数 TatalVote string `protobuf:"bytes,1,opt,name=tatal_vote,json=tatalVote,proto3" json:"tatal_vote,omitempty"` //分红比率 Ratio int64 `protobuf:"varint,2,opt,name=Ratio,proto3" json:"Ratio,omitempty"` //投票的人 VotingUser map[string]string `` /* 179-byte string literal not displayed */ //是否是提名人(取消此提名人后数据不能删除,通过标志位修改) Is_Nominate bool `protobuf:"varint,4,opt,name=is_Nominate,json=isNominate,proto3" json:"is_Nominate,omitempty"` //我投票的人 MyVoting map[string]string `` /* 173-byte string literal not displayed */ //已使用的总票数 Used string `protobuf:"bytes,6,opt,name=used,proto3" json:"used,omitempty"` //被投票的总票数 BeVotedTotal string `protobuf:"bytes,7,opt,name=be_voted_total,json=beVotedTotal,proto3" json:"be_voted_total,omitempty"` //提名候选人记录 NominateDetails map[string]*NominateDetails `` /* 194-byte string literal not displayed */ // contains filtered or unexported fields }
投票提名记录表
func (*CandidateRatio) Descriptor
deprecated
func (*CandidateRatio) Descriptor() ([]byte, []int)
Deprecated: Use CandidateRatio.ProtoReflect.Descriptor instead.
func (*CandidateRatio) GetBeVotedTotal ¶
func (x *CandidateRatio) GetBeVotedTotal() string
func (*CandidateRatio) GetIs_Nominate ¶
func (x *CandidateRatio) GetIs_Nominate() bool
func (*CandidateRatio) GetMyVoting ¶
func (x *CandidateRatio) GetMyVoting() map[string]string
func (*CandidateRatio) GetNominateDetails ¶
func (x *CandidateRatio) GetNominateDetails() map[string]*NominateDetails
func (*CandidateRatio) GetRatio ¶
func (x *CandidateRatio) GetRatio() int64
func (*CandidateRatio) GetTatalVote ¶
func (x *CandidateRatio) GetTatalVote() string
func (*CandidateRatio) GetUsed ¶
func (x *CandidateRatio) GetUsed() string
func (*CandidateRatio) GetVotingUser ¶
func (x *CandidateRatio) GetVotingUser() map[string]string
func (*CandidateRatio) ProtoMessage ¶
func (*CandidateRatio) ProtoMessage()
func (*CandidateRatio) ProtoReflect ¶
func (x *CandidateRatio) ProtoReflect() protoreflect.Message
func (*CandidateRatio) Reset ¶
func (x *CandidateRatio) Reset()
func (*CandidateRatio) String ¶
func (x *CandidateRatio) String() string
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 FrozenAssetsTable ¶
type FrozenAssetsTable struct { Total string `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"` //repeated FrozenDetails frozendetail = 2; FrozenDetail map[string]*FrozenDetails `` /* 185-byte string literal not displayed */ //repeated FrozenDetails thawdetail = 3; ThawDetail map[string]*FrozenDetails `` /* 179-byte string literal not displayed */ Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
冻结资产记录表
func (*FrozenAssetsTable) Descriptor
deprecated
func (*FrozenAssetsTable) Descriptor() ([]byte, []int)
Deprecated: Use FrozenAssetsTable.ProtoReflect.Descriptor instead.
func (*FrozenAssetsTable) GetFrozenDetail ¶
func (x *FrozenAssetsTable) GetFrozenDetail() map[string]*FrozenDetails
func (*FrozenAssetsTable) GetThawDetail ¶
func (x *FrozenAssetsTable) GetThawDetail() map[string]*FrozenDetails
func (*FrozenAssetsTable) GetTimestamp ¶
func (x *FrozenAssetsTable) GetTimestamp() int64
func (*FrozenAssetsTable) GetTotal ¶
func (x *FrozenAssetsTable) GetTotal() string
func (*FrozenAssetsTable) ProtoMessage ¶
func (*FrozenAssetsTable) ProtoMessage()
func (*FrozenAssetsTable) ProtoReflect ¶
func (x *FrozenAssetsTable) ProtoReflect() protoreflect.Message
func (*FrozenAssetsTable) Reset ¶
func (x *FrozenAssetsTable) Reset()
func (*FrozenAssetsTable) String ¶
func (x *FrozenAssetsTable) String() string
type FrozenDetails ¶
type FrozenDetails struct { // string txid = 1; Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*FrozenDetails) Descriptor
deprecated
func (*FrozenDetails) Descriptor() ([]byte, []int)
Deprecated: Use FrozenDetails.ProtoReflect.Descriptor instead.
func (*FrozenDetails) GetAmount ¶
func (x *FrozenDetails) GetAmount() string
func (*FrozenDetails) GetHeight ¶
func (x *FrozenDetails) GetHeight() int64
func (*FrozenDetails) GetTimestamp ¶
func (x *FrozenDetails) GetTimestamp() int64
func (*FrozenDetails) ProtoMessage ¶
func (*FrozenDetails) ProtoMessage()
func (*FrozenDetails) ProtoReflect ¶
func (x *FrozenDetails) ProtoReflect() protoreflect.Message
func (*FrozenDetails) Reset ¶
func (x *FrozenDetails) Reset()
func (*FrozenDetails) String ¶
func (x *FrozenDetails) String() string
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 */ // contains filtered or unexported fields }
GovernTokenBalance
func (*GovernTokenBalance) Descriptor
deprecated
func (*GovernTokenBalance) Descriptor() ([]byte, []int)
Deprecated: Use GovernTokenBalance.ProtoReflect.Descriptor instead.
func (*GovernTokenBalance) GetAvailableBalanceForProposal ¶
func (x *GovernTokenBalance) GetAvailableBalanceForProposal() string
func (*GovernTokenBalance) GetAvailableBalanceForTdpos ¶
func (x *GovernTokenBalance) GetAvailableBalanceForTdpos() string
func (*GovernTokenBalance) GetLockedBalanceForProposal ¶
func (x *GovernTokenBalance) GetLockedBalanceForProposal() string
func (*GovernTokenBalance) GetLockedBalanceForTdpos ¶
func (x *GovernTokenBalance) GetLockedBalanceForTdpos() string
func (*GovernTokenBalance) GetTotalBalance ¶
func (x *GovernTokenBalance) GetTotalBalance() string
func (*GovernTokenBalance) ProtoMessage ¶
func (*GovernTokenBalance) ProtoMessage()
func (*GovernTokenBalance) ProtoReflect ¶
func (x *GovernTokenBalance) ProtoReflect() protoreflect.Message
func (*GovernTokenBalance) Reset ¶
func (x *GovernTokenBalance) Reset()
func (*GovernTokenBalance) String ¶
func (x *GovernTokenBalance) String() string
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 NodeDetail ¶
type NodeDetail struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` //string address = 4; // contains filtered or unexported fields }
func (*NodeDetail) Descriptor
deprecated
func (*NodeDetail) Descriptor() ([]byte, []int)
Deprecated: Use NodeDetail.ProtoReflect.Descriptor instead.
func (*NodeDetail) GetAddress ¶
func (x *NodeDetail) GetAddress() string
func (*NodeDetail) GetAmount ¶
func (x *NodeDetail) GetAmount() string
func (*NodeDetail) GetHeight ¶
func (x *NodeDetail) GetHeight() int64
func (*NodeDetail) ProtoMessage ¶
func (*NodeDetail) ProtoMessage()
func (*NodeDetail) ProtoReflect ¶
func (x *NodeDetail) ProtoReflect() protoreflect.Message
func (*NodeDetail) Reset ¶
func (x *NodeDetail) Reset()
func (*NodeDetail) String ¶
func (x *NodeDetail) String() string
type NodeDetails ¶
type NodeDetails struct { NodeDetail []*NodeDetail `protobuf:"bytes,1,rep,name=node_detail,json=nodeDetail,proto3" json:"node_detail,omitempty"` // contains filtered or unexported fields }
func (*NodeDetails) Descriptor
deprecated
func (*NodeDetails) Descriptor() ([]byte, []int)
Deprecated: Use NodeDetails.ProtoReflect.Descriptor instead.
func (*NodeDetails) GetNodeDetail ¶
func (x *NodeDetails) GetNodeDetail() []*NodeDetail
func (*NodeDetails) ProtoMessage ¶
func (*NodeDetails) ProtoMessage()
func (*NodeDetails) ProtoReflect ¶
func (x *NodeDetails) ProtoReflect() protoreflect.Message
func (*NodeDetails) Reset ¶
func (x *NodeDetails) Reset()
func (*NodeDetails) String ¶
func (x *NodeDetails) String() string
type NodeTable ¶
type NodeTable struct { NodeDetails map[int64]*NodeDetails `` /* 183-byte string literal not displayed */ // contains filtered or unexported fields }
节点待解冻的信息
func (*NodeTable) Descriptor
deprecated
func (*NodeTable) GetNodeDetails ¶
func (x *NodeTable) GetNodeDetails() map[int64]*NodeDetails
func (*NodeTable) ProtoMessage ¶
func (*NodeTable) ProtoMessage()
func (*NodeTable) ProtoReflect ¶
func (x *NodeTable) ProtoReflect() protoreflect.Message
type NominateDetails ¶
type NominateDetails struct { //抵押的资产 Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` //是否取消提名 Isnominate bool `protobuf:"varint,2,opt,name=isnominate,proto3" json:"isnominate,omitempty"` // contains filtered or unexported fields }
func (*NominateDetails) Descriptor
deprecated
func (*NominateDetails) Descriptor() ([]byte, []int)
Deprecated: Use NominateDetails.ProtoReflect.Descriptor instead.
func (*NominateDetails) GetAmount ¶
func (x *NominateDetails) GetAmount() string
func (*NominateDetails) GetIsnominate ¶
func (x *NominateDetails) GetIsnominate() bool
func (*NominateDetails) ProtoMessage ¶
func (*NominateDetails) ProtoMessage()
func (*NominateDetails) ProtoReflect ¶
func (x *NominateDetails) ProtoReflect() protoreflect.Message
func (*NominateDetails) Reset ¶
func (x *NominateDetails) Reset()
func (*NominateDetails) String ¶
func (x *NominateDetails) String() string
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 PledgeVotingResponse ¶
type PledgeVotingResponse struct { FrozenAssetsTable *FrozenAssetsTable `protobuf:"bytes,1,opt,name=frozen_assets_table,json=frozenAssetsTable,proto3" json:"frozen_assets_table,omitempty"` VoteDetailsStatus []*VoteDetailsStatus `protobuf:"bytes,2,rep,name=vote_details_status,json=voteDetailsStatus,proto3" json:"vote_details_status,omitempty"` //投票了多少节点 MyVote int64 `protobuf:"varint,3,opt,name=my_vote,json=myVote,proto3" json:"my_vote,omitempty"` //全网冻结总量 Freezetotal string `protobuf:"bytes,4,opt,name=freezetotal,proto3" json:"freezetotal,omitempty"` //治理代币总量 TotalAmount string `protobuf:"bytes,5,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` //消耗总量 UsedAmount string `protobuf:"bytes,6,opt,name=used_amount,json=usedAmount,proto3" json:"used_amount,omitempty"` //冻结中 FreezeAmount string `protobuf:"bytes,7,opt,name=freeze_amount,json=freezeAmount,proto3" json:"freeze_amount,omitempty"` // contains filtered or unexported fields }
func (*PledgeVotingResponse) Descriptor
deprecated
func (*PledgeVotingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PledgeVotingResponse.ProtoReflect.Descriptor instead.
func (*PledgeVotingResponse) GetFreezeAmount ¶
func (x *PledgeVotingResponse) GetFreezeAmount() string
func (*PledgeVotingResponse) GetFreezetotal ¶
func (x *PledgeVotingResponse) GetFreezetotal() string
func (*PledgeVotingResponse) GetFrozenAssetsTable ¶
func (x *PledgeVotingResponse) GetFrozenAssetsTable() *FrozenAssetsTable
func (*PledgeVotingResponse) GetMyVote ¶
func (x *PledgeVotingResponse) GetMyVote() int64
func (*PledgeVotingResponse) GetTotalAmount ¶
func (x *PledgeVotingResponse) GetTotalAmount() string
func (*PledgeVotingResponse) GetUsedAmount ¶
func (x *PledgeVotingResponse) GetUsedAmount() string
func (*PledgeVotingResponse) GetVoteDetailsStatus ¶
func (x *PledgeVotingResponse) GetVoteDetailsStatus() []*VoteDetailsStatus
func (*PledgeVotingResponse) ProtoMessage ¶
func (*PledgeVotingResponse) ProtoMessage()
func (*PledgeVotingResponse) ProtoReflect ¶
func (x *PledgeVotingResponse) ProtoReflect() protoreflect.Message
func (*PledgeVotingResponse) Reset ¶
func (x *PledgeVotingResponse) Reset()
func (*PledgeVotingResponse) String ¶
func (x *PledgeVotingResponse) String() string
type Pool ¶
type Pool struct { // 每票奖励 BonusPerVote string `protobuf:"bytes,1,opt,name=BonusPerVote,proto3" json:"BonusPerVote,omitempty"` // 池子总票数 TotalVotes string `protobuf:"bytes,2,opt,name=TotalVotes,proto3" json:"TotalVotes,omitempty"` // 投此分红奖励池子的投票者信息 Voters map[string]*Voter `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
分红奖励池结构
func (*Pool) Descriptor
deprecated
func (*Pool) GetBonusPerVote ¶
func (*Pool) GetTotalVotes ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) ProtoReflect ¶
func (x *Pool) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
Proposal
func (*Proposal) Descriptor
deprecated
func (*Proposal) GetProposer ¶
func (*Proposal) GetStatus ¶
func (x *Proposal) GetStatus() ProposalStatus
func (*Proposal) GetTrigger ¶
func (x *Proposal) GetTrigger() *TriggerDesc
func (*Proposal) GetVoteAmount ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) ProtoReflect ¶
func (x *Proposal) ProtoReflect() protoreflect.Message
type ProposalRatio ¶
type ProposalRatio struct { UserRatio map[string]int64 `` /* 177-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ProposalRatio) Descriptor
deprecated
func (*ProposalRatio) Descriptor() ([]byte, []int)
Deprecated: Use ProposalRatio.ProtoReflect.Descriptor instead.
func (*ProposalRatio) GetUserRatio ¶
func (x *ProposalRatio) GetUserRatio() map[string]int64
func (*ProposalRatio) ProtoMessage ¶
func (*ProposalRatio) ProtoMessage()
func (*ProposalRatio) ProtoReflect ¶
func (x *ProposalRatio) ProtoReflect() protoreflect.Message
func (*ProposalRatio) Reset ¶
func (x *ProposalRatio) Reset()
func (*ProposalRatio) String ¶
func (x *ProposalRatio) String() string
type ProposalStatus ¶
type ProposalStatus int32
const ( ProposalStatus_VOTING ProposalStatus = 0 ProposalStatus_SUCCESS ProposalStatus = 1 ProposalStatus_FAILURE ProposalStatus = 2 ProposalStatus_CANCELED ProposalStatus = 3 )
func (ProposalStatus) Descriptor ¶
func (ProposalStatus) Descriptor() protoreflect.EnumDescriptor
func (ProposalStatus) Enum ¶
func (x ProposalStatus) Enum() *ProposalStatus
func (ProposalStatus) EnumDescriptor
deprecated
func (ProposalStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProposalStatus.Descriptor instead.
func (ProposalStatus) Number ¶
func (x ProposalStatus) Number() protoreflect.EnumNumber
func (ProposalStatus) String ¶
func (x ProposalStatus) String() string
func (ProposalStatus) Type ¶
func (ProposalStatus) Type() protoreflect.EnumType
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 TermTable ¶
type TermTable struct { //当前term Trem int64 `protobuf:"varint,1,opt,name=trem,proto3" json:"trem,omitempty"` //是否是新的一个周期 NewCycle bool `protobuf:"varint,2,opt,name=new_cycle,json=newCycle,proto3" json:"new_cycle,omitempty"` // contains filtered or unexported fields }
记录周期term表
func (*TermTable) Descriptor
deprecated
func (*TermTable) GetNewCycle ¶
func (*TermTable) ProtoMessage ¶
func (*TermTable) ProtoMessage()
func (*TermTable) ProtoReflect ¶
func (x *TermTable) ProtoReflect() protoreflect.Message
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 */ // contains filtered or unexported fields }
TriggerDesc
func (*TriggerDesc) Descriptor
deprecated
func (*TriggerDesc) Descriptor() ([]byte, []int)
Deprecated: Use TriggerDesc.ProtoReflect.Descriptor instead.
func (*TriggerDesc) GetArgs ¶
func (x *TriggerDesc) GetArgs() map[string][]byte
func (*TriggerDesc) GetHeight ¶
func (x *TriggerDesc) GetHeight() int64
func (*TriggerDesc) GetMethod ¶
func (x *TriggerDesc) GetMethod() string
func (*TriggerDesc) GetModule ¶
func (x *TriggerDesc) GetModule() string
func (*TriggerDesc) ProtoMessage ¶
func (*TriggerDesc) ProtoMessage()
func (*TriggerDesc) ProtoReflect ¶
func (x *TriggerDesc) ProtoReflect() protoreflect.Message
func (*TriggerDesc) Reset ¶
func (x *TriggerDesc) Reset()
func (*TriggerDesc) String ¶
func (x *TriggerDesc) String() string
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 VerificationInfo ¶
type VerificationInfo struct { //总票数 Total string `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"` //分成比 Ratio int32 `protobuf:"varint,2,opt,name=ratio,proto3" json:"ratio,omitempty"` //投票百分比 Percentage string `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"` //我的票数 MyTotal string `protobuf:"bytes,4,opt,name=my_total,json=myTotal,proto3" json:"my_total,omitempty"` // contains filtered or unexported fields }
func (*VerificationInfo) Descriptor
deprecated
func (*VerificationInfo) Descriptor() ([]byte, []int)
Deprecated: Use VerificationInfo.ProtoReflect.Descriptor instead.
func (*VerificationInfo) GetMyTotal ¶
func (x *VerificationInfo) GetMyTotal() string
func (*VerificationInfo) GetPercentage ¶
func (x *VerificationInfo) GetPercentage() string
func (*VerificationInfo) GetRatio ¶
func (x *VerificationInfo) GetRatio() int32
func (*VerificationInfo) GetTotal ¶
func (x *VerificationInfo) GetTotal() string
func (*VerificationInfo) ProtoMessage ¶
func (*VerificationInfo) ProtoMessage()
func (*VerificationInfo) ProtoReflect ¶
func (x *VerificationInfo) ProtoReflect() protoreflect.Message
func (*VerificationInfo) Reset ¶
func (x *VerificationInfo) Reset()
func (*VerificationInfo) String ¶
func (x *VerificationInfo) String() string
type VerificationTable ¶
type VerificationTable struct { //验证人 Verification map[string]*VerificationInfo `` /* 165-byte string literal not displayed */ //候选验证人 Candidate map[string]*VerificationInfo `` /* 159-byte string literal not displayed */ //验证人数量 Len int64 `protobuf:"varint,3,opt,name=len,proto3" json:"len,omitempty"` //候选人数量 LenCandidate int64 `protobuf:"varint,4,opt,name=len_candidate,json=lenCandidate,proto3" json:"len_candidate,omitempty"` //出块倒计时 TimeLeft int64 `protobuf:"varint,5,opt,name=time_left,json=timeLeft,proto3" json:"time_left,omitempty"` // contains filtered or unexported fields }
func (*VerificationTable) Descriptor
deprecated
func (*VerificationTable) Descriptor() ([]byte, []int)
Deprecated: Use VerificationTable.ProtoReflect.Descriptor instead.
func (*VerificationTable) GetCandidate ¶
func (x *VerificationTable) GetCandidate() map[string]*VerificationInfo
func (*VerificationTable) GetLen ¶
func (x *VerificationTable) GetLen() int64
func (*VerificationTable) GetLenCandidate ¶
func (x *VerificationTable) GetLenCandidate() int64
func (*VerificationTable) GetTimeLeft ¶
func (x *VerificationTable) GetTimeLeft() int64
func (*VerificationTable) GetVerification ¶
func (x *VerificationTable) GetVerification() map[string]*VerificationInfo
func (*VerificationTable) ProtoMessage ¶
func (*VerificationTable) ProtoMessage()
func (*VerificationTable) ProtoReflect ¶
func (x *VerificationTable) ProtoReflect() protoreflect.Message
func (*VerificationTable) Reset ¶
func (x *VerificationTable) Reset()
func (*VerificationTable) String ¶
func (x *VerificationTable) String() string
type VoteDetailsStatus ¶
type VoteDetailsStatus struct { Toaddr string `protobuf:"bytes,1,opt,name=toaddr,proto3" json:"toaddr,omitempty"` Ballots int64 `protobuf:"varint,2,opt,name=ballots,proto3" json:"ballots,omitempty"` Ratio int32 `protobuf:"varint,3,opt,name=ratio,proto3" json:"ratio,omitempty"` //当前候选人总票数 Totalballots string `protobuf:"bytes,4,opt,name=totalballots,proto3" json:"totalballots,omitempty"` // contains filtered or unexported fields }
func (*VoteDetailsStatus) Descriptor
deprecated
func (*VoteDetailsStatus) Descriptor() ([]byte, []int)
Deprecated: Use VoteDetailsStatus.ProtoReflect.Descriptor instead.
func (*VoteDetailsStatus) GetBallots ¶
func (x *VoteDetailsStatus) GetBallots() int64
func (*VoteDetailsStatus) GetRatio ¶
func (x *VoteDetailsStatus) GetRatio() int32
func (*VoteDetailsStatus) GetToaddr ¶
func (x *VoteDetailsStatus) GetToaddr() string
func (*VoteDetailsStatus) GetTotalballots ¶
func (x *VoteDetailsStatus) GetTotalballots() string
func (*VoteDetailsStatus) ProtoMessage ¶
func (*VoteDetailsStatus) ProtoMessage()
func (*VoteDetailsStatus) ProtoReflect ¶
func (x *VoteDetailsStatus) ProtoReflect() protoreflect.Message
func (*VoteDetailsStatus) Reset ¶
func (x *VoteDetailsStatus) Reset()
func (*VoteDetailsStatus) String ¶
func (x *VoteDetailsStatus) String() string
type Voter ¶
type Voter struct { // 票数 Amount string `protobuf:"bytes,1,opt,name=Amount,proto3" json:"Amount,omitempty"` // 债务 Debt string `protobuf:"bytes,2,opt,name=Debt,proto3" json:"Debt,omitempty"` // contains filtered or unexported fields }
投票者信息
func (*Voter) Descriptor
deprecated
func (*Voter) ProtoMessage ¶
func (*Voter) ProtoMessage()
func (*Voter) ProtoReflect ¶
func (x *Voter) ProtoReflect() protoreflect.Message
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