protos

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PermissionRule_name = map[int32]string{
	0: "NULL",
	1: "SIGN_THRESHOLD",
	2: "SIGN_AKSET",
	3: "SIGN_RATE",
	4: "SIGN_SUM",
	5: "CA_SERVER",
	6: "COMMUNITY_VOTE",
}
View Source
var PermissionRule_value = map[string]int32{
	"NULL":           0,
	"SIGN_THRESHOLD": 1,
	"SIGN_AKSET":     2,
	"SIGN_RATE":      3,
	"SIGN_SUM":       4,
	"CA_SERVER":      5,
	"COMMUNITY_VOTE": 6,
}
View Source
var ProposalStatus_name = map[int32]string{
	0: "VOTING",
	1: "SUCCESS",
	2: "FAILURE",
	3: "CANCELED",
}
View Source
var ProposalStatus_value = map[string]int32{
	"VOTING":   0,
	"SUCCESS":  1,
	"FAILURE":  2,
	"CANCELED": 3,
}
View Source
var ResourceType_name = map[int32]string{
	0: "CPU",
	1: "MEMORY",
	2: "DISK",
	3: "XFEE",
}
View Source
var ResourceType_value = map[string]int32{
	"CPU":    0,
	"MEMORY": 1,
	"DISK":   2,
	"XFEE":   3,
}
View Source
var SubscribeType_name = map[int32]string{
	0: "BLOCK",
}
View Source
var SubscribeType_value = map[string]int32{
	"BLOCK": 0,
}
View Source
var XuperMessage_ErrorType_name = map[int32]string{
	0:  "SUCCESS",
	1:  "NONE",
	2:  "UNKNOW_ERROR",
	3:  "CHECK_SUM_ERROR",
	4:  "UNMARSHAL_MSG_BODY_ERROR",
	5:  "CONNECT_REFUSE",
	6:  "GET_BLOCKCHAIN_ERROR",
	7:  "BLOCKCHAIN_NOTEXIST",
	8:  "GET_BLOCK_ERROR",
	9:  "CONFIRM_BLOCKCHAINSTATUS_ERROR",
	10: "GET_AUTHENTICATION_ERROR",
	11: "GET_AUTHENTICATION_NOT_PASS",
}
View Source
var XuperMessage_ErrorType_value = map[string]int32{
	"SUCCESS":                        0,
	"NONE":                           1,
	"UNKNOW_ERROR":                   2,
	"CHECK_SUM_ERROR":                3,
	"UNMARSHAL_MSG_BODY_ERROR":       4,
	"CONNECT_REFUSE":                 5,
	"GET_BLOCKCHAIN_ERROR":           6,
	"BLOCKCHAIN_NOTEXIST":            7,
	"GET_BLOCK_ERROR":                8,
	"CONFIRM_BLOCKCHAINSTATUS_ERROR": 9,
	"GET_AUTHENTICATION_ERROR":       10,
	"GET_AUTHENTICATION_NOT_PASS":    11,
}
View Source
var XuperMessage_MessageType_name = map[int32]string{
	0:  "SENDBLOCK",
	1:  "POSTTX",
	2:  "BATCHPOSTTX",
	3:  "GET_BLOCK",
	4:  "PING",
	5:  "GET_BLOCKCHAINSTATUS",
	6:  "GET_BLOCK_RES",
	7:  "GET_BLOCKCHAINSTATUS_RES",
	8:  "CONFIRM_BLOCKCHAINSTATUS",
	9:  "CONFIRM_BLOCKCHAINSTATUS_RES",
	10: "MSG_TYPE_NONE",
	11: "GET_RPC_PORT",
	12: "GET_RPC_PORT_RES",
	13: "GET_AUTHENTICATION",
	14: "GET_AUTHENTICATION_RES",
	15: "CHAINED_BFT_NEW_VIEW_MSG",
	16: "CHAINED_BFT_NEW_PROPOSAL_MSG",
	17: "CHAINED_BFT_VOTE_MSG",
	18: "NEW_BLOCKID",
	19: "NEW_NODE",
	20: "GET_BLOCKIDS",
	21: "GET_BLOCKIDS_RES",
	22: "GET_BLOCKS",
	23: "GET_BLOCKS_RES",
	24: "GET_PEER_INFO",
	25: "GET_PEER_INFO_RES",
}
View Source
var XuperMessage_MessageType_value = map[string]int32{
	"SENDBLOCK":                    0,
	"POSTTX":                       1,
	"BATCHPOSTTX":                  2,
	"GET_BLOCK":                    3,
	"PING":                         4,
	"GET_BLOCKCHAINSTATUS":         5,
	"GET_BLOCK_RES":                6,
	"GET_BLOCKCHAINSTATUS_RES":     7,
	"CONFIRM_BLOCKCHAINSTATUS":     8,
	"CONFIRM_BLOCKCHAINSTATUS_RES": 9,
	"MSG_TYPE_NONE":                10,
	"GET_RPC_PORT":                 11,
	"GET_RPC_PORT_RES":             12,
	"GET_AUTHENTICATION":           13,
	"GET_AUTHENTICATION_RES":       14,
	"CHAINED_BFT_NEW_VIEW_MSG":     15,
	"CHAINED_BFT_NEW_PROPOSAL_MSG": 16,
	"CHAINED_BFT_VOTE_MSG":         17,
	"NEW_BLOCKID":                  18,
	"NEW_NODE":                     19,
	"GET_BLOCKIDS":                 20,
	"GET_BLOCKIDS_RES":             21,
	"GET_BLOCKS":                   22,
	"GET_BLOCKS_RES":               23,
	"GET_PEER_INFO":                24,
	"GET_PEER_INFO_RES":            25,
}

Functions

func RegisterEventServiceServer

func RegisterEventServiceServer(s *grpc.Server, srv EventServiceServer)

func RegisterP2PServiceServer

func RegisterP2PServiceServer(s *grpc.Server, srv P2PServiceServer)

Types

type AK2AccountRequest

type AK2AccountRequest struct {
	Bcname               string   `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AK2AccountRequest) Descriptor

func (*AK2AccountRequest) Descriptor() ([]byte, []int)

func (*AK2AccountRequest) GetAddress

func (m *AK2AccountRequest) GetAddress() string

func (*AK2AccountRequest) GetBcname

func (m *AK2AccountRequest) GetBcname() string

func (*AK2AccountRequest) ProtoMessage

func (*AK2AccountRequest) ProtoMessage()

func (*AK2AccountRequest) Reset

func (m *AK2AccountRequest) Reset()

func (*AK2AccountRequest) String

func (m *AK2AccountRequest) String() string

func (*AK2AccountRequest) XXX_DiscardUnknown

func (m *AK2AccountRequest) XXX_DiscardUnknown()

func (*AK2AccountRequest) XXX_Marshal

func (m *AK2AccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AK2AccountRequest) XXX_Merge

func (m *AK2AccountRequest) XXX_Merge(src proto.Message)

func (*AK2AccountRequest) XXX_Size

func (m *AK2AccountRequest) XXX_Size() int

func (*AK2AccountRequest) XXX_Unmarshal

func (m *AK2AccountRequest) XXX_Unmarshal(b []byte) error

type AK2AccountResponse

type AK2AccountResponse struct {
	Bcname               string   `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Account              []string `protobuf:"bytes,2,rep,name=account,proto3" json:"account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AK2AccountResponse) Descriptor

func (*AK2AccountResponse) Descriptor() ([]byte, []int)

func (*AK2AccountResponse) GetAccount

func (m *AK2AccountResponse) GetAccount() []string

func (*AK2AccountResponse) GetBcname

func (m *AK2AccountResponse) GetBcname() string

func (*AK2AccountResponse) ProtoMessage

func (*AK2AccountResponse) ProtoMessage()

func (*AK2AccountResponse) Reset

func (m *AK2AccountResponse) Reset()

func (*AK2AccountResponse) String

func (m *AK2AccountResponse) String() string

func (*AK2AccountResponse) XXX_DiscardUnknown

func (m *AK2AccountResponse) XXX_DiscardUnknown()

func (*AK2AccountResponse) XXX_Marshal

func (m *AK2AccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AK2AccountResponse) XXX_Merge

func (m *AK2AccountResponse) XXX_Merge(src proto.Message)

func (*AK2AccountResponse) XXX_Size

func (m *AK2AccountResponse) XXX_Size() int

func (*AK2AccountResponse) XXX_Unmarshal

func (m *AK2AccountResponse) XXX_Unmarshal(b []byte) error

type Acl

type Acl struct {
	Pm                   *PermissionModel   `protobuf:"bytes,1,opt,name=pm,proto3" json:"pm,omitempty"`
	AksWeight            map[string]float64 `` /* 161-byte string literal not displayed */
	AkSets               *AkSets            `protobuf:"bytes,3,opt,name=akSets,proto3" json:"akSets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Acl实际使用的结构

func (*Acl) Descriptor

func (*Acl) Descriptor() ([]byte, []int)

func (*Acl) GetAkSets

func (m *Acl) GetAkSets() *AkSets

func (*Acl) GetAksWeight

func (m *Acl) GetAksWeight() map[string]float64

func (*Acl) GetPm

func (m *Acl) GetPm() *PermissionModel

func (*Acl) ProtoMessage

func (*Acl) ProtoMessage()

func (*Acl) Reset

func (m *Acl) Reset()

func (*Acl) String

func (m *Acl) String() string

func (*Acl) XXX_DiscardUnknown

func (m *Acl) XXX_DiscardUnknown()

func (*Acl) XXX_Marshal

func (m *Acl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Acl) XXX_Merge

func (m *Acl) XXX_Merge(src proto.Message)

func (*Acl) XXX_Size

func (m *Acl) XXX_Size() int

func (*Acl) XXX_Unmarshal

func (m *Acl) XXX_Unmarshal(b []byte) error

type AclStatus

type AclStatus struct {
	Bcname               string   `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	AccountName          string   `protobuf:"bytes,2,opt,name=accountName,proto3" json:"accountName,omitempty"`
	ContractName         string   `protobuf:"bytes,3,opt,name=contractName,proto3" json:"contractName,omitempty"`
	MethodName           string   `protobuf:"bytes,4,opt,name=methodName,proto3" json:"methodName,omitempty"`
	Confirmed            bool     `protobuf:"varint,5,opt,name=confirmed,proto3" json:"confirmed,omitempty"`
	Acl                  *Acl     `protobuf:"bytes,6,opt,name=acl,proto3" json:"acl,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查询Acl

func (*AclStatus) Descriptor

func (*AclStatus) Descriptor() ([]byte, []int)

func (*AclStatus) GetAccountName

func (m *AclStatus) GetAccountName() string

func (*AclStatus) GetAcl

func (m *AclStatus) GetAcl() *Acl

func (*AclStatus) GetBcname

func (m *AclStatus) GetBcname() string

func (*AclStatus) GetConfirmed

func (m *AclStatus) GetConfirmed() bool

func (*AclStatus) GetContractName

func (m *AclStatus) GetContractName() string

func (*AclStatus) GetMethodName

func (m *AclStatus) GetMethodName() string

func (*AclStatus) ProtoMessage

func (*AclStatus) ProtoMessage()

func (*AclStatus) Reset

func (m *AclStatus) Reset()

func (*AclStatus) String

func (m *AclStatus) String() string

func (*AclStatus) XXX_DiscardUnknown

func (m *AclStatus) XXX_DiscardUnknown()

func (*AclStatus) XXX_Marshal

func (m *AclStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AclStatus) XXX_Merge

func (m *AclStatus) XXX_Merge(src proto.Message)

func (*AclStatus) XXX_Size

func (m *AclStatus) XXX_Size() int

func (*AclStatus) XXX_Unmarshal

func (m *AclStatus) XXX_Unmarshal(b []byte) error

type AkSet

type AkSet struct {
	Aks                  []string `protobuf:"bytes,1,rep,name=aks,proto3" json:"aks,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AK集的表示方法

func (*AkSet) Descriptor

func (*AkSet) Descriptor() ([]byte, []int)

func (*AkSet) GetAks

func (m *AkSet) GetAks() []string

func (*AkSet) ProtoMessage

func (*AkSet) ProtoMessage()

func (*AkSet) Reset

func (m *AkSet) Reset()

func (*AkSet) String

func (m *AkSet) String() string

func (*AkSet) XXX_DiscardUnknown

func (m *AkSet) XXX_DiscardUnknown()

func (*AkSet) XXX_Marshal

func (m *AkSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AkSet) XXX_Merge

func (m *AkSet) XXX_Merge(src proto.Message)

func (*AkSet) XXX_Size

func (m *AkSet) XXX_Size() int

func (*AkSet) XXX_Unmarshal

func (m *AkSet) XXX_Unmarshal(b []byte) error

type AkSets

type AkSets struct {
	Sets                 map[string]*AkSet `` /* 149-byte string literal not displayed */
	Expression           string            `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*AkSets) Descriptor

func (*AkSets) Descriptor() ([]byte, []int)

func (*AkSets) GetExpression

func (m *AkSets) GetExpression() string

func (*AkSets) GetSets

func (m *AkSets) GetSets() map[string]*AkSet

func (*AkSets) ProtoMessage

func (*AkSets) ProtoMessage()

func (*AkSets) Reset

func (m *AkSets) Reset()

func (*AkSets) String

func (m *AkSets) String() string

func (*AkSets) XXX_DiscardUnknown

func (m *AkSets) XXX_DiscardUnknown()

func (*AkSets) XXX_Marshal

func (m *AkSets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AkSets) XXX_Merge

func (m *AkSets) XXX_Merge(src proto.Message)

func (*AkSets) XXX_Size

func (m *AkSets) XXX_Size() int

func (*AkSets) XXX_Unmarshal

func (m *AkSets) XXX_Unmarshal(b []byte) error

type AllCandidate

type AllCandidate struct {
	Candidate map[string]string `` /* 159-byte string literal not displayed */
	//全网冻结资产
	Freemonry string `protobuf:"bytes,2,opt,name=freemonry,proto3" json:"freemonry,omitempty"`
	//冻结百分比
	Percentage           string   `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

纪录所有提名人,每轮开始的时候用于更新缓存表

func (*AllCandidate) Descriptor

func (*AllCandidate) Descriptor() ([]byte, []int)

func (*AllCandidate) GetCandidate

func (m *AllCandidate) GetCandidate() map[string]string

func (*AllCandidate) GetFreemonry

func (m *AllCandidate) GetFreemonry() string

func (*AllCandidate) GetPercentage

func (m *AllCandidate) GetPercentage() string

func (*AllCandidate) ProtoMessage

func (*AllCandidate) ProtoMessage()

func (*AllCandidate) Reset

func (m *AllCandidate) Reset()

func (*AllCandidate) String

func (m *AllCandidate) String() string

func (*AllCandidate) XXX_DiscardUnknown

func (m *AllCandidate) XXX_DiscardUnknown()

func (*AllCandidate) XXX_Marshal

func (m *AllCandidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllCandidate) XXX_Merge

func (m *AllCandidate) XXX_Merge(src proto.Message)

func (*AllCandidate) XXX_Size

func (m *AllCandidate) XXX_Size() int

func (*AllCandidate) XXX_Unmarshal

func (m *AllCandidate) XXX_Unmarshal(b []byte) error

type BCStatusExplorer

type BCStatusExplorer struct {
	// bolck height
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	//全网总资产
	TotalMoney string `protobuf:"bytes,2,opt,name=total_money,json=totalMoney,proto3" json:"total_money,omitempty"`
	//全网冻结资产
	FreeMonry string `protobuf:"bytes,3,opt,name=free_monry,json=freeMonry,proto3" json:"free_monry,omitempty"`
	//冻结百分比
	Percentage string `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"`
	//节点数
	Nodes                int64    `protobuf:"varint,5,opt,name=nodes,proto3" json:"nodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

查看链的部分信息

func (*BCStatusExplorer) Descriptor

func (*BCStatusExplorer) Descriptor() ([]byte, []int)

func (*BCStatusExplorer) GetFreeMonry

func (m *BCStatusExplorer) GetFreeMonry() string

func (*BCStatusExplorer) GetHeight

func (m *BCStatusExplorer) GetHeight() int64

func (*BCStatusExplorer) GetNodes

func (m *BCStatusExplorer) GetNodes() int64

func (*BCStatusExplorer) GetPercentage

func (m *BCStatusExplorer) GetPercentage() string

func (*BCStatusExplorer) GetTotalMoney

func (m *BCStatusExplorer) GetTotalMoney() string

func (*BCStatusExplorer) ProtoMessage

func (*BCStatusExplorer) ProtoMessage()

func (*BCStatusExplorer) Reset

func (m *BCStatusExplorer) Reset()

func (*BCStatusExplorer) String

func (m *BCStatusExplorer) String() string

func (*BCStatusExplorer) XXX_DiscardUnknown

func (m *BCStatusExplorer) XXX_DiscardUnknown()

func (*BCStatusExplorer) XXX_Marshal

func (m *BCStatusExplorer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BCStatusExplorer) XXX_Merge

func (m *BCStatusExplorer) XXX_Merge(src proto.Message)

func (*BCStatusExplorer) XXX_Size

func (m *BCStatusExplorer) XXX_Size() int

func (*BCStatusExplorer) XXX_Unmarshal

func (m *BCStatusExplorer) XXX_Unmarshal(b []byte) error

type BlockFilter

type BlockFilter struct {
	Bcname               string      `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Range                *BlockRange `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"`
	ExcludeTx            bool        `protobuf:"varint,3,opt,name=exclude_tx,json=excludeTx,proto3" json:"exclude_tx,omitempty"`
	ExcludeTxEvent       bool        `protobuf:"varint,4,opt,name=exclude_tx_event,json=excludeTxEvent,proto3" json:"exclude_tx_event,omitempty"`
	Contract             string      `protobuf:"bytes,10,opt,name=contract,proto3" json:"contract,omitempty"`
	EventName            string      `protobuf:"bytes,11,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	Initiator            string      `protobuf:"bytes,12,opt,name=initiator,proto3" json:"initiator,omitempty"`
	AuthRequire          string      `protobuf:"bytes,13,opt,name=auth_require,json=authRequire,proto3" json:"auth_require,omitempty"`
	FromAddr             string      `protobuf:"bytes,14,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"`
	ToAddr               string      `protobuf:"bytes,15,opt,name=to_addr,json=toAddr,proto3" json:"to_addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*BlockFilter) Descriptor

func (*BlockFilter) Descriptor() ([]byte, []int)

func (*BlockFilter) GetAuthRequire

func (m *BlockFilter) GetAuthRequire() string

func (*BlockFilter) GetBcname

func (m *BlockFilter) GetBcname() string

func (*BlockFilter) GetContract

func (m *BlockFilter) GetContract() string

func (*BlockFilter) GetEventName

func (m *BlockFilter) GetEventName() string

func (*BlockFilter) GetExcludeTx

func (m *BlockFilter) GetExcludeTx() bool

func (*BlockFilter) GetExcludeTxEvent

func (m *BlockFilter) GetExcludeTxEvent() bool

func (*BlockFilter) GetFromAddr

func (m *BlockFilter) GetFromAddr() string

func (*BlockFilter) GetInitiator

func (m *BlockFilter) GetInitiator() string

func (*BlockFilter) GetRange

func (m *BlockFilter) GetRange() *BlockRange

func (*BlockFilter) GetToAddr

func (m *BlockFilter) GetToAddr() string

func (*BlockFilter) ProtoMessage

func (*BlockFilter) ProtoMessage()

func (*BlockFilter) Reset

func (m *BlockFilter) Reset()

func (*BlockFilter) String

func (m *BlockFilter) String() string

func (*BlockFilter) XXX_DiscardUnknown

func (m *BlockFilter) XXX_DiscardUnknown()

func (*BlockFilter) XXX_Marshal

func (m *BlockFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockFilter) XXX_Merge

func (m *BlockFilter) XXX_Merge(src proto.Message)

func (*BlockFilter) XXX_Size

func (m *BlockFilter) XXX_Size() int

func (*BlockFilter) XXX_Unmarshal

func (m *BlockFilter) XXX_Unmarshal(b []byte) error

type BlockRange

type BlockRange struct {
	Start                string   `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	End                  string   `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockRange) Descriptor

func (*BlockRange) Descriptor() ([]byte, []int)

func (*BlockRange) GetEnd

func (m *BlockRange) GetEnd() string

func (*BlockRange) GetStart

func (m *BlockRange) GetStart() string

func (*BlockRange) ProtoMessage

func (*BlockRange) ProtoMessage()

func (*BlockRange) Reset

func (m *BlockRange) Reset()

func (*BlockRange) String

func (m *BlockRange) String() string

func (*BlockRange) XXX_DiscardUnknown

func (m *BlockRange) XXX_DiscardUnknown()

func (*BlockRange) XXX_Marshal

func (m *BlockRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockRange) XXX_Merge

func (m *BlockRange) XXX_Merge(src proto.Message)

func (*BlockRange) XXX_Size

func (m *BlockRange) XXX_Size() int

func (*BlockRange) XXX_Unmarshal

func (m *BlockRange) XXX_Unmarshal(b []byte) error

type CacheVoteCandidate

type CacheVoteCandidate struct {
	//分红比率
	Ratio int64 `protobuf:"varint,1,opt,name=ratio,proto3" json:"ratio,omitempty"`
	//投票的人
	VotingUser map[string]string `` /* 179-byte string literal not displayed */
	//总票数
	TotalVote            string   `protobuf:"bytes,3,opt,name=total_vote,json=totalVote,proto3" json:"total_vote,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

缓存表,产块分红读取这个

func (*CacheVoteCandidate) Descriptor

func (*CacheVoteCandidate) Descriptor() ([]byte, []int)

func (*CacheVoteCandidate) GetRatio

func (m *CacheVoteCandidate) GetRatio() int64

func (*CacheVoteCandidate) GetTotalVote

func (m *CacheVoteCandidate) GetTotalVote() string

func (*CacheVoteCandidate) GetVotingUser

func (m *CacheVoteCandidate) GetVotingUser() map[string]string

func (*CacheVoteCandidate) ProtoMessage

func (*CacheVoteCandidate) ProtoMessage()

func (*CacheVoteCandidate) Reset

func (m *CacheVoteCandidate) Reset()

func (*CacheVoteCandidate) String

func (m *CacheVoteCandidate) String() string

func (*CacheVoteCandidate) XXX_DiscardUnknown

func (m *CacheVoteCandidate) XXX_DiscardUnknown()

func (*CacheVoteCandidate) XXX_Marshal

func (m *CacheVoteCandidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CacheVoteCandidate) XXX_Merge

func (m *CacheVoteCandidate) XXX_Merge(src proto.Message)

func (*CacheVoteCandidate) XXX_Size

func (m *CacheVoteCandidate) XXX_Size() int

func (*CacheVoteCandidate) XXX_Unmarshal

func (m *CacheVoteCandidate) XXX_Unmarshal(b []byte) error

type CandidateRatio

type CandidateRatio struct {
	//总票数
	TatalVote string `protobuf:"bytes,1,opt,name=tatal_vote,json=tatalVote,proto3" json:"tatal_vote,omitempty"`
	//分红比率
	Ratio int64 `protobuf:"varint,2,opt,name=Ratio,proto3" json:"Ratio,omitempty"`
	//投票的人
	VotingUser map[string]string `` /* 179-byte string literal not displayed */
	//是否是提名人(取消此提名人后数据不能删除,通过标志位修改)
	Is_Nominate bool `protobuf:"varint,4,opt,name=is_Nominate,json=isNominate,proto3" json:"is_Nominate,omitempty"`
	//我投票的人
	MyVoting map[string]string `` /* 173-byte string literal not displayed */
	//已使用的总票数
	Used string `protobuf:"bytes,6,opt,name=used,proto3" json:"used,omitempty"`
	//被投票的总票数
	BeVotedTotal string `protobuf:"bytes,7,opt,name=be_voted_total,json=beVotedTotal,proto3" json:"be_voted_total,omitempty"`
	//提名候选人记录
	NominateDetails      map[string]*NominateDetails `` /* 194-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

投票提名记录表

func (*CandidateRatio) Descriptor

func (*CandidateRatio) Descriptor() ([]byte, []int)

func (*CandidateRatio) GetBeVotedTotal

func (m *CandidateRatio) GetBeVotedTotal() string

func (*CandidateRatio) GetIs_Nominate

func (m *CandidateRatio) GetIs_Nominate() bool

func (*CandidateRatio) GetMyVoting

func (m *CandidateRatio) GetMyVoting() map[string]string

func (*CandidateRatio) GetNominateDetails

func (m *CandidateRatio) GetNominateDetails() map[string]*NominateDetails

func (*CandidateRatio) GetRatio

func (m *CandidateRatio) GetRatio() int64

func (*CandidateRatio) GetTatalVote

func (m *CandidateRatio) GetTatalVote() string

func (*CandidateRatio) GetUsed

func (m *CandidateRatio) GetUsed() string

func (*CandidateRatio) GetVotingUser

func (m *CandidateRatio) GetVotingUser() map[string]string

func (*CandidateRatio) ProtoMessage

func (*CandidateRatio) ProtoMessage()

func (*CandidateRatio) Reset

func (m *CandidateRatio) Reset()

func (*CandidateRatio) String

func (m *CandidateRatio) String() string

func (*CandidateRatio) XXX_DiscardUnknown

func (m *CandidateRatio) XXX_DiscardUnknown()

func (*CandidateRatio) XXX_Marshal

func (m *CandidateRatio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CandidateRatio) XXX_Merge

func (m *CandidateRatio) XXX_Merge(src proto.Message)

func (*CandidateRatio) XXX_Size

func (m *CandidateRatio) XXX_Size() int

func (*CandidateRatio) XXX_Unmarshal

func (m *CandidateRatio) XXX_Unmarshal(b []byte) error

type ContractEvent

type ContractEvent struct {
	Contract             string   `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Body                 []byte   `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContractEvent) Descriptor

func (*ContractEvent) Descriptor() ([]byte, []int)

func (*ContractEvent) GetBody

func (m *ContractEvent) GetBody() []byte

func (*ContractEvent) GetContract

func (m *ContractEvent) GetContract() string

func (*ContractEvent) GetName

func (m *ContractEvent) GetName() string

func (*ContractEvent) ProtoMessage

func (*ContractEvent) ProtoMessage()

func (*ContractEvent) Reset

func (m *ContractEvent) Reset()

func (*ContractEvent) String

func (m *ContractEvent) String() string

func (*ContractEvent) XXX_DiscardUnknown

func (m *ContractEvent) XXX_DiscardUnknown()

func (*ContractEvent) XXX_Marshal

func (m *ContractEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractEvent) XXX_Merge

func (m *ContractEvent) XXX_Merge(src proto.Message)

func (*ContractEvent) XXX_Size

func (m *ContractEvent) XXX_Size() int

func (*ContractEvent) XXX_Unmarshal

func (m *ContractEvent) XXX_Unmarshal(b []byte) error

type ContractResponse

type ContractResponse struct {
	Status               int32    `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Body                 []byte   `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ContractResponse is the response returnd by contract

func (*ContractResponse) Descriptor

func (*ContractResponse) Descriptor() ([]byte, []int)

func (*ContractResponse) GetBody

func (m *ContractResponse) GetBody() []byte

func (*ContractResponse) GetMessage

func (m *ContractResponse) GetMessage() string

func (*ContractResponse) GetStatus

func (m *ContractResponse) GetStatus() int32

func (*ContractResponse) ProtoMessage

func (*ContractResponse) ProtoMessage()

func (*ContractResponse) Reset

func (m *ContractResponse) Reset()

func (*ContractResponse) String

func (m *ContractResponse) String() string

func (*ContractResponse) XXX_DiscardUnknown

func (m *ContractResponse) XXX_DiscardUnknown()

func (*ContractResponse) XXX_Marshal

func (m *ContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractResponse) XXX_Merge

func (m *ContractResponse) XXX_Merge(src proto.Message)

func (*ContractResponse) XXX_Size

func (m *ContractResponse) XXX_Size() int

func (*ContractResponse) XXX_Unmarshal

func (m *ContractResponse) XXX_Unmarshal(b []byte) error

type ContractStatData

type ContractStatData struct {
	AccountCount         int64    `protobuf:"varint,1,opt,name=accountCount,proto3" json:"accountCount,omitempty"`
	ContractCount        int64    `protobuf:"varint,2,opt,name=contractCount,proto3" json:"contractCount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ContractStatData) Descriptor

func (*ContractStatData) Descriptor() ([]byte, []int)

func (*ContractStatData) GetAccountCount

func (m *ContractStatData) GetAccountCount() int64

func (*ContractStatData) GetContractCount

func (m *ContractStatData) GetContractCount() int64

func (*ContractStatData) ProtoMessage

func (*ContractStatData) ProtoMessage()

func (*ContractStatData) Reset

func (m *ContractStatData) Reset()

func (*ContractStatData) String

func (m *ContractStatData) String() string

func (*ContractStatData) XXX_DiscardUnknown

func (m *ContractStatData) XXX_DiscardUnknown()

func (*ContractStatData) XXX_Marshal

func (m *ContractStatData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractStatData) XXX_Merge

func (m *ContractStatData) XXX_Merge(src proto.Message)

func (*ContractStatData) XXX_Size

func (m *ContractStatData) XXX_Size() int

func (*ContractStatData) XXX_Unmarshal

func (m *ContractStatData) XXX_Unmarshal(b []byte) error

type ContractStatus

type ContractStatus struct {
	ContractName         string   `protobuf:"bytes,1,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	Txid                 string   `protobuf:"bytes,2,opt,name=txid,proto3" json:"txid,omitempty"`
	Desc                 []byte   `protobuf:"bytes,3,opt,name=desc,proto3" json:"desc,omitempty"`
	IsBanned             bool     `protobuf:"varint,4,opt,name=is_banned,json=isBanned,proto3" json:"is_banned,omitempty"`
	Timestamp            int64    `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Runtime              string   `protobuf:"bytes,6,opt,name=runtime,proto3" json:"runtime,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Status of a contract

func (*ContractStatus) Descriptor

func (*ContractStatus) Descriptor() ([]byte, []int)

func (*ContractStatus) GetContractName

func (m *ContractStatus) GetContractName() string

func (*ContractStatus) GetDesc

func (m *ContractStatus) GetDesc() []byte

func (*ContractStatus) GetIsBanned

func (m *ContractStatus) GetIsBanned() bool

func (*ContractStatus) GetRuntime

func (m *ContractStatus) GetRuntime() string

func (*ContractStatus) GetTimestamp

func (m *ContractStatus) GetTimestamp() int64

func (*ContractStatus) GetTxid

func (m *ContractStatus) GetTxid() string

func (*ContractStatus) ProtoMessage

func (*ContractStatus) ProtoMessage()

func (*ContractStatus) Reset

func (m *ContractStatus) Reset()

func (*ContractStatus) String

func (m *ContractStatus) String() string

func (*ContractStatus) XXX_DiscardUnknown

func (m *ContractStatus) XXX_DiscardUnknown()

func (*ContractStatus) XXX_Marshal

func (m *ContractStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ContractStatus) XXX_Merge

func (m *ContractStatus) XXX_Merge(src proto.Message)

func (*ContractStatus) XXX_Size

func (m *ContractStatus) XXX_Size() int

func (*ContractStatus) XXX_Unmarshal

func (m *ContractStatus) XXX_Unmarshal(b []byte) error

type Event

type Event struct {
	Payload              []byte   `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Event) Descriptor

func (*Event) Descriptor() ([]byte, []int)

func (*Event) GetPayload

func (m *Event) GetPayload() []byte

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

type EventServiceClient

type EventServiceClient interface {
	Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (EventService_SubscribeClient, error)
}

EventServiceClient is the client API for EventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type EventServiceServer

type EventServiceServer interface {
	Subscribe(*SubscribeRequest, EventService_SubscribeServer) error
}

EventServiceServer is the server API for EventService service.

type EventService_SubscribeClient

type EventService_SubscribeClient interface {
	Recv() (*Event, error)
	grpc.ClientStream
}

type EventService_SubscribeServer

type EventService_SubscribeServer interface {
	Send(*Event) error
	grpc.ServerStream
}

type FilteredBlock

type FilteredBlock struct {
	Bcname               string                 `protobuf:"bytes,1,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Blockid              string                 `protobuf:"bytes,2,opt,name=blockid,proto3" json:"blockid,omitempty"`
	BlockHeight          int64                  `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Txs                  []*FilteredTransaction `protobuf:"bytes,4,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*FilteredBlock) Descriptor

func (*FilteredBlock) Descriptor() ([]byte, []int)

func (*FilteredBlock) GetBcname

func (m *FilteredBlock) GetBcname() string

func (*FilteredBlock) GetBlockHeight

func (m *FilteredBlock) GetBlockHeight() int64

func (*FilteredBlock) GetBlockid

func (m *FilteredBlock) GetBlockid() string

func (*FilteredBlock) GetTxs

func (m *FilteredBlock) GetTxs() []*FilteredTransaction

func (*FilteredBlock) ProtoMessage

func (*FilteredBlock) ProtoMessage()

func (*FilteredBlock) Reset

func (m *FilteredBlock) Reset()

func (*FilteredBlock) String

func (m *FilteredBlock) String() string

func (*FilteredBlock) XXX_DiscardUnknown

func (m *FilteredBlock) XXX_DiscardUnknown()

func (*FilteredBlock) XXX_Marshal

func (m *FilteredBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FilteredBlock) XXX_Merge

func (m *FilteredBlock) XXX_Merge(src proto.Message)

func (*FilteredBlock) XXX_Size

func (m *FilteredBlock) XXX_Size() int

func (*FilteredBlock) XXX_Unmarshal

func (m *FilteredBlock) XXX_Unmarshal(b []byte) error

type FilteredTransaction

type FilteredTransaction struct {
	Txid                 string           `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
	Events               []*ContractEvent `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*FilteredTransaction) Descriptor

func (*FilteredTransaction) Descriptor() ([]byte, []int)

func (*FilteredTransaction) GetEvents

func (m *FilteredTransaction) GetEvents() []*ContractEvent

func (*FilteredTransaction) GetTxid

func (m *FilteredTransaction) GetTxid() string

func (*FilteredTransaction) ProtoMessage

func (*FilteredTransaction) ProtoMessage()

func (*FilteredTransaction) Reset

func (m *FilteredTransaction) Reset()

func (*FilteredTransaction) String

func (m *FilteredTransaction) String() string

func (*FilteredTransaction) XXX_DiscardUnknown

func (m *FilteredTransaction) XXX_DiscardUnknown()

func (*FilteredTransaction) XXX_Marshal

func (m *FilteredTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FilteredTransaction) XXX_Merge

func (m *FilteredTransaction) XXX_Merge(src proto.Message)

func (*FilteredTransaction) XXX_Size

func (m *FilteredTransaction) XXX_Size() int

func (*FilteredTransaction) XXX_Unmarshal

func (m *FilteredTransaction) XXX_Unmarshal(b []byte) error

type FrozenAssetsTable

type FrozenAssetsTable struct {
	Total string `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"`
	//repeated FrozenDetails  frozendetail = 2;
	FrozenDetail map[string]*FrozenDetails `` /* 185-byte string literal not displayed */
	//repeated FrozenDetails  thawdetail = 3;
	ThawDetail           map[string]*FrozenDetails `` /* 179-byte string literal not displayed */
	Timestamp            int64                     `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

冻结资产记录表

func (*FrozenAssetsTable) Descriptor

func (*FrozenAssetsTable) Descriptor() ([]byte, []int)

func (*FrozenAssetsTable) GetFrozenDetail

func (m *FrozenAssetsTable) GetFrozenDetail() map[string]*FrozenDetails

func (*FrozenAssetsTable) GetThawDetail

func (m *FrozenAssetsTable) GetThawDetail() map[string]*FrozenDetails

func (*FrozenAssetsTable) GetTimestamp

func (m *FrozenAssetsTable) GetTimestamp() int64

func (*FrozenAssetsTable) GetTotal

func (m *FrozenAssetsTable) GetTotal() string

func (*FrozenAssetsTable) ProtoMessage

func (*FrozenAssetsTable) ProtoMessage()

func (*FrozenAssetsTable) Reset

func (m *FrozenAssetsTable) Reset()

func (*FrozenAssetsTable) String

func (m *FrozenAssetsTable) String() string

func (*FrozenAssetsTable) XXX_DiscardUnknown

func (m *FrozenAssetsTable) XXX_DiscardUnknown()

func (*FrozenAssetsTable) XXX_Marshal

func (m *FrozenAssetsTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FrozenAssetsTable) XXX_Merge

func (m *FrozenAssetsTable) XXX_Merge(src proto.Message)

func (*FrozenAssetsTable) XXX_Size

func (m *FrozenAssetsTable) XXX_Size() int

func (*FrozenAssetsTable) XXX_Unmarshal

func (m *FrozenAssetsTable) XXX_Unmarshal(b []byte) error

type FrozenDetails

type FrozenDetails struct {
	// string txid = 1;
	Height               int64    `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Amount               string   `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Timestamp            int64    `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FrozenDetails) Descriptor

func (*FrozenDetails) Descriptor() ([]byte, []int)

func (*FrozenDetails) GetAmount

func (m *FrozenDetails) GetAmount() string

func (*FrozenDetails) GetHeight

func (m *FrozenDetails) GetHeight() int64

func (*FrozenDetails) GetTimestamp

func (m *FrozenDetails) GetTimestamp() int64

func (*FrozenDetails) ProtoMessage

func (*FrozenDetails) ProtoMessage()

func (*FrozenDetails) Reset

func (m *FrozenDetails) Reset()

func (*FrozenDetails) String

func (m *FrozenDetails) String() string

func (*FrozenDetails) XXX_DiscardUnknown

func (m *FrozenDetails) XXX_DiscardUnknown()

func (*FrozenDetails) XXX_Marshal

func (m *FrozenDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FrozenDetails) XXX_Merge

func (m *FrozenDetails) XXX_Merge(src proto.Message)

func (*FrozenDetails) XXX_Size

func (m *FrozenDetails) XXX_Size() int

func (*FrozenDetails) XXX_Unmarshal

func (m *FrozenDetails) XXX_Unmarshal(b []byte) error

type GasPrice

type GasPrice struct {
	CpuRate              int64    `protobuf:"varint,1,opt,name=cpu_rate,json=cpuRate,proto3" json:"cpu_rate,omitempty"`
	MemRate              int64    `protobuf:"varint,2,opt,name=mem_rate,json=memRate,proto3" json:"mem_rate,omitempty"`
	DiskRate             int64    `protobuf:"varint,3,opt,name=disk_rate,json=diskRate,proto3" json:"disk_rate,omitempty"`
	XfeeRate             int64    `protobuf:"varint,4,opt,name=xfee_rate,json=xfeeRate,proto3" json:"xfee_rate,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GasPrice) Descriptor

func (*GasPrice) Descriptor() ([]byte, []int)

func (*GasPrice) GetCpuRate

func (m *GasPrice) GetCpuRate() int64

func (*GasPrice) GetDiskRate

func (m *GasPrice) GetDiskRate() int64

func (*GasPrice) GetMemRate

func (m *GasPrice) GetMemRate() int64

func (*GasPrice) GetXfeeRate

func (m *GasPrice) GetXfeeRate() int64

func (*GasPrice) ProtoMessage

func (*GasPrice) ProtoMessage()

func (*GasPrice) Reset

func (m *GasPrice) Reset()

func (*GasPrice) String

func (m *GasPrice) String() string

func (*GasPrice) XXX_DiscardUnknown

func (m *GasPrice) XXX_DiscardUnknown()

func (*GasPrice) XXX_Marshal

func (m *GasPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GasPrice) XXX_Merge

func (m *GasPrice) XXX_Merge(src proto.Message)

func (*GasPrice) XXX_Size

func (m *GasPrice) XXX_Size() int

func (*GasPrice) XXX_Unmarshal

func (m *GasPrice) XXX_Unmarshal(b []byte) error

type GovernTokenBalance

type GovernTokenBalance struct {
	TotalBalance                string   `protobuf:"bytes,1,opt,name=total_balance,json=totalBalance,proto3" json:"total_balance,omitempty"`
	AvailableBalanceForTdpos    string   `` /* 137-byte string literal not displayed */
	LockedBalanceForTdpos       string   `` /* 128-byte string literal not displayed */
	AvailableBalanceForProposal string   `` /* 146-byte string literal not displayed */
	LockedBalanceForProposal    string   `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral        struct{} `json:"-"`
	XXX_unrecognized            []byte   `json:"-"`
	XXX_sizecache               int32    `json:"-"`
}

GovernTokenBalance

func (*GovernTokenBalance) Descriptor

func (*GovernTokenBalance) Descriptor() ([]byte, []int)

func (*GovernTokenBalance) GetAvailableBalanceForProposal

func (m *GovernTokenBalance) GetAvailableBalanceForProposal() string

func (*GovernTokenBalance) GetAvailableBalanceForTdpos

func (m *GovernTokenBalance) GetAvailableBalanceForTdpos() string

func (*GovernTokenBalance) GetLockedBalanceForProposal

func (m *GovernTokenBalance) GetLockedBalanceForProposal() string

func (*GovernTokenBalance) GetLockedBalanceForTdpos

func (m *GovernTokenBalance) GetLockedBalanceForTdpos() string

func (*GovernTokenBalance) GetTotalBalance

func (m *GovernTokenBalance) GetTotalBalance() string

func (*GovernTokenBalance) ProtoMessage

func (*GovernTokenBalance) ProtoMessage()

func (*GovernTokenBalance) Reset

func (m *GovernTokenBalance) Reset()

func (*GovernTokenBalance) String

func (m *GovernTokenBalance) String() string

func (*GovernTokenBalance) XXX_DiscardUnknown

func (m *GovernTokenBalance) XXX_DiscardUnknown()

func (*GovernTokenBalance) XXX_Marshal

func (m *GovernTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GovernTokenBalance) XXX_Merge

func (m *GovernTokenBalance) XXX_Merge(src proto.Message)

func (*GovernTokenBalance) XXX_Size

func (m *GovernTokenBalance) XXX_Size() int

func (*GovernTokenBalance) XXX_Unmarshal

func (m *GovernTokenBalance) XXX_Unmarshal(b []byte) error

type InvokeRequest

type InvokeRequest struct {
	ModuleName     string            `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	ContractName   string            `protobuf:"bytes,2,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
	MethodName     string            `protobuf:"bytes,3,opt,name=method_name,json=methodName,proto3" json:"method_name,omitempty"`
	Args           map[string][]byte `` /* 149-byte string literal not displayed */
	ResourceLimits []*ResourceLimit  `protobuf:"bytes,5,rep,name=resource_limits,json=resourceLimits,proto3" json:"resource_limits,omitempty"`
	// amount is the amount transfer to the contract
	// attention: In one transaction, transfer to only one contract is allowed
	Amount               string   `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

预执行的请求结构

func (*InvokeRequest) Descriptor

func (*InvokeRequest) Descriptor() ([]byte, []int)

func (*InvokeRequest) GetAmount

func (m *InvokeRequest) GetAmount() string

func (*InvokeRequest) GetArgs

func (m *InvokeRequest) GetArgs() map[string][]byte

func (*InvokeRequest) GetContractName

func (m *InvokeRequest) GetContractName() string

func (*InvokeRequest) GetMethodName

func (m *InvokeRequest) GetMethodName() string

func (*InvokeRequest) GetModuleName

func (m *InvokeRequest) GetModuleName() string

func (*InvokeRequest) GetResourceLimits

func (m *InvokeRequest) GetResourceLimits() []*ResourceLimit

func (*InvokeRequest) ProtoMessage

func (*InvokeRequest) ProtoMessage()

func (*InvokeRequest) Reset

func (m *InvokeRequest) Reset()

func (*InvokeRequest) String

func (m *InvokeRequest) String() string

func (*InvokeRequest) XXX_DiscardUnknown

func (m *InvokeRequest) XXX_DiscardUnknown()

func (*InvokeRequest) XXX_Marshal

func (m *InvokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvokeRequest) XXX_Merge

func (m *InvokeRequest) XXX_Merge(src proto.Message)

func (*InvokeRequest) XXX_Size

func (m *InvokeRequest) XXX_Size() int

func (*InvokeRequest) XXX_Unmarshal

func (m *InvokeRequest) XXX_Unmarshal(b []byte) error

type InvokeResponse

type InvokeResponse struct {
	Inputs               []*TxInputExt       `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs              []*TxOutputExt      `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
	Response             [][]byte            `protobuf:"bytes,3,rep,name=response,proto3" json:"response,omitempty"`
	GasUsed              int64               `protobuf:"varint,4,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	Requests             []*InvokeRequest    `protobuf:"bytes,5,rep,name=requests,proto3" json:"requests,omitempty"`
	Responses            []*ContractResponse `protobuf:"bytes,6,rep,name=responses,proto3" json:"responses,omitempty"`
	UtxoInputs           []*TxInput          `protobuf:"bytes,7,rep,name=utxoInputs,proto3" json:"utxoInputs,omitempty"`
	UtxoOutputs          []*TxOutput         `protobuf:"bytes,8,rep,name=utxoOutputs,proto3" json:"utxoOutputs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

预执行的返回结构

func (*InvokeResponse) Descriptor

func (*InvokeResponse) Descriptor() ([]byte, []int)

func (*InvokeResponse) GetGasUsed

func (m *InvokeResponse) GetGasUsed() int64

func (*InvokeResponse) GetInputs

func (m *InvokeResponse) GetInputs() []*TxInputExt

func (*InvokeResponse) GetOutputs

func (m *InvokeResponse) GetOutputs() []*TxOutputExt

func (*InvokeResponse) GetRequests

func (m *InvokeResponse) GetRequests() []*InvokeRequest

func (*InvokeResponse) GetResponse

func (m *InvokeResponse) GetResponse() [][]byte

func (*InvokeResponse) GetResponses

func (m *InvokeResponse) GetResponses() []*ContractResponse

func (*InvokeResponse) GetUtxoInputs

func (m *InvokeResponse) GetUtxoInputs() []*TxInput

func (*InvokeResponse) GetUtxoOutputs

func (m *InvokeResponse) GetUtxoOutputs() []*TxOutput

func (*InvokeResponse) ProtoMessage

func (*InvokeResponse) ProtoMessage()

func (*InvokeResponse) Reset

func (m *InvokeResponse) Reset()

func (*InvokeResponse) String

func (m *InvokeResponse) String() string

func (*InvokeResponse) XXX_DiscardUnknown

func (m *InvokeResponse) XXX_DiscardUnknown()

func (*InvokeResponse) XXX_Marshal

func (m *InvokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InvokeResponse) XXX_Merge

func (m *InvokeResponse) XXX_Merge(src proto.Message)

func (*InvokeResponse) XXX_Size

func (m *InvokeResponse) XXX_Size() int

func (*InvokeResponse) XXX_Unmarshal

func (m *InvokeResponse) XXX_Unmarshal(b []byte) error

type NodeDetail

type NodeDetail struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Height               int64    `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Amount               string   `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NodeDetail) Descriptor

func (*NodeDetail) Descriptor() ([]byte, []int)

func (*NodeDetail) GetAddress

func (m *NodeDetail) GetAddress() string

func (*NodeDetail) GetAmount

func (m *NodeDetail) GetAmount() string

func (*NodeDetail) GetHeight

func (m *NodeDetail) GetHeight() int64

func (*NodeDetail) ProtoMessage

func (*NodeDetail) ProtoMessage()

func (*NodeDetail) Reset

func (m *NodeDetail) Reset()

func (*NodeDetail) String

func (m *NodeDetail) String() string

func (*NodeDetail) XXX_DiscardUnknown

func (m *NodeDetail) XXX_DiscardUnknown()

func (*NodeDetail) XXX_Marshal

func (m *NodeDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDetail) XXX_Merge

func (m *NodeDetail) XXX_Merge(src proto.Message)

func (*NodeDetail) XXX_Size

func (m *NodeDetail) XXX_Size() int

func (*NodeDetail) XXX_Unmarshal

func (m *NodeDetail) XXX_Unmarshal(b []byte) error

type NodeDetails

type NodeDetails struct {
	NodeDetail           []*NodeDetail `protobuf:"bytes,1,rep,name=node_detail,json=nodeDetail,proto3" json:"node_detail,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*NodeDetails) Descriptor

func (*NodeDetails) Descriptor() ([]byte, []int)

func (*NodeDetails) GetNodeDetail

func (m *NodeDetails) GetNodeDetail() []*NodeDetail

func (*NodeDetails) ProtoMessage

func (*NodeDetails) ProtoMessage()

func (*NodeDetails) Reset

func (m *NodeDetails) Reset()

func (*NodeDetails) String

func (m *NodeDetails) String() string

func (*NodeDetails) XXX_DiscardUnknown

func (m *NodeDetails) XXX_DiscardUnknown()

func (*NodeDetails) XXX_Marshal

func (m *NodeDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeDetails) XXX_Merge

func (m *NodeDetails) XXX_Merge(src proto.Message)

func (*NodeDetails) XXX_Size

func (m *NodeDetails) XXX_Size() int

func (*NodeDetails) XXX_Unmarshal

func (m *NodeDetails) XXX_Unmarshal(b []byte) error

type NodeTable

type NodeTable struct {
	NodeDetails          map[int64]*NodeDetails `` /* 183-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

节点待解冻的信息

func (*NodeTable) Descriptor

func (*NodeTable) Descriptor() ([]byte, []int)

func (*NodeTable) GetNodeDetails

func (m *NodeTable) GetNodeDetails() map[int64]*NodeDetails

func (*NodeTable) ProtoMessage

func (*NodeTable) ProtoMessage()

func (*NodeTable) Reset

func (m *NodeTable) Reset()

func (*NodeTable) String

func (m *NodeTable) String() string

func (*NodeTable) XXX_DiscardUnknown

func (m *NodeTable) XXX_DiscardUnknown()

func (*NodeTable) XXX_Marshal

func (m *NodeTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NodeTable) XXX_Merge

func (m *NodeTable) XXX_Merge(src proto.Message)

func (*NodeTable) XXX_Size

func (m *NodeTable) XXX_Size() int

func (*NodeTable) XXX_Unmarshal

func (m *NodeTable) XXX_Unmarshal(b []byte) error

type NominateDetails

type NominateDetails struct {
	//抵押的资产
	Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	//是否取消提名
	Isnominate           bool     `protobuf:"varint,2,opt,name=isnominate,proto3" json:"isnominate,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NominateDetails) Descriptor

func (*NominateDetails) Descriptor() ([]byte, []int)

func (*NominateDetails) GetAmount

func (m *NominateDetails) GetAmount() string

func (*NominateDetails) GetIsnominate

func (m *NominateDetails) GetIsnominate() bool

func (*NominateDetails) ProtoMessage

func (*NominateDetails) ProtoMessage()

func (*NominateDetails) Reset

func (m *NominateDetails) Reset()

func (*NominateDetails) String

func (m *NominateDetails) String() string

func (*NominateDetails) XXX_DiscardUnknown

func (m *NominateDetails) XXX_DiscardUnknown()

func (*NominateDetails) XXX_Marshal

func (m *NominateDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NominateDetails) XXX_Merge

func (m *NominateDetails) XXX_Merge(src proto.Message)

func (*NominateDetails) XXX_Size

func (m *NominateDetails) XXX_Size() int

func (*NominateDetails) XXX_Unmarshal

func (m *NominateDetails) XXX_Unmarshal(b []byte) error

type P2PServiceClient

type P2PServiceClient interface {
	SendP2PMessage(ctx context.Context, opts ...grpc.CallOption) (P2PService_SendP2PMessageClient, error)
}

P2PServiceClient is the client API for P2PService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewP2PServiceClient

func NewP2PServiceClient(cc grpc.ClientConnInterface) P2PServiceClient

type P2PServiceServer

type P2PServiceServer interface {
	SendP2PMessage(P2PService_SendP2PMessageServer) error
}

P2PServiceServer is the server API for P2PService service.

type P2PService_SendP2PMessageClient

type P2PService_SendP2PMessageClient interface {
	Send(*XuperMessage) error
	Recv() (*XuperMessage, error)
	grpc.ClientStream
}

type P2PService_SendP2PMessageServer

type P2PService_SendP2PMessageServer interface {
	Send(*XuperMessage) error
	Recv() (*XuperMessage, error)
	grpc.ServerStream
}

type PeerInfo

type PeerInfo struct {
	Id                   string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address              string      `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Account              string      `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
	Peer                 []*PeerInfo `protobuf:"bytes,4,rep,name=peer,proto3" json:"peer,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*PeerInfo) Descriptor

func (*PeerInfo) Descriptor() ([]byte, []int)

func (*PeerInfo) GetAccount

func (m *PeerInfo) GetAccount() string

func (*PeerInfo) GetAddress

func (m *PeerInfo) GetAddress() string

func (*PeerInfo) GetId

func (m *PeerInfo) GetId() string

func (*PeerInfo) GetPeer

func (m *PeerInfo) GetPeer() []*PeerInfo

func (*PeerInfo) ProtoMessage

func (*PeerInfo) ProtoMessage()

func (*PeerInfo) Reset

func (m *PeerInfo) Reset()

func (*PeerInfo) String

func (m *PeerInfo) String() string

func (*PeerInfo) XXX_DiscardUnknown

func (m *PeerInfo) XXX_DiscardUnknown()

func (*PeerInfo) XXX_Marshal

func (m *PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PeerInfo) XXX_Merge

func (m *PeerInfo) XXX_Merge(src proto.Message)

func (*PeerInfo) XXX_Size

func (m *PeerInfo) XXX_Size() int

func (*PeerInfo) XXX_Unmarshal

func (m *PeerInfo) XXX_Unmarshal(b []byte) error

type PermissionModel

type PermissionModel struct {
	Rule                 PermissionRule `protobuf:"varint,1,opt,name=rule,proto3,enum=protos.PermissionRule" json:"rule,omitempty"`
	AcceptValue          float64        `protobuf:"fixed64,2,opt,name=acceptValue,proto3" json:"acceptValue,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*PermissionModel) Descriptor

func (*PermissionModel) Descriptor() ([]byte, []int)

func (*PermissionModel) GetAcceptValue

func (m *PermissionModel) GetAcceptValue() float64

func (*PermissionModel) GetRule

func (m *PermissionModel) GetRule() PermissionRule

func (*PermissionModel) ProtoMessage

func (*PermissionModel) ProtoMessage()

func (*PermissionModel) Reset

func (m *PermissionModel) Reset()

func (*PermissionModel) String

func (m *PermissionModel) String() string

func (*PermissionModel) XXX_DiscardUnknown

func (m *PermissionModel) XXX_DiscardUnknown()

func (*PermissionModel) XXX_Marshal

func (m *PermissionModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PermissionModel) XXX_Merge

func (m *PermissionModel) XXX_Merge(src proto.Message)

func (*PermissionModel) XXX_Size

func (m *PermissionModel) XXX_Size() int

func (*PermissionModel) XXX_Unmarshal

func (m *PermissionModel) XXX_Unmarshal(b []byte) error

type PermissionRule

type PermissionRule int32

-------- Account and Permission Section --------

const (
	PermissionRule_NULL           PermissionRule = 0
	PermissionRule_SIGN_THRESHOLD PermissionRule = 1
	PermissionRule_SIGN_AKSET     PermissionRule = 2
	PermissionRule_SIGN_RATE      PermissionRule = 3
	PermissionRule_SIGN_SUM       PermissionRule = 4
	PermissionRule_CA_SERVER      PermissionRule = 5
	PermissionRule_COMMUNITY_VOTE PermissionRule = 6
)

func (PermissionRule) EnumDescriptor

func (PermissionRule) EnumDescriptor() ([]byte, []int)

func (PermissionRule) String

func (x PermissionRule) String() string

type PledgeVotingResponse

type PledgeVotingResponse struct {
	FrozenAssetsTable *FrozenAssetsTable   `protobuf:"bytes,1,opt,name=frozen_assets_table,json=frozenAssetsTable,proto3" json:"frozen_assets_table,omitempty"`
	VoteDetailsStatus []*VoteDetailsStatus `protobuf:"bytes,2,rep,name=vote_details_status,json=voteDetailsStatus,proto3" json:"vote_details_status,omitempty"`
	//投票了多少节点
	MyVote int64 `protobuf:"varint,3,opt,name=my_vote,json=myVote,proto3" json:"my_vote,omitempty"`
	//全网冻结总量
	Freezetotal string `protobuf:"bytes,4,opt,name=freezetotal,proto3" json:"freezetotal,omitempty"`
	//治理代币总量
	TotalAmount string `protobuf:"bytes,5,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	//消耗总量
	UsedAmount string `protobuf:"bytes,6,opt,name=used_amount,json=usedAmount,proto3" json:"used_amount,omitempty"`
	//冻结中
	FreezeAmount         string   `protobuf:"bytes,7,opt,name=freeze_amount,json=freezeAmount,proto3" json:"freeze_amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PledgeVotingResponse) Descriptor

func (*PledgeVotingResponse) Descriptor() ([]byte, []int)

func (*PledgeVotingResponse) GetFreezeAmount

func (m *PledgeVotingResponse) GetFreezeAmount() string

func (*PledgeVotingResponse) GetFreezetotal

func (m *PledgeVotingResponse) GetFreezetotal() string

func (*PledgeVotingResponse) GetFrozenAssetsTable

func (m *PledgeVotingResponse) GetFrozenAssetsTable() *FrozenAssetsTable

func (*PledgeVotingResponse) GetMyVote

func (m *PledgeVotingResponse) GetMyVote() int64

func (*PledgeVotingResponse) GetTotalAmount

func (m *PledgeVotingResponse) GetTotalAmount() string

func (*PledgeVotingResponse) GetUsedAmount

func (m *PledgeVotingResponse) GetUsedAmount() string

func (*PledgeVotingResponse) GetVoteDetailsStatus

func (m *PledgeVotingResponse) GetVoteDetailsStatus() []*VoteDetailsStatus

func (*PledgeVotingResponse) ProtoMessage

func (*PledgeVotingResponse) ProtoMessage()

func (*PledgeVotingResponse) Reset

func (m *PledgeVotingResponse) Reset()

func (*PledgeVotingResponse) String

func (m *PledgeVotingResponse) String() string

func (*PledgeVotingResponse) XXX_DiscardUnknown

func (m *PledgeVotingResponse) XXX_DiscardUnknown()

func (*PledgeVotingResponse) XXX_Marshal

func (m *PledgeVotingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PledgeVotingResponse) XXX_Merge

func (m *PledgeVotingResponse) XXX_Merge(src proto.Message)

func (*PledgeVotingResponse) XXX_Size

func (m *PledgeVotingResponse) XXX_Size() int

func (*PledgeVotingResponse) XXX_Unmarshal

func (m *PledgeVotingResponse) XXX_Unmarshal(b []byte) error

type Proposal

type Proposal struct {
	Module               string            `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
	Method               string            `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Args                 map[string][]byte `` /* 149-byte string literal not displayed */
	Trigger              *TriggerDesc      `protobuf:"bytes,4,opt,name=trigger,proto3" json:"trigger,omitempty"`
	VoteAmount           string            `protobuf:"bytes,5,opt,name=vote_amount,json=voteAmount,proto3" json:"vote_amount,omitempty"`
	Status               ProposalStatus    `protobuf:"varint,6,opt,name=status,proto3,enum=protos.ProposalStatus" json:"status,omitempty"`
	Proposer             string            `protobuf:"bytes,7,opt,name=proposer,proto3" json:"proposer,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Proposal

func (*Proposal) Descriptor

func (*Proposal) Descriptor() ([]byte, []int)

func (*Proposal) GetArgs

func (m *Proposal) GetArgs() map[string][]byte

func (*Proposal) GetMethod

func (m *Proposal) GetMethod() string

func (*Proposal) GetModule

func (m *Proposal) GetModule() string

func (*Proposal) GetProposer

func (m *Proposal) GetProposer() string

func (*Proposal) GetStatus

func (m *Proposal) GetStatus() ProposalStatus

func (*Proposal) GetTrigger

func (m *Proposal) GetTrigger() *TriggerDesc

func (*Proposal) GetVoteAmount

func (m *Proposal) GetVoteAmount() string

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proposal) XXX_Merge

func (m *Proposal) XXX_Merge(src proto.Message)

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

func (m *Proposal) XXX_Unmarshal(b []byte) error

type ProposalRatio

type ProposalRatio struct {
	UserRatio            map[string]int64 `` /* 177-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (*ProposalRatio) Descriptor

func (*ProposalRatio) Descriptor() ([]byte, []int)

func (*ProposalRatio) GetUserRatio

func (m *ProposalRatio) GetUserRatio() map[string]int64

func (*ProposalRatio) ProtoMessage

func (*ProposalRatio) ProtoMessage()

func (*ProposalRatio) Reset

func (m *ProposalRatio) Reset()

func (*ProposalRatio) String

func (m *ProposalRatio) String() string

func (*ProposalRatio) XXX_DiscardUnknown

func (m *ProposalRatio) XXX_DiscardUnknown()

func (*ProposalRatio) XXX_Marshal

func (m *ProposalRatio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProposalRatio) XXX_Merge

func (m *ProposalRatio) XXX_Merge(src proto.Message)

func (*ProposalRatio) XXX_Size

func (m *ProposalRatio) XXX_Size() int

func (*ProposalRatio) XXX_Unmarshal

func (m *ProposalRatio) XXX_Unmarshal(b []byte) error

type ProposalStatus

type ProposalStatus int32
const (
	ProposalStatus_VOTING   ProposalStatus = 0
	ProposalStatus_SUCCESS  ProposalStatus = 1
	ProposalStatus_FAILURE  ProposalStatus = 2
	ProposalStatus_CANCELED ProposalStatus = 3
)

func (ProposalStatus) EnumDescriptor

func (ProposalStatus) EnumDescriptor() ([]byte, []int)

func (ProposalStatus) String

func (x ProposalStatus) String() string

type ResourceLimit

type ResourceLimit struct {
	Type                 ResourceType `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ResourceType" json:"type,omitempty"`
	Limit                int64        `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*ResourceLimit) Descriptor

func (*ResourceLimit) Descriptor() ([]byte, []int)

func (*ResourceLimit) GetLimit

func (m *ResourceLimit) GetLimit() int64

func (*ResourceLimit) GetType

func (m *ResourceLimit) GetType() ResourceType

func (*ResourceLimit) ProtoMessage

func (*ResourceLimit) ProtoMessage()

func (*ResourceLimit) Reset

func (m *ResourceLimit) Reset()

func (*ResourceLimit) String

func (m *ResourceLimit) String() string

func (*ResourceLimit) XXX_DiscardUnknown

func (m *ResourceLimit) XXX_DiscardUnknown()

func (*ResourceLimit) XXX_Marshal

func (m *ResourceLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResourceLimit) XXX_Merge

func (m *ResourceLimit) XXX_Merge(src proto.Message)

func (*ResourceLimit) XXX_Size

func (m *ResourceLimit) XXX_Size() int

func (*ResourceLimit) XXX_Unmarshal

func (m *ResourceLimit) XXX_Unmarshal(b []byte) error

type ResourceType

type ResourceType int32
const (
	ResourceType_CPU    ResourceType = 0
	ResourceType_MEMORY ResourceType = 1
	ResourceType_DISK   ResourceType = 2
	// the fee used in kernel contract
	ResourceType_XFEE ResourceType = 3
)

func (ResourceType) EnumDescriptor

func (ResourceType) EnumDescriptor() ([]byte, []int)

func (ResourceType) String

func (x ResourceType) String() string

type SignatureInfo

type SignatureInfo struct {
	PublicKey            string   `protobuf:"bytes,1,opt,name=PublicKey,proto3" json:"PublicKey,omitempty"`
	Sign                 []byte   `protobuf:"bytes,2,opt,name=Sign,proto3" json:"Sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

签名详情

func (*SignatureInfo) Descriptor

func (*SignatureInfo) Descriptor() ([]byte, []int)

func (*SignatureInfo) GetPublicKey

func (m *SignatureInfo) GetPublicKey() string

func (*SignatureInfo) GetSign

func (m *SignatureInfo) GetSign() []byte

func (*SignatureInfo) ProtoMessage

func (*SignatureInfo) ProtoMessage()

func (*SignatureInfo) Reset

func (m *SignatureInfo) Reset()

func (*SignatureInfo) String

func (m *SignatureInfo) String() string

func (*SignatureInfo) XXX_DiscardUnknown

func (m *SignatureInfo) XXX_DiscardUnknown()

func (*SignatureInfo) XXX_Marshal

func (m *SignatureInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignatureInfo) XXX_Merge

func (m *SignatureInfo) XXX_Merge(src proto.Message)

func (*SignatureInfo) XXX_Size

func (m *SignatureInfo) XXX_Size() int

func (*SignatureInfo) XXX_Unmarshal

func (m *SignatureInfo) XXX_Unmarshal(b []byte) error

type SubscribeRequest

type SubscribeRequest struct {
	Type                 SubscribeType `protobuf:"varint,1,opt,name=type,proto3,enum=protos.SubscribeType" json:"type,omitempty"`
	Filter               []byte        `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*SubscribeRequest) Descriptor

func (*SubscribeRequest) Descriptor() ([]byte, []int)

func (*SubscribeRequest) GetFilter

func (m *SubscribeRequest) GetFilter() []byte

func (*SubscribeRequest) GetType

func (m *SubscribeRequest) GetType() SubscribeType

func (*SubscribeRequest) ProtoMessage

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) Reset

func (m *SubscribeRequest) Reset()

func (*SubscribeRequest) String

func (m *SubscribeRequest) String() string

func (*SubscribeRequest) XXX_DiscardUnknown

func (m *SubscribeRequest) XXX_DiscardUnknown()

func (*SubscribeRequest) XXX_Marshal

func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SubscribeRequest) XXX_Merge

func (m *SubscribeRequest) XXX_Merge(src proto.Message)

func (*SubscribeRequest) XXX_Size

func (m *SubscribeRequest) XXX_Size() int

func (*SubscribeRequest) XXX_Unmarshal

func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error

type SubscribeType

type SubscribeType int32
const (
	// 区块事件,payload为BlockFilter
	SubscribeType_BLOCK SubscribeType = 0
)

func (SubscribeType) EnumDescriptor

func (SubscribeType) EnumDescriptor() ([]byte, []int)

func (SubscribeType) String

func (x SubscribeType) String() string

type TermTable

type TermTable struct {
	//当前term
	Trem int64 `protobuf:"varint,1,opt,name=trem,proto3" json:"trem,omitempty"`
	//是否是新的一个周期
	NewCycle             bool     `protobuf:"varint,2,opt,name=new_cycle,json=newCycle,proto3" json:"new_cycle,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

记录周期term表

func (*TermTable) Descriptor

func (*TermTable) Descriptor() ([]byte, []int)

func (*TermTable) GetNewCycle

func (m *TermTable) GetNewCycle() bool

func (*TermTable) GetTrem

func (m *TermTable) GetTrem() int64

func (*TermTable) ProtoMessage

func (*TermTable) ProtoMessage()

func (*TermTable) Reset

func (m *TermTable) Reset()

func (*TermTable) String

func (m *TermTable) String() string

func (*TermTable) XXX_DiscardUnknown

func (m *TermTable) XXX_DiscardUnknown()

func (*TermTable) XXX_Marshal

func (m *TermTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TermTable) XXX_Merge

func (m *TermTable) XXX_Merge(src proto.Message)

func (*TermTable) XXX_Size

func (m *TermTable) XXX_Size() int

func (*TermTable) XXX_Unmarshal

func (m *TermTable) XXX_Unmarshal(b []byte) error

type TriggerDesc

type TriggerDesc struct {
	Height               int64             `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Module               string            `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	Method               string            `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	Args                 map[string][]byte `` /* 149-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

TriggerDesc

func (*TriggerDesc) Descriptor

func (*TriggerDesc) Descriptor() ([]byte, []int)

func (*TriggerDesc) GetArgs

func (m *TriggerDesc) GetArgs() map[string][]byte

func (*TriggerDesc) GetHeight

func (m *TriggerDesc) GetHeight() int64

func (*TriggerDesc) GetMethod

func (m *TriggerDesc) GetMethod() string

func (*TriggerDesc) GetModule

func (m *TriggerDesc) GetModule() string

func (*TriggerDesc) ProtoMessage

func (*TriggerDesc) ProtoMessage()

func (*TriggerDesc) Reset

func (m *TriggerDesc) Reset()

func (*TriggerDesc) String

func (m *TriggerDesc) String() string

func (*TriggerDesc) XXX_DiscardUnknown

func (m *TriggerDesc) XXX_DiscardUnknown()

func (*TriggerDesc) XXX_Marshal

func (m *TriggerDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TriggerDesc) XXX_Merge

func (m *TriggerDesc) XXX_Merge(src proto.Message)

func (*TriggerDesc) XXX_Size

func (m *TriggerDesc) XXX_Size() int

func (*TriggerDesc) XXX_Unmarshal

func (m *TriggerDesc) XXX_Unmarshal(b []byte) error

type TxInput

type TxInput struct {
	// The transaction id referenced to
	RefTxid []byte `protobuf:"bytes,1,opt,name=ref_txid,json=refTxid,proto3" json:"ref_txid,omitempty"`
	// The output offset of the transaction referenced to
	RefOffset int32 `protobuf:"varint,2,opt,name=ref_offset,json=refOffset,proto3" json:"ref_offset,omitempty"`
	// The address of the launcher
	FromAddr []byte `protobuf:"bytes,5,opt,name=from_addr,json=fromAddr,proto3" json:"from_addr,omitempty"`
	// The amount of the transaction
	Amount []byte `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`
	// Frozen height
	FrozenHeight         int64    `protobuf:"varint,7,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Transaction input

func (*TxInput) Descriptor

func (*TxInput) Descriptor() ([]byte, []int)

func (*TxInput) GetAmount

func (m *TxInput) GetAmount() []byte

func (*TxInput) GetFromAddr

func (m *TxInput) GetFromAddr() []byte

func (*TxInput) GetFrozenHeight

func (m *TxInput) GetFrozenHeight() int64

func (*TxInput) GetRefOffset

func (m *TxInput) GetRefOffset() int32

func (*TxInput) GetRefTxid

func (m *TxInput) GetRefTxid() []byte

func (*TxInput) ProtoMessage

func (*TxInput) ProtoMessage()

func (*TxInput) Reset

func (m *TxInput) Reset()

func (*TxInput) String

func (m *TxInput) String() string

func (*TxInput) XXX_DiscardUnknown

func (m *TxInput) XXX_DiscardUnknown()

func (*TxInput) XXX_Marshal

func (m *TxInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxInput) XXX_Merge

func (m *TxInput) XXX_Merge(src proto.Message)

func (*TxInput) XXX_Size

func (m *TxInput) XXX_Size() int

func (*TxInput) XXX_Unmarshal

func (m *TxInput) XXX_Unmarshal(b []byte) error

type TxInputExt

type TxInputExt struct {
	Bucket               string   `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Key                  []byte   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	RefTxid              []byte   `protobuf:"bytes,3,opt,name=ref_txid,json=refTxid,proto3" json:"ref_txid,omitempty"`
	RefOffset            int32    `protobuf:"varint,4,opt,name=ref_offset,json=refOffset,proto3" json:"ref_offset,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

扩展输入

func (*TxInputExt) Descriptor

func (*TxInputExt) Descriptor() ([]byte, []int)

func (*TxInputExt) GetBucket

func (m *TxInputExt) GetBucket() string

func (*TxInputExt) GetKey

func (m *TxInputExt) GetKey() []byte

func (*TxInputExt) GetRefOffset

func (m *TxInputExt) GetRefOffset() int32

func (*TxInputExt) GetRefTxid

func (m *TxInputExt) GetRefTxid() []byte

func (*TxInputExt) ProtoMessage

func (*TxInputExt) ProtoMessage()

func (*TxInputExt) Reset

func (m *TxInputExt) Reset()

func (*TxInputExt) String

func (m *TxInputExt) String() string

func (*TxInputExt) XXX_DiscardUnknown

func (m *TxInputExt) XXX_DiscardUnknown()

func (*TxInputExt) XXX_Marshal

func (m *TxInputExt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxInputExt) XXX_Merge

func (m *TxInputExt) XXX_Merge(src proto.Message)

func (*TxInputExt) XXX_Size

func (m *TxInputExt) XXX_Size() int

func (*TxInputExt) XXX_Unmarshal

func (m *TxInputExt) XXX_Unmarshal(b []byte) error

type TxOutput

type TxOutput struct {
	// The amount of the transaction
	Amount []byte `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// The address of the launcher
	ToAddr []byte `protobuf:"bytes,2,opt,name=to_addr,json=toAddr,proto3" json:"to_addr,omitempty"`
	// Fronzen height
	FrozenHeight         int64    `protobuf:"varint,4,opt,name=frozen_height,json=frozenHeight,proto3" json:"frozen_height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Transaction output

func (*TxOutput) Descriptor

func (*TxOutput) Descriptor() ([]byte, []int)

func (*TxOutput) GetAmount

func (m *TxOutput) GetAmount() []byte

func (*TxOutput) GetFrozenHeight

func (m *TxOutput) GetFrozenHeight() int64

func (*TxOutput) GetToAddr

func (m *TxOutput) GetToAddr() []byte

func (*TxOutput) ProtoMessage

func (*TxOutput) ProtoMessage()

func (*TxOutput) Reset

func (m *TxOutput) Reset()

func (*TxOutput) String

func (m *TxOutput) String() string

func (*TxOutput) XXX_DiscardUnknown

func (m *TxOutput) XXX_DiscardUnknown()

func (*TxOutput) XXX_Marshal

func (m *TxOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxOutput) XXX_Merge

func (m *TxOutput) XXX_Merge(src proto.Message)

func (*TxOutput) XXX_Size

func (m *TxOutput) XXX_Size() int

func (*TxOutput) XXX_Unmarshal

func (m *TxOutput) XXX_Unmarshal(b []byte) error

type TxOutputExt

type TxOutputExt struct {
	Bucket               string   `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Key                  []byte   `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Value                []byte   `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

扩展输出

func (*TxOutputExt) Descriptor

func (*TxOutputExt) Descriptor() ([]byte, []int)

func (*TxOutputExt) GetBucket

func (m *TxOutputExt) GetBucket() string

func (*TxOutputExt) GetKey

func (m *TxOutputExt) GetKey() []byte

func (*TxOutputExt) GetValue

func (m *TxOutputExt) GetValue() []byte

func (*TxOutputExt) ProtoMessage

func (*TxOutputExt) ProtoMessage()

func (*TxOutputExt) Reset

func (m *TxOutputExt) Reset()

func (*TxOutputExt) String

func (m *TxOutputExt) String() string

func (*TxOutputExt) XXX_DiscardUnknown

func (m *TxOutputExt) XXX_DiscardUnknown()

func (*TxOutputExt) XXX_Marshal

func (m *TxOutputExt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxOutputExt) XXX_Merge

func (m *TxOutputExt) XXX_Merge(src proto.Message)

func (*TxOutputExt) XXX_Size

func (m *TxOutputExt) XXX_Size() int

func (*TxOutputExt) XXX_Unmarshal

func (m *TxOutputExt) XXX_Unmarshal(b []byte) error

type UnimplementedEventServiceServer

type UnimplementedEventServiceServer struct {
}

UnimplementedEventServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedEventServiceServer) Subscribe

type UnimplementedP2PServiceServer

type UnimplementedP2PServiceServer struct {
}

UnimplementedP2PServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedP2PServiceServer) SendP2PMessage

type VerificationInfo

type VerificationInfo struct {
	//总票数
	Total string `protobuf:"bytes,1,opt,name=total,proto3" json:"total,omitempty"`
	//分成比
	Ratio int32 `protobuf:"varint,2,opt,name=ratio,proto3" json:"ratio,omitempty"`
	//投票百分比
	Percentage string `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"`
	//我的票数
	MyTotal              string   `protobuf:"bytes,4,opt,name=my_total,json=myTotal,proto3" json:"my_total,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VerificationInfo) Descriptor

func (*VerificationInfo) Descriptor() ([]byte, []int)

func (*VerificationInfo) GetMyTotal

func (m *VerificationInfo) GetMyTotal() string

func (*VerificationInfo) GetPercentage

func (m *VerificationInfo) GetPercentage() string

func (*VerificationInfo) GetRatio

func (m *VerificationInfo) GetRatio() int32

func (*VerificationInfo) GetTotal

func (m *VerificationInfo) GetTotal() string

func (*VerificationInfo) ProtoMessage

func (*VerificationInfo) ProtoMessage()

func (*VerificationInfo) Reset

func (m *VerificationInfo) Reset()

func (*VerificationInfo) String

func (m *VerificationInfo) String() string

func (*VerificationInfo) XXX_DiscardUnknown

func (m *VerificationInfo) XXX_DiscardUnknown()

func (*VerificationInfo) XXX_Marshal

func (m *VerificationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerificationInfo) XXX_Merge

func (m *VerificationInfo) XXX_Merge(src proto.Message)

func (*VerificationInfo) XXX_Size

func (m *VerificationInfo) XXX_Size() int

func (*VerificationInfo) XXX_Unmarshal

func (m *VerificationInfo) XXX_Unmarshal(b []byte) error

type VerificationTable

type VerificationTable struct {
	//验证人
	Verification map[string]*VerificationInfo `` /* 165-byte string literal not displayed */
	//候选验证人
	Candidate map[string]*VerificationInfo `` /* 159-byte string literal not displayed */
	//验证人数量
	Len int64 `protobuf:"varint,3,opt,name=len,proto3" json:"len,omitempty"`
	//候选人数量
	LenCandidate int64 `protobuf:"varint,4,opt,name=len_candidate,json=lenCandidate,proto3" json:"len_candidate,omitempty"`
	//出块倒计时
	TimeLeft             int64    `protobuf:"varint,5,opt,name=time_left,json=timeLeft,proto3" json:"time_left,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VerificationTable) Descriptor

func (*VerificationTable) Descriptor() ([]byte, []int)

func (*VerificationTable) GetCandidate

func (m *VerificationTable) GetCandidate() map[string]*VerificationInfo

func (*VerificationTable) GetLen

func (m *VerificationTable) GetLen() int64

func (*VerificationTable) GetLenCandidate

func (m *VerificationTable) GetLenCandidate() int64

func (*VerificationTable) GetTimeLeft

func (m *VerificationTable) GetTimeLeft() int64

func (*VerificationTable) GetVerification

func (m *VerificationTable) GetVerification() map[string]*VerificationInfo

func (*VerificationTable) ProtoMessage

func (*VerificationTable) ProtoMessage()

func (*VerificationTable) Reset

func (m *VerificationTable) Reset()

func (*VerificationTable) String

func (m *VerificationTable) String() string

func (*VerificationTable) XXX_DiscardUnknown

func (m *VerificationTable) XXX_DiscardUnknown()

func (*VerificationTable) XXX_Marshal

func (m *VerificationTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerificationTable) XXX_Merge

func (m *VerificationTable) XXX_Merge(src proto.Message)

func (*VerificationTable) XXX_Size

func (m *VerificationTable) XXX_Size() int

func (*VerificationTable) XXX_Unmarshal

func (m *VerificationTable) XXX_Unmarshal(b []byte) error

type VoteDetailsStatus

type VoteDetailsStatus struct {
	Toaddr  string `protobuf:"bytes,1,opt,name=toaddr,proto3" json:"toaddr,omitempty"`
	Ballots int64  `protobuf:"varint,2,opt,name=ballots,proto3" json:"ballots,omitempty"`
	Ratio   int32  `protobuf:"varint,3,opt,name=ratio,proto3" json:"ratio,omitempty"`
	//当前候选人总票数
	Totalballots         string   `protobuf:"bytes,4,opt,name=totalballots,proto3" json:"totalballots,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VoteDetailsStatus) Descriptor

func (*VoteDetailsStatus) Descriptor() ([]byte, []int)

func (*VoteDetailsStatus) GetBallots

func (m *VoteDetailsStatus) GetBallots() int64

func (*VoteDetailsStatus) GetRatio

func (m *VoteDetailsStatus) GetRatio() int32

func (*VoteDetailsStatus) GetToaddr

func (m *VoteDetailsStatus) GetToaddr() string

func (*VoteDetailsStatus) GetTotalballots

func (m *VoteDetailsStatus) GetTotalballots() string

func (*VoteDetailsStatus) ProtoMessage

func (*VoteDetailsStatus) ProtoMessage()

func (*VoteDetailsStatus) Reset

func (m *VoteDetailsStatus) Reset()

func (*VoteDetailsStatus) String

func (m *VoteDetailsStatus) String() string

func (*VoteDetailsStatus) XXX_DiscardUnknown

func (m *VoteDetailsStatus) XXX_DiscardUnknown()

func (*VoteDetailsStatus) XXX_Marshal

func (m *VoteDetailsStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VoteDetailsStatus) XXX_Merge

func (m *VoteDetailsStatus) XXX_Merge(src proto.Message)

func (*VoteDetailsStatus) XXX_Size

func (m *VoteDetailsStatus) XXX_Size() int

func (*VoteDetailsStatus) XXX_Unmarshal

func (m *VoteDetailsStatus) XXX_Unmarshal(b []byte) error

type WasmCodeDesc

type WasmCodeDesc struct {
	Runtime              string   `protobuf:"bytes,1,opt,name=runtime,proto3" json:"runtime,omitempty"`
	Compiler             string   `protobuf:"bytes,2,opt,name=compiler,proto3" json:"compiler,omitempty"`
	Digest               []byte   `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	VmCompiler           string   `protobuf:"bytes,4,opt,name=vm_compiler,json=vmCompiler,proto3" json:"vm_compiler,omitempty"`
	ContractType         string   `protobuf:"bytes,5,opt,name=contract_type,json=contractType,proto3" json:"contract_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WasmCodeDesc) Descriptor

func (*WasmCodeDesc) Descriptor() ([]byte, []int)

func (*WasmCodeDesc) GetCompiler

func (m *WasmCodeDesc) GetCompiler() string

func (*WasmCodeDesc) GetContractType

func (m *WasmCodeDesc) GetContractType() string

func (*WasmCodeDesc) GetDigest

func (m *WasmCodeDesc) GetDigest() []byte

func (*WasmCodeDesc) GetRuntime

func (m *WasmCodeDesc) GetRuntime() string

func (*WasmCodeDesc) GetVmCompiler

func (m *WasmCodeDesc) GetVmCompiler() string

func (*WasmCodeDesc) ProtoMessage

func (*WasmCodeDesc) ProtoMessage()

func (*WasmCodeDesc) Reset

func (m *WasmCodeDesc) Reset()

func (*WasmCodeDesc) String

func (m *WasmCodeDesc) String() string

func (*WasmCodeDesc) XXX_DiscardUnknown

func (m *WasmCodeDesc) XXX_DiscardUnknown()

func (*WasmCodeDesc) XXX_Marshal

func (m *WasmCodeDesc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WasmCodeDesc) XXX_Merge

func (m *WasmCodeDesc) XXX_Merge(src proto.Message)

func (*WasmCodeDesc) XXX_Size

func (m *WasmCodeDesc) XXX_Size() int

func (*WasmCodeDesc) XXX_Unmarshal

func (m *WasmCodeDesc) XXX_Unmarshal(b []byte) error

type XuperMessage

type XuperMessage struct {
	Header               *XuperMessage_MessageHeader `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"`
	Data                 *XuperMessage_MessageData   `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

XuperMessage is the message of Xuper p2p server

func (*XuperMessage) Descriptor

func (*XuperMessage) Descriptor() ([]byte, []int)

func (*XuperMessage) GetData

func (m *XuperMessage) GetData() *XuperMessage_MessageData

func (*XuperMessage) GetHeader

func (m *XuperMessage) GetHeader() *XuperMessage_MessageHeader

func (*XuperMessage) ProtoMessage

func (*XuperMessage) ProtoMessage()

func (*XuperMessage) Reset

func (m *XuperMessage) Reset()

func (*XuperMessage) String

func (m *XuperMessage) String() string

func (*XuperMessage) XXX_DiscardUnknown

func (m *XuperMessage) XXX_DiscardUnknown()

func (*XuperMessage) XXX_Marshal

func (m *XuperMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*XuperMessage) XXX_Merge

func (m *XuperMessage) XXX_Merge(src proto.Message)

func (*XuperMessage) XXX_Size

func (m *XuperMessage) XXX_Size() int

func (*XuperMessage) XXX_Unmarshal

func (m *XuperMessage) XXX_Unmarshal(b []byte) error

type XuperMessage_ErrorType

type XuperMessage_ErrorType int32
const (
	// success
	XuperMessage_SUCCESS XuperMessage_ErrorType = 0
	XuperMessage_NONE    XuperMessage_ErrorType = 1
	// common error
	XuperMessage_UNKNOW_ERROR             XuperMessage_ErrorType = 2
	XuperMessage_CHECK_SUM_ERROR          XuperMessage_ErrorType = 3
	XuperMessage_UNMARSHAL_MSG_BODY_ERROR XuperMessage_ErrorType = 4
	XuperMessage_CONNECT_REFUSE           XuperMessage_ErrorType = 5
	// block error
	XuperMessage_GET_BLOCKCHAIN_ERROR           XuperMessage_ErrorType = 6
	XuperMessage_BLOCKCHAIN_NOTEXIST            XuperMessage_ErrorType = 7
	XuperMessage_GET_BLOCK_ERROR                XuperMessage_ErrorType = 8
	XuperMessage_CONFIRM_BLOCKCHAINSTATUS_ERROR XuperMessage_ErrorType = 9
	XuperMessage_GET_AUTHENTICATION_ERROR       XuperMessage_ErrorType = 10
	XuperMessage_GET_AUTHENTICATION_NOT_PASS    XuperMessage_ErrorType = 11
)

func (XuperMessage_ErrorType) EnumDescriptor

func (XuperMessage_ErrorType) EnumDescriptor() ([]byte, []int)

func (XuperMessage_ErrorType) String

func (x XuperMessage_ErrorType) String() string

type XuperMessage_MessageData

type XuperMessage_MessageData struct {
	// msgInfo is the message infomation, use protobuf coding style
	MsgInfo              []byte   `protobuf:"bytes,3,opt,name=msgInfo,proto3" json:"msgInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

MessageData is the message data of Xuper p2p server

func (*XuperMessage_MessageData) Descriptor

func (*XuperMessage_MessageData) Descriptor() ([]byte, []int)

func (*XuperMessage_MessageData) GetMsgInfo

func (m *XuperMessage_MessageData) GetMsgInfo() []byte

func (*XuperMessage_MessageData) ProtoMessage

func (*XuperMessage_MessageData) ProtoMessage()

func (*XuperMessage_MessageData) Reset

func (m *XuperMessage_MessageData) Reset()

func (*XuperMessage_MessageData) String

func (m *XuperMessage_MessageData) String() string

func (*XuperMessage_MessageData) XXX_DiscardUnknown

func (m *XuperMessage_MessageData) XXX_DiscardUnknown()

func (*XuperMessage_MessageData) XXX_Marshal

func (m *XuperMessage_MessageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*XuperMessage_MessageData) XXX_Merge

func (m *XuperMessage_MessageData) XXX_Merge(src proto.Message)

func (*XuperMessage_MessageData) XXX_Size

func (m *XuperMessage_MessageData) XXX_Size() int

func (*XuperMessage_MessageData) XXX_Unmarshal

func (m *XuperMessage_MessageData) XXX_Unmarshal(b []byte) error

type XuperMessage_MessageHeader

type XuperMessage_MessageHeader struct {
	Version              string                   `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	Logid                string                   `protobuf:"bytes,2,opt,name=logid,proto3" json:"logid,omitempty"`
	From                 string                   `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	Bcname               string                   `protobuf:"bytes,4,opt,name=bcname,proto3" json:"bcname,omitempty"`
	Type                 XuperMessage_MessageType `protobuf:"varint,5,opt,name=type,proto3,enum=protos.XuperMessage_MessageType" json:"type,omitempty"`
	DataCheckSum         uint32                   `protobuf:"varint,6,opt,name=dataCheckSum,proto3" json:"dataCheckSum,omitempty"`
	ErrorType            XuperMessage_ErrorType   `protobuf:"varint,7,opt,name=errorType,proto3,enum=protos.XuperMessage_ErrorType" json:"errorType,omitempty"`
	EnableCompress       bool                     `protobuf:"varint,8,opt,name=enableCompress,proto3" json:"enableCompress,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

MessageHeader is the message header of Xuper p2p server

func (*XuperMessage_MessageHeader) Descriptor

func (*XuperMessage_MessageHeader) Descriptor() ([]byte, []int)

func (*XuperMessage_MessageHeader) GetBcname

func (m *XuperMessage_MessageHeader) GetBcname() string

func (*XuperMessage_MessageHeader) GetDataCheckSum

func (m *XuperMessage_MessageHeader) GetDataCheckSum() uint32

func (*XuperMessage_MessageHeader) GetEnableCompress

func (m *XuperMessage_MessageHeader) GetEnableCompress() bool

func (*XuperMessage_MessageHeader) GetErrorType

func (*XuperMessage_MessageHeader) GetFrom

func (m *XuperMessage_MessageHeader) GetFrom() string

func (*XuperMessage_MessageHeader) GetLogid

func (m *XuperMessage_MessageHeader) GetLogid() string

func (*XuperMessage_MessageHeader) GetType

func (*XuperMessage_MessageHeader) GetVersion

func (m *XuperMessage_MessageHeader) GetVersion() string

func (*XuperMessage_MessageHeader) ProtoMessage

func (*XuperMessage_MessageHeader) ProtoMessage()

func (*XuperMessage_MessageHeader) Reset

func (m *XuperMessage_MessageHeader) Reset()

func (*XuperMessage_MessageHeader) String

func (m *XuperMessage_MessageHeader) String() string

func (*XuperMessage_MessageHeader) XXX_DiscardUnknown

func (m *XuperMessage_MessageHeader) XXX_DiscardUnknown()

func (*XuperMessage_MessageHeader) XXX_Marshal

func (m *XuperMessage_MessageHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*XuperMessage_MessageHeader) XXX_Merge

func (m *XuperMessage_MessageHeader) XXX_Merge(src proto.Message)

func (*XuperMessage_MessageHeader) XXX_Size

func (m *XuperMessage_MessageHeader) XXX_Size() int

func (*XuperMessage_MessageHeader) XXX_Unmarshal

func (m *XuperMessage_MessageHeader) XXX_Unmarshal(b []byte) error

type XuperMessage_MessageType

type XuperMessage_MessageType int32
const (
	XuperMessage_SENDBLOCK                XuperMessage_MessageType = 0
	XuperMessage_POSTTX                   XuperMessage_MessageType = 1
	XuperMessage_BATCHPOSTTX              XuperMessage_MessageType = 2
	XuperMessage_GET_BLOCK                XuperMessage_MessageType = 3
	XuperMessage_PING                     XuperMessage_MessageType = 4
	XuperMessage_GET_BLOCKCHAINSTATUS     XuperMessage_MessageType = 5
	XuperMessage_GET_BLOCK_RES            XuperMessage_MessageType = 6
	XuperMessage_GET_BLOCKCHAINSTATUS_RES XuperMessage_MessageType = 7
	// 向邻近确认区块是否为最新状态区块
	XuperMessage_CONFIRM_BLOCKCHAINSTATUS     XuperMessage_MessageType = 8
	XuperMessage_CONFIRM_BLOCKCHAINSTATUS_RES XuperMessage_MessageType = 9
	XuperMessage_MSG_TYPE_NONE                XuperMessage_MessageType = 10
	// query RPC port information
	XuperMessage_GET_RPC_PORT     XuperMessage_MessageType = 11
	XuperMessage_GET_RPC_PORT_RES XuperMessage_MessageType = 12
	// get authentication information
	XuperMessage_GET_AUTHENTICATION     XuperMessage_MessageType = 13
	XuperMessage_GET_AUTHENTICATION_RES XuperMessage_MessageType = 14
	// chained-bft NEW_VIEW message
	XuperMessage_CHAINED_BFT_NEW_VIEW_MSG XuperMessage_MessageType = 15
	// chained-bft NEW_PROPOSAL message
	XuperMessage_CHAINED_BFT_NEW_PROPOSAL_MSG XuperMessage_MessageType = 16
	// chained-bft vote message
	XuperMessage_CHAINED_BFT_VOTE_MSG XuperMessage_MessageType = 17
	// broadcast new block id to other node
	XuperMessage_NEW_BLOCKID XuperMessage_MessageType = 18
	// new node used to add to network automatic
	XuperMessage_NEW_NODE XuperMessage_MessageType = 19
	// 消息头同步对(GET_HASHES <-> HASHES),
	// 发送方通过GET_HASHES消息询问区间范围内的所有区块哈希信息,
	// 接受方发送HASHES信息, 该消息携带其所知的区间范围内的BlockId列表
	XuperMessage_GET_BLOCKIDS     XuperMessage_MessageType = 20
	XuperMessage_GET_BLOCKIDS_RES XuperMessage_MessageType = 21
	// 消息对(GET_BLOCKS <-> BLOCKS),
	// 发送方通过GET_BLOCKS消息询问BlockId列表内的所有对应区块信息,
	// 接受方发送BLOCKS信息, 该消息携带具体Block
	XuperMessage_GET_BLOCKS        XuperMessage_MessageType = 22
	XuperMessage_GET_BLOCKS_RES    XuperMessage_MessageType = 23
	XuperMessage_GET_PEER_INFO     XuperMessage_MessageType = 24
	XuperMessage_GET_PEER_INFO_RES XuperMessage_MessageType = 25
)

func (XuperMessage_MessageType) EnumDescriptor

func (XuperMessage_MessageType) EnumDescriptor() ([]byte, []int)

func (XuperMessage_MessageType) String

func (x XuperMessage_MessageType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL