Documentation ¶
Index ¶
- Variables
- func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
- func RegisterNativeCodeServer(s grpc.ServiceRegistrar, srv NativeCodeServer)
- func RegisterP2PServiceServer(s grpc.ServiceRegistrar, srv P2PServiceServer)
- func RegisterSyscallServer(s grpc.ServiceRegistrar, srv SyscallServer)
- func RegisterXChainServer(s grpc.ServiceRegistrar, srv XChainServer)
- type AK2AccountRequest
- func (*AK2AccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AK2AccountRequest) GetAddress() string
- func (x *AK2AccountRequest) GetBcname() string
- func (*AK2AccountRequest) ProtoMessage()
- func (x *AK2AccountRequest) ProtoReflect() protoreflect.Message
- func (x *AK2AccountRequest) Reset()
- func (x *AK2AccountRequest) String() string
- type AK2AccountResponse
- func (*AK2AccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AK2AccountResponse) GetAccount() []string
- func (x *AK2AccountResponse) GetBcname() string
- func (*AK2AccountResponse) ProtoMessage()
- func (x *AK2AccountResponse) ProtoReflect() protoreflect.Message
- func (x *AK2AccountResponse) Reset()
- func (x *AK2AccountResponse) String() string
- type Acl
- func (*Acl) Descriptor() ([]byte, []int)deprecated
- func (x *Acl) GetAkSets() *AkSets
- func (x *Acl) GetAksWeight() map[string]float64
- func (x *Acl) GetPm() *PermissionModel
- func (*Acl) ProtoMessage()
- func (x *Acl) ProtoReflect() protoreflect.Message
- func (x *Acl) Reset()
- func (x *Acl) String() string
- type AclStatus
- func (*AclStatus) Descriptor() ([]byte, []int)deprecated
- func (x *AclStatus) GetAccountName() string
- func (x *AclStatus) GetAcl() *Acl
- func (x *AclStatus) GetBcname() string
- func (x *AclStatus) GetConfirmed() bool
- func (x *AclStatus) GetContractName() string
- func (x *AclStatus) GetMethodName() string
- func (*AclStatus) ProtoMessage()
- func (x *AclStatus) ProtoReflect() protoreflect.Message
- func (x *AclStatus) Reset()
- func (x *AclStatus) String() string
- type AkSet
- type AkSets
- type ArgPair
- type BalanceDetailInfo
- func (*BalanceDetailInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BalanceDetailInfo) GetBalance() string
- func (x *BalanceDetailInfo) GetIsFrozen() bool
- func (*BalanceDetailInfo) ProtoMessage()
- func (x *BalanceDetailInfo) ProtoReflect() protoreflect.Message
- func (x *BalanceDetailInfo) Reset()
- func (x *BalanceDetailInfo) String() string
- type BaseReq
- type BaseResp
- type Block
- func (*Block) Descriptor() ([]byte, []int)deprecated
- func (x *Block) GetBlockid() string
- func (x *Block) GetHeight() int64
- func (x *Block) GetInTrunk() bool
- func (x *Block) GetNextHash() string
- func (x *Block) GetPreHash() string
- func (x *Block) GetProposer() []byte
- func (x *Block) GetPubkey() []byte
- func (x *Block) GetSign() string
- func (x *Block) GetTimestamp() int64
- func (x *Block) GetTxCount() int32
- func (x *Block) GetTxids() []string
- func (*Block) ProtoMessage()
- func (x *Block) ProtoReflect() protoreflect.Message
- func (x *Block) Reset()
- func (x *Block) String() string
- type BlockFilter
- func (*BlockFilter) Descriptor() ([]byte, []int)deprecated
- func (x *BlockFilter) GetAuthRequire() string
- func (x *BlockFilter) GetBcName() string
- func (x *BlockFilter) GetContract() string
- func (x *BlockFilter) GetEventName() string
- func (x *BlockFilter) GetExcludeTx() bool
- func (x *BlockFilter) GetExcludeTxEvent() bool
- func (x *BlockFilter) GetFromAddr() string
- func (x *BlockFilter) GetInitiator() string
- func (x *BlockFilter) GetRange() *BlockRange
- func (x *BlockFilter) GetToAddr() string
- func (*BlockFilter) ProtoMessage()
- func (x *BlockFilter) ProtoReflect() protoreflect.Message
- func (x *BlockFilter) Reset()
- func (x *BlockFilter) String() string
- type BlockID
- func (*BlockID) Descriptor() ([]byte, []int)deprecated
- func (x *BlockID) GetBcname() string
- func (x *BlockID) GetBlockid() []byte
- func (x *BlockID) GetNeedContent() bool
- func (*BlockID) ProtoMessage()
- func (x *BlockID) ProtoReflect() protoreflect.Message
- func (x *BlockID) Reset()
- func (x *BlockID) String() string
- type BlockInfo
- type BlockRange
- type BlockStatus
- func (BlockStatus) Descriptor() protoreflect.EnumDescriptor
- func (x BlockStatus) Enum() *BlockStatus
- func (BlockStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x BlockStatus) Number() protoreflect.EnumNumber
- func (x BlockStatus) String() string
- func (BlockStatus) Type() protoreflect.EnumType
- type CallArgs
- func (*CallArgs) Descriptor() ([]byte, []int)deprecated
- func (x *CallArgs) GetArgs() []*ArgPair
- func (x *CallArgs) GetAuthRequire() []string
- func (x *CallArgs) GetCaller() string
- func (x *CallArgs) GetInitiator() string
- func (x *CallArgs) GetMethod() string
- func (x *CallArgs) GetTransferAmount() string
- func (*CallArgs) ProtoMessage()
- func (x *CallArgs) ProtoReflect() protoreflect.Message
- func (x *CallArgs) Reset()
- func (x *CallArgs) String() string
- type ChainStatus
- func (*ChainStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ChainStatus) GetBlock() *InternalBlock
- func (x *ChainStatus) GetBranchIds() []string
- func (x *ChainStatus) GetLedgerMeta() *LedgerMeta
- func (x *ChainStatus) GetUtxoMeta() *UtxoMeta
- func (*ChainStatus) ProtoMessage()
- func (x *ChainStatus) ProtoReflect() protoreflect.Message
- func (x *ChainStatus) Reset()
- func (x *ChainStatus) String() string
- type ConsensusStatus
- func (*ConsensusStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ConsensusStatus) GetConsensusName() string
- func (x *ConsensusStatus) GetStartHeight() string
- func (x *ConsensusStatus) GetValidatorsInfo() string
- func (x *ConsensusStatus) GetVersion() string
- func (*ConsensusStatus) ProtoMessage()
- func (x *ConsensusStatus) ProtoReflect() protoreflect.Message
- func (x *ConsensusStatus) Reset()
- func (x *ConsensusStatus) String() string
- type ContractCallRequest
- func (*ContractCallRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContractCallRequest) GetArgs() []*ArgPair
- func (x *ContractCallRequest) GetContract() string
- func (x *ContractCallRequest) GetHeader() *SyscallHeader
- func (x *ContractCallRequest) GetMethod() string
- func (x *ContractCallRequest) GetModule() string
- func (*ContractCallRequest) ProtoMessage()
- func (x *ContractCallRequest) ProtoReflect() protoreflect.Message
- func (x *ContractCallRequest) Reset()
- func (x *ContractCallRequest) String() string
- type ContractCallResponse
- func (*ContractCallResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractCallResponse) GetResponse() *Response
- func (*ContractCallResponse) ProtoMessage()
- func (x *ContractCallResponse) ProtoReflect() protoreflect.Message
- func (x *ContractCallResponse) Reset()
- func (x *ContractCallResponse) String() string
- type ContractEvent
- func (*ContractEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ContractEvent) GetBody() []byte
- func (x *ContractEvent) GetContract() string
- func (x *ContractEvent) GetName() string
- func (*ContractEvent) ProtoMessage()
- func (x *ContractEvent) ProtoReflect() protoreflect.Message
- func (x *ContractEvent) Reset()
- func (x *ContractEvent) String() string
- type ContractResponse
- func (*ContractResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ContractResponse) GetBody() []byte
- func (x *ContractResponse) GetMessage() string
- func (x *ContractResponse) GetStatus() int32
- func (*ContractResponse) ProtoMessage()
- func (x *ContractResponse) ProtoReflect() protoreflect.Message
- func (x *ContractResponse) Reset()
- func (x *ContractResponse) String() string
- type ContractStatData
- func (*ContractStatData) Descriptor() ([]byte, []int)deprecated
- func (x *ContractStatData) GetAccountCount() int64
- func (x *ContractStatData) GetContractCount() int64
- func (*ContractStatData) ProtoMessage()
- func (x *ContractStatData) ProtoReflect() protoreflect.Message
- func (x *ContractStatData) Reset()
- func (x *ContractStatData) String() string
- type ContractStatus
- func (*ContractStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ContractStatus) GetContractName() string
- func (x *ContractStatus) GetDesc() []byte
- func (x *ContractStatus) GetIsBanned() bool
- func (x *ContractStatus) GetRuntime() string
- func (x *ContractStatus) GetTimestamp() int64
- func (x *ContractStatus) GetTxid() string
- func (*ContractStatus) ProtoMessage()
- func (x *ContractStatus) ProtoReflect() protoreflect.Message
- func (x *ContractStatus) Reset()
- func (x *ContractStatus) String() string
- type CoreMessage
- func (*CoreMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CoreMessage) GetData() *CoreMessage_MessageData
- func (x *CoreMessage) GetHeader() *CoreMessage_MessageHeader
- func (*CoreMessage) ProtoMessage()
- func (x *CoreMessage) ProtoReflect() protoreflect.Message
- func (x *CoreMessage) Reset()
- func (x *CoreMessage) String() string
- type CoreMessage_ErrorType
- func (CoreMessage_ErrorType) Descriptor() protoreflect.EnumDescriptor
- func (x CoreMessage_ErrorType) Enum() *CoreMessage_ErrorType
- func (CoreMessage_ErrorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CoreMessage_ErrorType) Number() protoreflect.EnumNumber
- func (x CoreMessage_ErrorType) String() string
- func (CoreMessage_ErrorType) Type() protoreflect.EnumType
- type CoreMessage_MessageData
- func (*CoreMessage_MessageData) Descriptor() ([]byte, []int)deprecated
- func (x *CoreMessage_MessageData) GetMsgInfo() []byte
- func (*CoreMessage_MessageData) ProtoMessage()
- func (x *CoreMessage_MessageData) ProtoReflect() protoreflect.Message
- func (x *CoreMessage_MessageData) Reset()
- func (x *CoreMessage_MessageData) String() string
- type CoreMessage_MessageHeader
- func (*CoreMessage_MessageHeader) Descriptor() ([]byte, []int)deprecated
- func (x *CoreMessage_MessageHeader) GetBcname() string
- func (x *CoreMessage_MessageHeader) GetDataCheckSum() uint32
- func (x *CoreMessage_MessageHeader) GetEnableCompress() bool
- func (x *CoreMessage_MessageHeader) GetErrorType() CoreMessage_ErrorType
- func (x *CoreMessage_MessageHeader) GetFrom() string
- func (x *CoreMessage_MessageHeader) GetLogid() string
- func (x *CoreMessage_MessageHeader) GetType() CoreMessage_MessageType
- func (x *CoreMessage_MessageHeader) GetVersion() string
- func (*CoreMessage_MessageHeader) ProtoMessage()
- func (x *CoreMessage_MessageHeader) ProtoReflect() protoreflect.Message
- func (x *CoreMessage_MessageHeader) Reset()
- func (x *CoreMessage_MessageHeader) String() string
- type CoreMessage_MessageType
- func (CoreMessage_MessageType) Descriptor() protoreflect.EnumDescriptor
- func (x CoreMessage_MessageType) Enum() *CoreMessage_MessageType
- func (CoreMessage_MessageType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CoreMessage_MessageType) Number() protoreflect.EnumNumber
- func (x CoreMessage_MessageType) String() string
- func (CoreMessage_MessageType) Type() protoreflect.EnumType
- type CrossContractQueryRequest
- func (*CrossContractQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CrossContractQueryRequest) GetArgs() []*ArgPair
- func (x *CrossContractQueryRequest) GetHeader() *SyscallHeader
- func (x *CrossContractQueryRequest) GetUri() string
- func (*CrossContractQueryRequest) ProtoMessage()
- func (x *CrossContractQueryRequest) ProtoReflect() protoreflect.Message
- func (x *CrossContractQueryRequest) Reset()
- func (x *CrossContractQueryRequest) String() string
- type CrossContractQueryResponse
- func (*CrossContractQueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CrossContractQueryResponse) GetResponse() *Response
- func (*CrossContractQueryResponse) ProtoMessage()
- func (x *CrossContractQueryResponse) ProtoReflect() protoreflect.Message
- func (x *CrossContractQueryResponse) Reset()
- func (x *CrossContractQueryResponse) String() string
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetHeader() *SyscallHeader
- func (x *DeleteRequest) GetKey() []byte
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- type DeleteResponse
- type EmitEventRequest
- func (*EmitEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmitEventRequest) GetBody() []byte
- func (x *EmitEventRequest) GetHeader() *SyscallHeader
- func (x *EmitEventRequest) GetName() string
- func (*EmitEventRequest) ProtoMessage()
- func (x *EmitEventRequest) ProtoReflect() protoreflect.Message
- func (x *EmitEventRequest) Reset()
- func (x *EmitEventRequest) String() string
- type EmitEventResponse
- type Event
- type EventServiceClient
- type EventServiceServer
- type EventService_SubscribeClient
- type EventService_SubscribeServer
- type FilteredBlock
- func (*FilteredBlock) Descriptor() ([]byte, []int)deprecated
- func (x *FilteredBlock) GetBcname() string
- func (x *FilteredBlock) GetBlockHeight() int64
- func (x *FilteredBlock) GetBlockid() string
- func (x *FilteredBlock) GetTxs() []*FilteredTransaction
- func (*FilteredBlock) ProtoMessage()
- func (x *FilteredBlock) ProtoReflect() protoreflect.Message
- func (x *FilteredBlock) Reset()
- func (x *FilteredBlock) String() string
- type FilteredTransaction
- func (*FilteredTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *FilteredTransaction) GetEvents() []*ContractEvent
- func (x *FilteredTransaction) GetTxid() string
- func (*FilteredTransaction) ProtoMessage()
- func (x *FilteredTransaction) ProtoReflect() protoreflect.Message
- func (x *FilteredTransaction) Reset()
- func (x *FilteredTransaction) String() string
- type GasPrice
- func (*GasPrice) Descriptor() ([]byte, []int)deprecated
- func (x *GasPrice) GetCpuRate() int64
- func (x *GasPrice) GetDiskRate() int64
- func (x *GasPrice) GetMemRate() int64
- func (x *GasPrice) GetXfeeRate() int64
- func (*GasPrice) ProtoMessage()
- func (x *GasPrice) ProtoReflect() protoreflect.Message
- func (x *GasPrice) Reset()
- func (x *GasPrice) String() string
- type GetAccountAddressesRequest
- func (*GetAccountAddressesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountAddressesRequest) GetAccount() string
- func (x *GetAccountAddressesRequest) GetHeader() *SyscallHeader
- func (*GetAccountAddressesRequest) ProtoMessage()
- func (x *GetAccountAddressesRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountAddressesRequest) Reset()
- func (x *GetAccountAddressesRequest) String() string
- type GetAccountAddressesResponse
- func (*GetAccountAddressesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountAddressesResponse) GetAddresses() []string
- func (*GetAccountAddressesResponse) ProtoMessage()
- func (x *GetAccountAddressesResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountAddressesResponse) Reset()
- func (x *GetAccountAddressesResponse) String() string
- type GetBlockHeaderRequest
- func (*GetBlockHeaderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHeaderRequest) GetBcname() string
- func (x *GetBlockHeaderRequest) GetHeight() int64
- func (x *GetBlockHeaderRequest) GetSize() int64
- func (*GetBlockHeaderRequest) ProtoMessage()
- func (x *GetBlockHeaderRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockHeaderRequest) Reset()
- func (x *GetBlockHeaderRequest) String() string
- type GetBlockHeaderResponse
- func (*GetBlockHeaderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHeaderResponse) GetBlocks() []*InternalBlock
- func (*GetBlockHeaderResponse) ProtoMessage()
- func (x *GetBlockHeaderResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockHeaderResponse) Reset()
- func (x *GetBlockHeaderResponse) String() string
- type GetBlockTxsRequest
- func (*GetBlockTxsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockTxsRequest) GetBcname() string
- func (x *GetBlockTxsRequest) GetBlockid() []byte
- func (x *GetBlockTxsRequest) GetTxs() []int32
- func (*GetBlockTxsRequest) ProtoMessage()
- func (x *GetBlockTxsRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockTxsRequest) Reset()
- func (x *GetBlockTxsRequest) String() string
- type GetBlockTxsResponse
- func (*GetBlockTxsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockTxsResponse) GetTxs() []*Transaction
- func (*GetBlockTxsResponse) ProtoMessage()
- func (x *GetBlockTxsResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockTxsResponse) Reset()
- func (x *GetBlockTxsResponse) String() string
- type GetCallArgsRequest
- func (*GetCallArgsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCallArgsRequest) GetHeader() *SyscallHeader
- func (*GetCallArgsRequest) ProtoMessage()
- func (x *GetCallArgsRequest) ProtoReflect() protoreflect.Message
- func (x *GetCallArgsRequest) Reset()
- func (x *GetCallArgsRequest) String() string
- type GetRequest
- type GetResponse
- 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 HDInfo
- type InternalBlock
- func (*InternalBlock) Descriptor() ([]byte, []int)deprecated
- func (x *InternalBlock) GetBlockid() []byte
- func (x *InternalBlock) GetCurBlockNum() int64
- func (x *InternalBlock) GetCurTerm() int64
- func (x *InternalBlock) GetFailedTxs() map[string]string
- func (x *InternalBlock) GetHeight() int64
- func (x *InternalBlock) GetInTrunk() bool
- func (x *InternalBlock) GetJustify() *QuorumCert
- func (x *InternalBlock) GetMerkleRoot() []byte
- func (x *InternalBlock) GetMerkleTree() [][]byte
- func (x *InternalBlock) GetNextHash() []byte
- func (x *InternalBlock) GetNonce() int32
- func (x *InternalBlock) GetPreHash() []byte
- func (x *InternalBlock) GetProposer() []byte
- func (x *InternalBlock) GetPubkey() []byte
- func (x *InternalBlock) GetSign() []byte
- func (x *InternalBlock) GetTargetBits() int32
- func (x *InternalBlock) GetTimestamp() int64
- func (x *InternalBlock) GetTransactions() []*Transaction
- func (x *InternalBlock) GetTxCount() int32
- func (x *InternalBlock) GetVersion() int32
- func (*InternalBlock) ProtoMessage()
- func (x *InternalBlock) ProtoReflect() protoreflect.Message
- func (x *InternalBlock) Reset()
- func (x *InternalBlock) String() string
- type InvokeRequest
- func (*InvokeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeRequest) GetAmount() string
- func (x *InvokeRequest) GetArgs() map[string][]byte
- func (x *InvokeRequest) GetContractName() string
- func (x *InvokeRequest) GetMethodName() string
- func (x *InvokeRequest) GetModuleName() string
- func (x *InvokeRequest) GetResourceLimits() []*ResourceLimit
- func (*InvokeRequest) ProtoMessage()
- func (x *InvokeRequest) ProtoReflect() protoreflect.Message
- func (x *InvokeRequest) Reset()
- func (x *InvokeRequest) String() string
- type InvokeResponse
- func (*InvokeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InvokeResponse) GetGasUsed() int64
- func (x *InvokeResponse) GetInputs() []*TxInputExt
- func (x *InvokeResponse) GetOutputs() []*TxOutputExt
- func (x *InvokeResponse) GetRequests() []*InvokeRequest
- func (x *InvokeResponse) GetResponse() [][]byte
- func (x *InvokeResponse) GetResponses() []*ContractResponse
- func (x *InvokeResponse) GetUtxoInputs() []*TxInput
- func (x *InvokeResponse) GetUtxoOutputs() []*TxOutput
- func (*InvokeResponse) ProtoMessage()
- func (x *InvokeResponse) ProtoReflect() protoreflect.Message
- func (x *InvokeResponse) Reset()
- func (x *InvokeResponse) String() string
- type IteratorItem
- func (*IteratorItem) Descriptor() ([]byte, []int)deprecated
- func (x *IteratorItem) GetKey() []byte
- func (x *IteratorItem) GetValue() []byte
- func (*IteratorItem) ProtoMessage()
- func (x *IteratorItem) ProtoReflect() protoreflect.Message
- func (x *IteratorItem) Reset()
- func (x *IteratorItem) String() string
- type IteratorRequest
- func (*IteratorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IteratorRequest) GetCap() int32
- func (x *IteratorRequest) GetHeader() *SyscallHeader
- func (x *IteratorRequest) GetLimit() []byte
- func (x *IteratorRequest) GetStart() []byte
- func (*IteratorRequest) ProtoMessage()
- func (x *IteratorRequest) ProtoReflect() protoreflect.Message
- func (x *IteratorRequest) Reset()
- func (x *IteratorRequest) String() string
- type IteratorResponse
- type LedgerMeta
- func (*LedgerMeta) Descriptor() ([]byte, []int)deprecated
- func (x *LedgerMeta) GetRootBlockid() []byte
- func (x *LedgerMeta) GetTipBlockid() []byte
- func (x *LedgerMeta) GetTrunkHeight() int64
- func (*LedgerMeta) ProtoMessage()
- func (x *LedgerMeta) ProtoReflect() protoreflect.Message
- func (x *LedgerMeta) Reset()
- func (x *LedgerMeta) String() string
- type ModifyBlock
- func (*ModifyBlock) Descriptor() ([]byte, []int)deprecated
- func (x *ModifyBlock) GetEffectiveHeight() int64
- func (x *ModifyBlock) GetEffectiveTxid() string
- func (x *ModifyBlock) GetMarked() bool
- func (x *ModifyBlock) GetPublicKey() string
- func (x *ModifyBlock) GetSign() string
- func (*ModifyBlock) ProtoMessage()
- func (x *ModifyBlock) ProtoReflect() protoreflect.Message
- func (x *ModifyBlock) Reset()
- func (x *ModifyBlock) String() string
- type NativeCallRequest
- type NativeCallResponse
- type NativeCodeClient
- type NativeCodeServer
- type P2PServiceClient
- type P2PServiceServer
- type P2PService_SendP2PMessageClient
- type P2PService_SendP2PMessageServer
- type PeerInfo
- func (*PeerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PeerInfo) GetAccount() string
- func (x *PeerInfo) GetAddress() string
- func (x *PeerInfo) GetId() string
- func (x *PeerInfo) GetPeer() []*PeerInfo
- func (*PeerInfo) ProtoMessage()
- func (x *PeerInfo) ProtoReflect() protoreflect.Message
- func (x *PeerInfo) Reset()
- func (x *PeerInfo) String() string
- type PermissionModel
- func (*PermissionModel) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionModel) GetAcceptValue() float64
- func (x *PermissionModel) GetRule() PermissionRule
- func (*PermissionModel) ProtoMessage()
- func (x *PermissionModel) ProtoReflect() protoreflect.Message
- func (x *PermissionModel) Reset()
- func (x *PermissionModel) String() string
- type PermissionRule
- func (PermissionRule) Descriptor() protoreflect.EnumDescriptor
- func (x PermissionRule) Enum() *PermissionRule
- func (PermissionRule) EnumDescriptor() ([]byte, []int)deprecated
- func (x PermissionRule) Number() protoreflect.EnumNumber
- func (x PermissionRule) String() string
- func (PermissionRule) Type() protoreflect.EnumType
- type PingRequest
- type PingResponse
- type PostLogRequest
- func (*PostLogRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostLogRequest) GetEntry() string
- func (x *PostLogRequest) GetHeader() *SyscallHeader
- func (*PostLogRequest) ProtoMessage()
- func (x *PostLogRequest) ProtoReflect() protoreflect.Message
- func (x *PostLogRequest) Reset()
- func (x *PostLogRequest) String() string
- type PostLogResponse
- type PreExecReq
- func (*PreExecReq) Descriptor() ([]byte, []int)deprecated
- func (x *PreExecReq) GetAuthRequire() []string
- func (x *PreExecReq) GetBcname() string
- func (x *PreExecReq) GetHeader() *ReqHeader
- func (x *PreExecReq) GetInitiator() string
- func (x *PreExecReq) GetRequests() []*InvokeRequest
- func (*PreExecReq) ProtoMessage()
- func (x *PreExecReq) ProtoReflect() protoreflect.Message
- func (x *PreExecReq) Reset()
- func (x *PreExecReq) String() string
- type PreExecResp
- func (*PreExecResp) Descriptor() ([]byte, []int)deprecated
- func (x *PreExecResp) GetBcname() string
- func (x *PreExecResp) GetHeader() *RespHeader
- func (x *PreExecResp) GetResponse() *InvokeResponse
- func (*PreExecResp) ProtoMessage()
- func (x *PreExecResp) ProtoReflect() protoreflect.Message
- func (x *PreExecResp) Reset()
- func (x *PreExecResp) 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 ProposalMsg
- func (*ProposalMsg) Descriptor() ([]byte, []int)deprecated
- func (x *ProposalMsg) GetJustifyQC() []byte
- func (x *ProposalMsg) GetMsgDigest() []byte
- func (x *ProposalMsg) GetProposalId() []byte
- func (x *ProposalMsg) GetProposalView() int64
- func (x *ProposalMsg) GetSign() *QuorumCertSign
- func (x *ProposalMsg) GetTimestamp() int64
- func (*ProposalMsg) ProtoMessage()
- func (x *ProposalMsg) ProtoReflect() protoreflect.Message
- func (x *ProposalMsg) Reset()
- func (x *ProposalMsg) String() string
- 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 PutRequest
- func (*PutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutRequest) GetHeader() *SyscallHeader
- func (x *PutRequest) GetKey() []byte
- func (x *PutRequest) GetValue() []byte
- func (*PutRequest) ProtoMessage()
- func (x *PutRequest) ProtoReflect() protoreflect.Message
- func (x *PutRequest) Reset()
- func (x *PutRequest) String() string
- type PutResponse
- type QCSignInfos
- type QCState
- type QueryBlockReq
- func (*QueryBlockReq) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBlockReq) GetBcname() string
- func (x *QueryBlockReq) GetBlockId() []byte
- func (x *QueryBlockReq) GetHeader() *ReqHeader
- func (x *QueryBlockReq) GetNeedContent() bool
- func (*QueryBlockReq) ProtoMessage()
- func (x *QueryBlockReq) ProtoReflect() protoreflect.Message
- func (x *QueryBlockReq) Reset()
- func (x *QueryBlockReq) String() string
- type QueryBlockRequest
- func (*QueryBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBlockRequest) GetBlockid() string
- func (x *QueryBlockRequest) GetHeader() *SyscallHeader
- func (*QueryBlockRequest) ProtoMessage()
- func (x *QueryBlockRequest) ProtoReflect() protoreflect.Message
- func (x *QueryBlockRequest) Reset()
- func (x *QueryBlockRequest) String() string
- type QueryBlockResp
- func (*QueryBlockResp) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBlockResp) GetBlock() *InternalBlock
- func (x *QueryBlockResp) GetHeader() *RespHeader
- func (x *QueryBlockResp) GetStatus() BlockStatus
- func (*QueryBlockResp) ProtoMessage()
- func (x *QueryBlockResp) ProtoReflect() protoreflect.Message
- func (x *QueryBlockResp) Reset()
- func (x *QueryBlockResp) String() string
- type QueryBlockResponse
- func (*QueryBlockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBlockResponse) GetBlock() *Block
- func (*QueryBlockResponse) ProtoMessage()
- func (x *QueryBlockResponse) ProtoReflect() protoreflect.Message
- func (x *QueryBlockResponse) Reset()
- func (x *QueryBlockResponse) String() string
- type QueryChainStatusReq
- func (*QueryChainStatusReq) Descriptor() ([]byte, []int)deprecated
- func (x *QueryChainStatusReq) GetBcname() string
- func (x *QueryChainStatusReq) GetHeader() *ReqHeader
- func (x *QueryChainStatusReq) GetNeedBranchBlock() bool
- func (*QueryChainStatusReq) ProtoMessage()
- func (x *QueryChainStatusReq) ProtoReflect() protoreflect.Message
- func (x *QueryChainStatusReq) Reset()
- func (x *QueryChainStatusReq) String() string
- type QueryChainStatusResp
- func (*QueryChainStatusResp) Descriptor() ([]byte, []int)deprecated
- func (x *QueryChainStatusResp) GetBcname() string
- func (x *QueryChainStatusResp) GetBranchBlockId() []string
- func (x *QueryChainStatusResp) GetHeader() *RespHeader
- func (x *QueryChainStatusResp) GetLedgerMeta() *LedgerMeta
- func (x *QueryChainStatusResp) GetUtxoMeta() *UtxoMeta
- func (*QueryChainStatusResp) ProtoMessage()
- func (x *QueryChainStatusResp) ProtoReflect() protoreflect.Message
- func (x *QueryChainStatusResp) Reset()
- func (x *QueryChainStatusResp) String() string
- type QueryTxReq
- func (*QueryTxReq) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTxReq) GetBcname() string
- func (x *QueryTxReq) GetHeader() *ReqHeader
- func (x *QueryTxReq) GetTxid() []byte
- func (*QueryTxReq) ProtoMessage()
- func (x *QueryTxReq) ProtoReflect() protoreflect.Message
- func (x *QueryTxReq) Reset()
- func (x *QueryTxReq) String() string
- type QueryTxRequest
- func (*QueryTxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTxRequest) GetHeader() *SyscallHeader
- func (x *QueryTxRequest) GetTxid() string
- func (*QueryTxRequest) ProtoMessage()
- func (x *QueryTxRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTxRequest) Reset()
- func (x *QueryTxRequest) String() string
- type QueryTxResp
- func (*QueryTxResp) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTxResp) GetDistance() int64
- func (x *QueryTxResp) GetHeader() *RespHeader
- func (x *QueryTxResp) GetStatus() TransactionStatus
- func (x *QueryTxResp) GetTx() *Transaction
- func (*QueryTxResp) ProtoMessage()
- func (x *QueryTxResp) ProtoReflect() protoreflect.Message
- func (x *QueryTxResp) Reset()
- func (x *QueryTxResp) String() string
- type QueryTxResponse
- type QuorumCert
- func (*QuorumCert) Descriptor() ([]byte, []int)deprecated
- func (x *QuorumCert) GetProposalId() []byte
- func (x *QuorumCert) GetProposalMsg() []byte
- func (x *QuorumCert) GetSignInfos() *QCSignInfos
- func (x *QuorumCert) GetType() QCState
- func (x *QuorumCert) GetViewNumber() int64
- func (*QuorumCert) ProtoMessage()
- func (x *QuorumCert) ProtoReflect() protoreflect.Message
- func (x *QuorumCert) Reset()
- func (x *QuorumCert) String() string
- type QuorumCertSign
- func (*QuorumCertSign) Descriptor() ([]byte, []int)deprecated
- func (x *QuorumCertSign) GetAddress() string
- func (x *QuorumCertSign) GetPublicKey() string
- func (x *QuorumCertSign) GetSign() []byte
- func (*QuorumCertSign) ProtoMessage()
- func (x *QuorumCertSign) ProtoReflect() protoreflect.Message
- func (x *QuorumCertSign) Reset()
- func (x *QuorumCertSign) String() string
- type ReqHeader
- type ResourceLimit
- func (*ResourceLimit) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceLimit) GetLimit() int64
- func (x *ResourceLimit) GetType() ResourceType
- func (*ResourceLimit) ProtoMessage()
- func (x *ResourceLimit) ProtoReflect() protoreflect.Message
- func (x *ResourceLimit) Reset()
- func (x *ResourceLimit) String() string
- type ResourceType
- func (ResourceType) Descriptor() protoreflect.EnumDescriptor
- func (x ResourceType) Enum() *ResourceType
- func (ResourceType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResourceType) Number() protoreflect.EnumNumber
- func (x ResourceType) String() string
- func (ResourceType) Type() protoreflect.EnumType
- type RespHeader
- func (*RespHeader) Descriptor() ([]byte, []int)deprecated
- func (x *RespHeader) GetErrCode() int64
- func (x *RespHeader) GetErrMsg() string
- func (x *RespHeader) GetLogId() string
- func (x *RespHeader) GetTraceId() string
- func (*RespHeader) ProtoMessage()
- func (x *RespHeader) ProtoReflect() protoreflect.Message
- func (x *RespHeader) Reset()
- func (x *RespHeader) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetBody() []byte
- func (x *Response) GetMessage() string
- func (x *Response) GetStatus() int32
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type SelectUtxoReq
- func (*SelectUtxoReq) Descriptor() ([]byte, []int)deprecated
- func (x *SelectUtxoReq) GetAddress() string
- func (x *SelectUtxoReq) GetBcname() string
- func (x *SelectUtxoReq) GetHeader() *ReqHeader
- func (x *SelectUtxoReq) GetNeedLock() bool
- func (x *SelectUtxoReq) GetTotalNeed() string
- func (*SelectUtxoReq) ProtoMessage()
- func (x *SelectUtxoReq) ProtoReflect() protoreflect.Message
- func (x *SelectUtxoReq) Reset()
- func (x *SelectUtxoReq) String() string
- type SelectUtxoResp
- func (*SelectUtxoResp) Descriptor() ([]byte, []int)deprecated
- func (x *SelectUtxoResp) GetHeader() *RespHeader
- func (x *SelectUtxoResp) GetTotalAmount() string
- func (x *SelectUtxoResp) GetUtxoList() []*Utxo
- func (*SelectUtxoResp) ProtoMessage()
- func (x *SelectUtxoResp) ProtoReflect() protoreflect.Message
- func (x *SelectUtxoResp) Reset()
- func (x *SelectUtxoResp) String() string
- type SetOutputRequest
- func (*SetOutputRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetOutputRequest) GetHeader() *SyscallHeader
- func (x *SetOutputRequest) GetResponse() *Response
- func (*SetOutputRequest) ProtoMessage()
- func (x *SetOutputRequest) ProtoReflect() protoreflect.Message
- func (x *SetOutputRequest) Reset()
- func (x *SetOutputRequest) String() string
- type SetOutputResponse
- type SignInfo
- func (*SignInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SignInfo) GetAddress() string
- func (x *SignInfo) GetPublicKey() string
- func (x *SignInfo) GetSign() []byte
- func (*SignInfo) ProtoMessage()
- func (x *SignInfo) ProtoReflect() protoreflect.Message
- func (x *SignInfo) Reset()
- func (x *SignInfo) String() string
- type SignatureInfo
- func (*SignatureInfo) Descriptor() ([]byte, []int)deprecated
- func (x *SignatureInfo) GetPublicKey() string
- func (x *SignatureInfo) GetSign() []byte
- func (*SignatureInfo) ProtoMessage()
- func (x *SignatureInfo) ProtoReflect() protoreflect.Message
- func (x *SignatureInfo) Reset()
- func (x *SignatureInfo) String() string
- type SubmitTxReq
- func (*SubmitTxReq) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitTxReq) GetBcname() string
- func (x *SubmitTxReq) GetHeader() *ReqHeader
- func (x *SubmitTxReq) GetTx() *Transaction
- func (x *SubmitTxReq) GetTxid() []byte
- func (*SubmitTxReq) ProtoMessage()
- func (x *SubmitTxReq) ProtoReflect() protoreflect.Message
- func (x *SubmitTxReq) Reset()
- func (x *SubmitTxReq) String() string
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeRequest) GetFilter() []byte
- func (x *SubscribeRequest) GetType() SubscribeType
- func (*SubscribeRequest) ProtoMessage()
- func (x *SubscribeRequest) ProtoReflect() protoreflect.Message
- func (x *SubscribeRequest) Reset()
- func (x *SubscribeRequest) String() string
- type SubscribeType
- func (SubscribeType) Descriptor() protoreflect.EnumDescriptor
- func (x SubscribeType) Enum() *SubscribeType
- func (SubscribeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SubscribeType) Number() protoreflect.EnumNumber
- func (x SubscribeType) String() string
- func (SubscribeType) Type() protoreflect.EnumType
- type SyscallClient
- type SyscallHeader
- type SyscallServer
- type SystemStatus
- func (*SystemStatus) Descriptor() ([]byte, []int)deprecated
- func (x *SystemStatus) GetChainStatus() *ChainStatus
- func (x *SystemStatus) GetPeerUrls() []string
- func (*SystemStatus) ProtoMessage()
- func (x *SystemStatus) ProtoReflect() protoreflect.Message
- func (x *SystemStatus) Reset()
- func (x *SystemStatus) String() string
- type TipStatus
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetAuthRequire() []string
- func (x *Transaction) GetAuthRequireSigns() []*SignatureInfo
- func (x *Transaction) GetAutogen() bool
- func (x *Transaction) GetBlockid() []byte
- func (x *Transaction) GetCoinbase() bool
- func (x *Transaction) GetContractRequests() []*InvokeRequest
- func (x *Transaction) GetDesc() []byte
- func (x *Transaction) GetHDInfo() *HDInfo
- func (x *Transaction) GetInitiator() string
- func (x *Transaction) GetInitiatorSigns() []*SignatureInfo
- func (x *Transaction) GetModifyBlock() *ModifyBlock
- func (x *Transaction) GetNonce() string
- func (x *Transaction) GetReceivedTimestamp() int64
- func (x *Transaction) GetTimestamp() int64
- func (x *Transaction) GetTxInputs() []*TxInput
- func (x *Transaction) GetTxInputsExt() []*TxInputExt
- func (x *Transaction) GetTxOutputs() []*TxOutput
- func (x *Transaction) GetTxOutputsExt() []*TxOutputExt
- func (x *Transaction) GetTxid() []byte
- func (x *Transaction) GetVersion() int32
- func (x *Transaction) GetXuperSign() *XuperSignature
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionStatus
- func (TransactionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionStatus) Enum() *TransactionStatus
- func (TransactionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionStatus) Number() protoreflect.EnumNumber
- func (x TransactionStatus) String() string
- func (TransactionStatus) Type() protoreflect.EnumType
- type Transactions
- type TransferRequest
- func (*TransferRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransferRequest) GetAmount() string
- func (x *TransferRequest) GetFrom() string
- func (x *TransferRequest) GetHeader() *SyscallHeader
- func (x *TransferRequest) GetTo() string
- func (*TransferRequest) ProtoMessage()
- func (x *TransferRequest) ProtoReflect() protoreflect.Message
- func (x *TransferRequest) Reset()
- func (x *TransferRequest) String() string
- type TransferResponse
- 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 TxDataAccount
- func (*TxDataAccount) Descriptor() ([]byte, []int)deprecated
- func (x *TxDataAccount) GetAddress() string
- func (x *TxDataAccount) GetAmount() string
- func (x *TxDataAccount) GetFrozenHeight() int64
- func (*TxDataAccount) ProtoMessage()
- func (x *TxDataAccount) ProtoReflect() protoreflect.Message
- func (x *TxDataAccount) Reset()
- func (x *TxDataAccount) String() string
- type TxInfo
- func (*TxInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TxInfo) GetDistance() int64
- func (x *TxInfo) GetStatus() TransactionStatus
- func (x *TxInfo) GetTx() *Transaction
- func (*TxInfo) ProtoMessage()
- func (x *TxInfo) ProtoReflect() protoreflect.Message
- func (x *TxInfo) Reset()
- func (x *TxInfo) String() string
- type TxInput
- func (*TxInput) Descriptor() ([]byte, []int)deprecated
- func (x *TxInput) GetAmount() []byte
- func (x *TxInput) GetFromAddr() []byte
- func (x *TxInput) GetFrozenHeight() int64
- func (x *TxInput) GetRefOffset() int32
- func (x *TxInput) GetRefTxid() []byte
- func (*TxInput) ProtoMessage()
- func (x *TxInput) ProtoReflect() protoreflect.Message
- func (x *TxInput) Reset()
- func (x *TxInput) String() string
- type TxInputExt
- func (*TxInputExt) Descriptor() ([]byte, []int)deprecated
- func (x *TxInputExt) GetBucket() string
- func (x *TxInputExt) GetKey() []byte
- func (x *TxInputExt) GetRefOffset() int32
- func (x *TxInputExt) GetRefTxid() []byte
- func (*TxInputExt) ProtoMessage()
- func (x *TxInputExt) ProtoReflect() protoreflect.Message
- func (x *TxInputExt) Reset()
- func (x *TxInputExt) String() string
- type TxOutput
- func (*TxOutput) Descriptor() ([]byte, []int)deprecated
- func (x *TxOutput) GetAmount() []byte
- func (x *TxOutput) GetFrozenHeight() int64
- func (x *TxOutput) GetToAddr() []byte
- func (*TxOutput) ProtoMessage()
- func (x *TxOutput) ProtoReflect() protoreflect.Message
- func (x *TxOutput) Reset()
- func (x *TxOutput) String() string
- type TxOutputExt
- func (*TxOutputExt) Descriptor() ([]byte, []int)deprecated
- func (x *TxOutputExt) GetBucket() string
- func (x *TxOutputExt) GetKey() []byte
- func (x *TxOutputExt) GetValue() []byte
- func (*TxOutputExt) ProtoMessage()
- func (x *TxOutputExt) ProtoReflect() protoreflect.Message
- func (x *TxOutputExt) Reset()
- func (x *TxOutputExt) String() string
- type UnimplementedEventServiceServer
- type UnimplementedNativeCodeServer
- type UnimplementedP2PServiceServer
- type UnimplementedSyscallServer
- func (UnimplementedSyscallServer) ContractCall(context.Context, *ContractCallRequest) (*ContractCallResponse, error)
- func (UnimplementedSyscallServer) CrossContractQuery(context.Context, *CrossContractQueryRequest) (*CrossContractQueryResponse, error)
- func (UnimplementedSyscallServer) DeleteObject(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedSyscallServer) EmitEvent(context.Context, *EmitEventRequest) (*EmitEventResponse, error)
- func (UnimplementedSyscallServer) GetAccountAddresses(context.Context, *GetAccountAddressesRequest) (*GetAccountAddressesResponse, error)
- func (UnimplementedSyscallServer) GetCallArgs(context.Context, *GetCallArgsRequest) (*CallArgs, error)
- func (UnimplementedSyscallServer) GetObject(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedSyscallServer) NewIterator(context.Context, *IteratorRequest) (*IteratorResponse, error)
- func (UnimplementedSyscallServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
- func (UnimplementedSyscallServer) PostLog(context.Context, *PostLogRequest) (*PostLogResponse, error)
- func (UnimplementedSyscallServer) PutObject(context.Context, *PutRequest) (*PutResponse, error)
- func (UnimplementedSyscallServer) QueryBlock(context.Context, *QueryBlockRequest) (*QueryBlockResponse, error)
- func (UnimplementedSyscallServer) QueryTx(context.Context, *QueryTxRequest) (*QueryTxResponse, error)
- func (UnimplementedSyscallServer) SetOutput(context.Context, *SetOutputRequest) (*SetOutputResponse, error)
- func (UnimplementedSyscallServer) Transfer(context.Context, *TransferRequest) (*TransferResponse, error)
- type UnimplementedXChainServer
- func (UnimplementedXChainServer) CheckAlive(context.Context, *BaseReq) (*BaseResp, error)
- func (UnimplementedXChainServer) PreExec(context.Context, *PreExecReq) (*PreExecResp, error)
- func (UnimplementedXChainServer) QueryBlock(context.Context, *QueryBlockReq) (*QueryBlockResp, error)
- func (UnimplementedXChainServer) QueryChainStatus(context.Context, *QueryChainStatusReq) (*QueryChainStatusResp, error)
- func (UnimplementedXChainServer) QueryTx(context.Context, *QueryTxReq) (*QueryTxResp, error)
- func (UnimplementedXChainServer) SelectUtxo(context.Context, *SelectUtxoReq) (*SelectUtxoResp, error)
- func (UnimplementedXChainServer) SubmitTx(context.Context, *SubmitTxReq) (*BaseResp, error)
- type UnsafeEventServiceServer
- type UnsafeNativeCodeServer
- type UnsafeP2PServiceServer
- type UnsafeSyscallServer
- type UnsafeXChainServer
- type Utxo
- func (*Utxo) Descriptor() ([]byte, []int)deprecated
- func (x *Utxo) GetAmount() []byte
- func (x *Utxo) GetRefOffset() int32
- func (x *Utxo) GetRefTxid() []byte
- func (x *Utxo) GetToAddr() []byte
- func (x *Utxo) GetToPubkey() []byte
- func (*Utxo) ProtoMessage()
- func (x *Utxo) ProtoReflect() protoreflect.Message
- func (x *Utxo) Reset()
- func (x *Utxo) String() string
- type UtxoKey
- func (*UtxoKey) Descriptor() ([]byte, []int)deprecated
- func (x *UtxoKey) GetAmount() string
- func (x *UtxoKey) GetOffset() string
- func (x *UtxoKey) GetRefTxid() string
- func (*UtxoKey) ProtoMessage()
- func (x *UtxoKey) ProtoReflect() protoreflect.Message
- func (x *UtxoKey) Reset()
- func (x *UtxoKey) String() string
- type UtxoMeta
- func (*UtxoMeta) Descriptor() ([]byte, []int)deprecated
- func (x *UtxoMeta) GetAvgDelay() int64
- func (x *UtxoMeta) GetForbiddenContract() *InvokeRequest
- func (x *UtxoMeta) GetGasPrice() *GasPrice
- func (x *UtxoMeta) GetGroupChainContract() *InvokeRequest
- func (x *UtxoMeta) GetIrreversibleBlockHeight() int64
- func (x *UtxoMeta) GetIrreversibleSlideWindow() int64
- func (x *UtxoMeta) GetLatestBlockid() []byte
- func (x *UtxoMeta) GetLockKeyList() []string
- func (x *UtxoMeta) GetMaxBlockSize() int64
- func (x *UtxoMeta) GetNewAccountResourceAmount() int64
- func (x *UtxoMeta) GetReservedContracts() []*InvokeRequest
- func (x *UtxoMeta) GetUnconfirmTxAmount() int64
- func (x *UtxoMeta) GetUtxoTotal() string
- func (*UtxoMeta) ProtoMessage()
- func (x *UtxoMeta) ProtoReflect() protoreflect.Message
- func (x *UtxoMeta) Reset()
- func (x *UtxoMeta) String() string
- type UtxoOutput
- func (*UtxoOutput) Descriptor() ([]byte, []int)deprecated
- func (x *UtxoOutput) GetTotalSelected() string
- func (x *UtxoOutput) GetUtxoList() []*Utxo
- func (*UtxoOutput) ProtoMessage()
- func (x *UtxoOutput) ProtoReflect() protoreflect.Message
- func (x *UtxoOutput) Reset()
- func (x *UtxoOutput) String() string
- type UtxoRecord
- func (*UtxoRecord) Descriptor() ([]byte, []int)deprecated
- func (x *UtxoRecord) GetItem() []*UtxoKey
- func (x *UtxoRecord) GetUtxoAmount() string
- func (x *UtxoRecord) GetUtxoCount() string
- func (*UtxoRecord) ProtoMessage()
- func (x *UtxoRecord) ProtoReflect() protoreflect.Message
- func (x *UtxoRecord) Reset()
- func (x *UtxoRecord) String() string
- type UtxoRecordDetail
- func (*UtxoRecordDetail) Descriptor() ([]byte, []int)deprecated
- func (x *UtxoRecordDetail) GetFrozenUtxo() *UtxoRecord
- func (x *UtxoRecordDetail) GetLockedUtxo() *UtxoRecord
- func (x *UtxoRecordDetail) GetOpenUtxo() *UtxoRecord
- func (*UtxoRecordDetail) ProtoMessage()
- func (x *UtxoRecordDetail) ProtoReflect() protoreflect.Message
- func (x *UtxoRecordDetail) Reset()
- func (x *UtxoRecordDetail) String() string
- type VoteMsg
- func (*VoteMsg) Descriptor() ([]byte, []int)deprecated
- func (x *VoteMsg) GetLedgerCommitInfo() []byte
- func (x *VoteMsg) GetSignature() []*QuorumCertSign
- func (x *VoteMsg) GetVoteInfo() []byte
- func (*VoteMsg) ProtoMessage()
- func (x *VoteMsg) ProtoReflect() protoreflect.Message
- func (x *VoteMsg) Reset()
- func (x *VoteMsg) String() string
- type WasmCodeDesc
- func (*WasmCodeDesc) Descriptor() ([]byte, []int)deprecated
- func (x *WasmCodeDesc) GetCompiler() string
- func (x *WasmCodeDesc) GetContractType() string
- func (x *WasmCodeDesc) GetDigest() []byte
- func (x *WasmCodeDesc) GetRuntime() string
- func (x *WasmCodeDesc) GetVmCompiler() string
- func (*WasmCodeDesc) ProtoMessage()
- func (x *WasmCodeDesc) ProtoReflect() protoreflect.Message
- func (x *WasmCodeDesc) Reset()
- func (x *WasmCodeDesc) String() string
- type XChainClient
- type XChainServer
- type XuperSignature
- func (*XuperSignature) Descriptor() ([]byte, []int)deprecated
- func (x *XuperSignature) GetPublicKeys() [][]byte
- func (x *XuperSignature) GetSignature() []byte
- func (*XuperSignature) ProtoMessage()
- func (x *XuperSignature) ProtoReflect() protoreflect.Message
- func (x *XuperSignature) Reset()
- func (x *XuperSignature) String() string
Constants ¶
This section is empty.
Variables ¶
var ( QCState_name = map[int32]string{ 0: "NEW_VIEW", 1: "PREPARE", 2: "PRE_COMMIT", 3: "COMMIT", 4: "DECIDE", } QCState_value = map[string]int32{ "NEW_VIEW": 0, "PREPARE": 1, "PRE_COMMIT": 2, "COMMIT": 3, "DECIDE": 4, } )
Enum value maps for QCState.
var ( ResourceType_name = map[int32]string{ 0: "CPU", 1: "MEMORY", 2: "DISK", 3: "XFEE", } ResourceType_value = map[string]int32{ "CPU": 0, "MEMORY": 1, "DISK": 2, "XFEE": 3, } )
Enum value maps for ResourceType.
var ( TransactionStatus_name = map[int32]string{ 0: "TX_UNDEFINE", 1: "TX_NOEXIST", 2: "TX_CONFIRM", 3: "TX_FURCATION", 4: "TX_UNCONFIRM", 5: "TX_FAILED", } TransactionStatus_value = map[string]int32{ "TX_UNDEFINE": 0, "TX_NOEXIST": 1, "TX_CONFIRM": 2, "TX_FURCATION": 3, "TX_UNCONFIRM": 4, "TX_FAILED": 5, } )
Enum value maps for TransactionStatus.
var ( BlockStatus_name = map[int32]string{ 0: "BLOCK_ERROR", 1: "BLOCK_TRUNK", 2: "BLOCK_BRANCH", 3: "BLOCK_NOEXIST", } BlockStatus_value = map[string]int32{ "BLOCK_ERROR": 0, "BLOCK_TRUNK": 1, "BLOCK_BRANCH": 2, "BLOCK_NOEXIST": 3, } )
Enum value maps for BlockStatus.
var ( SubscribeType_name = map[int32]string{ 0: "BLOCK", } SubscribeType_value = map[string]int32{ "BLOCK": 0, } )
Enum value maps for SubscribeType.
var ( CoreMessage_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", } CoreMessage_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, } )
Enum value maps for CoreMessage_MessageType.
var ( CoreMessage_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", } CoreMessage_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, } )
Enum value maps for CoreMessage_ErrorType.
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", } 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, } )
Enum value maps for PermissionRule.
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 EventService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.EventService", HandlerType: (*EventServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Subscribe", Handler: _EventService_Subscribe_Handler, ServerStreams: true, }, }, Metadata: "event_service.proto", }
EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_chain_service_proto protoreflect.FileDescriptor
var File_chainbft_proto protoreflect.FileDescriptor
var File_contract_proto protoreflect.FileDescriptor
var File_event_service_proto protoreflect.FileDescriptor
var File_network_service_proto protoreflect.FileDescriptor
var File_permission_proto protoreflect.FileDescriptor
var File_proposal_proto protoreflect.FileDescriptor
var File_status_proto protoreflect.FileDescriptor
var File_syscall_service_proto protoreflect.FileDescriptor
var NativeCode_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.NativeCode", HandlerType: (*NativeCodeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Call", Handler: _NativeCode_Call_Handler, }, { MethodName: "Ping", Handler: _NativeCode_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "syscall_service.proto", }
NativeCode_ServiceDesc is the grpc.ServiceDesc for NativeCode service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var P2PService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.p2pService", HandlerType: (*P2PServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "SendP2pMessage", Handler: _P2PService_SendP2PMessage_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "network_service.proto", }
P2PService_ServiceDesc is the grpc.ServiceDesc for P2PService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Syscall_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.Syscall", HandlerType: (*SyscallServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PutObject", Handler: _Syscall_PutObject_Handler, }, { MethodName: "GetObject", Handler: _Syscall_GetObject_Handler, }, { MethodName: "DeleteObject", Handler: _Syscall_DeleteObject_Handler, }, { MethodName: "NewIterator", Handler: _Syscall_NewIterator_Handler, }, { MethodName: "QueryTx", Handler: _Syscall_QueryTx_Handler, }, { MethodName: "QueryBlock", Handler: _Syscall_QueryBlock_Handler, }, { MethodName: "Transfer", Handler: _Syscall_Transfer_Handler, }, { MethodName: "ContractCall", Handler: _Syscall_ContractCall_Handler, }, { MethodName: "CrossContractQuery", Handler: _Syscall_CrossContractQuery_Handler, }, { MethodName: "GetAccountAddresses", Handler: _Syscall_GetAccountAddresses_Handler, }, { MethodName: "Ping", Handler: _Syscall_Ping_Handler, }, { MethodName: "PostLog", Handler: _Syscall_PostLog_Handler, }, { MethodName: "GetCallArgs", Handler: _Syscall_GetCallArgs_Handler, }, { MethodName: "SetOutput", Handler: _Syscall_SetOutput_Handler, }, { MethodName: "EmitEvent", Handler: _Syscall_EmitEvent_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "syscall_service.proto", }
Syscall_ServiceDesc is the grpc.ServiceDesc for Syscall service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var XChain_ServiceDesc = grpc.ServiceDesc{ ServiceName: "protos.XChain", HandlerType: (*XChainServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckAlive", Handler: _XChain_CheckAlive_Handler, }, { MethodName: "SubmitTx", Handler: _XChain_SubmitTx_Handler, }, { MethodName: "PreExec", Handler: _XChain_PreExec_Handler, }, { MethodName: "SelectUtxo", Handler: _XChain_SelectUtxo_Handler, }, { MethodName: "QueryTx", Handler: _XChain_QueryTx_Handler, }, { MethodName: "QueryBlock", Handler: _XChain_QueryBlock_Handler, }, { MethodName: "QueryChainStatus", Handler: _XChain_QueryChainStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "chain_service.proto", }
XChain_ServiceDesc is the grpc.ServiceDesc for XChain service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterEventServiceServer ¶
func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)
func RegisterNativeCodeServer ¶
func RegisterNativeCodeServer(s grpc.ServiceRegistrar, srv NativeCodeServer)
func RegisterP2PServiceServer ¶
func RegisterP2PServiceServer(s grpc.ServiceRegistrar, srv P2PServiceServer)
func RegisterSyscallServer ¶
func RegisterSyscallServer(s grpc.ServiceRegistrar, srv SyscallServer)
func RegisterXChainServer ¶
func RegisterXChainServer(s grpc.ServiceRegistrar, srv XChainServer)
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"` // contains filtered or unexported fields }
func (*AK2AccountRequest) Descriptor
deprecated
func (*AK2AccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use AK2AccountRequest.ProtoReflect.Descriptor instead.
func (*AK2AccountRequest) GetAddress ¶
func (x *AK2AccountRequest) GetAddress() string
func (*AK2AccountRequest) GetBcname ¶
func (x *AK2AccountRequest) GetBcname() string
func (*AK2AccountRequest) ProtoMessage ¶
func (*AK2AccountRequest) ProtoMessage()
func (*AK2AccountRequest) ProtoReflect ¶
func (x *AK2AccountRequest) ProtoReflect() protoreflect.Message
func (*AK2AccountRequest) Reset ¶
func (x *AK2AccountRequest) Reset()
func (*AK2AccountRequest) String ¶
func (x *AK2AccountRequest) String() string
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"` // contains filtered or unexported fields }
func (*AK2AccountResponse) Descriptor
deprecated
func (*AK2AccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use AK2AccountResponse.ProtoReflect.Descriptor instead.
func (*AK2AccountResponse) GetAccount ¶
func (x *AK2AccountResponse) GetAccount() []string
func (*AK2AccountResponse) GetBcname ¶
func (x *AK2AccountResponse) GetBcname() string
func (*AK2AccountResponse) ProtoMessage ¶
func (*AK2AccountResponse) ProtoMessage()
func (*AK2AccountResponse) ProtoReflect ¶
func (x *AK2AccountResponse) ProtoReflect() protoreflect.Message
func (*AK2AccountResponse) Reset ¶
func (x *AK2AccountResponse) Reset()
func (*AK2AccountResponse) String ¶
func (x *AK2AccountResponse) String() string
type Acl ¶
type Acl struct { Pm *PermissionModel `protobuf:"bytes,1,opt,name=pm,proto3" json:"pm,omitempty"` // 采用的权限模型 AksWeight map[string]float64 `` // 公钥or账户名 -> 权重 /* 161-byte string literal not displayed */ AkSets *AkSets `protobuf:"bytes,3,opt,name=akSets,proto3" json:"akSets,omitempty"` // contains filtered or unexported fields }
Acl实际使用的结构
func (*Acl) Descriptor
deprecated
func (*Acl) GetAksWeight ¶
func (*Acl) GetPm ¶
func (x *Acl) GetPm() *PermissionModel
func (*Acl) ProtoMessage ¶
func (*Acl) ProtoMessage()
func (*Acl) ProtoReflect ¶
func (x *Acl) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
查询Acl
func (*AclStatus) Descriptor
deprecated
func (*AclStatus) GetAccountName ¶
func (*AclStatus) GetConfirmed ¶
func (*AclStatus) GetContractName ¶
func (*AclStatus) GetMethodName ¶
func (*AclStatus) ProtoMessage ¶
func (*AclStatus) ProtoMessage()
func (*AclStatus) ProtoReflect ¶
func (x *AclStatus) ProtoReflect() protoreflect.Message
type AkSet ¶
type AkSet struct { Aks []string `protobuf:"bytes,1,rep,name=aks,proto3" json:"aks,omitempty"` // 一堆公钥 // contains filtered or unexported fields }
AK集的表示方法
func (*AkSet) Descriptor
deprecated
func (*AkSet) ProtoMessage ¶
func (*AkSet) ProtoMessage()
func (*AkSet) ProtoReflect ¶
func (x *AkSet) ProtoReflect() protoreflect.Message
type AkSets ¶
type AkSets struct { Sets map[string]*AkSet `` // 公钥or账户名集 /* 149-byte string literal not displayed */ Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"` // 表达式,一期不支持表达式,默认集合内是and,集合间是or // contains filtered or unexported fields }
func (*AkSets) Descriptor
deprecated
func (*AkSets) GetExpression ¶
func (*AkSets) ProtoMessage ¶
func (*AkSets) ProtoMessage()
func (*AkSets) ProtoReflect ¶
func (x *AkSets) ProtoReflect() protoreflect.Message
type ArgPair ¶
type ArgPair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ArgPair) Descriptor
deprecated
func (*ArgPair) ProtoMessage ¶
func (*ArgPair) ProtoMessage()
func (*ArgPair) ProtoReflect ¶
func (x *ArgPair) ProtoReflect() protoreflect.Message
type BalanceDetailInfo ¶
type BalanceDetailInfo struct { Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` IsFrozen bool `protobuf:"varint,2,opt,name=isFrozen,proto3" json:"isFrozen,omitempty"` // contains filtered or unexported fields }
func (*BalanceDetailInfo) Descriptor
deprecated
func (*BalanceDetailInfo) Descriptor() ([]byte, []int)
Deprecated: Use BalanceDetailInfo.ProtoReflect.Descriptor instead.
func (*BalanceDetailInfo) GetBalance ¶
func (x *BalanceDetailInfo) GetBalance() string
func (*BalanceDetailInfo) GetIsFrozen ¶
func (x *BalanceDetailInfo) GetIsFrozen() bool
func (*BalanceDetailInfo) ProtoMessage ¶
func (*BalanceDetailInfo) ProtoMessage()
func (*BalanceDetailInfo) ProtoReflect ¶
func (x *BalanceDetailInfo) ProtoReflect() protoreflect.Message
func (*BalanceDetailInfo) Reset ¶
func (x *BalanceDetailInfo) Reset()
func (*BalanceDetailInfo) String ¶
func (x *BalanceDetailInfo) String() string
type BaseReq ¶
type BaseReq struct { Header *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // contains filtered or unexported fields }
func (*BaseReq) Descriptor
deprecated
func (*BaseReq) ProtoMessage ¶
func (*BaseReq) ProtoMessage()
func (*BaseReq) ProtoReflect ¶
func (x *BaseReq) ProtoReflect() protoreflect.Message
type BaseResp ¶
type BaseResp struct { Header *RespHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // contains filtered or unexported fields }
func (*BaseResp) Descriptor
deprecated
func (*BaseResp) GetHeader ¶
func (x *BaseResp) GetHeader() *RespHeader
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) ProtoReflect ¶
func (x *BaseResp) ProtoReflect() protoreflect.Message
type Block ¶
type Block struct { // blockid generate the hash sign of the block used by sha256 Blockid string `protobuf:"bytes,3,opt,name=blockid,proto3" json:"blockid,omitempty"` // pre_hash is the parent blockid of the block PreHash string `protobuf:"bytes,4,opt,name=pre_hash,json=preHash,proto3" json:"pre_hash,omitempty"` // The miner id Proposer []byte `protobuf:"bytes,5,opt,name=proposer,proto3" json:"proposer,omitempty"` // The sign which miner signed: blockid + nonce + timestamp Sign string `protobuf:"bytes,6,opt,name=sign,proto3" json:"sign,omitempty"` // The pk of the miner Pubkey []byte `protobuf:"bytes,7,opt,name=pubkey,proto3" json:"pubkey,omitempty"` // The height of the blockchain Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` // Timestamp of the block Timestamp int64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Transactions of the block, only txid stored on kv, the detail information stored in another table Txids []string `protobuf:"bytes,11,rep,name=txids,proto3" json:"txids,omitempty"` // The transaction count of the block TxCount int32 `protobuf:"varint,12,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"` //下面的属性会动态变化 // If the block is on the trunk InTrunk bool `protobuf:"varint,14,opt,name=in_trunk,json=inTrunk,proto3" json:"in_trunk,omitempty"` // Next next block which on trunk NextHash string `protobuf:"bytes,15,opt,name=next_hash,json=nextHash,proto3" json:"next_hash,omitempty"` // contains filtered or unexported fields }
The block struct
func (*Block) Descriptor
deprecated
func (*Block) GetBlockid ¶
func (*Block) GetInTrunk ¶
func (*Block) GetNextHash ¶
func (*Block) GetPreHash ¶
func (*Block) GetProposer ¶
func (*Block) GetTimestamp ¶
func (*Block) GetTxCount ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) ProtoReflect ¶
func (x *Block) ProtoReflect() protoreflect.Message
type BlockFilter ¶
type BlockFilter struct { BcName string `protobuf:"bytes,1,opt,name=bc_name,json=bcName,proto3" json:"bc_name,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"` // contains filtered or unexported fields }
func (*BlockFilter) Descriptor
deprecated
func (*BlockFilter) Descriptor() ([]byte, []int)
Deprecated: Use BlockFilter.ProtoReflect.Descriptor instead.
func (*BlockFilter) GetAuthRequire ¶
func (x *BlockFilter) GetAuthRequire() string
func (*BlockFilter) GetBcName ¶
func (x *BlockFilter) GetBcName() string
func (*BlockFilter) GetContract ¶
func (x *BlockFilter) GetContract() string
func (*BlockFilter) GetEventName ¶
func (x *BlockFilter) GetEventName() string
func (*BlockFilter) GetExcludeTx ¶
func (x *BlockFilter) GetExcludeTx() bool
func (*BlockFilter) GetExcludeTxEvent ¶
func (x *BlockFilter) GetExcludeTxEvent() bool
func (*BlockFilter) GetFromAddr ¶
func (x *BlockFilter) GetFromAddr() string
func (*BlockFilter) GetInitiator ¶
func (x *BlockFilter) GetInitiator() string
func (*BlockFilter) GetRange ¶
func (x *BlockFilter) GetRange() *BlockRange
func (*BlockFilter) GetToAddr ¶
func (x *BlockFilter) GetToAddr() string
func (*BlockFilter) ProtoMessage ¶
func (*BlockFilter) ProtoMessage()
func (*BlockFilter) ProtoReflect ¶
func (x *BlockFilter) ProtoReflect() protoreflect.Message
func (*BlockFilter) Reset ¶
func (x *BlockFilter) Reset()
func (*BlockFilter) String ¶
func (x *BlockFilter) String() string
type BlockID ¶
type BlockID struct { Bcname string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"` Blockid []byte `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"` // if need content NeedContent bool `protobuf:"varint,3,opt,name=need_content,json=needContent,proto3" json:"need_content,omitempty"` // contains filtered or unexported fields }
func (*BlockID) Descriptor
deprecated
func (*BlockID) GetBlockid ¶
func (*BlockID) GetNeedContent ¶
func (*BlockID) ProtoMessage ¶
func (*BlockID) ProtoMessage()
func (*BlockID) ProtoReflect ¶
func (x *BlockID) ProtoReflect() protoreflect.Message
type BlockInfo ¶
type BlockInfo struct { Status BlockStatus `protobuf:"varint,1,opt,name=status,proto3,enum=protos.BlockStatus" json:"status,omitempty"` Block *InternalBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` // contains filtered or unexported fields }
func (*BlockInfo) Descriptor
deprecated
func (*BlockInfo) GetBlock ¶
func (x *BlockInfo) GetBlock() *InternalBlock
func (*BlockInfo) GetStatus ¶
func (x *BlockInfo) GetStatus() BlockStatus
func (*BlockInfo) ProtoMessage ¶
func (*BlockInfo) ProtoMessage()
func (*BlockInfo) ProtoReflect ¶
func (x *BlockInfo) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*BlockRange) Descriptor
deprecated
func (*BlockRange) Descriptor() ([]byte, []int)
Deprecated: Use BlockRange.ProtoReflect.Descriptor instead.
func (*BlockRange) GetEnd ¶
func (x *BlockRange) GetEnd() string
func (*BlockRange) GetStart ¶
func (x *BlockRange) GetStart() string
func (*BlockRange) ProtoMessage ¶
func (*BlockRange) ProtoMessage()
func (*BlockRange) ProtoReflect ¶
func (x *BlockRange) ProtoReflect() protoreflect.Message
func (*BlockRange) Reset ¶
func (x *BlockRange) Reset()
func (*BlockRange) String ¶
func (x *BlockRange) String() string
type BlockStatus ¶
type BlockStatus int32
BlockStatus is the status of block
const ( BlockStatus_BLOCK_ERROR BlockStatus = 0 BlockStatus_BLOCK_TRUNK BlockStatus = 1 BlockStatus_BLOCK_BRANCH BlockStatus = 2 BlockStatus_BLOCK_NOEXIST BlockStatus = 3 )
func (BlockStatus) Descriptor ¶
func (BlockStatus) Descriptor() protoreflect.EnumDescriptor
func (BlockStatus) Enum ¶
func (x BlockStatus) Enum() *BlockStatus
func (BlockStatus) EnumDescriptor
deprecated
func (BlockStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use BlockStatus.Descriptor instead.
func (BlockStatus) Number ¶
func (x BlockStatus) Number() protoreflect.EnumNumber
func (BlockStatus) String ¶
func (x BlockStatus) String() string
func (BlockStatus) Type ¶
func (BlockStatus) Type() protoreflect.EnumType
type CallArgs ¶
type CallArgs struct { Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` Args []*ArgPair `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` Initiator string `protobuf:"bytes,3,opt,name=initiator,proto3" json:"initiator,omitempty"` AuthRequire []string `protobuf:"bytes,4,rep,name=auth_require,json=authRequire,proto3" json:"auth_require,omitempty"` TransferAmount string `protobuf:"bytes,5,opt,name=transfer_amount,json=transferAmount,proto3" json:"transfer_amount,omitempty"` Caller string `protobuf:"bytes,6,opt,name=caller,proto3" json:"caller,omitempty"` // contains filtered or unexported fields }
func (*CallArgs) Descriptor
deprecated
func (*CallArgs) GetAuthRequire ¶
func (*CallArgs) GetInitiator ¶
func (*CallArgs) GetTransferAmount ¶
func (*CallArgs) ProtoMessage ¶
func (*CallArgs) ProtoMessage()
func (*CallArgs) ProtoReflect ¶
func (x *CallArgs) ProtoReflect() protoreflect.Message
type ChainStatus ¶
type ChainStatus struct { LedgerMeta *LedgerMeta `protobuf:"bytes,1,opt,name=ledger_meta,json=ledgerMeta,proto3" json:"ledger_meta,omitempty"` UtxoMeta *UtxoMeta `protobuf:"bytes,2,opt,name=utxo_meta,json=utxoMeta,proto3" json:"utxo_meta,omitempty"` Block *InternalBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` BranchIds []string `protobuf:"bytes,4,rep,name=branch_ids,json=branchIds,proto3" json:"branch_ids,omitempty"` // contains filtered or unexported fields }
func (*ChainStatus) Descriptor
deprecated
func (*ChainStatus) Descriptor() ([]byte, []int)
Deprecated: Use ChainStatus.ProtoReflect.Descriptor instead.
func (*ChainStatus) GetBlock ¶
func (x *ChainStatus) GetBlock() *InternalBlock
func (*ChainStatus) GetBranchIds ¶
func (x *ChainStatus) GetBranchIds() []string
func (*ChainStatus) GetLedgerMeta ¶
func (x *ChainStatus) GetLedgerMeta() *LedgerMeta
func (*ChainStatus) GetUtxoMeta ¶
func (x *ChainStatus) GetUtxoMeta() *UtxoMeta
func (*ChainStatus) ProtoMessage ¶
func (*ChainStatus) ProtoMessage()
func (*ChainStatus) ProtoReflect ¶
func (x *ChainStatus) ProtoReflect() protoreflect.Message
func (*ChainStatus) Reset ¶
func (x *ChainStatus) Reset()
func (*ChainStatus) String ¶
func (x *ChainStatus) String() string
type ConsensusStatus ¶
type ConsensusStatus struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` ConsensusName string `protobuf:"bytes,2,opt,name=consensus_name,json=consensusName,proto3" json:"consensus_name,omitempty"` StartHeight string `protobuf:"bytes,3,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"` ValidatorsInfo string `protobuf:"bytes,4,opt,name=validators_info,json=validatorsInfo,proto3" json:"validators_info,omitempty"` // contains filtered or unexported fields }
func (*ConsensusStatus) Descriptor
deprecated
func (*ConsensusStatus) Descriptor() ([]byte, []int)
Deprecated: Use ConsensusStatus.ProtoReflect.Descriptor instead.
func (*ConsensusStatus) GetConsensusName ¶
func (x *ConsensusStatus) GetConsensusName() string
func (*ConsensusStatus) GetStartHeight ¶
func (x *ConsensusStatus) GetStartHeight() string
func (*ConsensusStatus) GetValidatorsInfo ¶
func (x *ConsensusStatus) GetValidatorsInfo() string
func (*ConsensusStatus) GetVersion ¶
func (x *ConsensusStatus) GetVersion() string
func (*ConsensusStatus) ProtoMessage ¶
func (*ConsensusStatus) ProtoMessage()
func (*ConsensusStatus) ProtoReflect ¶
func (x *ConsensusStatus) ProtoReflect() protoreflect.Message
func (*ConsensusStatus) Reset ¶
func (x *ConsensusStatus) Reset()
func (*ConsensusStatus) String ¶
func (x *ConsensusStatus) String() string
type ContractCallRequest ¶
type ContractCallRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"` Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` Args []*ArgPair `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*ContractCallRequest) Descriptor
deprecated
func (*ContractCallRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContractCallRequest.ProtoReflect.Descriptor instead.
func (*ContractCallRequest) GetArgs ¶
func (x *ContractCallRequest) GetArgs() []*ArgPair
func (*ContractCallRequest) GetContract ¶
func (x *ContractCallRequest) GetContract() string
func (*ContractCallRequest) GetHeader ¶
func (x *ContractCallRequest) GetHeader() *SyscallHeader
func (*ContractCallRequest) GetMethod ¶
func (x *ContractCallRequest) GetMethod() string
func (*ContractCallRequest) GetModule ¶
func (x *ContractCallRequest) GetModule() string
func (*ContractCallRequest) ProtoMessage ¶
func (*ContractCallRequest) ProtoMessage()
func (*ContractCallRequest) ProtoReflect ¶
func (x *ContractCallRequest) ProtoReflect() protoreflect.Message
func (*ContractCallRequest) Reset ¶
func (x *ContractCallRequest) Reset()
func (*ContractCallRequest) String ¶
func (x *ContractCallRequest) String() string
type ContractCallResponse ¶
type ContractCallResponse struct { Response *Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*ContractCallResponse) Descriptor
deprecated
func (*ContractCallResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractCallResponse.ProtoReflect.Descriptor instead.
func (*ContractCallResponse) GetResponse ¶
func (x *ContractCallResponse) GetResponse() *Response
func (*ContractCallResponse) ProtoMessage ¶
func (*ContractCallResponse) ProtoMessage()
func (*ContractCallResponse) ProtoReflect ¶
func (x *ContractCallResponse) ProtoReflect() protoreflect.Message
func (*ContractCallResponse) Reset ¶
func (x *ContractCallResponse) Reset()
func (*ContractCallResponse) String ¶
func (x *ContractCallResponse) 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"` // contains filtered or unexported fields }
func (*ContractEvent) Descriptor
deprecated
func (*ContractEvent) Descriptor() ([]byte, []int)
Deprecated: Use ContractEvent.ProtoReflect.Descriptor instead.
func (*ContractEvent) GetBody ¶
func (x *ContractEvent) GetBody() []byte
func (*ContractEvent) GetContract ¶
func (x *ContractEvent) GetContract() string
func (*ContractEvent) GetName ¶
func (x *ContractEvent) GetName() string
func (*ContractEvent) ProtoMessage ¶
func (*ContractEvent) ProtoMessage()
func (*ContractEvent) ProtoReflect ¶
func (x *ContractEvent) ProtoReflect() protoreflect.Message
func (*ContractEvent) Reset ¶
func (x *ContractEvent) Reset()
func (*ContractEvent) String ¶
func (x *ContractEvent) String() string
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"` // contains filtered or unexported fields }
ContractResponse is the response returnd by contract
func (*ContractResponse) Descriptor
deprecated
func (*ContractResponse) Descriptor() ([]byte, []int)
Deprecated: Use ContractResponse.ProtoReflect.Descriptor instead.
func (*ContractResponse) GetBody ¶
func (x *ContractResponse) GetBody() []byte
func (*ContractResponse) GetMessage ¶
func (x *ContractResponse) GetMessage() string
func (*ContractResponse) GetStatus ¶
func (x *ContractResponse) GetStatus() int32
func (*ContractResponse) ProtoMessage ¶
func (*ContractResponse) ProtoMessage()
func (*ContractResponse) ProtoReflect ¶
func (x *ContractResponse) ProtoReflect() protoreflect.Message
func (*ContractResponse) Reset ¶
func (x *ContractResponse) Reset()
func (*ContractResponse) String ¶
func (x *ContractResponse) String() string
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"` // contains filtered or unexported fields }
func (*ContractStatData) Descriptor
deprecated
func (*ContractStatData) Descriptor() ([]byte, []int)
Deprecated: Use ContractStatData.ProtoReflect.Descriptor instead.
func (*ContractStatData) GetAccountCount ¶
func (x *ContractStatData) GetAccountCount() int64
func (*ContractStatData) GetContractCount ¶
func (x *ContractStatData) GetContractCount() int64
func (*ContractStatData) ProtoMessage ¶
func (*ContractStatData) ProtoMessage()
func (*ContractStatData) ProtoReflect ¶
func (x *ContractStatData) ProtoReflect() protoreflect.Message
func (*ContractStatData) Reset ¶
func (x *ContractStatData) Reset()
func (*ContractStatData) String ¶
func (x *ContractStatData) String() string
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"` // contains filtered or unexported fields }
Status of a contract
func (*ContractStatus) Descriptor
deprecated
func (*ContractStatus) Descriptor() ([]byte, []int)
Deprecated: Use ContractStatus.ProtoReflect.Descriptor instead.
func (*ContractStatus) GetContractName ¶
func (x *ContractStatus) GetContractName() string
func (*ContractStatus) GetDesc ¶
func (x *ContractStatus) GetDesc() []byte
func (*ContractStatus) GetIsBanned ¶
func (x *ContractStatus) GetIsBanned() bool
func (*ContractStatus) GetRuntime ¶
func (x *ContractStatus) GetRuntime() string
func (*ContractStatus) GetTimestamp ¶
func (x *ContractStatus) GetTimestamp() int64
func (*ContractStatus) GetTxid ¶
func (x *ContractStatus) GetTxid() string
func (*ContractStatus) ProtoMessage ¶
func (*ContractStatus) ProtoMessage()
func (*ContractStatus) ProtoReflect ¶
func (x *ContractStatus) ProtoReflect() protoreflect.Message
func (*ContractStatus) Reset ¶
func (x *ContractStatus) Reset()
func (*ContractStatus) String ¶
func (x *ContractStatus) String() string
type CoreMessage ¶
type CoreMessage struct { Header *CoreMessage_MessageHeader `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"` Data *CoreMessage_MessageData `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
CoreMessage is the message of core p2p server
func (*CoreMessage) Descriptor
deprecated
func (*CoreMessage) Descriptor() ([]byte, []int)
Deprecated: Use CoreMessage.ProtoReflect.Descriptor instead.
func (*CoreMessage) GetData ¶
func (x *CoreMessage) GetData() *CoreMessage_MessageData
func (*CoreMessage) GetHeader ¶
func (x *CoreMessage) GetHeader() *CoreMessage_MessageHeader
func (*CoreMessage) ProtoMessage ¶
func (*CoreMessage) ProtoMessage()
func (*CoreMessage) ProtoReflect ¶
func (x *CoreMessage) ProtoReflect() protoreflect.Message
func (*CoreMessage) Reset ¶
func (x *CoreMessage) Reset()
func (*CoreMessage) String ¶
func (x *CoreMessage) String() string
type CoreMessage_ErrorType ¶
type CoreMessage_ErrorType int32
const ( // success CoreMessage_SUCCESS CoreMessage_ErrorType = 0 CoreMessage_NONE CoreMessage_ErrorType = 1 // common error CoreMessage_UNKNOW_ERROR CoreMessage_ErrorType = 2 CoreMessage_CHECK_SUM_ERROR CoreMessage_ErrorType = 3 CoreMessage_UNMARSHAL_MSG_BODY_ERROR CoreMessage_ErrorType = 4 CoreMessage_CONNECT_REFUSE CoreMessage_ErrorType = 5 // block error CoreMessage_GET_BLOCKCHAIN_ERROR CoreMessage_ErrorType = 6 CoreMessage_BLOCKCHAIN_NOTEXIST CoreMessage_ErrorType = 7 CoreMessage_GET_BLOCK_ERROR CoreMessage_ErrorType = 8 CoreMessage_CONFIRM_BLOCKCHAINSTATUS_ERROR CoreMessage_ErrorType = 9 CoreMessage_GET_AUTHENTICATION_ERROR CoreMessage_ErrorType = 10 CoreMessage_GET_AUTHENTICATION_NOT_PASS CoreMessage_ErrorType = 11 )
func (CoreMessage_ErrorType) Descriptor ¶
func (CoreMessage_ErrorType) Descriptor() protoreflect.EnumDescriptor
func (CoreMessage_ErrorType) Enum ¶
func (x CoreMessage_ErrorType) Enum() *CoreMessage_ErrorType
func (CoreMessage_ErrorType) EnumDescriptor
deprecated
func (CoreMessage_ErrorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CoreMessage_ErrorType.Descriptor instead.
func (CoreMessage_ErrorType) Number ¶
func (x CoreMessage_ErrorType) Number() protoreflect.EnumNumber
func (CoreMessage_ErrorType) String ¶
func (x CoreMessage_ErrorType) String() string
func (CoreMessage_ErrorType) Type ¶
func (CoreMessage_ErrorType) Type() protoreflect.EnumType
type CoreMessage_MessageData ¶
type CoreMessage_MessageData struct { // msgInfo is the message infomation, use protobuf coding style MsgInfo []byte `protobuf:"bytes,3,opt,name=msgInfo,proto3" json:"msgInfo,omitempty"` // contains filtered or unexported fields }
MessageData is the message data of Xuper p2p server
func (*CoreMessage_MessageData) Descriptor
deprecated
func (*CoreMessage_MessageData) Descriptor() ([]byte, []int)
Deprecated: Use CoreMessage_MessageData.ProtoReflect.Descriptor instead.
func (*CoreMessage_MessageData) GetMsgInfo ¶
func (x *CoreMessage_MessageData) GetMsgInfo() []byte
func (*CoreMessage_MessageData) ProtoMessage ¶
func (*CoreMessage_MessageData) ProtoMessage()
func (*CoreMessage_MessageData) ProtoReflect ¶
func (x *CoreMessage_MessageData) ProtoReflect() protoreflect.Message
func (*CoreMessage_MessageData) Reset ¶
func (x *CoreMessage_MessageData) Reset()
func (*CoreMessage_MessageData) String ¶
func (x *CoreMessage_MessageData) String() string
type CoreMessage_MessageHeader ¶
type CoreMessage_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 CoreMessage_MessageType `protobuf:"varint,5,opt,name=type,proto3,enum=protos.CoreMessage_MessageType" json:"type,omitempty"` DataCheckSum uint32 `protobuf:"varint,6,opt,name=dataCheckSum,proto3" json:"dataCheckSum,omitempty"` ErrorType CoreMessage_ErrorType `protobuf:"varint,7,opt,name=errorType,proto3,enum=protos.CoreMessage_ErrorType" json:"errorType,omitempty"` EnableCompress bool `protobuf:"varint,8,opt,name=enableCompress,proto3" json:"enableCompress,omitempty"` // contains filtered or unexported fields }
MessageHeader is the message header of Xuper p2p server
func (*CoreMessage_MessageHeader) Descriptor
deprecated
func (*CoreMessage_MessageHeader) Descriptor() ([]byte, []int)
Deprecated: Use CoreMessage_MessageHeader.ProtoReflect.Descriptor instead.
func (*CoreMessage_MessageHeader) GetBcname ¶
func (x *CoreMessage_MessageHeader) GetBcname() string
func (*CoreMessage_MessageHeader) GetDataCheckSum ¶
func (x *CoreMessage_MessageHeader) GetDataCheckSum() uint32
func (*CoreMessage_MessageHeader) GetEnableCompress ¶
func (x *CoreMessage_MessageHeader) GetEnableCompress() bool
func (*CoreMessage_MessageHeader) GetErrorType ¶
func (x *CoreMessage_MessageHeader) GetErrorType() CoreMessage_ErrorType
func (*CoreMessage_MessageHeader) GetFrom ¶
func (x *CoreMessage_MessageHeader) GetFrom() string
func (*CoreMessage_MessageHeader) GetLogid ¶
func (x *CoreMessage_MessageHeader) GetLogid() string
func (*CoreMessage_MessageHeader) GetType ¶
func (x *CoreMessage_MessageHeader) GetType() CoreMessage_MessageType
func (*CoreMessage_MessageHeader) GetVersion ¶
func (x *CoreMessage_MessageHeader) GetVersion() string
func (*CoreMessage_MessageHeader) ProtoMessage ¶
func (*CoreMessage_MessageHeader) ProtoMessage()
func (*CoreMessage_MessageHeader) ProtoReflect ¶
func (x *CoreMessage_MessageHeader) ProtoReflect() protoreflect.Message
func (*CoreMessage_MessageHeader) Reset ¶
func (x *CoreMessage_MessageHeader) Reset()
func (*CoreMessage_MessageHeader) String ¶
func (x *CoreMessage_MessageHeader) String() string
type CoreMessage_MessageType ¶
type CoreMessage_MessageType int32
const ( CoreMessage_SENDBLOCK CoreMessage_MessageType = 0 CoreMessage_POSTTX CoreMessage_MessageType = 1 CoreMessage_BATCHPOSTTX CoreMessage_MessageType = 2 CoreMessage_GET_BLOCK CoreMessage_MessageType = 3 CoreMessage_PING CoreMessage_MessageType = 4 CoreMessage_GET_BLOCKCHAINSTATUS CoreMessage_MessageType = 5 CoreMessage_GET_BLOCK_RES CoreMessage_MessageType = 6 CoreMessage_GET_BLOCKCHAINSTATUS_RES CoreMessage_MessageType = 7 // 向邻近确认区块是否为最新状态区块 CoreMessage_CONFIRM_BLOCKCHAINSTATUS CoreMessage_MessageType = 8 CoreMessage_CONFIRM_BLOCKCHAINSTATUS_RES CoreMessage_MessageType = 9 CoreMessage_MSG_TYPE_NONE CoreMessage_MessageType = 10 // query RPC port information CoreMessage_GET_RPC_PORT CoreMessage_MessageType = 11 CoreMessage_GET_RPC_PORT_RES CoreMessage_MessageType = 12 // get authentication information CoreMessage_GET_AUTHENTICATION CoreMessage_MessageType = 13 CoreMessage_GET_AUTHENTICATION_RES CoreMessage_MessageType = 14 // chained-bft NEW_VIEW message CoreMessage_CHAINED_BFT_NEW_VIEW_MSG CoreMessage_MessageType = 15 // chained-bft NEW_PROPOSAL message CoreMessage_CHAINED_BFT_NEW_PROPOSAL_MSG CoreMessage_MessageType = 16 // chained-bft vote message CoreMessage_CHAINED_BFT_VOTE_MSG CoreMessage_MessageType = 17 // broadcast new block id to other node CoreMessage_NEW_BLOCKID CoreMessage_MessageType = 18 // new node used to add to network automatic CoreMessage_NEW_NODE CoreMessage_MessageType = 19 // 消息头同步对(GET_HASHES <-> HASHES), // 发送方通过GET_HASHES消息询问区间范围内的所有区块哈希信息, // 接受方发送HASHES信息, 该消息携带其所知的区间范围内的BlockId列表 CoreMessage_GET_BLOCKIDS CoreMessage_MessageType = 20 CoreMessage_GET_BLOCKIDS_RES CoreMessage_MessageType = 21 // 消息对(GET_BLOCKS <-> BLOCKS), // 发送方通过GET_BLOCKS消息询问BlockId列表内的所有对应区块信息, // 接受方发送BLOCKS信息, 该消息携带具体Block CoreMessage_GET_BLOCKS CoreMessage_MessageType = 22 CoreMessage_GET_BLOCKS_RES CoreMessage_MessageType = 23 CoreMessage_GET_PEER_INFO CoreMessage_MessageType = 24 CoreMessage_GET_PEER_INFO_RES CoreMessage_MessageType = 25 CoreMessage_GET_BLOCK_HEADERS CoreMessage_MessageType = 26 CoreMessage_GET_BLOCKS_HEADERS_RES CoreMessage_MessageType = 27 CoreMessage_GET_BLOCK_TXS CoreMessage_MessageType = 28 CoreMessage_GET_BLOCKS_TXS_RES CoreMessage_MessageType = 29 )
func (CoreMessage_MessageType) Descriptor ¶
func (CoreMessage_MessageType) Descriptor() protoreflect.EnumDescriptor
func (CoreMessage_MessageType) Enum ¶
func (x CoreMessage_MessageType) Enum() *CoreMessage_MessageType
func (CoreMessage_MessageType) EnumDescriptor
deprecated
func (CoreMessage_MessageType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CoreMessage_MessageType.Descriptor instead.
func (CoreMessage_MessageType) Number ¶
func (x CoreMessage_MessageType) Number() protoreflect.EnumNumber
func (CoreMessage_MessageType) String ¶
func (x CoreMessage_MessageType) String() string
func (CoreMessage_MessageType) Type ¶
func (CoreMessage_MessageType) Type() protoreflect.EnumType
type CrossContractQueryRequest ¶
type CrossContractQueryRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` Args []*ArgPair `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"` // contains filtered or unexported fields }
func (*CrossContractQueryRequest) Descriptor
deprecated
func (*CrossContractQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CrossContractQueryRequest.ProtoReflect.Descriptor instead.
func (*CrossContractQueryRequest) GetArgs ¶
func (x *CrossContractQueryRequest) GetArgs() []*ArgPair
func (*CrossContractQueryRequest) GetHeader ¶
func (x *CrossContractQueryRequest) GetHeader() *SyscallHeader
func (*CrossContractQueryRequest) GetUri ¶
func (x *CrossContractQueryRequest) GetUri() string
func (*CrossContractQueryRequest) ProtoMessage ¶
func (*CrossContractQueryRequest) ProtoMessage()
func (*CrossContractQueryRequest) ProtoReflect ¶
func (x *CrossContractQueryRequest) ProtoReflect() protoreflect.Message
func (*CrossContractQueryRequest) Reset ¶
func (x *CrossContractQueryRequest) Reset()
func (*CrossContractQueryRequest) String ¶
func (x *CrossContractQueryRequest) String() string
type CrossContractQueryResponse ¶
type CrossContractQueryResponse struct { Response *Response `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*CrossContractQueryResponse) Descriptor
deprecated
func (*CrossContractQueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CrossContractQueryResponse.ProtoReflect.Descriptor instead.
func (*CrossContractQueryResponse) GetResponse ¶
func (x *CrossContractQueryResponse) GetResponse() *Response
func (*CrossContractQueryResponse) ProtoMessage ¶
func (*CrossContractQueryResponse) ProtoMessage()
func (*CrossContractQueryResponse) ProtoReflect ¶
func (x *CrossContractQueryResponse) ProtoReflect() protoreflect.Message
func (*CrossContractQueryResponse) Reset ¶
func (x *CrossContractQueryResponse) Reset()
func (*CrossContractQueryResponse) String ¶
func (x *CrossContractQueryResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetHeader ¶
func (x *DeleteRequest) GetHeader() *SyscallHeader
func (*DeleteRequest) GetKey ¶
func (x *DeleteRequest) GetKey() []byte
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type EmitEventRequest ¶
type EmitEventRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,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"` // contains filtered or unexported fields }
func (*EmitEventRequest) Descriptor
deprecated
func (*EmitEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmitEventRequest.ProtoReflect.Descriptor instead.
func (*EmitEventRequest) GetBody ¶
func (x *EmitEventRequest) GetBody() []byte
func (*EmitEventRequest) GetHeader ¶
func (x *EmitEventRequest) GetHeader() *SyscallHeader
func (*EmitEventRequest) GetName ¶
func (x *EmitEventRequest) GetName() string
func (*EmitEventRequest) ProtoMessage ¶
func (*EmitEventRequest) ProtoMessage()
func (*EmitEventRequest) ProtoReflect ¶
func (x *EmitEventRequest) ProtoReflect() protoreflect.Message
func (*EmitEventRequest) Reset ¶
func (x *EmitEventRequest) Reset()
func (*EmitEventRequest) String ¶
func (x *EmitEventRequest) String() string
type EmitEventResponse ¶
type EmitEventResponse struct {
// contains filtered or unexported fields
}
func (*EmitEventResponse) Descriptor
deprecated
func (*EmitEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmitEventResponse.ProtoReflect.Descriptor instead.
func (*EmitEventResponse) ProtoMessage ¶
func (*EmitEventResponse) ProtoMessage()
func (*EmitEventResponse) ProtoReflect ¶
func (x *EmitEventResponse) ProtoReflect() protoreflect.Message
func (*EmitEventResponse) Reset ¶
func (x *EmitEventResponse) Reset()
func (*EmitEventResponse) String ¶
func (x *EmitEventResponse) String() string
type Event ¶
type Event struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetPayload ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#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. All implementations should embed UnimplementedEventServiceServer for forward compatibility
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"` // contains filtered or unexported fields }
func (*FilteredBlock) Descriptor
deprecated
func (*FilteredBlock) Descriptor() ([]byte, []int)
Deprecated: Use FilteredBlock.ProtoReflect.Descriptor instead.
func (*FilteredBlock) GetBcname ¶
func (x *FilteredBlock) GetBcname() string
func (*FilteredBlock) GetBlockHeight ¶
func (x *FilteredBlock) GetBlockHeight() int64
func (*FilteredBlock) GetBlockid ¶
func (x *FilteredBlock) GetBlockid() string
func (*FilteredBlock) GetTxs ¶
func (x *FilteredBlock) GetTxs() []*FilteredTransaction
func (*FilteredBlock) ProtoMessage ¶
func (*FilteredBlock) ProtoMessage()
func (*FilteredBlock) ProtoReflect ¶
func (x *FilteredBlock) ProtoReflect() protoreflect.Message
func (*FilteredBlock) Reset ¶
func (x *FilteredBlock) Reset()
func (*FilteredBlock) String ¶
func (x *FilteredBlock) String() string
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"` // contains filtered or unexported fields }
func (*FilteredTransaction) Descriptor
deprecated
func (*FilteredTransaction) Descriptor() ([]byte, []int)
Deprecated: Use FilteredTransaction.ProtoReflect.Descriptor instead.
func (*FilteredTransaction) GetEvents ¶
func (x *FilteredTransaction) GetEvents() []*ContractEvent
func (*FilteredTransaction) GetTxid ¶
func (x *FilteredTransaction) GetTxid() string
func (*FilteredTransaction) ProtoMessage ¶
func (*FilteredTransaction) ProtoMessage()
func (*FilteredTransaction) ProtoReflect ¶
func (x *FilteredTransaction) ProtoReflect() protoreflect.Message
func (*FilteredTransaction) Reset ¶
func (x *FilteredTransaction) Reset()
func (*FilteredTransaction) String ¶
func (x *FilteredTransaction) 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"` // contains filtered or unexported fields }
func (*GasPrice) Descriptor
deprecated
func (*GasPrice) GetCpuRate ¶
func (*GasPrice) GetDiskRate ¶
func (*GasPrice) GetMemRate ¶
func (*GasPrice) GetXfeeRate ¶
func (*GasPrice) ProtoMessage ¶
func (*GasPrice) ProtoMessage()
func (*GasPrice) ProtoReflect ¶
func (x *GasPrice) ProtoReflect() protoreflect.Message
type GetAccountAddressesRequest ¶
type GetAccountAddressesRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetAccountAddressesRequest) Descriptor
deprecated
func (*GetAccountAddressesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountAddressesRequest.ProtoReflect.Descriptor instead.
func (*GetAccountAddressesRequest) GetAccount ¶
func (x *GetAccountAddressesRequest) GetAccount() string
func (*GetAccountAddressesRequest) GetHeader ¶
func (x *GetAccountAddressesRequest) GetHeader() *SyscallHeader
func (*GetAccountAddressesRequest) ProtoMessage ¶
func (*GetAccountAddressesRequest) ProtoMessage()
func (*GetAccountAddressesRequest) ProtoReflect ¶
func (x *GetAccountAddressesRequest) ProtoReflect() protoreflect.Message
func (*GetAccountAddressesRequest) Reset ¶
func (x *GetAccountAddressesRequest) Reset()
func (*GetAccountAddressesRequest) String ¶
func (x *GetAccountAddressesRequest) String() string
type GetAccountAddressesResponse ¶
type GetAccountAddressesResponse struct { Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // contains filtered or unexported fields }
func (*GetAccountAddressesResponse) Descriptor
deprecated
func (*GetAccountAddressesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountAddressesResponse.ProtoReflect.Descriptor instead.
func (*GetAccountAddressesResponse) GetAddresses ¶
func (x *GetAccountAddressesResponse) GetAddresses() []string
func (*GetAccountAddressesResponse) ProtoMessage ¶
func (*GetAccountAddressesResponse) ProtoMessage()
func (*GetAccountAddressesResponse) ProtoReflect ¶
func (x *GetAccountAddressesResponse) ProtoReflect() protoreflect.Message
func (*GetAccountAddressesResponse) Reset ¶
func (x *GetAccountAddressesResponse) Reset()
func (*GetAccountAddressesResponse) String ¶
func (x *GetAccountAddressesResponse) String() string
type GetBlockHeaderRequest ¶
type GetBlockHeaderRequest struct { Bcname string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHeaderRequest) Descriptor
deprecated
func (*GetBlockHeaderRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHeaderRequest.ProtoReflect.Descriptor instead.
func (*GetBlockHeaderRequest) GetBcname ¶
func (x *GetBlockHeaderRequest) GetBcname() string
func (*GetBlockHeaderRequest) GetHeight ¶
func (x *GetBlockHeaderRequest) GetHeight() int64
func (*GetBlockHeaderRequest) GetSize ¶
func (x *GetBlockHeaderRequest) GetSize() int64
func (*GetBlockHeaderRequest) ProtoMessage ¶
func (*GetBlockHeaderRequest) ProtoMessage()
func (*GetBlockHeaderRequest) ProtoReflect ¶
func (x *GetBlockHeaderRequest) ProtoReflect() protoreflect.Message
func (*GetBlockHeaderRequest) Reset ¶
func (x *GetBlockHeaderRequest) Reset()
func (*GetBlockHeaderRequest) String ¶
func (x *GetBlockHeaderRequest) String() string
type GetBlockHeaderResponse ¶
type GetBlockHeaderResponse struct { Blocks []*InternalBlock `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHeaderResponse) Descriptor
deprecated
func (*GetBlockHeaderResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHeaderResponse.ProtoReflect.Descriptor instead.
func (*GetBlockHeaderResponse) GetBlocks ¶
func (x *GetBlockHeaderResponse) GetBlocks() []*InternalBlock
func (*GetBlockHeaderResponse) ProtoMessage ¶
func (*GetBlockHeaderResponse) ProtoMessage()
func (*GetBlockHeaderResponse) ProtoReflect ¶
func (x *GetBlockHeaderResponse) ProtoReflect() protoreflect.Message
func (*GetBlockHeaderResponse) Reset ¶
func (x *GetBlockHeaderResponse) Reset()
func (*GetBlockHeaderResponse) String ¶
func (x *GetBlockHeaderResponse) String() string
type GetBlockTxsRequest ¶
type GetBlockTxsRequest struct { Bcname string `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"` Blockid []byte `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"` Txs []int32 `protobuf:"varint,3,rep,packed,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*GetBlockTxsRequest) Descriptor
deprecated
func (*GetBlockTxsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockTxsRequest.ProtoReflect.Descriptor instead.
func (*GetBlockTxsRequest) GetBcname ¶
func (x *GetBlockTxsRequest) GetBcname() string
func (*GetBlockTxsRequest) GetBlockid ¶
func (x *GetBlockTxsRequest) GetBlockid() []byte
func (*GetBlockTxsRequest) GetTxs ¶
func (x *GetBlockTxsRequest) GetTxs() []int32
func (*GetBlockTxsRequest) ProtoMessage ¶
func (*GetBlockTxsRequest) ProtoMessage()
func (*GetBlockTxsRequest) ProtoReflect ¶
func (x *GetBlockTxsRequest) ProtoReflect() protoreflect.Message
func (*GetBlockTxsRequest) Reset ¶
func (x *GetBlockTxsRequest) Reset()
func (*GetBlockTxsRequest) String ¶
func (x *GetBlockTxsRequest) String() string
type GetBlockTxsResponse ¶
type GetBlockTxsResponse struct { Txs []*Transaction `protobuf:"bytes,4,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*GetBlockTxsResponse) Descriptor
deprecated
func (*GetBlockTxsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockTxsResponse.ProtoReflect.Descriptor instead.
func (*GetBlockTxsResponse) GetTxs ¶
func (x *GetBlockTxsResponse) GetTxs() []*Transaction
func (*GetBlockTxsResponse) ProtoMessage ¶
func (*GetBlockTxsResponse) ProtoMessage()
func (*GetBlockTxsResponse) ProtoReflect ¶
func (x *GetBlockTxsResponse) ProtoReflect() protoreflect.Message
func (*GetBlockTxsResponse) Reset ¶
func (x *GetBlockTxsResponse) Reset()
func (*GetBlockTxsResponse) String ¶
func (x *GetBlockTxsResponse) String() string
type GetCallArgsRequest ¶
type GetCallArgsRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // contains filtered or unexported fields }
func (*GetCallArgsRequest) Descriptor
deprecated
func (*GetCallArgsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCallArgsRequest.ProtoReflect.Descriptor instead.
func (*GetCallArgsRequest) GetHeader ¶
func (x *GetCallArgsRequest) GetHeader() *SyscallHeader
func (*GetCallArgsRequest) ProtoMessage ¶
func (*GetCallArgsRequest) ProtoMessage()
func (*GetCallArgsRequest) ProtoReflect ¶
func (x *GetCallArgsRequest) ProtoReflect() protoreflect.Message
func (*GetCallArgsRequest) Reset ¶
func (x *GetCallArgsRequest) Reset()
func (*GetCallArgsRequest) String ¶
func (x *GetCallArgsRequest) String() string
type GetRequest ¶
type GetRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetHeader ¶
func (x *GetRequest) GetHeader() *SyscallHeader
func (*GetRequest) GetKey ¶
func (x *GetRequest) GetKey() []byte
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetValue ¶
func (x *GetResponse) GetValue() []byte
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
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 HDInfo ¶
type HDInfo struct { // HDPublickey HdPublicKey []byte `protobuf:"bytes,1,opt,name=hd_public_key,json=hdPublicKey,proto3" json:"hd_public_key,omitempty"` // original_hash OriginalHash []byte `protobuf:"bytes,2,opt,name=original_hash,json=originalHash,proto3" json:"original_hash,omitempty"` // contains filtered or unexported fields }
func (*HDInfo) Descriptor
deprecated
func (*HDInfo) GetHdPublicKey ¶
func (*HDInfo) GetOriginalHash ¶
func (*HDInfo) ProtoMessage ¶
func (*HDInfo) ProtoMessage()
func (*HDInfo) ProtoReflect ¶
func (x *HDInfo) ProtoReflect() protoreflect.Message
type InternalBlock ¶
type InternalBlock struct { // block version Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // Random number used to avoid replay attacks Nonce int32 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // blockid generate the hash sign of the block used by sha256 Blockid []byte `protobuf:"bytes,3,opt,name=blockid,proto3" json:"blockid,omitempty"` // pre_hash is the parent blockid of the block PreHash []byte `protobuf:"bytes,4,opt,name=pre_hash,json=preHash,proto3" json:"pre_hash,omitempty"` // The miner id Proposer []byte `protobuf:"bytes,5,opt,name=proposer,proto3" json:"proposer,omitempty"` // The sign which miner signed: blockid + nonce + timestamp Sign []byte `protobuf:"bytes,6,opt,name=sign,proto3" json:"sign,omitempty"` // The pk of the miner Pubkey []byte `protobuf:"bytes,7,opt,name=pubkey,proto3" json:"pubkey,omitempty"` // The Merkle Tree root MerkleRoot []byte `protobuf:"bytes,8,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"` // The height of the blockchain Height int64 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` // Timestamp of the block Timestamp int64 `protobuf:"varint,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Transactions of the block, only txid stored on kv, the detail information // stored in another table Transactions []*Transaction `protobuf:"bytes,11,rep,name=transactions,proto3" json:"transactions,omitempty"` // The transaction count of the block TxCount int32 `protobuf:"varint,12,opt,name=tx_count,json=txCount,proto3" json:"tx_count,omitempty"` // 所有交易hash的merkle tree MerkleTree [][]byte `protobuf:"bytes,13,rep,name=merkle_tree,json=merkleTree,proto3" json:"merkle_tree,omitempty"` CurTerm int64 `protobuf:"varint,16,opt,name=curTerm,proto3" json:"curTerm,omitempty"` CurBlockNum int64 `protobuf:"varint,17,opt,name=curBlockNum,proto3" json:"curBlockNum,omitempty"` FailedTxs map[string]string `` // txid -> failed reason /* 177-byte string literal not displayed */ TargetBits int32 `protobuf:"varint,19,opt,name=targetBits,proto3" json:"targetBits,omitempty"` // Justify used in chained-bft Justify *QuorumCert `protobuf:"bytes,20,opt,name=Justify,proto3" json:"Justify,omitempty"` // 下面的属性会动态变化 // If the block is on the trunk InTrunk bool `protobuf:"varint,14,opt,name=in_trunk,json=inTrunk,proto3" json:"in_trunk,omitempty"` // Next next block which on trunk NextHash []byte `protobuf:"bytes,15,opt,name=next_hash,json=nextHash,proto3" json:"next_hash,omitempty"` // contains filtered or unexported fields }
The internal block struct
func (*InternalBlock) Descriptor
deprecated
func (*InternalBlock) Descriptor() ([]byte, []int)
Deprecated: Use InternalBlock.ProtoReflect.Descriptor instead.
func (*InternalBlock) GetBlockid ¶
func (x *InternalBlock) GetBlockid() []byte
func (*InternalBlock) GetCurBlockNum ¶
func (x *InternalBlock) GetCurBlockNum() int64
func (*InternalBlock) GetCurTerm ¶
func (x *InternalBlock) GetCurTerm() int64
func (*InternalBlock) GetFailedTxs ¶
func (x *InternalBlock) GetFailedTxs() map[string]string
func (*InternalBlock) GetHeight ¶
func (x *InternalBlock) GetHeight() int64
func (*InternalBlock) GetInTrunk ¶
func (x *InternalBlock) GetInTrunk() bool
func (*InternalBlock) GetJustify ¶
func (x *InternalBlock) GetJustify() *QuorumCert
func (*InternalBlock) GetMerkleRoot ¶
func (x *InternalBlock) GetMerkleRoot() []byte
func (*InternalBlock) GetMerkleTree ¶
func (x *InternalBlock) GetMerkleTree() [][]byte
func (*InternalBlock) GetNextHash ¶
func (x *InternalBlock) GetNextHash() []byte
func (*InternalBlock) GetNonce ¶
func (x *InternalBlock) GetNonce() int32
func (*InternalBlock) GetPreHash ¶
func (x *InternalBlock) GetPreHash() []byte
func (*InternalBlock) GetProposer ¶
func (x *InternalBlock) GetProposer() []byte
func (*InternalBlock) GetPubkey ¶
func (x *InternalBlock) GetPubkey() []byte
func (*InternalBlock) GetSign ¶
func (x *InternalBlock) GetSign() []byte
func (*InternalBlock) GetTargetBits ¶
func (x *InternalBlock) GetTargetBits() int32
func (*InternalBlock) GetTimestamp ¶
func (x *InternalBlock) GetTimestamp() int64
func (*InternalBlock) GetTransactions ¶
func (x *InternalBlock) GetTransactions() []*Transaction
func (*InternalBlock) GetTxCount ¶
func (x *InternalBlock) GetTxCount() int32
func (*InternalBlock) GetVersion ¶
func (x *InternalBlock) GetVersion() int32
func (*InternalBlock) ProtoMessage ¶
func (*InternalBlock) ProtoMessage()
func (*InternalBlock) ProtoReflect ¶
func (x *InternalBlock) ProtoReflect() protoreflect.Message
func (*InternalBlock) Reset ¶
func (x *InternalBlock) Reset()
func (*InternalBlock) String ¶
func (x *InternalBlock) 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"` // contains filtered or unexported fields }
预执行的请求结构
func (*InvokeRequest) Descriptor
deprecated
func (*InvokeRequest) Descriptor() ([]byte, []int)
Deprecated: Use InvokeRequest.ProtoReflect.Descriptor instead.
func (*InvokeRequest) GetAmount ¶
func (x *InvokeRequest) GetAmount() string
func (*InvokeRequest) GetArgs ¶
func (x *InvokeRequest) GetArgs() map[string][]byte
func (*InvokeRequest) GetContractName ¶
func (x *InvokeRequest) GetContractName() string
func (*InvokeRequest) GetMethodName ¶
func (x *InvokeRequest) GetMethodName() string
func (*InvokeRequest) GetModuleName ¶
func (x *InvokeRequest) GetModuleName() string
func (*InvokeRequest) GetResourceLimits ¶
func (x *InvokeRequest) GetResourceLimits() []*ResourceLimit
func (*InvokeRequest) ProtoMessage ¶
func (*InvokeRequest) ProtoMessage()
func (*InvokeRequest) ProtoReflect ¶
func (x *InvokeRequest) ProtoReflect() protoreflect.Message
func (*InvokeRequest) Reset ¶
func (x *InvokeRequest) Reset()
func (*InvokeRequest) String ¶
func (x *InvokeRequest) String() string
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"` // contains filtered or unexported fields }
预执行的返回结构
func (*InvokeResponse) Descriptor
deprecated
func (*InvokeResponse) Descriptor() ([]byte, []int)
Deprecated: Use InvokeResponse.ProtoReflect.Descriptor instead.
func (*InvokeResponse) GetGasUsed ¶
func (x *InvokeResponse) GetGasUsed() int64
func (*InvokeResponse) GetInputs ¶
func (x *InvokeResponse) GetInputs() []*TxInputExt
func (*InvokeResponse) GetOutputs ¶
func (x *InvokeResponse) GetOutputs() []*TxOutputExt
func (*InvokeResponse) GetRequests ¶
func (x *InvokeResponse) GetRequests() []*InvokeRequest
func (*InvokeResponse) GetResponse ¶
func (x *InvokeResponse) GetResponse() [][]byte
func (*InvokeResponse) GetResponses ¶
func (x *InvokeResponse) GetResponses() []*ContractResponse
func (*InvokeResponse) GetUtxoInputs ¶
func (x *InvokeResponse) GetUtxoInputs() []*TxInput
func (*InvokeResponse) GetUtxoOutputs ¶
func (x *InvokeResponse) GetUtxoOutputs() []*TxOutput
func (*InvokeResponse) ProtoMessage ¶
func (*InvokeResponse) ProtoMessage()
func (*InvokeResponse) ProtoReflect ¶
func (x *InvokeResponse) ProtoReflect() protoreflect.Message
func (*InvokeResponse) Reset ¶
func (x *InvokeResponse) Reset()
func (*InvokeResponse) String ¶
func (x *InvokeResponse) String() string
type IteratorItem ¶
type IteratorItem struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*IteratorItem) Descriptor
deprecated
func (*IteratorItem) Descriptor() ([]byte, []int)
Deprecated: Use IteratorItem.ProtoReflect.Descriptor instead.
func (*IteratorItem) GetKey ¶
func (x *IteratorItem) GetKey() []byte
func (*IteratorItem) GetValue ¶
func (x *IteratorItem) GetValue() []byte
func (*IteratorItem) ProtoMessage ¶
func (*IteratorItem) ProtoMessage()
func (*IteratorItem) ProtoReflect ¶
func (x *IteratorItem) ProtoReflect() protoreflect.Message
func (*IteratorItem) Reset ¶
func (x *IteratorItem) Reset()
func (*IteratorItem) String ¶
func (x *IteratorItem) String() string
type IteratorRequest ¶
type IteratorRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` // start和limit为[start, limit) Start []byte `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"` Limit []byte `protobuf:"bytes,3,opt,name=limit,proto3" json:"limit,omitempty"` // cap代表一次请求的最大IteratorItem个数,如果为0则采用xchain的默认配置 Cap int32 `protobuf:"varint,4,opt,name=cap,proto3" json:"cap,omitempty"` // contains filtered or unexported fields }
func (*IteratorRequest) Descriptor
deprecated
func (*IteratorRequest) Descriptor() ([]byte, []int)
Deprecated: Use IteratorRequest.ProtoReflect.Descriptor instead.
func (*IteratorRequest) GetCap ¶
func (x *IteratorRequest) GetCap() int32
func (*IteratorRequest) GetHeader ¶
func (x *IteratorRequest) GetHeader() *SyscallHeader
func (*IteratorRequest) GetLimit ¶
func (x *IteratorRequest) GetLimit() []byte
func (*IteratorRequest) GetStart ¶
func (x *IteratorRequest) GetStart() []byte
func (*IteratorRequest) ProtoMessage ¶
func (*IteratorRequest) ProtoMessage()
func (*IteratorRequest) ProtoReflect ¶
func (x *IteratorRequest) ProtoReflect() protoreflect.Message
func (*IteratorRequest) Reset ¶
func (x *IteratorRequest) Reset()
func (*IteratorRequest) String ¶
func (x *IteratorRequest) String() string
type IteratorResponse ¶
type IteratorResponse struct { Items []*IteratorItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*IteratorResponse) Descriptor
deprecated
func (*IteratorResponse) Descriptor() ([]byte, []int)
Deprecated: Use IteratorResponse.ProtoReflect.Descriptor instead.
func (*IteratorResponse) GetItems ¶
func (x *IteratorResponse) GetItems() []*IteratorItem
func (*IteratorResponse) ProtoMessage ¶
func (*IteratorResponse) ProtoMessage()
func (*IteratorResponse) ProtoReflect ¶
func (x *IteratorResponse) ProtoReflect() protoreflect.Message
func (*IteratorResponse) Reset ¶
func (x *IteratorResponse) Reset()
func (*IteratorResponse) String ¶
func (x *IteratorResponse) String() string
type LedgerMeta ¶
type LedgerMeta struct { // root block id RootBlockid []byte `protobuf:"bytes,1,opt,name=root_blockid,json=rootBlockid,proto3" json:"root_blockid,omitempty"` // tip block id TipBlockid []byte `protobuf:"bytes,2,opt,name=tip_blockid,json=tipBlockid,proto3" json:"tip_blockid,omitempty"` // the height of the trunk TrunkHeight int64 `protobuf:"varint,3,opt,name=trunk_height,json=trunkHeight,proto3" json:"trunk_height,omitempty"` // contains filtered or unexported fields }
Ledger metadata
func (*LedgerMeta) Descriptor
deprecated
func (*LedgerMeta) Descriptor() ([]byte, []int)
Deprecated: Use LedgerMeta.ProtoReflect.Descriptor instead.
func (*LedgerMeta) GetRootBlockid ¶
func (x *LedgerMeta) GetRootBlockid() []byte
func (*LedgerMeta) GetTipBlockid ¶
func (x *LedgerMeta) GetTipBlockid() []byte
func (*LedgerMeta) GetTrunkHeight ¶
func (x *LedgerMeta) GetTrunkHeight() int64
func (*LedgerMeta) ProtoMessage ¶
func (*LedgerMeta) ProtoMessage()
func (*LedgerMeta) ProtoReflect ¶
func (x *LedgerMeta) ProtoReflect() protoreflect.Message
func (*LedgerMeta) Reset ¶
func (x *LedgerMeta) Reset()
func (*LedgerMeta) String ¶
func (x *LedgerMeta) String() string
type ModifyBlock ¶
type ModifyBlock struct { // txid交易被effective_txid的交易提出可修改区块链的请求 EffectiveTxid string `protobuf:"bytes,1,opt,name=effective_txid,json=effectiveTxid,proto3" json:"effective_txid,omitempty"` // 本交易是否已被修改标记 Marked bool `protobuf:"varint,2,opt,name=marked,proto3" json:"marked,omitempty"` // txid交易被修改生效的高度 EffectiveHeight int64 `protobuf:"varint,3,opt,name=effective_height,json=effectiveHeight,proto3" json:"effective_height,omitempty"` // 监管的public key PublicKey string `protobuf:"bytes,4,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // 监管地址对修改的交易id的签名 Sign string `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"` // contains filtered or unexported fields }
func (*ModifyBlock) Descriptor
deprecated
func (*ModifyBlock) Descriptor() ([]byte, []int)
Deprecated: Use ModifyBlock.ProtoReflect.Descriptor instead.
func (*ModifyBlock) GetEffectiveHeight ¶
func (x *ModifyBlock) GetEffectiveHeight() int64
func (*ModifyBlock) GetEffectiveTxid ¶
func (x *ModifyBlock) GetEffectiveTxid() string
func (*ModifyBlock) GetMarked ¶
func (x *ModifyBlock) GetMarked() bool
func (*ModifyBlock) GetPublicKey ¶
func (x *ModifyBlock) GetPublicKey() string
func (*ModifyBlock) GetSign ¶
func (x *ModifyBlock) GetSign() string
func (*ModifyBlock) ProtoMessage ¶
func (*ModifyBlock) ProtoMessage()
func (*ModifyBlock) ProtoReflect ¶
func (x *ModifyBlock) ProtoReflect() protoreflect.Message
func (*ModifyBlock) Reset ¶
func (x *ModifyBlock) Reset()
func (*ModifyBlock) String ¶
func (x *ModifyBlock) String() string
type NativeCallRequest ¶
type NativeCallRequest struct { // The context id of this request Ctxid int64 `protobuf:"varint,1,opt,name=ctxid,proto3" json:"ctxid,omitempty"` // contains filtered or unexported fields }
func (*NativeCallRequest) Descriptor
deprecated
func (*NativeCallRequest) Descriptor() ([]byte, []int)
Deprecated: Use NativeCallRequest.ProtoReflect.Descriptor instead.
func (*NativeCallRequest) GetCtxid ¶
func (x *NativeCallRequest) GetCtxid() int64
func (*NativeCallRequest) ProtoMessage ¶
func (*NativeCallRequest) ProtoMessage()
func (*NativeCallRequest) ProtoReflect ¶
func (x *NativeCallRequest) ProtoReflect() protoreflect.Message
func (*NativeCallRequest) Reset ¶
func (x *NativeCallRequest) Reset()
func (*NativeCallRequest) String ¶
func (x *NativeCallRequest) String() string
type NativeCallResponse ¶
type NativeCallResponse struct {
// contains filtered or unexported fields
}
func (*NativeCallResponse) Descriptor
deprecated
func (*NativeCallResponse) Descriptor() ([]byte, []int)
Deprecated: Use NativeCallResponse.ProtoReflect.Descriptor instead.
func (*NativeCallResponse) ProtoMessage ¶
func (*NativeCallResponse) ProtoMessage()
func (*NativeCallResponse) ProtoReflect ¶
func (x *NativeCallResponse) ProtoReflect() protoreflect.Message
func (*NativeCallResponse) Reset ¶
func (x *NativeCallResponse) Reset()
func (*NativeCallResponse) String ¶
func (x *NativeCallResponse) String() string
type NativeCodeClient ¶
type NativeCodeClient interface { Call(ctx context.Context, in *NativeCallRequest, opts ...grpc.CallOption) (*NativeCallResponse, error) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) }
NativeCodeClient is the client API for NativeCode service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNativeCodeClient ¶
func NewNativeCodeClient(cc grpc.ClientConnInterface) NativeCodeClient
type NativeCodeServer ¶
type NativeCodeServer interface { Call(context.Context, *NativeCallRequest) (*NativeCallResponse, error) Ping(context.Context, *PingRequest) (*PingResponse, error) }
NativeCodeServer is the server API for NativeCode service. All implementations should embed UnimplementedNativeCodeServer for forward compatibility
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewP2PServiceClient ¶
func NewP2PServiceClient(cc grpc.ClientConnInterface) P2PServiceClient
type P2PServiceServer ¶
type P2PServiceServer interface {
SendP2PMessage(P2PService_SendP2PMessageServer) error
}
P2PServiceServer is the server API for P2PService service. All implementations should embed UnimplementedP2PServiceServer for forward compatibility
type P2PService_SendP2PMessageClient ¶
type P2PService_SendP2PMessageClient interface { Send(*CoreMessage) error Recv() (*CoreMessage, error) grpc.ClientStream }
type P2PService_SendP2PMessageServer ¶
type P2PService_SendP2PMessageServer interface { Send(*CoreMessage) error Recv() (*CoreMessage, 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"` // contains filtered or unexported fields }
func (*PeerInfo) Descriptor
deprecated
func (*PeerInfo) GetAccount ¶
func (*PeerInfo) GetAddress ¶
func (*PeerInfo) ProtoMessage ¶
func (*PeerInfo) ProtoMessage()
func (*PeerInfo) ProtoReflect ¶
func (x *PeerInfo) ProtoReflect() protoreflect.Message
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"` // 取决于用哪种rule, 可以表示签名率,签名数或权重阈值 // contains filtered or unexported fields }
func (*PermissionModel) Descriptor
deprecated
func (*PermissionModel) Descriptor() ([]byte, []int)
Deprecated: Use PermissionModel.ProtoReflect.Descriptor instead.
func (*PermissionModel) GetAcceptValue ¶
func (x *PermissionModel) GetAcceptValue() float64
func (*PermissionModel) GetRule ¶
func (x *PermissionModel) GetRule() PermissionRule
func (*PermissionModel) ProtoMessage ¶
func (*PermissionModel) ProtoMessage()
func (*PermissionModel) ProtoReflect ¶
func (x *PermissionModel) ProtoReflect() protoreflect.Message
func (*PermissionModel) Reset ¶
func (x *PermissionModel) Reset()
func (*PermissionModel) String ¶
func (x *PermissionModel) String() string
type PermissionRule ¶
type PermissionRule int32
-------- Account and Permission Section --------
const ( PermissionRule_NULL PermissionRule = 0 // 无权限控制 PermissionRule_SIGN_THRESHOLD PermissionRule = 1 // 签名阈值策略 PermissionRule_SIGN_AKSET PermissionRule = 2 // AKSet签名策略 PermissionRule_SIGN_RATE PermissionRule = 3 // 签名率策略 PermissionRule_SIGN_SUM PermissionRule = 4 // 签名个数策略vim PermissionRule_CA_SERVER PermissionRule = 5 // CA服务器鉴权 PermissionRule_COMMUNITY_VOTE PermissionRule = 6 // 社区治理 )
func (PermissionRule) Descriptor ¶
func (PermissionRule) Descriptor() protoreflect.EnumDescriptor
func (PermissionRule) Enum ¶
func (x PermissionRule) Enum() *PermissionRule
func (PermissionRule) EnumDescriptor
deprecated
func (PermissionRule) EnumDescriptor() ([]byte, []int)
Deprecated: Use PermissionRule.Descriptor instead.
func (PermissionRule) Number ¶
func (x PermissionRule) Number() protoreflect.EnumNumber
func (PermissionRule) String ¶
func (x PermissionRule) String() string
func (PermissionRule) Type ¶
func (PermissionRule) Type() protoreflect.EnumType
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct {
// contains filtered or unexported fields
}
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type PostLogRequest ¶
type PostLogRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Entry string `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"` // contains filtered or unexported fields }
func (*PostLogRequest) Descriptor
deprecated
func (*PostLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostLogRequest.ProtoReflect.Descriptor instead.
func (*PostLogRequest) GetEntry ¶
func (x *PostLogRequest) GetEntry() string
func (*PostLogRequest) GetHeader ¶
func (x *PostLogRequest) GetHeader() *SyscallHeader
func (*PostLogRequest) ProtoMessage ¶
func (*PostLogRequest) ProtoMessage()
func (*PostLogRequest) ProtoReflect ¶
func (x *PostLogRequest) ProtoReflect() protoreflect.Message
func (*PostLogRequest) Reset ¶
func (x *PostLogRequest) Reset()
func (*PostLogRequest) String ¶
func (x *PostLogRequest) String() string
type PostLogResponse ¶
type PostLogResponse struct { Entry string `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` // contains filtered or unexported fields }
func (*PostLogResponse) Descriptor
deprecated
func (*PostLogResponse) Descriptor() ([]byte, []int)
Deprecated: Use PostLogResponse.ProtoReflect.Descriptor instead.
func (*PostLogResponse) GetEntry ¶
func (x *PostLogResponse) GetEntry() string
func (*PostLogResponse) ProtoMessage ¶
func (*PostLogResponse) ProtoMessage()
func (*PostLogResponse) ProtoReflect ¶
func (x *PostLogResponse) ProtoReflect() protoreflect.Message
func (*PostLogResponse) Reset ¶
func (x *PostLogResponse) Reset()
func (*PostLogResponse) String ¶
func (x *PostLogResponse) String() string
type PreExecReq ¶
type PreExecReq struct { Header *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"` Requests []*InvokeRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"` Initiator string `protobuf:"bytes,4,opt,name=initiator,proto3" json:"initiator,omitempty"` AuthRequire []string `protobuf:"bytes,5,rep,name=authRequire,proto3" json:"authRequire,omitempty"` // contains filtered or unexported fields }
func (*PreExecReq) Descriptor
deprecated
func (*PreExecReq) Descriptor() ([]byte, []int)
Deprecated: Use PreExecReq.ProtoReflect.Descriptor instead.
func (*PreExecReq) GetAuthRequire ¶
func (x *PreExecReq) GetAuthRequire() []string
func (*PreExecReq) GetBcname ¶
func (x *PreExecReq) GetBcname() string
func (*PreExecReq) GetHeader ¶
func (x *PreExecReq) GetHeader() *ReqHeader
func (*PreExecReq) GetInitiator ¶
func (x *PreExecReq) GetInitiator() string
func (*PreExecReq) GetRequests ¶
func (x *PreExecReq) GetRequests() []*InvokeRequest
func (*PreExecReq) ProtoMessage ¶
func (*PreExecReq) ProtoMessage()
func (*PreExecReq) ProtoReflect ¶
func (x *PreExecReq) ProtoReflect() protoreflect.Message
func (*PreExecReq) Reset ¶
func (x *PreExecReq) Reset()
func (*PreExecReq) String ¶
func (x *PreExecReq) String() string
type PreExecResp ¶
type PreExecResp struct { Header *RespHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"` Response *InvokeResponse `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*PreExecResp) Descriptor
deprecated
func (*PreExecResp) Descriptor() ([]byte, []int)
Deprecated: Use PreExecResp.ProtoReflect.Descriptor instead.
func (*PreExecResp) GetBcname ¶
func (x *PreExecResp) GetBcname() string
func (*PreExecResp) GetHeader ¶
func (x *PreExecResp) GetHeader() *RespHeader
func (*PreExecResp) GetResponse ¶
func (x *PreExecResp) GetResponse() *InvokeResponse
func (*PreExecResp) ProtoMessage ¶
func (*PreExecResp) ProtoMessage()
func (*PreExecResp) ProtoReflect ¶
func (x *PreExecResp) ProtoReflect() protoreflect.Message
func (*PreExecResp) Reset ¶
func (x *PreExecResp) Reset()
func (*PreExecResp) String ¶
func (x *PreExecResp) String() string
type Proposal ¶
type Proposal struct { Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` Args map[string][]byte `` /* 149-byte string literal not displayed */ Trigger *TriggerDesc `protobuf:"bytes,4,opt,name=trigger,proto3" json:"trigger,omitempty"` VoteAmount string `protobuf:"bytes,5,opt,name=vote_amount,json=voteAmount,proto3" json:"vote_amount,omitempty"` Status ProposalStatus `protobuf:"varint,6,opt,name=status,proto3,enum=protos.ProposalStatus" json:"status,omitempty"` Proposer string `protobuf:"bytes,7,opt,name=proposer,proto3" json:"proposer,omitempty"` // 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 ProposalMsg ¶
type ProposalMsg struct { // 生产高度 ProposalView int64 `protobuf:"varint,1,opt,name=proposalView,proto3" json:"proposalView,omitempty"` ProposalId []byte `protobuf:"bytes,2,opt,name=proposalId,proto3" json:"proposalId,omitempty"` // 生产时间 Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // 上一个区块基本信息 JustifyQC []byte `protobuf:"bytes,4,opt,name=JustifyQC,proto3" json:"JustifyQC,omitempty"` // 签名 Sign *QuorumCertSign `protobuf:"bytes,5,opt,name=Sign,proto3" json:"Sign,omitempty"` // 消息摘要 MsgDigest []byte `protobuf:"bytes,6,opt,name=MsgDigest,proto3" json:"MsgDigest,omitempty"` // contains filtered or unexported fields }
ProposalMsg 是chained-bft中定义的Block形式,区别在于其有一个parentQC,该存储只供chained-bft类使用
func (*ProposalMsg) Descriptor
deprecated
func (*ProposalMsg) Descriptor() ([]byte, []int)
Deprecated: Use ProposalMsg.ProtoReflect.Descriptor instead.
func (*ProposalMsg) GetJustifyQC ¶
func (x *ProposalMsg) GetJustifyQC() []byte
func (*ProposalMsg) GetMsgDigest ¶
func (x *ProposalMsg) GetMsgDigest() []byte
func (*ProposalMsg) GetProposalId ¶
func (x *ProposalMsg) GetProposalId() []byte
func (*ProposalMsg) GetProposalView ¶
func (x *ProposalMsg) GetProposalView() int64
func (*ProposalMsg) GetSign ¶
func (x *ProposalMsg) GetSign() *QuorumCertSign
func (*ProposalMsg) GetTimestamp ¶
func (x *ProposalMsg) GetTimestamp() int64
func (*ProposalMsg) ProtoMessage ¶
func (*ProposalMsg) ProtoMessage()
func (*ProposalMsg) ProtoReflect ¶
func (x *ProposalMsg) ProtoReflect() protoreflect.Message
func (*ProposalMsg) Reset ¶
func (x *ProposalMsg) Reset()
func (*ProposalMsg) String ¶
func (x *ProposalMsg) 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 PutRequest ¶
type PutRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,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"` // contains filtered or unexported fields }
func (*PutRequest) Descriptor
deprecated
func (*PutRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
func (*PutRequest) GetHeader ¶
func (x *PutRequest) GetHeader() *SyscallHeader
func (*PutRequest) GetKey ¶
func (x *PutRequest) GetKey() []byte
func (*PutRequest) GetValue ¶
func (x *PutRequest) GetValue() []byte
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) ProtoReflect ¶
func (x *PutRequest) ProtoReflect() protoreflect.Message
func (*PutRequest) Reset ¶
func (x *PutRequest) Reset()
func (*PutRequest) String ¶
func (x *PutRequest) String() string
type PutResponse ¶
type PutResponse struct {
// contains filtered or unexported fields
}
func (*PutResponse) Descriptor
deprecated
func (*PutResponse) Descriptor() ([]byte, []int)
Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.
func (*PutResponse) ProtoMessage ¶
func (*PutResponse) ProtoMessage()
func (*PutResponse) ProtoReflect ¶
func (x *PutResponse) ProtoReflect() protoreflect.Message
func (*PutResponse) Reset ¶
func (x *PutResponse) Reset()
func (*PutResponse) String ¶
func (x *PutResponse) String() string
type QCSignInfos ¶
type QCSignInfos struct { // QCSignInfos QCSignInfos []*SignInfo `protobuf:"bytes,1,rep,name=QCSignInfos,proto3" json:"QCSignInfos,omitempty"` // contains filtered or unexported fields }
QCSignInfos is the signs of the leader gathered from replicas of a specifically certType. A slice of signs is used at present. TODO @qizheng09: It will be change to Threshold-Signatures after Crypto lib support Threshold-Signatures.
func (*QCSignInfos) Descriptor
deprecated
func (*QCSignInfos) Descriptor() ([]byte, []int)
Deprecated: Use QCSignInfos.ProtoReflect.Descriptor instead.
func (*QCSignInfos) GetQCSignInfos ¶
func (x *QCSignInfos) GetQCSignInfos() []*SignInfo
func (*QCSignInfos) ProtoMessage ¶
func (*QCSignInfos) ProtoMessage()
func (*QCSignInfos) ProtoReflect ¶
func (x *QCSignInfos) ProtoReflect() protoreflect.Message
func (*QCSignInfos) Reset ¶
func (x *QCSignInfos) Reset()
func (*QCSignInfos) String ¶
func (x *QCSignInfos) String() string
type QCState ¶
type QCState int32
QCState is the phase of hotstuff
func (QCState) Descriptor ¶
func (QCState) Descriptor() protoreflect.EnumDescriptor
func (QCState) EnumDescriptor
deprecated
func (QCState) Number ¶
func (x QCState) Number() protoreflect.EnumNumber
func (QCState) Type ¶
func (QCState) Type() protoreflect.EnumType
type QueryBlockReq ¶
type QueryBlockReq struct { Header *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"` BlockId []byte `protobuf:"bytes,3,opt,name=blockId,proto3" json:"blockId,omitempty"` NeedContent bool `protobuf:"varint,4,opt,name=needContent,proto3" json:"needContent,omitempty"` // contains filtered or unexported fields }
func (*QueryBlockReq) Descriptor
deprecated
func (*QueryBlockReq) Descriptor() ([]byte, []int)
Deprecated: Use QueryBlockReq.ProtoReflect.Descriptor instead.
func (*QueryBlockReq) GetBcname ¶
func (x *QueryBlockReq) GetBcname() string
func (*QueryBlockReq) GetBlockId ¶
func (x *QueryBlockReq) GetBlockId() []byte
func (*QueryBlockReq) GetHeader ¶
func (x *QueryBlockReq) GetHeader() *ReqHeader
func (*QueryBlockReq) GetNeedContent ¶
func (x *QueryBlockReq) GetNeedContent() bool
func (*QueryBlockReq) ProtoMessage ¶
func (*QueryBlockReq) ProtoMessage()
func (*QueryBlockReq) ProtoReflect ¶
func (x *QueryBlockReq) ProtoReflect() protoreflect.Message
func (*QueryBlockReq) Reset ¶
func (x *QueryBlockReq) Reset()
func (*QueryBlockReq) String ¶
func (x *QueryBlockReq) String() string
type QueryBlockRequest ¶
type QueryBlockRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Blockid string `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"` // contains filtered or unexported fields }
func (*QueryBlockRequest) Descriptor
deprecated
func (*QueryBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryBlockRequest.ProtoReflect.Descriptor instead.
func (*QueryBlockRequest) GetBlockid ¶
func (x *QueryBlockRequest) GetBlockid() string
func (*QueryBlockRequest) GetHeader ¶
func (x *QueryBlockRequest) GetHeader() *SyscallHeader
func (*QueryBlockRequest) ProtoMessage ¶
func (*QueryBlockRequest) ProtoMessage()
func (*QueryBlockRequest) ProtoReflect ¶
func (x *QueryBlockRequest) ProtoReflect() protoreflect.Message
func (*QueryBlockRequest) Reset ¶
func (x *QueryBlockRequest) Reset()
func (*QueryBlockRequest) String ¶
func (x *QueryBlockRequest) String() string
type QueryBlockResp ¶
type QueryBlockResp struct { Header *RespHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Status BlockStatus `protobuf:"varint,2,opt,name=status,proto3,enum=protos.BlockStatus" json:"status,omitempty"` Block *InternalBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"` // contains filtered or unexported fields }
func (*QueryBlockResp) Descriptor
deprecated
func (*QueryBlockResp) Descriptor() ([]byte, []int)
Deprecated: Use QueryBlockResp.ProtoReflect.Descriptor instead.
func (*QueryBlockResp) GetBlock ¶
func (x *QueryBlockResp) GetBlock() *InternalBlock
func (*QueryBlockResp) GetHeader ¶
func (x *QueryBlockResp) GetHeader() *RespHeader
func (*QueryBlockResp) GetStatus ¶
func (x *QueryBlockResp) GetStatus() BlockStatus
func (*QueryBlockResp) ProtoMessage ¶
func (*QueryBlockResp) ProtoMessage()
func (*QueryBlockResp) ProtoReflect ¶
func (x *QueryBlockResp) ProtoReflect() protoreflect.Message
func (*QueryBlockResp) Reset ¶
func (x *QueryBlockResp) Reset()
func (*QueryBlockResp) String ¶
func (x *QueryBlockResp) String() string
type QueryBlockResponse ¶
type QueryBlockResponse struct { // defined in user code Block *Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // contains filtered or unexported fields }
func (*QueryBlockResponse) Descriptor
deprecated
func (*QueryBlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryBlockResponse.ProtoReflect.Descriptor instead.
func (*QueryBlockResponse) GetBlock ¶
func (x *QueryBlockResponse) GetBlock() *Block
func (*QueryBlockResponse) ProtoMessage ¶
func (*QueryBlockResponse) ProtoMessage()
func (*QueryBlockResponse) ProtoReflect ¶
func (x *QueryBlockResponse) ProtoReflect() protoreflect.Message
func (*QueryBlockResponse) Reset ¶
func (x *QueryBlockResponse) Reset()
func (*QueryBlockResponse) String ¶
func (x *QueryBlockResponse) String() string
type QueryChainStatusReq ¶
type QueryChainStatusReq struct { Header *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"` NeedBranchBlock bool `protobuf:"varint,3,opt,name=needBranchBlock,proto3" json:"needBranchBlock,omitempty"` // contains filtered or unexported fields }
func (*QueryChainStatusReq) Descriptor
deprecated
func (*QueryChainStatusReq) Descriptor() ([]byte, []int)
Deprecated: Use QueryChainStatusReq.ProtoReflect.Descriptor instead.
func (*QueryChainStatusReq) GetBcname ¶
func (x *QueryChainStatusReq) GetBcname() string
func (*QueryChainStatusReq) GetHeader ¶
func (x *QueryChainStatusReq) GetHeader() *ReqHeader
func (*QueryChainStatusReq) GetNeedBranchBlock ¶
func (x *QueryChainStatusReq) GetNeedBranchBlock() bool
func (*QueryChainStatusReq) ProtoMessage ¶
func (*QueryChainStatusReq) ProtoMessage()
func (*QueryChainStatusReq) ProtoReflect ¶
func (x *QueryChainStatusReq) ProtoReflect() protoreflect.Message
func (*QueryChainStatusReq) Reset ¶
func (x *QueryChainStatusReq) Reset()
func (*QueryChainStatusReq) String ¶
func (x *QueryChainStatusReq) String() string
type QueryChainStatusResp ¶
type QueryChainStatusResp struct { Header *RespHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"` LedgerMeta *LedgerMeta `protobuf:"bytes,3,opt,name=ledgerMeta,proto3" json:"ledgerMeta,omitempty"` UtxoMeta *UtxoMeta `protobuf:"bytes,4,opt,name=utxoMeta,proto3" json:"utxoMeta,omitempty"` BranchBlockId []string `protobuf:"bytes,5,rep,name=branchBlockId,proto3" json:"branchBlockId,omitempty"` // contains filtered or unexported fields }
func (*QueryChainStatusResp) Descriptor
deprecated
func (*QueryChainStatusResp) Descriptor() ([]byte, []int)
Deprecated: Use QueryChainStatusResp.ProtoReflect.Descriptor instead.
func (*QueryChainStatusResp) GetBcname ¶
func (x *QueryChainStatusResp) GetBcname() string
func (*QueryChainStatusResp) GetBranchBlockId ¶
func (x *QueryChainStatusResp) GetBranchBlockId() []string
func (*QueryChainStatusResp) GetHeader ¶
func (x *QueryChainStatusResp) GetHeader() *RespHeader
func (*QueryChainStatusResp) GetLedgerMeta ¶
func (x *QueryChainStatusResp) GetLedgerMeta() *LedgerMeta
func (*QueryChainStatusResp) GetUtxoMeta ¶
func (x *QueryChainStatusResp) GetUtxoMeta() *UtxoMeta
func (*QueryChainStatusResp) ProtoMessage ¶
func (*QueryChainStatusResp) ProtoMessage()
func (*QueryChainStatusResp) ProtoReflect ¶
func (x *QueryChainStatusResp) ProtoReflect() protoreflect.Message
func (*QueryChainStatusResp) Reset ¶
func (x *QueryChainStatusResp) Reset()
func (*QueryChainStatusResp) String ¶
func (x *QueryChainStatusResp) String() string
type QueryTxReq ¶
type QueryTxReq struct { Header *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"` Txid []byte `protobuf:"bytes,3,opt,name=txid,proto3" json:"txid,omitempty"` // contains filtered or unexported fields }
func (*QueryTxReq) Descriptor
deprecated
func (*QueryTxReq) Descriptor() ([]byte, []int)
Deprecated: Use QueryTxReq.ProtoReflect.Descriptor instead.
func (*QueryTxReq) GetBcname ¶
func (x *QueryTxReq) GetBcname() string
func (*QueryTxReq) GetHeader ¶
func (x *QueryTxReq) GetHeader() *ReqHeader
func (*QueryTxReq) GetTxid ¶
func (x *QueryTxReq) GetTxid() []byte
func (*QueryTxReq) ProtoMessage ¶
func (*QueryTxReq) ProtoMessage()
func (*QueryTxReq) ProtoReflect ¶
func (x *QueryTxReq) ProtoReflect() protoreflect.Message
func (*QueryTxReq) Reset ¶
func (x *QueryTxReq) Reset()
func (*QueryTxReq) String ¶
func (x *QueryTxReq) String() string
type QueryTxRequest ¶
type QueryTxRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Txid string `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"` // contains filtered or unexported fields }
func (*QueryTxRequest) Descriptor
deprecated
func (*QueryTxRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTxRequest.ProtoReflect.Descriptor instead.
func (*QueryTxRequest) GetHeader ¶
func (x *QueryTxRequest) GetHeader() *SyscallHeader
func (*QueryTxRequest) GetTxid ¶
func (x *QueryTxRequest) GetTxid() string
func (*QueryTxRequest) ProtoMessage ¶
func (*QueryTxRequest) ProtoMessage()
func (*QueryTxRequest) ProtoReflect ¶
func (x *QueryTxRequest) ProtoReflect() protoreflect.Message
func (*QueryTxRequest) Reset ¶
func (x *QueryTxRequest) Reset()
func (*QueryTxRequest) String ¶
func (x *QueryTxRequest) String() string
type QueryTxResp ¶
type QueryTxResp struct { Header *RespHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Status TransactionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=protos.TransactionStatus" json:"status,omitempty"` Distance int64 `protobuf:"varint,3,opt,name=distance,proto3" json:"distance,omitempty"` Tx *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // contains filtered or unexported fields }
func (*QueryTxResp) Descriptor
deprecated
func (*QueryTxResp) Descriptor() ([]byte, []int)
Deprecated: Use QueryTxResp.ProtoReflect.Descriptor instead.
func (*QueryTxResp) GetDistance ¶
func (x *QueryTxResp) GetDistance() int64
func (*QueryTxResp) GetHeader ¶
func (x *QueryTxResp) GetHeader() *RespHeader
func (*QueryTxResp) GetStatus ¶
func (x *QueryTxResp) GetStatus() TransactionStatus
func (*QueryTxResp) GetTx ¶
func (x *QueryTxResp) GetTx() *Transaction
func (*QueryTxResp) ProtoMessage ¶
func (*QueryTxResp) ProtoMessage()
func (*QueryTxResp) ProtoReflect ¶
func (x *QueryTxResp) ProtoReflect() protoreflect.Message
func (*QueryTxResp) Reset ¶
func (x *QueryTxResp) Reset()
func (*QueryTxResp) String ¶
func (x *QueryTxResp) String() string
type QueryTxResponse ¶
type QueryTxResponse struct { // defined in user code Tx *Transaction `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` // contains filtered or unexported fields }
func (*QueryTxResponse) Descriptor
deprecated
func (*QueryTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryTxResponse.ProtoReflect.Descriptor instead.
func (*QueryTxResponse) GetTx ¶
func (x *QueryTxResponse) GetTx() *Transaction
func (*QueryTxResponse) ProtoMessage ¶
func (*QueryTxResponse) ProtoMessage()
func (*QueryTxResponse) ProtoReflect ¶
func (x *QueryTxResponse) ProtoReflect() protoreflect.Message
func (*QueryTxResponse) Reset ¶
func (x *QueryTxResponse) Reset()
func (*QueryTxResponse) String ¶
func (x *QueryTxResponse) String() string
type QuorumCert ¶
type QuorumCert struct { // The id of Proposal this QC certified. ProposalId []byte `protobuf:"bytes,1,opt,name=ProposalId,proto3" json:"ProposalId,omitempty"` // The msg of Proposal this QC certified. ProposalMsg []byte `protobuf:"bytes,2,opt,name=ProposalMsg,proto3" json:"ProposalMsg,omitempty"` // The current type of this QC certified. // the type contains `NEW_VIEW`, `PREPARE` Type QCState `protobuf:"varint,3,opt,name=Type,proto3,enum=protos.QCState" json:"Type,omitempty"` // The view number of this QC certified. ViewNumber int64 `protobuf:"varint,4,opt,name=ViewNumber,proto3" json:"ViewNumber,omitempty"` // SignInfos is the signs of the leader gathered from replicas // of a specifically certType. SignInfos *QCSignInfos `protobuf:"bytes,5,opt,name=SignInfos,proto3" json:"SignInfos,omitempty"` // contains filtered or unexported fields }
QuorumCert is a data type that combines a collection of signatures from replicas.
func (*QuorumCert) Descriptor
deprecated
func (*QuorumCert) Descriptor() ([]byte, []int)
Deprecated: Use QuorumCert.ProtoReflect.Descriptor instead.
func (*QuorumCert) GetProposalId ¶
func (x *QuorumCert) GetProposalId() []byte
func (*QuorumCert) GetProposalMsg ¶
func (x *QuorumCert) GetProposalMsg() []byte
func (*QuorumCert) GetSignInfos ¶
func (x *QuorumCert) GetSignInfos() *QCSignInfos
func (*QuorumCert) GetType ¶
func (x *QuorumCert) GetType() QCState
func (*QuorumCert) GetViewNumber ¶
func (x *QuorumCert) GetViewNumber() int64
func (*QuorumCert) ProtoMessage ¶
func (*QuorumCert) ProtoMessage()
func (*QuorumCert) ProtoReflect ¶
func (x *QuorumCert) ProtoReflect() protoreflect.Message
func (*QuorumCert) Reset ¶
func (x *QuorumCert) Reset()
func (*QuorumCert) String ¶
func (x *QuorumCert) String() string
type QuorumCertSign ¶
type QuorumCertSign struct { Address string `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` Sign []byte `protobuf:"bytes,3,opt,name=Sign,proto3" json:"Sign,omitempty"` // contains filtered or unexported fields }
QuorumCertSign 是(Addr, Pk, 签名)三元组
func (*QuorumCertSign) Descriptor
deprecated
func (*QuorumCertSign) Descriptor() ([]byte, []int)
Deprecated: Use QuorumCertSign.ProtoReflect.Descriptor instead.
func (*QuorumCertSign) GetAddress ¶
func (x *QuorumCertSign) GetAddress() string
func (*QuorumCertSign) GetPublicKey ¶
func (x *QuorumCertSign) GetPublicKey() string
func (*QuorumCertSign) GetSign ¶
func (x *QuorumCertSign) GetSign() []byte
func (*QuorumCertSign) ProtoMessage ¶
func (*QuorumCertSign) ProtoMessage()
func (*QuorumCertSign) ProtoReflect ¶
func (x *QuorumCertSign) ProtoReflect() protoreflect.Message
func (*QuorumCertSign) Reset ¶
func (x *QuorumCertSign) Reset()
func (*QuorumCertSign) String ¶
func (x *QuorumCertSign) String() string
type ReqHeader ¶
type ReqHeader struct { // 请求id LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` // 标记请求方,方便问题定位 SelfName string `protobuf:"bytes,2,opt,name=self_name,json=selfName,proto3" json:"self_name,omitempty"` // contains filtered or unexported fields }
通用请求Header
func (*ReqHeader) Descriptor
deprecated
func (*ReqHeader) GetSelfName ¶
func (*ReqHeader) ProtoMessage ¶
func (*ReqHeader) ProtoMessage()
func (*ReqHeader) ProtoReflect ¶
func (x *ReqHeader) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*ResourceLimit) Descriptor
deprecated
func (*ResourceLimit) Descriptor() ([]byte, []int)
Deprecated: Use ResourceLimit.ProtoReflect.Descriptor instead.
func (*ResourceLimit) GetLimit ¶
func (x *ResourceLimit) GetLimit() int64
func (*ResourceLimit) GetType ¶
func (x *ResourceLimit) GetType() ResourceType
func (*ResourceLimit) ProtoMessage ¶
func (*ResourceLimit) ProtoMessage()
func (*ResourceLimit) ProtoReflect ¶
func (x *ResourceLimit) ProtoReflect() protoreflect.Message
func (*ResourceLimit) Reset ¶
func (x *ResourceLimit) Reset()
func (*ResourceLimit) String ¶
func (x *ResourceLimit) String() string
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) Descriptor ¶
func (ResourceType) Descriptor() protoreflect.EnumDescriptor
func (ResourceType) Enum ¶
func (x ResourceType) Enum() *ResourceType
func (ResourceType) EnumDescriptor
deprecated
func (ResourceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResourceType.Descriptor instead.
func (ResourceType) Number ¶
func (x ResourceType) Number() protoreflect.EnumNumber
func (ResourceType) String ¶
func (x ResourceType) String() string
func (ResourceType) Type ¶
func (ResourceType) Type() protoreflect.EnumType
type RespHeader ¶
type RespHeader struct { // 请求id LogId string `protobuf:"bytes,1,opt,name=log_id,json=logId,proto3" json:"log_id,omitempty"` // 错误码 ErrCode int64 `protobuf:"varint,2,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty"` // 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=err_msg,json=errMsg,proto3" json:"err_msg,omitempty"` // 节点追踪信息,方便问题定位 TraceId string `protobuf:"bytes,4,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // contains filtered or unexported fields }
通用响应Header
func (*RespHeader) Descriptor
deprecated
func (*RespHeader) Descriptor() ([]byte, []int)
Deprecated: Use RespHeader.ProtoReflect.Descriptor instead.
func (*RespHeader) GetErrCode ¶
func (x *RespHeader) GetErrCode() int64
func (*RespHeader) GetErrMsg ¶
func (x *RespHeader) GetErrMsg() string
func (*RespHeader) GetLogId ¶
func (x *RespHeader) GetLogId() string
func (*RespHeader) GetTraceId ¶
func (x *RespHeader) GetTraceId() string
func (*RespHeader) ProtoMessage ¶
func (*RespHeader) ProtoMessage()
func (*RespHeader) ProtoReflect ¶
func (x *RespHeader) ProtoReflect() protoreflect.Message
func (*RespHeader) Reset ¶
func (x *RespHeader) Reset()
func (*RespHeader) String ¶
func (x *RespHeader) String() string
type Response ¶
type Response 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"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type SelectUtxoReq ¶
type SelectUtxoReq struct { Header *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` TotalNeed string `protobuf:"bytes,5,opt,name=totalNeed,proto3" json:"totalNeed,omitempty"` NeedLock bool `protobuf:"varint,6,opt,name=needLock,proto3" json:"needLock,omitempty"` // contains filtered or unexported fields }
func (*SelectUtxoReq) Descriptor
deprecated
func (*SelectUtxoReq) Descriptor() ([]byte, []int)
Deprecated: Use SelectUtxoReq.ProtoReflect.Descriptor instead.
func (*SelectUtxoReq) GetAddress ¶
func (x *SelectUtxoReq) GetAddress() string
func (*SelectUtxoReq) GetBcname ¶
func (x *SelectUtxoReq) GetBcname() string
func (*SelectUtxoReq) GetHeader ¶
func (x *SelectUtxoReq) GetHeader() *ReqHeader
func (*SelectUtxoReq) GetNeedLock ¶
func (x *SelectUtxoReq) GetNeedLock() bool
func (*SelectUtxoReq) GetTotalNeed ¶
func (x *SelectUtxoReq) GetTotalNeed() string
func (*SelectUtxoReq) ProtoMessage ¶
func (*SelectUtxoReq) ProtoMessage()
func (*SelectUtxoReq) ProtoReflect ¶
func (x *SelectUtxoReq) ProtoReflect() protoreflect.Message
func (*SelectUtxoReq) Reset ¶
func (x *SelectUtxoReq) Reset()
func (*SelectUtxoReq) String ¶
func (x *SelectUtxoReq) String() string
type SelectUtxoResp ¶
type SelectUtxoResp struct { Header *RespHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` UtxoList []*Utxo `protobuf:"bytes,2,rep,name=utxoList,proto3" json:"utxoList,omitempty"` TotalAmount string `protobuf:"bytes,3,opt,name=totalAmount,proto3" json:"totalAmount,omitempty"` // contains filtered or unexported fields }
func (*SelectUtxoResp) Descriptor
deprecated
func (*SelectUtxoResp) Descriptor() ([]byte, []int)
Deprecated: Use SelectUtxoResp.ProtoReflect.Descriptor instead.
func (*SelectUtxoResp) GetHeader ¶
func (x *SelectUtxoResp) GetHeader() *RespHeader
func (*SelectUtxoResp) GetTotalAmount ¶
func (x *SelectUtxoResp) GetTotalAmount() string
func (*SelectUtxoResp) GetUtxoList ¶
func (x *SelectUtxoResp) GetUtxoList() []*Utxo
func (*SelectUtxoResp) ProtoMessage ¶
func (*SelectUtxoResp) ProtoMessage()
func (*SelectUtxoResp) ProtoReflect ¶
func (x *SelectUtxoResp) ProtoReflect() protoreflect.Message
func (*SelectUtxoResp) Reset ¶
func (x *SelectUtxoResp) Reset()
func (*SelectUtxoResp) String ¶
func (x *SelectUtxoResp) String() string
type SetOutputRequest ¶
type SetOutputRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Response *Response `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*SetOutputRequest) Descriptor
deprecated
func (*SetOutputRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetOutputRequest.ProtoReflect.Descriptor instead.
func (*SetOutputRequest) GetHeader ¶
func (x *SetOutputRequest) GetHeader() *SyscallHeader
func (*SetOutputRequest) GetResponse ¶
func (x *SetOutputRequest) GetResponse() *Response
func (*SetOutputRequest) ProtoMessage ¶
func (*SetOutputRequest) ProtoMessage()
func (*SetOutputRequest) ProtoReflect ¶
func (x *SetOutputRequest) ProtoReflect() protoreflect.Message
func (*SetOutputRequest) Reset ¶
func (x *SetOutputRequest) Reset()
func (*SetOutputRequest) String ¶
func (x *SetOutputRequest) String() string
type SetOutputResponse ¶
type SetOutputResponse struct {
// contains filtered or unexported fields
}
func (*SetOutputResponse) Descriptor
deprecated
func (*SetOutputResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetOutputResponse.ProtoReflect.Descriptor instead.
func (*SetOutputResponse) ProtoMessage ¶
func (*SetOutputResponse) ProtoMessage()
func (*SetOutputResponse) ProtoReflect ¶
func (x *SetOutputResponse) ProtoReflect() protoreflect.Message
func (*SetOutputResponse) Reset ¶
func (x *SetOutputResponse) Reset()
func (*SetOutputResponse) String ¶
func (x *SetOutputResponse) String() string
type SignInfo ¶
type SignInfo struct { Address string `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"` PublicKey string `protobuf:"bytes,2,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"` Sign []byte `protobuf:"bytes,3,opt,name=Sign,proto3" json:"Sign,omitempty"` // contains filtered or unexported fields }
SignInfo is the signature information of the
func (*SignInfo) Descriptor
deprecated
func (*SignInfo) GetAddress ¶
func (*SignInfo) GetPublicKey ¶
func (*SignInfo) ProtoMessage ¶
func (*SignInfo) ProtoMessage()
func (*SignInfo) ProtoReflect ¶
func (x *SignInfo) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
签名详情
func (*SignatureInfo) Descriptor
deprecated
func (*SignatureInfo) Descriptor() ([]byte, []int)
Deprecated: Use SignatureInfo.ProtoReflect.Descriptor instead.
func (*SignatureInfo) GetPublicKey ¶
func (x *SignatureInfo) GetPublicKey() string
func (*SignatureInfo) GetSign ¶
func (x *SignatureInfo) GetSign() []byte
func (*SignatureInfo) ProtoMessage ¶
func (*SignatureInfo) ProtoMessage()
func (*SignatureInfo) ProtoReflect ¶
func (x *SignatureInfo) ProtoReflect() protoreflect.Message
func (*SignatureInfo) Reset ¶
func (x *SignatureInfo) Reset()
func (*SignatureInfo) String ¶
func (x *SignatureInfo) String() string
type SubmitTxReq ¶
type SubmitTxReq struct { Header *ReqHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Bcname string `protobuf:"bytes,2,opt,name=bcname,proto3" json:"bcname,omitempty"` Txid []byte `protobuf:"bytes,3,opt,name=txid,proto3" json:"txid,omitempty"` Tx *Transaction `protobuf:"bytes,4,opt,name=tx,proto3" json:"tx,omitempty"` // contains filtered or unexported fields }
func (*SubmitTxReq) Descriptor
deprecated
func (*SubmitTxReq) Descriptor() ([]byte, []int)
Deprecated: Use SubmitTxReq.ProtoReflect.Descriptor instead.
func (*SubmitTxReq) GetBcname ¶
func (x *SubmitTxReq) GetBcname() string
func (*SubmitTxReq) GetHeader ¶
func (x *SubmitTxReq) GetHeader() *ReqHeader
func (*SubmitTxReq) GetTx ¶
func (x *SubmitTxReq) GetTx() *Transaction
func (*SubmitTxReq) GetTxid ¶
func (x *SubmitTxReq) GetTxid() []byte
func (*SubmitTxReq) ProtoMessage ¶
func (*SubmitTxReq) ProtoMessage()
func (*SubmitTxReq) ProtoReflect ¶
func (x *SubmitTxReq) ProtoReflect() protoreflect.Message
func (*SubmitTxReq) Reset ¶
func (x *SubmitTxReq) Reset()
func (*SubmitTxReq) String ¶
func (x *SubmitTxReq) String() string
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"` // contains filtered or unexported fields }
func (*SubscribeRequest) Descriptor
deprecated
func (*SubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
func (*SubscribeRequest) GetFilter ¶
func (x *SubscribeRequest) GetFilter() []byte
func (*SubscribeRequest) GetType ¶
func (x *SubscribeRequest) GetType() SubscribeType
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) ProtoReflect ¶
func (x *SubscribeRequest) ProtoReflect() protoreflect.Message
func (*SubscribeRequest) Reset ¶
func (x *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (x *SubscribeRequest) String() string
type SubscribeType ¶
type SubscribeType int32
const ( // 区块事件,payload为BlockFilter SubscribeType_BLOCK SubscribeType = 0 )
func (SubscribeType) Descriptor ¶
func (SubscribeType) Descriptor() protoreflect.EnumDescriptor
func (SubscribeType) Enum ¶
func (x SubscribeType) Enum() *SubscribeType
func (SubscribeType) EnumDescriptor
deprecated
func (SubscribeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SubscribeType.Descriptor instead.
func (SubscribeType) Number ¶
func (x SubscribeType) Number() protoreflect.EnumNumber
func (SubscribeType) String ¶
func (x SubscribeType) String() string
func (SubscribeType) Type ¶
func (SubscribeType) Type() protoreflect.EnumType
type SyscallClient ¶
type SyscallClient interface { // KV service PutObject(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) GetObject(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) DeleteObject(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) NewIterator(ctx context.Context, in *IteratorRequest, opts ...grpc.CallOption) (*IteratorResponse, error) // Chain service QueryTx(ctx context.Context, in *QueryTxRequest, opts ...grpc.CallOption) (*QueryTxResponse, error) QueryBlock(ctx context.Context, in *QueryBlockRequest, opts ...grpc.CallOption) (*QueryBlockResponse, error) Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error) ContractCall(ctx context.Context, in *ContractCallRequest, opts ...grpc.CallOption) (*ContractCallResponse, error) CrossContractQuery(ctx context.Context, in *CrossContractQueryRequest, opts ...grpc.CallOption) (*CrossContractQueryResponse, error) GetAccountAddresses(ctx context.Context, in *GetAccountAddressesRequest, opts ...grpc.CallOption) (*GetAccountAddressesResponse, error) // Heartbeat Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) // Post log PostLog(ctx context.Context, in *PostLogRequest, opts ...grpc.CallOption) (*PostLogResponse, error) GetCallArgs(ctx context.Context, in *GetCallArgsRequest, opts ...grpc.CallOption) (*CallArgs, error) SetOutput(ctx context.Context, in *SetOutputRequest, opts ...grpc.CallOption) (*SetOutputResponse, error) // Send Event EmitEvent(ctx context.Context, in *EmitEventRequest, opts ...grpc.CallOption) (*EmitEventResponse, error) }
SyscallClient is the client API for Syscall service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSyscallClient ¶
func NewSyscallClient(cc grpc.ClientConnInterface) SyscallClient
type SyscallHeader ¶
type SyscallHeader struct { Ctxid int64 `protobuf:"varint,1,opt,name=ctxid,proto3" json:"ctxid,omitempty"` // contains filtered or unexported fields }
func (*SyscallHeader) Descriptor
deprecated
func (*SyscallHeader) Descriptor() ([]byte, []int)
Deprecated: Use SyscallHeader.ProtoReflect.Descriptor instead.
func (*SyscallHeader) GetCtxid ¶
func (x *SyscallHeader) GetCtxid() int64
func (*SyscallHeader) ProtoMessage ¶
func (*SyscallHeader) ProtoMessage()
func (*SyscallHeader) ProtoReflect ¶
func (x *SyscallHeader) ProtoReflect() protoreflect.Message
func (*SyscallHeader) Reset ¶
func (x *SyscallHeader) Reset()
func (*SyscallHeader) String ¶
func (x *SyscallHeader) String() string
type SyscallServer ¶
type SyscallServer interface { // KV service PutObject(context.Context, *PutRequest) (*PutResponse, error) GetObject(context.Context, *GetRequest) (*GetResponse, error) DeleteObject(context.Context, *DeleteRequest) (*DeleteResponse, error) NewIterator(context.Context, *IteratorRequest) (*IteratorResponse, error) // Chain service QueryTx(context.Context, *QueryTxRequest) (*QueryTxResponse, error) QueryBlock(context.Context, *QueryBlockRequest) (*QueryBlockResponse, error) Transfer(context.Context, *TransferRequest) (*TransferResponse, error) ContractCall(context.Context, *ContractCallRequest) (*ContractCallResponse, error) CrossContractQuery(context.Context, *CrossContractQueryRequest) (*CrossContractQueryResponse, error) GetAccountAddresses(context.Context, *GetAccountAddressesRequest) (*GetAccountAddressesResponse, error) // Heartbeat Ping(context.Context, *PingRequest) (*PingResponse, error) // Post log PostLog(context.Context, *PostLogRequest) (*PostLogResponse, error) GetCallArgs(context.Context, *GetCallArgsRequest) (*CallArgs, error) SetOutput(context.Context, *SetOutputRequest) (*SetOutputResponse, error) // Send Event EmitEvent(context.Context, *EmitEventRequest) (*EmitEventResponse, error) }
SyscallServer is the server API for Syscall service. All implementations should embed UnimplementedSyscallServer for forward compatibility
type SystemStatus ¶
type SystemStatus struct { ChainStatus *ChainStatus `protobuf:"bytes,1,opt,name=chain_status,json=chainStatus,proto3" json:"chain_status,omitempty"` PeerUrls []string `protobuf:"bytes,2,rep,name=peer_urls,json=peerUrls,proto3" json:"peer_urls,omitempty"` // contains filtered or unexported fields }
func (*SystemStatus) Descriptor
deprecated
func (*SystemStatus) Descriptor() ([]byte, []int)
Deprecated: Use SystemStatus.ProtoReflect.Descriptor instead.
func (*SystemStatus) GetChainStatus ¶
func (x *SystemStatus) GetChainStatus() *ChainStatus
func (*SystemStatus) GetPeerUrls ¶
func (x *SystemStatus) GetPeerUrls() []string
func (*SystemStatus) ProtoMessage ¶
func (*SystemStatus) ProtoMessage()
func (*SystemStatus) ProtoReflect ¶
func (x *SystemStatus) ProtoReflect() protoreflect.Message
func (*SystemStatus) Reset ¶
func (x *SystemStatus) Reset()
func (*SystemStatus) String ¶
func (x *SystemStatus) String() string
type TipStatus ¶
type TipStatus struct { IsTrunkTip bool `protobuf:"varint,1,opt,name=is_trunk_tip,json=isTrunkTip,proto3" json:"is_trunk_tip,omitempty"` // contains filtered or unexported fields }
func (*TipStatus) Descriptor
deprecated
func (*TipStatus) GetIsTrunkTip ¶
func (*TipStatus) ProtoMessage ¶
func (*TipStatus) ProtoMessage()
func (*TipStatus) ProtoReflect ¶
func (x *TipStatus) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct { // txid is the id of this transaction Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"` // the blockid the transaction belong to Blockid []byte `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"` // Transaction input list TxInputs []*TxInput `protobuf:"bytes,3,rep,name=tx_inputs,json=txInputs,proto3" json:"tx_inputs,omitempty"` // Transaction output list TxOutputs []*TxOutput `protobuf:"bytes,4,rep,name=tx_outputs,json=txOutputs,proto3" json:"tx_outputs,omitempty"` // Transaction description or system contract Desc []byte `protobuf:"bytes,6,opt,name=desc,proto3" json:"desc,omitempty"` // Mining rewards Coinbase bool `protobuf:"varint,7,opt,name=coinbase,proto3" json:"coinbase,omitempty"` // Random number used to avoid replay attacks Nonce string `protobuf:"bytes,8,opt,name=nonce,proto3" json:"nonce,omitempty"` // Timestamp to launch the transaction Timestamp int64 `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // tx format version; tx格式版本号 Version int32 `protobuf:"varint,10,opt,name=version,proto3" json:"version,omitempty"` // auto generated tx Autogen bool `protobuf:"varint,11,opt,name=autogen,proto3" json:"autogen,omitempty"` TxInputsExt []*TxInputExt `protobuf:"bytes,23,rep,name=tx_inputs_ext,json=txInputsExt,proto3" json:"tx_inputs_ext,omitempty"` TxOutputsExt []*TxOutputExt `protobuf:"bytes,24,rep,name=tx_outputs_ext,json=txOutputsExt,proto3" json:"tx_outputs_ext,omitempty"` ContractRequests []*InvokeRequest `protobuf:"bytes,25,rep,name=contract_requests,json=contractRequests,proto3" json:"contract_requests,omitempty"` // 权限系统新增字段 // 交易发起者, 可以是一个Address或者一个Account Initiator string `protobuf:"bytes,26,opt,name=initiator,proto3" json:"initiator,omitempty"` // 交易发起需要被收集签名的AddressURL集合信息,包括用于utxo转账和用于合约调用 AuthRequire []string `protobuf:"bytes,27,rep,name=auth_require,json=authRequire,proto3" json:"auth_require,omitempty"` // 交易发起者对交易元数据签名,签名的内容包括auth_require字段 InitiatorSigns []*SignatureInfo `protobuf:"bytes,28,rep,name=initiator_signs,json=initiatorSigns,proto3" json:"initiator_signs,omitempty"` // 收集到的签名 AuthRequireSigns []*SignatureInfo `protobuf:"bytes,29,rep,name=auth_require_signs,json=authRequireSigns,proto3" json:"auth_require_signs,omitempty"` // 节点收到tx的时间戳,不参与签名 ReceivedTimestamp int64 `protobuf:"varint,30,opt,name=received_timestamp,json=receivedTimestamp,proto3" json:"received_timestamp,omitempty"` // 统一签名(支持多重签名/环签名等,与initiator_signs/auth_require_signs不同时使用) XuperSign *XuperSignature `protobuf:"bytes,31,opt,name=xuper_sign,json=xuperSign,proto3" json:"xuper_sign,omitempty"` // 可修改区块链标记 ModifyBlock *ModifyBlock `protobuf:"bytes,32,opt,name=modify_block,json=modifyBlock,proto3" json:"modify_block,omitempty"` // HD加解密相关信息 HDInfo *HDInfo `protobuf:"bytes,33,opt,name=HD_info,json=HDInfo,proto3" json:"HD_info,omitempty"` // contains filtered or unexported fields }
Transaction is the information of the transaction
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetAuthRequire ¶
func (x *Transaction) GetAuthRequire() []string
func (*Transaction) GetAuthRequireSigns ¶
func (x *Transaction) GetAuthRequireSigns() []*SignatureInfo
func (*Transaction) GetAutogen ¶
func (x *Transaction) GetAutogen() bool
func (*Transaction) GetBlockid ¶
func (x *Transaction) GetBlockid() []byte
func (*Transaction) GetCoinbase ¶
func (x *Transaction) GetCoinbase() bool
func (*Transaction) GetContractRequests ¶
func (x *Transaction) GetContractRequests() []*InvokeRequest
func (*Transaction) GetDesc ¶
func (x *Transaction) GetDesc() []byte
func (*Transaction) GetHDInfo ¶
func (x *Transaction) GetHDInfo() *HDInfo
func (*Transaction) GetInitiator ¶
func (x *Transaction) GetInitiator() string
func (*Transaction) GetInitiatorSigns ¶
func (x *Transaction) GetInitiatorSigns() []*SignatureInfo
func (*Transaction) GetModifyBlock ¶
func (x *Transaction) GetModifyBlock() *ModifyBlock
func (*Transaction) GetNonce ¶
func (x *Transaction) GetNonce() string
func (*Transaction) GetReceivedTimestamp ¶
func (x *Transaction) GetReceivedTimestamp() int64
func (*Transaction) GetTimestamp ¶
func (x *Transaction) GetTimestamp() int64
func (*Transaction) GetTxInputs ¶
func (x *Transaction) GetTxInputs() []*TxInput
func (*Transaction) GetTxInputsExt ¶
func (x *Transaction) GetTxInputsExt() []*TxInputExt
func (*Transaction) GetTxOutputs ¶
func (x *Transaction) GetTxOutputs() []*TxOutput
func (*Transaction) GetTxOutputsExt ¶
func (x *Transaction) GetTxOutputsExt() []*TxOutputExt
func (*Transaction) GetTxid ¶
func (x *Transaction) GetTxid() []byte
func (*Transaction) GetVersion ¶
func (x *Transaction) GetVersion() int32
func (*Transaction) GetXuperSign ¶
func (x *Transaction) GetXuperSign() *XuperSignature
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionStatus ¶
type TransactionStatus int32
TransactionStatus is the status of transaction
const ( // Undefined status TransactionStatus_TX_UNDEFINE TransactionStatus = 0 // Transaction not exist TransactionStatus_TX_NOEXIST TransactionStatus = 1 // Transaction have been confirmed TransactionStatus_TX_CONFIRM TransactionStatus = 2 // Transaction is on the furcation TransactionStatus_TX_FURCATION TransactionStatus = 3 // Transaction have not been confirmed TransactionStatus_TX_UNCONFIRM TransactionStatus = 4 // Transaction occurs error TransactionStatus_TX_FAILED TransactionStatus = 5 )
func (TransactionStatus) Descriptor ¶
func (TransactionStatus) Descriptor() protoreflect.EnumDescriptor
func (TransactionStatus) Enum ¶
func (x TransactionStatus) Enum() *TransactionStatus
func (TransactionStatus) EnumDescriptor
deprecated
func (TransactionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransactionStatus.Descriptor instead.
func (TransactionStatus) Number ¶
func (x TransactionStatus) Number() protoreflect.EnumNumber
func (TransactionStatus) String ¶
func (x TransactionStatus) String() string
func (TransactionStatus) Type ¶
func (TransactionStatus) Type() protoreflect.EnumType
type Transactions ¶
type Transactions struct { Txs []*Transaction `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*Transactions) Descriptor
deprecated
func (*Transactions) Descriptor() ([]byte, []int)
Deprecated: Use Transactions.ProtoReflect.Descriptor instead.
func (*Transactions) GetTxs ¶
func (x *Transactions) GetTxs() []*Transaction
func (*Transactions) ProtoMessage ¶
func (*Transactions) ProtoMessage()
func (*Transactions) ProtoReflect ¶
func (x *Transactions) ProtoReflect() protoreflect.Message
func (*Transactions) Reset ¶
func (x *Transactions) Reset()
func (*Transactions) String ¶
func (x *Transactions) String() string
type TransferRequest ¶
type TransferRequest struct { Header *SyscallHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"` Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*TransferRequest) Descriptor
deprecated
func (*TransferRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.
func (*TransferRequest) GetAmount ¶
func (x *TransferRequest) GetAmount() string
func (*TransferRequest) GetFrom ¶
func (x *TransferRequest) GetFrom() string
func (*TransferRequest) GetHeader ¶
func (x *TransferRequest) GetHeader() *SyscallHeader
func (*TransferRequest) GetTo ¶
func (x *TransferRequest) GetTo() string
func (*TransferRequest) ProtoMessage ¶
func (*TransferRequest) ProtoMessage()
func (*TransferRequest) ProtoReflect ¶
func (x *TransferRequest) ProtoReflect() protoreflect.Message
func (*TransferRequest) Reset ¶
func (x *TransferRequest) Reset()
func (*TransferRequest) String ¶
func (x *TransferRequest) String() string
type TransferResponse ¶
type TransferResponse struct {
// contains filtered or unexported fields
}
func (*TransferResponse) Descriptor
deprecated
func (*TransferResponse) Descriptor() ([]byte, []int)
Deprecated: Use TransferResponse.ProtoReflect.Descriptor instead.
func (*TransferResponse) ProtoMessage ¶
func (*TransferResponse) ProtoMessage()
func (*TransferResponse) ProtoReflect ¶
func (x *TransferResponse) ProtoReflect() protoreflect.Message
func (*TransferResponse) Reset ¶
func (x *TransferResponse) Reset()
func (*TransferResponse) String ¶
func (x *TransferResponse) String() string
type TriggerDesc ¶
type TriggerDesc struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` Args map[string][]byte `` /* 149-byte string literal not displayed */ // 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 TxDataAccount ¶
type TxDataAccount struct { // 地址 Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 金额 Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // 冻结高度 FrozenHeight int64 `protobuf:"varint,3,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"` // contains filtered or unexported fields }
func (*TxDataAccount) Descriptor
deprecated
func (*TxDataAccount) Descriptor() ([]byte, []int)
Deprecated: Use TxDataAccount.ProtoReflect.Descriptor instead.
func (*TxDataAccount) GetAddress ¶
func (x *TxDataAccount) GetAddress() string
func (*TxDataAccount) GetAmount ¶
func (x *TxDataAccount) GetAmount() string
func (*TxDataAccount) GetFrozenHeight ¶
func (x *TxDataAccount) GetFrozenHeight() int64
func (*TxDataAccount) ProtoMessage ¶
func (*TxDataAccount) ProtoMessage()
func (*TxDataAccount) ProtoReflect ¶
func (x *TxDataAccount) ProtoReflect() protoreflect.Message
func (*TxDataAccount) Reset ¶
func (x *TxDataAccount) Reset()
func (*TxDataAccount) String ¶
func (x *TxDataAccount) String() string
type TxInfo ¶
type TxInfo struct { // 当前状态 Status TransactionStatus `protobuf:"varint,1,opt,name=status,proto3,enum=protos.TransactionStatus" json:"status,omitempty"` // 离主干末端的距离(如果在主干上) Distance int64 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"` Tx *Transaction `protobuf:"bytes,3,opt,name=tx,proto3" json:"tx,omitempty"` // contains filtered or unexported fields }
func (*TxInfo) Descriptor
deprecated
func (*TxInfo) GetDistance ¶
func (*TxInfo) GetStatus ¶
func (x *TxInfo) GetStatus() TransactionStatus
func (*TxInfo) GetTx ¶
func (x *TxInfo) GetTx() *Transaction
func (*TxInfo) ProtoMessage ¶
func (*TxInfo) ProtoMessage()
func (*TxInfo) ProtoReflect ¶
func (x *TxInfo) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
Transaction input
func (*TxInput) Descriptor
deprecated
func (*TxInput) GetFromAddr ¶
func (*TxInput) GetFrozenHeight ¶
func (*TxInput) GetRefOffset ¶
func (*TxInput) GetRefTxid ¶
func (*TxInput) ProtoMessage ¶
func (*TxInput) ProtoMessage()
func (*TxInput) ProtoReflect ¶
func (x *TxInput) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
扩展输入
func (*TxInputExt) Descriptor
deprecated
func (*TxInputExt) Descriptor() ([]byte, []int)
Deprecated: Use TxInputExt.ProtoReflect.Descriptor instead.
func (*TxInputExt) GetBucket ¶
func (x *TxInputExt) GetBucket() string
func (*TxInputExt) GetKey ¶
func (x *TxInputExt) GetKey() []byte
func (*TxInputExt) GetRefOffset ¶
func (x *TxInputExt) GetRefOffset() int32
func (*TxInputExt) GetRefTxid ¶
func (x *TxInputExt) GetRefTxid() []byte
func (*TxInputExt) ProtoMessage ¶
func (*TxInputExt) ProtoMessage()
func (*TxInputExt) ProtoReflect ¶
func (x *TxInputExt) ProtoReflect() protoreflect.Message
func (*TxInputExt) Reset ¶
func (x *TxInputExt) Reset()
func (*TxInputExt) String ¶
func (x *TxInputExt) String() string
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"` // contains filtered or unexported fields }
Transaction output
func (*TxOutput) Descriptor
deprecated
func (*TxOutput) GetFrozenHeight ¶
func (*TxOutput) ProtoMessage ¶
func (*TxOutput) ProtoMessage()
func (*TxOutput) ProtoReflect ¶
func (x *TxOutput) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
扩展输出
func (*TxOutputExt) Descriptor
deprecated
func (*TxOutputExt) Descriptor() ([]byte, []int)
Deprecated: Use TxOutputExt.ProtoReflect.Descriptor instead.
func (*TxOutputExt) GetBucket ¶
func (x *TxOutputExt) GetBucket() string
func (*TxOutputExt) GetKey ¶
func (x *TxOutputExt) GetKey() []byte
func (*TxOutputExt) GetValue ¶
func (x *TxOutputExt) GetValue() []byte
func (*TxOutputExt) ProtoMessage ¶
func (*TxOutputExt) ProtoMessage()
func (*TxOutputExt) ProtoReflect ¶
func (x *TxOutputExt) ProtoReflect() protoreflect.Message
func (*TxOutputExt) Reset ¶
func (x *TxOutputExt) Reset()
func (*TxOutputExt) String ¶
func (x *TxOutputExt) String() string
type UnimplementedEventServiceServer ¶
type UnimplementedEventServiceServer struct { }
UnimplementedEventServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedEventServiceServer) Subscribe ¶
func (UnimplementedEventServiceServer) Subscribe(*SubscribeRequest, EventService_SubscribeServer) error
type UnimplementedNativeCodeServer ¶
type UnimplementedNativeCodeServer struct { }
UnimplementedNativeCodeServer should be embedded to have forward compatible implementations.
func (UnimplementedNativeCodeServer) Call ¶
func (UnimplementedNativeCodeServer) Call(context.Context, *NativeCallRequest) (*NativeCallResponse, error)
func (UnimplementedNativeCodeServer) Ping ¶
func (UnimplementedNativeCodeServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
type UnimplementedP2PServiceServer ¶
type UnimplementedP2PServiceServer struct { }
UnimplementedP2PServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedP2PServiceServer) SendP2PMessage ¶
func (UnimplementedP2PServiceServer) SendP2PMessage(P2PService_SendP2PMessageServer) error
type UnimplementedSyscallServer ¶
type UnimplementedSyscallServer struct { }
UnimplementedSyscallServer should be embedded to have forward compatible implementations.
func (UnimplementedSyscallServer) ContractCall ¶
func (UnimplementedSyscallServer) ContractCall(context.Context, *ContractCallRequest) (*ContractCallResponse, error)
func (UnimplementedSyscallServer) CrossContractQuery ¶
func (UnimplementedSyscallServer) CrossContractQuery(context.Context, *CrossContractQueryRequest) (*CrossContractQueryResponse, error)
func (UnimplementedSyscallServer) DeleteObject ¶
func (UnimplementedSyscallServer) DeleteObject(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedSyscallServer) EmitEvent ¶
func (UnimplementedSyscallServer) EmitEvent(context.Context, *EmitEventRequest) (*EmitEventResponse, error)
func (UnimplementedSyscallServer) GetAccountAddresses ¶
func (UnimplementedSyscallServer) GetAccountAddresses(context.Context, *GetAccountAddressesRequest) (*GetAccountAddressesResponse, error)
func (UnimplementedSyscallServer) GetCallArgs ¶
func (UnimplementedSyscallServer) GetCallArgs(context.Context, *GetCallArgsRequest) (*CallArgs, error)
func (UnimplementedSyscallServer) GetObject ¶
func (UnimplementedSyscallServer) GetObject(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedSyscallServer) NewIterator ¶
func (UnimplementedSyscallServer) NewIterator(context.Context, *IteratorRequest) (*IteratorResponse, error)
func (UnimplementedSyscallServer) Ping ¶
func (UnimplementedSyscallServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (UnimplementedSyscallServer) PostLog ¶
func (UnimplementedSyscallServer) PostLog(context.Context, *PostLogRequest) (*PostLogResponse, error)
func (UnimplementedSyscallServer) PutObject ¶
func (UnimplementedSyscallServer) PutObject(context.Context, *PutRequest) (*PutResponse, error)
func (UnimplementedSyscallServer) QueryBlock ¶
func (UnimplementedSyscallServer) QueryBlock(context.Context, *QueryBlockRequest) (*QueryBlockResponse, error)
func (UnimplementedSyscallServer) QueryTx ¶
func (UnimplementedSyscallServer) QueryTx(context.Context, *QueryTxRequest) (*QueryTxResponse, error)
func (UnimplementedSyscallServer) SetOutput ¶
func (UnimplementedSyscallServer) SetOutput(context.Context, *SetOutputRequest) (*SetOutputResponse, error)
func (UnimplementedSyscallServer) Transfer ¶
func (UnimplementedSyscallServer) Transfer(context.Context, *TransferRequest) (*TransferResponse, error)
type UnimplementedXChainServer ¶
type UnimplementedXChainServer struct { }
UnimplementedXChainServer should be embedded to have forward compatible implementations.
func (UnimplementedXChainServer) CheckAlive ¶
func (UnimplementedXChainServer) PreExec ¶
func (UnimplementedXChainServer) PreExec(context.Context, *PreExecReq) (*PreExecResp, error)
func (UnimplementedXChainServer) QueryBlock ¶
func (UnimplementedXChainServer) QueryBlock(context.Context, *QueryBlockReq) (*QueryBlockResp, error)
func (UnimplementedXChainServer) QueryChainStatus ¶
func (UnimplementedXChainServer) QueryChainStatus(context.Context, *QueryChainStatusReq) (*QueryChainStatusResp, error)
func (UnimplementedXChainServer) QueryTx ¶
func (UnimplementedXChainServer) QueryTx(context.Context, *QueryTxReq) (*QueryTxResp, error)
func (UnimplementedXChainServer) SelectUtxo ¶
func (UnimplementedXChainServer) SelectUtxo(context.Context, *SelectUtxoReq) (*SelectUtxoResp, error)
func (UnimplementedXChainServer) SubmitTx ¶
func (UnimplementedXChainServer) SubmitTx(context.Context, *SubmitTxReq) (*BaseResp, error)
type UnsafeEventServiceServer ¶
type UnsafeEventServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.
type UnsafeNativeCodeServer ¶
type UnsafeNativeCodeServer interface {
// contains filtered or unexported methods
}
UnsafeNativeCodeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NativeCodeServer will result in compilation errors.
type UnsafeP2PServiceServer ¶
type UnsafeP2PServiceServer interface {
// contains filtered or unexported methods
}
UnsafeP2PServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to P2PServiceServer will result in compilation errors.
type UnsafeSyscallServer ¶
type UnsafeSyscallServer interface {
// contains filtered or unexported methods
}
UnsafeSyscallServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SyscallServer will result in compilation errors.
type UnsafeXChainServer ¶
type UnsafeXChainServer interface {
// contains filtered or unexported methods
}
UnsafeXChainServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to XChainServer will result in compilation errors.
type Utxo ¶
type Utxo struct { Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` ToAddr []byte `protobuf:"bytes,2,opt,name=toAddr,proto3" json:"toAddr,omitempty"` ToPubkey []byte `protobuf:"bytes,3,opt,name=toPubkey,proto3" json:"toPubkey,omitempty"` RefTxid []byte `protobuf:"bytes,4,opt,name=refTxid,proto3" json:"refTxid,omitempty"` RefOffset int32 `protobuf:"varint,5,opt,name=refOffset,proto3" json:"refOffset,omitempty"` // contains filtered or unexported fields }
func (*Utxo) Descriptor
deprecated
func (*Utxo) GetRefOffset ¶
func (*Utxo) GetRefTxid ¶
func (*Utxo) GetToPubkey ¶
func (*Utxo) ProtoMessage ¶
func (*Utxo) ProtoMessage()
func (*Utxo) ProtoReflect ¶
func (x *Utxo) ProtoReflect() protoreflect.Message
type UtxoKey ¶
type UtxoKey struct { RefTxid string `protobuf:"bytes,1,opt,name=refTxid,proto3" json:"refTxid,omitempty"` Offset string `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*UtxoKey) Descriptor
deprecated
func (*UtxoKey) GetRefTxid ¶
func (*UtxoKey) ProtoMessage ¶
func (*UtxoKey) ProtoMessage()
func (*UtxoKey) ProtoReflect ¶
func (x *UtxoKey) ProtoReflect() protoreflect.Message
type UtxoMeta ¶
type UtxoMeta struct { // utxo vm目前执行到的blockid LatestBlockid []byte `protobuf:"bytes,1,opt,name=latest_blockid,json=latestBlockid,proto3" json:"latest_blockid,omitempty"` LockKeyList []string `protobuf:"bytes,2,rep,name=lock_key_list,json=lockKeyList,proto3" json:"lock_key_list,omitempty"` // 当前utxo vm上的总资产 UtxoTotal string `protobuf:"bytes,3,opt,name=utxo_total,json=utxoTotal,proto3" json:"utxo_total,omitempty"` // 平均上链延时 AvgDelay int64 `protobuf:"varint,4,opt,name=avgDelay,proto3" json:"avgDelay,omitempty"` // 待确认交易量 UnconfirmTxAmount int64 `protobuf:"varint,5,opt,name=unconfirmTxAmount,proto3" json:"unconfirmTxAmount,omitempty"` // max block size MaxBlockSize int64 `protobuf:"varint,6,opt,name=max_block_size,json=maxBlockSize,proto3" json:"max_block_size,omitempty"` // preset contracts ReservedContracts []*InvokeRequest `protobuf:"bytes,7,rep,name=reserved_contracts,json=reservedContracts,proto3" json:"reserved_contracts,omitempty"` // reset forbidden contract configuration ForbiddenContract *InvokeRequest `protobuf:"bytes,8,opt,name=forbidden_contract,json=forbiddenContract,proto3" json:"forbidden_contract,omitempty"` // the resource amount of creating an account NewAccountResourceAmount int64 `` /* 138-byte string literal not displayed */ // 当前不可逆区块高度,与utxo对齐 IrreversibleBlockHeight int64 `protobuf:"varint,10,opt,name=irreversibleBlockHeight,proto3" json:"irreversibleBlockHeight,omitempty"` // 当前不可逆区块高度调整窗口 IrreversibleSlideWindow int64 `protobuf:"varint,11,opt,name=irreversibleSlideWindow,proto3" json:"irreversibleSlideWindow,omitempty"` GasPrice *GasPrice `protobuf:"bytes,12,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"` // 群组合约相关 GroupChainContract *InvokeRequest `protobuf:"bytes,13,opt,name=group_chain_contract,json=groupChainContract,proto3" json:"group_chain_contract,omitempty"` // contains filtered or unexported fields }
Utxo metadata
func (*UtxoMeta) Descriptor
deprecated
func (*UtxoMeta) GetAvgDelay ¶
func (*UtxoMeta) GetForbiddenContract ¶
func (x *UtxoMeta) GetForbiddenContract() *InvokeRequest
func (*UtxoMeta) GetGasPrice ¶
func (*UtxoMeta) GetGroupChainContract ¶
func (x *UtxoMeta) GetGroupChainContract() *InvokeRequest
func (*UtxoMeta) GetIrreversibleBlockHeight ¶
func (*UtxoMeta) GetIrreversibleSlideWindow ¶
func (*UtxoMeta) GetLatestBlockid ¶
func (*UtxoMeta) GetLockKeyList ¶
func (*UtxoMeta) GetMaxBlockSize ¶
func (*UtxoMeta) GetNewAccountResourceAmount ¶
func (*UtxoMeta) GetReservedContracts ¶
func (x *UtxoMeta) GetReservedContracts() []*InvokeRequest
func (*UtxoMeta) GetUnconfirmTxAmount ¶
func (*UtxoMeta) GetUtxoTotal ¶
func (*UtxoMeta) ProtoMessage ¶
func (*UtxoMeta) ProtoMessage()
func (*UtxoMeta) ProtoReflect ¶
func (x *UtxoMeta) ProtoReflect() protoreflect.Message
type UtxoOutput ¶
type UtxoOutput struct { // utxo list UtxoList []*Utxo `protobuf:"bytes,1,rep,name=utxoList,proto3" json:"utxoList,omitempty"` // total selected amount TotalSelected string `protobuf:"bytes,2,opt,name=totalSelected,proto3" json:"totalSelected,omitempty"` // contains filtered or unexported fields }
UtxoOutput query results
func (*UtxoOutput) Descriptor
deprecated
func (*UtxoOutput) Descriptor() ([]byte, []int)
Deprecated: Use UtxoOutput.ProtoReflect.Descriptor instead.
func (*UtxoOutput) GetTotalSelected ¶
func (x *UtxoOutput) GetTotalSelected() string
func (*UtxoOutput) GetUtxoList ¶
func (x *UtxoOutput) GetUtxoList() []*Utxo
func (*UtxoOutput) ProtoMessage ¶
func (*UtxoOutput) ProtoMessage()
func (*UtxoOutput) ProtoReflect ¶
func (x *UtxoOutput) ProtoReflect() protoreflect.Message
func (*UtxoOutput) Reset ¶
func (x *UtxoOutput) Reset()
func (*UtxoOutput) String ¶
func (x *UtxoOutput) String() string
type UtxoRecord ¶
type UtxoRecord struct { UtxoCount string `protobuf:"bytes,1,opt,name=utxoCount,proto3" json:"utxoCount,omitempty"` UtxoAmount string `protobuf:"bytes,2,opt,name=utxoAmount,proto3" json:"utxoAmount,omitempty"` Item []*UtxoKey `protobuf:"bytes,3,rep,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*UtxoRecord) Descriptor
deprecated
func (*UtxoRecord) Descriptor() ([]byte, []int)
Deprecated: Use UtxoRecord.ProtoReflect.Descriptor instead.
func (*UtxoRecord) GetItem ¶
func (x *UtxoRecord) GetItem() []*UtxoKey
func (*UtxoRecord) GetUtxoAmount ¶
func (x *UtxoRecord) GetUtxoAmount() string
func (*UtxoRecord) GetUtxoCount ¶
func (x *UtxoRecord) GetUtxoCount() string
func (*UtxoRecord) ProtoMessage ¶
func (*UtxoRecord) ProtoMessage()
func (*UtxoRecord) ProtoReflect ¶
func (x *UtxoRecord) ProtoReflect() protoreflect.Message
func (*UtxoRecord) Reset ¶
func (x *UtxoRecord) Reset()
func (*UtxoRecord) String ¶
func (x *UtxoRecord) String() string
type UtxoRecordDetail ¶
type UtxoRecordDetail struct { OpenUtxo *UtxoRecord `protobuf:"bytes,1,opt,name=openUtxo,proto3" json:"openUtxo,omitempty"` LockedUtxo *UtxoRecord `protobuf:"bytes,2,opt,name=lockedUtxo,proto3" json:"lockedUtxo,omitempty"` FrozenUtxo *UtxoRecord `protobuf:"bytes,3,opt,name=frozenUtxo,proto3" json:"frozenUtxo,omitempty"` // contains filtered or unexported fields }
func (*UtxoRecordDetail) Descriptor
deprecated
func (*UtxoRecordDetail) Descriptor() ([]byte, []int)
Deprecated: Use UtxoRecordDetail.ProtoReflect.Descriptor instead.
func (*UtxoRecordDetail) GetFrozenUtxo ¶
func (x *UtxoRecordDetail) GetFrozenUtxo() *UtxoRecord
func (*UtxoRecordDetail) GetLockedUtxo ¶
func (x *UtxoRecordDetail) GetLockedUtxo() *UtxoRecord
func (*UtxoRecordDetail) GetOpenUtxo ¶
func (x *UtxoRecordDetail) GetOpenUtxo() *UtxoRecord
func (*UtxoRecordDetail) ProtoMessage ¶
func (*UtxoRecordDetail) ProtoMessage()
func (*UtxoRecordDetail) ProtoReflect ¶
func (x *UtxoRecordDetail) ProtoReflect() protoreflect.Message
func (*UtxoRecordDetail) Reset ¶
func (x *UtxoRecordDetail) Reset()
func (*UtxoRecordDetail) String ¶
func (x *UtxoRecordDetail) String() string
type VoteMsg ¶
type VoteMsg struct { VoteInfo []byte `protobuf:"bytes,1,opt,name=VoteInfo,proto3" json:"VoteInfo,omitempty"` LedgerCommitInfo []byte `protobuf:"bytes,2,opt,name=LedgerCommitInfo,proto3" json:"LedgerCommitInfo,omitempty"` Signature []*QuorumCertSign `protobuf:"bytes,3,rep,name=Signature,proto3" json:"Signature,omitempty"` // contains filtered or unexported fields }
VoteMsg is the vote message of the protocal.
func (*VoteMsg) Descriptor
deprecated
func (*VoteMsg) GetLedgerCommitInfo ¶
func (*VoteMsg) GetSignature ¶
func (x *VoteMsg) GetSignature() []*QuorumCertSign
func (*VoteMsg) GetVoteInfo ¶
func (*VoteMsg) ProtoMessage ¶
func (*VoteMsg) ProtoMessage()
func (*VoteMsg) ProtoReflect ¶
func (x *VoteMsg) 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"` // contains filtered or unexported fields }
func (*WasmCodeDesc) Descriptor
deprecated
func (*WasmCodeDesc) Descriptor() ([]byte, []int)
Deprecated: Use WasmCodeDesc.ProtoReflect.Descriptor instead.
func (*WasmCodeDesc) GetCompiler ¶
func (x *WasmCodeDesc) GetCompiler() string
func (*WasmCodeDesc) GetContractType ¶
func (x *WasmCodeDesc) GetContractType() string
func (*WasmCodeDesc) GetDigest ¶
func (x *WasmCodeDesc) GetDigest() []byte
func (*WasmCodeDesc) GetRuntime ¶
func (x *WasmCodeDesc) GetRuntime() string
func (*WasmCodeDesc) GetVmCompiler ¶
func (x *WasmCodeDesc) GetVmCompiler() string
func (*WasmCodeDesc) ProtoMessage ¶
func (*WasmCodeDesc) ProtoMessage()
func (*WasmCodeDesc) ProtoReflect ¶
func (x *WasmCodeDesc) ProtoReflect() protoreflect.Message
func (*WasmCodeDesc) Reset ¶
func (x *WasmCodeDesc) Reset()
func (*WasmCodeDesc) String ¶
func (x *WasmCodeDesc) String() string
type XChainClient ¶
type XChainClient interface { // 示例接口 CheckAlive(ctx context.Context, in *BaseReq, opts ...grpc.CallOption) (*BaseResp, error) // 提交交易 SubmitTx(ctx context.Context, in *SubmitTxReq, opts ...grpc.CallOption) (*BaseResp, error) // 合约预执行 PreExec(ctx context.Context, in *PreExecReq, opts ...grpc.CallOption) (*PreExecResp, error) // 选择utxo SelectUtxo(ctx context.Context, in *SelectUtxoReq, opts ...grpc.CallOption) (*SelectUtxoResp, error) // 查询交易信息 QueryTx(ctx context.Context, in *QueryTxReq, opts ...grpc.CallOption) (*QueryTxResp, error) // 查询区块信息 QueryBlock(ctx context.Context, in *QueryBlockReq, opts ...grpc.CallOption) (*QueryBlockResp, error) // 查询区块链状态 QueryChainStatus(ctx context.Context, in *QueryChainStatusReq, opts ...grpc.CallOption) (*QueryChainStatusResp, error) }
XChainClient is the client API for XChain service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewXChainClient ¶
func NewXChainClient(cc grpc.ClientConnInterface) XChainClient
type XChainServer ¶
type XChainServer interface { // 示例接口 CheckAlive(context.Context, *BaseReq) (*BaseResp, error) // 提交交易 SubmitTx(context.Context, *SubmitTxReq) (*BaseResp, error) // 合约预执行 PreExec(context.Context, *PreExecReq) (*PreExecResp, error) // 选择utxo SelectUtxo(context.Context, *SelectUtxoReq) (*SelectUtxoResp, error) // 查询交易信息 QueryTx(context.Context, *QueryTxReq) (*QueryTxResp, error) // 查询区块信息 QueryBlock(context.Context, *QueryBlockReq) (*QueryBlockResp, error) // 查询区块链状态 QueryChainStatus(context.Context, *QueryChainStatusReq) (*QueryChainStatusResp, error) }
XChainServer is the server API for XChain service. All implementations should embed UnimplementedXChainServer for forward compatibility
type XuperSignature ¶
type XuperSignature struct { PublicKeys [][]byte `protobuf:"bytes,1,rep,name=public_keys,json=publicKeys,proto3" json:"public_keys,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
Unified Xuper Signature
func (*XuperSignature) Descriptor
deprecated
func (*XuperSignature) Descriptor() ([]byte, []int)
Deprecated: Use XuperSignature.ProtoReflect.Descriptor instead.
func (*XuperSignature) GetPublicKeys ¶
func (x *XuperSignature) GetPublicKeys() [][]byte
func (*XuperSignature) GetSignature ¶
func (x *XuperSignature) GetSignature() []byte
func (*XuperSignature) ProtoMessage ¶
func (*XuperSignature) ProtoMessage()
func (*XuperSignature) ProtoReflect ¶
func (x *XuperSignature) ProtoReflect() protoreflect.Message
func (*XuperSignature) Reset ¶
func (x *XuperSignature) Reset()
func (*XuperSignature) String ¶
func (x *XuperSignature) String() string