Documentation ¶
Index ¶
- Constants
- Variables
- func AddressFromMultiAddr(ma Multiaddr) string
- func AddressOrigin(addr []byte) []byte
- func AddressPadding(addr []byte) []byte
- func AddressesToStringMap(addrs []*PeerAddress) []map[string]string
- func BlockNoToBytes(bn BlockNo) []byte
- func BlockSizeHardLimit() uint32
- func BytesToUint64(data []byte) uint64
- func CalculateTxsRootHash(txs []*Tx) []byte
- func ChainIdEqualWithoutVersion(a, b []byte) bool
- func ChainIdVersion(v int32) []byte
- func Clone(i interface{}) interface{}
- func DecodeB58(sb string) []byte
- func DecodeB64(sb string) []byte
- func DecodeChainIdVersion(cid []byte) int32
- func DecodePrivKey(encodedKey string) ([]byte, error)
- func EncodeAddress(addr Address) string
- func EncodeB58(bs []byte) string
- func EncodeB64(bs []byte) string
- func EncodePrivKey(key []byte) string
- func GetIPFromMultiaddr(ma Multiaddr) net.IP
- func GetIPPortFromMultiaddr(ma Multiaddr) (net.IP, uint32, error)
- func GetMaxMessageSize(blockSize uint32) uint32
- func GetPortFromMultiaddr(ma Multiaddr) uint32
- func IDB58Encode(pid PeerID) string
- func InitGovernance(consensus string, isPublic bool)
- func IsAddress(proto multiaddr.Protocol) bool
- func IsQuirkTx(txHash []byte) bool
- func IsSamePeerID(pid1, pid2 PeerID) bool
- func IsSpecialAccount(name []byte) bool
- func MakeChainId(cid []byte, v int32) []byte
- func MaxMessageSize() uint32
- func RaftConfChangeToString(cc *raftpb.ConfChange) string
- func RaftEntryToString(entry *raftpb.Entry) string
- func RaftHardStateToString(hardstate raftpb.HardState) string
- func RegisterAdminRPCServiceServer(s *grpc.Server, srv AdminRPCServiceServer)
- func RegisterMeyCoinRPCServiceServer(s *grpc.Server, srv MeyCoinRPCServiceServer)
- func RegisterWezenRPCServiceServer(s *grpc.Server, srv WezenRPCServiceServer)
- func ToAddress(addr string) []byte
- func Uint64ToBytes(num uint64) []byte
- func Uint64ToHexaString(id uint64) string
- func ValidateSystemTx(tx *TxBody) error
- func WriteEntries(entries []WhiteListEntry, wr io.Writer) error
- type ABI
- func (*ABI) Descriptor() ([]byte, []int)
- func (m *ABI) GetFunctions() []*Function
- func (m *ABI) GetLanguage() string
- func (m *ABI) GetStateVariables() []*StateVar
- func (m *ABI) GetVersion() string
- func (abi *ABI) HasFunction(name string) bool
- func (*ABI) ProtoMessage()
- func (m *ABI) Reset()
- func (m *ABI) String() string
- func (m *ABI) XXX_DiscardUnknown()
- func (m *ABI) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ABI) XXX_Merge(src proto.Message)
- func (m *ABI) XXX_Size() int
- func (m *ABI) XXX_Unmarshal(b []byte) error
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetAddress() []byte
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- func (a *Account) ToString() string
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type AccountAddress
- func (*AccountAddress) Descriptor() ([]byte, []int)
- func (m *AccountAddress) GetValue() []byte
- func (*AccountAddress) ProtoMessage()
- func (m *AccountAddress) Reset()
- func (m *AccountAddress) String() string
- func (m *AccountAddress) XXX_DiscardUnknown()
- func (m *AccountAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountAddress) XXX_Merge(src proto.Message)
- func (m *AccountAddress) XXX_Size() int
- func (m *AccountAddress) XXX_Unmarshal(b []byte) error
- type AccountAndRoot
- func (*AccountAndRoot) Descriptor() ([]byte, []int)
- func (m *AccountAndRoot) GetAccount() []byte
- func (m *AccountAndRoot) GetCompressed() bool
- func (m *AccountAndRoot) GetRoot() []byte
- func (*AccountAndRoot) ProtoMessage()
- func (m *AccountAndRoot) Reset()
- func (m *AccountAndRoot) String() string
- func (m *AccountAndRoot) XXX_DiscardUnknown()
- func (m *AccountAndRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountAndRoot) XXX_Merge(src proto.Message)
- func (m *AccountAndRoot) XXX_Size() int
- func (m *AccountAndRoot) XXX_Unmarshal(b []byte) error
- type AccountID
- type AccountList
- func (*AccountList) Descriptor() ([]byte, []int)
- func (m *AccountList) GetAccounts() []*Account
- func (*AccountList) ProtoMessage()
- func (m *AccountList) Reset()
- func (m *AccountList) String() string
- func (m *AccountList) XXX_DiscardUnknown()
- func (m *AccountList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountList) XXX_Merge(src proto.Message)
- func (m *AccountList) XXX_Size() int
- func (m *AccountList) XXX_Unmarshal(b []byte) error
- type AccountProof
- func (*AccountProof) Descriptor() ([]byte, []int)
- func (m *AccountProof) GetAuditPath() [][]byte
- func (m *AccountProof) GetBitmap() []byte
- func (m *AccountProof) GetHeight() uint32
- func (m *AccountProof) GetInclusion() bool
- func (m *AccountProof) GetKey() []byte
- func (m *AccountProof) GetProofKey() []byte
- func (m *AccountProof) GetProofVal() []byte
- func (m *AccountProof) GetState() *State
- func (*AccountProof) ProtoMessage()
- func (m *AccountProof) Reset()
- func (m *AccountProof) String() string
- func (m *AccountProof) XXX_DiscardUnknown()
- func (m *AccountProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountProof) XXX_Merge(src proto.Message)
- func (m *AccountProof) XXX_Size() int
- func (m *AccountProof) XXX_Unmarshal(b []byte) error
- type AccountVoteInfo
- func (*AccountVoteInfo) Descriptor() ([]byte, []int)
- func (m *AccountVoteInfo) GetStaking() *Staking
- func (m *AccountVoteInfo) GetVoting() []*VoteInfo
- func (*AccountVoteInfo) ProtoMessage()
- func (m *AccountVoteInfo) Reset()
- func (m *AccountVoteInfo) String() string
- func (m *AccountVoteInfo) XXX_DiscardUnknown()
- func (m *AccountVoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AccountVoteInfo) XXX_Merge(src proto.Message)
- func (m *AccountVoteInfo) XXX_Size() int
- func (m *AccountVoteInfo) XXX_Unmarshal(b []byte) error
- type AddEntryParams
- func (*AddEntryParams) Descriptor() ([]byte, []int)
- func (m *AddEntryParams) GetAddress() string
- func (m *AddEntryParams) GetCidr() string
- func (m *AddEntryParams) GetPeerID() string
- func (*AddEntryParams) ProtoMessage()
- func (m *AddEntryParams) Reset()
- func (m *AddEntryParams) String() string
- func (m *AddEntryParams) XXX_DiscardUnknown()
- func (m *AddEntryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AddEntryParams) XXX_Merge(src proto.Message)
- func (m *AddEntryParams) XXX_Size() int
- func (m *AddEntryParams) XXX_Unmarshal(b []byte) error
- type AddrType
- type Address
- type AddressesRequest
- func (*AddressesRequest) Descriptor() ([]byte, []int)
- func (m *AddressesRequest) GetMaxSize() uint32
- func (m *AddressesRequest) GetSender() *PeerAddress
- func (*AddressesRequest) ProtoMessage()
- func (m *AddressesRequest) Reset()
- func (m *AddressesRequest) String() string
- func (m *AddressesRequest) XXX_DiscardUnknown()
- func (m *AddressesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AddressesRequest) XXX_Merge(src proto.Message)
- func (m *AddressesRequest) XXX_Size() int
- func (m *AddressesRequest) XXX_Unmarshal(b []byte) error
- type AddressesResponse
- func (*AddressesResponse) Descriptor() ([]byte, []int)
- func (m *AddressesResponse) GetPeers() []*PeerAddress
- func (m *AddressesResponse) GetStatus() ResultStatus
- func (m *AddressesResponse) MarshalZerologObject(e *zerolog.Event)
- func (*AddressesResponse) ProtoMessage()
- func (m *AddressesResponse) Reset()
- func (m *AddressesResponse) String() string
- func (m *AddressesResponse) XXX_DiscardUnknown()
- func (m *AddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AddressesResponse) XXX_Merge(src proto.Message)
- func (m *AddressesResponse) XXX_Size() int
- func (m *AddressesResponse) XXX_Unmarshal(b []byte) error
- type AdminRPCServiceClient
- type AdminRPCServiceServer
- type AgentCertificate
- func (*AgentCertificate) Descriptor() ([]byte, []int)
- func (m *AgentCertificate) GetAgentAddress() [][]byte
- func (m *AgentCertificate) GetAgentID() []byte
- func (m *AgentCertificate) GetBPID() []byte
- func (m *AgentCertificate) GetBPPubKey() []byte
- func (m *AgentCertificate) GetCertVersion() uint32
- func (m *AgentCertificate) GetCreateTime() int64
- func (m *AgentCertificate) GetExpireTime() int64
- func (m *AgentCertificate) GetSignature() []byte
- func (*AgentCertificate) ProtoMessage()
- func (m *AgentCertificate) Reset()
- func (m *AgentCertificate) String() string
- func (m *AgentCertificate) XXX_DiscardUnknown()
- func (m *AgentCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AgentCertificate) XXX_Merge(src proto.Message)
- func (m *AgentCertificate) XXX_Size() int
- func (m *AgentCertificate) XXX_Unmarshal(b []byte) error
- type ArgFilter
- type AvgTime
- type BLConfEntries
- func (*BLConfEntries) Descriptor() ([]byte, []int)
- func (m *BLConfEntries) GetEnabled() bool
- func (m *BLConfEntries) GetEntries() []string
- func (*BLConfEntries) ProtoMessage()
- func (m *BLConfEntries) Reset()
- func (m *BLConfEntries) String() string
- func (m *BLConfEntries) XXX_DiscardUnknown()
- func (m *BLConfEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BLConfEntries) XXX_Merge(src proto.Message)
- func (m *BLConfEntries) XXX_Size() int
- func (m *BLConfEntries) XXX_Unmarshal(b []byte) error
- type Block
- func (block *Block) BPID() (id PeerID, err error)
- func (block *Block) BPID2Str() string
- func (block *Block) BlockHash() []byte
- func (block *Block) BlockID() BlockID
- func (block *Block) BlockNo() BlockNo
- func (block *Block) Confirms() BlockNo
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetBody() *BlockBody
- func (m *Block) GetHash() []byte
- func (m *Block) GetHeader() *BlockHeader
- func (block *Block) GetMetadata() *BlockMetadata
- func (block *Block) ID() string
- func (block *Block) Localtime() time.Time
- func (block *Block) PrevBlockID() BlockID
- func (block *Block) PrevID() string
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (block *Block) SetBlocksRootHash(blockRootHash []byte)
- func (block *Block) SetChainID(id []byte)
- func (block *Block) SetConfirms(confirms BlockNo)
- func (block *Block) Sign(privKey crypto.PrivKey) error
- func (block *Block) Size() int
- func (m *Block) String() string
- func (block *Block) ValidChildOf(parent *Block) bool
- func (block *Block) VerifySign() (valid bool, err error)
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type BlockBody
- func (*BlockBody) Descriptor() ([]byte, []int)
- func (m *BlockBody) GetTxs() []*Tx
- func (*BlockBody) ProtoMessage()
- func (m *BlockBody) Reset()
- func (m *BlockBody) String() string
- func (m *BlockBody) XXX_DiscardUnknown()
- func (m *BlockBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockBody) XXX_Merge(src proto.Message)
- func (m *BlockBody) XXX_Size() int
- func (m *BlockBody) XXX_Unmarshal(b []byte) error
- type BlockBodyPaged
- func (*BlockBodyPaged) Descriptor() ([]byte, []int)
- func (m *BlockBodyPaged) GetBody() *BlockBody
- func (m *BlockBodyPaged) GetOffset() uint32
- func (m *BlockBodyPaged) GetSize() uint32
- func (m *BlockBodyPaged) GetTotal() uint32
- func (*BlockBodyPaged) ProtoMessage()
- func (m *BlockBodyPaged) Reset()
- func (m *BlockBodyPaged) String() string
- func (m *BlockBodyPaged) XXX_DiscardUnknown()
- func (m *BlockBodyPaged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockBodyPaged) XXX_Merge(src proto.Message)
- func (m *BlockBodyPaged) XXX_Size() int
- func (m *BlockBodyPaged) XXX_Unmarshal(b []byte) error
- type BlockBodyParams
- func (*BlockBodyParams) Descriptor() ([]byte, []int)
- func (m *BlockBodyParams) GetHashornumber() []byte
- func (m *BlockBodyParams) GetPaging() *PageParams
- func (*BlockBodyParams) ProtoMessage()
- func (m *BlockBodyParams) Reset()
- func (m *BlockBodyParams) String() string
- func (m *BlockBodyParams) XXX_DiscardUnknown()
- func (m *BlockBodyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockBodyParams) XXX_Merge(src proto.Message)
- func (m *BlockBodyParams) XXX_Size() int
- func (m *BlockBodyParams) XXX_Unmarshal(b []byte) error
- type BlockHeader
- func (*BlockHeader) Descriptor() ([]byte, []int)
- func (m *BlockHeader) GetBlockNo() uint64
- func (m *BlockHeader) GetBlocksRootHash() []byte
- func (m *BlockHeader) GetChainID() []byte
- func (m *BlockHeader) GetCoinbaseAccount() []byte
- func (m *BlockHeader) GetConfirms() uint64
- func (m *BlockHeader) GetConsensus() []byte
- func (m *BlockHeader) GetPrevBlockHash() []byte
- func (m *BlockHeader) GetPubKey() []byte
- func (m *BlockHeader) GetReceiptsRootHash() []byte
- func (m *BlockHeader) GetSign() []byte
- func (m *BlockHeader) GetTimestamp() int64
- func (m *BlockHeader) GetTxsRootHash() []byte
- func (*BlockHeader) ProtoMessage()
- func (m *BlockHeader) Reset()
- func (m *BlockHeader) String() string
- func (m *BlockHeader) XXX_DiscardUnknown()
- func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockHeader) XXX_Merge(src proto.Message)
- func (m *BlockHeader) XXX_Size() int
- func (m *BlockHeader) XXX_Unmarshal(b []byte) error
- type BlockHeaderInfo
- type BlockHeaderList
- func (*BlockHeaderList) Descriptor() ([]byte, []int)
- func (m *BlockHeaderList) GetBlocks() []*Block
- func (*BlockHeaderList) ProtoMessage()
- func (m *BlockHeaderList) Reset()
- func (m *BlockHeaderList) String() string
- func (m *BlockHeaderList) XXX_DiscardUnknown()
- func (m *BlockHeaderList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockHeaderList) XXX_Merge(src proto.Message)
- func (m *BlockHeaderList) XXX_Size() int
- func (m *BlockHeaderList) XXX_Unmarshal(b []byte) error
- type BlockID
- type BlockInfo
- type BlockMetadata
- func (*BlockMetadata) Descriptor() ([]byte, []int)
- func (m *BlockMetadata) GetHash() []byte
- func (m *BlockMetadata) GetHeader() *BlockHeader
- func (m *BlockMetadata) GetSize() int64
- func (m *BlockMetadata) GetTxcount() int32
- func (*BlockMetadata) ProtoMessage()
- func (m *BlockMetadata) Reset()
- func (m *BlockMetadata) String() string
- func (m *BlockMetadata) XXX_DiscardUnknown()
- func (m *BlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockMetadata) XXX_Merge(src proto.Message)
- func (m *BlockMetadata) XXX_Size() int
- func (m *BlockMetadata) XXX_Unmarshal(b []byte) error
- type BlockMetadataList
- func (*BlockMetadataList) Descriptor() ([]byte, []int)
- func (m *BlockMetadataList) GetBlocks() []*BlockMetadata
- func (*BlockMetadataList) ProtoMessage()
- func (m *BlockMetadataList) Reset()
- func (m *BlockMetadataList) String() string
- func (m *BlockMetadataList) XXX_DiscardUnknown()
- func (m *BlockMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockMetadataList) XXX_Merge(src proto.Message)
- func (m *BlockMetadataList) XXX_Size() int
- func (m *BlockMetadataList) XXX_Unmarshal(b []byte) error
- type BlockNo
- type BlockProducedNotice
- func (*BlockProducedNotice) Descriptor() ([]byte, []int)
- func (m *BlockProducedNotice) GetBlock() *Block
- func (m *BlockProducedNotice) GetBlockNo() uint64
- func (m *BlockProducedNotice) GetProducerID() []byte
- func (m *BlockProducedNotice) MarshalZerologObject(e *zerolog.Event)
- func (*BlockProducedNotice) ProtoMessage()
- func (m *BlockProducedNotice) Reset()
- func (m *BlockProducedNotice) String() string
- func (m *BlockProducedNotice) XXX_DiscardUnknown()
- func (m *BlockProducedNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockProducedNotice) XXX_Merge(src proto.Message)
- func (m *BlockProducedNotice) XXX_Size() int
- func (m *BlockProducedNotice) XXX_Unmarshal(b []byte) error
- type BlockVersionner
- type BlockchainStatus
- func (*BlockchainStatus) Descriptor() ([]byte, []int)
- func (m *BlockchainStatus) GetBestBlockHash() []byte
- func (m *BlockchainStatus) GetBestChainIdHash() []byte
- func (m *BlockchainStatus) GetBestHeight() uint64
- func (m *BlockchainStatus) GetChainInfo() *ChainInfo
- func (m *BlockchainStatus) GetConsensusInfo() string
- func (*BlockchainStatus) ProtoMessage()
- func (m *BlockchainStatus) Reset()
- func (m *BlockchainStatus) String() string
- func (m *BlockchainStatus) XXX_DiscardUnknown()
- func (m *BlockchainStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BlockchainStatus) XXX_Merge(src proto.Message)
- func (m *BlockchainStatus) XXX_Size() int
- func (m *BlockchainStatus) XXX_Unmarshal(b []byte) error
- type CallInfo
- type CertificateRenewedNotice
- func (*CertificateRenewedNotice) Descriptor() ([]byte, []int)
- func (m *CertificateRenewedNotice) GetCertificate() *AgentCertificate
- func (m *CertificateRenewedNotice) MarshalZerologObject(e *zerolog.Event)
- func (*CertificateRenewedNotice) ProtoMessage()
- func (m *CertificateRenewedNotice) Reset()
- func (m *CertificateRenewedNotice) String() string
- func (m *CertificateRenewedNotice) XXX_DiscardUnknown()
- func (m *CertificateRenewedNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CertificateRenewedNotice) XXX_Merge(src proto.Message)
- func (m *CertificateRenewedNotice) XXX_Size() int
- func (m *CertificateRenewedNotice) XXX_Unmarshal(b []byte) error
- type ChainAccessor
- type ChainID
- type ChainId
- func (*ChainId) Descriptor() ([]byte, []int)
- func (m *ChainId) GetConsensus() string
- func (m *ChainId) GetMagic() string
- func (m *ChainId) GetMainnet() bool
- func (m *ChainId) GetPublic() bool
- func (m *ChainId) GetVersion() int32
- func (*ChainId) ProtoMessage()
- func (m *ChainId) Reset()
- func (m *ChainId) String() string
- func (m *ChainId) XXX_DiscardUnknown()
- func (m *ChainId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChainId) XXX_Merge(src proto.Message)
- func (m *ChainId) XXX_Size() int
- func (m *ChainId) XXX_Unmarshal(b []byte) error
- type ChainInfo
- func (*ChainInfo) Descriptor() ([]byte, []int)
- func (m *ChainInfo) GetBpNumber() uint32
- func (m *ChainInfo) GetGasprice() []byte
- func (m *ChainInfo) GetId() *ChainId
- func (m *ChainInfo) GetMaxblocksize() uint64
- func (m *ChainInfo) GetMaxtokens() []byte
- func (m *ChainInfo) GetNameprice() []byte
- func (m *ChainInfo) GetStakingminimum() []byte
- func (m *ChainInfo) GetTotalstaking() []byte
- func (m *ChainInfo) GetTotalvotingpower() []byte
- func (m *ChainInfo) GetVotingreward() []byte
- func (*ChainInfo) ProtoMessage()
- func (m *ChainInfo) Reset()
- func (m *ChainInfo) String() string
- func (m *ChainInfo) XXX_DiscardUnknown()
- func (m *ChainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChainInfo) XXX_Merge(src proto.Message)
- func (m *ChainInfo) XXX_Size() int
- func (m *ChainInfo) XXX_Unmarshal(b []byte) error
- type ChainStats
- func (*ChainStats) Descriptor() ([]byte, []int)
- func (m *ChainStats) GetReport() string
- func (*ChainStats) ProtoMessage()
- func (m *ChainStats) Reset()
- func (m *ChainStats) String() string
- func (m *ChainStats) XXX_DiscardUnknown()
- func (m *ChainStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChainStats) XXX_Merge(src proto.Message)
- func (m *ChainStats) XXX_Size() int
- func (m *ChainStats) XXX_Unmarshal(b []byte) error
- type ChangeClusterStatus
- type CommitResult
- func (*CommitResult) Descriptor() ([]byte, []int)
- func (m *CommitResult) GetDetail() string
- func (m *CommitResult) GetError() CommitStatus
- func (m *CommitResult) GetHash() []byte
- func (*CommitResult) ProtoMessage()
- func (m *CommitResult) Reset()
- func (m *CommitResult) String() string
- func (m *CommitResult) XXX_DiscardUnknown()
- func (m *CommitResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CommitResult) XXX_Merge(src proto.Message)
- func (m *CommitResult) XXX_Size() int
- func (m *CommitResult) XXX_Unmarshal(b []byte) error
- type CommitResultList
- func (*CommitResultList) Descriptor() ([]byte, []int)
- func (m *CommitResultList) GetResults() []*CommitResult
- func (*CommitResultList) ProtoMessage()
- func (m *CommitResultList) Reset()
- func (m *CommitResultList) String() string
- func (m *CommitResultList) XXX_DiscardUnknown()
- func (m *CommitResultList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CommitResultList) XXX_Merge(src proto.Message)
- func (m *CommitResultList) XXX_Size() int
- func (m *CommitResultList) XXX_Unmarshal(b []byte) error
- type CommitStatus
- type ConfChangeProgress
- func (*ConfChangeProgress) Descriptor() ([]byte, []int)
- func (m *ConfChangeProgress) GetErr() string
- func (m *ConfChangeProgress) GetMembers() []*MemberAttr
- func (m *ConfChangeProgress) GetState() ConfChangeState
- func (*ConfChangeProgress) ProtoMessage()
- func (m *ConfChangeProgress) Reset()
- func (m *ConfChangeProgress) String() string
- func (ccProgress *ConfChangeProgress) ToPrintable() *ChangeClusterStatus
- func (ccProgress *ConfChangeProgress) ToString() string
- func (m *ConfChangeProgress) XXX_DiscardUnknown()
- func (m *ConfChangeProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConfChangeProgress) XXX_Merge(src proto.Message)
- func (m *ConfChangeProgress) XXX_Size() int
- func (m *ConfChangeProgress) XXX_Unmarshal(b []byte) error
- type ConfChangeState
- type ConfigItem
- func (ci *ConfigItem) Add(key, value string) *ConfigItem
- func (ci *ConfigItem) AddBool(key string, value bool) *ConfigItem
- func (ci *ConfigItem) AddFloat(key string, value float64) *ConfigItem
- func (ci *ConfigItem) AddInt(key string, value int) *ConfigItem
- func (*ConfigItem) Descriptor() ([]byte, []int)
- func (m *ConfigItem) GetProps() map[string]string
- func (*ConfigItem) ProtoMessage()
- func (m *ConfigItem) Reset()
- func (m *ConfigItem) String() string
- func (m *ConfigItem) XXX_DiscardUnknown()
- func (m *ConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConfigItem) XXX_Merge(src proto.Message)
- func (m *ConfigItem) XXX_Size() int
- func (m *ConfigItem) XXX_Unmarshal(b []byte) error
- type ConsensusInfo
- func (*ConsensusInfo) Descriptor() ([]byte, []int)
- func (m *ConsensusInfo) GetBps() []string
- func (m *ConsensusInfo) GetInfo() string
- func (m *ConsensusInfo) GetType() string
- func (*ConsensusInfo) ProtoMessage()
- func (m *ConsensusInfo) Reset()
- func (m *ConsensusInfo) String() string
- func (m *ConsensusInfo) XXX_DiscardUnknown()
- func (m *ConsensusInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConsensusInfo) XXX_Merge(src proto.Message)
- func (m *ConsensusInfo) XXX_Size() int
- func (m *ConsensusInfo) XXX_Unmarshal(b []byte) error
- type ContractVarProof
- func (*ContractVarProof) Descriptor() ([]byte, []int)
- func (m *ContractVarProof) GetAuditPath() [][]byte
- func (m *ContractVarProof) GetBitmap() []byte
- func (m *ContractVarProof) GetHeight() uint32
- func (m *ContractVarProof) GetInclusion() bool
- func (m *ContractVarProof) GetKey() []byte
- func (m *ContractVarProof) GetProofKey() []byte
- func (m *ContractVarProof) GetProofVal() []byte
- func (m *ContractVarProof) GetValue() []byte
- func (*ContractVarProof) ProtoMessage()
- func (m *ContractVarProof) Reset()
- func (m *ContractVarProof) String() string
- func (m *ContractVarProof) XXX_DiscardUnknown()
- func (m *ContractVarProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ContractVarProof) XXX_Merge(src proto.Message)
- func (m *ContractVarProof) XXX_Size() int
- func (m *ContractVarProof) XXX_Unmarshal(b []byte) error
- type DummyBlockVersionner
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type EnterpriseBP
- type EnterpriseConfig
- func (*EnterpriseConfig) Descriptor() ([]byte, []int)
- func (m *EnterpriseConfig) GetKey() string
- func (m *EnterpriseConfig) GetOn() bool
- func (m *EnterpriseConfig) GetValues() []string
- func (*EnterpriseConfig) ProtoMessage()
- func (m *EnterpriseConfig) Reset()
- func (m *EnterpriseConfig) String() string
- func (m *EnterpriseConfig) XXX_DiscardUnknown()
- func (m *EnterpriseConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EnterpriseConfig) XXX_Merge(src proto.Message)
- func (m *EnterpriseConfig) XXX_Size() int
- func (m *EnterpriseConfig) XXX_Unmarshal(b []byte) error
- type EnterpriseConfigKey
- func (*EnterpriseConfigKey) Descriptor() ([]byte, []int)
- func (m *EnterpriseConfigKey) GetKey() string
- func (*EnterpriseConfigKey) ProtoMessage()
- func (m *EnterpriseConfigKey) Reset()
- func (m *EnterpriseConfigKey) String() string
- func (m *EnterpriseConfigKey) XXX_DiscardUnknown()
- func (m *EnterpriseConfigKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EnterpriseConfigKey) XXX_Merge(src proto.Message)
- func (m *EnterpriseConfigKey) XXX_Size() int
- func (m *EnterpriseConfigKey) XXX_Unmarshal(b []byte) error
- type EnterpriseTxStatus
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (ev *Event) Filter(filter *FilterInfo, argFilter []ArgFilter) bool
- func (m *Event) GetBlockHash() []byte
- func (m *Event) GetBlockNo() uint64
- func (m *Event) GetContractAddress() []byte
- func (m *Event) GetEventIdx() int32
- func (m *Event) GetEventName() string
- func (m *Event) GetJsonArgs() string
- func (m *Event) GetTxHash() []byte
- func (m *Event) GetTxIndex() int32
- func (ev *Event) MarshalBinary() ([]byte, error)
- func (ev *Event) MarshalJSON() ([]byte, error)
- func (ev *Event) MarshalMerkleBinary() ([]byte, error)
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (ev *Event) SetMemoryInfo(receipt *Receipt, blkHash []byte, blkNo BlockNo, txIdx int32)
- func (m *Event) String() string
- func (ev *Event) UnmarshalBinary(data []byte) ([]byte, error)
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type EventList
- func (*EventList) Descriptor() ([]byte, []int)
- func (m *EventList) GetEvents() []*Event
- func (*EventList) ProtoMessage()
- func (m *EventList) Reset()
- func (m *EventList) String() string
- func (m *EventList) XXX_DiscardUnknown()
- func (m *EventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *EventList) XXX_Merge(src proto.Message)
- func (m *EventList) XXX_Size() int
- func (m *EventList) XXX_Unmarshal(b []byte) error
- type FilterInfo
- func (*FilterInfo) Descriptor() ([]byte, []int)
- func (m *FilterInfo) GetArgFilter() []byte
- func (m *FilterInfo) GetBlockfrom() uint64
- func (m *FilterInfo) GetBlockto() uint64
- func (m *FilterInfo) GetContractAddress() []byte
- func (m *FilterInfo) GetDesc() bool
- func (m *FilterInfo) GetEventName() string
- func (fi *FilterInfo) GetExArgFilter() ([]ArgFilter, error)
- func (m *FilterInfo) GetRecentBlockCnt() int32
- func (*FilterInfo) ProtoMessage()
- func (m *FilterInfo) Reset()
- func (m *FilterInfo) String() string
- func (fi *FilterInfo) ValidateCheck(to uint64) error
- func (m *FilterInfo) XXX_DiscardUnknown()
- func (m *FilterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FilterInfo) XXX_Merge(src proto.Message)
- func (m *FilterInfo) XXX_Size() int
- func (m *FilterInfo) XXX_Unmarshal(b []byte) error
- type FnArgument
- func (*FnArgument) Descriptor() ([]byte, []int)
- func (m *FnArgument) GetName() string
- func (*FnArgument) ProtoMessage()
- func (m *FnArgument) Reset()
- func (m *FnArgument) String() string
- func (m *FnArgument) XXX_DiscardUnknown()
- func (m *FnArgument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FnArgument) XXX_Merge(src proto.Message)
- func (m *FnArgument) XXX_Size() int
- func (m *FnArgument) XXX_Unmarshal(b []byte) error
- type Function
- func (*Function) Descriptor() ([]byte, []int)
- func (m *Function) GetArguments() []*FnArgument
- func (m *Function) GetFeeDelegation() bool
- func (m *Function) GetName() string
- func (m *Function) GetPayable() bool
- func (m *Function) GetView() bool
- func (*Function) ProtoMessage()
- func (m *Function) Reset()
- func (m *Function) String() string
- func (m *Function) XXX_DiscardUnknown()
- func (m *Function) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Function) XXX_Merge(src proto.Message)
- func (m *Function) XXX_Size() int
- func (m *Function) XXX_Unmarshal(b []byte) error
- type Genesis
- func (g *Genesis) AddBalance(bal *big.Int)
- func (g *Genesis) Block() *Block
- func (g Genesis) Bytes() []byte
- func (g *Genesis) ChainID() ([]byte, error)
- func (g Genesis) ConsensusType() string
- func (g Genesis) HasDevChainID() bool
- func (g Genesis) HasPrivateChainID() bool
- func (g *Genesis) IsMainNet() bool
- func (g Genesis) IsMeyCoinPublicChain() bool
- func (g *Genesis) IsTestNet() bool
- func (g Genesis) PublicNet() bool
- func (g *Genesis) SetBlock(block *Block)
- func (g *Genesis) SetTotalBalance(v []byte)
- func (g *Genesis) TotalBalance() *big.Int
- func (g *Genesis) Validate() error
- type GetAncestorRequest
- func (*GetAncestorRequest) Descriptor() ([]byte, []int)
- func (m *GetAncestorRequest) GetHashes() [][]byte
- func (m *GetAncestorRequest) MarshalZerologObject(e *zerolog.Event)
- func (*GetAncestorRequest) ProtoMessage()
- func (m *GetAncestorRequest) Reset()
- func (m *GetAncestorRequest) String() string
- func (m *GetAncestorRequest) XXX_DiscardUnknown()
- func (m *GetAncestorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetAncestorRequest) XXX_Merge(src proto.Message)
- func (m *GetAncestorRequest) XXX_Size() int
- func (m *GetAncestorRequest) XXX_Unmarshal(b []byte) error
- type GetAncestorResponse
- func (*GetAncestorResponse) Descriptor() ([]byte, []int)
- func (m *GetAncestorResponse) GetAncestorHash() []byte
- func (m *GetAncestorResponse) GetAncestorNo() uint64
- func (m *GetAncestorResponse) GetStatus() ResultStatus
- func (m *GetAncestorResponse) MarshalZerologObject(e *zerolog.Event)
- func (*GetAncestorResponse) ProtoMessage()
- func (m *GetAncestorResponse) Reset()
- func (m *GetAncestorResponse) String() string
- func (m *GetAncestorResponse) XXX_DiscardUnknown()
- func (m *GetAncestorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetAncestorResponse) XXX_Merge(src proto.Message)
- func (m *GetAncestorResponse) XXX_Size() int
- func (m *GetAncestorResponse) XXX_Unmarshal(b []byte) error
- type GetBlockHeadersRequest
- func (*GetBlockHeadersRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockHeadersRequest) GetAsc() bool
- func (m *GetBlockHeadersRequest) GetHash() []byte
- func (m *GetBlockHeadersRequest) GetHeight() uint64
- func (m *GetBlockHeadersRequest) GetOffset() uint64
- func (m *GetBlockHeadersRequest) GetSize() uint32
- func (m *GetBlockHeadersRequest) MarshalZerologObject(e *zerolog.Event)
- func (*GetBlockHeadersRequest) ProtoMessage()
- func (m *GetBlockHeadersRequest) Reset()
- func (m *GetBlockHeadersRequest) String() string
- func (m *GetBlockHeadersRequest) XXX_DiscardUnknown()
- func (m *GetBlockHeadersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockHeadersRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockHeadersRequest) XXX_Size() int
- func (m *GetBlockHeadersRequest) XXX_Unmarshal(b []byte) error
- type GetBlockHeadersResponse
- func (*GetBlockHeadersResponse) Descriptor() ([]byte, []int)
- func (m *GetBlockHeadersResponse) GetHasNext() bool
- func (m *GetBlockHeadersResponse) GetHashes() [][]byte
- func (m *GetBlockHeadersResponse) GetHeaders() []*BlockHeader
- func (m *GetBlockHeadersResponse) GetStatus() ResultStatus
- func (m *GetBlockHeadersResponse) MarshalZerologObject(e *zerolog.Event)
- func (*GetBlockHeadersResponse) ProtoMessage()
- func (m *GetBlockHeadersResponse) Reset()
- func (m *GetBlockHeadersResponse) String() string
- func (m *GetBlockHeadersResponse) XXX_DiscardUnknown()
- func (m *GetBlockHeadersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockHeadersResponse) XXX_Merge(src proto.Message)
- func (m *GetBlockHeadersResponse) XXX_Size() int
- func (m *GetBlockHeadersResponse) XXX_Unmarshal(b []byte) error
- type GetBlockRequest
- func (*GetBlockRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockRequest) GetHashes() [][]byte
- func (m *GetBlockRequest) MarshalZerologObject(e *zerolog.Event)
- func (*GetBlockRequest) ProtoMessage()
- func (m *GetBlockRequest) Reset()
- func (m *GetBlockRequest) String() string
- func (m *GetBlockRequest) XXX_DiscardUnknown()
- func (m *GetBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockRequest) XXX_Merge(src proto.Message)
- func (m *GetBlockRequest) XXX_Size() int
- func (m *GetBlockRequest) XXX_Unmarshal(b []byte) error
- type GetBlockResponse
- func (*GetBlockResponse) Descriptor() ([]byte, []int)
- func (m *GetBlockResponse) GetBlocks() []*Block
- func (m *GetBlockResponse) GetHasNext() bool
- func (m *GetBlockResponse) GetStatus() ResultStatus
- func (m *GetBlockResponse) MarshalZerologObject(e *zerolog.Event)
- func (*GetBlockResponse) ProtoMessage()
- func (m *GetBlockResponse) Reset()
- func (m *GetBlockResponse) String() string
- func (m *GetBlockResponse) XXX_DiscardUnknown()
- func (m *GetBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBlockResponse) XXX_Merge(src proto.Message)
- func (m *GetBlockResponse) XXX_Size() int
- func (m *GetBlockResponse) XXX_Unmarshal(b []byte) error
- type GetClusterInfoRequest
- func (*GetClusterInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetClusterInfoRequest) GetBestBlockHash() []byte
- func (m *GetClusterInfoRequest) MarshalZerologObject(e *zerolog.Event)
- func (*GetClusterInfoRequest) ProtoMessage()
- func (m *GetClusterInfoRequest) Reset()
- func (m *GetClusterInfoRequest) String() string
- func (m *GetClusterInfoRequest) XXX_DiscardUnknown()
- func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetClusterInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetClusterInfoRequest) XXX_Size() int
- func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error
- type GetClusterInfoResponse
- func (*GetClusterInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetClusterInfoResponse) GetBestBlockNo() uint64
- func (m *GetClusterInfoResponse) GetChainID() []byte
- func (m *GetClusterInfoResponse) GetClusterID() uint64
- func (m *GetClusterInfoResponse) GetError() string
- func (m *GetClusterInfoResponse) GetHardStateInfo() *HardStateInfo
- func (m *GetClusterInfoResponse) GetMbrAttrs() []*MemberAttr
- func (m *GetClusterInfoResponse) MarshalZerologObject(e *zerolog.Event)
- func (*GetClusterInfoResponse) ProtoMessage()
- func (m *GetClusterInfoResponse) Reset()
- func (m *GetClusterInfoResponse) String() string
- func (m *GetClusterInfoResponse) XXX_DiscardUnknown()
- func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetClusterInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetClusterInfoResponse) XXX_Size() int
- func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error
- type GetHashByNo
- func (*GetHashByNo) Descriptor() ([]byte, []int)
- func (m *GetHashByNo) GetBlockNo() uint64
- func (m *GetHashByNo) MarshalZerologObject(e *zerolog.Event)
- func (*GetHashByNo) ProtoMessage()
- func (m *GetHashByNo) Reset()
- func (m *GetHashByNo) String() string
- func (m *GetHashByNo) XXX_DiscardUnknown()
- func (m *GetHashByNo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetHashByNo) XXX_Merge(src proto.Message)
- func (m *GetHashByNo) XXX_Size() int
- func (m *GetHashByNo) XXX_Unmarshal(b []byte) error
- type GetHashByNoResponse
- func (*GetHashByNoResponse) Descriptor() ([]byte, []int)
- func (m *GetHashByNoResponse) GetBlockHash() []byte
- func (m *GetHashByNoResponse) GetStatus() ResultStatus
- func (m *GetHashByNoResponse) MarshalZerologObject(e *zerolog.Event)
- func (*GetHashByNoResponse) ProtoMessage()
- func (m *GetHashByNoResponse) Reset()
- func (m *GetHashByNoResponse) String() string
- func (m *GetHashByNoResponse) XXX_DiscardUnknown()
- func (m *GetHashByNoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetHashByNoResponse) XXX_Merge(src proto.Message)
- func (m *GetHashByNoResponse) XXX_Size() int
- func (m *GetHashByNoResponse) XXX_Unmarshal(b []byte) error
- type GetHashesRequest
- func (*GetHashesRequest) Descriptor() ([]byte, []int)
- func (m *GetHashesRequest) GetPrevHash() []byte
- func (m *GetHashesRequest) GetPrevNumber() uint64
- func (m *GetHashesRequest) GetSize() uint64
- func (m *GetHashesRequest) MarshalZerologObject(e *zerolog.Event)
- func (*GetHashesRequest) ProtoMessage()
- func (m *GetHashesRequest) Reset()
- func (m *GetHashesRequest) String() string
- func (m *GetHashesRequest) XXX_DiscardUnknown()
- func (m *GetHashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetHashesRequest) XXX_Merge(src proto.Message)
- func (m *GetHashesRequest) XXX_Size() int
- func (m *GetHashesRequest) XXX_Unmarshal(b []byte) error
- type GetHashesResponse
- func (*GetHashesResponse) Descriptor() ([]byte, []int)
- func (m *GetHashesResponse) GetHasNext() bool
- func (m *GetHashesResponse) GetHashes() [][]byte
- func (m *GetHashesResponse) GetStatus() ResultStatus
- func (m *GetHashesResponse) MarshalZerologObject(e *zerolog.Event)
- func (*GetHashesResponse) ProtoMessage()
- func (m *GetHashesResponse) Reset()
- func (m *GetHashesResponse) String() string
- func (m *GetHashesResponse) XXX_DiscardUnknown()
- func (m *GetHashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetHashesResponse) XXX_Merge(src proto.Message)
- func (m *GetHashesResponse) XXX_Size() int
- func (m *GetHashesResponse) XXX_Unmarshal(b []byte) error
- type GetMissingRequest
- func (*GetMissingRequest) Descriptor() ([]byte, []int)
- func (m *GetMissingRequest) GetHashes() [][]byte
- func (m *GetMissingRequest) GetStophash() []byte
- func (*GetMissingRequest) ProtoMessage()
- func (m *GetMissingRequest) Reset()
- func (m *GetMissingRequest) String() string
- func (m *GetMissingRequest) XXX_DiscardUnknown()
- func (m *GetMissingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetMissingRequest) XXX_Merge(src proto.Message)
- func (m *GetMissingRequest) XXX_Size() int
- func (m *GetMissingRequest) XXX_Unmarshal(b []byte) error
- type GetTransactionsRequest
- func (*GetTransactionsRequest) Descriptor() ([]byte, []int)
- func (m *GetTransactionsRequest) GetHashes() [][]byte
- func (m *GetTransactionsRequest) MarshalZerologObject(e *zerolog.Event)
- func (*GetTransactionsRequest) ProtoMessage()
- func (m *GetTransactionsRequest) Reset()
- func (m *GetTransactionsRequest) String() string
- func (m *GetTransactionsRequest) XXX_DiscardUnknown()
- func (m *GetTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetTransactionsRequest) XXX_Merge(src proto.Message)
- func (m *GetTransactionsRequest) XXX_Size() int
- func (m *GetTransactionsRequest) XXX_Unmarshal(b []byte) error
- type GetTransactionsResponse
- func (*GetTransactionsResponse) Descriptor() ([]byte, []int)
- func (m *GetTransactionsResponse) GetHasNext() bool
- func (m *GetTransactionsResponse) GetHashes() [][]byte
- func (m *GetTransactionsResponse) GetStatus() ResultStatus
- func (m *GetTransactionsResponse) GetTxs() []*Tx
- func (m *GetTransactionsResponse) MarshalZerologObject(e *zerolog.Event)
- func (*GetTransactionsResponse) ProtoMessage()
- func (m *GetTransactionsResponse) Reset()
- func (m *GetTransactionsResponse) String() string
- func (m *GetTransactionsResponse) XXX_DiscardUnknown()
- func (m *GetTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetTransactionsResponse) XXX_Merge(src proto.Message)
- func (m *GetTransactionsResponse) XXX_Size() int
- func (m *GetTransactionsResponse) XXX_Unmarshal(b []byte) error
- type GoAwayNotice
- func (*GoAwayNotice) Descriptor() ([]byte, []int)
- func (m *GoAwayNotice) GetMessage() string
- func (m *GoAwayNotice) MarshalZerologObject(e *zerolog.Event)
- func (*GoAwayNotice) ProtoMessage()
- func (m *GoAwayNotice) Reset()
- func (m *GoAwayNotice) String() string
- func (m *GoAwayNotice) XXX_DiscardUnknown()
- func (m *GoAwayNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GoAwayNotice) XXX_Merge(src proto.Message)
- func (m *GoAwayNotice) XXX_Size() int
- func (m *GoAwayNotice) XXX_Unmarshal(b []byte) error
- type HardStateInfo
- func (*HardStateInfo) Descriptor() ([]byte, []int)
- func (m *HardStateInfo) GetCommit() uint64
- func (m *HardStateInfo) GetTerm() uint64
- func (*HardStateInfo) ProtoMessage()
- func (m *HardStateInfo) Reset()
- func (m *HardStateInfo) String() string
- func (hs *HardStateInfo) ToString() string
- func (m *HardStateInfo) XXX_DiscardUnknown()
- func (m *HardStateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HardStateInfo) XXX_Merge(src proto.Message)
- func (m *HardStateInfo) XXX_Size() int
- func (m *HardStateInfo) XXX_Unmarshal(b []byte) error
- type HashID
- type HostAccessor
- type ImplHashBytes
- type ImplHashID
- type ImplMarshal
- type ImportFormat
- func (*ImportFormat) Descriptor() ([]byte, []int)
- func (m *ImportFormat) GetKeystore() *SingleBytes
- func (m *ImportFormat) GetNewpass() string
- func (m *ImportFormat) GetOldpass() string
- func (m *ImportFormat) GetWif() *SingleBytes
- func (*ImportFormat) ProtoMessage()
- func (m *ImportFormat) Reset()
- func (m *ImportFormat) String() string
- func (m *ImportFormat) XXX_DiscardUnknown()
- func (m *ImportFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ImportFormat) XXX_Merge(src proto.Message)
- func (m *ImportFormat) XXX_Size() int
- func (m *ImportFormat) XXX_Unmarshal(b []byte) error
- type Input
- func (*Input) Descriptor() ([]byte, []int)
- func (m *Input) GetAddress() [][]byte
- func (m *Input) GetHash() []byte
- func (m *Input) GetScript() []byte
- func (m *Input) GetValue() []byte
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) String() string
- func (m *Input) XXX_DiscardUnknown()
- func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Input) XXX_Merge(src proto.Message)
- func (m *Input) XXX_Size() int
- func (m *Input) XXX_Unmarshal(b []byte) error
- type InternalError
- type IssueCertificateRequest
- func (*IssueCertificateRequest) Descriptor() ([]byte, []int)
- func (*IssueCertificateRequest) ProtoMessage()
- func (m *IssueCertificateRequest) Reset()
- func (m *IssueCertificateRequest) String() string
- func (m *IssueCertificateRequest) XXX_DiscardUnknown()
- func (m *IssueCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IssueCertificateRequest) XXX_Merge(src proto.Message)
- func (m *IssueCertificateRequest) XXX_Size() int
- func (m *IssueCertificateRequest) XXX_Unmarshal(b []byte) error
- type IssueCertificateResponse
- func (*IssueCertificateResponse) Descriptor() ([]byte, []int)
- func (m *IssueCertificateResponse) GetCertificate() *AgentCertificate
- func (m *IssueCertificateResponse) GetStatus() ResultStatus
- func (m *IssueCertificateResponse) MarshalZerologObject(e *zerolog.Event)
- func (*IssueCertificateResponse) ProtoMessage()
- func (m *IssueCertificateResponse) Reset()
- func (m *IssueCertificateResponse) String() string
- func (m *IssueCertificateResponse) XXX_DiscardUnknown()
- func (m *IssueCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IssueCertificateResponse) XXX_Merge(src proto.Message)
- func (m *IssueCertificateResponse) XXX_Size() int
- func (m *IssueCertificateResponse) XXX_Unmarshal(b []byte) error
- type KeyParams
- func (*KeyParams) Descriptor() ([]byte, []int)
- func (m *KeyParams) GetKey() []string
- func (*KeyParams) ProtoMessage()
- func (m *KeyParams) Reset()
- func (m *KeyParams) String() string
- func (m *KeyParams) XXX_DiscardUnknown()
- func (m *KeyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *KeyParams) XXX_Merge(src proto.Message)
- func (m *KeyParams) XXX_Size() int
- func (m *KeyParams) XXX_Unmarshal(b []byte) error
- type LastBlockStatus
- type ListParams
- func (*ListParams) Descriptor() ([]byte, []int)
- func (m *ListParams) GetAsc() bool
- func (m *ListParams) GetHash() []byte
- func (m *ListParams) GetHeight() uint64
- func (m *ListParams) GetOffset() uint32
- func (m *ListParams) GetSize() uint32
- func (*ListParams) ProtoMessage()
- func (m *ListParams) Reset()
- func (m *ListParams) String() string
- func (m *ListParams) XXX_DiscardUnknown()
- func (m *ListParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListParams) XXX_Merge(src proto.Message)
- func (m *ListParams) XXX_Size() int
- func (m *ListParams) XXX_Unmarshal(b []byte) error
- type LogB58EncMarshaller
- type LogBlockHashMarshaller
- type LogTrsactions
- type LogTx
- type LogTxHash
- type LogTxIDsMarshaller
- type MapQuery
- func (*MapQuery) Descriptor() ([]byte, []int)
- func (m *MapQuery) GetAddMe() bool
- func (m *MapQuery) GetExcludes() [][]byte
- func (m *MapQuery) GetSize() int32
- func (m *MapQuery) GetStatus() *Status
- func (*MapQuery) ProtoMessage()
- func (m *MapQuery) Reset()
- func (m *MapQuery) String() string
- func (m *MapQuery) XXX_DiscardUnknown()
- func (m *MapQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MapQuery) XXX_Merge(src proto.Message)
- func (m *MapQuery) XXX_Size() int
- func (m *MapQuery) XXX_Unmarshal(b []byte) error
- type MapResponse
- func (*MapResponse) Descriptor() ([]byte, []int)
- func (m *MapResponse) GetAddresses() []*PeerAddress
- func (m *MapResponse) GetMessage() string
- func (m *MapResponse) GetStatus() ResultStatus
- func (*MapResponse) ProtoMessage()
- func (m *MapResponse) Reset()
- func (m *MapResponse) String() string
- func (m *MapResponse) XXX_DiscardUnknown()
- func (m *MapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MapResponse) XXX_Merge(src proto.Message)
- func (m *MapResponse) XXX_Size() int
- func (m *MapResponse) XXX_Unmarshal(b []byte) error
- type MemberAttr
- func (*MemberAttr) Descriptor() ([]byte, []int)
- func (m *MemberAttr) GetAddress() string
- func (m *MemberAttr) GetID() uint64
- func (m *MemberAttr) GetName() string
- func (m *MemberAttr) GetPeerID() []byte
- func (mattr *MemberAttr) MarshalJSON() ([]byte, error)
- func (*MemberAttr) ProtoMessage()
- func (m *MemberAttr) Reset()
- func (m *MemberAttr) String() string
- func (mattr *MemberAttr) ToString() string
- func (mattr *MemberAttr) UnmarshalJSON(data []byte) error
- func (m *MemberAttr) XXX_DiscardUnknown()
- func (m *MemberAttr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MemberAttr) XXX_Merge(src proto.Message)
- func (m *MemberAttr) XXX_Size() int
- func (m *MemberAttr) XXX_Unmarshal(b []byte) error
- type MembershipChange
- func (*MembershipChange) Descriptor() ([]byte, []int)
- func (m *MembershipChange) GetAttr() *MemberAttr
- func (m *MembershipChange) GetRequestID() uint64
- func (m *MembershipChange) GetType() MembershipChangeType
- func (*MembershipChange) ProtoMessage()
- func (m *MembershipChange) Reset()
- func (m *MembershipChange) String() string
- func (mc *MembershipChange) ToString() string
- func (m *MembershipChange) XXX_DiscardUnknown()
- func (m *MembershipChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MembershipChange) XXX_Merge(src proto.Message)
- func (m *MembershipChange) XXX_Size() int
- func (m *MembershipChange) XXX_Unmarshal(b []byte) error
- type MembershipChangeReply
- func (*MembershipChangeReply) Descriptor() ([]byte, []int)
- func (m *MembershipChangeReply) GetAttr() *MemberAttr
- func (*MembershipChangeReply) ProtoMessage()
- func (m *MembershipChangeReply) Reset()
- func (m *MembershipChangeReply) String() string
- func (m *MembershipChangeReply) XXX_DiscardUnknown()
- func (m *MembershipChangeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MembershipChangeReply) XXX_Merge(src proto.Message)
- func (m *MembershipChangeReply) XXX_Size() int
- func (m *MembershipChangeReply) XXX_Unmarshal(b []byte) error
- type MembershipChangeType
- type MetricType
- type Metrics
- func (*Metrics) Descriptor() ([]byte, []int)
- func (m *Metrics) GetPeers() []*PeerMetric
- func (*Metrics) ProtoMessage()
- func (m *Metrics) Reset()
- func (m *Metrics) String() string
- func (m *Metrics) XXX_DiscardUnknown()
- func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Metrics) XXX_Merge(src proto.Message)
- func (m *Metrics) XXX_Size() int
- func (m *Metrics) XXX_Unmarshal(b []byte) error
- type MetricsRequest
- func (*MetricsRequest) Descriptor() ([]byte, []int)
- func (m *MetricsRequest) GetTypes() []MetricType
- func (*MetricsRequest) ProtoMessage()
- func (m *MetricsRequest) Reset()
- func (m *MetricsRequest) String() string
- func (m *MetricsRequest) XXX_DiscardUnknown()
- func (m *MetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MetricsRequest) XXX_Merge(src proto.Message)
- func (m *MetricsRequest) XXX_Size() int
- func (m *MetricsRequest) XXX_Unmarshal(b []byte) error
- type MeyCoinRPCServiceClient
- type MeyCoinRPCServiceServer
- type MeyCoinRPCService_ListBlockMetadataStreamClient
- type MeyCoinRPCService_ListBlockMetadataStreamServer
- type MeyCoinRPCService_ListBlockStreamClient
- type MeyCoinRPCService_ListBlockStreamServer
- type MeyCoinRPCService_ListEventStreamClient
- type MeyCoinRPCService_ListEventStreamServer
- type MovingAverage
- type MsgHeader
- func (*MsgHeader) Descriptor() ([]byte, []int)
- func (m *MsgHeader) GetClientVersion() string
- func (m *MsgHeader) GetGossip() bool
- func (m *MsgHeader) GetId() string
- func (m *MsgHeader) GetLength() uint32
- func (m *MsgHeader) GetNodePubKey() []byte
- func (m *MsgHeader) GetPeerID() []byte
- func (m *MsgHeader) GetSign() []byte
- func (m *MsgHeader) GetSubprotocol() uint32
- func (m *MsgHeader) GetTimestamp() int64
- func (*MsgHeader) ProtoMessage()
- func (m *MsgHeader) Reset()
- func (m *MsgHeader) String() string
- func (m *MsgHeader) XXX_DiscardUnknown()
- func (m *MsgHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MsgHeader) XXX_Merge(src proto.Message)
- func (m *MsgHeader) XXX_Size() int
- func (m *MsgHeader) XXX_Unmarshal(b []byte) error
- type Multiaddr
- type Name
- func (*Name) Descriptor() ([]byte, []int)
- func (m *Name) GetBlockNo() uint64
- func (m *Name) GetName() string
- func (*Name) ProtoMessage()
- func (m *Name) Reset()
- func (m *Name) String() string
- func (m *Name) XXX_DiscardUnknown()
- func (m *Name) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Name) XXX_Merge(src proto.Message)
- func (m *Name) XXX_Size() int
- func (m *Name) XXX_Unmarshal(b []byte) error
- type NameInfo
- func (*NameInfo) Descriptor() ([]byte, []int)
- func (m *NameInfo) GetDestination() []byte
- func (m *NameInfo) GetName() *Name
- func (m *NameInfo) GetOwner() []byte
- func (*NameInfo) ProtoMessage()
- func (m *NameInfo) Reset()
- func (m *NameInfo) String() string
- func (m *NameInfo) XXX_DiscardUnknown()
- func (m *NameInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NameInfo) XXX_Merge(src proto.Message)
- func (m *NameInfo) XXX_Size() int
- func (m *NameInfo) XXX_Unmarshal(b []byte) error
- type NetAddress
- type NewBlockNotice
- func (*NewBlockNotice) Descriptor() ([]byte, []int)
- func (m *NewBlockNotice) GetBlockHash() []byte
- func (m *NewBlockNotice) GetBlockNo() uint64
- func (*NewBlockNotice) ProtoMessage()
- func (m *NewBlockNotice) Reset()
- func (m *NewBlockNotice) String() string
- func (m *NewBlockNotice) XXX_DiscardUnknown()
- func (m *NewBlockNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NewBlockNotice) XXX_Merge(src proto.Message)
- func (m *NewBlockNotice) XXX_Size() int
- func (m *NewBlockNotice) XXX_Unmarshal(b []byte) error
- type NewTransactionsNotice
- func (*NewTransactionsNotice) Descriptor() ([]byte, []int)
- func (m *NewTransactionsNotice) GetTxHashes() [][]byte
- func (m *NewTransactionsNotice) MarshalZerologObject(e *zerolog.Event)
- func (*NewTransactionsNotice) ProtoMessage()
- func (m *NewTransactionsNotice) Reset()
- func (m *NewTransactionsNotice) String() string
- func (m *NewTransactionsNotice) XXX_DiscardUnknown()
- func (m *NewTransactionsNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NewTransactionsNotice) XXX_Merge(src proto.Message)
- func (m *NewTransactionsNotice) XXX_Size() int
- func (m *NewTransactionsNotice) XXX_Unmarshal(b []byte) error
- type NodeReq
- func (*NodeReq) Descriptor() ([]byte, []int)
- func (m *NodeReq) GetComponent() []byte
- func (m *NodeReq) GetTimeout() []byte
- func (*NodeReq) ProtoMessage()
- func (m *NodeReq) Reset()
- func (m *NodeReq) String() string
- func (m *NodeReq) XXX_DiscardUnknown()
- func (m *NodeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NodeReq) XXX_Merge(src proto.Message)
- func (m *NodeReq) XXX_Size() int
- func (m *NodeReq) XXX_Unmarshal(b []byte) error
- type OpSysTx
- type Output
- func (*Output) Descriptor() ([]byte, []int)
- func (m *Output) GetAddress() []byte
- func (m *Output) GetIndex() uint32
- func (m *Output) GetScript() []byte
- func (m *Output) GetValue() []byte
- func (*Output) ProtoMessage()
- func (m *Output) Reset()
- func (m *Output) String() string
- func (m *Output) XXX_DiscardUnknown()
- func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Output) XXX_Merge(src proto.Message)
- func (m *Output) XXX_Size() int
- func (m *Output) XXX_Unmarshal(b []byte) error
- type P2PMessage
- func (*P2PMessage) Descriptor() ([]byte, []int)
- func (m *P2PMessage) GetData() []byte
- func (m *P2PMessage) GetHeader() *MsgHeader
- func (*P2PMessage) ProtoMessage()
- func (m *P2PMessage) Reset()
- func (m *P2PMessage) String() string
- func (m *P2PMessage) XXX_DiscardUnknown()
- func (m *P2PMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *P2PMessage) XXX_Merge(src proto.Message)
- func (m *P2PMessage) XXX_Size() int
- func (m *P2PMessage) XXX_Unmarshal(b []byte) error
- type PageParams
- func (*PageParams) Descriptor() ([]byte, []int)
- func (m *PageParams) GetOffset() uint32
- func (m *PageParams) GetSize() uint32
- func (*PageParams) ProtoMessage()
- func (m *PageParams) Reset()
- func (m *PageParams) String() string
- func (m *PageParams) XXX_DiscardUnknown()
- func (m *PageParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PageParams) XXX_Merge(src proto.Message)
- func (m *PageParams) XXX_Size() int
- func (m *PageParams) XXX_Unmarshal(b []byte) error
- type Paginations
- func (*Paginations) Descriptor() ([]byte, []int)
- func (m *Paginations) GetRef() []byte
- func (m *Paginations) GetSize() uint32
- func (*Paginations) ProtoMessage()
- func (m *Paginations) Reset()
- func (m *Paginations) String() string
- func (m *Paginations) XXX_DiscardUnknown()
- func (m *Paginations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Paginations) XXX_Merge(src proto.Message)
- func (m *Paginations) XXX_Size() int
- func (m *Paginations) XXX_Unmarshal(b []byte) error
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetAcceptedRole() PeerRole
- func (m *Peer) GetAddress() *PeerAddress
- func (m *Peer) GetBestblock() *NewBlockNotice
- func (m *Peer) GetCertificates() []*AgentCertificate
- func (m *Peer) GetHidden() bool
- func (m *Peer) GetLashCheck() int64
- func (m *Peer) GetSelfpeer() bool
- func (m *Peer) GetState() int32
- func (m *Peer) GetVersion() string
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type PeerAddress
- func (*PeerAddress) Descriptor() ([]byte, []int)
- func (m *PeerAddress) GetAddress() string
- func (m *PeerAddress) GetAddresses() []string
- func (m *PeerAddress) GetPeerID() []byte
- func (m *PeerAddress) GetPort() uint32
- func (m *PeerAddress) GetProducerIDs() [][]byte
- func (m *PeerAddress) GetRole() PeerRole
- func (m *PeerAddress) GetVersion() string
- func (*PeerAddress) ProtoMessage()
- func (m *PeerAddress) Reset()
- func (m *PeerAddress) String() string
- func (m *PeerAddress) XXX_DiscardUnknown()
- func (m *PeerAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PeerAddress) XXX_Merge(src proto.Message)
- func (m *PeerAddress) XXX_Size() int
- func (m *PeerAddress) XXX_Unmarshal(b []byte) error
- type PeerBlockInfo
- type PeerID
- type PeerList
- func (*PeerList) Descriptor() ([]byte, []int)
- func (m *PeerList) GetPeers() []*Peer
- func (*PeerList) ProtoMessage()
- func (m *PeerList) Reset()
- func (m *PeerList) String() string
- func (m *PeerList) XXX_DiscardUnknown()
- func (m *PeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PeerList) XXX_Merge(src proto.Message)
- func (m *PeerList) XXX_Size() int
- func (m *PeerList) XXX_Unmarshal(b []byte) error
- type PeerMetric
- func (*PeerMetric) Descriptor() ([]byte, []int)
- func (m *PeerMetric) GetAvrIn() int64
- func (m *PeerMetric) GetAvrOut() int64
- func (m *PeerMetric) GetPeerID() []byte
- func (m *PeerMetric) GetSumIn() int64
- func (m *PeerMetric) GetSumOut() int64
- func (*PeerMetric) ProtoMessage()
- func (m *PeerMetric) Reset()
- func (m *PeerMetric) String() string
- func (m *PeerMetric) XXX_DiscardUnknown()
- func (m *PeerMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PeerMetric) XXX_Merge(src proto.Message)
- func (m *PeerMetric) XXX_Size() int
- func (m *PeerMetric) XXX_Unmarshal(b []byte) error
- type PeerRole
- type PeerState
- type PeersParams
- func (*PeersParams) Descriptor() ([]byte, []int)
- func (m *PeersParams) GetNoHidden() bool
- func (m *PeersParams) GetShowSelf() bool
- func (*PeersParams) ProtoMessage()
- func (m *PeersParams) Reset()
- func (m *PeersParams) String() string
- func (m *PeersParams) XXX_DiscardUnknown()
- func (m *PeersParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PeersParams) XXX_Merge(src proto.Message)
- func (m *PeersParams) XXX_Size() int
- func (m *PeersParams) XXX_Unmarshal(b []byte) error
- type Personal
- func (*Personal) Descriptor() ([]byte, []int)
- func (m *Personal) GetAccount() *Account
- func (m *Personal) GetPassphrase() string
- func (*Personal) ProtoMessage()
- func (m *Personal) Reset()
- func (m *Personal) String() string
- func (m *Personal) XXX_DiscardUnknown()
- func (m *Personal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Personal) XXX_Merge(src proto.Message)
- func (m *Personal) XXX_Size() int
- func (m *Personal) XXX_Unmarshal(b []byte) error
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (m *Ping) GetBestBlockHash() []byte
- func (m *Ping) GetBestHeight() uint64
- func (m *Ping) MarshalZerologObject(e *zerolog.Event)
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)
- func (m *Pong) GetBestBlockHash() []byte
- func (m *Pong) GetBestHeight() uint64
- func (*Pong) ProtoMessage()
- func (m *Pong) Reset()
- func (m *Pong) String() string
- func (m *Pong) XXX_DiscardUnknown()
- func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Pong) XXX_Merge(src proto.Message)
- func (m *Pong) XXX_Size() int
- func (m *Pong) XXX_Unmarshal(b []byte) error
- type ProducerID
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetDescription() string
- func (m *Proposal) GetId() string
- func (m *Proposal) GetMultipleChoice() uint32
- func (*Proposal) ProtoMessage()
- func (m *Proposal) Reset()
- func (m *Proposal) String() string
- func (m *Proposal) XXX_DiscardUnknown()
- func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Proposal) XXX_Merge(src proto.Message)
- func (m *Proposal) XXX_Size() int
- func (m *Proposal) XXX_Unmarshal(b []byte) error
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetContractAddress() []byte
- func (m *Query) GetQueryinfo() []byte
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) String() string
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Query) XXX_Merge(src proto.Message)
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
- type RaftMbrsMarshaller
- type RawEntry
- type Receipt
- func (r *Receipt) BloomFilter(fi *FilterInfo) bool
- func (*Receipt) Descriptor() ([]byte, []int)
- func (m *Receipt) GetBlockHash() []byte
- func (m *Receipt) GetBlockNo() uint64
- func (m *Receipt) GetBloom() []byte
- func (m *Receipt) GetContractAddress() []byte
- func (m *Receipt) GetCumulativeFeeUsed() []byte
- func (m *Receipt) GetEvents() []*Event
- func (m *Receipt) GetFeeDelegation() bool
- func (m *Receipt) GetFeeUsed() []byte
- func (m *Receipt) GetFrom() []byte
- func (m *Receipt) GetGasUsed() uint64
- func (r *Receipt) GetHash() []byte
- func (m *Receipt) GetRet() string
- func (m *Receipt) GetStatus() string
- func (m *Receipt) GetTo() []byte
- func (m *Receipt) GetTxHash() []byte
- func (m *Receipt) GetTxIndex() int32
- func (r *Receipt) MarshalBinaryTest() ([]byte, error)
- func (r *Receipt) MarshalJSON() ([]byte, error)
- func (r *Receipt) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)
- func (r *Receipt) MarshalMerkleBinary() ([]byte, error)
- func (r *Receipt) MarshalMerkleBinaryV2() ([]byte, error)
- func (*Receipt) ProtoMessage()
- func (r *Receipt) ReadFrom(data []byte) ([]byte, error)
- func (m *Receipt) Reset()
- func (r *Receipt) SetMemoryInfo(blkHash []byte, blkNo BlockNo, txIdx int32)
- func (m *Receipt) String() string
- func (r *Receipt) UnmarshalBinaryTest(data []byte) error
- func (m *Receipt) XXX_DiscardUnknown()
- func (m *Receipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Receipt) XXX_Merge(src proto.Message)
- func (m *Receipt) XXX_Size() int
- func (m *Receipt) XXX_Unmarshal(b []byte) error
- type ReceiptMerkle
- type Receipts
- func (rs *Receipts) BloomFilter(fi *FilterInfo) bool
- func (rs *Receipts) Get() []*Receipt
- func (rs *Receipts) MarshalBinary() ([]byte, error)
- func (rs *Receipts) MergeBloom(bf *bloom.BloomFilter) error
- func (rs *Receipts) MerkleRoot() []byte
- func (rs *Receipts) Set(receipts []*Receipt)
- func (rs *Receipts) SetHardFork(hardForkConfig BlockVersionner, blockNo BlockNo)
- func (rs *Receipts) UnmarshalBinary(data []byte) error
- type ResponseMessage
- type ResultStatus
- type RmEntryParams
- func (*RmEntryParams) Descriptor() ([]byte, []int)
- func (m *RmEntryParams) GetIndex() uint32
- func (*RmEntryParams) ProtoMessage()
- func (m *RmEntryParams) Reset()
- func (m *RmEntryParams) String() string
- func (m *RmEntryParams) XXX_DiscardUnknown()
- func (m *RmEntryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RmEntryParams) XXX_Merge(src proto.Message)
- func (m *RmEntryParams) XXX_Size() int
- func (m *RmEntryParams) XXX_Unmarshal(b []byte) error
- type ServerInfo
- func (*ServerInfo) Descriptor() ([]byte, []int)
- func (m *ServerInfo) GetConfig() map[string]*ConfigItem
- func (m *ServerInfo) GetStatus() map[string]string
- func (*ServerInfo) ProtoMessage()
- func (m *ServerInfo) Reset()
- func (m *ServerInfo) String() string
- func (m *ServerInfo) XXX_DiscardUnknown()
- func (m *ServerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ServerInfo) XXX_Merge(src proto.Message)
- func (m *ServerInfo) XXX_Size() int
- func (m *ServerInfo) XXX_Unmarshal(b []byte) error
- type SingleBytes
- func (*SingleBytes) Descriptor() ([]byte, []int)
- func (m *SingleBytes) GetValue() []byte
- func (*SingleBytes) ProtoMessage()
- func (m *SingleBytes) Reset()
- func (m *SingleBytes) String() string
- func (m *SingleBytes) XXX_DiscardUnknown()
- func (m *SingleBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SingleBytes) XXX_Merge(src proto.Message)
- func (m *SingleBytes) XXX_Size() int
- func (m *SingleBytes) XXX_Unmarshal(b []byte) error
- type SingleString
- func (*SingleString) Descriptor() ([]byte, []int)
- func (m *SingleString) GetValue() string
- func (*SingleString) ProtoMessage()
- func (m *SingleString) Reset()
- func (m *SingleString) String() string
- func (m *SingleString) XXX_DiscardUnknown()
- func (m *SingleString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SingleString) XXX_Merge(src proto.Message)
- func (m *SingleString) XXX_Size() int
- func (m *SingleString) XXX_Unmarshal(b []byte) error
- type SnapshotResponse
- func (*SnapshotResponse) Descriptor() ([]byte, []int)
- func (m *SnapshotResponse) GetMessage() string
- func (m *SnapshotResponse) GetStatus() ResultStatus
- func (*SnapshotResponse) ProtoMessage()
- func (m *SnapshotResponse) Reset()
- func (m *SnapshotResponse) String() string
- func (m *SnapshotResponse) XXX_DiscardUnknown()
- func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SnapshotResponse) XXX_Merge(src proto.Message)
- func (m *SnapshotResponse) XXX_Size() int
- func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error
- type Staking
- func (s *Staking) Add(amount *big.Int)
- func (*Staking) Descriptor() ([]byte, []int)
- func (m *Staking) GetAmount() []byte
- func (s *Staking) GetAmountBigInt() *big.Int
- func (m *Staking) GetWhen() uint64
- func (*Staking) ProtoMessage()
- func (m *Staking) Reset()
- func (s *Staking) SetWhen(blockNo BlockNo)
- func (m *Staking) String() string
- func (s *Staking) Sub(amount *big.Int) *big.Int
- func (m *Staking) XXX_DiscardUnknown()
- func (m *Staking) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Staking) XXX_Merge(src proto.Message)
- func (m *Staking) XXX_Size() int
- func (m *Staking) XXX_Unmarshal(b []byte) error
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetBalance() []byte
- func (st *State) GetBalanceBigInt() *big.Int
- func (m *State) GetCodeHash() []byte
- func (m *State) GetNonce() uint64
- func (m *State) GetSqlRecoveryPoint() uint64
- func (m *State) GetStorageRoot() []byte
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) String() string
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
- type StateQuery
- func (*StateQuery) Descriptor() ([]byte, []int)
- func (m *StateQuery) GetCompressed() bool
- func (m *StateQuery) GetContractAddress() []byte
- func (m *StateQuery) GetRoot() []byte
- func (m *StateQuery) GetStorageKeys() [][]byte
- func (*StateQuery) ProtoMessage()
- func (m *StateQuery) Reset()
- func (m *StateQuery) String() string
- func (m *StateQuery) XXX_DiscardUnknown()
- func (m *StateQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StateQuery) XXX_Merge(src proto.Message)
- func (m *StateQuery) XXX_Size() int
- func (m *StateQuery) XXX_Unmarshal(b []byte) error
- type StateQueryProof
- func (*StateQueryProof) Descriptor() ([]byte, []int)
- func (m *StateQueryProof) GetContractProof() *AccountProof
- func (m *StateQueryProof) GetVarProofs() []*ContractVarProof
- func (*StateQueryProof) ProtoMessage()
- func (m *StateQueryProof) Reset()
- func (m *StateQueryProof) String() string
- func (m *StateQueryProof) XXX_DiscardUnknown()
- func (m *StateQueryProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StateQueryProof) XXX_Merge(src proto.Message)
- func (m *StateQueryProof) XXX_Size() int
- func (m *StateQueryProof) XXX_Unmarshal(b []byte) error
- type StateVar
- func (*StateVar) Descriptor() ([]byte, []int)
- func (m *StateVar) GetLen() int32
- func (m *StateVar) GetName() string
- func (m *StateVar) GetType() string
- func (*StateVar) ProtoMessage()
- func (m *StateVar) Reset()
- func (m *StateVar) String() string
- func (m *StateVar) XXX_DiscardUnknown()
- func (m *StateVar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StateVar) XXX_Merge(src proto.Message)
- func (m *StateVar) XXX_Size() int
- func (m *StateVar) XXX_Unmarshal(b []byte) error
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetBestBlockHash() []byte
- func (m *Status) GetBestHeight() uint64
- func (m *Status) GetCertificates() []*AgentCertificate
- func (m *Status) GetChainID() []byte
- func (m *Status) GetGenesis() []byte
- func (m *Status) GetIssueCertificate() bool
- func (m *Status) GetNoExpose() bool
- func (m *Status) GetSender() *PeerAddress
- func (m *Status) GetVersion() string
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) String() string
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
- type Stream
- type SyncContext
- type SystemValue
- type Transaction
- type Tx
- func (tx *Tx) CalculateTxHash() []byte
- func (tx *Tx) Clone() *Tx
- func (*Tx) Descriptor() ([]byte, []int)
- func (m *Tx) GetBody() *TxBody
- func (m *Tx) GetHash() []byte
- func (tx *Tx) HasNameAccount() bool
- func (tx *Tx) HasNameRecipient() bool
- func (tx *Tx) NeedNameVerify() bool
- func (*Tx) ProtoMessage()
- func (m *Tx) Reset()
- func (m *Tx) String() string
- func (tx *Tx) ValidateWithContractState(contractState *State) error
- func (m *Tx) XXX_DiscardUnknown()
- func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Tx) XXX_Merge(src proto.Message)
- func (m *Tx) XXX_Size() int
- func (m *Tx) XXX_Unmarshal(b []byte) error
- type TxBody
- func (*TxBody) Descriptor() ([]byte, []int)
- func (m *TxBody) GetAccount() []byte
- func (m *TxBody) GetAmount() []byte
- func (b *TxBody) GetAmountBigInt() *big.Int
- func (m *TxBody) GetChainIdHash() []byte
- func (m *TxBody) GetGasLimit() uint64
- func (m *TxBody) GetGasPrice() []byte
- func (b *TxBody) GetGasPriceBigInt() *big.Int
- func (m *TxBody) GetNonce() uint64
- func (m *TxBody) GetPayload() []byte
- func (m *TxBody) GetRecipient() []byte
- func (m *TxBody) GetSign() []byte
- func (m *TxBody) GetType() TxType
- func (*TxBody) ProtoMessage()
- func (m *TxBody) Reset()
- func (m *TxBody) String() string
- func (m *TxBody) XXX_DiscardUnknown()
- func (m *TxBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxBody) XXX_Merge(src proto.Message)
- func (m *TxBody) XXX_Size() int
- func (m *TxBody) XXX_Unmarshal(b []byte) error
- type TxHash
- type TxID
- type TxIdx
- func (*TxIdx) Descriptor() ([]byte, []int)
- func (m *TxIdx) GetBlockHash() []byte
- func (m *TxIdx) GetIdx() int32
- func (*TxIdx) ProtoMessage()
- func (m *TxIdx) Reset()
- func (m *TxIdx) String() string
- func (m *TxIdx) XXX_DiscardUnknown()
- func (m *TxIdx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxIdx) XXX_Merge(src proto.Message)
- func (m *TxIdx) XXX_Size() int
- func (m *TxIdx) XXX_Unmarshal(b []byte) error
- type TxInBlock
- func (*TxInBlock) Descriptor() ([]byte, []int)
- func (m *TxInBlock) GetTx() *Tx
- func (m *TxInBlock) GetTxIdx() *TxIdx
- func (*TxInBlock) ProtoMessage()
- func (m *TxInBlock) Reset()
- func (m *TxInBlock) String() string
- func (m *TxInBlock) XXX_DiscardUnknown()
- func (m *TxInBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxInBlock) XXX_Merge(src proto.Message)
- func (m *TxInBlock) XXX_Size() int
- func (m *TxInBlock) XXX_Unmarshal(b []byte) error
- type TxList
- func (*TxList) Descriptor() ([]byte, []int)
- func (m *TxList) GetTxs() []*Tx
- func (*TxList) ProtoMessage()
- func (m *TxList) Reset()
- func (m *TxList) String() string
- func (m *TxList) XXX_DiscardUnknown()
- func (m *TxList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TxList) XXX_Merge(src proto.Message)
- func (m *TxList) XXX_Size() int
- func (m *TxList) XXX_Unmarshal(b []byte) error
- type TxType
- type VerifyResult
- func (*VerifyResult) Descriptor() ([]byte, []int)
- func (m *VerifyResult) GetError() VerifyStatus
- func (m *VerifyResult) GetTx() *Tx
- func (*VerifyResult) ProtoMessage()
- func (m *VerifyResult) Reset()
- func (m *VerifyResult) String() string
- func (m *VerifyResult) XXX_DiscardUnknown()
- func (m *VerifyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VerifyResult) XXX_Merge(src proto.Message)
- func (m *VerifyResult) XXX_Size() int
- func (m *VerifyResult) XXX_Unmarshal(b []byte) error
- type VerifyStatus
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetAmount() []byte
- func (v *Vote) GetAmountBigInt() *big.Int
- func (m *Vote) GetCandidate() []byte
- func (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) String() string
- func (m *Vote) XXX_DiscardUnknown()
- func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Vote) XXX_Merge(src proto.Message)
- func (m *Vote) XXX_Size() int
- func (m *Vote) XXX_Unmarshal(b []byte) error
- type VoteInfo
- func (*VoteInfo) Descriptor() ([]byte, []int)
- func (m *VoteInfo) GetAmount() string
- func (m *VoteInfo) GetCandidates() []string
- func (m *VoteInfo) GetId() string
- func (*VoteInfo) ProtoMessage()
- func (m *VoteInfo) Reset()
- func (m *VoteInfo) String() string
- func (m *VoteInfo) XXX_DiscardUnknown()
- func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VoteInfo) XXX_Merge(src proto.Message)
- func (m *VoteInfo) XXX_Size() int
- func (m *VoteInfo) XXX_Unmarshal(b []byte) error
- type VoteList
- func (*VoteList) Descriptor() ([]byte, []int)
- func (m *VoteList) GetId() string
- func (m *VoteList) GetVotes() []*Vote
- func (vl VoteList) Len() int
- func (vl VoteList) Less(i, j int) bool
- func (*VoteList) ProtoMessage()
- func (m *VoteList) Reset()
- func (m *VoteList) String() string
- func (vl VoteList) Swap(i, j int)
- func (m *VoteList) XXX_DiscardUnknown()
- func (m *VoteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VoteList) XXX_Merge(src proto.Message)
- func (m *VoteList) XXX_Size() int
- func (m *VoteList) XXX_Unmarshal(b []byte) error
- type VoteParams
- func (*VoteParams) Descriptor() ([]byte, []int)
- func (m *VoteParams) GetCount() uint32
- func (m *VoteParams) GetId() string
- func (*VoteParams) ProtoMessage()
- func (m *VoteParams) Reset()
- func (m *VoteParams) String() string
- func (m *VoteParams) XXX_DiscardUnknown()
- func (m *VoteParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *VoteParams) XXX_Merge(src proto.Message)
- func (m *VoteParams) XXX_Size() int
- func (m *VoteParams) XXX_Unmarshal(b []byte) error
- type VotingIssue
- type WezenPeer
- func (*WezenPeer) Descriptor() ([]byte, []int)
- func (m *WezenPeer) GetAddress() *PeerAddress
- func (m *WezenPeer) GetConnected() int64
- func (m *WezenPeer) GetLastCheck() int64
- func (m *WezenPeer) GetVerion() string
- func (*WezenPeer) ProtoMessage()
- func (m *WezenPeer) Reset()
- func (m *WezenPeer) String() string
- func (m *WezenPeer) XXX_DiscardUnknown()
- func (m *WezenPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *WezenPeer) XXX_Merge(src proto.Message)
- func (m *WezenPeer) XXX_Size() int
- func (m *WezenPeer) XXX_Unmarshal(b []byte) error
- type WezenPeerList
- func (*WezenPeerList) Descriptor() ([]byte, []int)
- func (m *WezenPeerList) GetHasNext() bool
- func (m *WezenPeerList) GetPeers() []*WezenPeer
- func (m *WezenPeerList) GetTotal() uint32
- func (*WezenPeerList) ProtoMessage()
- func (m *WezenPeerList) Reset()
- func (m *WezenPeerList) String() string
- func (m *WezenPeerList) XXX_DiscardUnknown()
- func (m *WezenPeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *WezenPeerList) XXX_Merge(src proto.Message)
- func (m *WezenPeerList) XXX_Size() int
- func (m *WezenPeerList) XXX_Unmarshal(b []byte) error
- type WezenRPCServiceClient
- type WezenRPCServiceServer
- type WhiteListEntry
Constants ¶
const ( // DefaultMaxBlockSize is the maximum block size (currently 1MiB) DefaultMaxBlockSize = 1 << 20 DefaultEvictPeriod = 12 // DefaultMaxHdrSize is the max size of the proto-buf serialized non-body // fields. For the estimation detail, check 'TestBlockHeaderLimit' in // 'blockchain_test.go.' Caution: Be sure to adjust the value below if the // structure of the header is changed. DefaultMaxHdrSize = 400 )
const ( InvalidAddrType = 0 AddrTypeIP4 = multiaddr.P_IP4 AddrTypeIP6 = multiaddr.P_IP6 AddrTypeDNS4 = multiaddr.P_DNS4 AddrTypeDNS6 = multiaddr.P_DNS6 )
const ( LogChainID = "chain_id" LogBlkHash = "blk_hash" LogBlkNo = "blk_no" LogRespStatus = "status" LogHasNext = "has_next" )
const ( MeyCoinSystem = "meycoin.system" MeyCoinName = "meycoin.name" MeyCoinEnterprise = "meycoin.enterprise" MeyCoinVault = "meycoin.vault" // For community reward program (i.e. voting reward) MaxCandidates = 30 )
const AddressLength = 33
const AddressVersion = 0x42
const (
// sending meycoin to wrong recipient
B23994084_001 = "85QfFtU62ihqj3LnoiKpZgfpKg8mixKRJ5EBMCHKVPGN"
)
const BloomBitBits = BloomBitByte * 8
const BloomBitByte = 256
const BloomHashKNum = 3
const EncodedAddressLength = 52
const (
HashIDLength = 32
)
const MAXBLOCKRANGE = 10000
const NameCreate = "v1createName"
const NameLength = 12
const NameUpdate = "v1updateName"
const NotSpecifiedID = PeerID("")
const PortUndefined = uint32(0xffffffff)
const PrivKeyVersion = 0xAA
const SetContractOwner = "v1setOwner"
const TxMaxSize = 200 * 1024
Variables ¶
var ( DefaultVerifierCnt = int(math.Max(float64(runtime.NumCPU()/2), float64(1))) DefaultAvgTimeSize = 60 * 60 * 24 AvgTxVerifyTime = NewAvgTime(DefaultAvgTimeSize) // MaxMEY is maximum value of meycoin MaxMEY *big.Int // StakingMinimum is minimum amount for staking StakingMinimum *big.Int // ProposalPrice is default value of creating proposal ProposalPrice *big.Int )
var ( //ErrTxNotFound is returned by MemPool Service if transaction does not exists ErrTxNotFound = errors.New("tx not found in mempool") //ErrTxHasInvalidHash is returned by MemPool Service if transaction does have invalid hash ErrTxHasInvalidHash = errors.New("tx has invalid hash") //ErrTxAlreadyInMempool is returned by MemPool Service if exact same transaction is already exists ErrTxAlreadyInMempool = errors.New("tx is already in mempool") //ErrSameNonceInMempool is returned by MemPool Service if transaction which has same nonce is already exists ErrSameNonceAlreadyInMempool = errors.New("tx with same nonce is already in mempool") //ErrTxFormatInvalid is returned by MemPool Service if transaction does not exists ErrTxFormatInvalid = errors.New("tx invalid format") ErrTxFormatInvalid = errors.New("tx invalid format") //ErrInsufficientBalance is returned by MemPool Service if account has not enough balance ErrInsufficientBalance = errors.New("not enough balance") //ErrTxNonceTooLow is returned by MemPool Service if transaction's nonce is already existed in block ErrTxNonceTooLow = errors.New("nonce is too low") //ErrTxNonceToohigh is for internal use only ErrTxNonceToohigh = errors.New("nonce is too high") ErrTxInvalidType = errors.New("tx invalid type") ErrTxInvalidAccount = errors.New("tx invalid account") ErrTxNotAllowedAccount = errors.New("tx not allowed account") ErrTxInvalidChainIdHash = errors.New("tx invalid chain id hash") //ErrInvalidRecipient ErrTxInvalidRecipient = errors.New("tx invalid recipient") ErrTxInvalidAmount = errors.New("tx invalid amount") ErrTxInvalidPrice = errors.New("tx invalid price") ErrTxInvalidPayload = errors.New("tx invalid payload") ErrTxInvalidSize = errors.New("size of tx exceeds max length") ErrTxOnlySupportedInPriv = errors.New("tx only supported in private") ErrSignNotMatch = errors.New("signature not matched") ErrCouldNotRecoverPubKey = errors.New("could not recover pubkey from sign") ErrShouldUnlockAccount = errors.New("should unlock account first") ErrWrongAddressOrPassWord = errors.New("address or password is incorrect") //ErrStakeBeforeVote ErrMustStakeBeforeVote = errors.New("must stake before vote") //ErrLessTimeHasPassed ErrLessTimeHasPassed = errors.New("less time has passed") //ErrTooSmallAmount ErrTooSmallAmount = errors.New("too small amount to influence") ErrNameNotFound = errors.New("could not find name") //ErrMustStakeBeforeUnstake ErrMustStakeBeforeUnstake = errors.New("must stake before unstake") //ErrTooSmallAmount ErrExceedAmount = errors.New("request amount exceeds") ErrCreatorNotMatch = errors.New("creator not matched") ErrNotAllowedFeeDelegation = errors.New("fee delegation is not allowed") ErrNotEnoughGas = errors.New("not enough gas") )
var ( InvalidEntryErr = errors.New("invalid entry format") InvalidPeerIDErr = errors.New("invalid peerID format") InvalidAddrRangeErr = errors.New("invalid address format") InvalidStateErr = errors.New("either one of address or cidr is allowed") )
var CommitStatus_name = map[int32]string{
0: "TX_OK",
1: "TX_NONCE_TOO_LOW",
2: "TX_ALREADY_EXISTS",
3: "TX_INVALID_HASH",
4: "TX_INVALID_SIGN",
5: "TX_INVALID_FORMAT",
6: "TX_INSUFFICIENT_BALANCE",
7: "TX_HAS_SAME_NONCE",
9: "TX_INTERNAL_ERROR",
}
var CommitStatus_value = map[string]int32{
"TX_OK": 0,
"TX_NONCE_TOO_LOW": 1,
"TX_ALREADY_EXISTS": 2,
"TX_INVALID_HASH": 3,
"TX_INVALID_SIGN": 4,
"TX_INVALID_FORMAT": 5,
"TX_INSUFFICIENT_BALANCE": 6,
"TX_HAS_SAME_NONCE": 7,
"TX_INTERNAL_ERROR": 9,
}
var ConfChangeState_name = map[int32]string{
0: "CONF_CHANGE_STATE_PROPOSED",
1: "CONF_CHANGE_STATE_SAVED",
2: "CONF_CHANGE_STATE_APPLIED",
}
var ConfChangeState_value = map[string]int32{
"CONF_CHANGE_STATE_PROPOSED": 0,
"CONF_CHANGE_STATE_SAVED": 1,
"CONF_CHANGE_STATE_APPLIED": 2,
}
var EmptyBlockHeaderInfo = &BlockHeaderInfo{}
var ErrInvalidIPAddress = errors.New("invalid ip address")
var ErrInvalidPort = errors.New("invalid port")
var InvalidArgument = errors.New("invalid argument")
var MainNetGenesis = "" /* 1892-byte string literal not displayed */
var MembershipChangeType_name = map[int32]string{
0: "ADD_MEMBER",
1: "REMOVE_MEMBER",
}
var MembershipChangeType_value = map[string]int32{
"ADD_MEMBER": 0,
"REMOVE_MEMBER": 1,
}
var MetricType_name = map[int32]string{
0: "NOTHING",
1: "P2P_NETWORK",
}
var MetricType_value = map[string]int32{
"NOTHING": 0,
"P2P_NETWORK": 1,
}
var PeerRole_name = map[int32]string{
0: "LegacyVersion",
1: "Producer",
2: "Watcher",
3: "Agent",
}
var PeerRole_value = map[string]int32{
"LegacyVersion": 0,
"Producer": 1,
"Watcher": 2,
"Agent": 3,
}
var RPCErrInternalError = errors.New("internal error")
var RPCErrInvalidArgument = errors.New("invalid argument")
var ResultStatus_name = map[int32]string{
0: "OK",
1: "CANCELED",
2: "UNKNOWN",
3: "INVALID_ARGUMENT",
4: "DEADLINE_EXCEEDED",
5: "NOT_FOUND",
6: "ALREADY_EXISTS",
7: "PERMISSION_DENIED",
8: "RESOURCE_EXHAUSTED",
9: "FAILED_PRECONDITION",
10: "ABORTED",
11: "OUT_OF_RANGE",
12: "UNIMPLEMENTED",
13: "INTERNAL",
14: "UNAVAILABLE",
15: "DATA_LOSS",
16: "UNAUTHENTICATED",
}
var ResultStatus_value = map[string]int32{
"OK": 0,
"CANCELED": 1,
"UNKNOWN": 2,
"INVALID_ARGUMENT": 3,
"DEADLINE_EXCEEDED": 4,
"NOT_FOUND": 5,
"ALREADY_EXISTS": 6,
"PERMISSION_DENIED": 7,
"RESOURCE_EXHAUSTED": 8,
"FAILED_PRECONDITION": 9,
"ABORTED": 10,
"OUT_OF_RANGE": 11,
"UNIMPLEMENTED": 12,
"INTERNAL": 13,
"UNAVAILABLE": 14,
"DATA_LOSS": 15,
"UNAUTHENTICATED": 16,
}
var TestNetGenesis = "" /* 1834-byte string literal not displayed */
var TxType_name = map[int32]string{
0: "NORMAL",
1: "GOVERNANCE",
2: "REDEPLOY",
3: "FEEDELEGATION",
4: "TRANSFER",
5: "CALL",
6: "DEPLOY",
}
var TxType_value = map[string]int32{
"NORMAL": 0,
"GOVERNANCE": 1,
"REDEPLOY": 2,
"FEEDELEGATION": 3,
"TRANSFER": 4,
"CALL": 5,
"DEPLOY": 6,
}
var VerifyStatus_name = map[int32]string{
0: "VERIFY_STATUS_OK",
1: "VERIFY_STATUS_SIGN_NOT_MATCH",
2: "VERIFY_STATUS_INVALID_HASH",
}
var VerifyStatus_value = map[string]int32{
"VERIFY_STATUS_OK": 0,
"VERIFY_STATUS_SIGN_NOT_MATCH": 1,
"VERIFY_STATUS_INVALID_HASH": 2,
}
Functions ¶
func AddressFromMultiAddr ¶
AddressFromMultiAddr returns address (ip4, ip6 or full qualified domain name)
func AddressOrigin ¶
func AddressPadding ¶
func AddressesToStringMap ¶
func AddressesToStringMap(addrs []*PeerAddress) []map[string]string
AddressesToStringMap make map of string for logging or json encoding
func BlockNoToBytes ¶
BlockNoToBytes represents to serialize block no to bytes
func BlockSizeHardLimit ¶
func BlockSizeHardLimit() uint32
BlockSizeHardLimit returns the hard limit for block size
func BytesToUint64 ¶
func CalculateTxsRootHash ¶
CalculateTxsRootHash generates merkle tree of transactions and returns root hash.
func ChainIdVersion ¶
func DecodeChainIdVersion ¶
func DecodePrivKey ¶
func EncodeAddress ¶
func EncodePrivKey ¶
func GetIPFromMultiaddr ¶
func GetMaxMessageSize ¶
GetMaxMessageSize returns the max message size corresponding to a specific block size (blockSize).
func GetPortFromMultiaddr ¶
func IDB58Encode ¶
func InitGovernance ¶
func IsSamePeerID ¶
func IsSpecialAccount ¶
IsSpecialAccount check if name is the one of special account names.
func MakeChainId ¶
func MaxMessageSize ¶
func MaxMessageSize() uint32
MaxMessageSize returns the limit for network message (client-server, p2p) size
func RaftConfChangeToString ¶
func RaftConfChangeToString(cc *raftpb.ConfChange) string
func RaftEntryToString ¶
func RaftHardStateToString ¶
func RegisterAdminRPCServiceServer ¶
func RegisterAdminRPCServiceServer(s *grpc.Server, srv AdminRPCServiceServer)
func RegisterMeyCoinRPCServiceServer ¶
func RegisterMeyCoinRPCServiceServer(s *grpc.Server, srv MeyCoinRPCServiceServer)
func RegisterWezenRPCServiceServer ¶
func RegisterWezenRPCServiceServer(s *grpc.Server, srv WezenRPCServiceServer)
func Uint64ToBytes ¶
func Uint64ToHexaString ¶
func ValidateSystemTx ¶
func WriteEntries ¶
func WriteEntries(entries []WhiteListEntry, wr io.Writer) error
Types ¶
type ABI ¶
type ABI struct { Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"` Language string `protobuf:"bytes,2,opt,name=language" json:"language,omitempty"` Functions []*Function `protobuf:"bytes,3,rep,name=functions" json:"functions,omitempty"` StateVariables []*StateVar `protobuf:"bytes,4,rep,name=state_variables,json=stateVariables" json:"state_variables,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ABI) Descriptor ¶
func (*ABI) GetFunctions ¶
func (*ABI) GetLanguage ¶
func (*ABI) GetStateVariables ¶
func (*ABI) GetVersion ¶
func (*ABI) HasFunction ¶
HasFunction returns if a function with the given name exists in the ABI definition
func (*ABI) ProtoMessage ¶
func (*ABI) ProtoMessage()
func (*ABI) XXX_DiscardUnknown ¶
func (m *ABI) XXX_DiscardUnknown()
func (*ABI) XXX_Unmarshal ¶
type Account ¶
type Account struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Account) Descriptor ¶
func (*Account) GetAddress ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type AccountAddress ¶
type AccountAddress struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountAddress) Descriptor ¶
func (*AccountAddress) Descriptor() ([]byte, []int)
func (*AccountAddress) GetValue ¶
func (m *AccountAddress) GetValue() []byte
func (*AccountAddress) ProtoMessage ¶
func (*AccountAddress) ProtoMessage()
func (*AccountAddress) Reset ¶
func (m *AccountAddress) Reset()
func (*AccountAddress) String ¶
func (m *AccountAddress) String() string
func (*AccountAddress) XXX_DiscardUnknown ¶
func (m *AccountAddress) XXX_DiscardUnknown()
func (*AccountAddress) XXX_Marshal ¶
func (m *AccountAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountAddress) XXX_Merge ¶
func (dst *AccountAddress) XXX_Merge(src proto.Message)
func (*AccountAddress) XXX_Size ¶
func (m *AccountAddress) XXX_Size() int
func (*AccountAddress) XXX_Unmarshal ¶
func (m *AccountAddress) XXX_Unmarshal(b []byte) error
type AccountAndRoot ¶
type AccountAndRoot struct { Account []byte `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"` Root []byte `protobuf:"bytes,2,opt,name=Root,proto3" json:"Root,omitempty"` Compressed bool `protobuf:"varint,3,opt,name=Compressed" json:"Compressed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountAndRoot) Descriptor ¶
func (*AccountAndRoot) Descriptor() ([]byte, []int)
func (*AccountAndRoot) GetAccount ¶
func (m *AccountAndRoot) GetAccount() []byte
func (*AccountAndRoot) GetCompressed ¶
func (m *AccountAndRoot) GetCompressed() bool
func (*AccountAndRoot) GetRoot ¶
func (m *AccountAndRoot) GetRoot() []byte
func (*AccountAndRoot) ProtoMessage ¶
func (*AccountAndRoot) ProtoMessage()
func (*AccountAndRoot) Reset ¶
func (m *AccountAndRoot) Reset()
func (*AccountAndRoot) String ¶
func (m *AccountAndRoot) String() string
func (*AccountAndRoot) XXX_DiscardUnknown ¶
func (m *AccountAndRoot) XXX_DiscardUnknown()
func (*AccountAndRoot) XXX_Marshal ¶
func (m *AccountAndRoot) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountAndRoot) XXX_Merge ¶
func (dst *AccountAndRoot) XXX_Merge(src proto.Message)
func (*AccountAndRoot) XXX_Size ¶
func (m *AccountAndRoot) XXX_Size() int
func (*AccountAndRoot) XXX_Unmarshal ¶
func (m *AccountAndRoot) XXX_Unmarshal(b []byte) error
type AccountID ¶
type AccountID HashID
AccountID is a HashID to identify an account
func ToAccountID ¶
ToAccountID make a AccountHash from bytes
type AccountList ¶
type AccountList struct { Accounts []*Account `protobuf:"bytes,1,rep,name=accounts" json:"accounts,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewAccountList ¶
func NewAccountList(accounts []*Account) *AccountList
NewAccountList alloc new account list
func (*AccountList) Descriptor ¶
func (*AccountList) Descriptor() ([]byte, []int)
func (*AccountList) GetAccounts ¶
func (m *AccountList) GetAccounts() []*Account
func (*AccountList) ProtoMessage ¶
func (*AccountList) ProtoMessage()
func (*AccountList) Reset ¶
func (m *AccountList) Reset()
func (*AccountList) String ¶
func (m *AccountList) String() string
func (*AccountList) XXX_DiscardUnknown ¶
func (m *AccountList) XXX_DiscardUnknown()
func (*AccountList) XXX_Marshal ¶
func (m *AccountList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountList) XXX_Merge ¶
func (dst *AccountList) XXX_Merge(src proto.Message)
func (*AccountList) XXX_Size ¶
func (m *AccountList) XXX_Size() int
func (*AccountList) XXX_Unmarshal ¶
func (m *AccountList) XXX_Unmarshal(b []byte) error
type AccountProof ¶
type AccountProof struct { State *State `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` Inclusion bool `protobuf:"varint,2,opt,name=inclusion" json:"inclusion,omitempty"` Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` ProofKey []byte `protobuf:"bytes,4,opt,name=proofKey,proto3" json:"proofKey,omitempty"` ProofVal []byte `protobuf:"bytes,5,opt,name=proofVal,proto3" json:"proofVal,omitempty"` Bitmap []byte `protobuf:"bytes,6,opt,name=bitmap,proto3" json:"bitmap,omitempty"` Height uint32 `protobuf:"varint,7,opt,name=height" json:"height,omitempty"` AuditPath [][]byte `protobuf:"bytes,8,rep,name=auditPath,proto3" json:"auditPath,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountProof) Descriptor ¶
func (*AccountProof) Descriptor() ([]byte, []int)
func (*AccountProof) GetAuditPath ¶
func (m *AccountProof) GetAuditPath() [][]byte
func (*AccountProof) GetBitmap ¶
func (m *AccountProof) GetBitmap() []byte
func (*AccountProof) GetHeight ¶
func (m *AccountProof) GetHeight() uint32
func (*AccountProof) GetInclusion ¶
func (m *AccountProof) GetInclusion() bool
func (*AccountProof) GetKey ¶
func (m *AccountProof) GetKey() []byte
func (*AccountProof) GetProofKey ¶
func (m *AccountProof) GetProofKey() []byte
func (*AccountProof) GetProofVal ¶
func (m *AccountProof) GetProofVal() []byte
func (*AccountProof) GetState ¶
func (m *AccountProof) GetState() *State
func (*AccountProof) ProtoMessage ¶
func (*AccountProof) ProtoMessage()
func (*AccountProof) Reset ¶
func (m *AccountProof) Reset()
func (*AccountProof) String ¶
func (m *AccountProof) String() string
func (*AccountProof) XXX_DiscardUnknown ¶
func (m *AccountProof) XXX_DiscardUnknown()
func (*AccountProof) XXX_Marshal ¶
func (m *AccountProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountProof) XXX_Merge ¶
func (dst *AccountProof) XXX_Merge(src proto.Message)
func (*AccountProof) XXX_Size ¶
func (m *AccountProof) XXX_Size() int
func (*AccountProof) XXX_Unmarshal ¶
func (m *AccountProof) XXX_Unmarshal(b []byte) error
type AccountVoteInfo ¶
type AccountVoteInfo struct { Staking *Staking `protobuf:"bytes,1,opt,name=staking" json:"staking,omitempty"` Voting []*VoteInfo `protobuf:"bytes,2,rep,name=voting" json:"voting,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountVoteInfo) Descriptor ¶
func (*AccountVoteInfo) Descriptor() ([]byte, []int)
func (*AccountVoteInfo) GetStaking ¶
func (m *AccountVoteInfo) GetStaking() *Staking
func (*AccountVoteInfo) GetVoting ¶
func (m *AccountVoteInfo) GetVoting() []*VoteInfo
func (*AccountVoteInfo) ProtoMessage ¶
func (*AccountVoteInfo) ProtoMessage()
func (*AccountVoteInfo) Reset ¶
func (m *AccountVoteInfo) Reset()
func (*AccountVoteInfo) String ¶
func (m *AccountVoteInfo) String() string
func (*AccountVoteInfo) XXX_DiscardUnknown ¶
func (m *AccountVoteInfo) XXX_DiscardUnknown()
func (*AccountVoteInfo) XXX_Marshal ¶
func (m *AccountVoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountVoteInfo) XXX_Merge ¶
func (dst *AccountVoteInfo) XXX_Merge(src proto.Message)
func (*AccountVoteInfo) XXX_Size ¶
func (m *AccountVoteInfo) XXX_Size() int
func (*AccountVoteInfo) XXX_Unmarshal ¶
func (m *AccountVoteInfo) XXX_Unmarshal(b []byte) error
type AddEntryParams ¶
type AddEntryParams struct { PeerID string `protobuf:"bytes,1,opt,name=peerID" json:"peerID,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` Cidr string `protobuf:"bytes,3,opt,name=cidr" json:"cidr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddEntryParams) Descriptor ¶
func (*AddEntryParams) Descriptor() ([]byte, []int)
func (*AddEntryParams) GetAddress ¶
func (m *AddEntryParams) GetAddress() string
func (*AddEntryParams) GetCidr ¶
func (m *AddEntryParams) GetCidr() string
func (*AddEntryParams) GetPeerID ¶
func (m *AddEntryParams) GetPeerID() string
func (*AddEntryParams) ProtoMessage ¶
func (*AddEntryParams) ProtoMessage()
func (*AddEntryParams) Reset ¶
func (m *AddEntryParams) Reset()
func (*AddEntryParams) String ¶
func (m *AddEntryParams) String() string
func (*AddEntryParams) XXX_DiscardUnknown ¶
func (m *AddEntryParams) XXX_DiscardUnknown()
func (*AddEntryParams) XXX_Marshal ¶
func (m *AddEntryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddEntryParams) XXX_Merge ¶
func (dst *AddEntryParams) XXX_Merge(src proto.Message)
func (*AddEntryParams) XXX_Size ¶
func (m *AddEntryParams) XXX_Size() int
func (*AddEntryParams) XXX_Unmarshal ¶
func (m *AddEntryParams) XXX_Unmarshal(b []byte) error
type AddressesRequest ¶
type AddressesRequest struct { Sender *PeerAddress `protobuf:"bytes,1,opt,name=sender" json:"sender,omitempty"` MaxSize uint32 `protobuf:"varint,2,opt,name=maxSize" json:"maxSize,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddressesRequest) Descriptor ¶
func (*AddressesRequest) Descriptor() ([]byte, []int)
func (*AddressesRequest) GetMaxSize ¶
func (m *AddressesRequest) GetMaxSize() uint32
func (*AddressesRequest) GetSender ¶
func (m *AddressesRequest) GetSender() *PeerAddress
func (*AddressesRequest) ProtoMessage ¶
func (*AddressesRequest) ProtoMessage()
func (*AddressesRequest) Reset ¶
func (m *AddressesRequest) Reset()
func (*AddressesRequest) String ¶
func (m *AddressesRequest) String() string
func (*AddressesRequest) XXX_DiscardUnknown ¶
func (m *AddressesRequest) XXX_DiscardUnknown()
func (*AddressesRequest) XXX_Marshal ¶
func (m *AddressesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressesRequest) XXX_Merge ¶
func (dst *AddressesRequest) XXX_Merge(src proto.Message)
func (*AddressesRequest) XXX_Size ¶
func (m *AddressesRequest) XXX_Size() int
func (*AddressesRequest) XXX_Unmarshal ¶
func (m *AddressesRequest) XXX_Unmarshal(b []byte) error
type AddressesResponse ¶
type AddressesResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` Peers []*PeerAddress `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddressesResponse) Descriptor ¶
func (*AddressesResponse) Descriptor() ([]byte, []int)
func (*AddressesResponse) GetPeers ¶
func (m *AddressesResponse) GetPeers() []*PeerAddress
func (*AddressesResponse) GetStatus ¶
func (m *AddressesResponse) GetStatus() ResultStatus
func (*AddressesResponse) MarshalZerologObject ¶
func (m *AddressesResponse) MarshalZerologObject(e *zerolog.Event)
func (*AddressesResponse) ProtoMessage ¶
func (*AddressesResponse) ProtoMessage()
func (*AddressesResponse) Reset ¶
func (m *AddressesResponse) Reset()
func (*AddressesResponse) String ¶
func (m *AddressesResponse) String() string
func (*AddressesResponse) XXX_DiscardUnknown ¶
func (m *AddressesResponse) XXX_DiscardUnknown()
func (*AddressesResponse) XXX_Marshal ¶
func (m *AddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressesResponse) XXX_Merge ¶
func (dst *AddressesResponse) XXX_Merge(src proto.Message)
func (*AddressesResponse) XXX_Size ¶
func (m *AddressesResponse) XXX_Size() int
func (*AddressesResponse) XXX_Unmarshal ¶
func (m *AddressesResponse) XXX_Unmarshal(b []byte) error
type AdminRPCServiceClient ¶
type AdminRPCServiceClient interface { // Returns the TX-relasted statistics of the current mempool. MempoolTxStat(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SingleBytes, error) // Returns the TX-relasted statistics of the current mempool. MempoolTx(ctx context.Context, in *AccountList, opts ...grpc.CallOption) (*SingleBytes, error) }
AdminRPCServiceClient is the client API for AdminRPCService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdminRPCServiceClient ¶
func NewAdminRPCServiceClient(cc *grpc.ClientConn) AdminRPCServiceClient
type AdminRPCServiceServer ¶
type AdminRPCServiceServer interface { // Returns the TX-relasted statistics of the current mempool. MempoolTxStat(context.Context, *Empty) (*SingleBytes, error) // Returns the TX-relasted statistics of the current mempool. MempoolTx(context.Context, *AccountList) (*SingleBytes, error) }
AdminRPCServiceServer is the server API for AdminRPCService service.
type AgentCertificate ¶
type AgentCertificate struct { CertVersion uint32 `protobuf:"varint,1,opt,name=certVersion" json:"certVersion,omitempty"` BPID []byte `protobuf:"bytes,2,opt,name=BPID,proto3" json:"BPID,omitempty"` BPPubKey []byte `protobuf:"bytes,3,opt,name=BPPubKey,proto3" json:"BPPubKey,omitempty"` // CreateTime is the number of nanoseconds elapsed since January 1, 1970 UTC CreateTime int64 `protobuf:"varint,4,opt,name=createTime" json:"createTime,omitempty"` // CreateTime is the number of nanoseconds elapsed since January 1, 1970 UTC ExpireTime int64 `protobuf:"varint,5,opt,name=expireTime" json:"expireTime,omitempty"` AgentID []byte `protobuf:"bytes,6,opt,name=agentID,proto3" json:"agentID,omitempty"` AgentAddress [][]byte `protobuf:"bytes,7,rep,name=AgentAddress,proto3" json:"AgentAddress,omitempty"` Signature []byte `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AgentCertificate) Descriptor ¶
func (*AgentCertificate) Descriptor() ([]byte, []int)
func (*AgentCertificate) GetAgentAddress ¶
func (m *AgentCertificate) GetAgentAddress() [][]byte
func (*AgentCertificate) GetAgentID ¶
func (m *AgentCertificate) GetAgentID() []byte
func (*AgentCertificate) GetBPID ¶
func (m *AgentCertificate) GetBPID() []byte
func (*AgentCertificate) GetBPPubKey ¶
func (m *AgentCertificate) GetBPPubKey() []byte
func (*AgentCertificate) GetCertVersion ¶
func (m *AgentCertificate) GetCertVersion() uint32
func (*AgentCertificate) GetCreateTime ¶
func (m *AgentCertificate) GetCreateTime() int64
func (*AgentCertificate) GetExpireTime ¶
func (m *AgentCertificate) GetExpireTime() int64
func (*AgentCertificate) GetSignature ¶
func (m *AgentCertificate) GetSignature() []byte
func (*AgentCertificate) ProtoMessage ¶
func (*AgentCertificate) ProtoMessage()
func (*AgentCertificate) Reset ¶
func (m *AgentCertificate) Reset()
func (*AgentCertificate) String ¶
func (m *AgentCertificate) String() string
func (*AgentCertificate) XXX_DiscardUnknown ¶
func (m *AgentCertificate) XXX_DiscardUnknown()
func (*AgentCertificate) XXX_Marshal ¶
func (m *AgentCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AgentCertificate) XXX_Merge ¶
func (dst *AgentCertificate) XXX_Merge(src proto.Message)
func (*AgentCertificate) XXX_Size ¶
func (m *AgentCertificate) XXX_Size() int
func (*AgentCertificate) XXX_Unmarshal ¶
func (m *AgentCertificate) XXX_Unmarshal(b []byte) error
type BLConfEntries ¶
type BLConfEntries struct { Enabled bool `protobuf:"varint,1,opt,name=enabled" json:"enabled,omitempty"` Entries []string `protobuf:"bytes,2,rep,name=entries" json:"entries,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BLConfEntries) Descriptor ¶
func (*BLConfEntries) Descriptor() ([]byte, []int)
func (*BLConfEntries) GetEnabled ¶
func (m *BLConfEntries) GetEnabled() bool
func (*BLConfEntries) GetEntries ¶
func (m *BLConfEntries) GetEntries() []string
func (*BLConfEntries) ProtoMessage ¶
func (*BLConfEntries) ProtoMessage()
func (*BLConfEntries) Reset ¶
func (m *BLConfEntries) Reset()
func (*BLConfEntries) String ¶
func (m *BLConfEntries) String() string
func (*BLConfEntries) XXX_DiscardUnknown ¶
func (m *BLConfEntries) XXX_DiscardUnknown()
func (*BLConfEntries) XXX_Marshal ¶
func (m *BLConfEntries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BLConfEntries) XXX_Merge ¶
func (dst *BLConfEntries) XXX_Merge(src proto.Message)
func (*BLConfEntries) XXX_Size ¶
func (m *BLConfEntries) XXX_Size() int
func (*BLConfEntries) XXX_Unmarshal ¶
func (m *BLConfEntries) XXX_Unmarshal(b []byte) error
type Block ¶
type Block struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Header *BlockHeader `protobuf:"bytes,2,opt,name=header" json:"header,omitempty"` Body *BlockBody `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewBlock ¶
func NewBlock(bi *BlockHeaderInfo, blockRoot []byte, receipts *Receipts, txs []*Tx, coinbaseAcc []byte, consensus []byte) *Block
NewBlock represents to create a block to store transactions.
func (*Block) BlockHash ¶
BlockHash returns block hash. It returns a calculated value if the hash is nil.
func (*Block) Confirms ¶
Confirms returns block.Header.Confirms which indicates how many block is confirmed by block.
func (*Block) Descriptor ¶
func (*Block) GetHeader ¶
func (m *Block) GetHeader() *BlockHeader
func (*Block) GetMetadata ¶
func (block *Block) GetMetadata() *BlockMetadata
GetMetadata generates Metadata object for block
func (*Block) Localtime ¶
Localtime retrurns a time.Time object, which is coverted from block timestamp.
func (*Block) PrevBlockID ¶
PrevBlockID converts parent block hash ([]byte) to BlockID.
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) SetBlocksRootHash ¶
func (*Block) SetChainID ¶
SetChainID sets id to block.ChainID
func (*Block) SetConfirms ¶
SetConfirms sets block.Header.Confirms to confirms.
func (*Block) Size ¶
Size returns a block size where the tx size is individually calculated. A similar method is used to limit the block size by the block factory.
THE REASON WHY THE BLOCK FACTORY DOESN'T USE THE EXACT SIZE OF A MARSHALED BLOCK: The actual size of a marshaled block is larger than this because it includes an additional data associated with the marshaling of the transations array in the block body. It is ineffective that the (DPoS) block factory measures the exact size of the additional probuf data when it produces a block. Thus we use the slightly(?) different and less expensive estimation of the block size.
func (*Block) ValidChildOf ¶
ValidChildOf reports whether block is a varid child of parent.
func (*Block) VerifySign ¶
VerifySign verifies the signature of block.
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type BlockBody ¶
type BlockBody struct { Txs []*Tx `protobuf:"bytes,1,rep,name=txs" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockBody) Descriptor ¶
func (*BlockBody) ProtoMessage ¶
func (*BlockBody) ProtoMessage()
func (*BlockBody) XXX_DiscardUnknown ¶
func (m *BlockBody) XXX_DiscardUnknown()
func (*BlockBody) XXX_Marshal ¶
func (*BlockBody) XXX_Unmarshal ¶
type BlockBodyPaged ¶
type BlockBodyPaged struct { Total uint32 `protobuf:"varint,1,opt,name=total" json:"total,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"` Size uint32 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` Body *BlockBody `protobuf:"bytes,4,opt,name=body" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockBodyPaged) Descriptor ¶
func (*BlockBodyPaged) Descriptor() ([]byte, []int)
func (*BlockBodyPaged) GetBody ¶
func (m *BlockBodyPaged) GetBody() *BlockBody
func (*BlockBodyPaged) GetOffset ¶
func (m *BlockBodyPaged) GetOffset() uint32
func (*BlockBodyPaged) GetSize ¶
func (m *BlockBodyPaged) GetSize() uint32
func (*BlockBodyPaged) GetTotal ¶
func (m *BlockBodyPaged) GetTotal() uint32
func (*BlockBodyPaged) ProtoMessage ¶
func (*BlockBodyPaged) ProtoMessage()
func (*BlockBodyPaged) Reset ¶
func (m *BlockBodyPaged) Reset()
func (*BlockBodyPaged) String ¶
func (m *BlockBodyPaged) String() string
func (*BlockBodyPaged) XXX_DiscardUnknown ¶
func (m *BlockBodyPaged) XXX_DiscardUnknown()
func (*BlockBodyPaged) XXX_Marshal ¶
func (m *BlockBodyPaged) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockBodyPaged) XXX_Merge ¶
func (dst *BlockBodyPaged) XXX_Merge(src proto.Message)
func (*BlockBodyPaged) XXX_Size ¶
func (m *BlockBodyPaged) XXX_Size() int
func (*BlockBodyPaged) XXX_Unmarshal ¶
func (m *BlockBodyPaged) XXX_Unmarshal(b []byte) error
type BlockBodyParams ¶
type BlockBodyParams struct { Hashornumber []byte `protobuf:"bytes,1,opt,name=hashornumber,proto3" json:"hashornumber,omitempty"` Paging *PageParams `protobuf:"bytes,2,opt,name=paging" json:"paging,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockBodyParams) Descriptor ¶
func (*BlockBodyParams) Descriptor() ([]byte, []int)
func (*BlockBodyParams) GetHashornumber ¶
func (m *BlockBodyParams) GetHashornumber() []byte
func (*BlockBodyParams) GetPaging ¶
func (m *BlockBodyParams) GetPaging() *PageParams
func (*BlockBodyParams) ProtoMessage ¶
func (*BlockBodyParams) ProtoMessage()
func (*BlockBodyParams) Reset ¶
func (m *BlockBodyParams) Reset()
func (*BlockBodyParams) String ¶
func (m *BlockBodyParams) String() string
func (*BlockBodyParams) XXX_DiscardUnknown ¶
func (m *BlockBodyParams) XXX_DiscardUnknown()
func (*BlockBodyParams) XXX_Marshal ¶
func (m *BlockBodyParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockBodyParams) XXX_Merge ¶
func (dst *BlockBodyParams) XXX_Merge(src proto.Message)
func (*BlockBodyParams) XXX_Size ¶
func (m *BlockBodyParams) XXX_Size() int
func (*BlockBodyParams) XXX_Unmarshal ¶
func (m *BlockBodyParams) XXX_Unmarshal(b []byte) error
type BlockHeader ¶
type BlockHeader struct { ChainID []byte `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` PrevBlockHash []byte `protobuf:"bytes,2,opt,name=prevBlockHash,proto3" json:"prevBlockHash,omitempty"` BlockNo uint64 `protobuf:"varint,3,opt,name=blockNo" json:"blockNo,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` BlocksRootHash []byte `protobuf:"bytes,5,opt,name=blocksRootHash,proto3" json:"blocksRootHash,omitempty"` TxsRootHash []byte `protobuf:"bytes,6,opt,name=txsRootHash,proto3" json:"txsRootHash,omitempty"` ReceiptsRootHash []byte `protobuf:"bytes,7,opt,name=receiptsRootHash,proto3" json:"receiptsRootHash,omitempty"` Confirms uint64 `protobuf:"varint,8,opt,name=confirms" json:"confirms,omitempty"` PubKey []byte `protobuf:"bytes,9,opt,name=pubKey,proto3" json:"pubKey,omitempty"` CoinbaseAccount []byte `protobuf:"bytes,10,opt,name=coinbaseAccount,proto3" json:"coinbaseAccount,omitempty"` Sign []byte `protobuf:"bytes,11,opt,name=sign,proto3" json:"sign,omitempty"` Consensus []byte `protobuf:"bytes,12,opt,name=consensus,proto3" json:"consensus,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockHeader) Descriptor ¶
func (*BlockHeader) Descriptor() ([]byte, []int)
func (*BlockHeader) GetBlockNo ¶
func (m *BlockHeader) GetBlockNo() uint64
func (*BlockHeader) GetBlocksRootHash ¶
func (m *BlockHeader) GetBlocksRootHash() []byte
func (*BlockHeader) GetChainID ¶
func (m *BlockHeader) GetChainID() []byte
func (*BlockHeader) GetCoinbaseAccount ¶
func (m *BlockHeader) GetCoinbaseAccount() []byte
func (*BlockHeader) GetConfirms ¶
func (m *BlockHeader) GetConfirms() uint64
func (*BlockHeader) GetConsensus ¶
func (m *BlockHeader) GetConsensus() []byte
func (*BlockHeader) GetPrevBlockHash ¶
func (m *BlockHeader) GetPrevBlockHash() []byte
func (*BlockHeader) GetPubKey ¶
func (m *BlockHeader) GetPubKey() []byte
func (*BlockHeader) GetReceiptsRootHash ¶
func (m *BlockHeader) GetReceiptsRootHash() []byte
func (*BlockHeader) GetSign ¶
func (m *BlockHeader) GetSign() []byte
func (*BlockHeader) GetTimestamp ¶
func (m *BlockHeader) GetTimestamp() int64
func (*BlockHeader) GetTxsRootHash ¶
func (m *BlockHeader) GetTxsRootHash() []byte
func (*BlockHeader) ProtoMessage ¶
func (*BlockHeader) ProtoMessage()
func (*BlockHeader) Reset ¶
func (m *BlockHeader) Reset()
func (*BlockHeader) String ¶
func (m *BlockHeader) String() string
func (*BlockHeader) XXX_DiscardUnknown ¶
func (m *BlockHeader) XXX_DiscardUnknown()
func (*BlockHeader) XXX_Marshal ¶
func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeader) XXX_Merge ¶
func (dst *BlockHeader) XXX_Merge(src proto.Message)
func (*BlockHeader) XXX_Size ¶
func (m *BlockHeader) XXX_Size() int
func (*BlockHeader) XXX_Unmarshal ¶
func (m *BlockHeader) XXX_Unmarshal(b []byte) error
type BlockHeaderInfo ¶
type BlockHeaderInfo struct { No BlockNo Ts int64 PrevBlockHash []byte ChainId []byte Version int32 }
func NewBlockHeaderInfo ¶
func NewBlockHeaderInfo(b *Block) *BlockHeaderInfo
func NewBlockHeaderInfoFromPrevBlock ¶
func NewBlockHeaderInfoFromPrevBlock(prev *Block, ts int64, bv BlockVersionner) *BlockHeaderInfo
func (*BlockHeaderInfo) ChainIdHash ¶
func (b *BlockHeaderInfo) ChainIdHash() []byte
type BlockHeaderList ¶
type BlockHeaderList struct { Blocks []*Block `protobuf:"bytes,1,rep,name=blocks" json:"blocks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockHeaderList) Descriptor ¶
func (*BlockHeaderList) Descriptor() ([]byte, []int)
func (*BlockHeaderList) GetBlocks ¶
func (m *BlockHeaderList) GetBlocks() []*Block
func (*BlockHeaderList) ProtoMessage ¶
func (*BlockHeaderList) ProtoMessage()
func (*BlockHeaderList) Reset ¶
func (m *BlockHeaderList) Reset()
func (*BlockHeaderList) String ¶
func (m *BlockHeaderList) String() string
func (*BlockHeaderList) XXX_DiscardUnknown ¶
func (m *BlockHeaderList) XXX_DiscardUnknown()
func (*BlockHeaderList) XXX_Marshal ¶
func (m *BlockHeaderList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockHeaderList) XXX_Merge ¶
func (dst *BlockHeaderList) XXX_Merge(src proto.Message)
func (*BlockHeaderList) XXX_Size ¶
func (m *BlockHeaderList) XXX_Size() int
func (*BlockHeaderList) XXX_Unmarshal ¶
func (m *BlockHeaderList) XXX_Unmarshal(b []byte) error
type BlockID ¶
type BlockID HashID
BlockID is a HashID to identify a block
func MustParseBlockID ¶
MustParseBlockID parse, it panics if parsing is failed.
func ParseToBlockID ¶
ParseToTxID parse BlockID from bytes. it return error if length of parameter is not fit.
type BlockMetadata ¶
type BlockMetadata struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Header *BlockHeader `protobuf:"bytes,2,opt,name=header" json:"header,omitempty"` Txcount int32 `protobuf:"varint,3,opt,name=txcount" json:"txcount,omitempty"` Size int64 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockMetadata) Descriptor ¶
func (*BlockMetadata) Descriptor() ([]byte, []int)
func (*BlockMetadata) GetHash ¶
func (m *BlockMetadata) GetHash() []byte
func (*BlockMetadata) GetHeader ¶
func (m *BlockMetadata) GetHeader() *BlockHeader
func (*BlockMetadata) GetSize ¶
func (m *BlockMetadata) GetSize() int64
func (*BlockMetadata) GetTxcount ¶
func (m *BlockMetadata) GetTxcount() int32
func (*BlockMetadata) ProtoMessage ¶
func (*BlockMetadata) ProtoMessage()
func (*BlockMetadata) Reset ¶
func (m *BlockMetadata) Reset()
func (*BlockMetadata) String ¶
func (m *BlockMetadata) String() string
func (*BlockMetadata) XXX_DiscardUnknown ¶
func (m *BlockMetadata) XXX_DiscardUnknown()
func (*BlockMetadata) XXX_Marshal ¶
func (m *BlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockMetadata) XXX_Merge ¶
func (dst *BlockMetadata) XXX_Merge(src proto.Message)
func (*BlockMetadata) XXX_Size ¶
func (m *BlockMetadata) XXX_Size() int
func (*BlockMetadata) XXX_Unmarshal ¶
func (m *BlockMetadata) XXX_Unmarshal(b []byte) error
type BlockMetadataList ¶
type BlockMetadataList struct { Blocks []*BlockMetadata `protobuf:"bytes,1,rep,name=blocks" json:"blocks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockMetadataList) Descriptor ¶
func (*BlockMetadataList) Descriptor() ([]byte, []int)
func (*BlockMetadataList) GetBlocks ¶
func (m *BlockMetadataList) GetBlocks() []*BlockMetadata
func (*BlockMetadataList) ProtoMessage ¶
func (*BlockMetadataList) ProtoMessage()
func (*BlockMetadataList) Reset ¶
func (m *BlockMetadataList) Reset()
func (*BlockMetadataList) String ¶
func (m *BlockMetadataList) String() string
func (*BlockMetadataList) XXX_DiscardUnknown ¶
func (m *BlockMetadataList) XXX_DiscardUnknown()
func (*BlockMetadataList) XXX_Marshal ¶
func (m *BlockMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockMetadataList) XXX_Merge ¶
func (dst *BlockMetadataList) XXX_Merge(src proto.Message)
func (*BlockMetadataList) XXX_Size ¶
func (m *BlockMetadataList) XXX_Size() int
func (*BlockMetadataList) XXX_Unmarshal ¶
func (m *BlockMetadataList) XXX_Unmarshal(b []byte) error
type BlockNo ¶
type BlockNo = uint64
BlockNo is the height of a block, which starts from 0 (genesis block).
const MAXBLOCKNO BlockNo = 18446744073709551615
func BlockNoFromBytes ¶
BlockNoFromBytes represents to deserialize bytes to block no
type BlockProducedNotice ¶
type BlockProducedNotice struct { ProducerID []byte `protobuf:"bytes,1,opt,name=producerID,proto3" json:"producerID,omitempty"` BlockNo uint64 `protobuf:"varint,2,opt,name=blockNo" json:"blockNo,omitempty"` Block *Block `protobuf:"bytes,3,opt,name=block" json:"block,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BlockProducedNotice is sent when BP created blocks and host peer is BP (or surrogate of BP) and receiving peer is also trusted BP or surrogate of BP. It contains whole block information
func (*BlockProducedNotice) Descriptor ¶
func (*BlockProducedNotice) Descriptor() ([]byte, []int)
func (*BlockProducedNotice) GetBlock ¶
func (m *BlockProducedNotice) GetBlock() *Block
func (*BlockProducedNotice) GetBlockNo ¶
func (m *BlockProducedNotice) GetBlockNo() uint64
func (*BlockProducedNotice) GetProducerID ¶
func (m *BlockProducedNotice) GetProducerID() []byte
func (*BlockProducedNotice) MarshalZerologObject ¶
func (m *BlockProducedNotice) MarshalZerologObject(e *zerolog.Event)
func (*BlockProducedNotice) ProtoMessage ¶
func (*BlockProducedNotice) ProtoMessage()
func (*BlockProducedNotice) Reset ¶
func (m *BlockProducedNotice) Reset()
func (*BlockProducedNotice) String ¶
func (m *BlockProducedNotice) String() string
func (*BlockProducedNotice) XXX_DiscardUnknown ¶
func (m *BlockProducedNotice) XXX_DiscardUnknown()
func (*BlockProducedNotice) XXX_Marshal ¶
func (m *BlockProducedNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockProducedNotice) XXX_Merge ¶
func (dst *BlockProducedNotice) XXX_Merge(src proto.Message)
func (*BlockProducedNotice) XXX_Size ¶
func (m *BlockProducedNotice) XXX_Size() int
func (*BlockProducedNotice) XXX_Unmarshal ¶
func (m *BlockProducedNotice) XXX_Unmarshal(b []byte) error
type BlockVersionner ¶
type BlockchainStatus ¶
type BlockchainStatus struct { BestBlockHash []byte `protobuf:"bytes,1,opt,name=best_block_hash,json=bestBlockHash,proto3" json:"best_block_hash,omitempty"` BestHeight uint64 `protobuf:"varint,2,opt,name=best_height,json=bestHeight" json:"best_height,omitempty"` ConsensusInfo string `protobuf:"bytes,3,opt,name=consensus_info,json=consensusInfo" json:"consensus_info,omitempty"` BestChainIdHash []byte `protobuf:"bytes,4,opt,name=best_chain_id_hash,json=bestChainIdHash,proto3" json:"best_chain_id_hash,omitempty"` ChainInfo *ChainInfo `protobuf:"bytes,5,opt,name=chain_info,json=chainInfo" json:"chain_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
BlockchainStatus is current status of blockchain
func (*BlockchainStatus) Descriptor ¶
func (*BlockchainStatus) Descriptor() ([]byte, []int)
func (*BlockchainStatus) GetBestBlockHash ¶
func (m *BlockchainStatus) GetBestBlockHash() []byte
func (*BlockchainStatus) GetBestChainIdHash ¶
func (m *BlockchainStatus) GetBestChainIdHash() []byte
func (*BlockchainStatus) GetBestHeight ¶
func (m *BlockchainStatus) GetBestHeight() uint64
func (*BlockchainStatus) GetChainInfo ¶
func (m *BlockchainStatus) GetChainInfo() *ChainInfo
func (*BlockchainStatus) GetConsensusInfo ¶
func (m *BlockchainStatus) GetConsensusInfo() string
func (*BlockchainStatus) ProtoMessage ¶
func (*BlockchainStatus) ProtoMessage()
func (*BlockchainStatus) Reset ¶
func (m *BlockchainStatus) Reset()
func (*BlockchainStatus) String ¶
func (m *BlockchainStatus) String() string
func (*BlockchainStatus) XXX_DiscardUnknown ¶
func (m *BlockchainStatus) XXX_DiscardUnknown()
func (*BlockchainStatus) XXX_Marshal ¶
func (m *BlockchainStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockchainStatus) XXX_Merge ¶
func (dst *BlockchainStatus) XXX_Merge(src proto.Message)
func (*BlockchainStatus) XXX_Size ¶
func (m *BlockchainStatus) XXX_Size() int
func (*BlockchainStatus) XXX_Unmarshal ¶
func (m *BlockchainStatus) XXX_Unmarshal(b []byte) error
type CertificateRenewedNotice ¶
type CertificateRenewedNotice struct { Certificate *AgentCertificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
CertificateRenewedNotice is sent when agent update hi certificate
func (*CertificateRenewedNotice) Descriptor ¶
func (*CertificateRenewedNotice) Descriptor() ([]byte, []int)
func (*CertificateRenewedNotice) GetCertificate ¶
func (m *CertificateRenewedNotice) GetCertificate() *AgentCertificate
func (*CertificateRenewedNotice) MarshalZerologObject ¶
func (m *CertificateRenewedNotice) MarshalZerologObject(e *zerolog.Event)
func (*CertificateRenewedNotice) ProtoMessage ¶
func (*CertificateRenewedNotice) ProtoMessage()
func (*CertificateRenewedNotice) Reset ¶
func (m *CertificateRenewedNotice) Reset()
func (*CertificateRenewedNotice) String ¶
func (m *CertificateRenewedNotice) String() string
func (*CertificateRenewedNotice) XXX_DiscardUnknown ¶
func (m *CertificateRenewedNotice) XXX_DiscardUnknown()
func (*CertificateRenewedNotice) XXX_Marshal ¶
func (m *CertificateRenewedNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CertificateRenewedNotice) XXX_Merge ¶
func (dst *CertificateRenewedNotice) XXX_Merge(src proto.Message)
func (*CertificateRenewedNotice) XXX_Size ¶
func (m *CertificateRenewedNotice) XXX_Size() int
func (*CertificateRenewedNotice) XXX_Unmarshal ¶
func (m *CertificateRenewedNotice) XXX_Unmarshal(b []byte) error
type ChainAccessor ¶
type ChainAccessor interface { GetGenesisInfo() *Genesis GetConsensusInfo() string GetBestBlock() (*Block, error) // GetBlock return block of blockHash. It return nil and error if not found block of that hash or there is a problem in db store GetBlock(blockHash []byte) (*Block, error) // GetHashByNo returns hash of block. It return nil and error if not found block of that number or there is a problem in db store GetHashByNo(blockNo BlockNo) ([]byte, error) GetChainStats() string GetSystemValue(key SystemValue) (*big.Int, error) // GetEnterpriseConfig always return non-nil object if there is no error, but it can return EnterpriseConfig with empty values GetEnterpriseConfig(key string) (*EnterpriseConfig, error) ChainID(bno BlockNo) *ChainID }
ChainAccessor is an interface for a another actor module to get info of chain
type ChainID ¶
type ChainID struct { Version int32 `json:"version"` PublicNet bool `json:"public"` MainNet bool `json:"mainnet"` Magic string `json:"magic"` Consensus string `json:"consensus"` }
ChainID represents the identity of the chain.
func NewChainID ¶
func NewChainID() *ChainID
NewChainID returns a new ChainID initialized as nilChainID.
func (*ChainID) AsDefault ¶
func (cid *ChainID) AsDefault()
AsDefault set *cid to the default chain id (cid must be a valid pointer).
type ChainId ¶
type ChainId struct { Magic string `protobuf:"bytes,1,opt,name=magic" json:"magic,omitempty"` Public bool `protobuf:"varint,2,opt,name=public" json:"public,omitempty"` Mainnet bool `protobuf:"varint,3,opt,name=mainnet" json:"mainnet,omitempty"` Consensus string `protobuf:"bytes,4,opt,name=consensus" json:"consensus,omitempty"` Version int32 `protobuf:"varint,5,opt,name=version" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainId) Descriptor ¶
func (*ChainId) GetConsensus ¶
func (*ChainId) GetMainnet ¶
func (*ChainId) GetVersion ¶
func (*ChainId) ProtoMessage ¶
func (*ChainId) ProtoMessage()
func (*ChainId) XXX_DiscardUnknown ¶
func (m *ChainId) XXX_DiscardUnknown()
func (*ChainId) XXX_Marshal ¶
func (*ChainId) XXX_Unmarshal ¶
type ChainInfo ¶
type ChainInfo struct { Id *ChainId `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` BpNumber uint32 `protobuf:"varint,2,opt,name=bpNumber" json:"bpNumber,omitempty"` Maxblocksize uint64 `protobuf:"varint,3,opt,name=maxblocksize" json:"maxblocksize,omitempty"` Maxtokens []byte `protobuf:"bytes,4,opt,name=maxtokens,proto3" json:"maxtokens,omitempty"` Stakingminimum []byte `protobuf:"bytes,5,opt,name=stakingminimum,proto3" json:"stakingminimum,omitempty"` Totalstaking []byte `protobuf:"bytes,6,opt,name=totalstaking,proto3" json:"totalstaking,omitempty"` Gasprice []byte `protobuf:"bytes,7,opt,name=gasprice,proto3" json:"gasprice,omitempty"` Nameprice []byte `protobuf:"bytes,8,opt,name=nameprice,proto3" json:"nameprice,omitempty"` Totalvotingpower []byte `protobuf:"bytes,9,opt,name=totalvotingpower,proto3" json:"totalvotingpower,omitempty"` Votingreward []byte `protobuf:"bytes,10,opt,name=votingreward,proto3" json:"votingreward,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChainInfo returns chain configuration
func (*ChainInfo) Descriptor ¶
func (*ChainInfo) GetBpNumber ¶
func (*ChainInfo) GetGasprice ¶
func (*ChainInfo) GetMaxblocksize ¶
func (*ChainInfo) GetMaxtokens ¶
func (*ChainInfo) GetNameprice ¶
func (*ChainInfo) GetStakingminimum ¶
func (*ChainInfo) GetTotalstaking ¶
func (*ChainInfo) GetTotalvotingpower ¶
func (*ChainInfo) GetVotingreward ¶
func (*ChainInfo) ProtoMessage ¶
func (*ChainInfo) ProtoMessage()
func (*ChainInfo) XXX_DiscardUnknown ¶
func (m *ChainInfo) XXX_DiscardUnknown()
func (*ChainInfo) XXX_Marshal ¶
func (*ChainInfo) XXX_Unmarshal ¶
type ChainStats ¶
type ChainStats struct { Report string `protobuf:"bytes,1,opt,name=report" json:"report,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ChainStats corresponds to a chain statistics report.
func (*ChainStats) Descriptor ¶
func (*ChainStats) Descriptor() ([]byte, []int)
func (*ChainStats) GetReport ¶
func (m *ChainStats) GetReport() string
func (*ChainStats) ProtoMessage ¶
func (*ChainStats) ProtoMessage()
func (*ChainStats) Reset ¶
func (m *ChainStats) Reset()
func (*ChainStats) String ¶
func (m *ChainStats) String() string
func (*ChainStats) XXX_DiscardUnknown ¶
func (m *ChainStats) XXX_DiscardUnknown()
func (*ChainStats) XXX_Marshal ¶
func (m *ChainStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainStats) XXX_Merge ¶
func (dst *ChainStats) XXX_Merge(src proto.Message)
func (*ChainStats) XXX_Size ¶
func (m *ChainStats) XXX_Size() int
func (*ChainStats) XXX_Unmarshal ¶
func (m *ChainStats) XXX_Unmarshal(b []byte) error
type ChangeClusterStatus ¶
type ChangeClusterStatus struct { State string `json:"status"` Error string `json:"error"` Members []*MemberAttr `json:"members"` }
type CommitResult ¶
type CommitResult struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Error CommitStatus `protobuf:"varint,2,opt,name=error,enum=types.CommitStatus" json:"error,omitempty"` Detail string `protobuf:"bytes,3,opt,name=detail" json:"detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommitResult) Descriptor ¶
func (*CommitResult) Descriptor() ([]byte, []int)
func (*CommitResult) GetDetail ¶
func (m *CommitResult) GetDetail() string
func (*CommitResult) GetError ¶
func (m *CommitResult) GetError() CommitStatus
func (*CommitResult) GetHash ¶
func (m *CommitResult) GetHash() []byte
func (*CommitResult) ProtoMessage ¶
func (*CommitResult) ProtoMessage()
func (*CommitResult) Reset ¶
func (m *CommitResult) Reset()
func (*CommitResult) String ¶
func (m *CommitResult) String() string
func (*CommitResult) XXX_DiscardUnknown ¶
func (m *CommitResult) XXX_DiscardUnknown()
func (*CommitResult) XXX_Marshal ¶
func (m *CommitResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommitResult) XXX_Merge ¶
func (dst *CommitResult) XXX_Merge(src proto.Message)
func (*CommitResult) XXX_Size ¶
func (m *CommitResult) XXX_Size() int
func (*CommitResult) XXX_Unmarshal ¶
func (m *CommitResult) XXX_Unmarshal(b []byte) error
type CommitResultList ¶
type CommitResultList struct { Results []*CommitResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommitResultList) Descriptor ¶
func (*CommitResultList) Descriptor() ([]byte, []int)
func (*CommitResultList) GetResults ¶
func (m *CommitResultList) GetResults() []*CommitResult
func (*CommitResultList) ProtoMessage ¶
func (*CommitResultList) ProtoMessage()
func (*CommitResultList) Reset ¶
func (m *CommitResultList) Reset()
func (*CommitResultList) String ¶
func (m *CommitResultList) String() string
func (*CommitResultList) XXX_DiscardUnknown ¶
func (m *CommitResultList) XXX_DiscardUnknown()
func (*CommitResultList) XXX_Marshal ¶
func (m *CommitResultList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommitResultList) XXX_Merge ¶
func (dst *CommitResultList) XXX_Merge(src proto.Message)
func (*CommitResultList) XXX_Size ¶
func (m *CommitResultList) XXX_Size() int
func (*CommitResultList) XXX_Unmarshal ¶
func (m *CommitResultList) XXX_Unmarshal(b []byte) error
type CommitStatus ¶
type CommitStatus int32
const ( CommitStatus_TX_OK CommitStatus = 0 CommitStatus_TX_NONCE_TOO_LOW CommitStatus = 1 CommitStatus_TX_ALREADY_EXISTS CommitStatus = 2 CommitStatus_TX_INVALID_HASH CommitStatus = 3 CommitStatus_TX_INVALID_SIGN CommitStatus = 4 CommitStatus_TX_INVALID_FORMAT CommitStatus = 5 CommitStatus_TX_INSUFFICIENT_BALANCE CommitStatus = 6 CommitStatus_TX_HAS_SAME_NONCE CommitStatus = 7 CommitStatus_TX_INTERNAL_ERROR CommitStatus = 9 )
func (CommitStatus) EnumDescriptor ¶
func (CommitStatus) EnumDescriptor() ([]byte, []int)
func (CommitStatus) String ¶
func (x CommitStatus) String() string
type ConfChangeProgress ¶
type ConfChangeProgress struct { State ConfChangeState `protobuf:"varint,1,opt,name=State,enum=types.ConfChangeState" json:"State,omitempty"` Err string `protobuf:"bytes,2,opt,name=Err" json:"Err,omitempty"` Members []*MemberAttr `protobuf:"bytes,3,rep,name=Members" json:"Members,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConfChangeProgress) Descriptor ¶
func (*ConfChangeProgress) Descriptor() ([]byte, []int)
func (*ConfChangeProgress) GetErr ¶
func (m *ConfChangeProgress) GetErr() string
func (*ConfChangeProgress) GetMembers ¶
func (m *ConfChangeProgress) GetMembers() []*MemberAttr
func (*ConfChangeProgress) GetState ¶
func (m *ConfChangeProgress) GetState() ConfChangeState
func (*ConfChangeProgress) ProtoMessage ¶
func (*ConfChangeProgress) ProtoMessage()
func (*ConfChangeProgress) Reset ¶
func (m *ConfChangeProgress) Reset()
func (*ConfChangeProgress) String ¶
func (m *ConfChangeProgress) String() string
func (*ConfChangeProgress) ToPrintable ¶
func (ccProgress *ConfChangeProgress) ToPrintable() *ChangeClusterStatus
func (*ConfChangeProgress) ToString ¶
func (ccProgress *ConfChangeProgress) ToString() string
func (*ConfChangeProgress) XXX_DiscardUnknown ¶
func (m *ConfChangeProgress) XXX_DiscardUnknown()
func (*ConfChangeProgress) XXX_Marshal ¶
func (m *ConfChangeProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfChangeProgress) XXX_Merge ¶
func (dst *ConfChangeProgress) XXX_Merge(src proto.Message)
func (*ConfChangeProgress) XXX_Size ¶
func (m *ConfChangeProgress) XXX_Size() int
func (*ConfChangeProgress) XXX_Unmarshal ¶
func (m *ConfChangeProgress) XXX_Unmarshal(b []byte) error
type ConfChangeState ¶
type ConfChangeState int32
const ( ConfChangeState_CONF_CHANGE_STATE_PROPOSED ConfChangeState = 0 ConfChangeState_CONF_CHANGE_STATE_SAVED ConfChangeState = 1 ConfChangeState_CONF_CHANGE_STATE_APPLIED ConfChangeState = 2 )
func (ConfChangeState) EnumDescriptor ¶
func (ConfChangeState) EnumDescriptor() ([]byte, []int)
func (ConfChangeState) String ¶
func (x ConfChangeState) String() string
type ConfigItem ¶
type ConfigItem struct { Props map[string]string `` /* 130-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func AddCategory ¶
func AddCategory(confs map[string]*ConfigItem, category string) *ConfigItem
func (*ConfigItem) Add ¶
func (ci *ConfigItem) Add(key, value string) *ConfigItem
func (*ConfigItem) AddBool ¶
func (ci *ConfigItem) AddBool(key string, value bool) *ConfigItem
func (*ConfigItem) AddFloat ¶
func (ci *ConfigItem) AddFloat(key string, value float64) *ConfigItem
func (*ConfigItem) AddInt ¶
func (ci *ConfigItem) AddInt(key string, value int) *ConfigItem
func (*ConfigItem) Descriptor ¶
func (*ConfigItem) Descriptor() ([]byte, []int)
func (*ConfigItem) GetProps ¶
func (m *ConfigItem) GetProps() map[string]string
func (*ConfigItem) ProtoMessage ¶
func (*ConfigItem) ProtoMessage()
func (*ConfigItem) Reset ¶
func (m *ConfigItem) Reset()
func (*ConfigItem) String ¶
func (m *ConfigItem) String() string
func (*ConfigItem) XXX_DiscardUnknown ¶
func (m *ConfigItem) XXX_DiscardUnknown()
func (*ConfigItem) XXX_Marshal ¶
func (m *ConfigItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigItem) XXX_Merge ¶
func (dst *ConfigItem) XXX_Merge(src proto.Message)
func (*ConfigItem) XXX_Size ¶
func (m *ConfigItem) XXX_Size() int
func (*ConfigItem) XXX_Unmarshal ¶
func (m *ConfigItem) XXX_Unmarshal(b []byte) error
type ConsensusInfo ¶
type ConsensusInfo struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` Info string `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"` Bps []string `protobuf:"bytes,3,rep,name=bps" json:"bps,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
info and bps is json string
func (*ConsensusInfo) Descriptor ¶
func (*ConsensusInfo) Descriptor() ([]byte, []int)
func (*ConsensusInfo) GetBps ¶
func (m *ConsensusInfo) GetBps() []string
func (*ConsensusInfo) GetInfo ¶
func (m *ConsensusInfo) GetInfo() string
func (*ConsensusInfo) GetType ¶
func (m *ConsensusInfo) GetType() string
func (*ConsensusInfo) ProtoMessage ¶
func (*ConsensusInfo) ProtoMessage()
func (*ConsensusInfo) Reset ¶
func (m *ConsensusInfo) Reset()
func (*ConsensusInfo) String ¶
func (m *ConsensusInfo) String() string
func (*ConsensusInfo) XXX_DiscardUnknown ¶
func (m *ConsensusInfo) XXX_DiscardUnknown()
func (*ConsensusInfo) XXX_Marshal ¶
func (m *ConsensusInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsensusInfo) XXX_Merge ¶
func (dst *ConsensusInfo) XXX_Merge(src proto.Message)
func (*ConsensusInfo) XXX_Size ¶
func (m *ConsensusInfo) XXX_Size() int
func (*ConsensusInfo) XXX_Unmarshal ¶
func (m *ConsensusInfo) XXX_Unmarshal(b []byte) error
type ContractVarProof ¶
type ContractVarProof struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Inclusion bool `protobuf:"varint,2,opt,name=inclusion" json:"inclusion,omitempty"` ProofKey []byte `protobuf:"bytes,4,opt,name=proofKey,proto3" json:"proofKey,omitempty"` ProofVal []byte `protobuf:"bytes,5,opt,name=proofVal,proto3" json:"proofVal,omitempty"` Bitmap []byte `protobuf:"bytes,6,opt,name=bitmap,proto3" json:"bitmap,omitempty"` Height uint32 `protobuf:"varint,7,opt,name=height" json:"height,omitempty"` AuditPath [][]byte `protobuf:"bytes,8,rep,name=auditPath,proto3" json:"auditPath,omitempty"` Key []byte `protobuf:"bytes,9,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContractVarProof) Descriptor ¶
func (*ContractVarProof) Descriptor() ([]byte, []int)
func (*ContractVarProof) GetAuditPath ¶
func (m *ContractVarProof) GetAuditPath() [][]byte
func (*ContractVarProof) GetBitmap ¶
func (m *ContractVarProof) GetBitmap() []byte
func (*ContractVarProof) GetHeight ¶
func (m *ContractVarProof) GetHeight() uint32
func (*ContractVarProof) GetInclusion ¶
func (m *ContractVarProof) GetInclusion() bool
func (*ContractVarProof) GetKey ¶
func (m *ContractVarProof) GetKey() []byte
func (*ContractVarProof) GetProofKey ¶
func (m *ContractVarProof) GetProofKey() []byte
func (*ContractVarProof) GetProofVal ¶
func (m *ContractVarProof) GetProofVal() []byte
func (*ContractVarProof) GetValue ¶
func (m *ContractVarProof) GetValue() []byte
func (*ContractVarProof) ProtoMessage ¶
func (*ContractVarProof) ProtoMessage()
func (*ContractVarProof) Reset ¶
func (m *ContractVarProof) Reset()
func (*ContractVarProof) String ¶
func (m *ContractVarProof) String() string
func (*ContractVarProof) XXX_DiscardUnknown ¶
func (m *ContractVarProof) XXX_DiscardUnknown()
func (*ContractVarProof) XXX_Marshal ¶
func (m *ContractVarProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractVarProof) XXX_Merge ¶
func (dst *ContractVarProof) XXX_Merge(src proto.Message)
func (*ContractVarProof) XXX_Size ¶
func (m *ContractVarProof) XXX_Size() int
func (*ContractVarProof) XXX_Unmarshal ¶
func (m *ContractVarProof) XXX_Unmarshal(b []byte) error
type DummyBlockVersionner ¶
type DummyBlockVersionner int32
func (DummyBlockVersionner) IsV2Fork ¶
func (v DummyBlockVersionner) IsV2Fork(BlockNo) bool
func (DummyBlockVersionner) Version ¶
func (v DummyBlockVersionner) Version(BlockNo) int32
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type EnterpriseBP ¶
type EnterpriseConfig ¶
type EnterpriseConfig struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` On bool `protobuf:"varint,2,opt,name=on" json:"on,omitempty"` Values []string `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EnterpriseConfig) Descriptor ¶
func (*EnterpriseConfig) Descriptor() ([]byte, []int)
func (*EnterpriseConfig) GetKey ¶
func (m *EnterpriseConfig) GetKey() string
func (*EnterpriseConfig) GetOn ¶
func (m *EnterpriseConfig) GetOn() bool
func (*EnterpriseConfig) GetValues ¶
func (m *EnterpriseConfig) GetValues() []string
func (*EnterpriseConfig) ProtoMessage ¶
func (*EnterpriseConfig) ProtoMessage()
func (*EnterpriseConfig) Reset ¶
func (m *EnterpriseConfig) Reset()
func (*EnterpriseConfig) String ¶
func (m *EnterpriseConfig) String() string
func (*EnterpriseConfig) XXX_DiscardUnknown ¶
func (m *EnterpriseConfig) XXX_DiscardUnknown()
func (*EnterpriseConfig) XXX_Marshal ¶
func (m *EnterpriseConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnterpriseConfig) XXX_Merge ¶
func (dst *EnterpriseConfig) XXX_Merge(src proto.Message)
func (*EnterpriseConfig) XXX_Size ¶
func (m *EnterpriseConfig) XXX_Size() int
func (*EnterpriseConfig) XXX_Unmarshal ¶
func (m *EnterpriseConfig) XXX_Unmarshal(b []byte) error
type EnterpriseConfigKey ¶
type EnterpriseConfigKey struct { Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EnterpriseConfigKey) Descriptor ¶
func (*EnterpriseConfigKey) Descriptor() ([]byte, []int)
func (*EnterpriseConfigKey) GetKey ¶
func (m *EnterpriseConfigKey) GetKey() string
func (*EnterpriseConfigKey) ProtoMessage ¶
func (*EnterpriseConfigKey) ProtoMessage()
func (*EnterpriseConfigKey) Reset ¶
func (m *EnterpriseConfigKey) Reset()
func (*EnterpriseConfigKey) String ¶
func (m *EnterpriseConfigKey) String() string
func (*EnterpriseConfigKey) XXX_DiscardUnknown ¶
func (m *EnterpriseConfigKey) XXX_DiscardUnknown()
func (*EnterpriseConfigKey) XXX_Marshal ¶
func (m *EnterpriseConfigKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EnterpriseConfigKey) XXX_Merge ¶
func (dst *EnterpriseConfigKey) XXX_Merge(src proto.Message)
func (*EnterpriseConfigKey) XXX_Size ¶
func (m *EnterpriseConfigKey) XXX_Size() int
func (*EnterpriseConfigKey) XXX_Unmarshal ¶
func (m *EnterpriseConfigKey) XXX_Unmarshal(b []byte) error
type EnterpriseTxStatus ¶
type EnterpriseTxStatus struct { Status string `json:"status"` Ret string `json:"ret"` CCStatus *ChangeClusterStatus `json:"change_cluster,omitempty"` }
type Event ¶
type Event struct { ContractAddress []byte `protobuf:"bytes,1,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"` EventName string `protobuf:"bytes,2,opt,name=eventName" json:"eventName,omitempty"` JsonArgs string `protobuf:"bytes,3,opt,name=jsonArgs" json:"jsonArgs,omitempty"` EventIdx int32 `protobuf:"varint,4,opt,name=eventIdx" json:"eventIdx,omitempty"` TxHash []byte `protobuf:"bytes,5,opt,name=txHash,proto3" json:"txHash,omitempty"` BlockHash []byte `protobuf:"bytes,6,opt,name=blockHash,proto3" json:"blockHash,omitempty"` BlockNo uint64 `protobuf:"varint,7,opt,name=blockNo" json:"blockNo,omitempty"` TxIndex int32 `protobuf:"varint,8,opt,name=txIndex" json:"txIndex,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetBlockHash ¶
func (*Event) GetBlockNo ¶
func (*Event) GetContractAddress ¶
func (*Event) GetEventIdx ¶
func (*Event) GetEventName ¶
func (*Event) GetJsonArgs ¶
func (*Event) GetTxIndex ¶
func (*Event) MarshalBinary ¶
func (*Event) MarshalJSON ¶
func (*Event) MarshalMerkleBinary ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) SetMemoryInfo ¶
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type EventList ¶
type EventList struct { Events []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EventList) Descriptor ¶
func (*EventList) ProtoMessage ¶
func (*EventList) ProtoMessage()
func (*EventList) XXX_DiscardUnknown ¶
func (m *EventList) XXX_DiscardUnknown()
func (*EventList) XXX_Marshal ¶
func (*EventList) XXX_Unmarshal ¶
type FilterInfo ¶
type FilterInfo struct { ContractAddress []byte `protobuf:"bytes,1,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"` EventName string `protobuf:"bytes,2,opt,name=eventName" json:"eventName,omitempty"` Blockfrom uint64 `protobuf:"varint,3,opt,name=blockfrom" json:"blockfrom,omitempty"` Blockto uint64 `protobuf:"varint,4,opt,name=blockto" json:"blockto,omitempty"` Desc bool `protobuf:"varint,5,opt,name=desc" json:"desc,omitempty"` ArgFilter []byte `protobuf:"bytes,6,opt,name=argFilter,proto3" json:"argFilter,omitempty"` RecentBlockCnt int32 `protobuf:"varint,7,opt,name=recentBlockCnt" json:"recentBlockCnt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FilterInfo) Descriptor ¶
func (*FilterInfo) Descriptor() ([]byte, []int)
func (*FilterInfo) GetArgFilter ¶
func (m *FilterInfo) GetArgFilter() []byte
func (*FilterInfo) GetBlockfrom ¶
func (m *FilterInfo) GetBlockfrom() uint64
func (*FilterInfo) GetBlockto ¶
func (m *FilterInfo) GetBlockto() uint64
func (*FilterInfo) GetContractAddress ¶
func (m *FilterInfo) GetContractAddress() []byte
func (*FilterInfo) GetDesc ¶
func (m *FilterInfo) GetDesc() bool
func (*FilterInfo) GetEventName ¶
func (m *FilterInfo) GetEventName() string
func (*FilterInfo) GetExArgFilter ¶
func (fi *FilterInfo) GetExArgFilter() ([]ArgFilter, error)
func (*FilterInfo) GetRecentBlockCnt ¶
func (m *FilterInfo) GetRecentBlockCnt() int32
func (*FilterInfo) ProtoMessage ¶
func (*FilterInfo) ProtoMessage()
func (*FilterInfo) Reset ¶
func (m *FilterInfo) Reset()
func (*FilterInfo) String ¶
func (m *FilterInfo) String() string
func (*FilterInfo) ValidateCheck ¶
func (fi *FilterInfo) ValidateCheck(to uint64) error
func (*FilterInfo) XXX_DiscardUnknown ¶
func (m *FilterInfo) XXX_DiscardUnknown()
func (*FilterInfo) XXX_Marshal ¶
func (m *FilterInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilterInfo) XXX_Merge ¶
func (dst *FilterInfo) XXX_Merge(src proto.Message)
func (*FilterInfo) XXX_Size ¶
func (m *FilterInfo) XXX_Size() int
func (*FilterInfo) XXX_Unmarshal ¶
func (m *FilterInfo) XXX_Unmarshal(b []byte) error
type FnArgument ¶
type FnArgument struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FnArgument) Descriptor ¶
func (*FnArgument) Descriptor() ([]byte, []int)
func (*FnArgument) GetName ¶
func (m *FnArgument) GetName() string
func (*FnArgument) ProtoMessage ¶
func (*FnArgument) ProtoMessage()
func (*FnArgument) Reset ¶
func (m *FnArgument) Reset()
func (*FnArgument) String ¶
func (m *FnArgument) String() string
func (*FnArgument) XXX_DiscardUnknown ¶
func (m *FnArgument) XXX_DiscardUnknown()
func (*FnArgument) XXX_Marshal ¶
func (m *FnArgument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FnArgument) XXX_Merge ¶
func (dst *FnArgument) XXX_Merge(src proto.Message)
func (*FnArgument) XXX_Size ¶
func (m *FnArgument) XXX_Size() int
func (*FnArgument) XXX_Unmarshal ¶
func (m *FnArgument) XXX_Unmarshal(b []byte) error
type Function ¶
type Function struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Arguments []*FnArgument `protobuf:"bytes,2,rep,name=arguments" json:"arguments,omitempty"` Payable bool `protobuf:"varint,3,opt,name=payable" json:"payable,omitempty"` View bool `protobuf:"varint,4,opt,name=view" json:"view,omitempty"` FeeDelegation bool `protobuf:"varint,5,opt,name=fee_delegation,json=feeDelegation" json:"fee_delegation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Function) Descriptor ¶
func (*Function) GetArguments ¶
func (m *Function) GetArguments() []*FnArgument
func (*Function) GetFeeDelegation ¶
func (*Function) GetPayable ¶
func (*Function) ProtoMessage ¶
func (*Function) ProtoMessage()
func (*Function) XXX_DiscardUnknown ¶
func (m *Function) XXX_DiscardUnknown()
func (*Function) XXX_Marshal ¶
func (*Function) XXX_Unmarshal ¶
type Genesis ¶
type Genesis struct { ID ChainID `json:"chain_id,omitempty"` Timestamp int64 `json:"timestamp,omitempty"` Balance map[string]string `json:"balance"` BPs []string `json:"bps"` EnterpriseBPs []EnterpriseBP `json:"enterprise_bps,omitempty"` // contains filtered or unexported fields }
Genesis represents genesis block
func GetDefaultGenesis ¶
func GetDefaultGenesis() *Genesis
GetDefaultGenesis returns default genesis structure
func GetGenesisFromBytes ¶
GetGenesisFromBytes decodes & return Genesis from b.
func GetMainNetGenesis ¶
func GetMainNetGenesis() *Genesis
func GetTestGenesis ¶
func GetTestGenesis() *Genesis
GetTestGenesis returns Gensis object for a unit test.
func GetTestNetGenesis ¶
func GetTestNetGenesis() *Genesis
func (*Genesis) AddBalance ¶
AddBalance adds bal to g.totalBalance.
func (Genesis) ConsensusType ¶
ConsensusType retruns g.ID.ConsensusType.
func (Genesis) HasDevChainID ¶
func (Genesis) HasPrivateChainID ¶
func (Genesis) IsMeyCoinPublicChain ¶
func (*Genesis) SetTotalBalance ¶
SetTotalBalance sets g.totalBalance to v if g.totalBlance has no valid value (nil).
func (*Genesis) TotalBalance ¶
TotalBalance returns the total initial balance of the chain.
type GetAncestorRequest ¶
type GetAncestorRequest struct { // Hash indicated referenced sparse block hash array of longest chain(caller). Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAncestorRequest) Descriptor ¶
func (*GetAncestorRequest) Descriptor() ([]byte, []int)
func (*GetAncestorRequest) GetHashes ¶
func (m *GetAncestorRequest) GetHashes() [][]byte
func (*GetAncestorRequest) MarshalZerologObject ¶
func (m *GetAncestorRequest) MarshalZerologObject(e *zerolog.Event)
func (*GetAncestorRequest) ProtoMessage ¶
func (*GetAncestorRequest) ProtoMessage()
func (*GetAncestorRequest) Reset ¶
func (m *GetAncestorRequest) Reset()
func (*GetAncestorRequest) String ¶
func (m *GetAncestorRequest) String() string
func (*GetAncestorRequest) XXX_DiscardUnknown ¶
func (m *GetAncestorRequest) XXX_DiscardUnknown()
func (*GetAncestorRequest) XXX_Marshal ¶
func (m *GetAncestorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAncestorRequest) XXX_Merge ¶
func (dst *GetAncestorRequest) XXX_Merge(src proto.Message)
func (*GetAncestorRequest) XXX_Size ¶
func (m *GetAncestorRequest) XXX_Size() int
func (*GetAncestorRequest) XXX_Unmarshal ¶
func (m *GetAncestorRequest) XXX_Unmarshal(b []byte) error
type GetAncestorResponse ¶
type GetAncestorResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` AncestorHash []byte `protobuf:"bytes,2,opt,name=ancestorHash,proto3" json:"ancestorHash,omitempty"` AncestorNo uint64 `protobuf:"varint,3,opt,name=ancestorNo" json:"ancestorNo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAncestorResponse) Descriptor ¶
func (*GetAncestorResponse) Descriptor() ([]byte, []int)
func (*GetAncestorResponse) GetAncestorHash ¶
func (m *GetAncestorResponse) GetAncestorHash() []byte
func (*GetAncestorResponse) GetAncestorNo ¶
func (m *GetAncestorResponse) GetAncestorNo() uint64
func (*GetAncestorResponse) GetStatus ¶
func (m *GetAncestorResponse) GetStatus() ResultStatus
func (*GetAncestorResponse) MarshalZerologObject ¶
func (m *GetAncestorResponse) MarshalZerologObject(e *zerolog.Event)
func (*GetAncestorResponse) ProtoMessage ¶
func (*GetAncestorResponse) ProtoMessage()
func (*GetAncestorResponse) Reset ¶
func (m *GetAncestorResponse) Reset()
func (*GetAncestorResponse) String ¶
func (m *GetAncestorResponse) String() string
func (*GetAncestorResponse) XXX_DiscardUnknown ¶
func (m *GetAncestorResponse) XXX_DiscardUnknown()
func (*GetAncestorResponse) XXX_Marshal ¶
func (m *GetAncestorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAncestorResponse) XXX_Merge ¶
func (dst *GetAncestorResponse) XXX_Merge(src proto.Message)
func (*GetAncestorResponse) XXX_Size ¶
func (m *GetAncestorResponse) XXX_Size() int
func (*GetAncestorResponse) XXX_Unmarshal ¶
func (m *GetAncestorResponse) XXX_Unmarshal(b []byte) error
type GetBlockHeadersRequest ¶
type GetBlockHeadersRequest struct { // Hash indicated referenced block hash. server will return headers from this block. Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // Block height instead of hash will be used for the first returned block, if hash is nil or empty Height uint64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"` Offset uint64 `protobuf:"varint,3,opt,name=offset" json:"offset,omitempty"` Size uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` // default is false. Asc bool `protobuf:"varint,5,opt,name=asc" json:"asc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetBlockHeadersRequest
func (*GetBlockHeadersRequest) Descriptor ¶
func (*GetBlockHeadersRequest) Descriptor() ([]byte, []int)
func (*GetBlockHeadersRequest) GetAsc ¶
func (m *GetBlockHeadersRequest) GetAsc() bool
func (*GetBlockHeadersRequest) GetHash ¶
func (m *GetBlockHeadersRequest) GetHash() []byte
func (*GetBlockHeadersRequest) GetHeight ¶
func (m *GetBlockHeadersRequest) GetHeight() uint64
func (*GetBlockHeadersRequest) GetOffset ¶
func (m *GetBlockHeadersRequest) GetOffset() uint64
func (*GetBlockHeadersRequest) GetSize ¶
func (m *GetBlockHeadersRequest) GetSize() uint32
func (*GetBlockHeadersRequest) MarshalZerologObject ¶
func (m *GetBlockHeadersRequest) MarshalZerologObject(e *zerolog.Event)
func (*GetBlockHeadersRequest) ProtoMessage ¶
func (*GetBlockHeadersRequest) ProtoMessage()
func (*GetBlockHeadersRequest) Reset ¶
func (m *GetBlockHeadersRequest) Reset()
func (*GetBlockHeadersRequest) String ¶
func (m *GetBlockHeadersRequest) String() string
func (*GetBlockHeadersRequest) XXX_DiscardUnknown ¶
func (m *GetBlockHeadersRequest) XXX_DiscardUnknown()
func (*GetBlockHeadersRequest) XXX_Marshal ¶
func (m *GetBlockHeadersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockHeadersRequest) XXX_Merge ¶
func (dst *GetBlockHeadersRequest) XXX_Merge(src proto.Message)
func (*GetBlockHeadersRequest) XXX_Size ¶
func (m *GetBlockHeadersRequest) XXX_Size() int
func (*GetBlockHeadersRequest) XXX_Unmarshal ¶
func (m *GetBlockHeadersRequest) XXX_Unmarshal(b []byte) error
type GetBlockHeadersResponse ¶
type GetBlockHeadersResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` Hashes [][]byte `protobuf:"bytes,2,rep,name=hashes,proto3" json:"hashes,omitempty"` Headers []*BlockHeader `protobuf:"bytes,3,rep,name=headers" json:"headers,omitempty"` HasNext bool `protobuf:"varint,4,opt,name=hasNext" json:"hasNext,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetBlockResponse contains response of GetBlockRequest.
func (*GetBlockHeadersResponse) Descriptor ¶
func (*GetBlockHeadersResponse) Descriptor() ([]byte, []int)
func (*GetBlockHeadersResponse) GetHasNext ¶
func (m *GetBlockHeadersResponse) GetHasNext() bool
func (*GetBlockHeadersResponse) GetHashes ¶
func (m *GetBlockHeadersResponse) GetHashes() [][]byte
func (*GetBlockHeadersResponse) GetHeaders ¶
func (m *GetBlockHeadersResponse) GetHeaders() []*BlockHeader
func (*GetBlockHeadersResponse) GetStatus ¶
func (m *GetBlockHeadersResponse) GetStatus() ResultStatus
func (*GetBlockHeadersResponse) MarshalZerologObject ¶
func (m *GetBlockHeadersResponse) MarshalZerologObject(e *zerolog.Event)
func (*GetBlockHeadersResponse) ProtoMessage ¶
func (*GetBlockHeadersResponse) ProtoMessage()
func (*GetBlockHeadersResponse) Reset ¶
func (m *GetBlockHeadersResponse) Reset()
func (*GetBlockHeadersResponse) String ¶
func (m *GetBlockHeadersResponse) String() string
func (*GetBlockHeadersResponse) XXX_DiscardUnknown ¶
func (m *GetBlockHeadersResponse) XXX_DiscardUnknown()
func (*GetBlockHeadersResponse) XXX_Marshal ¶
func (m *GetBlockHeadersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockHeadersResponse) XXX_Merge ¶
func (dst *GetBlockHeadersResponse) XXX_Merge(src proto.Message)
func (*GetBlockHeadersResponse) XXX_Size ¶
func (m *GetBlockHeadersResponse) XXX_Size() int
func (*GetBlockHeadersResponse) XXX_Unmarshal ¶
func (m *GetBlockHeadersResponse) XXX_Unmarshal(b []byte) error
type GetBlockRequest ¶
type GetBlockRequest struct { Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetBlockRequest request blocks informations, not just single block.
func (*GetBlockRequest) Descriptor ¶
func (*GetBlockRequest) Descriptor() ([]byte, []int)
func (*GetBlockRequest) GetHashes ¶
func (m *GetBlockRequest) GetHashes() [][]byte
func (*GetBlockRequest) MarshalZerologObject ¶
func (m *GetBlockRequest) MarshalZerologObject(e *zerolog.Event)
func (*GetBlockRequest) ProtoMessage ¶
func (*GetBlockRequest) ProtoMessage()
func (*GetBlockRequest) Reset ¶
func (m *GetBlockRequest) Reset()
func (*GetBlockRequest) String ¶
func (m *GetBlockRequest) String() string
func (*GetBlockRequest) XXX_DiscardUnknown ¶
func (m *GetBlockRequest) XXX_DiscardUnknown()
func (*GetBlockRequest) XXX_Marshal ¶
func (m *GetBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockRequest) XXX_Merge ¶
func (dst *GetBlockRequest) XXX_Merge(src proto.Message)
func (*GetBlockRequest) XXX_Size ¶
func (m *GetBlockRequest) XXX_Size() int
func (*GetBlockRequest) XXX_Unmarshal ¶
func (m *GetBlockRequest) XXX_Unmarshal(b []byte) error
type GetBlockResponse ¶
type GetBlockResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` Blocks []*Block `protobuf:"bytes,2,rep,name=blocks" json:"blocks,omitempty"` HasNext bool `protobuf:"varint,3,opt,name=hasNext" json:"hasNext,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetBlockResponse contains response of GetBlockRequest.
func (*GetBlockResponse) Descriptor ¶
func (*GetBlockResponse) Descriptor() ([]byte, []int)
func (*GetBlockResponse) GetBlocks ¶
func (m *GetBlockResponse) GetBlocks() []*Block
func (*GetBlockResponse) GetHasNext ¶
func (m *GetBlockResponse) GetHasNext() bool
func (*GetBlockResponse) GetStatus ¶
func (m *GetBlockResponse) GetStatus() ResultStatus
func (*GetBlockResponse) MarshalZerologObject ¶
func (m *GetBlockResponse) MarshalZerologObject(e *zerolog.Event)
func (*GetBlockResponse) ProtoMessage ¶
func (*GetBlockResponse) ProtoMessage()
func (*GetBlockResponse) Reset ¶
func (m *GetBlockResponse) Reset()
func (*GetBlockResponse) String ¶
func (m *GetBlockResponse) String() string
func (*GetBlockResponse) XXX_DiscardUnknown ¶
func (m *GetBlockResponse) XXX_DiscardUnknown()
func (*GetBlockResponse) XXX_Marshal ¶
func (m *GetBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBlockResponse) XXX_Merge ¶
func (dst *GetBlockResponse) XXX_Merge(src proto.Message)
func (*GetBlockResponse) XXX_Size ¶
func (m *GetBlockResponse) XXX_Size() int
func (*GetBlockResponse) XXX_Unmarshal ¶
func (m *GetBlockResponse) XXX_Unmarshal(b []byte) error
type GetClusterInfoRequest ¶
type GetClusterInfoRequest struct { BestBlockHash []byte `protobuf:"bytes,1,opt,name=bestBlockHash,proto3" json:"bestBlockHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
data types for raft support GetClusterInfoRequest
func (*GetClusterInfoRequest) Descriptor ¶
func (*GetClusterInfoRequest) Descriptor() ([]byte, []int)
func (*GetClusterInfoRequest) GetBestBlockHash ¶
func (m *GetClusterInfoRequest) GetBestBlockHash() []byte
func (*GetClusterInfoRequest) MarshalZerologObject ¶
func (m *GetClusterInfoRequest) MarshalZerologObject(e *zerolog.Event)
func (*GetClusterInfoRequest) ProtoMessage ¶
func (*GetClusterInfoRequest) ProtoMessage()
func (*GetClusterInfoRequest) Reset ¶
func (m *GetClusterInfoRequest) Reset()
func (*GetClusterInfoRequest) String ¶
func (m *GetClusterInfoRequest) String() string
func (*GetClusterInfoRequest) XXX_DiscardUnknown ¶
func (m *GetClusterInfoRequest) XXX_DiscardUnknown()
func (*GetClusterInfoRequest) XXX_Marshal ¶
func (m *GetClusterInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetClusterInfoRequest) XXX_Merge ¶
func (dst *GetClusterInfoRequest) XXX_Merge(src proto.Message)
func (*GetClusterInfoRequest) XXX_Size ¶
func (m *GetClusterInfoRequest) XXX_Size() int
func (*GetClusterInfoRequest) XXX_Unmarshal ¶
func (m *GetClusterInfoRequest) XXX_Unmarshal(b []byte) error
type GetClusterInfoResponse ¶
type GetClusterInfoResponse struct { ChainID []byte `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` ClusterID uint64 `protobuf:"varint,2,opt,name=clusterID" json:"clusterID,omitempty"` Error string `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` MbrAttrs []*MemberAttr `protobuf:"bytes,4,rep,name=mbrAttrs" json:"mbrAttrs,omitempty"` BestBlockNo uint64 `protobuf:"varint,5,opt,name=bestBlockNo" json:"bestBlockNo,omitempty"` HardStateInfo *HardStateInfo `protobuf:"bytes,6,opt,name=hardStateInfo" json:"hardStateInfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetClusterInfoResponse) Descriptor ¶
func (*GetClusterInfoResponse) Descriptor() ([]byte, []int)
func (*GetClusterInfoResponse) GetBestBlockNo ¶
func (m *GetClusterInfoResponse) GetBestBlockNo() uint64
func (*GetClusterInfoResponse) GetChainID ¶
func (m *GetClusterInfoResponse) GetChainID() []byte
func (*GetClusterInfoResponse) GetClusterID ¶
func (m *GetClusterInfoResponse) GetClusterID() uint64
func (*GetClusterInfoResponse) GetError ¶
func (m *GetClusterInfoResponse) GetError() string
func (*GetClusterInfoResponse) GetHardStateInfo ¶
func (m *GetClusterInfoResponse) GetHardStateInfo() *HardStateInfo
func (*GetClusterInfoResponse) GetMbrAttrs ¶
func (m *GetClusterInfoResponse) GetMbrAttrs() []*MemberAttr
func (*GetClusterInfoResponse) MarshalZerologObject ¶
func (m *GetClusterInfoResponse) MarshalZerologObject(e *zerolog.Event)
func (*GetClusterInfoResponse) ProtoMessage ¶
func (*GetClusterInfoResponse) ProtoMessage()
func (*GetClusterInfoResponse) Reset ¶
func (m *GetClusterInfoResponse) Reset()
func (*GetClusterInfoResponse) String ¶
func (m *GetClusterInfoResponse) String() string
func (*GetClusterInfoResponse) XXX_DiscardUnknown ¶
func (m *GetClusterInfoResponse) XXX_DiscardUnknown()
func (*GetClusterInfoResponse) XXX_Marshal ¶
func (m *GetClusterInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetClusterInfoResponse) XXX_Merge ¶
func (dst *GetClusterInfoResponse) XXX_Merge(src proto.Message)
func (*GetClusterInfoResponse) XXX_Size ¶
func (m *GetClusterInfoResponse) XXX_Size() int
func (*GetClusterInfoResponse) XXX_Unmarshal ¶
func (m *GetClusterInfoResponse) XXX_Unmarshal(b []byte) error
type GetHashByNo ¶
type GetHashByNo struct { BlockNo uint64 `protobuf:"varint,1,opt,name=blockNo" json:"blockNo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetHashByNo) Descriptor ¶
func (*GetHashByNo) Descriptor() ([]byte, []int)
func (*GetHashByNo) GetBlockNo ¶
func (m *GetHashByNo) GetBlockNo() uint64
func (*GetHashByNo) MarshalZerologObject ¶
func (m *GetHashByNo) MarshalZerologObject(e *zerolog.Event)
func (*GetHashByNo) ProtoMessage ¶
func (*GetHashByNo) ProtoMessage()
func (*GetHashByNo) Reset ¶
func (m *GetHashByNo) Reset()
func (*GetHashByNo) String ¶
func (m *GetHashByNo) String() string
func (*GetHashByNo) XXX_DiscardUnknown ¶
func (m *GetHashByNo) XXX_DiscardUnknown()
func (*GetHashByNo) XXX_Marshal ¶
func (m *GetHashByNo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetHashByNo) XXX_Merge ¶
func (dst *GetHashByNo) XXX_Merge(src proto.Message)
func (*GetHashByNo) XXX_Size ¶
func (m *GetHashByNo) XXX_Size() int
func (*GetHashByNo) XXX_Unmarshal ¶
func (m *GetHashByNo) XXX_Unmarshal(b []byte) error
type GetHashByNoResponse ¶
type GetHashByNoResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` BlockHash []byte `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetHashByNoResponse) Descriptor ¶
func (*GetHashByNoResponse) Descriptor() ([]byte, []int)
func (*GetHashByNoResponse) GetBlockHash ¶
func (m *GetHashByNoResponse) GetBlockHash() []byte
func (*GetHashByNoResponse) GetStatus ¶
func (m *GetHashByNoResponse) GetStatus() ResultStatus
func (*GetHashByNoResponse) MarshalZerologObject ¶
func (m *GetHashByNoResponse) MarshalZerologObject(e *zerolog.Event)
func (*GetHashByNoResponse) ProtoMessage ¶
func (*GetHashByNoResponse) ProtoMessage()
func (*GetHashByNoResponse) Reset ¶
func (m *GetHashByNoResponse) Reset()
func (*GetHashByNoResponse) String ¶
func (m *GetHashByNoResponse) String() string
func (*GetHashByNoResponse) XXX_DiscardUnknown ¶
func (m *GetHashByNoResponse) XXX_DiscardUnknown()
func (*GetHashByNoResponse) XXX_Marshal ¶
func (m *GetHashByNoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetHashByNoResponse) XXX_Merge ¶
func (dst *GetHashByNoResponse) XXX_Merge(src proto.Message)
func (*GetHashByNoResponse) XXX_Size ¶
func (m *GetHashByNoResponse) XXX_Size() int
func (*GetHashByNoResponse) XXX_Unmarshal ¶
func (m *GetHashByNoResponse) XXX_Unmarshal(b []byte) error
type GetHashesRequest ¶
type GetHashesRequest struct { // prevHash indicated referenced block hash. server will return hashes after this block. PrevHash []byte `protobuf:"bytes,1,opt,name=prevHash,proto3" json:"prevHash,omitempty"` // prevNumber indicated referenced block PrevNumber uint64 `protobuf:"varint,2,opt,name=prevNumber" json:"prevNumber,omitempty"` // maximum count of hashes that want to get Size uint64 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetHashesRequest
func (*GetHashesRequest) Descriptor ¶
func (*GetHashesRequest) Descriptor() ([]byte, []int)
func (*GetHashesRequest) GetPrevHash ¶
func (m *GetHashesRequest) GetPrevHash() []byte
func (*GetHashesRequest) GetPrevNumber ¶
func (m *GetHashesRequest) GetPrevNumber() uint64
func (*GetHashesRequest) GetSize ¶
func (m *GetHashesRequest) GetSize() uint64
func (*GetHashesRequest) MarshalZerologObject ¶
func (m *GetHashesRequest) MarshalZerologObject(e *zerolog.Event)
func (*GetHashesRequest) ProtoMessage ¶
func (*GetHashesRequest) ProtoMessage()
func (*GetHashesRequest) Reset ¶
func (m *GetHashesRequest) Reset()
func (*GetHashesRequest) String ¶
func (m *GetHashesRequest) String() string
func (*GetHashesRequest) XXX_DiscardUnknown ¶
func (m *GetHashesRequest) XXX_DiscardUnknown()
func (*GetHashesRequest) XXX_Marshal ¶
func (m *GetHashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetHashesRequest) XXX_Merge ¶
func (dst *GetHashesRequest) XXX_Merge(src proto.Message)
func (*GetHashesRequest) XXX_Size ¶
func (m *GetHashesRequest) XXX_Size() int
func (*GetHashesRequest) XXX_Unmarshal ¶
func (m *GetHashesRequest) XXX_Unmarshal(b []byte) error
type GetHashesResponse ¶
type GetHashesResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` Hashes [][]byte `protobuf:"bytes,2,rep,name=hashes,proto3" json:"hashes,omitempty"` HasNext bool `protobuf:"varint,3,opt,name=hasNext" json:"hasNext,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetHashesResponse contains response of GetHashesRequest.
func (*GetHashesResponse) Descriptor ¶
func (*GetHashesResponse) Descriptor() ([]byte, []int)
func (*GetHashesResponse) GetHasNext ¶
func (m *GetHashesResponse) GetHasNext() bool
func (*GetHashesResponse) GetHashes ¶
func (m *GetHashesResponse) GetHashes() [][]byte
func (*GetHashesResponse) GetStatus ¶
func (m *GetHashesResponse) GetStatus() ResultStatus
func (*GetHashesResponse) MarshalZerologObject ¶
func (m *GetHashesResponse) MarshalZerologObject(e *zerolog.Event)
func (*GetHashesResponse) ProtoMessage ¶
func (*GetHashesResponse) ProtoMessage()
func (*GetHashesResponse) Reset ¶
func (m *GetHashesResponse) Reset()
func (*GetHashesResponse) String ¶
func (m *GetHashesResponse) String() string
func (*GetHashesResponse) XXX_DiscardUnknown ¶
func (m *GetHashesResponse) XXX_DiscardUnknown()
func (*GetHashesResponse) XXX_Marshal ¶
func (m *GetHashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetHashesResponse) XXX_Merge ¶
func (dst *GetHashesResponse) XXX_Merge(src proto.Message)
func (*GetHashesResponse) XXX_Size ¶
func (m *GetHashesResponse) XXX_Size() int
func (*GetHashesResponse) XXX_Unmarshal ¶
func (m *GetHashesResponse) XXX_Unmarshal(b []byte) error
type GetMissingRequest ¶
type GetMissingRequest struct { // Hash indicated referenced sparse block hash array of longest chain(caller). Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` // stophash will be used the meaning of end point of missing part. Stophash []byte `protobuf:"bytes,2,opt,name=stophash,proto3" json:"stophash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GetMissingRequest
func (*GetMissingRequest) Descriptor ¶
func (*GetMissingRequest) Descriptor() ([]byte, []int)
func (*GetMissingRequest) GetHashes ¶
func (m *GetMissingRequest) GetHashes() [][]byte
func (*GetMissingRequest) GetStophash ¶
func (m *GetMissingRequest) GetStophash() []byte
func (*GetMissingRequest) ProtoMessage ¶
func (*GetMissingRequest) ProtoMessage()
func (*GetMissingRequest) Reset ¶
func (m *GetMissingRequest) Reset()
func (*GetMissingRequest) String ¶
func (m *GetMissingRequest) String() string
func (*GetMissingRequest) XXX_DiscardUnknown ¶
func (m *GetMissingRequest) XXX_DiscardUnknown()
func (*GetMissingRequest) XXX_Marshal ¶
func (m *GetMissingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetMissingRequest) XXX_Merge ¶
func (dst *GetMissingRequest) XXX_Merge(src proto.Message)
func (*GetMissingRequest) XXX_Size ¶
func (m *GetMissingRequest) XXX_Size() int
func (*GetMissingRequest) XXX_Unmarshal ¶
func (m *GetMissingRequest) XXX_Unmarshal(b []byte) error
type GetTransactionsRequest ¶
type GetTransactionsRequest struct { Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTransactionsRequest) Descriptor ¶
func (*GetTransactionsRequest) Descriptor() ([]byte, []int)
func (*GetTransactionsRequest) GetHashes ¶
func (m *GetTransactionsRequest) GetHashes() [][]byte
func (*GetTransactionsRequest) MarshalZerologObject ¶
func (m *GetTransactionsRequest) MarshalZerologObject(e *zerolog.Event)
func (*GetTransactionsRequest) ProtoMessage ¶
func (*GetTransactionsRequest) ProtoMessage()
func (*GetTransactionsRequest) Reset ¶
func (m *GetTransactionsRequest) Reset()
func (*GetTransactionsRequest) String ¶
func (m *GetTransactionsRequest) String() string
func (*GetTransactionsRequest) XXX_DiscardUnknown ¶
func (m *GetTransactionsRequest) XXX_DiscardUnknown()
func (*GetTransactionsRequest) XXX_Marshal ¶
func (m *GetTransactionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTransactionsRequest) XXX_Merge ¶
func (dst *GetTransactionsRequest) XXX_Merge(src proto.Message)
func (*GetTransactionsRequest) XXX_Size ¶
func (m *GetTransactionsRequest) XXX_Size() int
func (*GetTransactionsRequest) XXX_Unmarshal ¶
func (m *GetTransactionsRequest) XXX_Unmarshal(b []byte) error
type GetTransactionsResponse ¶
type GetTransactionsResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` Hashes [][]byte `protobuf:"bytes,2,rep,name=hashes,proto3" json:"hashes,omitempty"` Txs []*Tx `protobuf:"bytes,3,rep,name=txs" json:"txs,omitempty"` HasNext bool `protobuf:"varint,4,opt,name=hasNext" json:"hasNext,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetTransactionsResponse) Descriptor ¶
func (*GetTransactionsResponse) Descriptor() ([]byte, []int)
func (*GetTransactionsResponse) GetHasNext ¶
func (m *GetTransactionsResponse) GetHasNext() bool
func (*GetTransactionsResponse) GetHashes ¶
func (m *GetTransactionsResponse) GetHashes() [][]byte
func (*GetTransactionsResponse) GetStatus ¶
func (m *GetTransactionsResponse) GetStatus() ResultStatus
func (*GetTransactionsResponse) GetTxs ¶
func (m *GetTransactionsResponse) GetTxs() []*Tx
func (*GetTransactionsResponse) MarshalZerologObject ¶
func (m *GetTransactionsResponse) MarshalZerologObject(e *zerolog.Event)
func (*GetTransactionsResponse) ProtoMessage ¶
func (*GetTransactionsResponse) ProtoMessage()
func (*GetTransactionsResponse) Reset ¶
func (m *GetTransactionsResponse) Reset()
func (*GetTransactionsResponse) String ¶
func (m *GetTransactionsResponse) String() string
func (*GetTransactionsResponse) XXX_DiscardUnknown ¶
func (m *GetTransactionsResponse) XXX_DiscardUnknown()
func (*GetTransactionsResponse) XXX_Marshal ¶
func (m *GetTransactionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetTransactionsResponse) XXX_Merge ¶
func (dst *GetTransactionsResponse) XXX_Merge(src proto.Message)
func (*GetTransactionsResponse) XXX_Size ¶
func (m *GetTransactionsResponse) XXX_Size() int
func (*GetTransactionsResponse) XXX_Unmarshal ¶
func (m *GetTransactionsResponse) XXX_Unmarshal(b []byte) error
type GoAwayNotice ¶
type GoAwayNotice struct { Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GoAwayNotice is sent before host peer is closing connection to remote peer. it contains why the host closing connection.
func (*GoAwayNotice) Descriptor ¶
func (*GoAwayNotice) Descriptor() ([]byte, []int)
func (*GoAwayNotice) GetMessage ¶
func (m *GoAwayNotice) GetMessage() string
func (*GoAwayNotice) MarshalZerologObject ¶
func (m *GoAwayNotice) MarshalZerologObject(e *zerolog.Event)
func (*GoAwayNotice) ProtoMessage ¶
func (*GoAwayNotice) ProtoMessage()
func (*GoAwayNotice) Reset ¶
func (m *GoAwayNotice) Reset()
func (*GoAwayNotice) String ¶
func (m *GoAwayNotice) String() string
func (*GoAwayNotice) XXX_DiscardUnknown ¶
func (m *GoAwayNotice) XXX_DiscardUnknown()
func (*GoAwayNotice) XXX_Marshal ¶
func (m *GoAwayNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GoAwayNotice) XXX_Merge ¶
func (dst *GoAwayNotice) XXX_Merge(src proto.Message)
func (*GoAwayNotice) XXX_Size ¶
func (m *GoAwayNotice) XXX_Size() int
func (*GoAwayNotice) XXX_Unmarshal ¶
func (m *GoAwayNotice) XXX_Unmarshal(b []byte) error
type HardStateInfo ¶
type HardStateInfo struct { Term uint64 `protobuf:"varint,1,opt,name=term" json:"term,omitempty"` Commit uint64 `protobuf:"varint,2,opt,name=commit" json:"commit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HardStateInfo) Descriptor ¶
func (*HardStateInfo) Descriptor() ([]byte, []int)
func (*HardStateInfo) GetCommit ¶
func (m *HardStateInfo) GetCommit() uint64
func (*HardStateInfo) GetTerm ¶
func (m *HardStateInfo) GetTerm() uint64
func (*HardStateInfo) ProtoMessage ¶
func (*HardStateInfo) ProtoMessage()
func (*HardStateInfo) Reset ¶
func (m *HardStateInfo) Reset()
func (*HardStateInfo) String ¶
func (m *HardStateInfo) String() string
func (*HardStateInfo) ToString ¶
func (hs *HardStateInfo) ToString() string
func (*HardStateInfo) XXX_DiscardUnknown ¶
func (m *HardStateInfo) XXX_DiscardUnknown()
func (*HardStateInfo) XXX_Marshal ¶
func (m *HardStateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HardStateInfo) XXX_Merge ¶
func (dst *HardStateInfo) XXX_Merge(src proto.Message)
func (*HardStateInfo) XXX_Size ¶
func (m *HardStateInfo) XXX_Size() int
func (*HardStateInfo) XXX_Unmarshal ¶
func (m *HardStateInfo) XXX_Unmarshal(b []byte) error
type HashID ¶
type HashID [HashIDLength]byte
HashID is a fixed size bytes
type HostAccessor ¶
type HostAccessor interface { // Version return version of this server Version() string // StartTime is the time when server was booted StartTime() time.Time }
HostAccessor is interface to provide the informations about server
type ImplHashBytes ¶
type ImplHashBytes interface {
Hash() []byte
}
ImplHashBytes is a object supports Hash
type ImplMarshal ¶
ImplMarshal is a object has marshal interface
type ImportFormat ¶
type ImportFormat struct { Wif *SingleBytes `protobuf:"bytes,1,opt,name=wif" json:"wif,omitempty"` Oldpass string `protobuf:"bytes,2,opt,name=oldpass" json:"oldpass,omitempty"` Newpass string `protobuf:"bytes,3,opt,name=newpass" json:"newpass,omitempty"` Keystore *SingleBytes `protobuf:"bytes,4,opt,name=keystore" json:"keystore,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ImportFormat) Descriptor ¶
func (*ImportFormat) Descriptor() ([]byte, []int)
func (*ImportFormat) GetKeystore ¶
func (m *ImportFormat) GetKeystore() *SingleBytes
func (*ImportFormat) GetNewpass ¶
func (m *ImportFormat) GetNewpass() string
func (*ImportFormat) GetOldpass ¶
func (m *ImportFormat) GetOldpass() string
func (*ImportFormat) GetWif ¶
func (m *ImportFormat) GetWif() *SingleBytes
func (*ImportFormat) ProtoMessage ¶
func (*ImportFormat) ProtoMessage()
func (*ImportFormat) Reset ¶
func (m *ImportFormat) Reset()
func (*ImportFormat) String ¶
func (m *ImportFormat) String() string
func (*ImportFormat) XXX_DiscardUnknown ¶
func (m *ImportFormat) XXX_DiscardUnknown()
func (*ImportFormat) XXX_Marshal ¶
func (m *ImportFormat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ImportFormat) XXX_Merge ¶
func (dst *ImportFormat) XXX_Merge(src proto.Message)
func (*ImportFormat) XXX_Size ¶
func (m *ImportFormat) XXX_Size() int
func (*ImportFormat) XXX_Unmarshal ¶
func (m *ImportFormat) XXX_Unmarshal(b []byte) error
type Input ¶
type Input struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Address [][]byte `protobuf:"bytes,2,rep,name=address,proto3" json:"address,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Script []byte `protobuf:"bytes,4,opt,name=script,proto3" json:"script,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Input) Descriptor ¶
func (*Input) GetAddress ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) XXX_DiscardUnknown ¶
func (m *Input) XXX_DiscardUnknown()
func (*Input) XXX_Marshal ¶
func (*Input) XXX_Unmarshal ¶
type InternalError ¶
type InternalError struct {
Reason string
}
func (*InternalError) Error ¶
func (e *InternalError) Error() string
type IssueCertificateRequest ¶
type IssueCertificateRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IssueCertificateRequest is message to block producer from agent
func (*IssueCertificateRequest) Descriptor ¶
func (*IssueCertificateRequest) Descriptor() ([]byte, []int)
func (*IssueCertificateRequest) ProtoMessage ¶
func (*IssueCertificateRequest) ProtoMessage()
func (*IssueCertificateRequest) Reset ¶
func (m *IssueCertificateRequest) Reset()
func (*IssueCertificateRequest) String ¶
func (m *IssueCertificateRequest) String() string
func (*IssueCertificateRequest) XXX_DiscardUnknown ¶
func (m *IssueCertificateRequest) XXX_DiscardUnknown()
func (*IssueCertificateRequest) XXX_Marshal ¶
func (m *IssueCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IssueCertificateRequest) XXX_Merge ¶
func (dst *IssueCertificateRequest) XXX_Merge(src proto.Message)
func (*IssueCertificateRequest) XXX_Size ¶
func (m *IssueCertificateRequest) XXX_Size() int
func (*IssueCertificateRequest) XXX_Unmarshal ¶
func (m *IssueCertificateRequest) XXX_Unmarshal(b []byte) error
type IssueCertificateResponse ¶
type IssueCertificateResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` Certificate *AgentCertificate `protobuf:"bytes,2,opt,name=certificate" json:"certificate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IssueCertificateResp is common message during handshake
func (*IssueCertificateResponse) Descriptor ¶
func (*IssueCertificateResponse) Descriptor() ([]byte, []int)
func (*IssueCertificateResponse) GetCertificate ¶
func (m *IssueCertificateResponse) GetCertificate() *AgentCertificate
func (*IssueCertificateResponse) GetStatus ¶
func (m *IssueCertificateResponse) GetStatus() ResultStatus
func (*IssueCertificateResponse) MarshalZerologObject ¶
func (m *IssueCertificateResponse) MarshalZerologObject(e *zerolog.Event)
func (*IssueCertificateResponse) ProtoMessage ¶
func (*IssueCertificateResponse) ProtoMessage()
func (*IssueCertificateResponse) Reset ¶
func (m *IssueCertificateResponse) Reset()
func (*IssueCertificateResponse) String ¶
func (m *IssueCertificateResponse) String() string
func (*IssueCertificateResponse) XXX_DiscardUnknown ¶
func (m *IssueCertificateResponse) XXX_DiscardUnknown()
func (*IssueCertificateResponse) XXX_Marshal ¶
func (m *IssueCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IssueCertificateResponse) XXX_Merge ¶
func (dst *IssueCertificateResponse) XXX_Merge(src proto.Message)
func (*IssueCertificateResponse) XXX_Size ¶
func (m *IssueCertificateResponse) XXX_Size() int
func (*IssueCertificateResponse) XXX_Unmarshal ¶
func (m *IssueCertificateResponse) XXX_Unmarshal(b []byte) error
type KeyParams ¶
type KeyParams struct { Key []string `protobuf:"bytes,1,rep,name=key" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyParams) Descriptor ¶
func (*KeyParams) ProtoMessage ¶
func (*KeyParams) ProtoMessage()
func (*KeyParams) XXX_DiscardUnknown ¶
func (m *KeyParams) XXX_DiscardUnknown()
func (*KeyParams) XXX_Marshal ¶
func (*KeyParams) XXX_Unmarshal ¶
type LastBlockStatus ¶
LastBlockStatus i
type ListParams ¶
type ListParams struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Height uint64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"` Size uint32 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` Offset uint32 `protobuf:"varint,4,opt,name=offset" json:"offset,omitempty"` Asc bool `protobuf:"varint,5,opt,name=asc" json:"asc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListParams) Descriptor ¶
func (*ListParams) Descriptor() ([]byte, []int)
func (*ListParams) GetAsc ¶
func (m *ListParams) GetAsc() bool
func (*ListParams) GetHash ¶
func (m *ListParams) GetHash() []byte
func (*ListParams) GetHeight ¶
func (m *ListParams) GetHeight() uint64
func (*ListParams) GetOffset ¶
func (m *ListParams) GetOffset() uint32
func (*ListParams) GetSize ¶
func (m *ListParams) GetSize() uint32
func (*ListParams) ProtoMessage ¶
func (*ListParams) ProtoMessage()
func (*ListParams) Reset ¶
func (m *ListParams) Reset()
func (*ListParams) String ¶
func (m *ListParams) String() string
func (*ListParams) XXX_DiscardUnknown ¶
func (m *ListParams) XXX_DiscardUnknown()
func (*ListParams) XXX_Marshal ¶
func (m *ListParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListParams) XXX_Merge ¶
func (dst *ListParams) XXX_Merge(src proto.Message)
func (*ListParams) XXX_Size ¶
func (m *ListParams) XXX_Size() int
func (*ListParams) XXX_Unmarshal ¶
func (m *ListParams) XXX_Unmarshal(b []byte) error
type LogB58EncMarshaller ¶
type LogB58EncMarshaller struct {
// contains filtered or unexported fields
}
LogB58EncMarshaller is zerolog array marshaller which print bytes array to base58 encoded string.
func NewLogB58EncMarshaller ¶
func NewLogB58EncMarshaller(arr [][]byte, limit int) *LogB58EncMarshaller
func (LogB58EncMarshaller) MarshalZerologArray ¶
func (m LogB58EncMarshaller) MarshalZerologArray(a *zerolog.Array)
type LogBlockHashMarshaller ¶
type LogBlockHashMarshaller struct {
// contains filtered or unexported fields
}
func (LogBlockHashMarshaller) MarshalZerologArray ¶
func (m LogBlockHashMarshaller) MarshalZerologArray(a *zerolog.Array)
type LogTrsactions ¶
type LogTrsactions struct { TXs []Transaction Limit int }
func (LogTrsactions) MarshalZerologArray ¶
func (l LogTrsactions) MarshalZerologArray(a *zerolog.Array)
type LogTxIDsMarshaller ¶
type LogTxIDsMarshaller struct {
// contains filtered or unexported fields
}
func NewLogTxIDsMarshaller ¶
func NewLogTxIDsMarshaller(arr []TxID, limit int) *LogTxIDsMarshaller
func (LogTxIDsMarshaller) MarshalZerologArray ¶
func (m LogTxIDsMarshaller) MarshalZerologArray(a *zerolog.Array)
type MapQuery ¶
type MapQuery struct { Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` AddMe bool `protobuf:"varint,2,opt,name=addMe" json:"addMe,omitempty"` Size int32 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` Excludes [][]byte `protobuf:"bytes,4,rep,name=excludes,proto3" json:"excludes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
query to wezen
func (*MapQuery) Descriptor ¶
func (*MapQuery) GetExcludes ¶
func (*MapQuery) ProtoMessage ¶
func (*MapQuery) ProtoMessage()
func (*MapQuery) XXX_DiscardUnknown ¶
func (m *MapQuery) XXX_DiscardUnknown()
func (*MapQuery) XXX_Marshal ¶
func (*MapQuery) XXX_Unmarshal ¶
type MapResponse ¶
type MapResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` Addresses []*PeerAddress `protobuf:"bytes,2,rep,name=addresses" json:"addresses,omitempty"` Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MapResponse) Descriptor ¶
func (*MapResponse) Descriptor() ([]byte, []int)
func (*MapResponse) GetAddresses ¶
func (m *MapResponse) GetAddresses() []*PeerAddress
func (*MapResponse) GetMessage ¶
func (m *MapResponse) GetMessage() string
func (*MapResponse) GetStatus ¶
func (m *MapResponse) GetStatus() ResultStatus
func (*MapResponse) ProtoMessage ¶
func (*MapResponse) ProtoMessage()
func (*MapResponse) Reset ¶
func (m *MapResponse) Reset()
func (*MapResponse) String ¶
func (m *MapResponse) String() string
func (*MapResponse) XXX_DiscardUnknown ¶
func (m *MapResponse) XXX_DiscardUnknown()
func (*MapResponse) XXX_Marshal ¶
func (m *MapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MapResponse) XXX_Merge ¶
func (dst *MapResponse) XXX_Merge(src proto.Message)
func (*MapResponse) XXX_Size ¶
func (m *MapResponse) XXX_Size() int
func (*MapResponse) XXX_Unmarshal ¶
func (m *MapResponse) XXX_Unmarshal(b []byte) error
type MemberAttr ¶
type MemberAttr struct { ID uint64 `protobuf:"varint,1,opt,name=ID" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Address string `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"` PeerID []byte `protobuf:"bytes,4,opt,name=peerID,proto3" json:"peerID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MemberAttr) Descriptor ¶
func (*MemberAttr) Descriptor() ([]byte, []int)
func (*MemberAttr) GetAddress ¶
func (m *MemberAttr) GetAddress() string
func (*MemberAttr) GetID ¶
func (m *MemberAttr) GetID() uint64
func (*MemberAttr) GetName ¶
func (m *MemberAttr) GetName() string
func (*MemberAttr) GetPeerID ¶
func (m *MemberAttr) GetPeerID() []byte
func (*MemberAttr) MarshalJSON ¶
func (mattr *MemberAttr) MarshalJSON() ([]byte, error)
func (*MemberAttr) ProtoMessage ¶
func (*MemberAttr) ProtoMessage()
func (*MemberAttr) Reset ¶
func (m *MemberAttr) Reset()
func (*MemberAttr) String ¶
func (m *MemberAttr) String() string
func (*MemberAttr) ToString ¶
func (mattr *MemberAttr) ToString() string
func (*MemberAttr) UnmarshalJSON ¶
func (mattr *MemberAttr) UnmarshalJSON(data []byte) error
func (*MemberAttr) XXX_DiscardUnknown ¶
func (m *MemberAttr) XXX_DiscardUnknown()
func (*MemberAttr) XXX_Marshal ¶
func (m *MemberAttr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MemberAttr) XXX_Merge ¶
func (dst *MemberAttr) XXX_Merge(src proto.Message)
func (*MemberAttr) XXX_Size ¶
func (m *MemberAttr) XXX_Size() int
func (*MemberAttr) XXX_Unmarshal ¶
func (m *MemberAttr) XXX_Unmarshal(b []byte) error
type MembershipChange ¶
type MembershipChange struct { Type MembershipChangeType `protobuf:"varint,1,opt,name=type,enum=types.MembershipChangeType" json:"type,omitempty"` RequestID uint64 `protobuf:"varint,2,opt,name=requestID" json:"requestID,omitempty"` Attr *MemberAttr `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MembershipChange) Descriptor ¶
func (*MembershipChange) Descriptor() ([]byte, []int)
func (*MembershipChange) GetAttr ¶
func (m *MembershipChange) GetAttr() *MemberAttr
func (*MembershipChange) GetRequestID ¶
func (m *MembershipChange) GetRequestID() uint64
func (*MembershipChange) GetType ¶
func (m *MembershipChange) GetType() MembershipChangeType
func (*MembershipChange) ProtoMessage ¶
func (*MembershipChange) ProtoMessage()
func (*MembershipChange) Reset ¶
func (m *MembershipChange) Reset()
func (*MembershipChange) String ¶
func (m *MembershipChange) String() string
func (*MembershipChange) ToString ¶
func (mc *MembershipChange) ToString() string
func (*MembershipChange) XXX_DiscardUnknown ¶
func (m *MembershipChange) XXX_DiscardUnknown()
func (*MembershipChange) XXX_Marshal ¶
func (m *MembershipChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MembershipChange) XXX_Merge ¶
func (dst *MembershipChange) XXX_Merge(src proto.Message)
func (*MembershipChange) XXX_Size ¶
func (m *MembershipChange) XXX_Size() int
func (*MembershipChange) XXX_Unmarshal ¶
func (m *MembershipChange) XXX_Unmarshal(b []byte) error
type MembershipChangeReply ¶
type MembershipChangeReply struct { Attr *MemberAttr `protobuf:"bytes,1,opt,name=attr" json:"attr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MembershipChangeReply) Descriptor ¶
func (*MembershipChangeReply) Descriptor() ([]byte, []int)
func (*MembershipChangeReply) GetAttr ¶
func (m *MembershipChangeReply) GetAttr() *MemberAttr
func (*MembershipChangeReply) ProtoMessage ¶
func (*MembershipChangeReply) ProtoMessage()
func (*MembershipChangeReply) Reset ¶
func (m *MembershipChangeReply) Reset()
func (*MembershipChangeReply) String ¶
func (m *MembershipChangeReply) String() string
func (*MembershipChangeReply) XXX_DiscardUnknown ¶
func (m *MembershipChangeReply) XXX_DiscardUnknown()
func (*MembershipChangeReply) XXX_Marshal ¶
func (m *MembershipChangeReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MembershipChangeReply) XXX_Merge ¶
func (dst *MembershipChangeReply) XXX_Merge(src proto.Message)
func (*MembershipChangeReply) XXX_Size ¶
func (m *MembershipChangeReply) XXX_Size() int
func (*MembershipChangeReply) XXX_Unmarshal ¶
func (m *MembershipChangeReply) XXX_Unmarshal(b []byte) error
type MembershipChangeType ¶
type MembershipChangeType int32
cluster member for raft consensus
const ( MembershipChangeType_ADD_MEMBER MembershipChangeType = 0 MembershipChangeType_REMOVE_MEMBER MembershipChangeType = 1 )
func (MembershipChangeType) EnumDescriptor ¶
func (MembershipChangeType) EnumDescriptor() ([]byte, []int)
func (MembershipChangeType) String ¶
func (x MembershipChangeType) String() string
type MetricType ¶
type MetricType int32
const ( // NOTHING should not be used. MetricType_NOTHING MetricType = 0 // Metric for p2p network transfer MetricType_P2P_NETWORK MetricType = 1 )
func (MetricType) EnumDescriptor ¶
func (MetricType) EnumDescriptor() ([]byte, []int)
func (MetricType) String ¶
func (x MetricType) String() string
type Metrics ¶
type Metrics struct { Peers []*PeerMetric `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Metrics) Descriptor ¶
func (*Metrics) GetPeers ¶
func (m *Metrics) GetPeers() []*PeerMetric
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
func (*Metrics) XXX_DiscardUnknown ¶
func (m *Metrics) XXX_DiscardUnknown()
func (*Metrics) XXX_Marshal ¶
func (*Metrics) XXX_Unmarshal ¶
type MetricsRequest ¶
type MetricsRequest struct { Types []MetricType `protobuf:"varint,1,rep,packed,name=types,enum=types.MetricType" json:"types,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MetricsRequest) Descriptor ¶
func (*MetricsRequest) Descriptor() ([]byte, []int)
func (*MetricsRequest) GetTypes ¶
func (m *MetricsRequest) GetTypes() []MetricType
func (*MetricsRequest) ProtoMessage ¶
func (*MetricsRequest) ProtoMessage()
func (*MetricsRequest) Reset ¶
func (m *MetricsRequest) Reset()
func (*MetricsRequest) String ¶
func (m *MetricsRequest) String() string
func (*MetricsRequest) XXX_DiscardUnknown ¶
func (m *MetricsRequest) XXX_DiscardUnknown()
func (*MetricsRequest) XXX_Marshal ¶
func (m *MetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MetricsRequest) XXX_Merge ¶
func (dst *MetricsRequest) XXX_Merge(src proto.Message)
func (*MetricsRequest) XXX_Size ¶
func (m *MetricsRequest) XXX_Size() int
func (*MetricsRequest) XXX_Unmarshal ¶
func (m *MetricsRequest) XXX_Unmarshal(b []byte) error
type MeyCoinRPCServiceClient ¶
type MeyCoinRPCServiceClient interface { // Returns the current state of this node NodeState(ctx context.Context, in *NodeReq, opts ...grpc.CallOption) (*SingleBytes, error) // Returns node metrics according to request Metric(ctx context.Context, in *MetricsRequest, opts ...grpc.CallOption) (*Metrics, error) // Returns current blockchain status (best block's height and hash) Blockchain(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BlockchainStatus, error) // Returns current blockchain's basic information GetChainInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ChainInfo, error) // Returns current chain statistics ChainStat(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ChainStats, error) // Returns list of Blocks without body according to request ListBlockHeaders(ctx context.Context, in *ListParams, opts ...grpc.CallOption) (*BlockHeaderList, error) // Returns list of block metadata (hash, header, and number of transactions) according to request ListBlockMetadata(ctx context.Context, in *ListParams, opts ...grpc.CallOption) (*BlockMetadataList, error) // Returns a stream of new blocks as they get added to the blockchain ListBlockStream(ctx context.Context, in *Empty, opts ...grpc.CallOption) (MeyCoinRPCService_ListBlockStreamClient, error) // Returns a stream of new block's metadata as they get added to the blockchain ListBlockMetadataStream(ctx context.Context, in *Empty, opts ...grpc.CallOption) (MeyCoinRPCService_ListBlockMetadataStreamClient, error) // Return a single block incl. header and body, queried by hash or number GetBlock(ctx context.Context, in *SingleBytes, opts ...grpc.CallOption) (*Block, error) // Return a single block's metdata (hash, header, and number of transactions), queried by hash or number GetBlockMetadata(ctx context.Context, in *SingleBytes, opts ...grpc.CallOption) (*BlockMetadata, error) // Return a single block's body, queried by hash or number and list parameters GetBlockBody(ctx context.Context, in *BlockBodyParams, opts ...grpc.CallOption) (*BlockBodyPaged, error) // Return a single transaction, queried by transaction hash GetTX(ctx context.Context, in *SingleBytes, opts ...grpc.CallOption) (*Tx, error) // Return information about transaction in block, queried by transaction hash GetBlockTX(ctx context.Context, in *SingleBytes, opts ...grpc.CallOption) (*TxInBlock, error) // Return transaction receipt, queried by transaction hash GetReceipt(ctx context.Context, in *SingleBytes, opts ...grpc.CallOption) (*Receipt, error) // Return ABI stored at contract address GetABI(ctx context.Context, in *SingleBytes, opts ...grpc.CallOption) (*ABI, error) // Sign and send a transaction from an unlocked account SendTX(ctx context.Context, in *Tx, opts ...grpc.CallOption) (*CommitResult, error) // Sign transaction with unlocked account SignTX(ctx context.Context, in *Tx, opts ...grpc.CallOption) (*Tx, error) // Verify validity of transaction VerifyTX(ctx context.Context, in *Tx, opts ...grpc.CallOption) (*VerifyResult, error) // Commit a signed transaction CommitTX(ctx context.Context, in *TxList, opts ...grpc.CallOption) (*CommitResultList, error) // Return state of account GetState(ctx context.Context, in *SingleBytes, opts ...grpc.CallOption) (*State, error) // Return state of account, including merkle proof GetStateAndProof(ctx context.Context, in *AccountAndRoot, opts ...grpc.CallOption) (*AccountProof, error) // Create a new account in this node CreateAccount(ctx context.Context, in *Personal, opts ...grpc.CallOption) (*Account, error) // Return list of accounts in this node GetAccounts(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*AccountList, error) // Lock account in this node LockAccount(ctx context.Context, in *Personal, opts ...grpc.CallOption) (*Account, error) // Unlock account in this node UnlockAccount(ctx context.Context, in *Personal, opts ...grpc.CallOption) (*Account, error) // Import account to this node ImportAccount(ctx context.Context, in *ImportFormat, opts ...grpc.CallOption) (*Account, error) // Export account stored in this node as wif format ExportAccount(ctx context.Context, in *Personal, opts ...grpc.CallOption) (*SingleBytes, error) // Export account stored in this node as keystore format ExportAccountKeystore(ctx context.Context, in *Personal, opts ...grpc.CallOption) (*SingleBytes, error) // Query a contract method QueryContract(ctx context.Context, in *Query, opts ...grpc.CallOption) (*SingleBytes, error) // Query contract state QueryContractState(ctx context.Context, in *StateQuery, opts ...grpc.CallOption) (*StateQueryProof, error) // Return list of peers of this node and their state GetPeers(ctx context.Context, in *PeersParams, opts ...grpc.CallOption) (*PeerList, error) // Return result of vote GetVotes(ctx context.Context, in *VoteParams, opts ...grpc.CallOption) (*VoteList, error) // Return staking, voting info for account GetAccountVotes(ctx context.Context, in *AccountAddress, opts ...grpc.CallOption) (*AccountVoteInfo, error) // Return staking information GetStaking(ctx context.Context, in *AccountAddress, opts ...grpc.CallOption) (*Staking, error) // Return name information GetNameInfo(ctx context.Context, in *Name, opts ...grpc.CallOption) (*NameInfo, error) // Returns a stream of event as they get added to the blockchain ListEventStream(ctx context.Context, in *FilterInfo, opts ...grpc.CallOption) (MeyCoinRPCService_ListEventStreamClient, error) // Returns list of event ListEvents(ctx context.Context, in *FilterInfo, opts ...grpc.CallOption) (*EventList, error) // Returns configs and statuses of server GetServerInfo(ctx context.Context, in *KeyParams, opts ...grpc.CallOption) (*ServerInfo, error) // Returns status of consensus and bps GetConsensusInfo(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ConsensusInfo, error) // Returns enterprise config GetEnterpriseConfig(ctx context.Context, in *EnterpriseConfigKey, opts ...grpc.CallOption) (*EnterpriseConfig, error) // Return a status of changeCluster enterprise tx, queried by requestID GetConfChangeProgress(ctx context.Context, in *SingleBytes, opts ...grpc.CallOption) (*ConfChangeProgress, error) }
func NewMeyCoinRPCServiceClient ¶
func NewMeyCoinRPCServiceClient(cc *grpc.ClientConn) MeyCoinRPCServiceClient
type MeyCoinRPCServiceServer ¶
type MeyCoinRPCServiceServer interface { // Returns the current state of this node NodeState(context.Context, *NodeReq) (*SingleBytes, error) // Returns node metrics according to request Metric(context.Context, *MetricsRequest) (*Metrics, error) // Returns current blockchain status (best block's height and hash) Blockchain(context.Context, *Empty) (*BlockchainStatus, error) // Returns current blockchain's basic information GetChainInfo(context.Context, *Empty) (*ChainInfo, error) // Returns current chain statistics ChainStat(context.Context, *Empty) (*ChainStats, error) // Returns list of Blocks without body according to request ListBlockHeaders(context.Context, *ListParams) (*BlockHeaderList, error) // Returns list of block metadata (hash, header, and number of transactions) according to request ListBlockMetadata(context.Context, *ListParams) (*BlockMetadataList, error) // Returns a stream of new blocks as they get added to the blockchain ListBlockStream(*Empty, MeyCoinRPCService_ListBlockStreamServer) error // Returns a stream of new block's metadata as they get added to the blockchain ListBlockMetadataStream(*Empty, MeyCoinRPCService_ListBlockMetadataStreamServer) error // Return a single block incl. header and body, queried by hash or number GetBlock(context.Context, *SingleBytes) (*Block, error) // Return a single block's metdata (hash, header, and number of transactions), queried by hash or number GetBlockMetadata(context.Context, *SingleBytes) (*BlockMetadata, error) // Return a single block's body, queried by hash or number and list parameters GetBlockBody(context.Context, *BlockBodyParams) (*BlockBodyPaged, error) // Return a single transaction, queried by transaction hash GetTX(context.Context, *SingleBytes) (*Tx, error) // Return information about transaction in block, queried by transaction hash GetBlockTX(context.Context, *SingleBytes) (*TxInBlock, error) // Return transaction receipt, queried by transaction hash GetReceipt(context.Context, *SingleBytes) (*Receipt, error) // Return ABI stored at contract address GetABI(context.Context, *SingleBytes) (*ABI, error) // Sign and send a transaction from an unlocked account SendTX(context.Context, *Tx) (*CommitResult, error) // Sign transaction with unlocked account SignTX(context.Context, *Tx) (*Tx, error) // Verify validity of transaction VerifyTX(context.Context, *Tx) (*VerifyResult, error) // Commit a signed transaction CommitTX(context.Context, *TxList) (*CommitResultList, error) // Return state of account GetState(context.Context, *SingleBytes) (*State, error) // Return state of account, including merkle proof GetStateAndProof(context.Context, *AccountAndRoot) (*AccountProof, error) // Create a new account in this node CreateAccount(context.Context, *Personal) (*Account, error) // Return list of accounts in this node GetAccounts(context.Context, *Empty) (*AccountList, error) // Lock account in this node LockAccount(context.Context, *Personal) (*Account, error) // Unlock account in this node UnlockAccount(context.Context, *Personal) (*Account, error) // Import account to this node ImportAccount(context.Context, *ImportFormat) (*Account, error) // Export account stored in this node as wif format ExportAccount(context.Context, *Personal) (*SingleBytes, error) // Export account stored in this node as keystore format ExportAccountKeystore(context.Context, *Personal) (*SingleBytes, error) // Query a contract method QueryContract(context.Context, *Query) (*SingleBytes, error) // Query contract state QueryContractState(context.Context, *StateQuery) (*StateQueryProof, error) // Return list of peers of this node and their state GetPeers(context.Context, *PeersParams) (*PeerList, error) // Return result of vote GetVotes(context.Context, *VoteParams) (*VoteList, error) // Return staking, voting info for account GetAccountVotes(context.Context, *AccountAddress) (*AccountVoteInfo, error) // Return staking information GetStaking(context.Context, *AccountAddress) (*Staking, error) // Return name information GetNameInfo(context.Context, *Name) (*NameInfo, error) // Returns a stream of event as they get added to the blockchain ListEventStream(*FilterInfo, MeyCoinRPCService_ListEventStreamServer) error // Returns list of event ListEvents(context.Context, *FilterInfo) (*EventList, error) // Returns configs and statuses of server GetServerInfo(context.Context, *KeyParams) (*ServerInfo, error) // Returns status of consensus and bps GetConsensusInfo(context.Context, *Empty) (*ConsensusInfo, error) // Returns enterprise config GetEnterpriseConfig(context.Context, *EnterpriseConfigKey) (*EnterpriseConfig, error) // Return a status of changeCluster enterprise tx, queried by requestID GetConfChangeProgress(context.Context, *SingleBytes) (*ConfChangeProgress, error) }
type MeyCoinRPCService_ListBlockMetadataStreamClient ¶
type MeyCoinRPCService_ListBlockMetadataStreamClient interface { Recv() (*BlockMetadata, error) grpc.ClientStream }
type MeyCoinRPCService_ListBlockMetadataStreamServer ¶
type MeyCoinRPCService_ListBlockMetadataStreamServer interface { Send(*BlockMetadata) error grpc.ServerStream }
type MeyCoinRPCService_ListBlockStreamClient ¶
type MeyCoinRPCService_ListBlockStreamClient interface { Recv() (*Block, error) grpc.ClientStream }
type MeyCoinRPCService_ListBlockStreamServer ¶
type MeyCoinRPCService_ListBlockStreamServer interface { Send(*Block) error grpc.ServerStream }
type MeyCoinRPCService_ListEventStreamClient ¶
type MeyCoinRPCService_ListEventStreamClient interface { Recv() (*Event, error) grpc.ClientStream }
type MeyCoinRPCService_ListEventStreamServer ¶
type MeyCoinRPCService_ListEventStreamServer interface { Send(*Event) error grpc.ServerStream }
type MovingAverage ¶
type MovingAverage struct {
// contains filtered or unexported fields
}
func NewMovingAverage ¶
func NewMovingAverage(size int) *MovingAverage
func (*MovingAverage) Add ¶
func (ma *MovingAverage) Add(val int64) int64
type MsgHeader ¶
type MsgHeader struct { // Deprecated client version. ClientVersion string `protobuf:"bytes,1,opt,name=clientVersion" json:"clientVersion,omitempty"` // unix time Timestamp int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` // allows requesters to use request data when processing a response Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` // Gossip is flag to have receiver peer gossip the message to neighbors // Deprecated whether to gossip other peers is determined by subprotocol since version 0.3.0 . Gossip bool `protobuf:"varint,4,opt,name=gossip" json:"gossip,omitempty"` // PeerID is id of node that created the message (not the peer that may have sent it). =base58(mh(sha256(nodePubKey))) PeerID []byte `protobuf:"bytes,5,opt,name=peerID,proto3" json:"peerID,omitempty"` // nodePubKey Authoring node Secp256k1 public key (32bytes) - protobufs serielized NodePubKey []byte `protobuf:"bytes,6,opt,name=nodePubKey,proto3" json:"nodePubKey,omitempty"` // signature of message data + method specific data by message authoring node. format: string([]bytes) Sign []byte `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"` // sub category of message. the receiving peer determines how to deserialize payload data and whether to spread messages to other peers Subprotocol uint32 `protobuf:"varint,8,opt,name=subprotocol" json:"subprotocol,omitempty"` // size of bytes of the payload Length uint32 `protobuf:"varint,9,opt,name=length" json:"length,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MsgHeader contains common properties of all p2p messages
func (*MsgHeader) Descriptor ¶
func (*MsgHeader) GetClientVersion ¶
func (*MsgHeader) GetNodePubKey ¶
func (*MsgHeader) GetSubprotocol ¶
func (*MsgHeader) GetTimestamp ¶
func (*MsgHeader) ProtoMessage ¶
func (*MsgHeader) ProtoMessage()
func (*MsgHeader) XXX_DiscardUnknown ¶
func (m *MsgHeader) XXX_DiscardUnknown()
func (*MsgHeader) XXX_Marshal ¶
func (*MsgHeader) XXX_Unmarshal ¶
type Multiaddr ¶
type Multiaddr = multiaddr.Multiaddr
Multiaddr is alias of
func ParseMultiaddr ¶
ParseMultiaddr parse multiaddr formatted string to Multiaddr with slightly different manner; it automatically auusme that /dns is /dns4
func PeerToMultiAddr ¶
type Name ¶
type Name struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` BlockNo uint64 `protobuf:"varint,2,opt,name=blockNo" json:"blockNo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Name) Descriptor ¶
func (*Name) GetBlockNo ¶
func (*Name) ProtoMessage ¶
func (*Name) ProtoMessage()
func (*Name) XXX_DiscardUnknown ¶
func (m *Name) XXX_DiscardUnknown()
func (*Name) XXX_Unmarshal ¶
type NameInfo ¶
type NameInfo struct { Name *Name `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Owner []byte `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Destination []byte `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NameInfo) Descriptor ¶
func (*NameInfo) GetDestination ¶
func (*NameInfo) ProtoMessage ¶
func (*NameInfo) ProtoMessage()
func (*NameInfo) XXX_DiscardUnknown ¶
func (m *NameInfo) XXX_DiscardUnknown()
func (*NameInfo) XXX_Marshal ¶
func (*NameInfo) XXX_Unmarshal ¶
type NetAddress ¶
type NewBlockNotice ¶
type NewBlockNotice struct { BlockHash []byte `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"` BlockNo uint64 `protobuf:"varint,2,opt,name=blockNo" json:"blockNo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
NewBlockNotice is sent to other peers when host node add a block, which is not produced by this host peer (i.e. added block that other bp node produced.) It contains just hash and blockNo. The host node will not send notice if target receiving peer knows that block already at best effort.
func (*NewBlockNotice) Descriptor ¶
func (*NewBlockNotice) Descriptor() ([]byte, []int)
func (*NewBlockNotice) GetBlockHash ¶
func (m *NewBlockNotice) GetBlockHash() []byte
func (*NewBlockNotice) GetBlockNo ¶
func (m *NewBlockNotice) GetBlockNo() uint64
func (*NewBlockNotice) ProtoMessage ¶
func (*NewBlockNotice) ProtoMessage()
func (*NewBlockNotice) Reset ¶
func (m *NewBlockNotice) Reset()
func (*NewBlockNotice) String ¶
func (m *NewBlockNotice) String() string
func (*NewBlockNotice) XXX_DiscardUnknown ¶
func (m *NewBlockNotice) XXX_DiscardUnknown()
func (*NewBlockNotice) XXX_Marshal ¶
func (m *NewBlockNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NewBlockNotice) XXX_Merge ¶
func (dst *NewBlockNotice) XXX_Merge(src proto.Message)
func (*NewBlockNotice) XXX_Size ¶
func (m *NewBlockNotice) XXX_Size() int
func (*NewBlockNotice) XXX_Unmarshal ¶
func (m *NewBlockNotice) XXX_Unmarshal(b []byte) error
type NewTransactionsNotice ¶
type NewTransactionsNotice struct { TxHashes [][]byte `protobuf:"bytes,1,rep,name=txHashes,proto3" json:"txHashes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NewTransactionsNotice) Descriptor ¶
func (*NewTransactionsNotice) Descriptor() ([]byte, []int)
func (*NewTransactionsNotice) GetTxHashes ¶
func (m *NewTransactionsNotice) GetTxHashes() [][]byte
func (*NewTransactionsNotice) MarshalZerologObject ¶
func (m *NewTransactionsNotice) MarshalZerologObject(e *zerolog.Event)
func (*NewTransactionsNotice) ProtoMessage ¶
func (*NewTransactionsNotice) ProtoMessage()
func (*NewTransactionsNotice) Reset ¶
func (m *NewTransactionsNotice) Reset()
func (*NewTransactionsNotice) String ¶
func (m *NewTransactionsNotice) String() string
func (*NewTransactionsNotice) XXX_DiscardUnknown ¶
func (m *NewTransactionsNotice) XXX_DiscardUnknown()
func (*NewTransactionsNotice) XXX_Marshal ¶
func (m *NewTransactionsNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NewTransactionsNotice) XXX_Merge ¶
func (dst *NewTransactionsNotice) XXX_Merge(src proto.Message)
func (*NewTransactionsNotice) XXX_Size ¶
func (m *NewTransactionsNotice) XXX_Size() int
func (*NewTransactionsNotice) XXX_Unmarshal ¶
func (m *NewTransactionsNotice) XXX_Unmarshal(b []byte) error
type NodeReq ¶
type NodeReq struct { Timeout []byte `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` Component []byte `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NodeReq) Descriptor ¶
func (*NodeReq) GetComponent ¶
func (*NodeReq) GetTimeout ¶
func (*NodeReq) ProtoMessage ¶
func (*NodeReq) ProtoMessage()
func (*NodeReq) XXX_DiscardUnknown ¶
func (m *NodeReq) XXX_DiscardUnknown()
func (*NodeReq) XXX_Marshal ¶
func (*NodeReq) XXX_Unmarshal ¶
type OpSysTx ¶
type OpSysTx int
OpSysTx represents a kind of a system transaction.
const ( // OpvoteBP corresponds to a voting transaction for a BP election. OpvoteBP OpSysTx = iota // OpvoteDAO corresponds to a proposal transaction for a system parameter change. OpvoteDAO // Opstake represents a staking tranaction. Opstake // Opunstake represents a unstaking tranaction. Opunstake // OpSysTxMax is the maximum of system tx OP numbers. OpSysTxMax )
func GetOpSysTx ¶
GetOpSysTx returns a OpSysTx value corresponding to vName.
type Output ¶
type Output struct { Index uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Script []byte `protobuf:"bytes,4,opt,name=script,proto3" json:"script,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Output) Descriptor ¶
func (*Output) GetAddress ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) XXX_DiscardUnknown ¶
func (m *Output) XXX_DiscardUnknown()
func (*Output) XXX_Marshal ¶
func (*Output) XXX_Unmarshal ¶
type P2PMessage ¶
type P2PMessage struct { Header *MsgHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Deprecated P2PMessage is data structure for meycoin v0.2 or earlier. This structure is not used anymore since v0.3.0.
func (*P2PMessage) Descriptor ¶
func (*P2PMessage) Descriptor() ([]byte, []int)
func (*P2PMessage) GetData ¶
func (m *P2PMessage) GetData() []byte
func (*P2PMessage) GetHeader ¶
func (m *P2PMessage) GetHeader() *MsgHeader
func (*P2PMessage) ProtoMessage ¶
func (*P2PMessage) ProtoMessage()
func (*P2PMessage) Reset ¶
func (m *P2PMessage) Reset()
func (*P2PMessage) String ¶
func (m *P2PMessage) String() string
func (*P2PMessage) XXX_DiscardUnknown ¶
func (m *P2PMessage) XXX_DiscardUnknown()
func (*P2PMessage) XXX_Marshal ¶
func (m *P2PMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*P2PMessage) XXX_Merge ¶
func (dst *P2PMessage) XXX_Merge(src proto.Message)
func (*P2PMessage) XXX_Size ¶
func (m *P2PMessage) XXX_Size() int
func (*P2PMessage) XXX_Unmarshal ¶
func (m *P2PMessage) XXX_Unmarshal(b []byte) error
type PageParams ¶
type PageParams struct { Offset uint32 `protobuf:"varint,1,opt,name=offset" json:"offset,omitempty"` Size uint32 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PageParams) Descriptor ¶
func (*PageParams) Descriptor() ([]byte, []int)
func (*PageParams) GetOffset ¶
func (m *PageParams) GetOffset() uint32
func (*PageParams) GetSize ¶
func (m *PageParams) GetSize() uint32
func (*PageParams) ProtoMessage ¶
func (*PageParams) ProtoMessage()
func (*PageParams) Reset ¶
func (m *PageParams) Reset()
func (*PageParams) String ¶
func (m *PageParams) String() string
func (*PageParams) XXX_DiscardUnknown ¶
func (m *PageParams) XXX_DiscardUnknown()
func (*PageParams) XXX_Marshal ¶
func (m *PageParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PageParams) XXX_Merge ¶
func (dst *PageParams) XXX_Merge(src proto.Message)
func (*PageParams) XXX_Size ¶
func (m *PageParams) XXX_Size() int
func (*PageParams) XXX_Unmarshal ¶
func (m *PageParams) XXX_Unmarshal(b []byte) error
type Paginations ¶
type Paginations struct { Ref []byte `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"` Size uint32 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Paginations) Descriptor ¶
func (*Paginations) Descriptor() ([]byte, []int)
func (*Paginations) GetRef ¶
func (m *Paginations) GetRef() []byte
func (*Paginations) GetSize ¶
func (m *Paginations) GetSize() uint32
func (*Paginations) ProtoMessage ¶
func (*Paginations) ProtoMessage()
func (*Paginations) Reset ¶
func (m *Paginations) Reset()
func (*Paginations) String ¶
func (m *Paginations) String() string
func (*Paginations) XXX_DiscardUnknown ¶
func (m *Paginations) XXX_DiscardUnknown()
func (*Paginations) XXX_Marshal ¶
func (m *Paginations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Paginations) XXX_Merge ¶
func (dst *Paginations) XXX_Merge(src proto.Message)
func (*Paginations) XXX_Size ¶
func (m *Paginations) XXX_Size() int
func (*Paginations) XXX_Unmarshal ¶
func (m *Paginations) XXX_Unmarshal(b []byte) error
type Peer ¶
type Peer struct { Address *PeerAddress `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` Bestblock *NewBlockNotice `protobuf:"bytes,2,opt,name=bestblock" json:"bestblock,omitempty"` State int32 `protobuf:"varint,3,opt,name=state" json:"state,omitempty"` Hidden bool `protobuf:"varint,4,opt,name=hidden" json:"hidden,omitempty"` LashCheck int64 `protobuf:"varint,5,opt,name=lashCheck" json:"lashCheck,omitempty"` Selfpeer bool `protobuf:"varint,6,opt,name=selfpeer" json:"selfpeer,omitempty"` Version string `protobuf:"bytes,7,opt,name=version" json:"version,omitempty"` Certificates []*AgentCertificate `protobuf:"bytes,8,rep,name=certificates" json:"certificates,omitempty"` AcceptedRole PeerRole `protobuf:"varint,9,opt,name=acceptedRole,enum=types.PeerRole" json:"acceptedRole,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Peer) Descriptor ¶
func (*Peer) GetAcceptedRole ¶
func (*Peer) GetAddress ¶
func (m *Peer) GetAddress() *PeerAddress
func (*Peer) GetBestblock ¶
func (m *Peer) GetBestblock() *NewBlockNotice
func (*Peer) GetCertificates ¶
func (m *Peer) GetCertificates() []*AgentCertificate
func (*Peer) GetLashCheck ¶
func (*Peer) GetSelfpeer ¶
func (*Peer) GetVersion ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type PeerAddress ¶
type PeerAddress struct { // @Deprecated advertised address and port will be in addresses field in meycoin v2. // address is string representation of ip address or domain name. Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` // @Deprecated Port uint32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"` PeerID []byte `protobuf:"bytes,3,opt,name=peerID,proto3" json:"peerID,omitempty"` Role PeerRole `protobuf:"varint,4,opt,name=role,enum=types.PeerRole" json:"role,omitempty"` Version string `protobuf:"bytes,5,opt,name=version" json:"version,omitempty"` Addresses []string `protobuf:"bytes,6,rep,name=addresses" json:"addresses,omitempty"` ProducerIDs [][]byte `protobuf:"bytes,7,rep,name=producerIDs,proto3" json:"producerIDs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PeerAddress contains static information of peer and addresses to connect peer
func (*PeerAddress) Descriptor ¶
func (*PeerAddress) Descriptor() ([]byte, []int)
func (*PeerAddress) GetAddress ¶
func (m *PeerAddress) GetAddress() string
func (*PeerAddress) GetAddresses ¶
func (m *PeerAddress) GetAddresses() []string
func (*PeerAddress) GetPeerID ¶
func (m *PeerAddress) GetPeerID() []byte
func (*PeerAddress) GetPort ¶
func (m *PeerAddress) GetPort() uint32
func (*PeerAddress) GetProducerIDs ¶
func (m *PeerAddress) GetProducerIDs() [][]byte
func (*PeerAddress) GetRole ¶
func (m *PeerAddress) GetRole() PeerRole
func (*PeerAddress) GetVersion ¶
func (m *PeerAddress) GetVersion() string
func (*PeerAddress) ProtoMessage ¶
func (*PeerAddress) ProtoMessage()
func (*PeerAddress) Reset ¶
func (m *PeerAddress) Reset()
func (*PeerAddress) String ¶
func (m *PeerAddress) String() string
func (*PeerAddress) XXX_DiscardUnknown ¶
func (m *PeerAddress) XXX_DiscardUnknown()
func (*PeerAddress) XXX_Marshal ¶
func (m *PeerAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerAddress) XXX_Merge ¶
func (dst *PeerAddress) XXX_Merge(src proto.Message)
func (*PeerAddress) XXX_Size ¶
func (m *PeerAddress) XXX_Size() int
func (*PeerAddress) XXX_Unmarshal ¶
func (m *PeerAddress) XXX_Unmarshal(b []byte) error
type PeerBlockInfo ¶
type PeerBlockInfo interface { ID() PeerID State() PeerState LastStatus() *LastBlockStatus }
type PeerID ¶
PeerID is identifier of peer. It is alias of libp2p.PeerID for now
func IDB58Decode ¶
func IDFromBytes ¶
type PeerList ¶
type PeerList struct { Peers []*Peer `protobuf:"bytes,1,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerList) Descriptor ¶
func (*PeerList) ProtoMessage ¶
func (*PeerList) ProtoMessage()
func (*PeerList) XXX_DiscardUnknown ¶
func (m *PeerList) XXX_DiscardUnknown()
func (*PeerList) XXX_Marshal ¶
func (*PeerList) XXX_Unmarshal ¶
type PeerMetric ¶
type PeerMetric struct { PeerID []byte `protobuf:"bytes,1,opt,name=peerID,proto3" json:"peerID,omitempty"` SumIn int64 `protobuf:"varint,2,opt,name=sumIn" json:"sumIn,omitempty"` AvrIn int64 `protobuf:"varint,3,opt,name=avrIn" json:"avrIn,omitempty"` SumOut int64 `protobuf:"varint,4,opt,name=sumOut" json:"sumOut,omitempty"` AvrOut int64 `protobuf:"varint,5,opt,name=avrOut" json:"avrOut,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerMetric) Descriptor ¶
func (*PeerMetric) Descriptor() ([]byte, []int)
func (*PeerMetric) GetAvrIn ¶
func (m *PeerMetric) GetAvrIn() int64
func (*PeerMetric) GetAvrOut ¶
func (m *PeerMetric) GetAvrOut() int64
func (*PeerMetric) GetPeerID ¶
func (m *PeerMetric) GetPeerID() []byte
func (*PeerMetric) GetSumIn ¶
func (m *PeerMetric) GetSumIn() int64
func (*PeerMetric) GetSumOut ¶
func (m *PeerMetric) GetSumOut() int64
func (*PeerMetric) ProtoMessage ¶
func (*PeerMetric) ProtoMessage()
func (*PeerMetric) Reset ¶
func (m *PeerMetric) Reset()
func (*PeerMetric) String ¶
func (m *PeerMetric) String() string
func (*PeerMetric) XXX_DiscardUnknown ¶
func (m *PeerMetric) XXX_DiscardUnknown()
func (*PeerMetric) XXX_Marshal ¶
func (m *PeerMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerMetric) XXX_Merge ¶
func (dst *PeerMetric) XXX_Merge(src proto.Message)
func (*PeerMetric) XXX_Size ¶
func (m *PeerMetric) XXX_Size() int
func (*PeerMetric) XXX_Unmarshal ¶
func (m *PeerMetric) XXX_Unmarshal(b []byte) error
type PeerState ¶
type PeerState int32
PeerState indicated current state of peer, but
const ( // STARTING means connection is just estabished. STARTING PeerState = iota // HANDSHAKING means that local host sent status message but not receive status message from remote HANDSHAKING // RUNNING means complete handshake (i.e. exchanged status message) and can communicate each other RUNNING // STOPPING means peer was received stop signal and working in termination process. No new message is sent and receiving message is ignored. STOPPING // STOPPED means peer was tatally finished. STOPPED // DOWN means server can't communicate to remote peer. peer will be delete after TTL or DOWN )
indicating status of remote peer
type PeersParams ¶
type PeersParams struct { NoHidden bool `protobuf:"varint,1,opt,name=noHidden" json:"noHidden,omitempty"` ShowSelf bool `protobuf:"varint,2,opt,name=showSelf" json:"showSelf,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeersParams) Descriptor ¶
func (*PeersParams) Descriptor() ([]byte, []int)
func (*PeersParams) GetNoHidden ¶
func (m *PeersParams) GetNoHidden() bool
func (*PeersParams) GetShowSelf ¶
func (m *PeersParams) GetShowSelf() bool
func (*PeersParams) ProtoMessage ¶
func (*PeersParams) ProtoMessage()
func (*PeersParams) Reset ¶
func (m *PeersParams) Reset()
func (*PeersParams) String ¶
func (m *PeersParams) String() string
func (*PeersParams) XXX_DiscardUnknown ¶
func (m *PeersParams) XXX_DiscardUnknown()
func (*PeersParams) XXX_Marshal ¶
func (m *PeersParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeersParams) XXX_Merge ¶
func (dst *PeersParams) XXX_Merge(src proto.Message)
func (*PeersParams) XXX_Size ¶
func (m *PeersParams) XXX_Size() int
func (*PeersParams) XXX_Unmarshal ¶
func (m *PeersParams) XXX_Unmarshal(b []byte) error
type Personal ¶
type Personal struct { Passphrase string `protobuf:"bytes,1,opt,name=passphrase" json:"passphrase,omitempty"` Account *Account `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Personal) Descriptor ¶
func (*Personal) GetAccount ¶
func (*Personal) GetPassphrase ¶
func (*Personal) ProtoMessage ¶
func (*Personal) ProtoMessage()
func (*Personal) XXX_DiscardUnknown ¶
func (m *Personal) XXX_DiscardUnknown()
func (*Personal) XXX_Marshal ¶
func (*Personal) XXX_Unmarshal ¶
type Ping ¶
type Ping struct { BestBlockHash []byte `protobuf:"bytes,1,opt,name=best_block_hash,json=bestBlockHash,proto3" json:"best_block_hash,omitempty"` BestHeight uint64 `protobuf:"varint,2,opt,name=best_height,json=bestHeight" json:"best_height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Ping request message
func (*Ping) Descriptor ¶
func (*Ping) GetBestBlockHash ¶
func (*Ping) GetBestHeight ¶
func (*Ping) MarshalZerologObject ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Unmarshal ¶
type Pong ¶
type Pong struct { BestBlockHash []byte `protobuf:"bytes,1,opt,name=bestBlockHash,proto3" json:"bestBlockHash,omitempty"` BestHeight uint64 `protobuf:"varint,2,opt,name=bestHeight" json:"bestHeight,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Ping response message
func (*Pong) Descriptor ¶
func (*Pong) GetBestBlockHash ¶
func (*Pong) GetBestHeight ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) XXX_DiscardUnknown ¶
func (m *Pong) XXX_DiscardUnknown()
func (*Pong) XXX_Unmarshal ¶
type ProducerID ¶
ProducerID is identifier of block producer. It is same format with the PeerID at version 1.x, but might be changed to other format later.
type Proposal ¶
type Proposal struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` MultipleChoice uint32 `protobuf:"varint,6,opt,name=multipleChoice" json:"multipleChoice,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Proposal) Descriptor ¶
func (*Proposal) GetDescription ¶
func (*Proposal) GetMultipleChoice ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) XXX_DiscardUnknown ¶
func (m *Proposal) XXX_DiscardUnknown()
func (*Proposal) XXX_Marshal ¶
func (*Proposal) XXX_Unmarshal ¶
type Query ¶
type Query struct { ContractAddress []byte `protobuf:"bytes,1,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"` Queryinfo []byte `protobuf:"bytes,2,opt,name=queryinfo,proto3" json:"queryinfo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Query) Descriptor ¶
func (*Query) GetContractAddress ¶
func (*Query) GetQueryinfo ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_Unmarshal ¶
type RaftMbrsMarshaller ¶
type RaftMbrsMarshaller struct {
// contains filtered or unexported fields
}
func (RaftMbrsMarshaller) MarshalZerologArray ¶
func (m RaftMbrsMarshaller) MarshalZerologArray(a *zerolog.Array)
type Receipt ¶
type Receipt struct { ContractAddress []byte `protobuf:"bytes,1,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"` Status string `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"` Ret string `protobuf:"bytes,3,opt,name=ret" json:"ret,omitempty"` TxHash []byte `protobuf:"bytes,4,opt,name=txHash,proto3" json:"txHash,omitempty"` FeeUsed []byte `protobuf:"bytes,5,opt,name=feeUsed,proto3" json:"feeUsed,omitempty"` CumulativeFeeUsed []byte `protobuf:"bytes,6,opt,name=cumulativeFeeUsed,proto3" json:"cumulativeFeeUsed,omitempty"` Bloom []byte `protobuf:"bytes,7,opt,name=bloom,proto3" json:"bloom,omitempty"` Events []*Event `protobuf:"bytes,8,rep,name=events" json:"events,omitempty"` BlockNo uint64 `protobuf:"varint,9,opt,name=blockNo" json:"blockNo,omitempty"` BlockHash []byte `protobuf:"bytes,10,opt,name=blockHash,proto3" json:"blockHash,omitempty"` TxIndex int32 `protobuf:"varint,11,opt,name=txIndex" json:"txIndex,omitempty"` From []byte `protobuf:"bytes,12,opt,name=from,proto3" json:"from,omitempty"` To []byte `protobuf:"bytes,13,opt,name=to,proto3" json:"to,omitempty"` FeeDelegation bool `protobuf:"varint,14,opt,name=feeDelegation" json:"feeDelegation,omitempty"` GasUsed uint64 `protobuf:"varint,15,opt,name=gasUsed" json:"gasUsed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Receipt) BloomFilter ¶
func (r *Receipt) BloomFilter(fi *FilterInfo) bool
func (*Receipt) Descriptor ¶
func (*Receipt) GetBlockHash ¶
func (*Receipt) GetBlockNo ¶
func (*Receipt) GetContractAddress ¶
func (*Receipt) GetCumulativeFeeUsed ¶
func (*Receipt) GetFeeDelegation ¶
func (*Receipt) GetFeeUsed ¶
func (*Receipt) GetGasUsed ¶
func (*Receipt) GetTxIndex ¶
func (*Receipt) MarshalBinaryTest ¶
func (*Receipt) MarshalJSON ¶
func (*Receipt) MarshalMerkleBinary ¶
func (*Receipt) MarshalMerkleBinaryV2 ¶
func (*Receipt) ProtoMessage ¶
func (*Receipt) ProtoMessage()
func (*Receipt) SetMemoryInfo ¶
func (*Receipt) UnmarshalBinaryTest ¶
func (*Receipt) XXX_DiscardUnknown ¶
func (m *Receipt) XXX_DiscardUnknown()
func (*Receipt) XXX_Marshal ¶
func (*Receipt) XXX_Unmarshal ¶
type ReceiptMerkle ¶
type ReceiptMerkle struct {
// contains filtered or unexported fields
}
func (*ReceiptMerkle) GetHash ¶
func (rm *ReceiptMerkle) GetHash() []byte
type Receipts ¶
type Receipts struct {
// contains filtered or unexported fields
}
func (*Receipts) BloomFilter ¶
func (rs *Receipts) BloomFilter(fi *FilterInfo) bool
func (*Receipts) MarshalBinary ¶
func (*Receipts) MergeBloom ¶
func (rs *Receipts) MergeBloom(bf *bloom.BloomFilter) error
func (*Receipts) MerkleRoot ¶
func (*Receipts) SetHardFork ¶
func (rs *Receipts) SetHardFork(hardForkConfig BlockVersionner, blockNo BlockNo)
func (*Receipts) UnmarshalBinary ¶
type ResponseMessage ¶
type ResponseMessage interface {
GetStatus() ResultStatus
}
ResponseMessage contains response status
type ResultStatus ¶
type ResultStatus int32
Not all response contains ResultStatus value. names from gRPC status
const ( // OK is returned on success. ResultStatus_OK ResultStatus = 0 // CANCELED when operation was canceled (typically by the caller). ResultStatus_CANCELED ResultStatus = 1 // UNKNOWN ResultStatus_UNKNOWN ResultStatus = 2 // INVALID_ARGUMENT is missing or wrong value of argument ResultStatus_INVALID_ARGUMENT ResultStatus = 3 // DEADLINE_EXCEEDED timeout ResultStatus_DEADLINE_EXCEEDED ResultStatus = 4 // NOT_FOUND ResultStatus_NOT_FOUND ResultStatus = 5 // ALREADY_EXISTS ResultStatus_ALREADY_EXISTS ResultStatus = 6 // PERMISSION_DENIED ResultStatus_PERMISSION_DENIED ResultStatus = 7 // ResultStatus_RESOURCE_EXHAUSTED ResultStatus = 8 // ResultStatus_FAILED_PRECONDITION ResultStatus = 9 // ABORTED ResultStatus_ABORTED ResultStatus = 10 // ResultStatus_OUT_OF_RANGE ResultStatus = 11 // UNIMPLEMENTED indicates operation is not implemented or not // supported/enabled in this service. ResultStatus_UNIMPLEMENTED ResultStatus = 12 // INTERNAL errors. Means some invariants expected by underlying // system has been broken. If you see one of these errors, // something is very broken. ResultStatus_INTERNAL ResultStatus = 13 // Unavailable indicates the service is currently unavailable. // This is a most likely a transient condition and may be corrected // by retrying with a backoff. // // See litmus test above for deciding between FailedPrecondition, // Aborted, and Unavailable. ResultStatus_UNAVAILABLE ResultStatus = 14 ResultStatus_DATA_LOSS ResultStatus = 15 // UNAUTHENTICATED indicates the request does not have valid // authentication credentials for the operation. ResultStatus_UNAUTHENTICATED ResultStatus = 16 )
func (ResultStatus) EnumDescriptor ¶
func (ResultStatus) EnumDescriptor() ([]byte, []int)
func (ResultStatus) String ¶
func (x ResultStatus) String() string
type RmEntryParams ¶
type RmEntryParams struct { Index uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RmEntryParams) Descriptor ¶
func (*RmEntryParams) Descriptor() ([]byte, []int)
func (*RmEntryParams) GetIndex ¶
func (m *RmEntryParams) GetIndex() uint32
func (*RmEntryParams) ProtoMessage ¶
func (*RmEntryParams) ProtoMessage()
func (*RmEntryParams) Reset ¶
func (m *RmEntryParams) Reset()
func (*RmEntryParams) String ¶
func (m *RmEntryParams) String() string
func (*RmEntryParams) XXX_DiscardUnknown ¶
func (m *RmEntryParams) XXX_DiscardUnknown()
func (*RmEntryParams) XXX_Marshal ¶
func (m *RmEntryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RmEntryParams) XXX_Merge ¶
func (dst *RmEntryParams) XXX_Merge(src proto.Message)
func (*RmEntryParams) XXX_Size ¶
func (m *RmEntryParams) XXX_Size() int
func (*RmEntryParams) XXX_Unmarshal ¶
func (m *RmEntryParams) XXX_Unmarshal(b []byte) error
type ServerInfo ¶
type ServerInfo struct { Status map[string]string `` /* 132-byte string literal not displayed */ Config map[string]*ConfigItem `` /* 132-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ServerInfo) Descriptor ¶
func (*ServerInfo) Descriptor() ([]byte, []int)
func (*ServerInfo) GetConfig ¶
func (m *ServerInfo) GetConfig() map[string]*ConfigItem
func (*ServerInfo) GetStatus ¶
func (m *ServerInfo) GetStatus() map[string]string
func (*ServerInfo) ProtoMessage ¶
func (*ServerInfo) ProtoMessage()
func (*ServerInfo) Reset ¶
func (m *ServerInfo) Reset()
func (*ServerInfo) String ¶
func (m *ServerInfo) String() string
func (*ServerInfo) XXX_DiscardUnknown ¶
func (m *ServerInfo) XXX_DiscardUnknown()
func (*ServerInfo) XXX_Marshal ¶
func (m *ServerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ServerInfo) XXX_Merge ¶
func (dst *ServerInfo) XXX_Merge(src proto.Message)
func (*ServerInfo) XXX_Size ¶
func (m *ServerInfo) XXX_Size() int
func (*ServerInfo) XXX_Unmarshal ¶
func (m *ServerInfo) XXX_Unmarshal(b []byte) error
type SingleBytes ¶
type SingleBytes struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SingleBytes) Descriptor ¶
func (*SingleBytes) Descriptor() ([]byte, []int)
func (*SingleBytes) GetValue ¶
func (m *SingleBytes) GetValue() []byte
func (*SingleBytes) ProtoMessage ¶
func (*SingleBytes) ProtoMessage()
func (*SingleBytes) Reset ¶
func (m *SingleBytes) Reset()
func (*SingleBytes) String ¶
func (m *SingleBytes) String() string
func (*SingleBytes) XXX_DiscardUnknown ¶
func (m *SingleBytes) XXX_DiscardUnknown()
func (*SingleBytes) XXX_Marshal ¶
func (m *SingleBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SingleBytes) XXX_Merge ¶
func (dst *SingleBytes) XXX_Merge(src proto.Message)
func (*SingleBytes) XXX_Size ¶
func (m *SingleBytes) XXX_Size() int
func (*SingleBytes) XXX_Unmarshal ¶
func (m *SingleBytes) XXX_Unmarshal(b []byte) error
type SingleString ¶
type SingleString struct { Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SingleString) Descriptor ¶
func (*SingleString) Descriptor() ([]byte, []int)
func (*SingleString) GetValue ¶
func (m *SingleString) GetValue() string
func (*SingleString) ProtoMessage ¶
func (*SingleString) ProtoMessage()
func (*SingleString) Reset ¶
func (m *SingleString) Reset()
func (*SingleString) String ¶
func (m *SingleString) String() string
func (*SingleString) XXX_DiscardUnknown ¶
func (m *SingleString) XXX_DiscardUnknown()
func (*SingleString) XXX_Marshal ¶
func (m *SingleString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SingleString) XXX_Merge ¶
func (dst *SingleString) XXX_Merge(src proto.Message)
func (*SingleString) XXX_Size ¶
func (m *SingleString) XXX_Size() int
func (*SingleString) XXX_Unmarshal ¶
func (m *SingleString) XXX_Unmarshal(b []byte) error
type SnapshotResponse ¶
type SnapshotResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,enum=types.ResultStatus" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
SnapshotResponse is response message of receiving peer
func (*SnapshotResponse) Descriptor ¶
func (*SnapshotResponse) Descriptor() ([]byte, []int)
func (*SnapshotResponse) GetMessage ¶
func (m *SnapshotResponse) GetMessage() string
func (*SnapshotResponse) GetStatus ¶
func (m *SnapshotResponse) GetStatus() ResultStatus
func (*SnapshotResponse) ProtoMessage ¶
func (*SnapshotResponse) ProtoMessage()
func (*SnapshotResponse) Reset ¶
func (m *SnapshotResponse) Reset()
func (*SnapshotResponse) String ¶
func (m *SnapshotResponse) String() string
func (*SnapshotResponse) XXX_DiscardUnknown ¶
func (m *SnapshotResponse) XXX_DiscardUnknown()
func (*SnapshotResponse) XXX_Marshal ¶
func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SnapshotResponse) XXX_Merge ¶
func (dst *SnapshotResponse) XXX_Merge(src proto.Message)
func (*SnapshotResponse) XXX_Size ¶
func (m *SnapshotResponse) XXX_Size() int
func (*SnapshotResponse) XXX_Unmarshal ¶
func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error
type Staking ¶
type Staking struct { Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` When uint64 `protobuf:"varint,2,opt,name=when" json:"when,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Staking) Descriptor ¶
func (*Staking) GetAmountBigInt ¶
func (*Staking) ProtoMessage ¶
func (*Staking) ProtoMessage()
func (*Staking) XXX_DiscardUnknown ¶
func (m *Staking) XXX_DiscardUnknown()
func (*Staking) XXX_Marshal ¶
func (*Staking) XXX_Unmarshal ¶
type State ¶
type State struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"` Balance []byte `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` CodeHash []byte `protobuf:"bytes,3,opt,name=codeHash,proto3" json:"codeHash,omitempty"` StorageRoot []byte `protobuf:"bytes,4,opt,name=storageRoot,proto3" json:"storageRoot,omitempty"` SqlRecoveryPoint uint64 `protobuf:"varint,5,opt,name=sqlRecoveryPoint" json:"sqlRecoveryPoint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*State) Descriptor ¶
func (*State) GetBalance ¶
func (*State) GetBalanceBigInt ¶
func (*State) GetCodeHash ¶
func (*State) GetSqlRecoveryPoint ¶
func (*State) GetStorageRoot ¶
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
type StateQuery ¶
type StateQuery struct { ContractAddress []byte `protobuf:"bytes,1,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"` Root []byte `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"` Compressed bool `protobuf:"varint,4,opt,name=compressed" json:"compressed,omitempty"` StorageKeys [][]byte `protobuf:"bytes,5,rep,name=storageKeys,proto3" json:"storageKeys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StateQuery) Descriptor ¶
func (*StateQuery) Descriptor() ([]byte, []int)
func (*StateQuery) GetCompressed ¶
func (m *StateQuery) GetCompressed() bool
func (*StateQuery) GetContractAddress ¶
func (m *StateQuery) GetContractAddress() []byte
func (*StateQuery) GetRoot ¶
func (m *StateQuery) GetRoot() []byte
func (*StateQuery) GetStorageKeys ¶
func (m *StateQuery) GetStorageKeys() [][]byte
func (*StateQuery) ProtoMessage ¶
func (*StateQuery) ProtoMessage()
func (*StateQuery) Reset ¶
func (m *StateQuery) Reset()
func (*StateQuery) String ¶
func (m *StateQuery) String() string
func (*StateQuery) XXX_DiscardUnknown ¶
func (m *StateQuery) XXX_DiscardUnknown()
func (*StateQuery) XXX_Marshal ¶
func (m *StateQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StateQuery) XXX_Merge ¶
func (dst *StateQuery) XXX_Merge(src proto.Message)
func (*StateQuery) XXX_Size ¶
func (m *StateQuery) XXX_Size() int
func (*StateQuery) XXX_Unmarshal ¶
func (m *StateQuery) XXX_Unmarshal(b []byte) error
type StateQueryProof ¶
type StateQueryProof struct { ContractProof *AccountProof `protobuf:"bytes,1,opt,name=contractProof" json:"contractProof,omitempty"` VarProofs []*ContractVarProof `protobuf:"bytes,2,rep,name=varProofs" json:"varProofs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StateQueryProof) Descriptor ¶
func (*StateQueryProof) Descriptor() ([]byte, []int)
func (*StateQueryProof) GetContractProof ¶
func (m *StateQueryProof) GetContractProof() *AccountProof
func (*StateQueryProof) GetVarProofs ¶
func (m *StateQueryProof) GetVarProofs() []*ContractVarProof
func (*StateQueryProof) ProtoMessage ¶
func (*StateQueryProof) ProtoMessage()
func (*StateQueryProof) Reset ¶
func (m *StateQueryProof) Reset()
func (*StateQueryProof) String ¶
func (m *StateQueryProof) String() string
func (*StateQueryProof) XXX_DiscardUnknown ¶
func (m *StateQueryProof) XXX_DiscardUnknown()
func (*StateQueryProof) XXX_Marshal ¶
func (m *StateQueryProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StateQueryProof) XXX_Merge ¶
func (dst *StateQueryProof) XXX_Merge(src proto.Message)
func (*StateQueryProof) XXX_Size ¶
func (m *StateQueryProof) XXX_Size() int
func (*StateQueryProof) XXX_Unmarshal ¶
func (m *StateQueryProof) XXX_Unmarshal(b []byte) error
type StateVar ¶
type StateVar struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Len int32 `protobuf:"varint,3,opt,name=len" json:"len,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StateVar) Descriptor ¶
func (*StateVar) ProtoMessage ¶
func (*StateVar) ProtoMessage()
func (*StateVar) XXX_DiscardUnknown ¶
func (m *StateVar) XXX_DiscardUnknown()
func (*StateVar) XXX_Marshal ¶
func (*StateVar) XXX_Unmarshal ¶
type Status ¶
type Status struct { Sender *PeerAddress `protobuf:"bytes,1,opt,name=sender" json:"sender,omitempty"` BestBlockHash []byte `protobuf:"bytes,2,opt,name=bestBlockHash,proto3" json:"bestBlockHash,omitempty"` BestHeight uint64 `protobuf:"varint,3,opt,name=bestHeight" json:"bestHeight,omitempty"` ChainID []byte `protobuf:"bytes,4,opt,name=chainID,proto3" json:"chainID,omitempty"` // noExpose means that peer doesn't want to be known to other peers. NoExpose bool `protobuf:"varint,5,opt,name=noExpose" json:"noExpose,omitempty"` // @Deprecated version is used in PeerAddress since meycoin v2. // version of server binary. Version string `protobuf:"bytes,6,opt,name=version" json:"version,omitempty"` // hash of genesis block Genesis []byte `protobuf:"bytes,7,opt,name=genesis,proto3" json:"genesis,omitempty"` Certificates []*AgentCertificate `protobuf:"bytes,8,rep,name=certificates" json:"certificates,omitempty"` // request to issue agent certificates IssueCertificate bool `protobuf:"varint,9,opt,name=issueCertificate" json:"issueCertificate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Status is peer status exchanged during handshake.
func (*Status) Descriptor ¶
func (*Status) GetBestBlockHash ¶
func (*Status) GetBestHeight ¶
func (*Status) GetCertificates ¶
func (m *Status) GetCertificates() []*AgentCertificate
func (*Status) GetChainID ¶
func (*Status) GetGenesis ¶
func (*Status) GetIssueCertificate ¶
func (*Status) GetNoExpose ¶
func (*Status) GetSender ¶
func (m *Status) GetSender() *PeerAddress
func (*Status) GetVersion ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶
func (*Status) XXX_Unmarshal ¶
type SyncContext ¶
type SyncContext struct { Seq uint64 PeerID PeerID BestNo BlockNo TargetNo BlockNo //sync target blockno CommonAncestor *Block TotalCnt uint64 RemainCnt uint64 LastAnchor BlockNo NotifyC chan error }
func NewSyncCtx ¶
func (*SyncContext) SetAncestor ¶
func (ctx *SyncContext) SetAncestor(ancestor *Block)
type SystemValue ¶
type SystemValue int
const ( StakingTotal SystemValue = 0 + iota StakingMin GasPrice NamePrice TotalVotingPower VotingReward )
func (SystemValue) String ¶
func (i SystemValue) String() string
type Transaction ¶
type Transaction interface { GetTx() *Tx GetBody() *TxBody GetHash() []byte CalculateTxHash() []byte Validate([]byte, bool) error ValidateWithSenderState(senderState *State, gasPrice *big.Int, version int32) error HasVerifedAccount() bool GetVerifedAccount() Address SetVerifedAccount(account Address) bool RemoveVerifedAccount() bool GetMaxFee(balance, gasPrice *big.Int, version int32) (*big.Int, error) }
func NewTransaction ¶
func NewTransaction(tx *Tx) Transaction
type Tx ¶
type Tx struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Body *TxBody `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tx) CalculateTxHash ¶
func (*Tx) Descriptor ¶
func (*Tx) HasNameAccount ¶
func (*Tx) HasNameRecipient ¶
func (*Tx) NeedNameVerify ¶
func (*Tx) ProtoMessage ¶
func (*Tx) ProtoMessage()
func (*Tx) ValidateWithContractState ¶
TODO : refoctor after ContractState move to types
func (*Tx) XXX_DiscardUnknown ¶
func (m *Tx) XXX_DiscardUnknown()
func (*Tx) XXX_Unmarshal ¶
type TxBody ¶
type TxBody struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"` Account []byte `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Recipient []byte `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount []byte `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` GasLimit uint64 `protobuf:"varint,6,opt,name=gasLimit" json:"gasLimit,omitempty"` GasPrice []byte `protobuf:"bytes,7,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"` Type TxType `protobuf:"varint,8,opt,name=type,enum=types.TxType" json:"type,omitempty"` ChainIdHash []byte `protobuf:"bytes,9,opt,name=chainIdHash,proto3" json:"chainIdHash,omitempty"` Sign []byte `protobuf:"bytes,10,opt,name=sign,proto3" json:"sign,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxBody) Descriptor ¶
func (*TxBody) GetAccount ¶
func (*TxBody) GetAmountBigInt ¶
func (*TxBody) GetChainIdHash ¶
func (*TxBody) GetGasLimit ¶
func (*TxBody) GetGasPrice ¶
func (*TxBody) GetGasPriceBigInt ¶
func (*TxBody) GetPayload ¶
func (*TxBody) GetRecipient ¶
func (*TxBody) ProtoMessage ¶
func (*TxBody) ProtoMessage()
func (*TxBody) XXX_DiscardUnknown ¶
func (m *TxBody) XXX_DiscardUnknown()
func (*TxBody) XXX_Marshal ¶
func (*TxBody) XXX_Unmarshal ¶
type TxID ¶
type TxID HashID
TxID is a HashID to identify a transaction
func ParseToTxID ¶
ParseToTxID parse TxID from bytes. it return error if length of parameter is not fit.
type TxIdx ¶
type TxIdx struct { BlockHash []byte `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"` Idx int32 `protobuf:"varint,2,opt,name=idx" json:"idx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
TxIdx specifies a transaction's block hash and index within the block body
func (*TxIdx) Descriptor ¶
func (*TxIdx) GetBlockHash ¶
func (*TxIdx) ProtoMessage ¶
func (*TxIdx) ProtoMessage()
func (*TxIdx) XXX_DiscardUnknown ¶
func (m *TxIdx) XXX_DiscardUnknown()
func (*TxIdx) XXX_Marshal ¶
func (*TxIdx) XXX_Unmarshal ¶
type TxInBlock ¶
type TxInBlock struct { TxIdx *TxIdx `protobuf:"bytes,1,opt,name=txIdx" json:"txIdx,omitempty"` Tx *Tx `protobuf:"bytes,2,opt,name=tx" json:"tx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxInBlock) Descriptor ¶
func (*TxInBlock) ProtoMessage ¶
func (*TxInBlock) ProtoMessage()
func (*TxInBlock) XXX_DiscardUnknown ¶
func (m *TxInBlock) XXX_DiscardUnknown()
func (*TxInBlock) XXX_Marshal ¶
func (*TxInBlock) XXX_Unmarshal ¶
type TxList ¶
type TxList struct { Txs []*Tx `protobuf:"bytes,1,rep,name=txs" json:"txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TxList) Descriptor ¶
func (*TxList) ProtoMessage ¶
func (*TxList) ProtoMessage()
func (*TxList) XXX_DiscardUnknown ¶
func (m *TxList) XXX_DiscardUnknown()
func (*TxList) XXX_Marshal ¶
func (*TxList) XXX_Unmarshal ¶
type VerifyResult ¶
type VerifyResult struct { Tx *Tx `protobuf:"bytes,1,opt,name=tx" json:"tx,omitempty"` Error VerifyStatus `protobuf:"varint,2,opt,name=error,enum=types.VerifyStatus" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VerifyResult) Descriptor ¶
func (*VerifyResult) Descriptor() ([]byte, []int)
func (*VerifyResult) GetError ¶
func (m *VerifyResult) GetError() VerifyStatus
func (*VerifyResult) GetTx ¶
func (m *VerifyResult) GetTx() *Tx
func (*VerifyResult) ProtoMessage ¶
func (*VerifyResult) ProtoMessage()
func (*VerifyResult) Reset ¶
func (m *VerifyResult) Reset()
func (*VerifyResult) String ¶
func (m *VerifyResult) String() string
func (*VerifyResult) XXX_DiscardUnknown ¶
func (m *VerifyResult) XXX_DiscardUnknown()
func (*VerifyResult) XXX_Marshal ¶
func (m *VerifyResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerifyResult) XXX_Merge ¶
func (dst *VerifyResult) XXX_Merge(src proto.Message)
func (*VerifyResult) XXX_Size ¶
func (m *VerifyResult) XXX_Size() int
func (*VerifyResult) XXX_Unmarshal ¶
func (m *VerifyResult) XXX_Unmarshal(b []byte) error
type VerifyStatus ¶
type VerifyStatus int32
const ( VerifyStatus_VERIFY_STATUS_OK VerifyStatus = 0 VerifyStatus_VERIFY_STATUS_SIGN_NOT_MATCH VerifyStatus = 1 VerifyStatus_VERIFY_STATUS_INVALID_HASH VerifyStatus = 2 )
func (VerifyStatus) EnumDescriptor ¶
func (VerifyStatus) EnumDescriptor() ([]byte, []int)
func (VerifyStatus) String ¶
func (x VerifyStatus) String() string
type Vote ¶
type Vote struct { Candidate []byte `protobuf:"bytes,1,opt,name=candidate,proto3" json:"candidate,omitempty"` Amount []byte `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Vote) Descriptor ¶
func (*Vote) GetAmountBigInt ¶
func (*Vote) GetCandidate ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) XXX_DiscardUnknown ¶
func (m *Vote) XXX_DiscardUnknown()
func (*Vote) XXX_Unmarshal ¶
type VoteInfo ¶
type VoteInfo struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Candidates []string `protobuf:"bytes,2,rep,name=candidates" json:"candidates,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VoteInfo) Descriptor ¶
func (*VoteInfo) GetCandidates ¶
func (*VoteInfo) ProtoMessage ¶
func (*VoteInfo) ProtoMessage()
func (*VoteInfo) XXX_DiscardUnknown ¶
func (m *VoteInfo) XXX_DiscardUnknown()
func (*VoteInfo) XXX_Marshal ¶
func (*VoteInfo) XXX_Unmarshal ¶
type VoteList ¶
type VoteList struct { Votes []*Vote `protobuf:"bytes,1,rep,name=votes" json:"votes,omitempty"` Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VoteList) Descriptor ¶
func (*VoteList) ProtoMessage ¶
func (*VoteList) ProtoMessage()
func (*VoteList) XXX_DiscardUnknown ¶
func (m *VoteList) XXX_DiscardUnknown()
func (*VoteList) XXX_Marshal ¶
func (*VoteList) XXX_Unmarshal ¶
type VoteParams ¶
type VoteParams struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Count uint32 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VoteParams) Descriptor ¶
func (*VoteParams) Descriptor() ([]byte, []int)
func (*VoteParams) GetCount ¶
func (m *VoteParams) GetCount() uint32
func (*VoteParams) GetId ¶
func (m *VoteParams) GetId() string
func (*VoteParams) ProtoMessage ¶
func (*VoteParams) ProtoMessage()
func (*VoteParams) Reset ¶
func (m *VoteParams) Reset()
func (*VoteParams) String ¶
func (m *VoteParams) String() string
func (*VoteParams) XXX_DiscardUnknown ¶
func (m *VoteParams) XXX_DiscardUnknown()
func (*VoteParams) XXX_Marshal ¶
func (m *VoteParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VoteParams) XXX_Merge ¶
func (dst *VoteParams) XXX_Merge(src proto.Message)
func (*VoteParams) XXX_Size ¶
func (m *VoteParams) XXX_Size() int
func (*VoteParams) XXX_Unmarshal ¶
func (m *VoteParams) XXX_Unmarshal(b []byte) error
type VotingIssue ¶
func GetVotingIssues ¶
func GetVotingIssues() []VotingIssue
GetVotingIssues returns all the VotingIssues in this package.
type WezenPeer ¶
type WezenPeer struct { Address *PeerAddress `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"` Connected int64 `protobuf:"varint,2,opt,name=connected" json:"connected,omitempty"` // lastCheck contains unix timestamp with nanoseconds precision LastCheck int64 `protobuf:"varint,3,opt,name=lastCheck" json:"lastCheck,omitempty"` Verion string `protobuf:"bytes,4,opt,name=verion" json:"verion,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WezenPeer) Descriptor ¶
func (*WezenPeer) GetAddress ¶
func (m *WezenPeer) GetAddress() *PeerAddress
func (*WezenPeer) GetConnected ¶
func (*WezenPeer) GetLastCheck ¶
func (*WezenPeer) ProtoMessage ¶
func (*WezenPeer) ProtoMessage()
func (*WezenPeer) XXX_DiscardUnknown ¶
func (m *WezenPeer) XXX_DiscardUnknown()
func (*WezenPeer) XXX_Marshal ¶
func (*WezenPeer) XXX_Unmarshal ¶
type WezenPeerList ¶
type WezenPeerList struct { Total uint32 `protobuf:"varint,1,opt,name=total" json:"total,omitempty"` HasNext bool `protobuf:"varint,2,opt,name=hasNext" json:"hasNext,omitempty"` Peers []*WezenPeer `protobuf:"bytes,3,rep,name=peers" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*WezenPeerList) Descriptor ¶
func (*WezenPeerList) Descriptor() ([]byte, []int)
func (*WezenPeerList) GetHasNext ¶
func (m *WezenPeerList) GetHasNext() bool
func (*WezenPeerList) GetPeers ¶
func (m *WezenPeerList) GetPeers() []*WezenPeer
func (*WezenPeerList) GetTotal ¶
func (m *WezenPeerList) GetTotal() uint32
func (*WezenPeerList) ProtoMessage ¶
func (*WezenPeerList) ProtoMessage()
func (*WezenPeerList) Reset ¶
func (m *WezenPeerList) Reset()
func (*WezenPeerList) String ¶
func (m *WezenPeerList) String() string
func (*WezenPeerList) XXX_DiscardUnknown ¶
func (m *WezenPeerList) XXX_DiscardUnknown()
func (*WezenPeerList) XXX_Marshal ¶
func (m *WezenPeerList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WezenPeerList) XXX_Merge ¶
func (dst *WezenPeerList) XXX_Merge(src proto.Message)
func (*WezenPeerList) XXX_Size ¶
func (m *WezenPeerList) XXX_Size() int
func (*WezenPeerList) XXX_Unmarshal ¶
func (m *WezenPeerList) XXX_Unmarshal(b []byte) error
type WezenRPCServiceClient ¶
type WezenRPCServiceClient interface { // Returns the current state of this node NodeState(ctx context.Context, in *NodeReq, opts ...grpc.CallOption) (*SingleBytes, error) // Returns node metrics according to request Metric(ctx context.Context, in *MetricsRequest, opts ...grpc.CallOption) (*Metrics, error) CurrentList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*WezenPeerList, error) WhiteList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*WezenPeerList, error) BlackList(ctx context.Context, in *Paginations, opts ...grpc.CallOption) (*WezenPeerList, error) ListBLEntries(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BLConfEntries, error) AddBLEntry(ctx context.Context, in *AddEntryParams, opts ...grpc.CallOption) (*SingleString, error) RemoveBLEntry(ctx context.Context, in *RmEntryParams, opts ...grpc.CallOption) (*SingleString, error) }
func NewWezenRPCServiceClient ¶
func NewWezenRPCServiceClient(cc *grpc.ClientConn) WezenRPCServiceClient
type WezenRPCServiceServer ¶
type WezenRPCServiceServer interface { // Returns the current state of this node NodeState(context.Context, *NodeReq) (*SingleBytes, error) // Returns node metrics according to request Metric(context.Context, *MetricsRequest) (*Metrics, error) CurrentList(context.Context, *Paginations) (*WezenPeerList, error) WhiteList(context.Context, *Paginations) (*WezenPeerList, error) BlackList(context.Context, *Paginations) (*WezenPeerList, error) ListBLEntries(context.Context, *Empty) (*BLConfEntries, error) AddBLEntry(context.Context, *AddEntryParams) (*SingleString, error) RemoveBLEntry(context.Context, *RmEntryParams) (*SingleString, error) }
type WhiteListEntry ¶
type WhiteListEntry struct { IpNet *net.IPNet PeerID PeerID // contains filtered or unexported fields }
func NewListEntry ¶
func NewListEntry(raw RawEntry) (WhiteListEntry, error)
func ParseListEntry ¶
func ParseListEntry(str string) (WhiteListEntry, error)
func ReadEntries ¶
func ReadEntries(jsonBytes []byte) ([]WhiteListEntry, error)
func (WhiteListEntry) String ¶
func (e WhiteListEntry) String() string
Source Files ¶
- account.go
- account.pb.go
- admin.pb.go
- blockchain.go
- blockchain.pb.go
- callinfo.go
- common.go
- errors.go
- genesis.go
- genesis_preset.go
- host.go
- listentry.go
- logging.go
- metric.pb.go
- node.pb.go
- opsystx_string.go
- p2p.pb.go
- p2paddr.go
- p2plogging.go
- p2pmore.go
- p2ptypes.go
- peerstate.go
- peerstate_string.go
- pmap.pb.go
- polarrpc.pb.go
- quirk.go
- raft.go
- raft.pb.go
- receipt.go
- rpc.go
- rpc.pb.go
- staking.go
- state.go
- systemvalue_string.go
- transaction.go
- vote.go