protos

package
v0.0.0-...-56f3d1a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 45

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",
	26: "GET_BLOCK_HEADERS",
	27: "GET_BLOCKS_HEADERS_RES",
	28: "GET_BLOCK_TXS",
	29: "GET_BLOCKS_TXS_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,
	"GET_BLOCK_HEADERS":            26,
	"GET_BLOCKS_HEADERS_RES":       27,
	"GET_BLOCK_TXS":                28,
	"GET_BLOCKS_TXS_RES":           29,
}

Functions

func RegisterEventServiceServer

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

func RegisterP2PServiceServer

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

Types

type AK2AccountRequest

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

func (*AK2AccountRequest) Descriptor

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

func (*AK2AccountRequest) GetAddress

func (m *AK2AccountRequest) GetAddress() string

func (*AK2AccountRequest) GetBcname

func (m *AK2AccountRequest) GetBcname() string

func (*AK2AccountRequest) ProtoMessage

func (*AK2AccountRequest) ProtoMessage()

func (*AK2AccountRequest) Reset

func (m *AK2AccountRequest) Reset()

func (*AK2AccountRequest) String

func (m *AK2AccountRequest) String() string

func (*AK2AccountRequest) XXX_DiscardUnknown

func (m *AK2AccountRequest) XXX_DiscardUnknown()

func (*AK2AccountRequest) XXX_Marshal

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

func (*AK2AccountRequest) XXX_Merge

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

func (*AK2AccountRequest) XXX_Size

func (m *AK2AccountRequest) XXX_Size() int

func (*AK2AccountRequest) XXX_Unmarshal

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

type AK2AccountResponse

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

func (*AK2AccountResponse) Descriptor

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

func (*AK2AccountResponse) GetAccount

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

func (*AK2AccountResponse) GetBcname

func (m *AK2AccountResponse) GetBcname() string

func (*AK2AccountResponse) ProtoMessage

func (*AK2AccountResponse) ProtoMessage()

func (*AK2AccountResponse) Reset

func (m *AK2AccountResponse) Reset()

func (*AK2AccountResponse) String

func (m *AK2AccountResponse) String() string

func (*AK2AccountResponse) XXX_DiscardUnknown

func (m *AK2AccountResponse) XXX_DiscardUnknown()

func (*AK2AccountResponse) XXX_Marshal

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

func (*AK2AccountResponse) XXX_Merge

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

func (*AK2AccountResponse) XXX_Size

func (m *AK2AccountResponse) XXX_Size() int

func (*AK2AccountResponse) XXX_Unmarshal

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

type Acl

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

Acl实际使用的结构

func (*Acl) Descriptor

func (*Acl) 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 BlockFilter

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

func (*BlockFilter) Descriptor

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

func (*BlockFilter) GetAuthRequire

func (m *BlockFilter) GetAuthRequire() string

func (*BlockFilter) GetBcname

func (m *BlockFilter) GetBcname() string

func (*BlockFilter) GetContract

func (m *BlockFilter) GetContract() string

func (*BlockFilter) GetEventName

func (m *BlockFilter) GetEventName() string

func (*BlockFilter) GetExcludeTx

func (m *BlockFilter) GetExcludeTx() bool

func (*BlockFilter) GetExcludeTxEvent

func (m *BlockFilter) GetExcludeTxEvent() bool

func (*BlockFilter) GetFromAddr

func (m *BlockFilter) GetFromAddr() string

func (*BlockFilter) GetInitiator

func (m *BlockFilter) GetInitiator() string

func (*BlockFilter) GetRange

func (m *BlockFilter) GetRange() *BlockRange

func (*BlockFilter) GetToAddr

func (m *BlockFilter) GetToAddr() string

func (*BlockFilter) ProtoMessage

func (*BlockFilter) ProtoMessage()

func (*BlockFilter) Reset

func (m *BlockFilter) Reset()

func (*BlockFilter) String

func (m *BlockFilter) String() string

func (*BlockFilter) XXX_DiscardUnknown

func (m *BlockFilter) XXX_DiscardUnknown()

func (*BlockFilter) XXX_Marshal

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

func (*BlockFilter) XXX_Merge

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

func (*BlockFilter) XXX_Size

func (m *BlockFilter) XXX_Size() int

func (*BlockFilter) XXX_Unmarshal

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

type BlockRange

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

func (*BlockRange) Descriptor

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

func (*BlockRange) GetEnd

func (m *BlockRange) GetEnd() string

func (*BlockRange) GetStart

func (m *BlockRange) GetStart() string

func (*BlockRange) ProtoMessage

func (*BlockRange) ProtoMessage()

func (*BlockRange) Reset

func (m *BlockRange) Reset()

func (*BlockRange) String

func (m *BlockRange) String() string

func (*BlockRange) XXX_DiscardUnknown

func (m *BlockRange) XXX_DiscardUnknown()

func (*BlockRange) XXX_Marshal

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

func (*BlockRange) XXX_Merge

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

func (*BlockRange) XXX_Size

func (m *BlockRange) XXX_Size() int

func (*BlockRange) XXX_Unmarshal

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

type ContractEvent

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

func (*ContractEvent) Descriptor

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

func (*ContractEvent) GetBody

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

func (*ContractEvent) GetContract

func (m *ContractEvent) GetContract() string

func (*ContractEvent) GetName

func (m *ContractEvent) GetName() string

func (*ContractEvent) ProtoMessage

func (*ContractEvent) ProtoMessage()

func (*ContractEvent) Reset

func (m *ContractEvent) Reset()

func (*ContractEvent) String

func (m *ContractEvent) String() string

func (*ContractEvent) XXX_DiscardUnknown

func (m *ContractEvent) XXX_DiscardUnknown()

func (*ContractEvent) XXX_Marshal

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

func (*ContractEvent) XXX_Merge

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

func (*ContractEvent) XXX_Size

func (m *ContractEvent) XXX_Size() int

func (*ContractEvent) XXX_Unmarshal

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

type ContractResponse

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

ContractResponse is the response returnd by contract

func (*ContractResponse) Descriptor

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

func (*ContractResponse) GetBody

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

func (*ContractResponse) GetMessage

func (m *ContractResponse) GetMessage() string

func (*ContractResponse) GetStatus

func (m *ContractResponse) GetStatus() int32

func (*ContractResponse) ProtoMessage

func (*ContractResponse) ProtoMessage()

func (*ContractResponse) Reset

func (m *ContractResponse) Reset()

func (*ContractResponse) String

func (m *ContractResponse) String() string

func (*ContractResponse) XXX_DiscardUnknown

func (m *ContractResponse) XXX_DiscardUnknown()

func (*ContractResponse) XXX_Marshal

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

func (*ContractResponse) XXX_Merge

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

func (*ContractResponse) XXX_Size

func (m *ContractResponse) XXX_Size() int

func (*ContractResponse) XXX_Unmarshal

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

type ContractStatData

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

func (*ContractStatData) Descriptor

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

func (*ContractStatData) GetAccountCount

func (m *ContractStatData) GetAccountCount() int64

func (*ContractStatData) GetContractCount

func (m *ContractStatData) GetContractCount() int64

func (*ContractStatData) ProtoMessage

func (*ContractStatData) ProtoMessage()

func (*ContractStatData) Reset

func (m *ContractStatData) Reset()

func (*ContractStatData) String

func (m *ContractStatData) String() string

func (*ContractStatData) XXX_DiscardUnknown

func (m *ContractStatData) XXX_DiscardUnknown()

func (*ContractStatData) XXX_Marshal

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

func (*ContractStatData) XXX_Merge

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

func (*ContractStatData) XXX_Size

func (m *ContractStatData) XXX_Size() int

func (*ContractStatData) XXX_Unmarshal

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

type ContractStatus

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

Status of a contract

func (*ContractStatus) Descriptor

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

func (*ContractStatus) GetContractName

func (m *ContractStatus) GetContractName() string

func (*ContractStatus) GetDesc

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

func (*ContractStatus) GetIsBanned

func (m *ContractStatus) GetIsBanned() bool

func (*ContractStatus) GetRuntime

func (m *ContractStatus) GetRuntime() string

func (*ContractStatus) GetTimestamp

func (m *ContractStatus) GetTimestamp() int64

func (*ContractStatus) GetTxid

func (m *ContractStatus) GetTxid() string

func (*ContractStatus) ProtoMessage

func (*ContractStatus) ProtoMessage()

func (*ContractStatus) Reset

func (m *ContractStatus) Reset()

func (*ContractStatus) String

func (m *ContractStatus) String() string

func (*ContractStatus) XXX_DiscardUnknown

func (m *ContractStatus) XXX_DiscardUnknown()

func (*ContractStatus) XXX_Marshal

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

func (*ContractStatus) XXX_Merge

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

func (*ContractStatus) XXX_Size

func (m *ContractStatus) XXX_Size() int

func (*ContractStatus) XXX_Unmarshal

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

type Event

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

func (*Event) Descriptor

func (*Event) 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 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 P2PServiceClient

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

P2PServiceClient is the client API for P2PService service.

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

func NewP2PServiceClient

func NewP2PServiceClient(cc *grpc.ClientConn) P2PServiceClient

type P2PServiceServer

type P2PServiceServer interface {
	SendP2PMessage(P2PService_SendP2PMessageServer) error
}

P2PServiceServer is the server API for P2PService service.

type P2PService_SendP2PMessageClient

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

type P2PService_SendP2PMessageServer

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

type PeerInfo

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

func (*PeerInfo) Descriptor

func (*PeerInfo) 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 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 ProposalStatus

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

func (ProposalStatus) EnumDescriptor

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

func (ProposalStatus) String

func (x ProposalStatus) String() string

type ResourceLimit

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

func (*ResourceLimit) Descriptor

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

func (*ResourceLimit) GetLimit

func (m *ResourceLimit) GetLimit() int64

func (*ResourceLimit) GetType

func (m *ResourceLimit) GetType() ResourceType

func (*ResourceLimit) ProtoMessage

func (*ResourceLimit) ProtoMessage()

func (*ResourceLimit) Reset

func (m *ResourceLimit) Reset()

func (*ResourceLimit) String

func (m *ResourceLimit) String() string

func (*ResourceLimit) XXX_DiscardUnknown

func (m *ResourceLimit) XXX_DiscardUnknown()

func (*ResourceLimit) XXX_Marshal

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

func (*ResourceLimit) XXX_Merge

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

func (*ResourceLimit) XXX_Size

func (m *ResourceLimit) XXX_Size() int

func (*ResourceLimit) XXX_Unmarshal

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

type ResourceType

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

func (ResourceType) EnumDescriptor

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

func (ResourceType) String

func (x ResourceType) String() string

type SignatureInfo

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

签名详情

func (*SignatureInfo) Descriptor

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

func (*SignatureInfo) GetPublicKey

func (m *SignatureInfo) GetPublicKey() string

func (*SignatureInfo) GetSign

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

func (*SignatureInfo) ProtoMessage

func (*SignatureInfo) ProtoMessage()

func (*SignatureInfo) Reset

func (m *SignatureInfo) Reset()

func (*SignatureInfo) String

func (m *SignatureInfo) String() string

func (*SignatureInfo) XXX_DiscardUnknown

func (m *SignatureInfo) XXX_DiscardUnknown()

func (*SignatureInfo) XXX_Marshal

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

func (*SignatureInfo) XXX_Merge

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

func (*SignatureInfo) XXX_Size

func (m *SignatureInfo) XXX_Size() int

func (*SignatureInfo) XXX_Unmarshal

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

type SubscribeRequest

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

func (*SubscribeRequest) Descriptor

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

func (*SubscribeRequest) GetFilter

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

func (*SubscribeRequest) GetType

func (m *SubscribeRequest) GetType() SubscribeType

func (*SubscribeRequest) ProtoMessage

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) Reset

func (m *SubscribeRequest) Reset()

func (*SubscribeRequest) String

func (m *SubscribeRequest) String() string

func (*SubscribeRequest) XXX_DiscardUnknown

func (m *SubscribeRequest) XXX_DiscardUnknown()

func (*SubscribeRequest) XXX_Marshal

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

func (*SubscribeRequest) XXX_Merge

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

func (*SubscribeRequest) XXX_Size

func (m *SubscribeRequest) XXX_Size() int

func (*SubscribeRequest) XXX_Unmarshal

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

type SubscribeType

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

func (SubscribeType) EnumDescriptor

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

func (SubscribeType) String

func (x SubscribeType) String() string

type TriggerDesc

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

TriggerDesc

func (*TriggerDesc) Descriptor

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

func (*TriggerDesc) GetArgs

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

func (*TriggerDesc) GetHeight

func (m *TriggerDesc) GetHeight() int64

func (*TriggerDesc) GetMethod

func (m *TriggerDesc) GetMethod() string

func (*TriggerDesc) GetModule

func (m *TriggerDesc) GetModule() string

func (*TriggerDesc) ProtoMessage

func (*TriggerDesc) ProtoMessage()

func (*TriggerDesc) Reset

func (m *TriggerDesc) Reset()

func (*TriggerDesc) String

func (m *TriggerDesc) String() string

func (*TriggerDesc) XXX_DiscardUnknown

func (m *TriggerDesc) XXX_DiscardUnknown()

func (*TriggerDesc) XXX_Marshal

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

func (*TriggerDesc) XXX_Merge

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

func (*TriggerDesc) XXX_Size

func (m *TriggerDesc) XXX_Size() int

func (*TriggerDesc) XXX_Unmarshal

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

type TxInput

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

Transaction input

func (*TxInput) Descriptor

func (*TxInput) 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 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
	XuperMessage_GET_BLOCK_HEADERS      XuperMessage_MessageType = 26
	XuperMessage_GET_BLOCKS_HEADERS_RES XuperMessage_MessageType = 27
	XuperMessage_GET_BLOCK_TXS          XuperMessage_MessageType = 28
	XuperMessage_GET_BLOCKS_TXS_RES     XuperMessage_MessageType = 29
)

func (XuperMessage_MessageType) EnumDescriptor

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

func (XuperMessage_MessageType) String

func (x XuperMessage_MessageType) String() string

Jump to

Keyboard shortcuts

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