Commit 44887f8c authored by harrylee's avatar harrylee

add interchainGet and execute method

parent 659d1455
...@@ -13,6 +13,7 @@ import ( ...@@ -13,6 +13,7 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"strconv"
"strings" "strings"
"time" "time"
...@@ -317,15 +318,81 @@ func (client *JSONClient) Invoke(requst *Request, privateKey string) (*Response, ...@@ -317,15 +318,81 @@ func (client *JSONClient) Invoke(requst *Request, privateKey string) (*Response,
} }
// TODO 执行请求 // TODO 执行请求
func (client *JSONClient) Execute(requst *Request) (*Response, error) { func (client *JSONClient) Execute(requst *Request,privateKey string) (*Response, error) {
//err := client.Call(Chain33_QueryTransaction, query, &detail) if requst.Exec == broker.BrokerX{
//if err != nil { switch requst.Fcn {
// return nil, err case "invokeInterchain":
//} srcChainServiceID := string(requst.Args[0])
// sequenceNum,err := strconv.ParseUint(string(requst.Args[1]), 10, 64)
//return &detail, nil if err != nil {
return nil,fmt.Errorf("cannot parse %s to uint64", string(requst.Args[1]))
}
targetCID := string(requst.Args[2])
reqType, err := strconv.ParseUint(string(requst.Args[3]), 10, 64)
if err != nil {
return nil,fmt.Errorf("cannot parse %s to uint64", string(requst.Args[3]))
}
if tx, err := broker.UpdateIndex("",srcChainServiceID, targetCID,sequenceNum, reqType,nil); err == nil {
resp,err:=client.SendTransactionSync(privateKey,tx)
if err !=nil {
return resp,err
}
//splitedCID[1]就是合约名称
splitedCID := strings.Split(targetCID, "&")
if len(splitedCID) != 2 {
return nil,fmt.Errorf("Target chaincode id %s is not valid", targetCID)
}
callFunc := &CallFunc{}
if err := json.Unmarshal(requst.Args[4], callFunc); err != nil {
return nil,fmt.Errorf("unmarshal call func failed for %s", requst.Args[4])
}
// 调用相应链码, (链码名称,参数,通道名称)
if splitedCID[1] == storage.StorageX{
//interchainGet方法是在sdk封装的,用于支持跨链之前数据的查询
switch callFunc.Func {
case "interchainGet":
return client.InterChainGet(string(callFunc.Args[0]))
}
}else{
return nil,fmt.Errorf("can't support exec %s",splitedCID[1])
}
}
}
}
return nil, nil
}
//包装适配跨链插件调用
func (client *JSONClient) InterChainSet(key,value string) (*Response, error) {
return nil, nil return nil, nil
} }
//包装适配跨链插件调用
func (client *JSONClient) InterChainGet(key string) (*Response, error) {
jsonraw, err := json.Marshal(&types.QueryStorage{TxHash: key})
if err != nil {
return nil, err
}
query := Query4Jrpc{
Execer: client.prefix + storage.StorageX,
FuncName: storage.FuncNameQueryStorage,
Payload: jsonraw,
}
// var storage types.Storage
data, err := client.CallBack("Chain33.Query", query, ParseStorage)
if err != nil {
return nil, err
}
storage :=data.(*types.Storage)
//这里暂时就去明文存证内容
resp := &Response{OK:true,Message:key,Data:storage.GetContentStorage().GetContent()}
return resp, nil
}
// 简单实现交易时间监听功能,后面换成grpc长链接方式监听 // 简单实现交易时间监听功能,后面换成grpc长链接方式监听
func (client *JSONClient) RegisterTxEvent(start int64, ccID, eventFilter string) (chan<- event.Registration, <-chan *event.CCEvent, <-chan error) { func (client *JSONClient) RegisterTxEvent(start int64, ccID, eventFilter string) (chan<- event.Registration, <-chan *event.CCEvent, <-chan error) {
......
package client
import (
"encoding/json"
"fmt"
"gitlab.33.cn/link33/chain33-sdk-go/dapp/storage"
"gitlab.33.cn/link33/chain33-sdk-go/types"
. "github.com/bitly/go-simplejson"
)
// 回调解析函数
func ParseStorage(raw json.RawMessage) (interface{}, error) {
js, err := NewJson(raw)
if err != nil {
return nil, err
}
if contentStorge, ok := js.CheckGet("contentStorage"); ok {
contentHex, _ := contentStorge.Get("content").String()
content, _ := types.FromHex(contentHex)
key, _ := contentStorge.Get("key").String()
value, _ := contentStorge.Get("value").String()
op, _ := contentStorge.Get("op").Int()
storage := &types.Storage{Ty: storage.TyContentStorageAction, Value: &types.Storage_ContentStorage{ContentStorage: &types.ContentOnlyNotaryStorage{
Content: content,
Key: key,
Op: int32(op),
Value: value,
XXX_NoUnkeyedLiteral: struct{}{},
XXX_unrecognized: nil,
XXX_sizecache: 0,
}}}
return storage, nil
}
if linkStorge, ok := js.CheckGet("linkStorage"); ok {
linkHex, _ := linkStorge.Get("link").String()
link, _ := types.FromHex(linkHex)
key, _ := linkStorge.Get("key").String()
value, _ := linkStorge.Get("value").String()
storage := &types.Storage{Ty: storage.TyLinkStorageAction, Value: &types.Storage_LinkStorage{LinkStorage: &types.LinkNotaryStorage{
Link: link,
Key: key,
Value: value,
XXX_NoUnkeyedLiteral: struct{}{},
XXX_unrecognized: nil,
XXX_sizecache: 0,
}}}
return storage, nil
}
if hashStorge, ok := js.CheckGet("hashStorage"); ok {
hashHex, _ := hashStorge.Get("hash").String()
hash, _ := types.FromHex(hashHex)
key, _ := hashStorge.Get("key").String()
value, _ := hashStorge.Get("value").String()
storage := &types.Storage{Ty: storage.TyHashStorageAction, Value: &types.Storage_HashStorage{HashStorage: &types.HashOnlyNotaryStorage{
Hash: hash,
Key: key,
Value: value,
XXX_NoUnkeyedLiteral: struct{}{},
XXX_unrecognized: nil,
XXX_sizecache: 0,
}}}
return storage, nil
}
if encryptStorage, ok := js.CheckGet("encryptStorage"); ok {
contentHashHex, _ := encryptStorage.Get("contentHash").String()
contentHash, _ := types.FromHex(contentHashHex)
encryptContentHex, _ := encryptStorage.Get("encryptContent").String()
encryptContent, _ := types.FromHex(encryptContentHex)
nonceHex, _ := encryptStorage.Get("nonce").String()
nonce, _ := types.FromHex(nonceHex)
key, _ := encryptStorage.Get("key").String()
value, _ := encryptStorage.Get("value").String()
storage := &types.Storage{Ty: storage.TyEncryptStorageAction, Value: &types.Storage_EncryptStorage{EncryptStorage: &types.EncryptNotaryStorage{
EncryptContent: encryptContent,
ContentHash: contentHash,
Nonce: nonce,
Key: key,
Value: value,
XXX_NoUnkeyedLiteral: struct{}{},
XXX_unrecognized: nil,
XXX_sizecache: 0,
}}}
return storage, nil
}
if encryptStorage, ok := js.CheckGet("encryptShareStorage"); ok {
contentHashHex, _ := encryptStorage.Get("contentHash").String()
contentHash, _ := types.FromHex(contentHashHex)
encryptContentHex, _ := encryptStorage.Get("encryptContent").String()
encryptContent, _ := types.FromHex(encryptContentHex)
pubKeyHex, _ := encryptStorage.Get("pubKey").String()
pubKey, _ := types.FromHex(pubKeyHex)
key, _ := encryptStorage.Get("key").String()
value, _ := encryptStorage.Get("value").String()
storage := &types.Storage{Ty: storage.TyEncryptShareStorageAction, Value: &types.Storage_EncryptShareStorage{EncryptShareStorage: &types.EncryptShareNotaryStorage{
EncryptContent: encryptContent,
ContentHash: contentHash,
PubKey: pubKey,
Key: key,
Value: value,
XXX_NoUnkeyedLiteral: struct{}{},
XXX_unrecognized: nil,
XXX_sizecache: 0,
}}}
return storage, nil
}
return nil, fmt.Errorf("unknow type!")
}
...@@ -360,3 +360,8 @@ type Response struct { ...@@ -360,3 +360,8 @@ type Response struct {
Message string `json:"message"` Message string `json:"message"`
Data []byte `json:"data"` Data []byte `json:"data"`
} }
type CallFunc struct {
Func string `json:"func"`
Args [][]byte `json:"args"`
}
...@@ -51,3 +51,7 @@ func UpdateIndex(paraName, srcServiceID, dstServiceID string, sequenceNum, reqTy ...@@ -51,3 +51,7 @@ func UpdateIndex(paraName, srcServiceID, dstServiceID string, sequenceNum, reqTy
return tx, nil return tx, nil
} }
} }
func EmitInterchainSetEvent(){
}
...@@ -3,13 +3,13 @@ package broker ...@@ -3,13 +3,13 @@ package broker
const ( const (
TyUnknowAction = iota + 100 TyUnknowAction = iota + 100
TyInitAction TyInitAction
TyRegisterAction TyRegisterExectorAction
TyAuditAction TyAuditAction
TyUpdateIndexAction TyUpdateIndexAction
TyEmitInterchainEventAction TyEmitInterchainEventAction
NameInitAction = "Init" NameInitAction = "Init"
NameRegisterAction = "Register" NameRegisterExectorAction = "RegisterExector"
NameAuditAction = "Audit" NameAuditAction = "Audit"
NameUpdateIndexAction = "UpdateIndex" NameUpdateIndexAction = "UpdateIndex"
NameEmitInterchainEventAction = "EmitInterchainEvent" NameEmitInterchainEventAction = "EmitInterchainEvent"
...@@ -31,7 +31,7 @@ const Addr = "1MCftFynyvG2F4ED5mdHYgziDxx6vDrScs" ...@@ -31,7 +31,7 @@ const Addr = "1MCftFynyvG2F4ED5mdHYgziDxx6vDrScs"
// 定义actionMap // 定义actionMap
var ActionMap = map[string]int32{ var ActionMap = map[string]int32{
NameInitAction: TyInitAction, NameInitAction: TyInitAction,
NameRegisterAction: TyRegisterAction, NameRegisterExectorAction: TyRegisterExectorAction,
NameAuditAction: TyAuditAction, NameAuditAction: TyAuditAction,
NameUpdateIndexAction: TyUpdateIndexAction, NameUpdateIndexAction: TyUpdateIndexAction,
NameEmitInterchainEventAction: TyEmitInterchainEventAction, NameEmitInterchainEventAction: TyEmitInterchainEventAction,
......
syntax = "proto3"; syntax = "proto3";
package types; package types;
// option go_package = "../types"; //option go_package = "../types";
message BrokerAction { message BrokerAction {
oneof value { oneof value {
Register register = 1; Init init =1;
Audit audit = 2; RegisterExector registerExector = 2;
InterchainEvent emitInterchainEvent = 3; Audit audit = 3;
UpdateIndex updateIndex = 4; InterchainEvent emitInterchainEvent = 4;
UpdateIndex updateIndex =5;
} }
int32 ty = 5; int32 ty = 6;
}
//broker初始化信息
message Init {
string bxhId = 1;
string appChainId = 2;
} }
// 业务合约注册模型: 0表示正在审核,1表示审核通过,2表示审核失败 // 业务合约注册模型: 0表示正在审核,1表示审核通过,2表示审核失败
message Register { message RegisterExector {
//业务合约名称 //业务合约名称
string exectorName = 1; string exectorName = 1;
} }
//审核 //审核
message Audit { message Audit {
//业务合约名称 //业务合约名称
string exectorName = 1; string exectorName = 1;
//状态码 0表示正在审核,1表示审核通过,2表示审核失败 //状态码 0表示正在审核,1表示审核通过,2表示审核失败
string status = 2; string status = 2;
} }
// 轮循事件 // 轮循事件
message PollingEvent { message PollingEvent {
Meta meta = 1; Meta meta = 1;
} }
// 更新跨链事件索引 // 更新跨链事件索引
message UpdateIndex { message UpdateIndex {
//当前链已经处理到的位置 //当前链已经处理到的位置
uint64 sequenceNum = 1; uint64 sequenceNum = 1;
//目的链服务ID,固定格式0x000001 //目的链服务ID,固定格式0x000001
string dstServiceID = 2; string dstServiceID = 2;
//源链ID,固定格式0x000002 //源链ID,固定格式0x000002
string srcServiceID = 3; string srcServiceID = 3;
//请求类型 0表示信息流入 1表示信息流出 2表示回滚 //请求类型 0表示信息流入 1表示信息流出 2表示回滚
uint64 reqType = 4; uint64 reqType =4;
//响应信息 //响应信息
Response response = 5; Response response = 5;
} }
// 跨链事件 // 跨链事件
message InterchainEvent { message InterchainEvent {
//索引值,这个有系统自动生成 //索引值,这个有系统自动生成
uint64 index = 1; uint64 index = 1;
//目的链ID,固定格式0x000001 //目的链ID,固定格式0x000001
string dstServiceID = 2; string dstServiceID = 2;
//源链ID,固定格式0x000002 //源链ID,固定格式0x000002
string srcServiceID = 3; string srcServiceID = 3;
//跨链交易类型 0表示storage,1表示coins,2表示token...... //跨链交易类型 0表示storage,1表示coins,2表示token......
uint64 type = 4; uint64 type =4;
//调用方法 //调用方法
string func = 5; string func = 5;
//参数列表 //参数列表
repeated string args = 6; repeated string args = 6;
//状态 0表示开始处理 1表示跨链成功 2表示跨链失败 //状态 0表示开始处理 1表示跨链成功 2表示跨链失败
int32 status = 7; int32 status = 7;
} }
// ReceiptBrokerLog //ReceiptBrokerLog
message ReceiptBrokerLog { message ReceiptBrokerLog{
oneof value { oneof value {
Register register = 1; RegisterExector registerExector = 1;
Audit audit = 2; Audit audit = 2;
InterchainEvent emitInterchainEvent = 3; InterchainEvent emitInterchainEvent = 3;
UpdateIndex updateIndex = 4; UpdateIndex updateIndex =4;
} }
int32 ty = 5; int32 ty = 5;
} }
service broker {} service broker {}
//查询跨出事件 //查询跨出事件
message QueryInterchainEvent { message QueryInterchainEvent{
uint64 index = 1; uint64 index =1;
//目的链ID,固定格式0x000001 //目的链ID,固定格式0x000001
string dstServiceID = 2; string dstServiceID = 2;
//源链ID,固定格式0x000002 //源链ID,固定格式0x000002
string srcServiceID = 3; string srcServiceID = 3;
} }
//跨链事件列表 //跨链事件列表
message InterChainEventList { message InterChainEventList{
repeated InterchainEvent list = 1; repeated InterchainEvent list =1;
} }
////根据状态查看跨链事件 ////根据状态查看跨链事件
// message QueryInterchainEventList { //message QueryInterchainEventList {
// //事件状态必填(默认是0,只查询待处理状态的事件) // //事件状态必填(默认是0,只查询待处理状态的事件)
// int32 status = 1; // int32 status = 1;
// // 主键索引 // // 主键索引
...@@ -97,40 +107,50 @@ message InterChainEventList { ...@@ -97,40 +107,50 @@ message InterChainEventList {
// int32 direction = 4; // int32 direction = 4;
//} //}
////跨链事件列表 ////跨链事件列表
// message InterchainEventList { //message InterchainEventList {
// repeated InterchainEvent list = 1; // repeated InterchainEvent list = 1;
// string primaryKey = 2; // string primaryKey = 2;
//} //}
message QueryOutterMeta {}
message QueryInnerMeta {} message QueryNilParam{
message QueryNilParam {}
}
message QueryOutterMeta{
message QueryInMessage {
string inServicePair = 1;
uint64 sequenceNum = 2;
} }
message QueryOutMessage { message QueryInnerMeta{
}
message QueryInMessage{
string inServicePair = 1; string inServicePair = 1;
uint64 sequenceNum = 2; uint64 sequenceNum = 2;
} }
message Meta { message QueryOutMessage{
map<string, uint64> meta = 1; string inServicePair = 1;
uint64 sequenceNum = 2;
} }
message BrokerInfo { message BrokerInfo {
//跨链协议版本ID //跨链协议版本ID
string bxhId = 1; string bxhId =1;
//应用链ID //应用链ID
string appChainId = 2; string appChainId = 2;
} }
message Response {
message Meta {
map<string,uint64> meta = 1;
}
message Response{
// A status code that should follow the HTTP status codes. // A status code that should follow the HTTP status codes.
int32 status = 1; int32 status = 1;
// A message associated with the response code. // A message associated with the response code.
string message = 2; string message = 2;
// A payload that can be used to include metadata with this response. // A payload that can be used to include metadata with this response.
bytes payload = 3; bytes payload = 3;
} }
\ No newline at end of file
...@@ -6,18 +6,15 @@ package types ...@@ -6,18 +6,15 @@ package types
import ( import (
context "context" context "context"
fmt "fmt" fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var ( var _ = proto.Marshal
_ = proto.Marshal var _ = fmt.Errorf
_ = fmt.Errorf var _ = math.Inf
_ = math.Inf
)
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
...@@ -25,15 +22,16 @@ var ( ...@@ -25,15 +22,16 @@ var (
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// option go_package = "../types"; //option go_package = "../types";
type BrokerAction struct { type BrokerAction struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *BrokerAction_Register // *BrokerAction_Init
// *BrokerAction_RegisterExector
// *BrokerAction_Audit // *BrokerAction_Audit
// *BrokerAction_EmitInterchainEvent // *BrokerAction_EmitInterchainEvent
// *BrokerAction_UpdateIndex // *BrokerAction_UpdateIndex
Value isBrokerAction_Value `protobuf_oneof:"value"` Value isBrokerAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,5,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,6,opt,name=ty,proto3" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
...@@ -49,19 +47,15 @@ func (*BrokerAction) Descriptor() ([]byte, []int) { ...@@ -49,19 +47,15 @@ func (*BrokerAction) Descriptor() ([]byte, []int) {
func (m *BrokerAction) XXX_Unmarshal(b []byte) error { func (m *BrokerAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BrokerAction.Unmarshal(m, b) return xxx_messageInfo_BrokerAction.Unmarshal(m, b)
} }
func (m *BrokerAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *BrokerAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BrokerAction.Marshal(b, m, deterministic) return xxx_messageInfo_BrokerAction.Marshal(b, m, deterministic)
} }
func (m *BrokerAction) XXX_Merge(src proto.Message) { func (m *BrokerAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_BrokerAction.Merge(m, src) xxx_messageInfo_BrokerAction.Merge(m, src)
} }
func (m *BrokerAction) XXX_Size() int { func (m *BrokerAction) XXX_Size() int {
return xxx_messageInfo_BrokerAction.Size(m) return xxx_messageInfo_BrokerAction.Size(m)
} }
func (m *BrokerAction) XXX_DiscardUnknown() { func (m *BrokerAction) XXX_DiscardUnknown() {
xxx_messageInfo_BrokerAction.DiscardUnknown(m) xxx_messageInfo_BrokerAction.DiscardUnknown(m)
} }
...@@ -72,23 +66,29 @@ type isBrokerAction_Value interface { ...@@ -72,23 +66,29 @@ type isBrokerAction_Value interface {
isBrokerAction_Value() isBrokerAction_Value()
} }
type BrokerAction_Register struct { type BrokerAction_Init struct {
Register *Register `protobuf:"bytes,1,opt,name=register,proto3,oneof"` Init *Init `protobuf:"bytes,1,opt,name=init,proto3,oneof"`
}
type BrokerAction_RegisterExector struct {
RegisterExector *RegisterExector `protobuf:"bytes,2,opt,name=registerExector,proto3,oneof"`
} }
type BrokerAction_Audit struct { type BrokerAction_Audit struct {
Audit *Audit `protobuf:"bytes,2,opt,name=audit,proto3,oneof"` Audit *Audit `protobuf:"bytes,3,opt,name=audit,proto3,oneof"`
} }
type BrokerAction_EmitInterchainEvent struct { type BrokerAction_EmitInterchainEvent struct {
EmitInterchainEvent *InterchainEvent `protobuf:"bytes,3,opt,name=emitInterchainEvent,proto3,oneof"` EmitInterchainEvent *InterchainEvent `protobuf:"bytes,4,opt,name=emitInterchainEvent,proto3,oneof"`
} }
type BrokerAction_UpdateIndex struct { type BrokerAction_UpdateIndex struct {
UpdateIndex *UpdateIndex `protobuf:"bytes,4,opt,name=updateIndex,proto3,oneof"` UpdateIndex *UpdateIndex `protobuf:"bytes,5,opt,name=updateIndex,proto3,oneof"`
} }
func (*BrokerAction_Register) isBrokerAction_Value() {} func (*BrokerAction_Init) isBrokerAction_Value() {}
func (*BrokerAction_RegisterExector) isBrokerAction_Value() {}
func (*BrokerAction_Audit) isBrokerAction_Value() {} func (*BrokerAction_Audit) isBrokerAction_Value() {}
...@@ -103,9 +103,16 @@ func (m *BrokerAction) GetValue() isBrokerAction_Value { ...@@ -103,9 +103,16 @@ func (m *BrokerAction) GetValue() isBrokerAction_Value {
return nil return nil
} }
func (m *BrokerAction) GetRegister() *Register { func (m *BrokerAction) GetInit() *Init {
if x, ok := m.GetValue().(*BrokerAction_Register); ok { if x, ok := m.GetValue().(*BrokerAction_Init); ok {
return x.Register return x.Init
}
return nil
}
func (m *BrokerAction) GetRegisterExector() *RegisterExector {
if x, ok := m.GetValue().(*BrokerAction_RegisterExector); ok {
return x.RegisterExector
} }
return nil return nil
} }
...@@ -141,63 +148,108 @@ func (m *BrokerAction) GetTy() int32 { ...@@ -141,63 +148,108 @@ func (m *BrokerAction) GetTy() int32 {
// XXX_OneofWrappers is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*BrokerAction) XXX_OneofWrappers() []interface{} { func (*BrokerAction) XXX_OneofWrappers() []interface{} {
return []interface{}{ return []interface{}{
(*BrokerAction_Register)(nil), (*BrokerAction_Init)(nil),
(*BrokerAction_RegisterExector)(nil),
(*BrokerAction_Audit)(nil), (*BrokerAction_Audit)(nil),
(*BrokerAction_EmitInterchainEvent)(nil), (*BrokerAction_EmitInterchainEvent)(nil),
(*BrokerAction_UpdateIndex)(nil), (*BrokerAction_UpdateIndex)(nil),
} }
} }
// 业务合约注册模型: 0表示正在审核,1表示审核通过,2表示审核失败 //broker初始化信息
type Register struct { type Init struct {
// 业务合约名称 BxhId string `protobuf:"bytes,1,opt,name=bxhId,proto3" json:"bxhId,omitempty"`
ExectorName string `protobuf:"bytes,1,opt,name=exectorName,proto3" json:"exectorName,omitempty"` AppChainId string `protobuf:"bytes,2,opt,name=appChainId,proto3" json:"appChainId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` XXX_sizecache int32 `json:"-"`
} }
func (m *Register) Reset() { *m = Register{} } func (m *Init) Reset() { *m = Init{} }
func (m *Register) String() string { return proto.CompactTextString(m) } func (m *Init) String() string { return proto.CompactTextString(m) }
func (*Register) ProtoMessage() {} func (*Init) ProtoMessage() {}
func (*Register) Descriptor() ([]byte, []int) { func (*Init) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{1} return fileDescriptor_f209535e190f2bed, []int{1}
} }
func (m *Register) XXX_Unmarshal(b []byte) error { func (m *Init) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Register.Unmarshal(m, b) return xxx_messageInfo_Init.Unmarshal(m, b)
}
func (m *Init) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Init.Marshal(b, m, deterministic)
}
func (m *Init) XXX_Merge(src proto.Message) {
xxx_messageInfo_Init.Merge(m, src)
}
func (m *Init) XXX_Size() int {
return xxx_messageInfo_Init.Size(m)
}
func (m *Init) XXX_DiscardUnknown() {
xxx_messageInfo_Init.DiscardUnknown(m)
} }
func (m *Register) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { var xxx_messageInfo_Init proto.InternalMessageInfo
return xxx_messageInfo_Register.Marshal(b, m, deterministic)
func (m *Init) GetBxhId() string {
if m != nil {
return m.BxhId
}
return ""
}
func (m *Init) GetAppChainId() string {
if m != nil {
return m.AppChainId
}
return ""
} }
func (m *Register) XXX_Merge(src proto.Message) { // 业务合约注册模型: 0表示正在审核,1表示审核通过,2表示审核失败
xxx_messageInfo_Register.Merge(m, src) type RegisterExector struct {
//业务合约名称
ExectorName string `protobuf:"bytes,1,opt,name=exectorName,proto3" json:"exectorName,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Register) XXX_Size() int { func (m *RegisterExector) Reset() { *m = RegisterExector{} }
return xxx_messageInfo_Register.Size(m) func (m *RegisterExector) String() string { return proto.CompactTextString(m) }
func (*RegisterExector) ProtoMessage() {}
func (*RegisterExector) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{2}
} }
func (m *Register) XXX_DiscardUnknown() { func (m *RegisterExector) XXX_Unmarshal(b []byte) error {
xxx_messageInfo_Register.DiscardUnknown(m) return xxx_messageInfo_RegisterExector.Unmarshal(m, b)
}
func (m *RegisterExector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RegisterExector.Marshal(b, m, deterministic)
}
func (m *RegisterExector) XXX_Merge(src proto.Message) {
xxx_messageInfo_RegisterExector.Merge(m, src)
}
func (m *RegisterExector) XXX_Size() int {
return xxx_messageInfo_RegisterExector.Size(m)
}
func (m *RegisterExector) XXX_DiscardUnknown() {
xxx_messageInfo_RegisterExector.DiscardUnknown(m)
} }
var xxx_messageInfo_Register proto.InternalMessageInfo var xxx_messageInfo_RegisterExector proto.InternalMessageInfo
func (m *Register) GetExectorName() string { func (m *RegisterExector) GetExectorName() string {
if m != nil { if m != nil {
return m.ExectorName return m.ExectorName
} }
return "" return ""
} }
// 审核 //审核
type Audit struct { type Audit struct {
// 业务合约名称 //业务合约名称
ExectorName string `protobuf:"bytes,1,opt,name=exectorName,proto3" json:"exectorName,omitempty"` ExectorName string `protobuf:"bytes,1,opt,name=exectorName,proto3" json:"exectorName,omitempty"`
// 状态码 0表示正在审核,1表示审核通过,2表示审核失败 //状态码 0表示正在审核,1表示审核通过,2表示审核失败
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -208,25 +260,21 @@ func (m *Audit) Reset() { *m = Audit{} } ...@@ -208,25 +260,21 @@ func (m *Audit) Reset() { *m = Audit{} }
func (m *Audit) String() string { return proto.CompactTextString(m) } func (m *Audit) String() string { return proto.CompactTextString(m) }
func (*Audit) ProtoMessage() {} func (*Audit) ProtoMessage() {}
func (*Audit) Descriptor() ([]byte, []int) { func (*Audit) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{2} return fileDescriptor_f209535e190f2bed, []int{3}
} }
func (m *Audit) XXX_Unmarshal(b []byte) error { func (m *Audit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Audit.Unmarshal(m, b) return xxx_messageInfo_Audit.Unmarshal(m, b)
} }
func (m *Audit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Audit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Audit.Marshal(b, m, deterministic) return xxx_messageInfo_Audit.Marshal(b, m, deterministic)
} }
func (m *Audit) XXX_Merge(src proto.Message) { func (m *Audit) XXX_Merge(src proto.Message) {
xxx_messageInfo_Audit.Merge(m, src) xxx_messageInfo_Audit.Merge(m, src)
} }
func (m *Audit) XXX_Size() int { func (m *Audit) XXX_Size() int {
return xxx_messageInfo_Audit.Size(m) return xxx_messageInfo_Audit.Size(m)
} }
func (m *Audit) XXX_DiscardUnknown() { func (m *Audit) XXX_DiscardUnknown() {
xxx_messageInfo_Audit.DiscardUnknown(m) xxx_messageInfo_Audit.DiscardUnknown(m)
} }
...@@ -259,25 +307,21 @@ func (m *PollingEvent) Reset() { *m = PollingEvent{} } ...@@ -259,25 +307,21 @@ func (m *PollingEvent) Reset() { *m = PollingEvent{} }
func (m *PollingEvent) String() string { return proto.CompactTextString(m) } func (m *PollingEvent) String() string { return proto.CompactTextString(m) }
func (*PollingEvent) ProtoMessage() {} func (*PollingEvent) ProtoMessage() {}
func (*PollingEvent) Descriptor() ([]byte, []int) { func (*PollingEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{3} return fileDescriptor_f209535e190f2bed, []int{4}
} }
func (m *PollingEvent) XXX_Unmarshal(b []byte) error { func (m *PollingEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PollingEvent.Unmarshal(m, b) return xxx_messageInfo_PollingEvent.Unmarshal(m, b)
} }
func (m *PollingEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *PollingEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PollingEvent.Marshal(b, m, deterministic) return xxx_messageInfo_PollingEvent.Marshal(b, m, deterministic)
} }
func (m *PollingEvent) XXX_Merge(src proto.Message) { func (m *PollingEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_PollingEvent.Merge(m, src) xxx_messageInfo_PollingEvent.Merge(m, src)
} }
func (m *PollingEvent) XXX_Size() int { func (m *PollingEvent) XXX_Size() int {
return xxx_messageInfo_PollingEvent.Size(m) return xxx_messageInfo_PollingEvent.Size(m)
} }
func (m *PollingEvent) XXX_DiscardUnknown() { func (m *PollingEvent) XXX_DiscardUnknown() {
xxx_messageInfo_PollingEvent.DiscardUnknown(m) xxx_messageInfo_PollingEvent.DiscardUnknown(m)
} }
...@@ -293,15 +337,15 @@ func (m *PollingEvent) GetMeta() *Meta { ...@@ -293,15 +337,15 @@ func (m *PollingEvent) GetMeta() *Meta {
// 更新跨链事件索引 // 更新跨链事件索引
type UpdateIndex struct { type UpdateIndex struct {
// 当前链已经处理到的位置 //当前链已经处理到的位置
SequenceNum uint64 `protobuf:"varint,1,opt,name=sequenceNum,proto3" json:"sequenceNum,omitempty"` SequenceNum uint64 `protobuf:"varint,1,opt,name=sequenceNum,proto3" json:"sequenceNum,omitempty"`
// 目的链服务ID,固定格式0x000001 //目的链服务ID,固定格式0x000001
DstServiceID string `protobuf:"bytes,2,opt,name=dstServiceID,proto3" json:"dstServiceID,omitempty"` DstServiceID string `protobuf:"bytes,2,opt,name=dstServiceID,proto3" json:"dstServiceID,omitempty"`
// 源链ID,固定格式0x000002 //源链ID,固定格式0x000002
SrcServiceID string `protobuf:"bytes,3,opt,name=srcServiceID,proto3" json:"srcServiceID,omitempty"` SrcServiceID string `protobuf:"bytes,3,opt,name=srcServiceID,proto3" json:"srcServiceID,omitempty"`
// 请求类型 0表示信息流入 1表示信息流出 2表示回滚 //请求类型 0表示信息流入 1表示信息流出 2表示回滚
ReqType uint64 `protobuf:"varint,4,opt,name=reqType,proto3" json:"reqType,omitempty"` ReqType uint64 `protobuf:"varint,4,opt,name=reqType,proto3" json:"reqType,omitempty"`
// 响应信息 //响应信息
Response *Response `protobuf:"bytes,5,opt,name=response,proto3" json:"response,omitempty"` Response *Response `protobuf:"bytes,5,opt,name=response,proto3" json:"response,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -312,25 +356,21 @@ func (m *UpdateIndex) Reset() { *m = UpdateIndex{} } ...@@ -312,25 +356,21 @@ func (m *UpdateIndex) Reset() { *m = UpdateIndex{} }
func (m *UpdateIndex) String() string { return proto.CompactTextString(m) } func (m *UpdateIndex) String() string { return proto.CompactTextString(m) }
func (*UpdateIndex) ProtoMessage() {} func (*UpdateIndex) ProtoMessage() {}
func (*UpdateIndex) Descriptor() ([]byte, []int) { func (*UpdateIndex) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{4} return fileDescriptor_f209535e190f2bed, []int{5}
} }
func (m *UpdateIndex) XXX_Unmarshal(b []byte) error { func (m *UpdateIndex) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateIndex.Unmarshal(m, b) return xxx_messageInfo_UpdateIndex.Unmarshal(m, b)
} }
func (m *UpdateIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *UpdateIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateIndex.Marshal(b, m, deterministic) return xxx_messageInfo_UpdateIndex.Marshal(b, m, deterministic)
} }
func (m *UpdateIndex) XXX_Merge(src proto.Message) { func (m *UpdateIndex) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateIndex.Merge(m, src) xxx_messageInfo_UpdateIndex.Merge(m, src)
} }
func (m *UpdateIndex) XXX_Size() int { func (m *UpdateIndex) XXX_Size() int {
return xxx_messageInfo_UpdateIndex.Size(m) return xxx_messageInfo_UpdateIndex.Size(m)
} }
func (m *UpdateIndex) XXX_DiscardUnknown() { func (m *UpdateIndex) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateIndex.DiscardUnknown(m) xxx_messageInfo_UpdateIndex.DiscardUnknown(m)
} }
...@@ -374,19 +414,19 @@ func (m *UpdateIndex) GetResponse() *Response { ...@@ -374,19 +414,19 @@ func (m *UpdateIndex) GetResponse() *Response {
// 跨链事件 // 跨链事件
type InterchainEvent struct { type InterchainEvent struct {
// 索引值,这个有系统自动生成 //索引值,这个有系统自动生成
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// 目的链ID,固定格式0x000001 //目的链ID,固定格式0x000001
DstServiceID string `protobuf:"bytes,2,opt,name=dstServiceID,proto3" json:"dstServiceID,omitempty"` DstServiceID string `protobuf:"bytes,2,opt,name=dstServiceID,proto3" json:"dstServiceID,omitempty"`
// 源链ID,固定格式0x000002 //源链ID,固定格式0x000002
SrcServiceID string `protobuf:"bytes,3,opt,name=srcServiceID,proto3" json:"srcServiceID,omitempty"` SrcServiceID string `protobuf:"bytes,3,opt,name=srcServiceID,proto3" json:"srcServiceID,omitempty"`
// 跨链交易类型 0表示storage,1表示coins,2表示token...... //跨链交易类型 0表示storage,1表示coins,2表示token......
Type uint64 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` Type uint64 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
// 调用方法 //调用方法
Func string `protobuf:"bytes,5,opt,name=func,proto3" json:"func,omitempty"` Func string `protobuf:"bytes,5,opt,name=func,proto3" json:"func,omitempty"`
// 参数列表 //参数列表
Args []string `protobuf:"bytes,6,rep,name=args,proto3" json:"args,omitempty"` Args []string `protobuf:"bytes,6,rep,name=args,proto3" json:"args,omitempty"`
// 状态 0表示开始处理 1表示跨链成功 2表示跨链失败 //状态 0表示开始处理 1表示跨链成功 2表示跨链失败
Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -397,25 +437,21 @@ func (m *InterchainEvent) Reset() { *m = InterchainEvent{} } ...@@ -397,25 +437,21 @@ func (m *InterchainEvent) Reset() { *m = InterchainEvent{} }
func (m *InterchainEvent) String() string { return proto.CompactTextString(m) } func (m *InterchainEvent) String() string { return proto.CompactTextString(m) }
func (*InterchainEvent) ProtoMessage() {} func (*InterchainEvent) ProtoMessage() {}
func (*InterchainEvent) Descriptor() ([]byte, []int) { func (*InterchainEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{5} return fileDescriptor_f209535e190f2bed, []int{6}
} }
func (m *InterchainEvent) XXX_Unmarshal(b []byte) error { func (m *InterchainEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InterchainEvent.Unmarshal(m, b) return xxx_messageInfo_InterchainEvent.Unmarshal(m, b)
} }
func (m *InterchainEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *InterchainEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InterchainEvent.Marshal(b, m, deterministic) return xxx_messageInfo_InterchainEvent.Marshal(b, m, deterministic)
} }
func (m *InterchainEvent) XXX_Merge(src proto.Message) { func (m *InterchainEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_InterchainEvent.Merge(m, src) xxx_messageInfo_InterchainEvent.Merge(m, src)
} }
func (m *InterchainEvent) XXX_Size() int { func (m *InterchainEvent) XXX_Size() int {
return xxx_messageInfo_InterchainEvent.Size(m) return xxx_messageInfo_InterchainEvent.Size(m)
} }
func (m *InterchainEvent) XXX_DiscardUnknown() { func (m *InterchainEvent) XXX_DiscardUnknown() {
xxx_messageInfo_InterchainEvent.DiscardUnknown(m) xxx_messageInfo_InterchainEvent.DiscardUnknown(m)
} }
...@@ -471,10 +507,10 @@ func (m *InterchainEvent) GetStatus() int32 { ...@@ -471,10 +507,10 @@ func (m *InterchainEvent) GetStatus() int32 {
return 0 return 0
} }
// ReceiptBrokerLog //ReceiptBrokerLog
type ReceiptBrokerLog struct { type ReceiptBrokerLog struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *ReceiptBrokerLog_Register // *ReceiptBrokerLog_RegisterExector
// *ReceiptBrokerLog_Audit // *ReceiptBrokerLog_Audit
// *ReceiptBrokerLog_EmitInterchainEvent // *ReceiptBrokerLog_EmitInterchainEvent
// *ReceiptBrokerLog_UpdateIndex // *ReceiptBrokerLog_UpdateIndex
...@@ -489,25 +525,21 @@ func (m *ReceiptBrokerLog) Reset() { *m = ReceiptBrokerLog{} } ...@@ -489,25 +525,21 @@ func (m *ReceiptBrokerLog) Reset() { *m = ReceiptBrokerLog{} }
func (m *ReceiptBrokerLog) String() string { return proto.CompactTextString(m) } func (m *ReceiptBrokerLog) String() string { return proto.CompactTextString(m) }
func (*ReceiptBrokerLog) ProtoMessage() {} func (*ReceiptBrokerLog) ProtoMessage() {}
func (*ReceiptBrokerLog) Descriptor() ([]byte, []int) { func (*ReceiptBrokerLog) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{6} return fileDescriptor_f209535e190f2bed, []int{7}
} }
func (m *ReceiptBrokerLog) XXX_Unmarshal(b []byte) error { func (m *ReceiptBrokerLog) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptBrokerLog.Unmarshal(m, b) return xxx_messageInfo_ReceiptBrokerLog.Unmarshal(m, b)
} }
func (m *ReceiptBrokerLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReceiptBrokerLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptBrokerLog.Marshal(b, m, deterministic) return xxx_messageInfo_ReceiptBrokerLog.Marshal(b, m, deterministic)
} }
func (m *ReceiptBrokerLog) XXX_Merge(src proto.Message) { func (m *ReceiptBrokerLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptBrokerLog.Merge(m, src) xxx_messageInfo_ReceiptBrokerLog.Merge(m, src)
} }
func (m *ReceiptBrokerLog) XXX_Size() int { func (m *ReceiptBrokerLog) XXX_Size() int {
return xxx_messageInfo_ReceiptBrokerLog.Size(m) return xxx_messageInfo_ReceiptBrokerLog.Size(m)
} }
func (m *ReceiptBrokerLog) XXX_DiscardUnknown() { func (m *ReceiptBrokerLog) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptBrokerLog.DiscardUnknown(m) xxx_messageInfo_ReceiptBrokerLog.DiscardUnknown(m)
} }
...@@ -518,8 +550,8 @@ type isReceiptBrokerLog_Value interface { ...@@ -518,8 +550,8 @@ type isReceiptBrokerLog_Value interface {
isReceiptBrokerLog_Value() isReceiptBrokerLog_Value()
} }
type ReceiptBrokerLog_Register struct { type ReceiptBrokerLog_RegisterExector struct {
Register *Register `protobuf:"bytes,1,opt,name=register,proto3,oneof"` RegisterExector *RegisterExector `protobuf:"bytes,1,opt,name=registerExector,proto3,oneof"`
} }
type ReceiptBrokerLog_Audit struct { type ReceiptBrokerLog_Audit struct {
...@@ -534,7 +566,7 @@ type ReceiptBrokerLog_UpdateIndex struct { ...@@ -534,7 +566,7 @@ type ReceiptBrokerLog_UpdateIndex struct {
UpdateIndex *UpdateIndex `protobuf:"bytes,4,opt,name=updateIndex,proto3,oneof"` UpdateIndex *UpdateIndex `protobuf:"bytes,4,opt,name=updateIndex,proto3,oneof"`
} }
func (*ReceiptBrokerLog_Register) isReceiptBrokerLog_Value() {} func (*ReceiptBrokerLog_RegisterExector) isReceiptBrokerLog_Value() {}
func (*ReceiptBrokerLog_Audit) isReceiptBrokerLog_Value() {} func (*ReceiptBrokerLog_Audit) isReceiptBrokerLog_Value() {}
...@@ -549,9 +581,9 @@ func (m *ReceiptBrokerLog) GetValue() isReceiptBrokerLog_Value { ...@@ -549,9 +581,9 @@ func (m *ReceiptBrokerLog) GetValue() isReceiptBrokerLog_Value {
return nil return nil
} }
func (m *ReceiptBrokerLog) GetRegister() *Register { func (m *ReceiptBrokerLog) GetRegisterExector() *RegisterExector {
if x, ok := m.GetValue().(*ReceiptBrokerLog_Register); ok { if x, ok := m.GetValue().(*ReceiptBrokerLog_RegisterExector); ok {
return x.Register return x.RegisterExector
} }
return nil return nil
} }
...@@ -587,19 +619,19 @@ func (m *ReceiptBrokerLog) GetTy() int32 { ...@@ -587,19 +619,19 @@ func (m *ReceiptBrokerLog) GetTy() int32 {
// XXX_OneofWrappers is for the internal use of the proto package. // XXX_OneofWrappers is for the internal use of the proto package.
func (*ReceiptBrokerLog) XXX_OneofWrappers() []interface{} { func (*ReceiptBrokerLog) XXX_OneofWrappers() []interface{} {
return []interface{}{ return []interface{}{
(*ReceiptBrokerLog_Register)(nil), (*ReceiptBrokerLog_RegisterExector)(nil),
(*ReceiptBrokerLog_Audit)(nil), (*ReceiptBrokerLog_Audit)(nil),
(*ReceiptBrokerLog_EmitInterchainEvent)(nil), (*ReceiptBrokerLog_EmitInterchainEvent)(nil),
(*ReceiptBrokerLog_UpdateIndex)(nil), (*ReceiptBrokerLog_UpdateIndex)(nil),
} }
} }
// 查询跨出事件 //查询跨出事件
type QueryInterchainEvent struct { type QueryInterchainEvent struct {
Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
// 目的链ID,固定格式0x000001 //目的链ID,固定格式0x000001
DstServiceID string `protobuf:"bytes,2,opt,name=dstServiceID,proto3" json:"dstServiceID,omitempty"` DstServiceID string `protobuf:"bytes,2,opt,name=dstServiceID,proto3" json:"dstServiceID,omitempty"`
// 源链ID,固定格式0x000002 //源链ID,固定格式0x000002
SrcServiceID string `protobuf:"bytes,3,opt,name=srcServiceID,proto3" json:"srcServiceID,omitempty"` SrcServiceID string `protobuf:"bytes,3,opt,name=srcServiceID,proto3" json:"srcServiceID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -610,25 +642,21 @@ func (m *QueryInterchainEvent) Reset() { *m = QueryInterchainEvent{} } ...@@ -610,25 +642,21 @@ func (m *QueryInterchainEvent) Reset() { *m = QueryInterchainEvent{} }
func (m *QueryInterchainEvent) String() string { return proto.CompactTextString(m) } func (m *QueryInterchainEvent) String() string { return proto.CompactTextString(m) }
func (*QueryInterchainEvent) ProtoMessage() {} func (*QueryInterchainEvent) ProtoMessage() {}
func (*QueryInterchainEvent) Descriptor() ([]byte, []int) { func (*QueryInterchainEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{7} return fileDescriptor_f209535e190f2bed, []int{8}
} }
func (m *QueryInterchainEvent) XXX_Unmarshal(b []byte) error { func (m *QueryInterchainEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryInterchainEvent.Unmarshal(m, b) return xxx_messageInfo_QueryInterchainEvent.Unmarshal(m, b)
} }
func (m *QueryInterchainEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryInterchainEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryInterchainEvent.Marshal(b, m, deterministic) return xxx_messageInfo_QueryInterchainEvent.Marshal(b, m, deterministic)
} }
func (m *QueryInterchainEvent) XXX_Merge(src proto.Message) { func (m *QueryInterchainEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryInterchainEvent.Merge(m, src) xxx_messageInfo_QueryInterchainEvent.Merge(m, src)
} }
func (m *QueryInterchainEvent) XXX_Size() int { func (m *QueryInterchainEvent) XXX_Size() int {
return xxx_messageInfo_QueryInterchainEvent.Size(m) return xxx_messageInfo_QueryInterchainEvent.Size(m)
} }
func (m *QueryInterchainEvent) XXX_DiscardUnknown() { func (m *QueryInterchainEvent) XXX_DiscardUnknown() {
xxx_messageInfo_QueryInterchainEvent.DiscardUnknown(m) xxx_messageInfo_QueryInterchainEvent.DiscardUnknown(m)
} }
...@@ -656,7 +684,7 @@ func (m *QueryInterchainEvent) GetSrcServiceID() string { ...@@ -656,7 +684,7 @@ func (m *QueryInterchainEvent) GetSrcServiceID() string {
return "" return ""
} }
// 跨链事件列表 //跨链事件列表
type InterChainEventList struct { type InterChainEventList struct {
List []*InterchainEvent `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` List []*InterchainEvent `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
...@@ -668,25 +696,21 @@ func (m *InterChainEventList) Reset() { *m = InterChainEventList{} } ...@@ -668,25 +696,21 @@ func (m *InterChainEventList) Reset() { *m = InterChainEventList{} }
func (m *InterChainEventList) String() string { return proto.CompactTextString(m) } func (m *InterChainEventList) String() string { return proto.CompactTextString(m) }
func (*InterChainEventList) ProtoMessage() {} func (*InterChainEventList) ProtoMessage() {}
func (*InterChainEventList) Descriptor() ([]byte, []int) { func (*InterChainEventList) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{8} return fileDescriptor_f209535e190f2bed, []int{9}
} }
func (m *InterChainEventList) XXX_Unmarshal(b []byte) error { func (m *InterChainEventList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InterChainEventList.Unmarshal(m, b) return xxx_messageInfo_InterChainEventList.Unmarshal(m, b)
} }
func (m *InterChainEventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *InterChainEventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InterChainEventList.Marshal(b, m, deterministic) return xxx_messageInfo_InterChainEventList.Marshal(b, m, deterministic)
} }
func (m *InterChainEventList) XXX_Merge(src proto.Message) { func (m *InterChainEventList) XXX_Merge(src proto.Message) {
xxx_messageInfo_InterChainEventList.Merge(m, src) xxx_messageInfo_InterChainEventList.Merge(m, src)
} }
func (m *InterChainEventList) XXX_Size() int { func (m *InterChainEventList) XXX_Size() int {
return xxx_messageInfo_InterChainEventList.Size(m) return xxx_messageInfo_InterChainEventList.Size(m)
} }
func (m *InterChainEventList) XXX_DiscardUnknown() { func (m *InterChainEventList) XXX_DiscardUnknown() {
xxx_messageInfo_InterChainEventList.DiscardUnknown(m) xxx_messageInfo_InterChainEventList.DiscardUnknown(m)
} }
...@@ -700,22 +724,37 @@ func (m *InterChainEventList) GetList() []*InterchainEvent { ...@@ -700,22 +724,37 @@ func (m *InterChainEventList) GetList() []*InterchainEvent {
return nil return nil
} }
////根据状态查看跨链事件 type QueryNilParam struct {
//message QueryInterchainEventList { XXX_NoUnkeyedLiteral struct{} `json:"-"`
// //事件状态必填(默认是0,只查询待处理状态的事件) XXX_unrecognized []byte `json:"-"`
// int32 status = 1; XXX_sizecache int32 `json:"-"`
// // 主键索引 }
// string primaryKey = 2;
// //单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条 func (m *QueryNilParam) Reset() { *m = QueryNilParam{} }
// int32 count = 3; func (m *QueryNilParam) String() string { return proto.CompactTextString(m) }
// // 0降序,1升序,默认降序 func (*QueryNilParam) ProtoMessage() {}
// int32 direction = 4; func (*QueryNilParam) Descriptor() ([]byte, []int) {
//} return fileDescriptor_f209535e190f2bed, []int{10}
////跨链事件列表 }
//message InterchainEventList {
// repeated InterchainEvent list = 1; func (m *QueryNilParam) XXX_Unmarshal(b []byte) error {
// string primaryKey = 2; return xxx_messageInfo_QueryNilParam.Unmarshal(m, b)
//} }
func (m *QueryNilParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryNilParam.Marshal(b, m, deterministic)
}
func (m *QueryNilParam) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryNilParam.Merge(m, src)
}
func (m *QueryNilParam) XXX_Size() int {
return xxx_messageInfo_QueryNilParam.Size(m)
}
func (m *QueryNilParam) XXX_DiscardUnknown() {
xxx_messageInfo_QueryNilParam.DiscardUnknown(m)
}
var xxx_messageInfo_QueryNilParam proto.InternalMessageInfo
type QueryOutterMeta struct { type QueryOutterMeta struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -726,25 +765,21 @@ func (m *QueryOutterMeta) Reset() { *m = QueryOutterMeta{} } ...@@ -726,25 +765,21 @@ func (m *QueryOutterMeta) Reset() { *m = QueryOutterMeta{} }
func (m *QueryOutterMeta) String() string { return proto.CompactTextString(m) } func (m *QueryOutterMeta) String() string { return proto.CompactTextString(m) }
func (*QueryOutterMeta) ProtoMessage() {} func (*QueryOutterMeta) ProtoMessage() {}
func (*QueryOutterMeta) Descriptor() ([]byte, []int) { func (*QueryOutterMeta) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{9} return fileDescriptor_f209535e190f2bed, []int{11}
} }
func (m *QueryOutterMeta) XXX_Unmarshal(b []byte) error { func (m *QueryOutterMeta) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryOutterMeta.Unmarshal(m, b) return xxx_messageInfo_QueryOutterMeta.Unmarshal(m, b)
} }
func (m *QueryOutterMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryOutterMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryOutterMeta.Marshal(b, m, deterministic) return xxx_messageInfo_QueryOutterMeta.Marshal(b, m, deterministic)
} }
func (m *QueryOutterMeta) XXX_Merge(src proto.Message) { func (m *QueryOutterMeta) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryOutterMeta.Merge(m, src) xxx_messageInfo_QueryOutterMeta.Merge(m, src)
} }
func (m *QueryOutterMeta) XXX_Size() int { func (m *QueryOutterMeta) XXX_Size() int {
return xxx_messageInfo_QueryOutterMeta.Size(m) return xxx_messageInfo_QueryOutterMeta.Size(m)
} }
func (m *QueryOutterMeta) XXX_DiscardUnknown() { func (m *QueryOutterMeta) XXX_DiscardUnknown() {
xxx_messageInfo_QueryOutterMeta.DiscardUnknown(m) xxx_messageInfo_QueryOutterMeta.DiscardUnknown(m)
} }
...@@ -761,66 +796,27 @@ func (m *QueryInnerMeta) Reset() { *m = QueryInnerMeta{} } ...@@ -761,66 +796,27 @@ func (m *QueryInnerMeta) Reset() { *m = QueryInnerMeta{} }
func (m *QueryInnerMeta) String() string { return proto.CompactTextString(m) } func (m *QueryInnerMeta) String() string { return proto.CompactTextString(m) }
func (*QueryInnerMeta) ProtoMessage() {} func (*QueryInnerMeta) ProtoMessage() {}
func (*QueryInnerMeta) Descriptor() ([]byte, []int) { func (*QueryInnerMeta) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{10} return fileDescriptor_f209535e190f2bed, []int{12}
} }
func (m *QueryInnerMeta) XXX_Unmarshal(b []byte) error { func (m *QueryInnerMeta) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryInnerMeta.Unmarshal(m, b) return xxx_messageInfo_QueryInnerMeta.Unmarshal(m, b)
} }
func (m *QueryInnerMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryInnerMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryInnerMeta.Marshal(b, m, deterministic) return xxx_messageInfo_QueryInnerMeta.Marshal(b, m, deterministic)
} }
func (m *QueryInnerMeta) XXX_Merge(src proto.Message) { func (m *QueryInnerMeta) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryInnerMeta.Merge(m, src) xxx_messageInfo_QueryInnerMeta.Merge(m, src)
} }
func (m *QueryInnerMeta) XXX_Size() int { func (m *QueryInnerMeta) XXX_Size() int {
return xxx_messageInfo_QueryInnerMeta.Size(m) return xxx_messageInfo_QueryInnerMeta.Size(m)
} }
func (m *QueryInnerMeta) XXX_DiscardUnknown() { func (m *QueryInnerMeta) XXX_DiscardUnknown() {
xxx_messageInfo_QueryInnerMeta.DiscardUnknown(m) xxx_messageInfo_QueryInnerMeta.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryInnerMeta proto.InternalMessageInfo var xxx_messageInfo_QueryInnerMeta proto.InternalMessageInfo
type QueryNilParam struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryNilParam) Reset() { *m = QueryNilParam{} }
func (m *QueryNilParam) String() string { return proto.CompactTextString(m) }
func (*QueryNilParam) ProtoMessage() {}
func (*QueryNilParam) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{11}
}
func (m *QueryNilParam) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryNilParam.Unmarshal(m, b)
}
func (m *QueryNilParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryNilParam.Marshal(b, m, deterministic)
}
func (m *QueryNilParam) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryNilParam.Merge(m, src)
}
func (m *QueryNilParam) XXX_Size() int {
return xxx_messageInfo_QueryNilParam.Size(m)
}
func (m *QueryNilParam) XXX_DiscardUnknown() {
xxx_messageInfo_QueryNilParam.DiscardUnknown(m)
}
var xxx_messageInfo_QueryNilParam proto.InternalMessageInfo
type QueryInMessage struct { type QueryInMessage struct {
InServicePair string `protobuf:"bytes,1,opt,name=inServicePair,proto3" json:"inServicePair,omitempty"` InServicePair string `protobuf:"bytes,1,opt,name=inServicePair,proto3" json:"inServicePair,omitempty"`
SequenceNum uint64 `protobuf:"varint,2,opt,name=sequenceNum,proto3" json:"sequenceNum,omitempty"` SequenceNum uint64 `protobuf:"varint,2,opt,name=sequenceNum,proto3" json:"sequenceNum,omitempty"`
...@@ -833,25 +829,21 @@ func (m *QueryInMessage) Reset() { *m = QueryInMessage{} } ...@@ -833,25 +829,21 @@ func (m *QueryInMessage) Reset() { *m = QueryInMessage{} }
func (m *QueryInMessage) String() string { return proto.CompactTextString(m) } func (m *QueryInMessage) String() string { return proto.CompactTextString(m) }
func (*QueryInMessage) ProtoMessage() {} func (*QueryInMessage) ProtoMessage() {}
func (*QueryInMessage) Descriptor() ([]byte, []int) { func (*QueryInMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{12} return fileDescriptor_f209535e190f2bed, []int{13}
} }
func (m *QueryInMessage) XXX_Unmarshal(b []byte) error { func (m *QueryInMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryInMessage.Unmarshal(m, b) return xxx_messageInfo_QueryInMessage.Unmarshal(m, b)
} }
func (m *QueryInMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryInMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryInMessage.Marshal(b, m, deterministic) return xxx_messageInfo_QueryInMessage.Marshal(b, m, deterministic)
} }
func (m *QueryInMessage) XXX_Merge(src proto.Message) { func (m *QueryInMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryInMessage.Merge(m, src) xxx_messageInfo_QueryInMessage.Merge(m, src)
} }
func (m *QueryInMessage) XXX_Size() int { func (m *QueryInMessage) XXX_Size() int {
return xxx_messageInfo_QueryInMessage.Size(m) return xxx_messageInfo_QueryInMessage.Size(m)
} }
func (m *QueryInMessage) XXX_DiscardUnknown() { func (m *QueryInMessage) XXX_DiscardUnknown() {
xxx_messageInfo_QueryInMessage.DiscardUnknown(m) xxx_messageInfo_QueryInMessage.DiscardUnknown(m)
} }
...@@ -884,25 +876,21 @@ func (m *QueryOutMessage) Reset() { *m = QueryOutMessage{} } ...@@ -884,25 +876,21 @@ func (m *QueryOutMessage) Reset() { *m = QueryOutMessage{} }
func (m *QueryOutMessage) String() string { return proto.CompactTextString(m) } func (m *QueryOutMessage) String() string { return proto.CompactTextString(m) }
func (*QueryOutMessage) ProtoMessage() {} func (*QueryOutMessage) ProtoMessage() {}
func (*QueryOutMessage) Descriptor() ([]byte, []int) { func (*QueryOutMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{13} return fileDescriptor_f209535e190f2bed, []int{14}
} }
func (m *QueryOutMessage) XXX_Unmarshal(b []byte) error { func (m *QueryOutMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryOutMessage.Unmarshal(m, b) return xxx_messageInfo_QueryOutMessage.Unmarshal(m, b)
} }
func (m *QueryOutMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryOutMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryOutMessage.Marshal(b, m, deterministic) return xxx_messageInfo_QueryOutMessage.Marshal(b, m, deterministic)
} }
func (m *QueryOutMessage) XXX_Merge(src proto.Message) { func (m *QueryOutMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryOutMessage.Merge(m, src) xxx_messageInfo_QueryOutMessage.Merge(m, src)
} }
func (m *QueryOutMessage) XXX_Size() int { func (m *QueryOutMessage) XXX_Size() int {
return xxx_messageInfo_QueryOutMessage.Size(m) return xxx_messageInfo_QueryOutMessage.Size(m)
} }
func (m *QueryOutMessage) XXX_DiscardUnknown() { func (m *QueryOutMessage) XXX_DiscardUnknown() {
xxx_messageInfo_QueryOutMessage.DiscardUnknown(m) xxx_messageInfo_QueryOutMessage.DiscardUnknown(m)
} }
...@@ -923,53 +911,10 @@ func (m *QueryOutMessage) GetSequenceNum() uint64 { ...@@ -923,53 +911,10 @@ func (m *QueryOutMessage) GetSequenceNum() uint64 {
return 0 return 0
} }
type Meta struct {
Meta map[string]uint64 `protobuf:"bytes,1,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Meta) Reset() { *m = Meta{} }
func (m *Meta) String() string { return proto.CompactTextString(m) }
func (*Meta) ProtoMessage() {}
func (*Meta) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{14}
}
func (m *Meta) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Meta.Unmarshal(m, b)
}
func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Meta.Marshal(b, m, deterministic)
}
func (m *Meta) XXX_Merge(src proto.Message) {
xxx_messageInfo_Meta.Merge(m, src)
}
func (m *Meta) XXX_Size() int {
return xxx_messageInfo_Meta.Size(m)
}
func (m *Meta) XXX_DiscardUnknown() {
xxx_messageInfo_Meta.DiscardUnknown(m)
}
var xxx_messageInfo_Meta proto.InternalMessageInfo
func (m *Meta) GetMeta() map[string]uint64 {
if m != nil {
return m.Meta
}
return nil
}
type BrokerInfo struct { type BrokerInfo struct {
// 跨链协议版本ID //跨链协议版本ID
BxhId string `protobuf:"bytes,1,opt,name=bxhId,proto3" json:"bxhId,omitempty"` BxhId string `protobuf:"bytes,1,opt,name=bxhId,proto3" json:"bxhId,omitempty"`
// 应用链ID //应用链ID
AppChainId string `protobuf:"bytes,2,opt,name=appChainId,proto3" json:"appChainId,omitempty"` AppChainId string `protobuf:"bytes,2,opt,name=appChainId,proto3" json:"appChainId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -986,19 +931,15 @@ func (*BrokerInfo) Descriptor() ([]byte, []int) { ...@@ -986,19 +931,15 @@ func (*BrokerInfo) Descriptor() ([]byte, []int) {
func (m *BrokerInfo) XXX_Unmarshal(b []byte) error { func (m *BrokerInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BrokerInfo.Unmarshal(m, b) return xxx_messageInfo_BrokerInfo.Unmarshal(m, b)
} }
func (m *BrokerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *BrokerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BrokerInfo.Marshal(b, m, deterministic) return xxx_messageInfo_BrokerInfo.Marshal(b, m, deterministic)
} }
func (m *BrokerInfo) XXX_Merge(src proto.Message) { func (m *BrokerInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_BrokerInfo.Merge(m, src) xxx_messageInfo_BrokerInfo.Merge(m, src)
} }
func (m *BrokerInfo) XXX_Size() int { func (m *BrokerInfo) XXX_Size() int {
return xxx_messageInfo_BrokerInfo.Size(m) return xxx_messageInfo_BrokerInfo.Size(m)
} }
func (m *BrokerInfo) XXX_DiscardUnknown() { func (m *BrokerInfo) XXX_DiscardUnknown() {
xxx_messageInfo_BrokerInfo.DiscardUnknown(m) xxx_messageInfo_BrokerInfo.DiscardUnknown(m)
} }
...@@ -1019,6 +960,45 @@ func (m *BrokerInfo) GetAppChainId() string { ...@@ -1019,6 +960,45 @@ func (m *BrokerInfo) GetAppChainId() string {
return "" return ""
} }
type Meta struct {
Meta map[string]uint64 `protobuf:"bytes,1,rep,name=meta,proto3" json:"meta,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Meta) Reset() { *m = Meta{} }
func (m *Meta) String() string { return proto.CompactTextString(m) }
func (*Meta) ProtoMessage() {}
func (*Meta) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{16}
}
func (m *Meta) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Meta.Unmarshal(m, b)
}
func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Meta.Marshal(b, m, deterministic)
}
func (m *Meta) XXX_Merge(src proto.Message) {
xxx_messageInfo_Meta.Merge(m, src)
}
func (m *Meta) XXX_Size() int {
return xxx_messageInfo_Meta.Size(m)
}
func (m *Meta) XXX_DiscardUnknown() {
xxx_messageInfo_Meta.DiscardUnknown(m)
}
var xxx_messageInfo_Meta proto.InternalMessageInfo
func (m *Meta) GetMeta() map[string]uint64 {
if m != nil {
return m.Meta
}
return nil
}
type Response struct { type Response struct {
// A status code that should follow the HTTP status codes. // A status code that should follow the HTTP status codes.
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
...@@ -1035,25 +1015,21 @@ func (m *Response) Reset() { *m = Response{} } ...@@ -1035,25 +1015,21 @@ func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) } func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {} func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) { func (*Response) Descriptor() ([]byte, []int) {
return fileDescriptor_f209535e190f2bed, []int{16} return fileDescriptor_f209535e190f2bed, []int{17}
} }
func (m *Response) XXX_Unmarshal(b []byte) error { func (m *Response) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Response.Unmarshal(m, b) return xxx_messageInfo_Response.Unmarshal(m, b)
} }
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Response.Marshal(b, m, deterministic) return xxx_messageInfo_Response.Marshal(b, m, deterministic)
} }
func (m *Response) XXX_Merge(src proto.Message) { func (m *Response) XXX_Merge(src proto.Message) {
xxx_messageInfo_Response.Merge(m, src) xxx_messageInfo_Response.Merge(m, src)
} }
func (m *Response) XXX_Size() int { func (m *Response) XXX_Size() int {
return xxx_messageInfo_Response.Size(m) return xxx_messageInfo_Response.Size(m)
} }
func (m *Response) XXX_DiscardUnknown() { func (m *Response) XXX_DiscardUnknown() {
xxx_messageInfo_Response.DiscardUnknown(m) xxx_messageInfo_Response.DiscardUnknown(m)
} }
...@@ -1083,7 +1059,8 @@ func (m *Response) GetPayload() []byte { ...@@ -1083,7 +1059,8 @@ func (m *Response) GetPayload() []byte {
func init() { func init() {
proto.RegisterType((*BrokerAction)(nil), "types.BrokerAction") proto.RegisterType((*BrokerAction)(nil), "types.BrokerAction")
proto.RegisterType((*Register)(nil), "types.Register") proto.RegisterType((*Init)(nil), "types.Init")
proto.RegisterType((*RegisterExector)(nil), "types.RegisterExector")
proto.RegisterType((*Audit)(nil), "types.Audit") proto.RegisterType((*Audit)(nil), "types.Audit")
proto.RegisterType((*PollingEvent)(nil), "types.PollingEvent") proto.RegisterType((*PollingEvent)(nil), "types.PollingEvent")
proto.RegisterType((*UpdateIndex)(nil), "types.UpdateIndex") proto.RegisterType((*UpdateIndex)(nil), "types.UpdateIndex")
...@@ -1091,14 +1068,14 @@ func init() { ...@@ -1091,14 +1068,14 @@ func init() {
proto.RegisterType((*ReceiptBrokerLog)(nil), "types.ReceiptBrokerLog") proto.RegisterType((*ReceiptBrokerLog)(nil), "types.ReceiptBrokerLog")
proto.RegisterType((*QueryInterchainEvent)(nil), "types.QueryInterchainEvent") proto.RegisterType((*QueryInterchainEvent)(nil), "types.QueryInterchainEvent")
proto.RegisterType((*InterChainEventList)(nil), "types.InterChainEventList") proto.RegisterType((*InterChainEventList)(nil), "types.InterChainEventList")
proto.RegisterType((*QueryNilParam)(nil), "types.QueryNilParam")
proto.RegisterType((*QueryOutterMeta)(nil), "types.QueryOutterMeta") proto.RegisterType((*QueryOutterMeta)(nil), "types.QueryOutterMeta")
proto.RegisterType((*QueryInnerMeta)(nil), "types.QueryInnerMeta") proto.RegisterType((*QueryInnerMeta)(nil), "types.QueryInnerMeta")
proto.RegisterType((*QueryNilParam)(nil), "types.QueryNilParam")
proto.RegisterType((*QueryInMessage)(nil), "types.QueryInMessage") proto.RegisterType((*QueryInMessage)(nil), "types.QueryInMessage")
proto.RegisterType((*QueryOutMessage)(nil), "types.QueryOutMessage") proto.RegisterType((*QueryOutMessage)(nil), "types.QueryOutMessage")
proto.RegisterType((*BrokerInfo)(nil), "types.BrokerInfo")
proto.RegisterType((*Meta)(nil), "types.Meta") proto.RegisterType((*Meta)(nil), "types.Meta")
proto.RegisterMapType((map[string]uint64)(nil), "types.Meta.MetaEntry") proto.RegisterMapType((map[string]uint64)(nil), "types.Meta.MetaEntry")
proto.RegisterType((*BrokerInfo)(nil), "types.BrokerInfo")
proto.RegisterType((*Response)(nil), "types.Response") proto.RegisterType((*Response)(nil), "types.Response")
} }
...@@ -1107,56 +1084,57 @@ func init() { ...@@ -1107,56 +1084,57 @@ func init() {
} }
var fileDescriptor_f209535e190f2bed = []byte{ var fileDescriptor_f209535e190f2bed = []byte{
// 663 bytes of a gzipped FileDescriptorProto // 711 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x55, 0x4b, 0x4f, 0xdb, 0x4a, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x55, 0x4f, 0x4f, 0xdb, 0x4a,
0x14, 0x8e, 0x93, 0x38, 0x90, 0x93, 0x40, 0xb8, 0x03, 0x17, 0x59, 0x77, 0x71, 0x6f, 0x34, 0x62, 0x10, 0x8f, 0x1d, 0x3b, 0x90, 0x49, 0x20, 0xbc, 0x85, 0x87, 0xac, 0x77, 0x78, 0x2f, 0xcf, 0xe2,
0xc1, 0xed, 0x83, 0x4a, 0x54, 0x6a, 0xab, 0xee, 0x42, 0x8b, 0x94, 0x54, 0x40, 0xe9, 0xf4, 0xa1, 0x40, 0x5b, 0x89, 0x4a, 0x20, 0xb5, 0x55, 0xd5, 0x4b, 0x42, 0x91, 0x92, 0x0a, 0x28, 0xdd, 0xfe,
0x76, 0x39, 0xd8, 0x87, 0x30, 0x25, 0xb1, 0xcd, 0xcc, 0x18, 0xe1, 0x5d, 0x17, 0xfd, 0x5d, 0xdd, 0x51, 0x7b, 0x5c, 0x9c, 0x21, 0x6c, 0x49, 0xd6, 0x66, 0xbd, 0x46, 0xf8, 0xa3, 0xf4, 0x9b, 0xf4,
0xf4, 0x8f, 0x55, 0xf3, 0x48, 0x62, 0x68, 0xab, 0x6e, 0x50, 0x37, 0xdd, 0x58, 0x73, 0xbe, 0xf9, 0xd4, 0x4b, 0xbf, 0x58, 0xb5, 0xeb, 0x4d, 0xe2, 0x04, 0xaa, 0xaa, 0x08, 0xf5, 0x12, 0xed, 0xfc,
0xce, 0x9c, 0xf7, 0x31, 0x74, 0x4f, 0x64, 0x76, 0x8e, 0x72, 0x27, 0x97, 0x99, 0xce, 0x48, 0xa8, 0x66, 0x76, 0x67, 0xf2, 0x9b, 0xf9, 0x8d, 0xa1, 0x79, 0x2a, 0xe3, 0x0b, 0x94, 0x3b, 0x89, 0x8c,
0xcb, 0x1c, 0x15, 0xfd, 0x54, 0x87, 0xee, 0x9e, 0xc5, 0x07, 0xb1, 0x16, 0x59, 0x4a, 0xee, 0xc3, 0x55, 0x4c, 0x7c, 0x95, 0x27, 0x98, 0x86, 0x5f, 0x5d, 0x68, 0x76, 0x0d, 0xde, 0x89, 0x14, 0x8f,
0xb2, 0xc4, 0xb1, 0x50, 0x1a, 0x65, 0x14, 0xf4, 0x83, 0xed, 0xce, 0x6e, 0x6f, 0xc7, 0x52, 0x77, 0x05, 0xf9, 0x1f, 0x3c, 0x2e, 0xb8, 0x0a, 0x9c, 0xb6, 0xb3, 0xdd, 0xd8, 0x6d, 0xec, 0x98, 0xb0,
0x98, 0x87, 0x87, 0x35, 0x36, 0xa7, 0x90, 0x2d, 0x08, 0x79, 0x91, 0x08, 0x1d, 0xd5, 0x2d, 0xb7, 0x9d, 0xbe, 0xe0, 0xaa, 0x57, 0xa1, 0xc6, 0x45, 0xba, 0xd0, 0x92, 0x38, 0xe4, 0xa9, 0x42, 0x79,
0xeb, 0xb9, 0x03, 0x83, 0x0d, 0x6b, 0xcc, 0x5d, 0x92, 0x17, 0xb0, 0x8e, 0x53, 0xa1, 0x47, 0xa9, 0x70, 0x8d, 0x91, 0x8a, 0x65, 0xe0, 0x9a, 0xe8, 0x4d, 0x1b, 0x4d, 0xe7, 0xbd, 0xbd, 0x0a, 0x5d,
0x46, 0x19, 0x9f, 0x71, 0x91, 0xee, 0x5f, 0x62, 0xaa, 0xa3, 0x86, 0xd5, 0xd9, 0xf4, 0x3a, 0x37, 0xbc, 0x40, 0xb6, 0xc0, 0x67, 0xd9, 0x80, 0xab, 0xa0, 0x6a, 0x6e, 0x36, 0xed, 0xcd, 0x8e, 0xc6,
0x6e, 0x87, 0x35, 0xf6, 0x23, 0x25, 0xf2, 0x08, 0x3a, 0x45, 0x9e, 0x70, 0x8d, 0xa3, 0x34, 0xc1, 0x7a, 0x15, 0x5a, 0x38, 0xc9, 0x2b, 0x58, 0xc7, 0x31, 0x57, 0x7d, 0xa1, 0x50, 0x46, 0xe7, 0x8c,
0xab, 0xa8, 0x69, 0xdf, 0x20, 0xfe, 0x8d, 0xb7, 0x8b, 0x9b, 0x61, 0x8d, 0x55, 0x89, 0x64, 0x15, 0x8b, 0x83, 0x2b, 0x14, 0x2a, 0xf0, 0xe6, 0xb2, 0x2d, 0x78, 0x7b, 0x15, 0x7a, 0xdb, 0x25, 0xf2,
0xea, 0xba, 0x8c, 0xc2, 0x7e, 0xb0, 0x1d, 0xb2, 0xba, 0x2e, 0xf7, 0x96, 0x20, 0xbc, 0xe4, 0x93, 0x04, 0x1a, 0x59, 0x32, 0x60, 0x0a, 0xfb, 0x62, 0x80, 0xd7, 0x81, 0x6f, 0xde, 0x20, 0xf6, 0x8d,
0x02, 0xe9, 0x3d, 0x58, 0x9e, 0x85, 0x46, 0xfa, 0xd0, 0xc1, 0x2b, 0x8c, 0x75, 0x26, 0x8f, 0xf8, 0xf7, 0x33, 0x4f, 0xaf, 0x42, 0xcb, 0x81, 0x64, 0x15, 0x5c, 0x95, 0x07, 0xb5, 0xb6, 0xb3, 0xed,
0x14, 0x6d, 0x02, 0xda, 0xac, 0x0a, 0xd1, 0x01, 0x84, 0x36, 0xb8, 0x5f, 0x53, 0xc9, 0x26, 0xb4, 0x53, 0x57, 0xe5, 0xdd, 0x25, 0xf0, 0xaf, 0xd8, 0x28, 0xc3, 0xf0, 0x05, 0x78, 0x9a, 0x16, 0xb2,
0x94, 0xe6, 0xba, 0x50, 0x36, 0x39, 0x6d, 0xe6, 0x25, 0xfa, 0x00, 0xba, 0xc7, 0xd9, 0x64, 0x22, 0x01, 0xfe, 0xe9, 0xf5, 0x79, 0x7f, 0x60, 0x28, 0xab, 0xd3, 0xc2, 0x20, 0xff, 0x02, 0xb0, 0x24,
0xd2, 0xb1, 0x8b, 0xe8, 0x3f, 0x68, 0x4e, 0x51, 0x73, 0x9f, 0xee, 0x8e, 0x0f, 0xe5, 0x10, 0x35, 0xd9, 0xd7, 0xf9, 0xfb, 0x03, 0xc3, 0x4f, 0x9d, 0x96, 0x90, 0x70, 0x0f, 0x5a, 0x0b, 0x34, 0x91,
0x67, 0xf6, 0x82, 0x7e, 0x09, 0xa0, 0x53, 0x89, 0xcc, 0x98, 0x56, 0x78, 0x51, 0x60, 0x1a, 0xe3, 0x36, 0x34, 0xb0, 0x38, 0x1e, 0xb3, 0x31, 0xda, 0xe7, 0xca, 0x50, 0xd8, 0x01, 0xdf, 0x30, 0xf4,
0x51, 0x31, 0xb5, 0x7a, 0x4d, 0x56, 0x85, 0x08, 0x85, 0x6e, 0xa2, 0xf4, 0x6b, 0x94, 0x97, 0x22, 0xeb, 0x50, 0xb2, 0x09, 0xb5, 0x54, 0x31, 0x95, 0xa5, 0x36, 0xb7, 0xb5, 0xc2, 0xc7, 0xd0, 0x3c,
0xc6, 0xd1, 0x73, 0xef, 0xc0, 0x35, 0xcc, 0x70, 0x94, 0x8c, 0x17, 0x9c, 0x86, 0xe3, 0x54, 0x31, 0x89, 0x47, 0x23, 0x2e, 0x86, 0x05, 0x2d, 0xff, 0x81, 0x37, 0x46, 0xc5, 0x16, 0xfa, 0x7d, 0x84,
0x12, 0xc1, 0x92, 0xc4, 0x8b, 0x37, 0x65, 0x8e, 0x36, 0xd1, 0x4d, 0x36, 0x13, 0xc9, 0x5d, 0xd3, 0x8a, 0x51, 0xe3, 0x08, 0xbf, 0x39, 0xd0, 0x28, 0xd1, 0xa3, 0x53, 0xa7, 0x78, 0x99, 0xa1, 0x88,
0x27, 0x2a, 0xcf, 0x52, 0x85, 0x36, 0xa9, 0xd5, 0x3e, 0x71, 0x30, 0x9b, 0x13, 0xe8, 0xd7, 0x00, 0xf0, 0x38, 0x1b, 0x9b, 0x7b, 0x1e, 0x2d, 0x43, 0x24, 0x84, 0xe6, 0x20, 0x55, 0x6f, 0x51, 0x5e,
0x7a, 0x37, 0xeb, 0xb8, 0x01, 0xa1, 0xb0, 0x15, 0x74, 0xee, 0x3b, 0xe1, 0xd6, 0x1c, 0x27, 0xd0, 0xf1, 0x08, 0xfb, 0x2f, 0x6d, 0x01, 0x73, 0x98, 0x8e, 0x49, 0x65, 0x34, 0x8b, 0xa9, 0x16, 0x31,
0xd4, 0x0b, 0xaf, 0xed, 0xd9, 0x60, 0xa7, 0x45, 0x1a, 0x5b, 0x77, 0xdb, 0xcc, 0x9e, 0x0d, 0xc6, 0x65, 0x8c, 0x04, 0xb0, 0x24, 0xf1, 0xf2, 0x5d, 0x9e, 0xa0, 0xe9, 0xb8, 0x47, 0x27, 0x26, 0x79,
0xe5, 0x58, 0x45, 0xad, 0x7e, 0xc3, 0x60, 0xe6, 0x5c, 0xa9, 0xdb, 0x92, 0xed, 0x96, 0x59, 0xdd, 0x04, 0xcb, 0x12, 0xd3, 0x24, 0x16, 0x29, 0xda, 0x46, 0xb6, 0xa6, 0xa3, 0x57, 0xc0, 0x74, 0x1a,
0x3e, 0xd7, 0x61, 0x8d, 0x61, 0x8c, 0x22, 0xd7, 0x6e, 0x64, 0x0e, 0xb2, 0xf1, 0x1f, 0x38, 0x2f, 0x10, 0x7e, 0x77, 0xa0, 0xb5, 0x38, 0x0c, 0x1b, 0xe0, 0x73, 0x33, 0x06, 0x45, 0xf9, 0x85, 0x71,
0x1a, 0x36, 0x5e, 0x15, 0x28, 0xcb, 0xdf, 0x5a, 0x50, 0x3a, 0x80, 0x75, 0x6b, 0xf0, 0xd9, 0xdc, 0x6f, 0x85, 0x13, 0xf0, 0xd4, 0xac, 0x6a, 0x73, 0xd6, 0xd8, 0x59, 0x26, 0x22, 0x53, 0x6e, 0x9d,
0xe0, 0x81, 0x50, 0x9a, 0xdc, 0x81, 0xe6, 0x44, 0x28, 0x1d, 0x05, 0xfd, 0xc6, 0xcf, 0x53, 0xc3, 0x9a, 0xb3, 0xc6, 0x98, 0x1c, 0xa6, 0x41, 0xad, 0x5d, 0xd5, 0x98, 0x3e, 0x97, 0xfa, 0xb6, 0x64,
0x2c, 0x87, 0xfe, 0x05, 0x3d, 0xeb, 0xf8, 0xcb, 0x42, 0x6b, 0x94, 0x66, 0xbe, 0xe8, 0x1a, 0xac, 0x46, 0x6e, 0xd2, 0xb7, 0x2f, 0x2e, 0xac, 0x51, 0x8c, 0x90, 0x27, 0xaa, 0xd0, 0xeb, 0x61, 0x3c,
0xfa, 0x58, 0x52, 0x8f, 0xf4, 0x60, 0xc5, 0x22, 0x47, 0x62, 0x72, 0xcc, 0x25, 0x9f, 0xd2, 0xf7, 0xbc, 0x4d, 0x89, 0xce, 0x9d, 0x95, 0xe8, 0xde, 0x41, 0x89, 0xd5, 0x7b, 0x50, 0xa2, 0xf7, 0x7b,
0x73, 0xca, 0x21, 0x2a, 0xc5, 0xc7, 0x48, 0xb6, 0x60, 0x45, 0xa4, 0xde, 0xb3, 0x63, 0x2e, 0xa4, 0x4a, 0xf4, 0x6f, 0x2a, 0x51, 0xc1, 0xc6, 0x9b, 0x0c, 0x65, 0xfe, 0x47, 0xbb, 0x1c, 0x76, 0x60,
0x9f, 0xfd, 0xeb, 0xe0, 0xcd, 0x21, 0xad, 0x7f, 0x37, 0xa4, 0xf4, 0xc3, 0xc2, 0x9f, 0xdb, 0x7e, 0xdd, 0x24, 0xdc, 0x9f, 0x26, 0x3c, 0xe4, 0xa9, 0x22, 0x0f, 0xc1, 0x1b, 0xf1, 0x54, 0x2f, 0xd0,
0xfa, 0x23, 0x34, 0x4d, 0x34, 0xe4, 0xff, 0xf9, 0x6a, 0x31, 0xe9, 0xf9, 0xbb, 0xb2, 0x5a, 0xec, 0xea, 0xcf, 0xa9, 0xa1, 0x26, 0x26, 0x6c, 0xc1, 0x8a, 0x29, 0xfc, 0x98, 0x8f, 0x4e, 0x98, 0x64,
0x67, 0x3f, 0xd5, 0xb2, 0x74, 0x4b, 0xe6, 0x9f, 0xc7, 0xd0, 0x9e, 0x43, 0x64, 0x0d, 0x1a, 0xe7, 0xe3, 0xf0, 0x2f, 0x68, 0x19, 0xe0, 0x75, 0xa6, 0x14, 0x4a, 0xad, 0xc2, 0x70, 0x0d, 0x56, 0xed,
0x58, 0x7a, 0xeb, 0xe6, 0x68, 0xaa, 0x6b, 0xcb, 0xef, 0xad, 0x39, 0xe1, 0x69, 0xfd, 0x49, 0x40, 0x9f, 0x13, 0x16, 0xf9, 0x38, 0x45, 0x8e, 0x30, 0x4d, 0xd9, 0x10, 0xc9, 0x16, 0xac, 0x70, 0x61,
0xf7, 0x00, 0xdc, 0x38, 0x8c, 0xd2, 0xd3, 0xcc, 0xf0, 0x4e, 0xae, 0xce, 0x46, 0x89, 0xd7, 0x75, 0x2b, 0x3b, 0x61, 0x5c, 0xda, 0x85, 0x30, 0x0f, 0x2e, 0x2a, 0xd7, 0xbd, 0xa1, 0xdc, 0xf0, 0xd3,
0x02, 0xf9, 0x17, 0x80, 0xe7, 0xb9, 0xad, 0xdd, 0x28, 0xf1, 0x3d, 0x50, 0x41, 0xe8, 0x3b, 0xb3, 0x2c, 0xfd, 0x7d, 0x3f, 0xdd, 0x05, 0x28, 0xe6, 0xb6, 0x2f, 0xce, 0xe2, 0x3b, 0xee, 0xcc, 0xcf,
0x83, 0xdd, 0xb2, 0xa8, 0x8c, 0x5f, 0x50, 0x1d, 0x3f, 0xb3, 0x8b, 0xa6, 0x2e, 0x4d, 0xfe, 0x81, 0xe0, 0x69, 0x02, 0xc8, 0x83, 0xe9, 0xce, 0xd2, 0x14, 0xff, 0x5d, 0xda, 0x59, 0xe6, 0xe7, 0x40,
0x99, 0x68, 0x6e, 0x72, 0x5e, 0x4e, 0x32, 0x9e, 0xd8, 0xd6, 0xe9, 0xb2, 0x99, 0xb8, 0xbb, 0x0c, 0x28, 0x99, 0x17, 0xdb, 0xeb, 0x9f, 0xa7, 0x50, 0x9f, 0x42, 0x64, 0x0d, 0xaa, 0x17, 0x98, 0xdb,
0x2d, 0xf7, 0xd7, 0x3b, 0x69, 0xd9, 0xdf, 0xde, 0xc3, 0x6f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x77, 0x9c, 0xfa, 0xa8, 0xeb, 0x30, 0x23, 0x64, 0x2b, 0x2e, 0x8c, 0xe7, 0xee, 0x33, 0x27, 0xfc, 0x00,
0x91, 0x72, 0x3e, 0x06, 0x07, 0x00, 0x00, 0xcb, 0x93, 0x5d, 0x52, 0xd2, 0xa4, 0x53, 0xd6, 0xa4, 0x5e, 0x50, 0xe3, 0x82, 0x26, 0x5b, 0xec,
0xc4, 0xd4, 0x9e, 0x84, 0xe5, 0xa3, 0x98, 0x0d, 0xcc, 0xe8, 0x34, 0xe9, 0xc4, 0xdc, 0x5d, 0x86,
0x5a, 0xf1, 0x1d, 0x3e, 0xad, 0x99, 0x0f, 0xf1, 0xde, 0x8f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a,
0x16, 0xb7, 0x18, 0x98, 0x07, 0x00, 0x00,
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var ( var _ context.Context
_ context.Context var _ grpc.ClientConnInterface
_ grpc.ClientConnInterface
)
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
...@@ -1165,7 +1143,8 @@ const _ = grpc.SupportPackageIsVersion6 ...@@ -1165,7 +1143,8 @@ const _ = grpc.SupportPackageIsVersion6
// BrokerClient is the client API for Broker service. // BrokerClient is the client API for Broker service.
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BrokerClient interface{} type BrokerClient interface {
}
type brokerClient struct { type brokerClient struct {
cc grpc.ClientConnInterface cc grpc.ClientConnInterface
...@@ -1176,10 +1155,12 @@ func NewBrokerClient(cc grpc.ClientConnInterface) BrokerClient { ...@@ -1176,10 +1155,12 @@ func NewBrokerClient(cc grpc.ClientConnInterface) BrokerClient {
} }
// BrokerServer is the server API for Broker service. // BrokerServer is the server API for Broker service.
type BrokerServer interface{} type BrokerServer interface {
}
// UnimplementedBrokerServer can be embedded to have forward compatible implementations. // UnimplementedBrokerServer can be embedded to have forward compatible implementations.
type UnimplementedBrokerServer struct{} type UnimplementedBrokerServer struct {
}
func RegisterBrokerServer(s *grpc.Server, srv BrokerServer) { func RegisterBrokerServer(s *grpc.Server, srv BrokerServer) {
s.RegisterService(&_Broker_serviceDesc, srv) s.RegisterService(&_Broker_serviceDesc, srv)
......
...@@ -5,17 +5,14 @@ package types ...@@ -5,17 +5,14 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var ( var _ = proto.Marshal
_ = proto.Marshal var _ = fmt.Errorf
_ = fmt.Errorf var _ = math.Inf
_ = math.Inf
)
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
...@@ -46,19 +43,15 @@ func (*CertAction) Descriptor() ([]byte, []int) { ...@@ -46,19 +43,15 @@ func (*CertAction) Descriptor() ([]byte, []int) {
func (m *CertAction) XXX_Unmarshal(b []byte) error { func (m *CertAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertAction.Unmarshal(m, b) return xxx_messageInfo_CertAction.Unmarshal(m, b)
} }
func (m *CertAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CertAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertAction.Marshal(b, m, deterministic) return xxx_messageInfo_CertAction.Marshal(b, m, deterministic)
} }
func (m *CertAction) XXX_Merge(src proto.Message) { func (m *CertAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertAction.Merge(m, src) xxx_messageInfo_CertAction.Merge(m, src)
} }
func (m *CertAction) XXX_Size() int { func (m *CertAction) XXX_Size() int {
return xxx_messageInfo_CertAction.Size(m) return xxx_messageInfo_CertAction.Size(m)
} }
func (m *CertAction) XXX_DiscardUnknown() { func (m *CertAction) XXX_DiscardUnknown() {
xxx_messageInfo_CertAction.DiscardUnknown(m) xxx_messageInfo_CertAction.DiscardUnknown(m)
} }
...@@ -150,19 +143,15 @@ func (*CertNew) Descriptor() ([]byte, []int) { ...@@ -150,19 +143,15 @@ func (*CertNew) Descriptor() ([]byte, []int) {
func (m *CertNew) XXX_Unmarshal(b []byte) error { func (m *CertNew) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertNew.Unmarshal(m, b) return xxx_messageInfo_CertNew.Unmarshal(m, b)
} }
func (m *CertNew) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CertNew) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertNew.Marshal(b, m, deterministic) return xxx_messageInfo_CertNew.Marshal(b, m, deterministic)
} }
func (m *CertNew) XXX_Merge(src proto.Message) { func (m *CertNew) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertNew.Merge(m, src) xxx_messageInfo_CertNew.Merge(m, src)
} }
func (m *CertNew) XXX_Size() int { func (m *CertNew) XXX_Size() int {
return xxx_messageInfo_CertNew.Size(m) return xxx_messageInfo_CertNew.Size(m)
} }
func (m *CertNew) XXX_DiscardUnknown() { func (m *CertNew) XXX_DiscardUnknown() {
xxx_messageInfo_CertNew.DiscardUnknown(m) xxx_messageInfo_CertNew.DiscardUnknown(m)
} }
...@@ -202,19 +191,15 @@ func (*CertUpdate) Descriptor() ([]byte, []int) { ...@@ -202,19 +191,15 @@ func (*CertUpdate) Descriptor() ([]byte, []int) {
func (m *CertUpdate) XXX_Unmarshal(b []byte) error { func (m *CertUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertUpdate.Unmarshal(m, b) return xxx_messageInfo_CertUpdate.Unmarshal(m, b)
} }
func (m *CertUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CertUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertUpdate.Marshal(b, m, deterministic) return xxx_messageInfo_CertUpdate.Marshal(b, m, deterministic)
} }
func (m *CertUpdate) XXX_Merge(src proto.Message) { func (m *CertUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertUpdate.Merge(m, src) xxx_messageInfo_CertUpdate.Merge(m, src)
} }
func (m *CertUpdate) XXX_Size() int { func (m *CertUpdate) XXX_Size() int {
return xxx_messageInfo_CertUpdate.Size(m) return xxx_messageInfo_CertUpdate.Size(m)
} }
func (m *CertUpdate) XXX_DiscardUnknown() { func (m *CertUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_CertUpdate.DiscardUnknown(m) xxx_messageInfo_CertUpdate.DiscardUnknown(m)
} }
...@@ -254,19 +239,15 @@ func (*CertNormal) Descriptor() ([]byte, []int) { ...@@ -254,19 +239,15 @@ func (*CertNormal) Descriptor() ([]byte, []int) {
func (m *CertNormal) XXX_Unmarshal(b []byte) error { func (m *CertNormal) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertNormal.Unmarshal(m, b) return xxx_messageInfo_CertNormal.Unmarshal(m, b)
} }
func (m *CertNormal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CertNormal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertNormal.Marshal(b, m, deterministic) return xxx_messageInfo_CertNormal.Marshal(b, m, deterministic)
} }
func (m *CertNormal) XXX_Merge(src proto.Message) { func (m *CertNormal) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertNormal.Merge(m, src) xxx_messageInfo_CertNormal.Merge(m, src)
} }
func (m *CertNormal) XXX_Size() int { func (m *CertNormal) XXX_Size() int {
return xxx_messageInfo_CertNormal.Size(m) return xxx_messageInfo_CertNormal.Size(m)
} }
func (m *CertNormal) XXX_DiscardUnknown() { func (m *CertNormal) XXX_DiscardUnknown() {
xxx_messageInfo_CertNormal.DiscardUnknown(m) xxx_messageInfo_CertNormal.DiscardUnknown(m)
} }
...@@ -306,19 +287,15 @@ func (*CertSignature) Descriptor() ([]byte, []int) { ...@@ -306,19 +287,15 @@ func (*CertSignature) Descriptor() ([]byte, []int) {
func (m *CertSignature) XXX_Unmarshal(b []byte) error { func (m *CertSignature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertSignature.Unmarshal(m, b) return xxx_messageInfo_CertSignature.Unmarshal(m, b)
} }
func (m *CertSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CertSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertSignature.Marshal(b, m, deterministic) return xxx_messageInfo_CertSignature.Marshal(b, m, deterministic)
} }
func (m *CertSignature) XXX_Merge(src proto.Message) { func (m *CertSignature) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertSignature.Merge(m, src) xxx_messageInfo_CertSignature.Merge(m, src)
} }
func (m *CertSignature) XXX_Size() int { func (m *CertSignature) XXX_Size() int {
return xxx_messageInfo_CertSignature.Size(m) return xxx_messageInfo_CertSignature.Size(m)
} }
func (m *CertSignature) XXX_DiscardUnknown() { func (m *CertSignature) XXX_DiscardUnknown() {
xxx_messageInfo_CertSignature.DiscardUnknown(m) xxx_messageInfo_CertSignature.DiscardUnknown(m)
} }
......
...@@ -5,17 +5,14 @@ package types ...@@ -5,17 +5,14 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var ( var _ = proto.Marshal
_ = proto.Marshal var _ = fmt.Errorf
_ = fmt.Errorf var _ = math.Inf
_ = math.Inf
)
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
...@@ -41,19 +38,15 @@ func (*Reply) Descriptor() ([]byte, []int) { ...@@ -41,19 +38,15 @@ func (*Reply) Descriptor() ([]byte, []int) {
func (m *Reply) XXX_Unmarshal(b []byte) error { func (m *Reply) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Reply.Unmarshal(m, b) return xxx_messageInfo_Reply.Unmarshal(m, b)
} }
func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Reply.Marshal(b, m, deterministic) return xxx_messageInfo_Reply.Marshal(b, m, deterministic)
} }
func (m *Reply) XXX_Merge(src proto.Message) { func (m *Reply) XXX_Merge(src proto.Message) {
xxx_messageInfo_Reply.Merge(m, src) xxx_messageInfo_Reply.Merge(m, src)
} }
func (m *Reply) XXX_Size() int { func (m *Reply) XXX_Size() int {
return xxx_messageInfo_Reply.Size(m) return xxx_messageInfo_Reply.Size(m)
} }
func (m *Reply) XXX_DiscardUnknown() { func (m *Reply) XXX_DiscardUnknown() {
xxx_messageInfo_Reply.DiscardUnknown(m) xxx_messageInfo_Reply.DiscardUnknown(m)
} }
...@@ -91,19 +84,15 @@ func (*ReqString) Descriptor() ([]byte, []int) { ...@@ -91,19 +84,15 @@ func (*ReqString) Descriptor() ([]byte, []int) {
func (m *ReqString) XXX_Unmarshal(b []byte) error { func (m *ReqString) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqString.Unmarshal(m, b) return xxx_messageInfo_ReqString.Unmarshal(m, b)
} }
func (m *ReqString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqString.Marshal(b, m, deterministic) return xxx_messageInfo_ReqString.Marshal(b, m, deterministic)
} }
func (m *ReqString) XXX_Merge(src proto.Message) { func (m *ReqString) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqString.Merge(m, src) xxx_messageInfo_ReqString.Merge(m, src)
} }
func (m *ReqString) XXX_Size() int { func (m *ReqString) XXX_Size() int {
return xxx_messageInfo_ReqString.Size(m) return xxx_messageInfo_ReqString.Size(m)
} }
func (m *ReqString) XXX_DiscardUnknown() { func (m *ReqString) XXX_DiscardUnknown() {
xxx_messageInfo_ReqString.DiscardUnknown(m) xxx_messageInfo_ReqString.DiscardUnknown(m)
} }
...@@ -134,19 +123,15 @@ func (*ReplyString) Descriptor() ([]byte, []int) { ...@@ -134,19 +123,15 @@ func (*ReplyString) Descriptor() ([]byte, []int) {
func (m *ReplyString) XXX_Unmarshal(b []byte) error { func (m *ReplyString) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyString.Unmarshal(m, b) return xxx_messageInfo_ReplyString.Unmarshal(m, b)
} }
func (m *ReplyString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReplyString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyString.Marshal(b, m, deterministic) return xxx_messageInfo_ReplyString.Marshal(b, m, deterministic)
} }
func (m *ReplyString) XXX_Merge(src proto.Message) { func (m *ReplyString) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyString.Merge(m, src) xxx_messageInfo_ReplyString.Merge(m, src)
} }
func (m *ReplyString) XXX_Size() int { func (m *ReplyString) XXX_Size() int {
return xxx_messageInfo_ReplyString.Size(m) return xxx_messageInfo_ReplyString.Size(m)
} }
func (m *ReplyString) XXX_DiscardUnknown() { func (m *ReplyString) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyString.DiscardUnknown(m) xxx_messageInfo_ReplyString.DiscardUnknown(m)
} }
...@@ -177,19 +162,15 @@ func (*ReplyStrings) Descriptor() ([]byte, []int) { ...@@ -177,19 +162,15 @@ func (*ReplyStrings) Descriptor() ([]byte, []int) {
func (m *ReplyStrings) XXX_Unmarshal(b []byte) error { func (m *ReplyStrings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyStrings.Unmarshal(m, b) return xxx_messageInfo_ReplyStrings.Unmarshal(m, b)
} }
func (m *ReplyStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReplyStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyStrings.Marshal(b, m, deterministic) return xxx_messageInfo_ReplyStrings.Marshal(b, m, deterministic)
} }
func (m *ReplyStrings) XXX_Merge(src proto.Message) { func (m *ReplyStrings) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyStrings.Merge(m, src) xxx_messageInfo_ReplyStrings.Merge(m, src)
} }
func (m *ReplyStrings) XXX_Size() int { func (m *ReplyStrings) XXX_Size() int {
return xxx_messageInfo_ReplyStrings.Size(m) return xxx_messageInfo_ReplyStrings.Size(m)
} }
func (m *ReplyStrings) XXX_DiscardUnknown() { func (m *ReplyStrings) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyStrings.DiscardUnknown(m) xxx_messageInfo_ReplyStrings.DiscardUnknown(m)
} }
...@@ -220,19 +201,15 @@ func (*ReqInt) Descriptor() ([]byte, []int) { ...@@ -220,19 +201,15 @@ func (*ReqInt) Descriptor() ([]byte, []int) {
func (m *ReqInt) XXX_Unmarshal(b []byte) error { func (m *ReqInt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqInt.Unmarshal(m, b) return xxx_messageInfo_ReqInt.Unmarshal(m, b)
} }
func (m *ReqInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqInt.Marshal(b, m, deterministic) return xxx_messageInfo_ReqInt.Marshal(b, m, deterministic)
} }
func (m *ReqInt) XXX_Merge(src proto.Message) { func (m *ReqInt) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqInt.Merge(m, src) xxx_messageInfo_ReqInt.Merge(m, src)
} }
func (m *ReqInt) XXX_Size() int { func (m *ReqInt) XXX_Size() int {
return xxx_messageInfo_ReqInt.Size(m) return xxx_messageInfo_ReqInt.Size(m)
} }
func (m *ReqInt) XXX_DiscardUnknown() { func (m *ReqInt) XXX_DiscardUnknown() {
xxx_messageInfo_ReqInt.DiscardUnknown(m) xxx_messageInfo_ReqInt.DiscardUnknown(m)
} }
...@@ -263,19 +240,15 @@ func (*Int64) Descriptor() ([]byte, []int) { ...@@ -263,19 +240,15 @@ func (*Int64) Descriptor() ([]byte, []int) {
func (m *Int64) XXX_Unmarshal(b []byte) error { func (m *Int64) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Int64.Unmarshal(m, b) return xxx_messageInfo_Int64.Unmarshal(m, b)
} }
func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Int64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Int64.Marshal(b, m, deterministic) return xxx_messageInfo_Int64.Marshal(b, m, deterministic)
} }
func (m *Int64) XXX_Merge(src proto.Message) { func (m *Int64) XXX_Merge(src proto.Message) {
xxx_messageInfo_Int64.Merge(m, src) xxx_messageInfo_Int64.Merge(m, src)
} }
func (m *Int64) XXX_Size() int { func (m *Int64) XXX_Size() int {
return xxx_messageInfo_Int64.Size(m) return xxx_messageInfo_Int64.Size(m)
} }
func (m *Int64) XXX_DiscardUnknown() { func (m *Int64) XXX_DiscardUnknown() {
xxx_messageInfo_Int64.DiscardUnknown(m) xxx_messageInfo_Int64.DiscardUnknown(m)
} }
...@@ -307,19 +280,15 @@ func (*ReqHash) Descriptor() ([]byte, []int) { ...@@ -307,19 +280,15 @@ func (*ReqHash) Descriptor() ([]byte, []int) {
func (m *ReqHash) XXX_Unmarshal(b []byte) error { func (m *ReqHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqHash.Unmarshal(m, b) return xxx_messageInfo_ReqHash.Unmarshal(m, b)
} }
func (m *ReqHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqHash.Marshal(b, m, deterministic) return xxx_messageInfo_ReqHash.Marshal(b, m, deterministic)
} }
func (m *ReqHash) XXX_Merge(src proto.Message) { func (m *ReqHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqHash.Merge(m, src) xxx_messageInfo_ReqHash.Merge(m, src)
} }
func (m *ReqHash) XXX_Size() int { func (m *ReqHash) XXX_Size() int {
return xxx_messageInfo_ReqHash.Size(m) return xxx_messageInfo_ReqHash.Size(m)
} }
func (m *ReqHash) XXX_DiscardUnknown() { func (m *ReqHash) XXX_DiscardUnknown() {
xxx_messageInfo_ReqHash.DiscardUnknown(m) xxx_messageInfo_ReqHash.DiscardUnknown(m)
} }
...@@ -357,19 +326,15 @@ func (*ReplyHash) Descriptor() ([]byte, []int) { ...@@ -357,19 +326,15 @@ func (*ReplyHash) Descriptor() ([]byte, []int) {
func (m *ReplyHash) XXX_Unmarshal(b []byte) error { func (m *ReplyHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyHash.Unmarshal(m, b) return xxx_messageInfo_ReplyHash.Unmarshal(m, b)
} }
func (m *ReplyHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReplyHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyHash.Marshal(b, m, deterministic) return xxx_messageInfo_ReplyHash.Marshal(b, m, deterministic)
} }
func (m *ReplyHash) XXX_Merge(src proto.Message) { func (m *ReplyHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyHash.Merge(m, src) xxx_messageInfo_ReplyHash.Merge(m, src)
} }
func (m *ReplyHash) XXX_Size() int { func (m *ReplyHash) XXX_Size() int {
return xxx_messageInfo_ReplyHash.Size(m) return xxx_messageInfo_ReplyHash.Size(m)
} }
func (m *ReplyHash) XXX_DiscardUnknown() { func (m *ReplyHash) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyHash.DiscardUnknown(m) xxx_messageInfo_ReplyHash.DiscardUnknown(m)
} }
...@@ -399,19 +364,15 @@ func (*ReqNil) Descriptor() ([]byte, []int) { ...@@ -399,19 +364,15 @@ func (*ReqNil) Descriptor() ([]byte, []int) {
func (m *ReqNil) XXX_Unmarshal(b []byte) error { func (m *ReqNil) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqNil.Unmarshal(m, b) return xxx_messageInfo_ReqNil.Unmarshal(m, b)
} }
func (m *ReqNil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqNil) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqNil.Marshal(b, m, deterministic) return xxx_messageInfo_ReqNil.Marshal(b, m, deterministic)
} }
func (m *ReqNil) XXX_Merge(src proto.Message) { func (m *ReqNil) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqNil.Merge(m, src) xxx_messageInfo_ReqNil.Merge(m, src)
} }
func (m *ReqNil) XXX_Size() int { func (m *ReqNil) XXX_Size() int {
return xxx_messageInfo_ReqNil.Size(m) return xxx_messageInfo_ReqNil.Size(m)
} }
func (m *ReqNil) XXX_DiscardUnknown() { func (m *ReqNil) XXX_DiscardUnknown() {
xxx_messageInfo_ReqNil.DiscardUnknown(m) xxx_messageInfo_ReqNil.DiscardUnknown(m)
} }
...@@ -435,19 +396,15 @@ func (*ReqHashes) Descriptor() ([]byte, []int) { ...@@ -435,19 +396,15 @@ func (*ReqHashes) Descriptor() ([]byte, []int) {
func (m *ReqHashes) XXX_Unmarshal(b []byte) error { func (m *ReqHashes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqHashes.Unmarshal(m, b) return xxx_messageInfo_ReqHashes.Unmarshal(m, b)
} }
func (m *ReqHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqHashes.Marshal(b, m, deterministic) return xxx_messageInfo_ReqHashes.Marshal(b, m, deterministic)
} }
func (m *ReqHashes) XXX_Merge(src proto.Message) { func (m *ReqHashes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqHashes.Merge(m, src) xxx_messageInfo_ReqHashes.Merge(m, src)
} }
func (m *ReqHashes) XXX_Size() int { func (m *ReqHashes) XXX_Size() int {
return xxx_messageInfo_ReqHashes.Size(m) return xxx_messageInfo_ReqHashes.Size(m)
} }
func (m *ReqHashes) XXX_DiscardUnknown() { func (m *ReqHashes) XXX_DiscardUnknown() {
xxx_messageInfo_ReqHashes.DiscardUnknown(m) xxx_messageInfo_ReqHashes.DiscardUnknown(m)
} }
...@@ -478,19 +435,15 @@ func (*ReplyHashes) Descriptor() ([]byte, []int) { ...@@ -478,19 +435,15 @@ func (*ReplyHashes) Descriptor() ([]byte, []int) {
func (m *ReplyHashes) XXX_Unmarshal(b []byte) error { func (m *ReplyHashes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyHashes.Unmarshal(m, b) return xxx_messageInfo_ReplyHashes.Unmarshal(m, b)
} }
func (m *ReplyHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReplyHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyHashes.Marshal(b, m, deterministic) return xxx_messageInfo_ReplyHashes.Marshal(b, m, deterministic)
} }
func (m *ReplyHashes) XXX_Merge(src proto.Message) { func (m *ReplyHashes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyHashes.Merge(m, src) xxx_messageInfo_ReplyHashes.Merge(m, src)
} }
func (m *ReplyHashes) XXX_Size() int { func (m *ReplyHashes) XXX_Size() int {
return xxx_messageInfo_ReplyHashes.Size(m) return xxx_messageInfo_ReplyHashes.Size(m)
} }
func (m *ReplyHashes) XXX_DiscardUnknown() { func (m *ReplyHashes) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyHashes.DiscardUnknown(m) xxx_messageInfo_ReplyHashes.DiscardUnknown(m)
} }
...@@ -522,19 +475,15 @@ func (*KeyValue) Descriptor() ([]byte, []int) { ...@@ -522,19 +475,15 @@ func (*KeyValue) Descriptor() ([]byte, []int) {
func (m *KeyValue) XXX_Unmarshal(b []byte) error { func (m *KeyValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KeyValue.Unmarshal(m, b) return xxx_messageInfo_KeyValue.Unmarshal(m, b)
} }
func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic) return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic)
} }
func (m *KeyValue) XXX_Merge(src proto.Message) { func (m *KeyValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_KeyValue.Merge(m, src) xxx_messageInfo_KeyValue.Merge(m, src)
} }
func (m *KeyValue) XXX_Size() int { func (m *KeyValue) XXX_Size() int {
return xxx_messageInfo_KeyValue.Size(m) return xxx_messageInfo_KeyValue.Size(m)
} }
func (m *KeyValue) XXX_DiscardUnknown() { func (m *KeyValue) XXX_DiscardUnknown() {
xxx_messageInfo_KeyValue.DiscardUnknown(m) xxx_messageInfo_KeyValue.DiscardUnknown(m)
} }
...@@ -572,19 +521,15 @@ func (*TxHash) Descriptor() ([]byte, []int) { ...@@ -572,19 +521,15 @@ func (*TxHash) Descriptor() ([]byte, []int) {
func (m *TxHash) XXX_Unmarshal(b []byte) error { func (m *TxHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxHash.Unmarshal(m, b) return xxx_messageInfo_TxHash.Unmarshal(m, b)
} }
func (m *TxHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *TxHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxHash.Marshal(b, m, deterministic) return xxx_messageInfo_TxHash.Marshal(b, m, deterministic)
} }
func (m *TxHash) XXX_Merge(src proto.Message) { func (m *TxHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxHash.Merge(m, src) xxx_messageInfo_TxHash.Merge(m, src)
} }
func (m *TxHash) XXX_Size() int { func (m *TxHash) XXX_Size() int {
return xxx_messageInfo_TxHash.Size(m) return xxx_messageInfo_TxHash.Size(m)
} }
func (m *TxHash) XXX_DiscardUnknown() { func (m *TxHash) XXX_DiscardUnknown() {
xxx_messageInfo_TxHash.DiscardUnknown(m) xxx_messageInfo_TxHash.DiscardUnknown(m)
} }
...@@ -617,19 +562,15 @@ func (*TimeStatus) Descriptor() ([]byte, []int) { ...@@ -617,19 +562,15 @@ func (*TimeStatus) Descriptor() ([]byte, []int) {
func (m *TimeStatus) XXX_Unmarshal(b []byte) error { func (m *TimeStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TimeStatus.Unmarshal(m, b) return xxx_messageInfo_TimeStatus.Unmarshal(m, b)
} }
func (m *TimeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *TimeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TimeStatus.Marshal(b, m, deterministic) return xxx_messageInfo_TimeStatus.Marshal(b, m, deterministic)
} }
func (m *TimeStatus) XXX_Merge(src proto.Message) { func (m *TimeStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_TimeStatus.Merge(m, src) xxx_messageInfo_TimeStatus.Merge(m, src)
} }
func (m *TimeStatus) XXX_Size() int { func (m *TimeStatus) XXX_Size() int {
return xxx_messageInfo_TimeStatus.Size(m) return xxx_messageInfo_TimeStatus.Size(m)
} }
func (m *TimeStatus) XXX_DiscardUnknown() { func (m *TimeStatus) XXX_DiscardUnknown() {
xxx_messageInfo_TimeStatus.DiscardUnknown(m) xxx_messageInfo_TimeStatus.DiscardUnknown(m)
} }
...@@ -674,19 +615,15 @@ func (*ReqKey) Descriptor() ([]byte, []int) { ...@@ -674,19 +615,15 @@ func (*ReqKey) Descriptor() ([]byte, []int) {
func (m *ReqKey) XXX_Unmarshal(b []byte) error { func (m *ReqKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqKey.Unmarshal(m, b) return xxx_messageInfo_ReqKey.Unmarshal(m, b)
} }
func (m *ReqKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqKey.Marshal(b, m, deterministic) return xxx_messageInfo_ReqKey.Marshal(b, m, deterministic)
} }
func (m *ReqKey) XXX_Merge(src proto.Message) { func (m *ReqKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqKey.Merge(m, src) xxx_messageInfo_ReqKey.Merge(m, src)
} }
func (m *ReqKey) XXX_Size() int { func (m *ReqKey) XXX_Size() int {
return xxx_messageInfo_ReqKey.Size(m) return xxx_messageInfo_ReqKey.Size(m)
} }
func (m *ReqKey) XXX_DiscardUnknown() { func (m *ReqKey) XXX_DiscardUnknown() {
xxx_messageInfo_ReqKey.DiscardUnknown(m) xxx_messageInfo_ReqKey.DiscardUnknown(m)
} }
...@@ -720,19 +657,15 @@ func (*ReqRandHash) Descriptor() ([]byte, []int) { ...@@ -720,19 +657,15 @@ func (*ReqRandHash) Descriptor() ([]byte, []int) {
func (m *ReqRandHash) XXX_Unmarshal(b []byte) error { func (m *ReqRandHash) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqRandHash.Unmarshal(m, b) return xxx_messageInfo_ReqRandHash.Unmarshal(m, b)
} }
func (m *ReqRandHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReqRandHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqRandHash.Marshal(b, m, deterministic) return xxx_messageInfo_ReqRandHash.Marshal(b, m, deterministic)
} }
func (m *ReqRandHash) XXX_Merge(src proto.Message) { func (m *ReqRandHash) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqRandHash.Merge(m, src) xxx_messageInfo_ReqRandHash.Merge(m, src)
} }
func (m *ReqRandHash) XXX_Size() int { func (m *ReqRandHash) XXX_Size() int {
return xxx_messageInfo_ReqRandHash.Size(m) return xxx_messageInfo_ReqRandHash.Size(m)
} }
func (m *ReqRandHash) XXX_DiscardUnknown() { func (m *ReqRandHash) XXX_DiscardUnknown() {
xxx_messageInfo_ReqRandHash.DiscardUnknown(m) xxx_messageInfo_ReqRandHash.DiscardUnknown(m)
} }
...@@ -790,19 +723,15 @@ func (*VersionInfo) Descriptor() ([]byte, []int) { ...@@ -790,19 +723,15 @@ func (*VersionInfo) Descriptor() ([]byte, []int) {
func (m *VersionInfo) XXX_Unmarshal(b []byte) error { func (m *VersionInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VersionInfo.Unmarshal(m, b) return xxx_messageInfo_VersionInfo.Unmarshal(m, b)
} }
func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *VersionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VersionInfo.Marshal(b, m, deterministic) return xxx_messageInfo_VersionInfo.Marshal(b, m, deterministic)
} }
func (m *VersionInfo) XXX_Merge(src proto.Message) { func (m *VersionInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_VersionInfo.Merge(m, src) xxx_messageInfo_VersionInfo.Merge(m, src)
} }
func (m *VersionInfo) XXX_Size() int { func (m *VersionInfo) XXX_Size() int {
return xxx_messageInfo_VersionInfo.Size(m) return xxx_messageInfo_VersionInfo.Size(m)
} }
func (m *VersionInfo) XXX_DiscardUnknown() { func (m *VersionInfo) XXX_DiscardUnknown() {
xxx_messageInfo_VersionInfo.DiscardUnknown(m) xxx_messageInfo_VersionInfo.DiscardUnknown(m)
} }
......
...@@ -5,17 +5,14 @@ package types ...@@ -5,17 +5,14 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var ( var _ = proto.Marshal
_ = proto.Marshal var _ = fmt.Errorf
_ = fmt.Errorf var _ = math.Inf
_ = math.Inf
)
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
...@@ -29,9 +26,9 @@ type Transaction struct { ...@@ -29,9 +26,9 @@ type Transaction struct {
Signature *Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` Signature *Signature `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
Fee int64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"` Fee int64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"`
Expire int64 `protobuf:"varint,5,opt,name=expire,proto3" json:"expire,omitempty"` Expire int64 `protobuf:"varint,5,opt,name=expire,proto3" json:"expire,omitempty"`
// 随机ID,可以防止payload 相同的时候,交易重复 //随机ID,可以防止payload 相同的时候,交易重复
Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"` Nonce int64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"`
// 对方地址,如果没有对方地址,可以为空 //对方地址,如果没有对方地址,可以为空
To string `protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"` To string `protobuf:"bytes,7,opt,name=to,proto3" json:"to,omitempty"`
GroupCount int32 `protobuf:"varint,8,opt,name=groupCount,proto3" json:"groupCount,omitempty"` GroupCount int32 `protobuf:"varint,8,opt,name=groupCount,proto3" json:"groupCount,omitempty"`
Header []byte `protobuf:"bytes,9,opt,name=header,proto3" json:"header,omitempty"` Header []byte `protobuf:"bytes,9,opt,name=header,proto3" json:"header,omitempty"`
...@@ -51,19 +48,15 @@ func (*Transaction) Descriptor() ([]byte, []int) { ...@@ -51,19 +48,15 @@ func (*Transaction) Descriptor() ([]byte, []int) {
func (m *Transaction) XXX_Unmarshal(b []byte) error { func (m *Transaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Transaction.Unmarshal(m, b) return xxx_messageInfo_Transaction.Unmarshal(m, b)
} }
func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Transaction.Marshal(b, m, deterministic) return xxx_messageInfo_Transaction.Marshal(b, m, deterministic)
} }
func (m *Transaction) XXX_Merge(src proto.Message) { func (m *Transaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_Transaction.Merge(m, src) xxx_messageInfo_Transaction.Merge(m, src)
} }
func (m *Transaction) XXX_Size() int { func (m *Transaction) XXX_Size() int {
return xxx_messageInfo_Transaction.Size(m) return xxx_messageInfo_Transaction.Size(m)
} }
func (m *Transaction) XXX_DiscardUnknown() { func (m *Transaction) XXX_DiscardUnknown() {
xxx_messageInfo_Transaction.DiscardUnknown(m) xxx_messageInfo_Transaction.DiscardUnknown(m)
} }
...@@ -143,7 +136,7 @@ func (m *Transaction) GetNext() []byte { ...@@ -143,7 +136,7 @@ func (m *Transaction) GetNext() []byte {
type Signature struct { type Signature struct {
Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,1,opt,name=ty,proto3" json:"ty,omitempty"`
Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
// 当ty为5时,格式应该用RingSignature去解析 //当ty为5时,格式应该用RingSignature去解析
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -160,19 +153,15 @@ func (*Signature) Descriptor() ([]byte, []int) { ...@@ -160,19 +153,15 @@ func (*Signature) Descriptor() ([]byte, []int) {
func (m *Signature) XXX_Unmarshal(b []byte) error { func (m *Signature) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Signature.Unmarshal(m, b) return xxx_messageInfo_Signature.Unmarshal(m, b)
} }
func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Signature.Marshal(b, m, deterministic) return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
} }
func (m *Signature) XXX_Merge(src proto.Message) { func (m *Signature) XXX_Merge(src proto.Message) {
xxx_messageInfo_Signature.Merge(m, src) xxx_messageInfo_Signature.Merge(m, src)
} }
func (m *Signature) XXX_Size() int { func (m *Signature) XXX_Size() int {
return xxx_messageInfo_Signature.Size(m) return xxx_messageInfo_Signature.Size(m)
} }
func (m *Signature) XXX_DiscardUnknown() { func (m *Signature) XXX_DiscardUnknown() {
xxx_messageInfo_Signature.DiscardUnknown(m) xxx_messageInfo_Signature.DiscardUnknown(m)
} }
......
...@@ -6,18 +6,15 @@ package types ...@@ -6,18 +6,15 @@ package types
import ( import (
context "context" context "context"
fmt "fmt" fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var ( var _ = proto.Marshal
_ = proto.Marshal var _ = fmt.Errorf
_ = fmt.Errorf var _ = math.Inf
_ = math.Inf
)
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
...@@ -25,7 +22,7 @@ var ( ...@@ -25,7 +22,7 @@ var (
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// 后面如果有其他数据模型可继续往上面添加 //后面如果有其他数据模型可继续往上面添加
type Storage struct { type Storage struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *Storage_ContentStorage // *Storage_ContentStorage
...@@ -51,19 +48,15 @@ func (*Storage) Descriptor() ([]byte, []int) { ...@@ -51,19 +48,15 @@ func (*Storage) Descriptor() ([]byte, []int) {
func (m *Storage) XXX_Unmarshal(b []byte) error { func (m *Storage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Storage.Unmarshal(m, b) return xxx_messageInfo_Storage.Unmarshal(m, b)
} }
func (m *Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Storage.Marshal(b, m, deterministic) return xxx_messageInfo_Storage.Marshal(b, m, deterministic)
} }
func (m *Storage) XXX_Merge(src proto.Message) { func (m *Storage) XXX_Merge(src proto.Message) {
xxx_messageInfo_Storage.Merge(m, src) xxx_messageInfo_Storage.Merge(m, src)
} }
func (m *Storage) XXX_Size() int { func (m *Storage) XXX_Size() int {
return xxx_messageInfo_Storage.Size(m) return xxx_messageInfo_Storage.Size(m)
} }
func (m *Storage) XXX_DiscardUnknown() { func (m *Storage) XXX_DiscardUnknown() {
xxx_messageInfo_Storage.DiscardUnknown(m) xxx_messageInfo_Storage.DiscardUnknown(m)
} }
...@@ -203,19 +196,15 @@ func (*StorageAction) Descriptor() ([]byte, []int) { ...@@ -203,19 +196,15 @@ func (*StorageAction) Descriptor() ([]byte, []int) {
func (m *StorageAction) XXX_Unmarshal(b []byte) error { func (m *StorageAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StorageAction.Unmarshal(m, b) return xxx_messageInfo_StorageAction.Unmarshal(m, b)
} }
func (m *StorageAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *StorageAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StorageAction.Marshal(b, m, deterministic) return xxx_messageInfo_StorageAction.Marshal(b, m, deterministic)
} }
func (m *StorageAction) XXX_Merge(src proto.Message) { func (m *StorageAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_StorageAction.Merge(m, src) xxx_messageInfo_StorageAction.Merge(m, src)
} }
func (m *StorageAction) XXX_Size() int { func (m *StorageAction) XXX_Size() int {
return xxx_messageInfo_StorageAction.Size(m) return xxx_messageInfo_StorageAction.Size(m)
} }
func (m *StorageAction) XXX_DiscardUnknown() { func (m *StorageAction) XXX_DiscardUnknown() {
xxx_messageInfo_StorageAction.DiscardUnknown(m) xxx_messageInfo_StorageAction.DiscardUnknown(m)
} }
...@@ -332,13 +321,13 @@ func (*StorageAction) XXX_OneofWrappers() []interface{} { ...@@ -332,13 +321,13 @@ func (*StorageAction) XXX_OneofWrappers() []interface{} {
// 内容存证模型 // 内容存证模型
type ContentOnlyNotaryStorage struct { type ContentOnlyNotaryStorage struct {
// 长度需要小于512k //长度需要小于512k
Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// 自定义的主键,可以为空,如果没传,则用txhash为key //自定义的主键,可以为空,如果没传,则用txhash为key
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Op 0表示创建 1表示追加add // Op 0表示创建 1表示追加add
Op int32 `protobuf:"varint,3,opt,name=op,proto3" json:"op,omitempty"` Op int32 `protobuf:"varint,3,opt,name=op,proto3" json:"op,omitempty"`
// 字符串值 //字符串值
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -355,19 +344,15 @@ func (*ContentOnlyNotaryStorage) Descriptor() ([]byte, []int) { ...@@ -355,19 +344,15 @@ func (*ContentOnlyNotaryStorage) Descriptor() ([]byte, []int) {
func (m *ContentOnlyNotaryStorage) XXX_Unmarshal(b []byte) error { func (m *ContentOnlyNotaryStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ContentOnlyNotaryStorage.Unmarshal(m, b) return xxx_messageInfo_ContentOnlyNotaryStorage.Unmarshal(m, b)
} }
func (m *ContentOnlyNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ContentOnlyNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ContentOnlyNotaryStorage.Marshal(b, m, deterministic) return xxx_messageInfo_ContentOnlyNotaryStorage.Marshal(b, m, deterministic)
} }
func (m *ContentOnlyNotaryStorage) XXX_Merge(src proto.Message) { func (m *ContentOnlyNotaryStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ContentOnlyNotaryStorage.Merge(m, src) xxx_messageInfo_ContentOnlyNotaryStorage.Merge(m, src)
} }
func (m *ContentOnlyNotaryStorage) XXX_Size() int { func (m *ContentOnlyNotaryStorage) XXX_Size() int {
return xxx_messageInfo_ContentOnlyNotaryStorage.Size(m) return xxx_messageInfo_ContentOnlyNotaryStorage.Size(m)
} }
func (m *ContentOnlyNotaryStorage) XXX_DiscardUnknown() { func (m *ContentOnlyNotaryStorage) XXX_DiscardUnknown() {
xxx_messageInfo_ContentOnlyNotaryStorage.DiscardUnknown(m) xxx_messageInfo_ContentOnlyNotaryStorage.DiscardUnknown(m)
} }
...@@ -402,13 +387,13 @@ func (m *ContentOnlyNotaryStorage) GetValue() string { ...@@ -402,13 +387,13 @@ func (m *ContentOnlyNotaryStorage) GetValue() string {
return "" return ""
} }
// 哈希存证模型,推荐使用sha256哈希,限制256位得摘要值 //哈希存证模型,推荐使用sha256哈希,限制256位得摘要值
type HashOnlyNotaryStorage struct { type HashOnlyNotaryStorage struct {
// 长度固定为32字节 //长度固定为32字节
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// 自定义的主键,可以为空,如果没传,则用txhash为key //自定义的主键,可以为空,如果没传,则用txhash为key
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// 字符串值 //字符串值
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -425,19 +410,15 @@ func (*HashOnlyNotaryStorage) Descriptor() ([]byte, []int) { ...@@ -425,19 +410,15 @@ func (*HashOnlyNotaryStorage) Descriptor() ([]byte, []int) {
func (m *HashOnlyNotaryStorage) XXX_Unmarshal(b []byte) error { func (m *HashOnlyNotaryStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HashOnlyNotaryStorage.Unmarshal(m, b) return xxx_messageInfo_HashOnlyNotaryStorage.Unmarshal(m, b)
} }
func (m *HashOnlyNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *HashOnlyNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HashOnlyNotaryStorage.Marshal(b, m, deterministic) return xxx_messageInfo_HashOnlyNotaryStorage.Marshal(b, m, deterministic)
} }
func (m *HashOnlyNotaryStorage) XXX_Merge(src proto.Message) { func (m *HashOnlyNotaryStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_HashOnlyNotaryStorage.Merge(m, src) xxx_messageInfo_HashOnlyNotaryStorage.Merge(m, src)
} }
func (m *HashOnlyNotaryStorage) XXX_Size() int { func (m *HashOnlyNotaryStorage) XXX_Size() int {
return xxx_messageInfo_HashOnlyNotaryStorage.Size(m) return xxx_messageInfo_HashOnlyNotaryStorage.Size(m)
} }
func (m *HashOnlyNotaryStorage) XXX_DiscardUnknown() { func (m *HashOnlyNotaryStorage) XXX_DiscardUnknown() {
xxx_messageInfo_HashOnlyNotaryStorage.DiscardUnknown(m) xxx_messageInfo_HashOnlyNotaryStorage.DiscardUnknown(m)
} }
...@@ -467,13 +448,13 @@ func (m *HashOnlyNotaryStorage) GetValue() string { ...@@ -467,13 +448,13 @@ func (m *HashOnlyNotaryStorage) GetValue() string {
// 链接存证模型 // 链接存证模型
type LinkNotaryStorage struct { type LinkNotaryStorage struct {
// 存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索. //存证内容的链接,可以写入URL,或者其他可用于定位源文件得线索.
Link []byte `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` Link []byte `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"`
// 源文件得hash值,推荐使用sha256哈希,限制256位得摘要值 //源文件得hash值,推荐使用sha256哈希,限制256位得摘要值
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
// 自定义的主键,可以为空,如果没传,则用txhash为key //自定义的主键,可以为空,如果没传,则用txhash为key
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
// 字符串值 //字符串值
Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -490,19 +471,15 @@ func (*LinkNotaryStorage) Descriptor() ([]byte, []int) { ...@@ -490,19 +471,15 @@ func (*LinkNotaryStorage) Descriptor() ([]byte, []int) {
func (m *LinkNotaryStorage) XXX_Unmarshal(b []byte) error { func (m *LinkNotaryStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LinkNotaryStorage.Unmarshal(m, b) return xxx_messageInfo_LinkNotaryStorage.Unmarshal(m, b)
} }
func (m *LinkNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *LinkNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LinkNotaryStorage.Marshal(b, m, deterministic) return xxx_messageInfo_LinkNotaryStorage.Marshal(b, m, deterministic)
} }
func (m *LinkNotaryStorage) XXX_Merge(src proto.Message) { func (m *LinkNotaryStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_LinkNotaryStorage.Merge(m, src) xxx_messageInfo_LinkNotaryStorage.Merge(m, src)
} }
func (m *LinkNotaryStorage) XXX_Size() int { func (m *LinkNotaryStorage) XXX_Size() int {
return xxx_messageInfo_LinkNotaryStorage.Size(m) return xxx_messageInfo_LinkNotaryStorage.Size(m)
} }
func (m *LinkNotaryStorage) XXX_DiscardUnknown() { func (m *LinkNotaryStorage) XXX_DiscardUnknown() {
xxx_messageInfo_LinkNotaryStorage.DiscardUnknown(m) xxx_messageInfo_LinkNotaryStorage.DiscardUnknown(m)
} }
...@@ -539,15 +516,15 @@ func (m *LinkNotaryStorage) GetValue() string { ...@@ -539,15 +516,15 @@ func (m *LinkNotaryStorage) GetValue() string {
// 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链 // 隐私存证模型,如果一个文件需要存证,且不公开内容,可以选择将源文件通过对称加密算法加密后上链
type EncryptNotaryStorage struct { type EncryptNotaryStorage struct {
// 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 //存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
ContentHash []byte `protobuf:"bytes,1,opt,name=contentHash,proto3" json:"contentHash,omitempty"` ContentHash []byte `protobuf:"bytes,1,opt,name=contentHash,proto3" json:"contentHash,omitempty"`
// 源文件得密文,由加密key及nonce对明文加密得到该值。 //源文件得密文,由加密key及nonce对明文加密得到该值。
EncryptContent []byte `protobuf:"bytes,2,opt,name=encryptContent,proto3" json:"encryptContent,omitempty"` EncryptContent []byte `protobuf:"bytes,2,opt,name=encryptContent,proto3" json:"encryptContent,omitempty"`
// 加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值 //加密iv,通过AES进行加密时制定随机生成的iv,解密时需要使用该值
Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
// 自定义的主键,可以为空,如果没传,则用txhash为key //自定义的主键,可以为空,如果没传,则用txhash为key
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
// 字符串值 //字符串值
Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -564,19 +541,15 @@ func (*EncryptNotaryStorage) Descriptor() ([]byte, []int) { ...@@ -564,19 +541,15 @@ func (*EncryptNotaryStorage) Descriptor() ([]byte, []int) {
func (m *EncryptNotaryStorage) XXX_Unmarshal(b []byte) error { func (m *EncryptNotaryStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EncryptNotaryStorage.Unmarshal(m, b) return xxx_messageInfo_EncryptNotaryStorage.Unmarshal(m, b)
} }
func (m *EncryptNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *EncryptNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EncryptNotaryStorage.Marshal(b, m, deterministic) return xxx_messageInfo_EncryptNotaryStorage.Marshal(b, m, deterministic)
} }
func (m *EncryptNotaryStorage) XXX_Merge(src proto.Message) { func (m *EncryptNotaryStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_EncryptNotaryStorage.Merge(m, src) xxx_messageInfo_EncryptNotaryStorage.Merge(m, src)
} }
func (m *EncryptNotaryStorage) XXX_Size() int { func (m *EncryptNotaryStorage) XXX_Size() int {
return xxx_messageInfo_EncryptNotaryStorage.Size(m) return xxx_messageInfo_EncryptNotaryStorage.Size(m)
} }
func (m *EncryptNotaryStorage) XXX_DiscardUnknown() { func (m *EncryptNotaryStorage) XXX_DiscardUnknown() {
xxx_messageInfo_EncryptNotaryStorage.DiscardUnknown(m) xxx_messageInfo_EncryptNotaryStorage.DiscardUnknown(m)
} }
...@@ -620,15 +593,15 @@ func (m *EncryptNotaryStorage) GetValue() string { ...@@ -620,15 +593,15 @@ func (m *EncryptNotaryStorage) GetValue() string {
// 分享隐私存证模型,需要完备的sdk或者相应的密钥库支持 // 分享隐私存证模型,需要完备的sdk或者相应的密钥库支持
type EncryptShareNotaryStorage struct { type EncryptShareNotaryStorage struct {
// 存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值 //存证明文内容的hash值,推荐使用sha256哈希,限制256位得摘要值
ContentHash []byte `protobuf:"bytes,1,opt,name=contentHash,proto3" json:"contentHash,omitempty"` ContentHash []byte `protobuf:"bytes,1,opt,name=contentHash,proto3" json:"contentHash,omitempty"`
// 源文件得密文。,用公钥地址加密 //源文件得密文。,用公钥地址加密
EncryptContent []byte `protobuf:"bytes,2,opt,name=encryptContent,proto3" json:"encryptContent,omitempty"` EncryptContent []byte `protobuf:"bytes,2,opt,name=encryptContent,proto3" json:"encryptContent,omitempty"`
// 公钥 //公钥
PubKey []byte `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"` PubKey []byte `protobuf:"bytes,3,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
// 自定义的主键,可以为空,如果没传,则用txhash为key //自定义的主键,可以为空,如果没传,则用txhash为key
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
// 字符串值 //字符串值
Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -645,19 +618,15 @@ func (*EncryptShareNotaryStorage) Descriptor() ([]byte, []int) { ...@@ -645,19 +618,15 @@ func (*EncryptShareNotaryStorage) Descriptor() ([]byte, []int) {
func (m *EncryptShareNotaryStorage) XXX_Unmarshal(b []byte) error { func (m *EncryptShareNotaryStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EncryptShareNotaryStorage.Unmarshal(m, b) return xxx_messageInfo_EncryptShareNotaryStorage.Unmarshal(m, b)
} }
func (m *EncryptShareNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *EncryptShareNotaryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EncryptShareNotaryStorage.Marshal(b, m, deterministic) return xxx_messageInfo_EncryptShareNotaryStorage.Marshal(b, m, deterministic)
} }
func (m *EncryptShareNotaryStorage) XXX_Merge(src proto.Message) { func (m *EncryptShareNotaryStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_EncryptShareNotaryStorage.Merge(m, src) xxx_messageInfo_EncryptShareNotaryStorage.Merge(m, src)
} }
func (m *EncryptShareNotaryStorage) XXX_Size() int { func (m *EncryptShareNotaryStorage) XXX_Size() int {
return xxx_messageInfo_EncryptShareNotaryStorage.Size(m) return xxx_messageInfo_EncryptShareNotaryStorage.Size(m)
} }
func (m *EncryptShareNotaryStorage) XXX_DiscardUnknown() { func (m *EncryptShareNotaryStorage) XXX_DiscardUnknown() {
xxx_messageInfo_EncryptShareNotaryStorage.DiscardUnknown(m) xxx_messageInfo_EncryptShareNotaryStorage.DiscardUnknown(m)
} }
...@@ -701,9 +670,9 @@ func (m *EncryptShareNotaryStorage) GetValue() string { ...@@ -701,9 +670,9 @@ func (m *EncryptShareNotaryStorage) GetValue() string {
// 加密存证数据运算 // 加密存证数据运算
type EncryptNotaryAdd struct { type EncryptNotaryAdd struct {
// 源操作数存证索引 //源操作数存证索引
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// 待操作数据 //待操作数据
EncryptAdd []byte `protobuf:"bytes,2,opt,name=encryptAdd,proto3" json:"encryptAdd,omitempty"` EncryptAdd []byte `protobuf:"bytes,2,opt,name=encryptAdd,proto3" json:"encryptAdd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"` XXX_unrecognized []byte `json:"-"`
...@@ -720,19 +689,15 @@ func (*EncryptNotaryAdd) Descriptor() ([]byte, []int) { ...@@ -720,19 +689,15 @@ func (*EncryptNotaryAdd) Descriptor() ([]byte, []int) {
func (m *EncryptNotaryAdd) XXX_Unmarshal(b []byte) error { func (m *EncryptNotaryAdd) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EncryptNotaryAdd.Unmarshal(m, b) return xxx_messageInfo_EncryptNotaryAdd.Unmarshal(m, b)
} }
func (m *EncryptNotaryAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *EncryptNotaryAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EncryptNotaryAdd.Marshal(b, m, deterministic) return xxx_messageInfo_EncryptNotaryAdd.Marshal(b, m, deterministic)
} }
func (m *EncryptNotaryAdd) XXX_Merge(src proto.Message) { func (m *EncryptNotaryAdd) XXX_Merge(src proto.Message) {
xxx_messageInfo_EncryptNotaryAdd.Merge(m, src) xxx_messageInfo_EncryptNotaryAdd.Merge(m, src)
} }
func (m *EncryptNotaryAdd) XXX_Size() int { func (m *EncryptNotaryAdd) XXX_Size() int {
return xxx_messageInfo_EncryptNotaryAdd.Size(m) return xxx_messageInfo_EncryptNotaryAdd.Size(m)
} }
func (m *EncryptNotaryAdd) XXX_DiscardUnknown() { func (m *EncryptNotaryAdd) XXX_DiscardUnknown() {
xxx_messageInfo_EncryptNotaryAdd.DiscardUnknown(m) xxx_messageInfo_EncryptNotaryAdd.DiscardUnknown(m)
} }
...@@ -753,7 +718,7 @@ func (m *EncryptNotaryAdd) GetEncryptAdd() []byte { ...@@ -753,7 +718,7 @@ func (m *EncryptNotaryAdd) GetEncryptAdd() []byte {
return nil return nil
} }
// 根据txhash去状态数据库中查询存储内容 //根据txhash去状态数据库中查询存储内容
type QueryStorage struct { type QueryStorage struct {
TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"` TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
...@@ -771,19 +736,15 @@ func (*QueryStorage) Descriptor() ([]byte, []int) { ...@@ -771,19 +736,15 @@ func (*QueryStorage) Descriptor() ([]byte, []int) {
func (m *QueryStorage) XXX_Unmarshal(b []byte) error { func (m *QueryStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryStorage.Unmarshal(m, b) return xxx_messageInfo_QueryStorage.Unmarshal(m, b)
} }
func (m *QueryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryStorage.Marshal(b, m, deterministic) return xxx_messageInfo_QueryStorage.Marshal(b, m, deterministic)
} }
func (m *QueryStorage) XXX_Merge(src proto.Message) { func (m *QueryStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryStorage.Merge(m, src) xxx_messageInfo_QueryStorage.Merge(m, src)
} }
func (m *QueryStorage) XXX_Size() int { func (m *QueryStorage) XXX_Size() int {
return xxx_messageInfo_QueryStorage.Size(m) return xxx_messageInfo_QueryStorage.Size(m)
} }
func (m *QueryStorage) XXX_DiscardUnknown() { func (m *QueryStorage) XXX_DiscardUnknown() {
xxx_messageInfo_QueryStorage.DiscardUnknown(m) xxx_messageInfo_QueryStorage.DiscardUnknown(m)
} }
...@@ -797,7 +758,7 @@ func (m *QueryStorage) GetTxHash() string { ...@@ -797,7 +758,7 @@ func (m *QueryStorage) GetTxHash() string {
return "" return ""
} }
// 批量查询有可能导致数据库崩溃 //批量查询有可能导致数据库崩溃
type BatchQueryStorage struct { type BatchQueryStorage struct {
TxHashs []string `protobuf:"bytes,1,rep,name=txHashs,proto3" json:"txHashs,omitempty"` TxHashs []string `protobuf:"bytes,1,rep,name=txHashs,proto3" json:"txHashs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_NoUnkeyedLiteral struct{} `json:"-"`
...@@ -815,19 +776,15 @@ func (*BatchQueryStorage) Descriptor() ([]byte, []int) { ...@@ -815,19 +776,15 @@ func (*BatchQueryStorage) Descriptor() ([]byte, []int) {
func (m *BatchQueryStorage) XXX_Unmarshal(b []byte) error { func (m *BatchQueryStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchQueryStorage.Unmarshal(m, b) return xxx_messageInfo_BatchQueryStorage.Unmarshal(m, b)
} }
func (m *BatchQueryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *BatchQueryStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchQueryStorage.Marshal(b, m, deterministic) return xxx_messageInfo_BatchQueryStorage.Marshal(b, m, deterministic)
} }
func (m *BatchQueryStorage) XXX_Merge(src proto.Message) { func (m *BatchQueryStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchQueryStorage.Merge(m, src) xxx_messageInfo_BatchQueryStorage.Merge(m, src)
} }
func (m *BatchQueryStorage) XXX_Size() int { func (m *BatchQueryStorage) XXX_Size() int {
return xxx_messageInfo_BatchQueryStorage.Size(m) return xxx_messageInfo_BatchQueryStorage.Size(m)
} }
func (m *BatchQueryStorage) XXX_DiscardUnknown() { func (m *BatchQueryStorage) XXX_DiscardUnknown() {
xxx_messageInfo_BatchQueryStorage.DiscardUnknown(m) xxx_messageInfo_BatchQueryStorage.DiscardUnknown(m)
} }
...@@ -858,19 +815,15 @@ func (*BatchReplyStorage) Descriptor() ([]byte, []int) { ...@@ -858,19 +815,15 @@ func (*BatchReplyStorage) Descriptor() ([]byte, []int) {
func (m *BatchReplyStorage) XXX_Unmarshal(b []byte) error { func (m *BatchReplyStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BatchReplyStorage.Unmarshal(m, b) return xxx_messageInfo_BatchReplyStorage.Unmarshal(m, b)
} }
func (m *BatchReplyStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *BatchReplyStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BatchReplyStorage.Marshal(b, m, deterministic) return xxx_messageInfo_BatchReplyStorage.Marshal(b, m, deterministic)
} }
func (m *BatchReplyStorage) XXX_Merge(src proto.Message) { func (m *BatchReplyStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchReplyStorage.Merge(m, src) xxx_messageInfo_BatchReplyStorage.Merge(m, src)
} }
func (m *BatchReplyStorage) XXX_Size() int { func (m *BatchReplyStorage) XXX_Size() int {
return xxx_messageInfo_BatchReplyStorage.Size(m) return xxx_messageInfo_BatchReplyStorage.Size(m)
} }
func (m *BatchReplyStorage) XXX_DiscardUnknown() { func (m *BatchReplyStorage) XXX_DiscardUnknown() {
xxx_messageInfo_BatchReplyStorage.DiscardUnknown(m) xxx_messageInfo_BatchReplyStorage.DiscardUnknown(m)
} }
...@@ -900,19 +853,15 @@ func (*ReceiptStorage) Descriptor() ([]byte, []int) { ...@@ -900,19 +853,15 @@ func (*ReceiptStorage) Descriptor() ([]byte, []int) {
func (m *ReceiptStorage) XXX_Unmarshal(b []byte) error { func (m *ReceiptStorage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptStorage.Unmarshal(m, b) return xxx_messageInfo_ReceiptStorage.Unmarshal(m, b)
} }
func (m *ReceiptStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *ReceiptStorage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptStorage.Marshal(b, m, deterministic) return xxx_messageInfo_ReceiptStorage.Marshal(b, m, deterministic)
} }
func (m *ReceiptStorage) XXX_Merge(src proto.Message) { func (m *ReceiptStorage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptStorage.Merge(m, src) xxx_messageInfo_ReceiptStorage.Merge(m, src)
} }
func (m *ReceiptStorage) XXX_Size() int { func (m *ReceiptStorage) XXX_Size() int {
return xxx_messageInfo_ReceiptStorage.Size(m) return xxx_messageInfo_ReceiptStorage.Size(m)
} }
func (m *ReceiptStorage) XXX_DiscardUnknown() { func (m *ReceiptStorage) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptStorage.DiscardUnknown(m) xxx_messageInfo_ReceiptStorage.DiscardUnknown(m)
} }
...@@ -976,10 +925,8 @@ var fileDescriptor_0d2c4ccf1453ffdb = []byte{ ...@@ -976,10 +925,8 @@ var fileDescriptor_0d2c4ccf1453ffdb = []byte{
} }
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var ( var _ context.Context
_ context.Context var _ grpc.ClientConnInterface
_ grpc.ClientConnInterface
)
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
...@@ -988,7 +935,8 @@ const _ = grpc.SupportPackageIsVersion6 ...@@ -988,7 +935,8 @@ const _ = grpc.SupportPackageIsVersion6
// StorageClient is the client API for Storage service. // StorageClient is the client API for Storage service.
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type StorageClient interface{} type StorageClient interface {
}
type storageClient struct { type storageClient struct {
cc grpc.ClientConnInterface cc grpc.ClientConnInterface
...@@ -999,10 +947,12 @@ func NewStorageClient(cc grpc.ClientConnInterface) StorageClient { ...@@ -999,10 +947,12 @@ func NewStorageClient(cc grpc.ClientConnInterface) StorageClient {
} }
// StorageServer is the server API for Storage service. // StorageServer is the server API for Storage service.
type StorageServer interface{} type StorageServer interface {
}
// UnimplementedStorageServer can be embedded to have forward compatible implementations. // UnimplementedStorageServer can be embedded to have forward compatible implementations.
type UnimplementedStorageServer struct{} type UnimplementedStorageServer struct {
}
func RegisterStorageServer(s *grpc.Server, srv StorageServer) { func RegisterStorageServer(s *grpc.Server, srv StorageServer) {
s.RegisterService(&_Storage_serviceDesc, srv) s.RegisterService(&_Storage_serviceDesc, srv)
......
...@@ -5,17 +5,14 @@ package types ...@@ -5,17 +5,14 @@ package types
import ( import (
fmt "fmt" fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
math "math"
) )
// Reference imports to suppress errors if they are not otherwise used. // Reference imports to suppress errors if they are not otherwise used.
var ( var _ = proto.Marshal
_ = proto.Marshal var _ = fmt.Errorf
_ = fmt.Errorf var _ = math.Inf
_ = math.Inf
)
// This is a compile-time assertion to ensure that this generated file // This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against. // is compatible with the proto package it is being compiled against.
...@@ -44,19 +41,15 @@ func (*WasmAction) Descriptor() ([]byte, []int) { ...@@ -44,19 +41,15 @@ func (*WasmAction) Descriptor() ([]byte, []int) {
func (m *WasmAction) XXX_Unmarshal(b []byte) error { func (m *WasmAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WasmAction.Unmarshal(m, b) return xxx_messageInfo_WasmAction.Unmarshal(m, b)
} }
func (m *WasmAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *WasmAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WasmAction.Marshal(b, m, deterministic) return xxx_messageInfo_WasmAction.Marshal(b, m, deterministic)
} }
func (m *WasmAction) XXX_Merge(src proto.Message) { func (m *WasmAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_WasmAction.Merge(m, src) xxx_messageInfo_WasmAction.Merge(m, src)
} }
func (m *WasmAction) XXX_Size() int { func (m *WasmAction) XXX_Size() int {
return xxx_messageInfo_WasmAction.Size(m) return xxx_messageInfo_WasmAction.Size(m)
} }
func (m *WasmAction) XXX_DiscardUnknown() { func (m *WasmAction) XXX_DiscardUnknown() {
xxx_messageInfo_WasmAction.DiscardUnknown(m) xxx_messageInfo_WasmAction.DiscardUnknown(m)
} }
...@@ -133,19 +126,15 @@ func (*WasmCreate) Descriptor() ([]byte, []int) { ...@@ -133,19 +126,15 @@ func (*WasmCreate) Descriptor() ([]byte, []int) {
func (m *WasmCreate) XXX_Unmarshal(b []byte) error { func (m *WasmCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WasmCreate.Unmarshal(m, b) return xxx_messageInfo_WasmCreate.Unmarshal(m, b)
} }
func (m *WasmCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *WasmCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WasmCreate.Marshal(b, m, deterministic) return xxx_messageInfo_WasmCreate.Marshal(b, m, deterministic)
} }
func (m *WasmCreate) XXX_Merge(src proto.Message) { func (m *WasmCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_WasmCreate.Merge(m, src) xxx_messageInfo_WasmCreate.Merge(m, src)
} }
func (m *WasmCreate) XXX_Size() int { func (m *WasmCreate) XXX_Size() int {
return xxx_messageInfo_WasmCreate.Size(m) return xxx_messageInfo_WasmCreate.Size(m)
} }
func (m *WasmCreate) XXX_DiscardUnknown() { func (m *WasmCreate) XXX_DiscardUnknown() {
xxx_messageInfo_WasmCreate.DiscardUnknown(m) xxx_messageInfo_WasmCreate.DiscardUnknown(m)
} }
...@@ -186,19 +175,15 @@ func (*WasmCall) Descriptor() ([]byte, []int) { ...@@ -186,19 +175,15 @@ func (*WasmCall) Descriptor() ([]byte, []int) {
func (m *WasmCall) XXX_Unmarshal(b []byte) error { func (m *WasmCall) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WasmCall.Unmarshal(m, b) return xxx_messageInfo_WasmCall.Unmarshal(m, b)
} }
func (m *WasmCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *WasmCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WasmCall.Marshal(b, m, deterministic) return xxx_messageInfo_WasmCall.Marshal(b, m, deterministic)
} }
func (m *WasmCall) XXX_Merge(src proto.Message) { func (m *WasmCall) XXX_Merge(src proto.Message) {
xxx_messageInfo_WasmCall.Merge(m, src) xxx_messageInfo_WasmCall.Merge(m, src)
} }
func (m *WasmCall) XXX_Size() int { func (m *WasmCall) XXX_Size() int {
return xxx_messageInfo_WasmCall.Size(m) return xxx_messageInfo_WasmCall.Size(m)
} }
func (m *WasmCall) XXX_DiscardUnknown() { func (m *WasmCall) XXX_DiscardUnknown() {
xxx_messageInfo_WasmCall.DiscardUnknown(m) xxx_messageInfo_WasmCall.DiscardUnknown(m)
} }
...@@ -250,19 +235,15 @@ func (*QueryCheckContract) Descriptor() ([]byte, []int) { ...@@ -250,19 +235,15 @@ func (*QueryCheckContract) Descriptor() ([]byte, []int) {
func (m *QueryCheckContract) XXX_Unmarshal(b []byte) error { func (m *QueryCheckContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryCheckContract.Unmarshal(m, b) return xxx_messageInfo_QueryCheckContract.Unmarshal(m, b)
} }
func (m *QueryCheckContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *QueryCheckContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryCheckContract.Marshal(b, m, deterministic) return xxx_messageInfo_QueryCheckContract.Marshal(b, m, deterministic)
} }
func (m *QueryCheckContract) XXX_Merge(src proto.Message) { func (m *QueryCheckContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryCheckContract.Merge(m, src) xxx_messageInfo_QueryCheckContract.Merge(m, src)
} }
func (m *QueryCheckContract) XXX_Size() int { func (m *QueryCheckContract) XXX_Size() int {
return xxx_messageInfo_QueryCheckContract.Size(m) return xxx_messageInfo_QueryCheckContract.Size(m)
} }
func (m *QueryCheckContract) XXX_DiscardUnknown() { func (m *QueryCheckContract) XXX_DiscardUnknown() {
xxx_messageInfo_QueryCheckContract.DiscardUnknown(m) xxx_messageInfo_QueryCheckContract.DiscardUnknown(m)
} }
...@@ -293,19 +274,15 @@ func (*CustomLog) Descriptor() ([]byte, []int) { ...@@ -293,19 +274,15 @@ func (*CustomLog) Descriptor() ([]byte, []int) {
func (m *CustomLog) XXX_Unmarshal(b []byte) error { func (m *CustomLog) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CustomLog.Unmarshal(m, b) return xxx_messageInfo_CustomLog.Unmarshal(m, b)
} }
func (m *CustomLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CustomLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CustomLog.Marshal(b, m, deterministic) return xxx_messageInfo_CustomLog.Marshal(b, m, deterministic)
} }
func (m *CustomLog) XXX_Merge(src proto.Message) { func (m *CustomLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_CustomLog.Merge(m, src) xxx_messageInfo_CustomLog.Merge(m, src)
} }
func (m *CustomLog) XXX_Size() int { func (m *CustomLog) XXX_Size() int {
return xxx_messageInfo_CustomLog.Size(m) return xxx_messageInfo_CustomLog.Size(m)
} }
func (m *CustomLog) XXX_DiscardUnknown() { func (m *CustomLog) XXX_DiscardUnknown() {
xxx_messageInfo_CustomLog.DiscardUnknown(m) xxx_messageInfo_CustomLog.DiscardUnknown(m)
} }
...@@ -337,19 +314,15 @@ func (*CreateContractLog) Descriptor() ([]byte, []int) { ...@@ -337,19 +314,15 @@ func (*CreateContractLog) Descriptor() ([]byte, []int) {
func (m *CreateContractLog) XXX_Unmarshal(b []byte) error { func (m *CreateContractLog) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateContractLog.Unmarshal(m, b) return xxx_messageInfo_CreateContractLog.Unmarshal(m, b)
} }
func (m *CreateContractLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CreateContractLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateContractLog.Marshal(b, m, deterministic) return xxx_messageInfo_CreateContractLog.Marshal(b, m, deterministic)
} }
func (m *CreateContractLog) XXX_Merge(src proto.Message) { func (m *CreateContractLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateContractLog.Merge(m, src) xxx_messageInfo_CreateContractLog.Merge(m, src)
} }
func (m *CreateContractLog) XXX_Size() int { func (m *CreateContractLog) XXX_Size() int {
return xxx_messageInfo_CreateContractLog.Size(m) return xxx_messageInfo_CreateContractLog.Size(m)
} }
func (m *CreateContractLog) XXX_DiscardUnknown() { func (m *CreateContractLog) XXX_DiscardUnknown() {
xxx_messageInfo_CreateContractLog.DiscardUnknown(m) xxx_messageInfo_CreateContractLog.DiscardUnknown(m)
} }
...@@ -389,19 +362,15 @@ func (*CallContractLog) Descriptor() ([]byte, []int) { ...@@ -389,19 +362,15 @@ func (*CallContractLog) Descriptor() ([]byte, []int) {
func (m *CallContractLog) XXX_Unmarshal(b []byte) error { func (m *CallContractLog) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CallContractLog.Unmarshal(m, b) return xxx_messageInfo_CallContractLog.Unmarshal(m, b)
} }
func (m *CallContractLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *CallContractLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CallContractLog.Marshal(b, m, deterministic) return xxx_messageInfo_CallContractLog.Marshal(b, m, deterministic)
} }
func (m *CallContractLog) XXX_Merge(src proto.Message) { func (m *CallContractLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_CallContractLog.Merge(m, src) xxx_messageInfo_CallContractLog.Merge(m, src)
} }
func (m *CallContractLog) XXX_Size() int { func (m *CallContractLog) XXX_Size() int {
return xxx_messageInfo_CallContractLog.Size(m) return xxx_messageInfo_CallContractLog.Size(m)
} }
func (m *CallContractLog) XXX_DiscardUnknown() { func (m *CallContractLog) XXX_DiscardUnknown() {
xxx_messageInfo_CallContractLog.DiscardUnknown(m) xxx_messageInfo_CallContractLog.DiscardUnknown(m)
} }
...@@ -447,19 +416,15 @@ func (*LocalDataLog) Descriptor() ([]byte, []int) { ...@@ -447,19 +416,15 @@ func (*LocalDataLog) Descriptor() ([]byte, []int) {
func (m *LocalDataLog) XXX_Unmarshal(b []byte) error { func (m *LocalDataLog) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LocalDataLog.Unmarshal(m, b) return xxx_messageInfo_LocalDataLog.Unmarshal(m, b)
} }
func (m *LocalDataLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (m *LocalDataLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LocalDataLog.Marshal(b, m, deterministic) return xxx_messageInfo_LocalDataLog.Marshal(b, m, deterministic)
} }
func (m *LocalDataLog) XXX_Merge(src proto.Message) { func (m *LocalDataLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalDataLog.Merge(m, src) xxx_messageInfo_LocalDataLog.Merge(m, src)
} }
func (m *LocalDataLog) XXX_Size() int { func (m *LocalDataLog) XXX_Size() int {
return xxx_messageInfo_LocalDataLog.Size(m) return xxx_messageInfo_LocalDataLog.Size(m)
} }
func (m *LocalDataLog) XXX_DiscardUnknown() { func (m *LocalDataLog) XXX_DiscardUnknown() {
xxx_messageInfo_LocalDataLog.DiscardUnknown(m) xxx_messageInfo_LocalDataLog.DiscardUnknown(m)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment