Commit 556b0f03 authored by gitlab's avatar gitlab

auto ci

parent 21fc4c47
...@@ -15,7 +15,7 @@ function filterLinter() { ...@@ -15,7 +15,7 @@ function filterLinter() {
--enable=varcheck \ --enable=varcheck \
--enable=structcheck \ --enable=structcheck \
--enable=goimports \ --enable=goimports \
--enable=misspell \ --enable=misspell \
--vendor ./...) --vendor ./...)
# --enable=staticcheck \ # --enable=staticcheck \
# --enable=gocyclo \ # --enable=gocyclo \
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: blackwhite.proto // source: blackwhite.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
blackwhite.proto
It has these top-level messages:
AddressResult
BlackwhiteRound
BlackwhiteAction
BlackwhiteCreate
BlackwhitePlay
BlackwhiteShow
BlackwhiteTimeoutDone
ReceiptBlackwhite
ReceiptBlackwhiteStatus
ReqBlackwhiteRoundInfo
ReplyBlackwhiteRoundInfo
ReqBlackwhiteRoundList
ReplyBlackwhiteRoundList
ReqLoopResult
PerLoopResult
ReplyLoopResults
BlackwhiteRoundResult
BlackwhiteCreateTxReq
BlackwhitePlayTxReq
BlackwhiteShowTxReq
BlackwhiteTimeoutDoneTxReq
*/
package types package types
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import types2 "github.com/33cn/chain33/types"
import ( import (
context "context" context "golang.org/x/net/context"
fmt "fmt"
types "github.com/33cn/chain33/types"
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.
...@@ -24,39 +54,16 @@ var _ = math.Inf ...@@ -24,39 +54,16 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type AddressResult struct { type AddressResult struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
HashValues [][]byte `protobuf:"bytes,3,rep,name=hashValues,proto3" json:"hashValues,omitempty"` HashValues [][]byte `protobuf:"bytes,3,rep,name=hashValues,proto3" json:"hashValues,omitempty"`
ShowSecret string `protobuf:"bytes,4,opt,name=showSecret,proto3" json:"showSecret,omitempty"` ShowSecret string `protobuf:"bytes,4,opt,name=showSecret" json:"showSecret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AddressResult) Reset() { *m = AddressResult{} }
func (m *AddressResult) String() string { return proto.CompactTextString(m) }
func (*AddressResult) ProtoMessage() {}
func (*AddressResult) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{0}
}
func (m *AddressResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddressResult.Unmarshal(m, b)
}
func (m *AddressResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddressResult.Marshal(b, m, deterministic)
}
func (m *AddressResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddressResult.Merge(m, src)
}
func (m *AddressResult) XXX_Size() int {
return xxx_messageInfo_AddressResult.Size(m)
}
func (m *AddressResult) XXX_DiscardUnknown() {
xxx_messageInfo_AddressResult.DiscardUnknown(m)
} }
var xxx_messageInfo_AddressResult proto.InternalMessageInfo func (m *AddressResult) Reset() { *m = AddressResult{} }
func (m *AddressResult) String() string { return proto.CompactTextString(m) }
func (*AddressResult) ProtoMessage() {}
func (*AddressResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *AddressResult) GetAddr() string { func (m *AddressResult) GetAddr() string {
if m != nil { if m != nil {
...@@ -89,64 +96,41 @@ func (m *AddressResult) GetShowSecret() string { ...@@ -89,64 +96,41 @@ func (m *AddressResult) GetShowSecret() string {
// order // order
type BlackwhiteRound struct { type BlackwhiteRound struct {
// txhash // txhash
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
// create -> play(timeout) -> show -> done // create -> play(timeout) -> show -> done
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
// 游戏押金可大于 // 游戏押金可大于
PlayAmount int64 `protobuf:"varint,3,opt,name=playAmount,proto3" json:"playAmount,omitempty"` PlayAmount int64 `protobuf:"varint,3,opt,name=playAmount" json:"playAmount,omitempty"`
// 游戏人数 // 游戏人数
PlayerCount int32 `protobuf:"varint,4,opt,name=playerCount,proto3" json:"playerCount,omitempty"` PlayerCount int32 `protobuf:"varint,4,opt,name=playerCount" json:"playerCount,omitempty"`
// 当前游戏人数 // 当前游戏人数
CurPlayerCount int32 `protobuf:"varint,5,opt,name=curPlayerCount,proto3" json:"curPlayerCount,omitempty"` CurPlayerCount int32 `protobuf:"varint,5,opt,name=curPlayerCount" json:"curPlayerCount,omitempty"`
// 游戏需要比对次数 // 游戏需要比对次数
Loop int32 `protobuf:"varint,6,opt,name=loop,proto3" json:"loop,omitempty"` Loop int32 `protobuf:"varint,6,opt,name=loop" json:"loop,omitempty"`
// 当前出示密钥人数 // 当前出示密钥人数
CurShowCount int32 `protobuf:"varint,7,opt,name=curShowCount,proto3" json:"curShowCount,omitempty"` CurShowCount int32 `protobuf:"varint,7,opt,name=curShowCount" json:"curShowCount,omitempty"`
// 创建游戏时间 // 创建游戏时间
CreateTime int64 `protobuf:"varint,8,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,8,opt,name=createTime" json:"createTime,omitempty"`
// 出示密钥开始时间 // 出示密钥开始时间
ShowTime int64 `protobuf:"varint,9,opt,name=showTime,proto3" json:"showTime,omitempty"` ShowTime int64 `protobuf:"varint,9,opt,name=showTime" json:"showTime,omitempty"`
// 超时时间 // 超时时间
Timeout int64 `protobuf:"varint,10,opt,name=timeout,proto3" json:"timeout,omitempty"` Timeout int64 `protobuf:"varint,10,opt,name=timeout" json:"timeout,omitempty"`
// 创建游戏地址 // 创建游戏地址
CreateAddr string `protobuf:"bytes,11,opt,name=createAddr,proto3" json:"createAddr,omitempty"` CreateAddr string `protobuf:"bytes,11,opt,name=createAddr" json:"createAddr,omitempty"`
// 游戏名称 // 游戏名称
GameName string `protobuf:"bytes,12,opt,name=gameName,proto3" json:"gameName,omitempty"` GameName string `protobuf:"bytes,12,opt,name=gameName" json:"gameName,omitempty"`
// 游戏加密结果 // 游戏加密结果
AddrResult []*AddressResult `protobuf:"bytes,13,rep,name=addrResult,proto3" json:"addrResult,omitempty"` AddrResult []*AddressResult `protobuf:"bytes,13,rep,name=addrResult" json:"addrResult,omitempty"`
// 游戏赢家 // 游戏赢家
Winner []string `protobuf:"bytes,14,rep,name=winner,proto3" json:"winner,omitempty"` Winner []string `protobuf:"bytes,14,rep,name=winner" json:"winner,omitempty"`
// block高度以及索引值 // block高度以及索引值
Index int64 `protobuf:"varint,15,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,15,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlackwhiteRound) Reset() { *m = BlackwhiteRound{} }
func (m *BlackwhiteRound) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteRound) ProtoMessage() {}
func (*BlackwhiteRound) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{1}
}
func (m *BlackwhiteRound) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhiteRound.Unmarshal(m, b)
}
func (m *BlackwhiteRound) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhiteRound.Marshal(b, m, deterministic)
}
func (m *BlackwhiteRound) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteRound.Merge(m, src)
}
func (m *BlackwhiteRound) XXX_Size() int {
return xxx_messageInfo_BlackwhiteRound.Size(m)
}
func (m *BlackwhiteRound) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteRound.DiscardUnknown(m)
} }
var xxx_messageInfo_BlackwhiteRound proto.InternalMessageInfo func (m *BlackwhiteRound) Reset() { *m = BlackwhiteRound{} }
func (m *BlackwhiteRound) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteRound) ProtoMessage() {}
func (*BlackwhiteRound) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *BlackwhiteRound) GetGameID() string { func (m *BlackwhiteRound) GetGameID() string {
if m != nil { if m != nil {
...@@ -260,64 +244,35 @@ type BlackwhiteAction struct { ...@@ -260,64 +244,35 @@ type BlackwhiteAction struct {
// *BlackwhiteAction_Play // *BlackwhiteAction_Play
// *BlackwhiteAction_Show // *BlackwhiteAction_Show
// *BlackwhiteAction_TimeoutDone // *BlackwhiteAction_TimeoutDone
Value isBlackwhiteAction_Value `protobuf_oneof:"value"` Value isBlackwhiteAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,6,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,6,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlackwhiteAction) Reset() { *m = BlackwhiteAction{} } func (m *BlackwhiteAction) Reset() { *m = BlackwhiteAction{} }
func (m *BlackwhiteAction) String() string { return proto.CompactTextString(m) } func (m *BlackwhiteAction) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteAction) ProtoMessage() {} func (*BlackwhiteAction) ProtoMessage() {}
func (*BlackwhiteAction) Descriptor() ([]byte, []int) { func (*BlackwhiteAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return fileDescriptor_2484d55734a116de, []int{2}
}
func (m *BlackwhiteAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhiteAction.Unmarshal(m, b)
}
func (m *BlackwhiteAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhiteAction.Marshal(b, m, deterministic)
}
func (m *BlackwhiteAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteAction.Merge(m, src)
}
func (m *BlackwhiteAction) XXX_Size() int {
return xxx_messageInfo_BlackwhiteAction.Size(m)
}
func (m *BlackwhiteAction) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteAction.DiscardUnknown(m)
}
var xxx_messageInfo_BlackwhiteAction proto.InternalMessageInfo
type isBlackwhiteAction_Value interface { type isBlackwhiteAction_Value interface {
isBlackwhiteAction_Value() isBlackwhiteAction_Value()
} }
type BlackwhiteAction_Create struct { type BlackwhiteAction_Create struct {
Create *BlackwhiteCreate `protobuf:"bytes,1,opt,name=create,proto3,oneof"` Create *BlackwhiteCreate `protobuf:"bytes,1,opt,name=create,oneof"`
} }
type BlackwhiteAction_Play struct { type BlackwhiteAction_Play struct {
Play *BlackwhitePlay `protobuf:"bytes,2,opt,name=play,proto3,oneof"` Play *BlackwhitePlay `protobuf:"bytes,2,opt,name=play,oneof"`
} }
type BlackwhiteAction_Show struct { type BlackwhiteAction_Show struct {
Show *BlackwhiteShow `protobuf:"bytes,3,opt,name=show,proto3,oneof"` Show *BlackwhiteShow `protobuf:"bytes,3,opt,name=show,oneof"`
} }
type BlackwhiteAction_TimeoutDone struct { type BlackwhiteAction_TimeoutDone struct {
TimeoutDone *BlackwhiteTimeoutDone `protobuf:"bytes,4,opt,name=timeoutDone,proto3,oneof"` TimeoutDone *BlackwhiteTimeoutDone `protobuf:"bytes,4,opt,name=timeoutDone,oneof"`
} }
func (*BlackwhiteAction_Create) isBlackwhiteAction_Value() {} func (*BlackwhiteAction_Create) isBlackwhiteAction_Value() {}
func (*BlackwhiteAction_Play) isBlackwhiteAction_Value() {}
func (*BlackwhiteAction_Play) isBlackwhiteAction_Value() {} func (*BlackwhiteAction_Show) isBlackwhiteAction_Value() {}
func (*BlackwhiteAction_Show) isBlackwhiteAction_Value() {}
func (*BlackwhiteAction_TimeoutDone) isBlackwhiteAction_Value() {} func (*BlackwhiteAction_TimeoutDone) isBlackwhiteAction_Value() {}
func (m *BlackwhiteAction) GetValue() isBlackwhiteAction_Value { func (m *BlackwhiteAction) GetValue() isBlackwhiteAction_Value {
...@@ -449,22 +404,22 @@ func _BlackwhiteAction_OneofSizer(msg proto.Message) (n int) { ...@@ -449,22 +404,22 @@ func _BlackwhiteAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *BlackwhiteAction_Create: case *BlackwhiteAction_Create:
s := proto.Size(x.Create) s := proto.Size(x.Create)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *BlackwhiteAction_Play: case *BlackwhiteAction_Play:
s := proto.Size(x.Play) s := proto.Size(x.Play)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *BlackwhiteAction_Show: case *BlackwhiteAction_Show:
s := proto.Size(x.Show) s := proto.Size(x.Show)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *BlackwhiteAction_TimeoutDone: case *BlackwhiteAction_TimeoutDone:
s := proto.Size(x.TimeoutDone) s := proto.Size(x.TimeoutDone)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -475,39 +430,16 @@ func _BlackwhiteAction_OneofSizer(msg proto.Message) (n int) { ...@@ -475,39 +430,16 @@ func _BlackwhiteAction_OneofSizer(msg proto.Message) (n int) {
} }
type BlackwhiteCreate struct { type BlackwhiteCreate struct {
PlayAmount int64 `protobuf:"varint,1,opt,name=playAmount,proto3" json:"playAmount,omitempty"` PlayAmount int64 `protobuf:"varint,1,opt,name=playAmount" json:"playAmount,omitempty"`
PlayerCount int32 `protobuf:"varint,2,opt,name=playerCount,proto3" json:"playerCount,omitempty"` PlayerCount int32 `protobuf:"varint,2,opt,name=playerCount" json:"playerCount,omitempty"`
Timeout int64 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` Timeout int64 `protobuf:"varint,3,opt,name=timeout" json:"timeout,omitempty"`
GameName string `protobuf:"bytes,4,opt,name=gameName,proto3" json:"gameName,omitempty"` GameName string `protobuf:"bytes,4,opt,name=gameName" json:"gameName,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlackwhiteCreate) Reset() { *m = BlackwhiteCreate{} }
func (m *BlackwhiteCreate) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteCreate) ProtoMessage() {}
func (*BlackwhiteCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{3}
}
func (m *BlackwhiteCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhiteCreate.Unmarshal(m, b)
}
func (m *BlackwhiteCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhiteCreate.Marshal(b, m, deterministic)
}
func (m *BlackwhiteCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteCreate.Merge(m, src)
}
func (m *BlackwhiteCreate) XXX_Size() int {
return xxx_messageInfo_BlackwhiteCreate.Size(m)
}
func (m *BlackwhiteCreate) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteCreate.DiscardUnknown(m)
} }
var xxx_messageInfo_BlackwhiteCreate proto.InternalMessageInfo func (m *BlackwhiteCreate) Reset() { *m = BlackwhiteCreate{} }
func (m *BlackwhiteCreate) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteCreate) ProtoMessage() {}
func (*BlackwhiteCreate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *BlackwhiteCreate) GetPlayAmount() int64 { func (m *BlackwhiteCreate) GetPlayAmount() int64 {
if m != nil { if m != nil {
...@@ -538,38 +470,15 @@ func (m *BlackwhiteCreate) GetGameName() string { ...@@ -538,38 +470,15 @@ func (m *BlackwhiteCreate) GetGameName() string {
} }
type BlackwhitePlay struct { type BlackwhitePlay struct {
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
HashValues [][]byte `protobuf:"bytes,3,rep,name=hashValues,proto3" json:"hashValues,omitempty"` HashValues [][]byte `protobuf:"bytes,3,rep,name=hashValues,proto3" json:"hashValues,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlackwhitePlay) Reset() { *m = BlackwhitePlay{} } func (m *BlackwhitePlay) Reset() { *m = BlackwhitePlay{} }
func (m *BlackwhitePlay) String() string { return proto.CompactTextString(m) } func (m *BlackwhitePlay) String() string { return proto.CompactTextString(m) }
func (*BlackwhitePlay) ProtoMessage() {} func (*BlackwhitePlay) ProtoMessage() {}
func (*BlackwhitePlay) Descriptor() ([]byte, []int) { func (*BlackwhitePlay) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
return fileDescriptor_2484d55734a116de, []int{4}
}
func (m *BlackwhitePlay) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhitePlay.Unmarshal(m, b)
}
func (m *BlackwhitePlay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhitePlay.Marshal(b, m, deterministic)
}
func (m *BlackwhitePlay) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhitePlay.Merge(m, src)
}
func (m *BlackwhitePlay) XXX_Size() int {
return xxx_messageInfo_BlackwhitePlay.Size(m)
}
func (m *BlackwhitePlay) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhitePlay.DiscardUnknown(m)
}
var xxx_messageInfo_BlackwhitePlay proto.InternalMessageInfo
func (m *BlackwhitePlay) GetGameID() string { func (m *BlackwhitePlay) GetGameID() string {
if m != nil { if m != nil {
...@@ -593,37 +502,14 @@ func (m *BlackwhitePlay) GetHashValues() [][]byte { ...@@ -593,37 +502,14 @@ func (m *BlackwhitePlay) GetHashValues() [][]byte {
} }
type BlackwhiteShow struct { type BlackwhiteShow struct {
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret" json:"secret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlackwhiteShow) Reset() { *m = BlackwhiteShow{} } func (m *BlackwhiteShow) Reset() { *m = BlackwhiteShow{} }
func (m *BlackwhiteShow) String() string { return proto.CompactTextString(m) } func (m *BlackwhiteShow) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteShow) ProtoMessage() {} func (*BlackwhiteShow) ProtoMessage() {}
func (*BlackwhiteShow) Descriptor() ([]byte, []int) { func (*BlackwhiteShow) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
return fileDescriptor_2484d55734a116de, []int{5}
}
func (m *BlackwhiteShow) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhiteShow.Unmarshal(m, b)
}
func (m *BlackwhiteShow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhiteShow.Marshal(b, m, deterministic)
}
func (m *BlackwhiteShow) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteShow.Merge(m, src)
}
func (m *BlackwhiteShow) XXX_Size() int {
return xxx_messageInfo_BlackwhiteShow.Size(m)
}
func (m *BlackwhiteShow) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteShow.DiscardUnknown(m)
}
var xxx_messageInfo_BlackwhiteShow proto.InternalMessageInfo
func (m *BlackwhiteShow) GetGameID() string { func (m *BlackwhiteShow) GetGameID() string {
if m != nil { if m != nil {
...@@ -640,36 +526,13 @@ func (m *BlackwhiteShow) GetSecret() string { ...@@ -640,36 +526,13 @@ func (m *BlackwhiteShow) GetSecret() string {
} }
type BlackwhiteTimeoutDone struct { type BlackwhiteTimeoutDone struct {
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlackwhiteTimeoutDone) Reset() { *m = BlackwhiteTimeoutDone{} }
func (m *BlackwhiteTimeoutDone) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteTimeoutDone) ProtoMessage() {}
func (*BlackwhiteTimeoutDone) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{6}
}
func (m *BlackwhiteTimeoutDone) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhiteTimeoutDone.Unmarshal(m, b)
}
func (m *BlackwhiteTimeoutDone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhiteTimeoutDone.Marshal(b, m, deterministic)
}
func (m *BlackwhiteTimeoutDone) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteTimeoutDone.Merge(m, src)
}
func (m *BlackwhiteTimeoutDone) XXX_Size() int {
return xxx_messageInfo_BlackwhiteTimeoutDone.Size(m)
}
func (m *BlackwhiteTimeoutDone) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteTimeoutDone.DiscardUnknown(m)
} }
var xxx_messageInfo_BlackwhiteTimeoutDone proto.InternalMessageInfo func (m *BlackwhiteTimeoutDone) Reset() { *m = BlackwhiteTimeoutDone{} }
func (m *BlackwhiteTimeoutDone) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteTimeoutDone) ProtoMessage() {}
func (*BlackwhiteTimeoutDone) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *BlackwhiteTimeoutDone) GetGameID() string { func (m *BlackwhiteTimeoutDone) GetGameID() string {
if m != nil { if m != nil {
...@@ -680,36 +543,13 @@ func (m *BlackwhiteTimeoutDone) GetGameID() string { ...@@ -680,36 +543,13 @@ func (m *BlackwhiteTimeoutDone) GetGameID() string {
// logs // logs
type ReceiptBlackwhite struct { type ReceiptBlackwhite struct {
Round *BlackwhiteRound `protobuf:"bytes,1,opt,name=round,proto3" json:"round,omitempty"` Round *BlackwhiteRound `protobuf:"bytes,1,opt,name=round" json:"round,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptBlackwhite) Reset() { *m = ReceiptBlackwhite{} } func (m *ReceiptBlackwhite) Reset() { *m = ReceiptBlackwhite{} }
func (m *ReceiptBlackwhite) String() string { return proto.CompactTextString(m) } func (m *ReceiptBlackwhite) String() string { return proto.CompactTextString(m) }
func (*ReceiptBlackwhite) ProtoMessage() {} func (*ReceiptBlackwhite) ProtoMessage() {}
func (*ReceiptBlackwhite) Descriptor() ([]byte, []int) { func (*ReceiptBlackwhite) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
return fileDescriptor_2484d55734a116de, []int{7}
}
func (m *ReceiptBlackwhite) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptBlackwhite.Unmarshal(m, b)
}
func (m *ReceiptBlackwhite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptBlackwhite.Marshal(b, m, deterministic)
}
func (m *ReceiptBlackwhite) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptBlackwhite.Merge(m, src)
}
func (m *ReceiptBlackwhite) XXX_Size() int {
return xxx_messageInfo_ReceiptBlackwhite.Size(m)
}
func (m *ReceiptBlackwhite) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptBlackwhite.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptBlackwhite proto.InternalMessageInfo
func (m *ReceiptBlackwhite) GetRound() *BlackwhiteRound { func (m *ReceiptBlackwhite) GetRound() *BlackwhiteRound {
if m != nil { if m != nil {
...@@ -719,41 +559,18 @@ func (m *ReceiptBlackwhite) GetRound() *BlackwhiteRound { ...@@ -719,41 +559,18 @@ func (m *ReceiptBlackwhite) GetRound() *BlackwhiteRound {
} }
type ReceiptBlackwhiteStatus struct { type ReceiptBlackwhiteStatus struct {
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
//记录上一次状态 // 记录上一次状态
PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"` PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus" json:"prevStatus,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,omitempty"`
Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,5,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReceiptBlackwhiteStatus) Reset() { *m = ReceiptBlackwhiteStatus{} }
func (m *ReceiptBlackwhiteStatus) String() string { return proto.CompactTextString(m) }
func (*ReceiptBlackwhiteStatus) ProtoMessage() {}
func (*ReceiptBlackwhiteStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{8}
}
func (m *ReceiptBlackwhiteStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptBlackwhiteStatus.Unmarshal(m, b)
}
func (m *ReceiptBlackwhiteStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptBlackwhiteStatus.Marshal(b, m, deterministic)
}
func (m *ReceiptBlackwhiteStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptBlackwhiteStatus.Merge(m, src)
}
func (m *ReceiptBlackwhiteStatus) XXX_Size() int {
return xxx_messageInfo_ReceiptBlackwhiteStatus.Size(m)
}
func (m *ReceiptBlackwhiteStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptBlackwhiteStatus.DiscardUnknown(m)
} }
var xxx_messageInfo_ReceiptBlackwhiteStatus proto.InternalMessageInfo func (m *ReceiptBlackwhiteStatus) Reset() { *m = ReceiptBlackwhiteStatus{} }
func (m *ReceiptBlackwhiteStatus) String() string { return proto.CompactTextString(m) }
func (*ReceiptBlackwhiteStatus) ProtoMessage() {}
func (*ReceiptBlackwhiteStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *ReceiptBlackwhiteStatus) GetGameID() string { func (m *ReceiptBlackwhiteStatus) GetGameID() string {
if m != nil { if m != nil {
...@@ -791,36 +608,13 @@ func (m *ReceiptBlackwhiteStatus) GetIndex() int64 { ...@@ -791,36 +608,13 @@ func (m *ReceiptBlackwhiteStatus) GetIndex() int64 {
} }
type ReqBlackwhiteRoundInfo struct { type ReqBlackwhiteRoundInfo struct {
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqBlackwhiteRoundInfo) Reset() { *m = ReqBlackwhiteRoundInfo{} }
func (m *ReqBlackwhiteRoundInfo) String() string { return proto.CompactTextString(m) }
func (*ReqBlackwhiteRoundInfo) ProtoMessage() {}
func (*ReqBlackwhiteRoundInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{9}
}
func (m *ReqBlackwhiteRoundInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqBlackwhiteRoundInfo.Unmarshal(m, b)
}
func (m *ReqBlackwhiteRoundInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqBlackwhiteRoundInfo.Marshal(b, m, deterministic)
}
func (m *ReqBlackwhiteRoundInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqBlackwhiteRoundInfo.Merge(m, src)
}
func (m *ReqBlackwhiteRoundInfo) XXX_Size() int {
return xxx_messageInfo_ReqBlackwhiteRoundInfo.Size(m)
}
func (m *ReqBlackwhiteRoundInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReqBlackwhiteRoundInfo.DiscardUnknown(m)
} }
var xxx_messageInfo_ReqBlackwhiteRoundInfo proto.InternalMessageInfo func (m *ReqBlackwhiteRoundInfo) Reset() { *m = ReqBlackwhiteRoundInfo{} }
func (m *ReqBlackwhiteRoundInfo) String() string { return proto.CompactTextString(m) }
func (*ReqBlackwhiteRoundInfo) ProtoMessage() {}
func (*ReqBlackwhiteRoundInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *ReqBlackwhiteRoundInfo) GetGameID() string { func (m *ReqBlackwhiteRoundInfo) GetGameID() string {
if m != nil { if m != nil {
...@@ -830,36 +624,13 @@ func (m *ReqBlackwhiteRoundInfo) GetGameID() string { ...@@ -830,36 +624,13 @@ func (m *ReqBlackwhiteRoundInfo) GetGameID() string {
} }
type ReplyBlackwhiteRoundInfo struct { type ReplyBlackwhiteRoundInfo struct {
Round *BlackwhiteRoundResult `protobuf:"bytes,1,opt,name=round,proto3" json:"round,omitempty"` Round *BlackwhiteRoundResult `protobuf:"bytes,1,opt,name=round" json:"round,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyBlackwhiteRoundInfo) Reset() { *m = ReplyBlackwhiteRoundInfo{} } func (m *ReplyBlackwhiteRoundInfo) Reset() { *m = ReplyBlackwhiteRoundInfo{} }
func (m *ReplyBlackwhiteRoundInfo) String() string { return proto.CompactTextString(m) } func (m *ReplyBlackwhiteRoundInfo) String() string { return proto.CompactTextString(m) }
func (*ReplyBlackwhiteRoundInfo) ProtoMessage() {} func (*ReplyBlackwhiteRoundInfo) ProtoMessage() {}
func (*ReplyBlackwhiteRoundInfo) Descriptor() ([]byte, []int) { func (*ReplyBlackwhiteRoundInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
return fileDescriptor_2484d55734a116de, []int{10}
}
func (m *ReplyBlackwhiteRoundInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyBlackwhiteRoundInfo.Unmarshal(m, b)
}
func (m *ReplyBlackwhiteRoundInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyBlackwhiteRoundInfo.Marshal(b, m, deterministic)
}
func (m *ReplyBlackwhiteRoundInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyBlackwhiteRoundInfo.Merge(m, src)
}
func (m *ReplyBlackwhiteRoundInfo) XXX_Size() int {
return xxx_messageInfo_ReplyBlackwhiteRoundInfo.Size(m)
}
func (m *ReplyBlackwhiteRoundInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyBlackwhiteRoundInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyBlackwhiteRoundInfo proto.InternalMessageInfo
func (m *ReplyBlackwhiteRoundInfo) GetRound() *BlackwhiteRoundResult { func (m *ReplyBlackwhiteRoundInfo) GetRound() *BlackwhiteRoundResult {
if m != nil { if m != nil {
...@@ -869,42 +640,19 @@ func (m *ReplyBlackwhiteRoundInfo) GetRound() *BlackwhiteRoundResult { ...@@ -869,42 +640,19 @@ func (m *ReplyBlackwhiteRoundInfo) GetRound() *BlackwhiteRoundResult {
} }
type ReqBlackwhiteRoundList struct { type ReqBlackwhiteRoundList struct {
//优先根据status查询,status不可为空 // 优先根据status查询,status不可为空
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
//二级搜索,如果要查询一个地址下的所有game信息,可以根据status,分多次查询,这样规避存储数据时的臃余情况 // 二级搜索,如果要查询一个地址下的所有game信息,可以根据status,分多次查询,这样规避存储数据时的臃余情况
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction" json:"direction,omitempty"`
Index int64 `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,5,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqBlackwhiteRoundList) Reset() { *m = ReqBlackwhiteRoundList{} } func (m *ReqBlackwhiteRoundList) Reset() { *m = ReqBlackwhiteRoundList{} }
func (m *ReqBlackwhiteRoundList) String() string { return proto.CompactTextString(m) } func (m *ReqBlackwhiteRoundList) String() string { return proto.CompactTextString(m) }
func (*ReqBlackwhiteRoundList) ProtoMessage() {} func (*ReqBlackwhiteRoundList) ProtoMessage() {}
func (*ReqBlackwhiteRoundList) Descriptor() ([]byte, []int) { func (*ReqBlackwhiteRoundList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
return fileDescriptor_2484d55734a116de, []int{11}
}
func (m *ReqBlackwhiteRoundList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqBlackwhiteRoundList.Unmarshal(m, b)
}
func (m *ReqBlackwhiteRoundList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqBlackwhiteRoundList.Marshal(b, m, deterministic)
}
func (m *ReqBlackwhiteRoundList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqBlackwhiteRoundList.Merge(m, src)
}
func (m *ReqBlackwhiteRoundList) XXX_Size() int {
return xxx_messageInfo_ReqBlackwhiteRoundList.Size(m)
}
func (m *ReqBlackwhiteRoundList) XXX_DiscardUnknown() {
xxx_messageInfo_ReqBlackwhiteRoundList.DiscardUnknown(m)
}
var xxx_messageInfo_ReqBlackwhiteRoundList proto.InternalMessageInfo
func (m *ReqBlackwhiteRoundList) GetStatus() int32 { func (m *ReqBlackwhiteRoundList) GetStatus() int32 {
if m != nil { if m != nil {
...@@ -942,36 +690,13 @@ func (m *ReqBlackwhiteRoundList) GetIndex() int64 { ...@@ -942,36 +690,13 @@ func (m *ReqBlackwhiteRoundList) GetIndex() int64 {
} }
type ReplyBlackwhiteRoundList struct { type ReplyBlackwhiteRoundList struct {
Round []*BlackwhiteRoundResult `protobuf:"bytes,1,rep,name=round,proto3" json:"round,omitempty"` Round []*BlackwhiteRoundResult `protobuf:"bytes,1,rep,name=round" json:"round,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyBlackwhiteRoundList) Reset() { *m = ReplyBlackwhiteRoundList{} } func (m *ReplyBlackwhiteRoundList) Reset() { *m = ReplyBlackwhiteRoundList{} }
func (m *ReplyBlackwhiteRoundList) String() string { return proto.CompactTextString(m) } func (m *ReplyBlackwhiteRoundList) String() string { return proto.CompactTextString(m) }
func (*ReplyBlackwhiteRoundList) ProtoMessage() {} func (*ReplyBlackwhiteRoundList) ProtoMessage() {}
func (*ReplyBlackwhiteRoundList) Descriptor() ([]byte, []int) { func (*ReplyBlackwhiteRoundList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
return fileDescriptor_2484d55734a116de, []int{12}
}
func (m *ReplyBlackwhiteRoundList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyBlackwhiteRoundList.Unmarshal(m, b)
}
func (m *ReplyBlackwhiteRoundList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyBlackwhiteRoundList.Marshal(b, m, deterministic)
}
func (m *ReplyBlackwhiteRoundList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyBlackwhiteRoundList.Merge(m, src)
}
func (m *ReplyBlackwhiteRoundList) XXX_Size() int {
return xxx_messageInfo_ReplyBlackwhiteRoundList.Size(m)
}
func (m *ReplyBlackwhiteRoundList) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyBlackwhiteRoundList.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyBlackwhiteRoundList proto.InternalMessageInfo
func (m *ReplyBlackwhiteRoundList) GetRound() []*BlackwhiteRoundResult { func (m *ReplyBlackwhiteRoundList) GetRound() []*BlackwhiteRoundResult {
if m != nil { if m != nil {
...@@ -981,37 +706,14 @@ func (m *ReplyBlackwhiteRoundList) GetRound() []*BlackwhiteRoundResult { ...@@ -981,37 +706,14 @@ func (m *ReplyBlackwhiteRoundList) GetRound() []*BlackwhiteRoundResult {
} }
type ReqLoopResult struct { type ReqLoopResult struct {
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
LoopSeq int32 `protobuf:"varint,2,opt,name=loopSeq,proto3" json:"loopSeq,omitempty"` LoopSeq int32 `protobuf:"varint,2,opt,name=loopSeq" json:"loopSeq,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqLoopResult) Reset() { *m = ReqLoopResult{} } func (m *ReqLoopResult) Reset() { *m = ReqLoopResult{} }
func (m *ReqLoopResult) String() string { return proto.CompactTextString(m) } func (m *ReqLoopResult) String() string { return proto.CompactTextString(m) }
func (*ReqLoopResult) ProtoMessage() {} func (*ReqLoopResult) ProtoMessage() {}
func (*ReqLoopResult) Descriptor() ([]byte, []int) { func (*ReqLoopResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
return fileDescriptor_2484d55734a116de, []int{13}
}
func (m *ReqLoopResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqLoopResult.Unmarshal(m, b)
}
func (m *ReqLoopResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqLoopResult.Marshal(b, m, deterministic)
}
func (m *ReqLoopResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqLoopResult.Merge(m, src)
}
func (m *ReqLoopResult) XXX_Size() int {
return xxx_messageInfo_ReqLoopResult.Size(m)
}
func (m *ReqLoopResult) XXX_DiscardUnknown() {
xxx_messageInfo_ReqLoopResult.DiscardUnknown(m)
}
var xxx_messageInfo_ReqLoopResult proto.InternalMessageInfo
func (m *ReqLoopResult) GetGameID() string { func (m *ReqLoopResult) GetGameID() string {
if m != nil { if m != nil {
...@@ -1028,37 +730,14 @@ func (m *ReqLoopResult) GetLoopSeq() int32 { ...@@ -1028,37 +730,14 @@ func (m *ReqLoopResult) GetLoopSeq() int32 {
} }
type PerLoopResult struct { type PerLoopResult struct {
Winers []string `protobuf:"bytes,1,rep,name=winers,proto3" json:"winers,omitempty"` Winers []string `protobuf:"bytes,1,rep,name=winers" json:"winers,omitempty"`
Losers []string `protobuf:"bytes,2,rep,name=losers,proto3" json:"losers,omitempty"` Losers []string `protobuf:"bytes,2,rep,name=losers" json:"losers,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PerLoopResult) Reset() { *m = PerLoopResult{} }
func (m *PerLoopResult) String() string { return proto.CompactTextString(m) }
func (*PerLoopResult) ProtoMessage() {}
func (*PerLoopResult) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{14}
} }
func (m *PerLoopResult) XXX_Unmarshal(b []byte) error { func (m *PerLoopResult) Reset() { *m = PerLoopResult{} }
return xxx_messageInfo_PerLoopResult.Unmarshal(m, b) func (m *PerLoopResult) String() string { return proto.CompactTextString(m) }
} func (*PerLoopResult) ProtoMessage() {}
func (m *PerLoopResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*PerLoopResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
return xxx_messageInfo_PerLoopResult.Marshal(b, m, deterministic)
}
func (m *PerLoopResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_PerLoopResult.Merge(m, src)
}
func (m *PerLoopResult) XXX_Size() int {
return xxx_messageInfo_PerLoopResult.Size(m)
}
func (m *PerLoopResult) XXX_DiscardUnknown() {
xxx_messageInfo_PerLoopResult.DiscardUnknown(m)
}
var xxx_messageInfo_PerLoopResult proto.InternalMessageInfo
func (m *PerLoopResult) GetWiners() []string { func (m *PerLoopResult) GetWiners() []string {
if m != nil { if m != nil {
...@@ -1075,37 +754,14 @@ func (m *PerLoopResult) GetLosers() []string { ...@@ -1075,37 +754,14 @@ func (m *PerLoopResult) GetLosers() []string {
} }
type ReplyLoopResults struct { type ReplyLoopResults struct {
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
Results []*PerLoopResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` Results []*PerLoopResult `protobuf:"bytes,2,rep,name=results" json:"results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyLoopResults) Reset() { *m = ReplyLoopResults{} }
func (m *ReplyLoopResults) String() string { return proto.CompactTextString(m) }
func (*ReplyLoopResults) ProtoMessage() {}
func (*ReplyLoopResults) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{15}
}
func (m *ReplyLoopResults) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyLoopResults.Unmarshal(m, b)
}
func (m *ReplyLoopResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyLoopResults.Marshal(b, m, deterministic)
}
func (m *ReplyLoopResults) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyLoopResults.Merge(m, src)
}
func (m *ReplyLoopResults) XXX_Size() int {
return xxx_messageInfo_ReplyLoopResults.Size(m)
}
func (m *ReplyLoopResults) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyLoopResults.DiscardUnknown(m)
} }
var xxx_messageInfo_ReplyLoopResults proto.InternalMessageInfo func (m *ReplyLoopResults) Reset() { *m = ReplyLoopResults{} }
func (m *ReplyLoopResults) String() string { return proto.CompactTextString(m) }
func (*ReplyLoopResults) ProtoMessage() {}
func (*ReplyLoopResults) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
func (m *ReplyLoopResults) GetGameID() string { func (m *ReplyLoopResults) GetGameID() string {
if m != nil { if m != nil {
...@@ -1123,64 +779,41 @@ func (m *ReplyLoopResults) GetResults() []*PerLoopResult { ...@@ -1123,64 +779,41 @@ func (m *ReplyLoopResults) GetResults() []*PerLoopResult {
type BlackwhiteRoundResult struct { type BlackwhiteRoundResult struct {
// txhash // txhash
GameID string `protobuf:"bytes,1,opt,name=gameID,proto3" json:"gameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=gameID" json:"gameID,omitempty"`
// create -> play(timeout) -> show -> done // create -> play(timeout) -> show -> done
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
// 游戏押金可大于 // 游戏押金可大于
PlayAmount int64 `protobuf:"varint,3,opt,name=playAmount,proto3" json:"playAmount,omitempty"` PlayAmount int64 `protobuf:"varint,3,opt,name=playAmount" json:"playAmount,omitempty"`
// 游戏人数 // 游戏人数
PlayerCount int32 `protobuf:"varint,4,opt,name=playerCount,proto3" json:"playerCount,omitempty"` PlayerCount int32 `protobuf:"varint,4,opt,name=playerCount" json:"playerCount,omitempty"`
// 当前游戏人数 // 当前游戏人数
CurPlayerCount int32 `protobuf:"varint,5,opt,name=curPlayerCount,proto3" json:"curPlayerCount,omitempty"` CurPlayerCount int32 `protobuf:"varint,5,opt,name=curPlayerCount" json:"curPlayerCount,omitempty"`
// 游戏需要比对次数 // 游戏需要比对次数
Loop int32 `protobuf:"varint,6,opt,name=loop,proto3" json:"loop,omitempty"` Loop int32 `protobuf:"varint,6,opt,name=loop" json:"loop,omitempty"`
// 当前出示密钥人数 // 当前出示密钥人数
CurShowCount int32 `protobuf:"varint,7,opt,name=curShowCount,proto3" json:"curShowCount,omitempty"` CurShowCount int32 `protobuf:"varint,7,opt,name=curShowCount" json:"curShowCount,omitempty"`
// 创建游戏时间 // 创建游戏时间
CreateTime int64 `protobuf:"varint,8,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,8,opt,name=createTime" json:"createTime,omitempty"`
// 出示密钥开始时间 // 出示密钥开始时间
ShowTime int64 `protobuf:"varint,9,opt,name=showTime,proto3" json:"showTime,omitempty"` ShowTime int64 `protobuf:"varint,9,opt,name=showTime" json:"showTime,omitempty"`
// 超时时间 // 超时时间
Timeout int64 `protobuf:"varint,10,opt,name=timeout,proto3" json:"timeout,omitempty"` Timeout int64 `protobuf:"varint,10,opt,name=timeout" json:"timeout,omitempty"`
// 创建游戏地址 // 创建游戏地址
CreateAddr string `protobuf:"bytes,11,opt,name=createAddr,proto3" json:"createAddr,omitempty"` CreateAddr string `protobuf:"bytes,11,opt,name=createAddr" json:"createAddr,omitempty"`
// 游戏名称 // 游戏名称
GameName string `protobuf:"bytes,12,opt,name=gameName,proto3" json:"gameName,omitempty"` GameName string `protobuf:"bytes,12,opt,name=gameName" json:"gameName,omitempty"`
// 游戏加密结果 // 游戏加密结果
AddrResult []*AddressResult `protobuf:"bytes,13,rep,name=addrResult,proto3" json:"addrResult,omitempty"` AddrResult []*AddressResult `protobuf:"bytes,13,rep,name=addrResult" json:"addrResult,omitempty"`
// 游戏赢家 // 游戏赢家
Winner []string `protobuf:"bytes,14,rep,name=winner,proto3" json:"winner,omitempty"` Winner []string `protobuf:"bytes,14,rep,name=winner" json:"winner,omitempty"`
// block高度以及索引值 // block高度以及索引值
Index int64 `protobuf:"varint,15,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,15,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlackwhiteRoundResult) Reset() { *m = BlackwhiteRoundResult{} } func (m *BlackwhiteRoundResult) Reset() { *m = BlackwhiteRoundResult{} }
func (m *BlackwhiteRoundResult) String() string { return proto.CompactTextString(m) } func (m *BlackwhiteRoundResult) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteRoundResult) ProtoMessage() {} func (*BlackwhiteRoundResult) ProtoMessage() {}
func (*BlackwhiteRoundResult) Descriptor() ([]byte, []int) { func (*BlackwhiteRoundResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
return fileDescriptor_2484d55734a116de, []int{16}
}
func (m *BlackwhiteRoundResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhiteRoundResult.Unmarshal(m, b)
}
func (m *BlackwhiteRoundResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhiteRoundResult.Marshal(b, m, deterministic)
}
func (m *BlackwhiteRoundResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteRoundResult.Merge(m, src)
}
func (m *BlackwhiteRoundResult) XXX_Size() int {
return xxx_messageInfo_BlackwhiteRoundResult.Size(m)
}
func (m *BlackwhiteRoundResult) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteRoundResult.DiscardUnknown(m)
}
var xxx_messageInfo_BlackwhiteRoundResult proto.InternalMessageInfo
func (m *BlackwhiteRoundResult) GetGameID() string { func (m *BlackwhiteRoundResult) GetGameID() string {
if m != nil { if m != nil {
...@@ -1288,40 +921,17 @@ func (m *BlackwhiteRoundResult) GetIndex() int64 { ...@@ -1288,40 +921,17 @@ func (m *BlackwhiteRoundResult) GetIndex() int64 {
} }
type BlackwhiteCreateTxReq struct { type BlackwhiteCreateTxReq struct {
PlayAmount int64 `protobuf:"varint,1,opt,name=PlayAmount,proto3" json:"PlayAmount,omitempty"` PlayAmount int64 `protobuf:"varint,1,opt,name=PlayAmount" json:"PlayAmount,omitempty"`
PlayerCount int32 `protobuf:"varint,2,opt,name=PlayerCount,proto3" json:"PlayerCount,omitempty"` PlayerCount int32 `protobuf:"varint,2,opt,name=PlayerCount" json:"PlayerCount,omitempty"`
Timeout int64 `protobuf:"varint,3,opt,name=Timeout,proto3" json:"Timeout,omitempty"` Timeout int64 `protobuf:"varint,3,opt,name=Timeout" json:"Timeout,omitempty"`
GameName string `protobuf:"bytes,4,opt,name=GameName,proto3" json:"GameName,omitempty"` GameName string `protobuf:"bytes,4,opt,name=GameName" json:"GameName,omitempty"`
Fee int64 `protobuf:"varint,5,opt,name=Fee,proto3" json:"Fee,omitempty"` Fee int64 `protobuf:"varint,5,opt,name=Fee" json:"Fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlackwhiteCreateTxReq) Reset() { *m = BlackwhiteCreateTxReq{} } func (m *BlackwhiteCreateTxReq) Reset() { *m = BlackwhiteCreateTxReq{} }
func (m *BlackwhiteCreateTxReq) String() string { return proto.CompactTextString(m) } func (m *BlackwhiteCreateTxReq) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteCreateTxReq) ProtoMessage() {} func (*BlackwhiteCreateTxReq) ProtoMessage() {}
func (*BlackwhiteCreateTxReq) Descriptor() ([]byte, []int) { func (*BlackwhiteCreateTxReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
return fileDescriptor_2484d55734a116de, []int{17}
}
func (m *BlackwhiteCreateTxReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhiteCreateTxReq.Unmarshal(m, b)
}
func (m *BlackwhiteCreateTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhiteCreateTxReq.Marshal(b, m, deterministic)
}
func (m *BlackwhiteCreateTxReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteCreateTxReq.Merge(m, src)
}
func (m *BlackwhiteCreateTxReq) XXX_Size() int {
return xxx_messageInfo_BlackwhiteCreateTxReq.Size(m)
}
func (m *BlackwhiteCreateTxReq) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteCreateTxReq.DiscardUnknown(m)
}
var xxx_messageInfo_BlackwhiteCreateTxReq proto.InternalMessageInfo
func (m *BlackwhiteCreateTxReq) GetPlayAmount() int64 { func (m *BlackwhiteCreateTxReq) GetPlayAmount() int64 {
if m != nil { if m != nil {
...@@ -1359,39 +969,16 @@ func (m *BlackwhiteCreateTxReq) GetFee() int64 { ...@@ -1359,39 +969,16 @@ func (m *BlackwhiteCreateTxReq) GetFee() int64 {
} }
type BlackwhitePlayTxReq struct { type BlackwhitePlayTxReq struct {
GameID string `protobuf:"bytes,1,opt,name=GameID,proto3" json:"GameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=GameID" json:"GameID,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=Amount" json:"Amount,omitempty"`
HashValues [][]byte `protobuf:"bytes,3,rep,name=HashValues,proto3" json:"HashValues,omitempty"` HashValues [][]byte `protobuf:"bytes,3,rep,name=HashValues,proto3" json:"HashValues,omitempty"`
Fee int64 `protobuf:"varint,4,opt,name=Fee,proto3" json:"Fee,omitempty"` Fee int64 `protobuf:"varint,4,opt,name=Fee" json:"Fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlackwhitePlayTxReq) Reset() { *m = BlackwhitePlayTxReq{} } func (m *BlackwhitePlayTxReq) Reset() { *m = BlackwhitePlayTxReq{} }
func (m *BlackwhitePlayTxReq) String() string { return proto.CompactTextString(m) } func (m *BlackwhitePlayTxReq) String() string { return proto.CompactTextString(m) }
func (*BlackwhitePlayTxReq) ProtoMessage() {} func (*BlackwhitePlayTxReq) ProtoMessage() {}
func (*BlackwhitePlayTxReq) Descriptor() ([]byte, []int) { func (*BlackwhitePlayTxReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
return fileDescriptor_2484d55734a116de, []int{18}
}
func (m *BlackwhitePlayTxReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhitePlayTxReq.Unmarshal(m, b)
}
func (m *BlackwhitePlayTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhitePlayTxReq.Marshal(b, m, deterministic)
}
func (m *BlackwhitePlayTxReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhitePlayTxReq.Merge(m, src)
}
func (m *BlackwhitePlayTxReq) XXX_Size() int {
return xxx_messageInfo_BlackwhitePlayTxReq.Size(m)
}
func (m *BlackwhitePlayTxReq) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhitePlayTxReq.DiscardUnknown(m)
}
var xxx_messageInfo_BlackwhitePlayTxReq proto.InternalMessageInfo
func (m *BlackwhitePlayTxReq) GetGameID() string { func (m *BlackwhitePlayTxReq) GetGameID() string {
if m != nil { if m != nil {
...@@ -1422,38 +1009,15 @@ func (m *BlackwhitePlayTxReq) GetFee() int64 { ...@@ -1422,38 +1009,15 @@ func (m *BlackwhitePlayTxReq) GetFee() int64 {
} }
type BlackwhiteShowTxReq struct { type BlackwhiteShowTxReq struct {
GameID string `protobuf:"bytes,1,opt,name=GameID,proto3" json:"GameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=GameID" json:"GameID,omitempty"`
Secret string `protobuf:"bytes,2,opt,name=Secret,proto3" json:"Secret,omitempty"` Secret string `protobuf:"bytes,2,opt,name=Secret" json:"Secret,omitempty"`
Fee int64 `protobuf:"varint,3,opt,name=Fee,proto3" json:"Fee,omitempty"` Fee int64 `protobuf:"varint,3,opt,name=Fee" json:"Fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlackwhiteShowTxReq) Reset() { *m = BlackwhiteShowTxReq{} }
func (m *BlackwhiteShowTxReq) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteShowTxReq) ProtoMessage() {}
func (*BlackwhiteShowTxReq) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{19}
}
func (m *BlackwhiteShowTxReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlackwhiteShowTxReq.Unmarshal(m, b)
}
func (m *BlackwhiteShowTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlackwhiteShowTxReq.Marshal(b, m, deterministic)
}
func (m *BlackwhiteShowTxReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteShowTxReq.Merge(m, src)
}
func (m *BlackwhiteShowTxReq) XXX_Size() int {
return xxx_messageInfo_BlackwhiteShowTxReq.Size(m)
}
func (m *BlackwhiteShowTxReq) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteShowTxReq.DiscardUnknown(m)
} }
var xxx_messageInfo_BlackwhiteShowTxReq proto.InternalMessageInfo func (m *BlackwhiteShowTxReq) Reset() { *m = BlackwhiteShowTxReq{} }
func (m *BlackwhiteShowTxReq) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteShowTxReq) ProtoMessage() {}
func (*BlackwhiteShowTxReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
func (m *BlackwhiteShowTxReq) GetGameID() string { func (m *BlackwhiteShowTxReq) GetGameID() string {
if m != nil { if m != nil {
...@@ -1477,37 +1041,14 @@ func (m *BlackwhiteShowTxReq) GetFee() int64 { ...@@ -1477,37 +1041,14 @@ func (m *BlackwhiteShowTxReq) GetFee() int64 {
} }
type BlackwhiteTimeoutDoneTxReq struct { type BlackwhiteTimeoutDoneTxReq struct {
GameID string `protobuf:"bytes,1,opt,name=GameID,proto3" json:"GameID,omitempty"` GameID string `protobuf:"bytes,1,opt,name=GameID" json:"GameID,omitempty"`
Fee int64 `protobuf:"varint,2,opt,name=Fee,proto3" json:"Fee,omitempty"` Fee int64 `protobuf:"varint,2,opt,name=Fee" json:"Fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlackwhiteTimeoutDoneTxReq) Reset() { *m = BlackwhiteTimeoutDoneTxReq{} }
func (m *BlackwhiteTimeoutDoneTxReq) String() string { return proto.CompactTextString(m) }
func (*BlackwhiteTimeoutDoneTxReq) ProtoMessage() {}
func (*BlackwhiteTimeoutDoneTxReq) Descriptor() ([]byte, []int) {
return fileDescriptor_2484d55734a116de, []int{20}
} }
func (m *BlackwhiteTimeoutDoneTxReq) XXX_Unmarshal(b []byte) error { func (m *BlackwhiteTimeoutDoneTxReq) Reset() { *m = BlackwhiteTimeoutDoneTxReq{} }
return xxx_messageInfo_BlackwhiteTimeoutDoneTxReq.Unmarshal(m, b) func (m *BlackwhiteTimeoutDoneTxReq) String() string { return proto.CompactTextString(m) }
} func (*BlackwhiteTimeoutDoneTxReq) ProtoMessage() {}
func (m *BlackwhiteTimeoutDoneTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*BlackwhiteTimeoutDoneTxReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
return xxx_messageInfo_BlackwhiteTimeoutDoneTxReq.Marshal(b, m, deterministic)
}
func (m *BlackwhiteTimeoutDoneTxReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlackwhiteTimeoutDoneTxReq.Merge(m, src)
}
func (m *BlackwhiteTimeoutDoneTxReq) XXX_Size() int {
return xxx_messageInfo_BlackwhiteTimeoutDoneTxReq.Size(m)
}
func (m *BlackwhiteTimeoutDoneTxReq) XXX_DiscardUnknown() {
xxx_messageInfo_BlackwhiteTimeoutDoneTxReq.DiscardUnknown(m)
}
var xxx_messageInfo_BlackwhiteTimeoutDoneTxReq proto.InternalMessageInfo
func (m *BlackwhiteTimeoutDoneTxReq) GetGameID() string { func (m *BlackwhiteTimeoutDoneTxReq) GetGameID() string {
if m != nil { if m != nil {
...@@ -1547,73 +1088,6 @@ func init() { ...@@ -1547,73 +1088,6 @@ func init() {
proto.RegisterType((*BlackwhiteTimeoutDoneTxReq)(nil), "types.BlackwhiteTimeoutDoneTxReq") proto.RegisterType((*BlackwhiteTimeoutDoneTxReq)(nil), "types.BlackwhiteTimeoutDoneTxReq")
} }
func init() { proto.RegisterFile("blackwhite.proto", fileDescriptor_2484d55734a116de) }
var fileDescriptor_2484d55734a116de = []byte{
// 961 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcd, 0x8e, 0x1b, 0x45,
0x10, 0xde, 0xf1, 0x78, 0xec, 0x6c, 0x79, 0xff, 0xd2, 0x24, 0x9b, 0xd6, 0x6a, 0x85, 0xac, 0x39,
0xa0, 0x95, 0x40, 0x4b, 0x30, 0x39, 0x43, 0x9c, 0x44, 0xd9, 0x8d, 0x14, 0x45, 0x56, 0xdb, 0x80,
0xc4, 0x89, 0x89, 0xdd, 0xc4, 0x23, 0xec, 0x19, 0x6f, 0x4f, 0x3b, 0x5e, 0x8b, 0x37, 0xe0, 0x0a,
0x2f, 0xc0, 0x63, 0x71, 0xe2, 0xc6, 0x43, 0x70, 0x42, 0x5d, 0xdd, 0x9e, 0xee, 0x5e, 0xcf, 0x6c,
0xd0, 0x1e, 0x11, 0xb7, 0xa9, 0xdf, 0xae, 0xaa, 0xaf, 0xba, 0xaa, 0x07, 0x8e, 0xde, 0xce, 0x92,
0xf1, 0x4f, 0xab, 0x69, 0x2a, 0xf9, 0xf9, 0x42, 0xe4, 0x32, 0x27, 0x91, 0x5c, 0x2f, 0x78, 0x71,
0x72, 0x5f, 0x8a, 0x24, 0x2b, 0x92, 0xb1, 0x4c, 0xf3, 0x4c, 0x4b, 0xe2, 0x9f, 0x61, 0xbf, 0x3f,
0x99, 0x08, 0x5e, 0x14, 0x8c, 0x17, 0xcb, 0x99, 0x24, 0x04, 0x9a, 0xc9, 0x64, 0x22, 0x68, 0xd0,
0x0d, 0xce, 0x76, 0x19, 0x7e, 0x93, 0x63, 0x68, 0x25, 0xf3, 0x7c, 0x99, 0x49, 0xda, 0xe8, 0x06,
0x67, 0x21, 0x33, 0x14, 0xf9, 0x18, 0x60,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d0, 0x08, 0xbe, 0xc9, 0x8a, 0xf4, 0x5d, 0x36, 0xba,
0x8e, 0x77, 0xc8, 0x63, 0x68, 0xe2, 0xbe, 0xad, 0x7e, 0xea, 0xd4, 0x58, 0xe0, 0x1b, 0xa0, 0xfa,
0x25, 0x55, 0x65, 0xf1, 0x15, 0x74, 0xdc, 0x8d, 0x7c, 0xeb, 0x0b, 0xa9, 0xc2, 0xfe, 0x6d, 0x0b,
0xff, 0x34, 0xbe, 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0xce, 0x4f, 0x3f, 0x4a, 0x97, 0x0c, 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 _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
...@@ -1622,18 +1096,17 @@ var _ grpc.ClientConn ...@@ -1622,18 +1096,17 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// BlackwhiteClient is the client API for Blackwhite service. // Client API for Blackwhite service
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BlackwhiteClient interface { type BlackwhiteClient interface {
// blackwhite 对外提供服务的接口 // blackwhite 对外提供服务的接口
//区块链接口 // 区块链接口
Create(ctx context.Context, in *BlackwhiteCreate, opts ...grpc.CallOption) (*types.UnsignTx, error) Create(ctx context.Context, in *BlackwhiteCreate, opts ...grpc.CallOption) (*types2.UnsignTx, error)
//获取最新的区块头 // 获取最新的区块头
Show(ctx context.Context, in *BlackwhiteShow, opts ...grpc.CallOption) (*types.UnsignTx, error) Show(ctx context.Context, in *BlackwhiteShow, opts ...grpc.CallOption) (*types2.UnsignTx, error)
//交易接口 // 交易接口
Play(ctx context.Context, in *BlackwhitePlay, opts ...grpc.CallOption) (*types.UnsignTx, error) Play(ctx context.Context, in *BlackwhitePlay, opts ...grpc.CallOption) (*types2.UnsignTx, error)
TimeoutDone(ctx context.Context, in *BlackwhiteTimeoutDone, opts ...grpc.CallOption) (*types.UnsignTx, error) TimeoutDone(ctx context.Context, in *BlackwhiteTimeoutDone, opts ...grpc.CallOption) (*types2.UnsignTx, error)
} }
type blackwhiteClient struct { type blackwhiteClient struct {
...@@ -1644,52 +1117,53 @@ func NewBlackwhiteClient(cc *grpc.ClientConn) BlackwhiteClient { ...@@ -1644,52 +1117,53 @@ func NewBlackwhiteClient(cc *grpc.ClientConn) BlackwhiteClient {
return &blackwhiteClient{cc} return &blackwhiteClient{cc}
} }
func (c *blackwhiteClient) Create(ctx context.Context, in *BlackwhiteCreate, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *blackwhiteClient) Create(ctx context.Context, in *BlackwhiteCreate, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.blackwhite/Create", in, out, opts...) err := grpc.Invoke(ctx, "/types.blackwhite/Create", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *blackwhiteClient) Show(ctx context.Context, in *BlackwhiteShow, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *blackwhiteClient) Show(ctx context.Context, in *BlackwhiteShow, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.blackwhite/Show", in, out, opts...) err := grpc.Invoke(ctx, "/types.blackwhite/Show", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *blackwhiteClient) Play(ctx context.Context, in *BlackwhitePlay, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *blackwhiteClient) Play(ctx context.Context, in *BlackwhitePlay, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.blackwhite/Play", in, out, opts...) err := grpc.Invoke(ctx, "/types.blackwhite/Play", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *blackwhiteClient) TimeoutDone(ctx context.Context, in *BlackwhiteTimeoutDone, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *blackwhiteClient) TimeoutDone(ctx context.Context, in *BlackwhiteTimeoutDone, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.blackwhite/TimeoutDone", in, out, opts...) err := grpc.Invoke(ctx, "/types.blackwhite/TimeoutDone", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
// BlackwhiteServer is the server API for Blackwhite service. // Server API for Blackwhite service
type BlackwhiteServer interface { type BlackwhiteServer interface {
// blackwhite 对外提供服务的接口 // blackwhite 对外提供服务的接口
//区块链接口 // 区块链接口
Create(context.Context, *BlackwhiteCreate) (*types.UnsignTx, error) Create(context.Context, *BlackwhiteCreate) (*types2.UnsignTx, error)
//获取最新的区块头 // 获取最新的区块头
Show(context.Context, *BlackwhiteShow) (*types.UnsignTx, error) Show(context.Context, *BlackwhiteShow) (*types2.UnsignTx, error)
//交易接口 // 交易接口
Play(context.Context, *BlackwhitePlay) (*types.UnsignTx, error) Play(context.Context, *BlackwhitePlay) (*types2.UnsignTx, error)
TimeoutDone(context.Context, *BlackwhiteTimeoutDone) (*types.UnsignTx, error) TimeoutDone(context.Context, *BlackwhiteTimeoutDone) (*types2.UnsignTx, error)
} }
func RegisterBlackwhiteServer(s *grpc.Server, srv BlackwhiteServer) { func RegisterBlackwhiteServer(s *grpc.Server, srv BlackwhiteServer) {
...@@ -1792,3 +1266,70 @@ var _Blackwhite_serviceDesc = grpc.ServiceDesc{ ...@@ -1792,3 +1266,70 @@ var _Blackwhite_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "blackwhite.proto", Metadata: "blackwhite.proto",
} }
func init() { proto.RegisterFile("blackwhite.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 961 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x57, 0xcd, 0x8e, 0x1b, 0x45,
0x10, 0xde, 0xf1, 0x78, 0xec, 0x6c, 0x79, 0xff, 0xd2, 0x24, 0x9b, 0xd6, 0x6a, 0x85, 0xac, 0x39,
0xa0, 0x95, 0x40, 0x4b, 0x30, 0x39, 0x43, 0x9c, 0x44, 0xd9, 0x8d, 0x14, 0x45, 0x56, 0xdb, 0x80,
0xc4, 0x89, 0x89, 0xdd, 0xc4, 0x23, 0xec, 0x19, 0x6f, 0x4f, 0x3b, 0x5e, 0x8b, 0x37, 0xe0, 0x0a,
0x2f, 0xc0, 0x63, 0x71, 0xe2, 0xc6, 0x43, 0x70, 0x42, 0x5d, 0xdd, 0x9e, 0xee, 0x5e, 0xcf, 0x6c,
0xd0, 0x1e, 0x11, 0xb7, 0xa9, 0xdf, 0xae, 0xaa, 0xaf, 0xba, 0xaa, 0x07, 0x8e, 0xde, 0xce, 0x92,
0xf1, 0x4f, 0xab, 0x69, 0x2a, 0xf9, 0xf9, 0x42, 0xe4, 0x32, 0x27, 0x91, 0x5c, 0x2f, 0x78, 0x71,
0x72, 0x5f, 0x8a, 0x24, 0x2b, 0x92, 0xb1, 0x4c, 0xf3, 0x4c, 0x4b, 0xe2, 0x9f, 0x61, 0xbf, 0x3f,
0x99, 0x08, 0x5e, 0x14, 0x8c, 0x17, 0xcb, 0x99, 0x24, 0x04, 0x9a, 0xc9, 0x64, 0x22, 0x68, 0xd0,
0x0d, 0xce, 0x76, 0x19, 0x7e, 0x93, 0x63, 0x68, 0x25, 0xf3, 0x7c, 0x99, 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xc9, 0x13, 0x68,
0x99, 0x77, 0x42, 0xdd, 0xa3, 0xe8, 0xe4, 0xd0, 0x08, 0xbe, 0xc9, 0x8a, 0xf4, 0x5d, 0x36, 0xba,
0x8e, 0x77, 0xc8, 0x63, 0x68, 0xe2, 0xbe, 0xad, 0x7e, 0xea, 0xd4, 0x58, 0xe0, 0x1b, 0xa0, 0xfa,
0x25, 0x55, 0x65, 0xf1, 0x15, 0x74, 0xdc, 0x8d, 0x7c, 0xeb, 0x0b, 0xa9, 0xc2, 0xfe, 0x6d, 0x0b,
0xff, 0x34, 0xbe, 0xfc, 0x27, 0x00, 0x00, 0xff, 0xff, 0xce, 0x4f, 0x3f, 0x4a, 0x97, 0x0c, 0x00,
0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: cert.proto // source: cert.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
cert.proto
It has these top-level messages:
Cert
CertAction
CertNew
CertUpdate
CertNormal
Authority
*/
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
proto "github.com/golang/protobuf/proto" import math "math"
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 _ = proto.Marshal var _ = proto.Marshal
...@@ -21,39 +33,16 @@ var _ = math.Inf ...@@ -21,39 +33,16 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Cert struct { type Cert struct {
CertId []byte `protobuf:"bytes,1,opt,name=certId,proto3" json:"certId,omitempty"` CertId []byte `protobuf:"bytes,1,opt,name=certId,proto3" json:"certId,omitempty"`
CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,2,opt,name=createTime" json:"createTime,omitempty"`
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Cert) Reset() { *m = Cert{} } func (m *Cert) Reset() { *m = Cert{} }
func (m *Cert) String() string { return proto.CompactTextString(m) } func (m *Cert) String() string { return proto.CompactTextString(m) }
func (*Cert) ProtoMessage() {} func (*Cert) ProtoMessage() {}
func (*Cert) Descriptor() ([]byte, []int) { func (*Cert) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
return fileDescriptor_a142e29cbef9b1cf, []int{0}
}
func (m *Cert) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Cert.Unmarshal(m, b)
}
func (m *Cert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Cert.Marshal(b, m, deterministic)
}
func (m *Cert) XXX_Merge(src proto.Message) {
xxx_messageInfo_Cert.Merge(m, src)
}
func (m *Cert) XXX_Size() int {
return xxx_messageInfo_Cert.Size(m)
}
func (m *Cert) XXX_DiscardUnknown() {
xxx_messageInfo_Cert.DiscardUnknown(m)
}
var xxx_messageInfo_Cert proto.InternalMessageInfo
func (m *Cert) GetCertId() []byte { func (m *Cert) GetCertId() []byte {
if m != nil { if m != nil {
...@@ -88,58 +77,31 @@ type CertAction struct { ...@@ -88,58 +77,31 @@ type CertAction struct {
// *CertAction_New // *CertAction_New
// *CertAction_Update // *CertAction_Update
// *CertAction_Normal // *CertAction_Normal
Value isCertAction_Value `protobuf_oneof:"value"` Value isCertAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,4,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CertAction) Reset() { *m = CertAction{} }
func (m *CertAction) String() string { return proto.CompactTextString(m) }
func (*CertAction) ProtoMessage() {}
func (*CertAction) Descriptor() ([]byte, []int) {
return fileDescriptor_a142e29cbef9b1cf, []int{1}
}
func (m *CertAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertAction.Unmarshal(m, b)
}
func (m *CertAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertAction.Marshal(b, m, deterministic)
}
func (m *CertAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertAction.Merge(m, src)
}
func (m *CertAction) XXX_Size() int {
return xxx_messageInfo_CertAction.Size(m)
}
func (m *CertAction) XXX_DiscardUnknown() {
xxx_messageInfo_CertAction.DiscardUnknown(m)
} }
var xxx_messageInfo_CertAction proto.InternalMessageInfo func (m *CertAction) Reset() { *m = CertAction{} }
func (m *CertAction) String() string { return proto.CompactTextString(m) }
func (*CertAction) ProtoMessage() {}
func (*CertAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type isCertAction_Value interface { type isCertAction_Value interface {
isCertAction_Value() isCertAction_Value()
} }
type CertAction_New struct { type CertAction_New struct {
New *CertNew `protobuf:"bytes,1,opt,name=new,proto3,oneof"` New *CertNew `protobuf:"bytes,1,opt,name=new,oneof"`
} }
type CertAction_Update struct { type CertAction_Update struct {
Update *CertUpdate `protobuf:"bytes,2,opt,name=update,proto3,oneof"` Update *CertUpdate `protobuf:"bytes,2,opt,name=update,oneof"`
} }
type CertAction_Normal struct { type CertAction_Normal struct {
Normal *CertNormal `protobuf:"bytes,3,opt,name=normal,proto3,oneof"` Normal *CertNormal `protobuf:"bytes,3,opt,name=normal,oneof"`
} }
func (*CertAction_New) isCertAction_Value() {} func (*CertAction_New) isCertAction_Value() {}
func (*CertAction_Update) isCertAction_Value() {} func (*CertAction_Update) isCertAction_Value() {}
func (*CertAction_Normal) isCertAction_Value() {} func (*CertAction_Normal) isCertAction_Value() {}
func (m *CertAction) GetValue() isCertAction_Value { func (m *CertAction) GetValue() isCertAction_Value {
...@@ -250,17 +212,17 @@ func _CertAction_OneofSizer(msg proto.Message) (n int) { ...@@ -250,17 +212,17 @@ func _CertAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *CertAction_New: case *CertAction_New:
s := proto.Size(x.New) s := proto.Size(x.New)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *CertAction_Update: case *CertAction_Update:
s := proto.Size(x.Update) s := proto.Size(x.Update)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *CertAction_Normal: case *CertAction_Normal:
s := proto.Size(x.Normal) s := proto.Size(x.Normal)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -271,37 +233,14 @@ func _CertAction_OneofSizer(msg proto.Message) (n int) { ...@@ -271,37 +233,14 @@ func _CertAction_OneofSizer(msg proto.Message) (n int) {
} }
type CertNew struct { type CertNew struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CertNew) Reset() { *m = CertNew{} }
func (m *CertNew) String() string { return proto.CompactTextString(m) }
func (*CertNew) ProtoMessage() {}
func (*CertNew) Descriptor() ([]byte, []int) {
return fileDescriptor_a142e29cbef9b1cf, []int{2}
}
func (m *CertNew) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertNew.Unmarshal(m, b)
}
func (m *CertNew) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertNew.Marshal(b, m, deterministic)
}
func (m *CertNew) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertNew.Merge(m, src)
}
func (m *CertNew) XXX_Size() int {
return xxx_messageInfo_CertNew.Size(m)
}
func (m *CertNew) XXX_DiscardUnknown() {
xxx_messageInfo_CertNew.DiscardUnknown(m)
} }
var xxx_messageInfo_CertNew proto.InternalMessageInfo func (m *CertNew) Reset() { *m = CertNew{} }
func (m *CertNew) String() string { return proto.CompactTextString(m) }
func (*CertNew) ProtoMessage() {}
func (*CertNew) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *CertNew) GetKey() string { func (m *CertNew) GetKey() string {
if m != nil { if m != nil {
...@@ -318,37 +257,14 @@ func (m *CertNew) GetValue() []byte { ...@@ -318,37 +257,14 @@ func (m *CertNew) GetValue() []byte {
} }
type CertUpdate struct { type CertUpdate struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *CertUpdate) Reset() { *m = CertUpdate{} } func (m *CertUpdate) Reset() { *m = CertUpdate{} }
func (m *CertUpdate) String() string { return proto.CompactTextString(m) } func (m *CertUpdate) String() string { return proto.CompactTextString(m) }
func (*CertUpdate) ProtoMessage() {} func (*CertUpdate) ProtoMessage() {}
func (*CertUpdate) Descriptor() ([]byte, []int) { func (*CertUpdate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
return fileDescriptor_a142e29cbef9b1cf, []int{3}
}
func (m *CertUpdate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertUpdate.Unmarshal(m, b)
}
func (m *CertUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertUpdate.Marshal(b, m, deterministic)
}
func (m *CertUpdate) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertUpdate.Merge(m, src)
}
func (m *CertUpdate) XXX_Size() int {
return xxx_messageInfo_CertUpdate.Size(m)
}
func (m *CertUpdate) XXX_DiscardUnknown() {
xxx_messageInfo_CertUpdate.DiscardUnknown(m)
}
var xxx_messageInfo_CertUpdate proto.InternalMessageInfo
func (m *CertUpdate) GetKey() string { func (m *CertUpdate) GetKey() string {
if m != nil { if m != nil {
...@@ -365,37 +281,14 @@ func (m *CertUpdate) GetValue() []byte { ...@@ -365,37 +281,14 @@ func (m *CertUpdate) GetValue() []byte {
} }
type CertNormal struct { type CertNormal struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CertNormal) Reset() { *m = CertNormal{} }
func (m *CertNormal) String() string { return proto.CompactTextString(m) }
func (*CertNormal) ProtoMessage() {}
func (*CertNormal) Descriptor() ([]byte, []int) {
return fileDescriptor_a142e29cbef9b1cf, []int{4}
}
func (m *CertNormal) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertNormal.Unmarshal(m, b)
}
func (m *CertNormal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertNormal.Marshal(b, m, deterministic)
}
func (m *CertNormal) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertNormal.Merge(m, src)
}
func (m *CertNormal) XXX_Size() int {
return xxx_messageInfo_CertNormal.Size(m)
}
func (m *CertNormal) XXX_DiscardUnknown() {
xxx_messageInfo_CertNormal.DiscardUnknown(m)
} }
var xxx_messageInfo_CertNormal proto.InternalMessageInfo func (m *CertNormal) Reset() { *m = CertNormal{} }
func (m *CertNormal) String() string { return proto.CompactTextString(m) }
func (*CertNormal) ProtoMessage() {}
func (*CertNormal) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *CertNormal) GetKey() string { func (m *CertNormal) GetKey() string {
if m != nil { if m != nil {
...@@ -412,38 +305,15 @@ func (m *CertNormal) GetValue() []byte { ...@@ -412,38 +305,15 @@ func (m *CertNormal) GetValue() []byte {
} }
type Authority struct { type Authority struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"`
CryptoPath string `protobuf:"bytes,2,opt,name=cryptoPath,proto3" json:"cryptoPath,omitempty"` CryptoPath string `protobuf:"bytes,2,opt,name=cryptoPath" json:"cryptoPath,omitempty"`
SignType string `protobuf:"bytes,3,opt,name=signType,proto3" json:"signType,omitempty"` SignType string `protobuf:"bytes,3,opt,name=signType" json:"signType,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Authority) Reset() { *m = Authority{} }
func (m *Authority) String() string { return proto.CompactTextString(m) }
func (*Authority) ProtoMessage() {}
func (*Authority) Descriptor() ([]byte, []int) {
return fileDescriptor_a142e29cbef9b1cf, []int{5}
}
func (m *Authority) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Authority.Unmarshal(m, b)
}
func (m *Authority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Authority.Marshal(b, m, deterministic)
}
func (m *Authority) XXX_Merge(src proto.Message) {
xxx_messageInfo_Authority.Merge(m, src)
}
func (m *Authority) XXX_Size() int {
return xxx_messageInfo_Authority.Size(m)
}
func (m *Authority) XXX_DiscardUnknown() {
xxx_messageInfo_Authority.DiscardUnknown(m)
} }
var xxx_messageInfo_Authority proto.InternalMessageInfo func (m *Authority) Reset() { *m = Authority{} }
func (m *Authority) String() string { return proto.CompactTextString(m) }
func (*Authority) ProtoMessage() {}
func (*Authority) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *Authority) GetEnable() bool { func (m *Authority) GetEnable() bool {
if m != nil { if m != nil {
...@@ -475,9 +345,9 @@ func init() { ...@@ -475,9 +345,9 @@ func init() {
proto.RegisterType((*Authority)(nil), "types.Authority") proto.RegisterType((*Authority)(nil), "types.Authority")
} }
func init() { proto.RegisterFile("cert.proto", fileDescriptor_a142e29cbef9b1cf) } func init() { proto.RegisterFile("cert.proto", fileDescriptor0) }
var fileDescriptor_a142e29cbef9b1cf = []byte{ var fileDescriptor0 = []byte{
// 300 bytes of a gzipped FileDescriptorProto // 300 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x4a, 0xf3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xcd, 0x4a, 0xf3, 0x40,
0x14, 0xed, 0x24, 0xfd, 0xbd, 0xfd, 0x28, 0x9f, 0x83, 0x48, 0x70, 0x21, 0x25, 0xab, 0x82, 0x10, 0x14, 0xed, 0x24, 0xfd, 0xbd, 0xfd, 0x28, 0x9f, 0x83, 0x48, 0x70, 0x21, 0x25, 0xab, 0x82, 0x10,
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: evmcontract.proto // source: evmcontract.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
evmcontract.proto
It has these top-level messages:
EVMContractObject
EVMContractData
EVMContractState
EVMContractAction
ReceiptEVMContract
EVMStateChangeItem
EVMContractDataCmd
EVMContractStateCmd
ReceiptEVMContractCmd
CheckEVMAddrReq
CheckEVMAddrResp
EstimateEVMGasReq
EstimateEVMGasResp
EvmDebugReq
EvmDebugResp
*/
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
proto "github.com/golang/protobuf/proto" import math "math"
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 _ = proto.Marshal var _ = proto.Marshal
...@@ -20,40 +41,17 @@ var _ = math.Inf ...@@ -20,40 +41,17 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
//合约对象信息 // 合约对象信息
type EVMContractObject struct { type EVMContractObject struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
Data *EVMContractData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Data *EVMContractData `protobuf:"bytes,2,opt,name=data" json:"data,omitempty"`
State *EVMContractState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` State *EVMContractState `protobuf:"bytes,3,opt,name=state" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *EVMContractObject) Reset() { *m = EVMContractObject{} } func (m *EVMContractObject) Reset() { *m = EVMContractObject{} }
func (m *EVMContractObject) String() string { return proto.CompactTextString(m) } func (m *EVMContractObject) String() string { return proto.CompactTextString(m) }
func (*EVMContractObject) ProtoMessage() {} func (*EVMContractObject) ProtoMessage() {}
func (*EVMContractObject) Descriptor() ([]byte, []int) { func (*EVMContractObject) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
return fileDescriptor_74353de561acd7c6, []int{0}
}
func (m *EVMContractObject) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EVMContractObject.Unmarshal(m, b)
}
func (m *EVMContractObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EVMContractObject.Marshal(b, m, deterministic)
}
func (m *EVMContractObject) XXX_Merge(src proto.Message) {
xxx_messageInfo_EVMContractObject.Merge(m, src)
}
func (m *EVMContractObject) XXX_Size() int {
return xxx_messageInfo_EVMContractObject.Size(m)
}
func (m *EVMContractObject) XXX_DiscardUnknown() {
xxx_messageInfo_EVMContractObject.DiscardUnknown(m)
}
var xxx_messageInfo_EVMContractObject proto.InternalMessageInfo
func (m *EVMContractObject) GetAddr() string { func (m *EVMContractObject) GetAddr() string {
if m != nil { if m != nil {
...@@ -78,41 +76,18 @@ func (m *EVMContractObject) GetState() *EVMContractState { ...@@ -78,41 +76,18 @@ func (m *EVMContractObject) GetState() *EVMContractState {
// 存放合约固定数据 // 存放合约固定数据
type EVMContractData struct { type EVMContractData struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Creator string `protobuf:"bytes,1,opt,name=creator" json:"creator,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` Alias string `protobuf:"bytes,3,opt,name=alias" json:"alias,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,omitempty"`
Code []byte `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` Code []byte `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
CodeHash []byte `protobuf:"bytes,6,opt,name=codeHash,proto3" json:"codeHash,omitempty"` CodeHash []byte `protobuf:"bytes,6,opt,name=codeHash,proto3" json:"codeHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EVMContractData) Reset() { *m = EVMContractData{} }
func (m *EVMContractData) String() string { return proto.CompactTextString(m) }
func (*EVMContractData) ProtoMessage() {}
func (*EVMContractData) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{1}
}
func (m *EVMContractData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EVMContractData.Unmarshal(m, b)
}
func (m *EVMContractData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EVMContractData.Marshal(b, m, deterministic)
}
func (m *EVMContractData) XXX_Merge(src proto.Message) {
xxx_messageInfo_EVMContractData.Merge(m, src)
}
func (m *EVMContractData) XXX_Size() int {
return xxx_messageInfo_EVMContractData.Size(m)
}
func (m *EVMContractData) XXX_DiscardUnknown() {
xxx_messageInfo_EVMContractData.DiscardUnknown(m)
} }
var xxx_messageInfo_EVMContractData proto.InternalMessageInfo func (m *EVMContractData) Reset() { *m = EVMContractData{} }
func (m *EVMContractData) String() string { return proto.CompactTextString(m) }
func (*EVMContractData) ProtoMessage() {}
func (*EVMContractData) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *EVMContractData) GetCreator() string { func (m *EVMContractData) GetCreator() string {
if m != nil { if m != nil {
...@@ -158,39 +133,16 @@ func (m *EVMContractData) GetCodeHash() []byte { ...@@ -158,39 +133,16 @@ func (m *EVMContractData) GetCodeHash() []byte {
// 存放合约变化数据 // 存放合约变化数据
type EVMContractState struct { type EVMContractState struct {
Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` Nonce uint64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"`
Suicided bool `protobuf:"varint,2,opt,name=suicided,proto3" json:"suicided,omitempty"` Suicided bool `protobuf:"varint,2,opt,name=suicided" json:"suicided,omitempty"`
StorageHash []byte `protobuf:"bytes,3,opt,name=storageHash,proto3" json:"storageHash,omitempty"` StorageHash []byte `protobuf:"bytes,3,opt,name=storageHash,proto3" json:"storageHash,omitempty"`
Storage map[string][]byte `protobuf:"bytes,4,rep,name=storage,proto3" json:"storage,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Storage map[string][]byte `protobuf:"bytes,4,rep,name=storage" json:"storage,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EVMContractState) Reset() { *m = EVMContractState{} }
func (m *EVMContractState) String() string { return proto.CompactTextString(m) }
func (*EVMContractState) ProtoMessage() {}
func (*EVMContractState) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{2}
} }
func (m *EVMContractState) XXX_Unmarshal(b []byte) error { func (m *EVMContractState) Reset() { *m = EVMContractState{} }
return xxx_messageInfo_EVMContractState.Unmarshal(m, b) func (m *EVMContractState) String() string { return proto.CompactTextString(m) }
} func (*EVMContractState) ProtoMessage() {}
func (m *EVMContractState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*EVMContractState) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return xxx_messageInfo_EVMContractState.Marshal(b, m, deterministic)
}
func (m *EVMContractState) XXX_Merge(src proto.Message) {
xxx_messageInfo_EVMContractState.Merge(m, src)
}
func (m *EVMContractState) XXX_Size() int {
return xxx_messageInfo_EVMContractState.Size(m)
}
func (m *EVMContractState) XXX_DiscardUnknown() {
xxx_messageInfo_EVMContractState.DiscardUnknown(m)
}
var xxx_messageInfo_EVMContractState proto.InternalMessageInfo
func (m *EVMContractState) GetNonce() uint64 { func (m *EVMContractState) GetNonce() uint64 {
if m != nil { if m != nil {
...@@ -223,46 +175,23 @@ func (m *EVMContractState) GetStorage() map[string][]byte { ...@@ -223,46 +175,23 @@ func (m *EVMContractState) GetStorage() map[string][]byte {
// 创建/调用合约的请求结构 // 创建/调用合约的请求结构
type EVMContractAction struct { type EVMContractAction struct {
// 转账金额 // 转账金额
Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` Amount uint64 `protobuf:"varint,1,opt,name=amount" json:"amount,omitempty"`
// 消耗限制,默认为Transaction.Fee // 消耗限制,默认为Transaction.Fee
GasLimit uint64 `protobuf:"varint,2,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"` GasLimit uint64 `protobuf:"varint,2,opt,name=gasLimit" json:"gasLimit,omitempty"`
// gas价格,默认为1 // gas价格,默认为1
GasPrice uint32 `protobuf:"varint,3,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"` GasPrice uint32 `protobuf:"varint,3,opt,name=gasPrice" json:"gasPrice,omitempty"`
// 合约数据 // 合约数据
Code []byte `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` Code []byte `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
// 合约别名,方便识别 // 合约别名,方便识别
Alias string `protobuf:"bytes,5,opt,name=alias,proto3" json:"alias,omitempty"` Alias string `protobuf:"bytes,5,opt,name=alias" json:"alias,omitempty"`
// 交易备注 // 交易备注
Note string `protobuf:"bytes,6,opt,name=note,proto3" json:"note,omitempty"` Note string `protobuf:"bytes,6,opt,name=note" json:"note,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EVMContractAction) Reset() { *m = EVMContractAction{} }
func (m *EVMContractAction) String() string { return proto.CompactTextString(m) }
func (*EVMContractAction) ProtoMessage() {}
func (*EVMContractAction) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{3}
}
func (m *EVMContractAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EVMContractAction.Unmarshal(m, b)
}
func (m *EVMContractAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EVMContractAction.Marshal(b, m, deterministic)
}
func (m *EVMContractAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_EVMContractAction.Merge(m, src)
}
func (m *EVMContractAction) XXX_Size() int {
return xxx_messageInfo_EVMContractAction.Size(m)
}
func (m *EVMContractAction) XXX_DiscardUnknown() {
xxx_messageInfo_EVMContractAction.DiscardUnknown(m)
} }
var xxx_messageInfo_EVMContractAction proto.InternalMessageInfo func (m *EVMContractAction) Reset() { *m = EVMContractAction{} }
func (m *EVMContractAction) String() string { return proto.CompactTextString(m) }
func (*EVMContractAction) ProtoMessage() {}
func (*EVMContractAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *EVMContractAction) GetAmount() uint64 { func (m *EVMContractAction) GetAmount() uint64 {
if m != nil { if m != nil {
...@@ -308,41 +237,18 @@ func (m *EVMContractAction) GetNote() string { ...@@ -308,41 +237,18 @@ func (m *EVMContractAction) GetNote() string {
// 合约创建/调用日志 // 合约创建/调用日志
type ReceiptEVMContract struct { type ReceiptEVMContract struct {
Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"` Caller string `protobuf:"bytes,1,opt,name=caller" json:"caller,omitempty"`
ContractName string `protobuf:"bytes,2,opt,name=contractName,proto3" json:"contractName,omitempty"` ContractName string `protobuf:"bytes,2,opt,name=contractName" json:"contractName,omitempty"`
ContractAddr string `protobuf:"bytes,3,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"` ContractAddr string `protobuf:"bytes,3,opt,name=contractAddr" json:"contractAddr,omitempty"`
UsedGas uint64 `protobuf:"varint,4,opt,name=usedGas,proto3" json:"usedGas,omitempty"` UsedGas uint64 `protobuf:"varint,4,opt,name=usedGas" json:"usedGas,omitempty"`
// 创建合约返回的代码 // 创建合约返回的代码
Ret []byte `protobuf:"bytes,5,opt,name=ret,proto3" json:"ret,omitempty"` Ret []byte `protobuf:"bytes,5,opt,name=ret,proto3" json:"ret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptEVMContract) Reset() { *m = ReceiptEVMContract{} } func (m *ReceiptEVMContract) Reset() { *m = ReceiptEVMContract{} }
func (m *ReceiptEVMContract) String() string { return proto.CompactTextString(m) } func (m *ReceiptEVMContract) String() string { return proto.CompactTextString(m) }
func (*ReceiptEVMContract) ProtoMessage() {} func (*ReceiptEVMContract) ProtoMessage() {}
func (*ReceiptEVMContract) Descriptor() ([]byte, []int) { func (*ReceiptEVMContract) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
return fileDescriptor_74353de561acd7c6, []int{4}
}
func (m *ReceiptEVMContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptEVMContract.Unmarshal(m, b)
}
func (m *ReceiptEVMContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptEVMContract.Marshal(b, m, deterministic)
}
func (m *ReceiptEVMContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptEVMContract.Merge(m, src)
}
func (m *ReceiptEVMContract) XXX_Size() int {
return xxx_messageInfo_ReceiptEVMContract.Size(m)
}
func (m *ReceiptEVMContract) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptEVMContract.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptEVMContract proto.InternalMessageInfo
func (m *ReceiptEVMContract) GetCaller() string { func (m *ReceiptEVMContract) GetCaller() string {
if m != nil { if m != nil {
...@@ -381,38 +287,15 @@ func (m *ReceiptEVMContract) GetRet() []byte { ...@@ -381,38 +287,15 @@ func (m *ReceiptEVMContract) GetRet() []byte {
// 用于保存EVM只能合约中的状态数据变更 // 用于保存EVM只能合约中的状态数据变更
type EVMStateChangeItem struct { type EVMStateChangeItem struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
PreValue []byte `protobuf:"bytes,2,opt,name=preValue,proto3" json:"preValue,omitempty"` PreValue []byte `protobuf:"bytes,2,opt,name=preValue,proto3" json:"preValue,omitempty"`
CurrentValue []byte `protobuf:"bytes,3,opt,name=currentValue,proto3" json:"currentValue,omitempty"` CurrentValue []byte `protobuf:"bytes,3,opt,name=currentValue,proto3" json:"currentValue,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EVMStateChangeItem) Reset() { *m = EVMStateChangeItem{} }
func (m *EVMStateChangeItem) String() string { return proto.CompactTextString(m) }
func (*EVMStateChangeItem) ProtoMessage() {}
func (*EVMStateChangeItem) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{5}
}
func (m *EVMStateChangeItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EVMStateChangeItem.Unmarshal(m, b)
}
func (m *EVMStateChangeItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EVMStateChangeItem.Marshal(b, m, deterministic)
}
func (m *EVMStateChangeItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_EVMStateChangeItem.Merge(m, src)
}
func (m *EVMStateChangeItem) XXX_Size() int {
return xxx_messageInfo_EVMStateChangeItem.Size(m)
}
func (m *EVMStateChangeItem) XXX_DiscardUnknown() {
xxx_messageInfo_EVMStateChangeItem.DiscardUnknown(m)
} }
var xxx_messageInfo_EVMStateChangeItem proto.InternalMessageInfo func (m *EVMStateChangeItem) Reset() { *m = EVMStateChangeItem{} }
func (m *EVMStateChangeItem) String() string { return proto.CompactTextString(m) }
func (*EVMStateChangeItem) ProtoMessage() {}
func (*EVMStateChangeItem) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *EVMStateChangeItem) GetKey() string { func (m *EVMStateChangeItem) GetKey() string {
if m != nil { if m != nil {
...@@ -437,41 +320,18 @@ func (m *EVMStateChangeItem) GetCurrentValue() []byte { ...@@ -437,41 +320,18 @@ func (m *EVMStateChangeItem) GetCurrentValue() []byte {
// 存放合约固定数据 // 存放合约固定数据
type EVMContractDataCmd struct { type EVMContractDataCmd struct {
Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Creator string `protobuf:"bytes,1,opt,name=creator" json:"creator,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
Alias string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"` Alias string `protobuf:"bytes,3,opt,name=alias" json:"alias,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,omitempty"`
Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` Code string `protobuf:"bytes,5,opt,name=code" json:"code,omitempty"`
CodeHash string `protobuf:"bytes,6,opt,name=codeHash,proto3" json:"codeHash,omitempty"` CodeHash string `protobuf:"bytes,6,opt,name=codeHash" json:"codeHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *EVMContractDataCmd) Reset() { *m = EVMContractDataCmd{} } func (m *EVMContractDataCmd) Reset() { *m = EVMContractDataCmd{} }
func (m *EVMContractDataCmd) String() string { return proto.CompactTextString(m) } func (m *EVMContractDataCmd) String() string { return proto.CompactTextString(m) }
func (*EVMContractDataCmd) ProtoMessage() {} func (*EVMContractDataCmd) ProtoMessage() {}
func (*EVMContractDataCmd) Descriptor() ([]byte, []int) { func (*EVMContractDataCmd) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
return fileDescriptor_74353de561acd7c6, []int{6}
}
func (m *EVMContractDataCmd) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EVMContractDataCmd.Unmarshal(m, b)
}
func (m *EVMContractDataCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EVMContractDataCmd.Marshal(b, m, deterministic)
}
func (m *EVMContractDataCmd) XXX_Merge(src proto.Message) {
xxx_messageInfo_EVMContractDataCmd.Merge(m, src)
}
func (m *EVMContractDataCmd) XXX_Size() int {
return xxx_messageInfo_EVMContractDataCmd.Size(m)
}
func (m *EVMContractDataCmd) XXX_DiscardUnknown() {
xxx_messageInfo_EVMContractDataCmd.DiscardUnknown(m)
}
var xxx_messageInfo_EVMContractDataCmd proto.InternalMessageInfo
func (m *EVMContractDataCmd) GetCreator() string { func (m *EVMContractDataCmd) GetCreator() string {
if m != nil { if m != nil {
...@@ -517,39 +377,16 @@ func (m *EVMContractDataCmd) GetCodeHash() string { ...@@ -517,39 +377,16 @@ func (m *EVMContractDataCmd) GetCodeHash() string {
// 存放合约变化数据 // 存放合约变化数据
type EVMContractStateCmd struct { type EVMContractStateCmd struct {
Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` Nonce uint64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"`
Suicided bool `protobuf:"varint,2,opt,name=suicided,proto3" json:"suicided,omitempty"` Suicided bool `protobuf:"varint,2,opt,name=suicided" json:"suicided,omitempty"`
StorageHash string `protobuf:"bytes,3,opt,name=storageHash,proto3" json:"storageHash,omitempty"` StorageHash string `protobuf:"bytes,3,opt,name=storageHash" json:"storageHash,omitempty"`
Storage map[string]string `protobuf:"bytes,4,rep,name=storage,proto3" json:"storage,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Storage map[string]string `protobuf:"bytes,4,rep,name=storage" json:"storage,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EVMContractStateCmd) Reset() { *m = EVMContractStateCmd{} }
func (m *EVMContractStateCmd) String() string { return proto.CompactTextString(m) }
func (*EVMContractStateCmd) ProtoMessage() {}
func (*EVMContractStateCmd) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{7}
}
func (m *EVMContractStateCmd) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EVMContractStateCmd.Unmarshal(m, b)
}
func (m *EVMContractStateCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EVMContractStateCmd.Marshal(b, m, deterministic)
}
func (m *EVMContractStateCmd) XXX_Merge(src proto.Message) {
xxx_messageInfo_EVMContractStateCmd.Merge(m, src)
}
func (m *EVMContractStateCmd) XXX_Size() int {
return xxx_messageInfo_EVMContractStateCmd.Size(m)
}
func (m *EVMContractStateCmd) XXX_DiscardUnknown() {
xxx_messageInfo_EVMContractStateCmd.DiscardUnknown(m)
} }
var xxx_messageInfo_EVMContractStateCmd proto.InternalMessageInfo func (m *EVMContractStateCmd) Reset() { *m = EVMContractStateCmd{} }
func (m *EVMContractStateCmd) String() string { return proto.CompactTextString(m) }
func (*EVMContractStateCmd) ProtoMessage() {}
func (*EVMContractStateCmd) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *EVMContractStateCmd) GetNonce() uint64 { func (m *EVMContractStateCmd) GetNonce() uint64 {
if m != nil { if m != nil {
...@@ -581,42 +418,19 @@ func (m *EVMContractStateCmd) GetStorage() map[string]string { ...@@ -581,42 +418,19 @@ func (m *EVMContractStateCmd) GetStorage() map[string]string {
// 合约创建/调用日志 // 合约创建/调用日志
type ReceiptEVMContractCmd struct { type ReceiptEVMContractCmd struct {
Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty"` Caller string `protobuf:"bytes,1,opt,name=caller" json:"caller,omitempty"`
// 合约创建时才会返回此内容 // 合约创建时才会返回此内容
ContractName string `protobuf:"bytes,2,opt,name=contractName,proto3" json:"contractName,omitempty"` ContractName string `protobuf:"bytes,2,opt,name=contractName" json:"contractName,omitempty"`
ContractAddr string `protobuf:"bytes,3,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"` ContractAddr string `protobuf:"bytes,3,opt,name=contractAddr" json:"contractAddr,omitempty"`
UsedGas uint64 `protobuf:"varint,4,opt,name=usedGas,proto3" json:"usedGas,omitempty"` UsedGas uint64 `protobuf:"varint,4,opt,name=usedGas" json:"usedGas,omitempty"`
// 创建合约返回的代码 // 创建合约返回的代码
Ret string `protobuf:"bytes,5,opt,name=ret,proto3" json:"ret,omitempty"` Ret string `protobuf:"bytes,5,opt,name=ret" json:"ret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptEVMContractCmd) Reset() { *m = ReceiptEVMContractCmd{} } func (m *ReceiptEVMContractCmd) Reset() { *m = ReceiptEVMContractCmd{} }
func (m *ReceiptEVMContractCmd) String() string { return proto.CompactTextString(m) } func (m *ReceiptEVMContractCmd) String() string { return proto.CompactTextString(m) }
func (*ReceiptEVMContractCmd) ProtoMessage() {} func (*ReceiptEVMContractCmd) ProtoMessage() {}
func (*ReceiptEVMContractCmd) Descriptor() ([]byte, []int) { func (*ReceiptEVMContractCmd) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
return fileDescriptor_74353de561acd7c6, []int{8}
}
func (m *ReceiptEVMContractCmd) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptEVMContractCmd.Unmarshal(m, b)
}
func (m *ReceiptEVMContractCmd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptEVMContractCmd.Marshal(b, m, deterministic)
}
func (m *ReceiptEVMContractCmd) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptEVMContractCmd.Merge(m, src)
}
func (m *ReceiptEVMContractCmd) XXX_Size() int {
return xxx_messageInfo_ReceiptEVMContractCmd.Size(m)
}
func (m *ReceiptEVMContractCmd) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptEVMContractCmd.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptEVMContractCmd proto.InternalMessageInfo
func (m *ReceiptEVMContractCmd) GetCaller() string { func (m *ReceiptEVMContractCmd) GetCaller() string {
if m != nil { if m != nil {
...@@ -654,36 +468,13 @@ func (m *ReceiptEVMContractCmd) GetRet() string { ...@@ -654,36 +468,13 @@ func (m *ReceiptEVMContractCmd) GetRet() string {
} }
type CheckEVMAddrReq struct { type CheckEVMAddrReq struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CheckEVMAddrReq) Reset() { *m = CheckEVMAddrReq{} }
func (m *CheckEVMAddrReq) String() string { return proto.CompactTextString(m) }
func (*CheckEVMAddrReq) ProtoMessage() {}
func (*CheckEVMAddrReq) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{9}
}
func (m *CheckEVMAddrReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckEVMAddrReq.Unmarshal(m, b)
}
func (m *CheckEVMAddrReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckEVMAddrReq.Marshal(b, m, deterministic)
}
func (m *CheckEVMAddrReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckEVMAddrReq.Merge(m, src)
}
func (m *CheckEVMAddrReq) XXX_Size() int {
return xxx_messageInfo_CheckEVMAddrReq.Size(m)
}
func (m *CheckEVMAddrReq) XXX_DiscardUnknown() {
xxx_messageInfo_CheckEVMAddrReq.DiscardUnknown(m)
} }
var xxx_messageInfo_CheckEVMAddrReq proto.InternalMessageInfo func (m *CheckEVMAddrReq) Reset() { *m = CheckEVMAddrReq{} }
func (m *CheckEVMAddrReq) String() string { return proto.CompactTextString(m) }
func (*CheckEVMAddrReq) ProtoMessage() {}
func (*CheckEVMAddrReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *CheckEVMAddrReq) GetAddr() string { func (m *CheckEVMAddrReq) GetAddr() string {
if m != nil { if m != nil {
...@@ -693,39 +484,16 @@ func (m *CheckEVMAddrReq) GetAddr() string { ...@@ -693,39 +484,16 @@ func (m *CheckEVMAddrReq) GetAddr() string {
} }
type CheckEVMAddrResp struct { type CheckEVMAddrResp struct {
Contract bool `protobuf:"varint,1,opt,name=contract,proto3" json:"contract,omitempty"` Contract bool `protobuf:"varint,1,opt,name=contract" json:"contract,omitempty"`
ContractAddr string `protobuf:"bytes,2,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"` ContractAddr string `protobuf:"bytes,2,opt,name=contractAddr" json:"contractAddr,omitempty"`
ContractName string `protobuf:"bytes,3,opt,name=contractName,proto3" json:"contractName,omitempty"` ContractName string `protobuf:"bytes,3,opt,name=contractName" json:"contractName,omitempty"`
AliasName string `protobuf:"bytes,4,opt,name=aliasName,proto3" json:"aliasName,omitempty"` AliasName string `protobuf:"bytes,4,opt,name=aliasName" json:"aliasName,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *CheckEVMAddrResp) Reset() { *m = CheckEVMAddrResp{} } func (m *CheckEVMAddrResp) Reset() { *m = CheckEVMAddrResp{} }
func (m *CheckEVMAddrResp) String() string { return proto.CompactTextString(m) } func (m *CheckEVMAddrResp) String() string { return proto.CompactTextString(m) }
func (*CheckEVMAddrResp) ProtoMessage() {} func (*CheckEVMAddrResp) ProtoMessage() {}
func (*CheckEVMAddrResp) Descriptor() ([]byte, []int) { func (*CheckEVMAddrResp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
return fileDescriptor_74353de561acd7c6, []int{10}
}
func (m *CheckEVMAddrResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CheckEVMAddrResp.Unmarshal(m, b)
}
func (m *CheckEVMAddrResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CheckEVMAddrResp.Marshal(b, m, deterministic)
}
func (m *CheckEVMAddrResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_CheckEVMAddrResp.Merge(m, src)
}
func (m *CheckEVMAddrResp) XXX_Size() int {
return xxx_messageInfo_CheckEVMAddrResp.Size(m)
}
func (m *CheckEVMAddrResp) XXX_DiscardUnknown() {
xxx_messageInfo_CheckEVMAddrResp.DiscardUnknown(m)
}
var xxx_messageInfo_CheckEVMAddrResp proto.InternalMessageInfo
func (m *CheckEVMAddrResp) GetContract() bool { func (m *CheckEVMAddrResp) GetContract() bool {
if m != nil { if m != nil {
...@@ -756,39 +524,16 @@ func (m *CheckEVMAddrResp) GetAliasName() string { ...@@ -756,39 +524,16 @@ func (m *CheckEVMAddrResp) GetAliasName() string {
} }
type EstimateEVMGasReq struct { type EstimateEVMGasReq struct {
To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` To string `protobuf:"bytes,1,opt,name=to" json:"to,omitempty"`
Code []byte `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Code []byte `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
Caller string `protobuf:"bytes,3,opt,name=caller,proto3" json:"caller,omitempty"` Caller string `protobuf:"bytes,3,opt,name=caller" json:"caller,omitempty"`
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` Amount uint64 `protobuf:"varint,4,opt,name=amount" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EstimateEVMGasReq) Reset() { *m = EstimateEVMGasReq{} }
func (m *EstimateEVMGasReq) String() string { return proto.CompactTextString(m) }
func (*EstimateEVMGasReq) ProtoMessage() {}
func (*EstimateEVMGasReq) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{11}
} }
func (m *EstimateEVMGasReq) XXX_Unmarshal(b []byte) error { func (m *EstimateEVMGasReq) Reset() { *m = EstimateEVMGasReq{} }
return xxx_messageInfo_EstimateEVMGasReq.Unmarshal(m, b) func (m *EstimateEVMGasReq) String() string { return proto.CompactTextString(m) }
} func (*EstimateEVMGasReq) ProtoMessage() {}
func (m *EstimateEVMGasReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*EstimateEVMGasReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
return xxx_messageInfo_EstimateEVMGasReq.Marshal(b, m, deterministic)
}
func (m *EstimateEVMGasReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_EstimateEVMGasReq.Merge(m, src)
}
func (m *EstimateEVMGasReq) XXX_Size() int {
return xxx_messageInfo_EstimateEVMGasReq.Size(m)
}
func (m *EstimateEVMGasReq) XXX_DiscardUnknown() {
xxx_messageInfo_EstimateEVMGasReq.DiscardUnknown(m)
}
var xxx_messageInfo_EstimateEVMGasReq proto.InternalMessageInfo
func (m *EstimateEVMGasReq) GetTo() string { func (m *EstimateEVMGasReq) GetTo() string {
if m != nil { if m != nil {
...@@ -819,36 +564,13 @@ func (m *EstimateEVMGasReq) GetAmount() uint64 { ...@@ -819,36 +564,13 @@ func (m *EstimateEVMGasReq) GetAmount() uint64 {
} }
type EstimateEVMGasResp struct { type EstimateEVMGasResp struct {
Gas uint64 `protobuf:"varint,1,opt,name=gas,proto3" json:"gas,omitempty"` Gas uint64 `protobuf:"varint,1,opt,name=gas" json:"gas,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *EstimateEVMGasResp) Reset() { *m = EstimateEVMGasResp{} } func (m *EstimateEVMGasResp) Reset() { *m = EstimateEVMGasResp{} }
func (m *EstimateEVMGasResp) String() string { return proto.CompactTextString(m) } func (m *EstimateEVMGasResp) String() string { return proto.CompactTextString(m) }
func (*EstimateEVMGasResp) ProtoMessage() {} func (*EstimateEVMGasResp) ProtoMessage() {}
func (*EstimateEVMGasResp) Descriptor() ([]byte, []int) { func (*EstimateEVMGasResp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
return fileDescriptor_74353de561acd7c6, []int{12}
}
func (m *EstimateEVMGasResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EstimateEVMGasResp.Unmarshal(m, b)
}
func (m *EstimateEVMGasResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EstimateEVMGasResp.Marshal(b, m, deterministic)
}
func (m *EstimateEVMGasResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_EstimateEVMGasResp.Merge(m, src)
}
func (m *EstimateEVMGasResp) XXX_Size() int {
return xxx_messageInfo_EstimateEVMGasResp.Size(m)
}
func (m *EstimateEVMGasResp) XXX_DiscardUnknown() {
xxx_messageInfo_EstimateEVMGasResp.DiscardUnknown(m)
}
var xxx_messageInfo_EstimateEVMGasResp proto.InternalMessageInfo
func (m *EstimateEVMGasResp) GetGas() uint64 { func (m *EstimateEVMGasResp) GetGas() uint64 {
if m != nil { if m != nil {
...@@ -859,36 +581,13 @@ func (m *EstimateEVMGasResp) GetGas() uint64 { ...@@ -859,36 +581,13 @@ func (m *EstimateEVMGasResp) GetGas() uint64 {
type EvmDebugReq struct { type EvmDebugReq struct {
// 0 query, 1 set, -1 clear // 0 query, 1 set, -1 clear
Optype int32 `protobuf:"varint,1,opt,name=optype,proto3" json:"optype,omitempty"` Optype int32 `protobuf:"varint,1,opt,name=optype" json:"optype,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EvmDebugReq) Reset() { *m = EvmDebugReq{} }
func (m *EvmDebugReq) String() string { return proto.CompactTextString(m) }
func (*EvmDebugReq) ProtoMessage() {}
func (*EvmDebugReq) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{13}
}
func (m *EvmDebugReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EvmDebugReq.Unmarshal(m, b)
}
func (m *EvmDebugReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EvmDebugReq.Marshal(b, m, deterministic)
}
func (m *EvmDebugReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_EvmDebugReq.Merge(m, src)
}
func (m *EvmDebugReq) XXX_Size() int {
return xxx_messageInfo_EvmDebugReq.Size(m)
}
func (m *EvmDebugReq) XXX_DiscardUnknown() {
xxx_messageInfo_EvmDebugReq.DiscardUnknown(m)
} }
var xxx_messageInfo_EvmDebugReq proto.InternalMessageInfo func (m *EvmDebugReq) Reset() { *m = EvmDebugReq{} }
func (m *EvmDebugReq) String() string { return proto.CompactTextString(m) }
func (*EvmDebugReq) ProtoMessage() {}
func (*EvmDebugReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *EvmDebugReq) GetOptype() int32 { func (m *EvmDebugReq) GetOptype() int32 {
if m != nil { if m != nil {
...@@ -898,36 +597,13 @@ func (m *EvmDebugReq) GetOptype() int32 { ...@@ -898,36 +597,13 @@ func (m *EvmDebugReq) GetOptype() int32 {
} }
type EvmDebugResp struct { type EvmDebugResp struct {
DebugStatus string `protobuf:"bytes,1,opt,name=debugStatus,proto3" json:"debugStatus,omitempty"` DebugStatus string `protobuf:"bytes,1,opt,name=debugStatus" json:"debugStatus,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EvmDebugResp) Reset() { *m = EvmDebugResp{} }
func (m *EvmDebugResp) String() string { return proto.CompactTextString(m) }
func (*EvmDebugResp) ProtoMessage() {}
func (*EvmDebugResp) Descriptor() ([]byte, []int) {
return fileDescriptor_74353de561acd7c6, []int{14}
}
func (m *EvmDebugResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EvmDebugResp.Unmarshal(m, b)
}
func (m *EvmDebugResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EvmDebugResp.Marshal(b, m, deterministic)
}
func (m *EvmDebugResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_EvmDebugResp.Merge(m, src)
}
func (m *EvmDebugResp) XXX_Size() int {
return xxx_messageInfo_EvmDebugResp.Size(m)
}
func (m *EvmDebugResp) XXX_DiscardUnknown() {
xxx_messageInfo_EvmDebugResp.DiscardUnknown(m)
} }
var xxx_messageInfo_EvmDebugResp proto.InternalMessageInfo func (m *EvmDebugResp) Reset() { *m = EvmDebugResp{} }
func (m *EvmDebugResp) String() string { return proto.CompactTextString(m) }
func (*EvmDebugResp) ProtoMessage() {}
func (*EvmDebugResp) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
func (m *EvmDebugResp) GetDebugStatus() string { func (m *EvmDebugResp) GetDebugStatus() string {
if m != nil { if m != nil {
...@@ -940,13 +616,11 @@ func init() { ...@@ -940,13 +616,11 @@ func init() {
proto.RegisterType((*EVMContractObject)(nil), "types.EVMContractObject") proto.RegisterType((*EVMContractObject)(nil), "types.EVMContractObject")
proto.RegisterType((*EVMContractData)(nil), "types.EVMContractData") proto.RegisterType((*EVMContractData)(nil), "types.EVMContractData")
proto.RegisterType((*EVMContractState)(nil), "types.EVMContractState") proto.RegisterType((*EVMContractState)(nil), "types.EVMContractState")
proto.RegisterMapType((map[string][]byte)(nil), "types.EVMContractState.StorageEntry")
proto.RegisterType((*EVMContractAction)(nil), "types.EVMContractAction") proto.RegisterType((*EVMContractAction)(nil), "types.EVMContractAction")
proto.RegisterType((*ReceiptEVMContract)(nil), "types.ReceiptEVMContract") proto.RegisterType((*ReceiptEVMContract)(nil), "types.ReceiptEVMContract")
proto.RegisterType((*EVMStateChangeItem)(nil), "types.EVMStateChangeItem") proto.RegisterType((*EVMStateChangeItem)(nil), "types.EVMStateChangeItem")
proto.RegisterType((*EVMContractDataCmd)(nil), "types.EVMContractDataCmd") proto.RegisterType((*EVMContractDataCmd)(nil), "types.EVMContractDataCmd")
proto.RegisterType((*EVMContractStateCmd)(nil), "types.EVMContractStateCmd") proto.RegisterType((*EVMContractStateCmd)(nil), "types.EVMContractStateCmd")
proto.RegisterMapType((map[string]string)(nil), "types.EVMContractStateCmd.StorageEntry")
proto.RegisterType((*ReceiptEVMContractCmd)(nil), "types.ReceiptEVMContractCmd") proto.RegisterType((*ReceiptEVMContractCmd)(nil), "types.ReceiptEVMContractCmd")
proto.RegisterType((*CheckEVMAddrReq)(nil), "types.CheckEVMAddrReq") proto.RegisterType((*CheckEVMAddrReq)(nil), "types.CheckEVMAddrReq")
proto.RegisterType((*CheckEVMAddrResp)(nil), "types.CheckEVMAddrResp") proto.RegisterType((*CheckEVMAddrResp)(nil), "types.CheckEVMAddrResp")
...@@ -956,9 +630,9 @@ func init() { ...@@ -956,9 +630,9 @@ func init() {
proto.RegisterType((*EvmDebugResp)(nil), "types.EvmDebugResp") proto.RegisterType((*EvmDebugResp)(nil), "types.EvmDebugResp")
} }
func init() { proto.RegisterFile("evmcontract.proto", fileDescriptor_74353de561acd7c6) } func init() { proto.RegisterFile("evmcontract.proto", fileDescriptor0) }
var fileDescriptor_74353de561acd7c6 = []byte{ var fileDescriptor0 = []byte{
// 716 bytes of a gzipped FileDescriptorProto // 716 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x41, 0x6f, 0xd3, 0x4a, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x41, 0x6f, 0xd3, 0x4a,
0x10, 0x96, 0x63, 0x27, 0x8d, 0x27, 0x79, 0xaf, 0xed, 0xbe, 0xf7, 0xfa, 0xac, 0x8a, 0x43, 0xb4, 0x10, 0x96, 0x63, 0x27, 0x8d, 0x27, 0x79, 0xaf, 0xed, 0xbe, 0xf7, 0xfa, 0xac, 0x8a, 0x43, 0xb4,
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: game.proto // source: game.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
game.proto
It has these top-level messages:
Game
GameAction
GameMatch
GameCancel
GameClose
GameCreate
QueryGameListByStatusAndAddr
QueryGameListCount
GameRecord
QueryGameInfo
QueryGameInfos
ReplyGameList
ReplyGameListCount
ReplyGame
ReceiptGame
*/
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
proto "github.com/golang/protobuf/proto" import math "math"
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 _ = proto.Marshal var _ = proto.Marshal
...@@ -21,73 +42,50 @@ var _ = math.Inf ...@@ -21,73 +42,50 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Game struct { type Game struct {
//默认是由创建这局游戏的txHash作为gameId // 默认是由创建这局游戏的txHash作为gameId
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
// create 1 -> Match 2 -> Cancel 3 -> Close 4 // create 1 -> Match 2 -> Cancel 3 -> Close 4
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
//创建时间 // 创建时间
CreateTime int64 `protobuf:"varint,3,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,3,opt,name=createTime" json:"createTime,omitempty"`
//匹配时间(何时参与对赌) // 匹配时间(何时参与对赌)
MatchTime int64 `protobuf:"varint,4,opt,name=matchTime,proto3" json:"matchTime,omitempty"` MatchTime int64 `protobuf:"varint,4,opt,name=matchTime" json:"matchTime,omitempty"`
//状态close的时间(包括cancel) // 状态close的时间(包括cancel)
Closetime int64 `protobuf:"varint,5,opt,name=closetime,proto3" json:"closetime,omitempty"` Closetime int64 `protobuf:"varint,5,opt,name=closetime" json:"closetime,omitempty"`
//赌注 // 赌注
Value int64 `protobuf:"varint,6,opt,name=value,proto3" json:"value,omitempty"` Value int64 `protobuf:"varint,6,opt,name=value" json:"value,omitempty"`
//发起者账号地址 // 发起者账号地址
CreateAddress string `protobuf:"bytes,7,opt,name=createAddress,proto3" json:"createAddress,omitempty"` CreateAddress string `protobuf:"bytes,7,opt,name=createAddress" json:"createAddress,omitempty"`
//对赌者账号地址 // 对赌者账号地址
MatchAddress string `protobuf:"bytes,8,opt,name=matchAddress,proto3" json:"matchAddress,omitempty"` MatchAddress string `protobuf:"bytes,8,opt,name=matchAddress" json:"matchAddress,omitempty"`
// hash 类型,预留字段 // hash 类型,预留字段
HashType string `protobuf:"bytes,9,opt,name=hashType,proto3" json:"hashType,omitempty"` HashType string `protobuf:"bytes,9,opt,name=hashType" json:"hashType,omitempty"`
//庄家创建游戏时,庄家自己出拳结果加密后的hash值 // 庄家创建游戏时,庄家自己出拳结果加密后的hash值
HashValue []byte `protobuf:"bytes,10,opt,name=hashValue,proto3" json:"hashValue,omitempty"` HashValue []byte `protobuf:"bytes,10,opt,name=hashValue,proto3" json:"hashValue,omitempty"`
//用来公布庄家出拳结果的私钥 // 用来公布庄家出拳结果的私钥
Secret string `protobuf:"bytes,11,opt,name=secret,proto3" json:"secret,omitempty"` Secret string `protobuf:"bytes,11,opt,name=secret" json:"secret,omitempty"`
// 1 平局,2 庄家获胜,3 matcher获胜,4 // 1 平局,2 庄家获胜,3 matcher获胜,4
// 庄家开奖超时,matcher获胜,并获得本局所有赌资 // 庄家开奖超时,matcher获胜,并获得本局所有赌资
Result int32 `protobuf:"varint,12,opt,name=result,proto3" json:"result,omitempty"` Result int32 `protobuf:"varint,12,opt,name=result" json:"result,omitempty"`
// matcher 出拳结果 // matcher 出拳结果
MatcherGuess int32 `protobuf:"varint,13,opt,name=matcherGuess,proto3" json:"matcherGuess,omitempty"` MatcherGuess int32 `protobuf:"varint,13,opt,name=matcherGuess" json:"matcherGuess,omitempty"`
// create txHash // create txHash
CreateTxHash string `protobuf:"bytes,14,opt,name=createTxHash,proto3" json:"createTxHash,omitempty"` CreateTxHash string `protobuf:"bytes,14,opt,name=createTxHash" json:"createTxHash,omitempty"`
// matche交易hash // matche交易hash
MatchTxHash string `protobuf:"bytes,15,opt,name=matchTxHash,proto3" json:"matchTxHash,omitempty"` MatchTxHash string `protobuf:"bytes,15,opt,name=matchTxHash" json:"matchTxHash,omitempty"`
// close txhash // close txhash
CloseTxHash string `protobuf:"bytes,16,opt,name=closeTxHash,proto3" json:"closeTxHash,omitempty"` CloseTxHash string `protobuf:"bytes,16,opt,name=closeTxHash" json:"closeTxHash,omitempty"`
// cancel txhash // cancel txhash
CancelTxHash string `protobuf:"bytes,17,opt,name=cancelTxHash,proto3" json:"cancelTxHash,omitempty"` CancelTxHash string `protobuf:"bytes,17,opt,name=cancelTxHash" json:"cancelTxHash,omitempty"`
Index int64 `protobuf:"varint,18,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,18,opt,name=index" json:"index,omitempty"`
PrevIndex int64 `protobuf:"varint,19,opt,name=prevIndex,proto3" json:"prevIndex,omitempty"` PrevIndex int64 `protobuf:"varint,19,opt,name=prevIndex" json:"prevIndex,omitempty"`
CreatorGuess int32 `protobuf:"varint,20,opt,name=creatorGuess,proto3" json:"creatorGuess,omitempty"` CreatorGuess int32 `protobuf:"varint,20,opt,name=creatorGuess" json:"creatorGuess,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Game) Reset() { *m = Game{} } func (m *Game) Reset() { *m = Game{} }
func (m *Game) String() string { return proto.CompactTextString(m) } func (m *Game) String() string { return proto.CompactTextString(m) }
func (*Game) ProtoMessage() {} func (*Game) ProtoMessage() {}
func (*Game) Descriptor() ([]byte, []int) { func (*Game) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
return fileDescriptor_38fc58335341d769, []int{0}
}
func (m *Game) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Game.Unmarshal(m, b)
}
func (m *Game) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Game.Marshal(b, m, deterministic)
}
func (m *Game) XXX_Merge(src proto.Message) {
xxx_messageInfo_Game.Merge(m, src)
}
func (m *Game) XXX_Size() int {
return xxx_messageInfo_Game.Size(m)
}
func (m *Game) XXX_DiscardUnknown() {
xxx_messageInfo_Game.DiscardUnknown(m)
}
var xxx_messageInfo_Game proto.InternalMessageInfo
func (m *Game) GetGameId() string { func (m *Game) GetGameId() string {
if m != nil { if m != nil {
...@@ -236,65 +234,36 @@ type GameAction struct { ...@@ -236,65 +234,36 @@ type GameAction struct {
// *GameAction_Cancel // *GameAction_Cancel
// *GameAction_Close // *GameAction_Close
// *GameAction_Match // *GameAction_Match
Value isGameAction_Value `protobuf_oneof:"value"` Value isGameAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,10,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GameAction) Reset() { *m = GameAction{} }
func (m *GameAction) String() string { return proto.CompactTextString(m) }
func (*GameAction) ProtoMessage() {}
func (*GameAction) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{1}
}
func (m *GameAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GameAction.Unmarshal(m, b)
}
func (m *GameAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GameAction.Marshal(b, m, deterministic)
}
func (m *GameAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_GameAction.Merge(m, src)
}
func (m *GameAction) XXX_Size() int {
return xxx_messageInfo_GameAction.Size(m)
}
func (m *GameAction) XXX_DiscardUnknown() {
xxx_messageInfo_GameAction.DiscardUnknown(m)
} }
var xxx_messageInfo_GameAction proto.InternalMessageInfo func (m *GameAction) Reset() { *m = GameAction{} }
func (m *GameAction) String() string { return proto.CompactTextString(m) }
func (*GameAction) ProtoMessage() {}
func (*GameAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type isGameAction_Value interface { type isGameAction_Value interface {
isGameAction_Value() isGameAction_Value()
} }
type GameAction_Create struct { type GameAction_Create struct {
Create *GameCreate `protobuf:"bytes,1,opt,name=create,proto3,oneof"` Create *GameCreate `protobuf:"bytes,1,opt,name=create,oneof"`
} }
type GameAction_Cancel struct { type GameAction_Cancel struct {
Cancel *GameCancel `protobuf:"bytes,2,opt,name=cancel,proto3,oneof"` Cancel *GameCancel `protobuf:"bytes,2,opt,name=cancel,oneof"`
} }
type GameAction_Close struct { type GameAction_Close struct {
Close *GameClose `protobuf:"bytes,3,opt,name=close,proto3,oneof"` Close *GameClose `protobuf:"bytes,3,opt,name=close,oneof"`
} }
type GameAction_Match struct { type GameAction_Match struct {
Match *GameMatch `protobuf:"bytes,4,opt,name=match,proto3,oneof"` Match *GameMatch `protobuf:"bytes,4,opt,name=match,oneof"`
} }
func (*GameAction_Create) isGameAction_Value() {} func (*GameAction_Create) isGameAction_Value() {}
func (*GameAction_Cancel) isGameAction_Value() {} func (*GameAction_Cancel) isGameAction_Value() {}
func (*GameAction_Close) isGameAction_Value() {}
func (*GameAction_Close) isGameAction_Value() {} func (*GameAction_Match) isGameAction_Value() {}
func (*GameAction_Match) isGameAction_Value() {}
func (m *GameAction) GetValue() isGameAction_Value { func (m *GameAction) GetValue() isGameAction_Value {
if m != nil { if m != nil {
...@@ -425,22 +394,22 @@ func _GameAction_OneofSizer(msg proto.Message) (n int) { ...@@ -425,22 +394,22 @@ func _GameAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *GameAction_Create: case *GameAction_Create:
s := proto.Size(x.Create) s := proto.Size(x.Create)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *GameAction_Cancel: case *GameAction_Cancel:
s := proto.Size(x.Cancel) s := proto.Size(x.Cancel)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *GameAction_Close: case *GameAction_Close:
s := proto.Size(x.Close) s := proto.Size(x.Close)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *GameAction_Match: case *GameAction_Match:
s := proto.Size(x.Match) s := proto.Size(x.Match)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -451,37 +420,14 @@ func _GameAction_OneofSizer(msg proto.Message) (n int) { ...@@ -451,37 +420,14 @@ func _GameAction_OneofSizer(msg proto.Message) (n int) {
} }
type GameMatch struct { type GameMatch struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Guess int32 `protobuf:"varint,2,opt,name=guess,proto3" json:"guess,omitempty"` Guess int32 `protobuf:"varint,2,opt,name=guess" json:"guess,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GameMatch) Reset() { *m = GameMatch{} }
func (m *GameMatch) String() string { return proto.CompactTextString(m) }
func (*GameMatch) ProtoMessage() {}
func (*GameMatch) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{2}
} }
func (m *GameMatch) XXX_Unmarshal(b []byte) error { func (m *GameMatch) Reset() { *m = GameMatch{} }
return xxx_messageInfo_GameMatch.Unmarshal(m, b) func (m *GameMatch) String() string { return proto.CompactTextString(m) }
} func (*GameMatch) ProtoMessage() {}
func (m *GameMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*GameMatch) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return xxx_messageInfo_GameMatch.Marshal(b, m, deterministic)
}
func (m *GameMatch) XXX_Merge(src proto.Message) {
xxx_messageInfo_GameMatch.Merge(m, src)
}
func (m *GameMatch) XXX_Size() int {
return xxx_messageInfo_GameMatch.Size(m)
}
func (m *GameMatch) XXX_DiscardUnknown() {
xxx_messageInfo_GameMatch.DiscardUnknown(m)
}
var xxx_messageInfo_GameMatch proto.InternalMessageInfo
func (m *GameMatch) GetGameId() string { func (m *GameMatch) GetGameId() string {
if m != nil { if m != nil {
...@@ -498,36 +444,13 @@ func (m *GameMatch) GetGuess() int32 { ...@@ -498,36 +444,13 @@ func (m *GameMatch) GetGuess() int32 {
} }
type GameCancel struct { type GameCancel struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GameCancel) Reset() { *m = GameCancel{} }
func (m *GameCancel) String() string { return proto.CompactTextString(m) }
func (*GameCancel) ProtoMessage() {}
func (*GameCancel) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{3}
} }
func (m *GameCancel) XXX_Unmarshal(b []byte) error { func (m *GameCancel) Reset() { *m = GameCancel{} }
return xxx_messageInfo_GameCancel.Unmarshal(m, b) func (m *GameCancel) String() string { return proto.CompactTextString(m) }
} func (*GameCancel) ProtoMessage() {}
func (m *GameCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*GameCancel) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
return xxx_messageInfo_GameCancel.Marshal(b, m, deterministic)
}
func (m *GameCancel) XXX_Merge(src proto.Message) {
xxx_messageInfo_GameCancel.Merge(m, src)
}
func (m *GameCancel) XXX_Size() int {
return xxx_messageInfo_GameCancel.Size(m)
}
func (m *GameCancel) XXX_DiscardUnknown() {
xxx_messageInfo_GameCancel.DiscardUnknown(m)
}
var xxx_messageInfo_GameCancel proto.InternalMessageInfo
func (m *GameCancel) GetGameId() string { func (m *GameCancel) GetGameId() string {
if m != nil { if m != nil {
...@@ -537,37 +460,14 @@ func (m *GameCancel) GetGameId() string { ...@@ -537,37 +460,14 @@ func (m *GameCancel) GetGameId() string {
} }
type GameClose struct { type GameClose struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret" json:"secret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GameClose) Reset() { *m = GameClose{} }
func (m *GameClose) String() string { return proto.CompactTextString(m) }
func (*GameClose) ProtoMessage() {}
func (*GameClose) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{4}
} }
func (m *GameClose) XXX_Unmarshal(b []byte) error { func (m *GameClose) Reset() { *m = GameClose{} }
return xxx_messageInfo_GameClose.Unmarshal(m, b) func (m *GameClose) String() string { return proto.CompactTextString(m) }
} func (*GameClose) ProtoMessage() {}
func (m *GameClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*GameClose) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
return xxx_messageInfo_GameClose.Marshal(b, m, deterministic)
}
func (m *GameClose) XXX_Merge(src proto.Message) {
xxx_messageInfo_GameClose.Merge(m, src)
}
func (m *GameClose) XXX_Size() int {
return xxx_messageInfo_GameClose.Size(m)
}
func (m *GameClose) XXX_DiscardUnknown() {
xxx_messageInfo_GameClose.DiscardUnknown(m)
}
var xxx_messageInfo_GameClose proto.InternalMessageInfo
func (m *GameClose) GetGameId() string { func (m *GameClose) GetGameId() string {
if m != nil { if m != nil {
...@@ -584,40 +484,17 @@ func (m *GameClose) GetSecret() string { ...@@ -584,40 +484,17 @@ func (m *GameClose) GetSecret() string {
} }
type GameCreate struct { type GameCreate struct {
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Value int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
//加密用的算法 // 加密用的算法
HashType string `protobuf:"bytes,2,opt,name=hashType,proto3" json:"hashType,omitempty"` HashType string `protobuf:"bytes,2,opt,name=hashType" json:"hashType,omitempty"`
//加密后的值 // 加密后的值
HashValue []byte `protobuf:"bytes,3,opt,name=hashValue,proto3" json:"hashValue,omitempty"` HashValue []byte `protobuf:"bytes,3,opt,name=hashValue,proto3" json:"hashValue,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GameCreate) Reset() { *m = GameCreate{} }
func (m *GameCreate) String() string { return proto.CompactTextString(m) }
func (*GameCreate) ProtoMessage() {}
func (*GameCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{5}
} }
func (m *GameCreate) XXX_Unmarshal(b []byte) error { func (m *GameCreate) Reset() { *m = GameCreate{} }
return xxx_messageInfo_GameCreate.Unmarshal(m, b) func (m *GameCreate) String() string { return proto.CompactTextString(m) }
} func (*GameCreate) ProtoMessage() {}
func (m *GameCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*GameCreate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
return xxx_messageInfo_GameCreate.Marshal(b, m, deterministic)
}
func (m *GameCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_GameCreate.Merge(m, src)
}
func (m *GameCreate) XXX_Size() int {
return xxx_messageInfo_GameCreate.Size(m)
}
func (m *GameCreate) XXX_DiscardUnknown() {
xxx_messageInfo_GameCreate.DiscardUnknown(m)
}
var xxx_messageInfo_GameCreate proto.InternalMessageInfo
func (m *GameCreate) GetValue() int64 { func (m *GameCreate) GetValue() int64 {
if m != nil { if m != nil {
...@@ -642,45 +519,22 @@ func (m *GameCreate) GetHashValue() []byte { ...@@ -642,45 +519,22 @@ func (m *GameCreate) GetHashValue() []byte {
// queryByAddr 和 queryByStatus共用同一个结构体 // queryByAddr 和 queryByStatus共用同一个结构体
type QueryGameListByStatusAndAddr struct { type QueryGameListByStatusAndAddr struct {
//优先根据status查询,status不可为空 // 优先根据status查询,status不可为空
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
//二级搜索,如果要查询一个地址下的所有game信息,可以根据status,分多次查询,这样规避存储数据时的臃余情况 // 二级搜索,如果要查询一个地址下的所有game信息,可以根据status,分多次查询,这样规避存储数据时的臃余情况
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
// 索引值 // 索引值
Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,3,opt,name=index" json:"index,omitempty"`
//单页返回多少条记录,默认返回20条,单次最多返回100条 // 单页返回多少条记录,默认返回20条,单次最多返回100条
Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Count int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"`
// 0降序,1升序,默认降序 // 0降序,1升序,默认降序
Direction int32 `protobuf:"varint,5,opt,name=direction,proto3" json:"direction,omitempty"` Direction int32 `protobuf:"varint,5,opt,name=direction" json:"direction,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryGameListByStatusAndAddr) Reset() { *m = QueryGameListByStatusAndAddr{} }
func (m *QueryGameListByStatusAndAddr) String() string { return proto.CompactTextString(m) }
func (*QueryGameListByStatusAndAddr) ProtoMessage() {}
func (*QueryGameListByStatusAndAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{6}
} }
func (m *QueryGameListByStatusAndAddr) XXX_Unmarshal(b []byte) error { func (m *QueryGameListByStatusAndAddr) Reset() { *m = QueryGameListByStatusAndAddr{} }
return xxx_messageInfo_QueryGameListByStatusAndAddr.Unmarshal(m, b) func (m *QueryGameListByStatusAndAddr) String() string { return proto.CompactTextString(m) }
} func (*QueryGameListByStatusAndAddr) ProtoMessage() {}
func (m *QueryGameListByStatusAndAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*QueryGameListByStatusAndAddr) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
return xxx_messageInfo_QueryGameListByStatusAndAddr.Marshal(b, m, deterministic)
}
func (m *QueryGameListByStatusAndAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGameListByStatusAndAddr.Merge(m, src)
}
func (m *QueryGameListByStatusAndAddr) XXX_Size() int {
return xxx_messageInfo_QueryGameListByStatusAndAddr.Size(m)
}
func (m *QueryGameListByStatusAndAddr) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGameListByStatusAndAddr.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGameListByStatusAndAddr proto.InternalMessageInfo
func (m *QueryGameListByStatusAndAddr) GetStatus() int32 { func (m *QueryGameListByStatusAndAddr) GetStatus() int32 {
if m != nil { if m != nil {
...@@ -719,39 +573,16 @@ func (m *QueryGameListByStatusAndAddr) GetDirection() int32 { ...@@ -719,39 +573,16 @@ func (m *QueryGameListByStatusAndAddr) GetDirection() int32 {
// 统计数量 // 统计数量
type QueryGameListCount struct { type QueryGameListCount struct {
//优先根据status查询,status不可为空 // 优先根据status查询,status不可为空
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
//二级搜索,如果要查询一个地址下的所有game信息,可以根据status,分多次查询,这样规避存储数据时的臃余情况 // 二级搜索,如果要查询一个地址下的所有game信息,可以根据status,分多次查询,这样规避存储数据时的臃余情况
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryGameListCount) Reset() { *m = QueryGameListCount{} }
func (m *QueryGameListCount) String() string { return proto.CompactTextString(m) }
func (*QueryGameListCount) ProtoMessage() {}
func (*QueryGameListCount) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{7}
} }
func (m *QueryGameListCount) XXX_Unmarshal(b []byte) error { func (m *QueryGameListCount) Reset() { *m = QueryGameListCount{} }
return xxx_messageInfo_QueryGameListCount.Unmarshal(m, b) func (m *QueryGameListCount) String() string { return proto.CompactTextString(m) }
} func (*QueryGameListCount) ProtoMessage() {}
func (m *QueryGameListCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*QueryGameListCount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
return xxx_messageInfo_QueryGameListCount.Marshal(b, m, deterministic)
}
func (m *QueryGameListCount) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGameListCount.Merge(m, src)
}
func (m *QueryGameListCount) XXX_Size() int {
return xxx_messageInfo_QueryGameListCount.Size(m)
}
func (m *QueryGameListCount) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGameListCount.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGameListCount proto.InternalMessageInfo
func (m *QueryGameListCount) GetStatus() int32 { func (m *QueryGameListCount) GetStatus() int32 {
if m != nil { if m != nil {
...@@ -769,37 +600,14 @@ func (m *QueryGameListCount) GetAddress() string { ...@@ -769,37 +600,14 @@ func (m *QueryGameListCount) GetAddress() string {
// 索引value值 // 索引value值
type GameRecord struct { type GameRecord struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Index int64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GameRecord) Reset() { *m = GameRecord{} }
func (m *GameRecord) String() string { return proto.CompactTextString(m) }
func (*GameRecord) ProtoMessage() {}
func (*GameRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{8}
} }
func (m *GameRecord) XXX_Unmarshal(b []byte) error { func (m *GameRecord) Reset() { *m = GameRecord{} }
return xxx_messageInfo_GameRecord.Unmarshal(m, b) func (m *GameRecord) String() string { return proto.CompactTextString(m) }
} func (*GameRecord) ProtoMessage() {}
func (m *GameRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*GameRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
return xxx_messageInfo_GameRecord.Marshal(b, m, deterministic)
}
func (m *GameRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_GameRecord.Merge(m, src)
}
func (m *GameRecord) XXX_Size() int {
return xxx_messageInfo_GameRecord.Size(m)
}
func (m *GameRecord) XXX_DiscardUnknown() {
xxx_messageInfo_GameRecord.DiscardUnknown(m)
}
var xxx_messageInfo_GameRecord proto.InternalMessageInfo
func (m *GameRecord) GetGameId() string { func (m *GameRecord) GetGameId() string {
if m != nil { if m != nil {
...@@ -816,36 +624,13 @@ func (m *GameRecord) GetIndex() int64 { ...@@ -816,36 +624,13 @@ func (m *GameRecord) GetIndex() int64 {
} }
type QueryGameInfo struct { type QueryGameInfo struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryGameInfo) Reset() { *m = QueryGameInfo{} }
func (m *QueryGameInfo) String() string { return proto.CompactTextString(m) }
func (*QueryGameInfo) ProtoMessage() {}
func (*QueryGameInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{9}
} }
func (m *QueryGameInfo) XXX_Unmarshal(b []byte) error { func (m *QueryGameInfo) Reset() { *m = QueryGameInfo{} }
return xxx_messageInfo_QueryGameInfo.Unmarshal(m, b) func (m *QueryGameInfo) String() string { return proto.CompactTextString(m) }
} func (*QueryGameInfo) ProtoMessage() {}
func (m *QueryGameInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*QueryGameInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
return xxx_messageInfo_QueryGameInfo.Marshal(b, m, deterministic)
}
func (m *QueryGameInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGameInfo.Merge(m, src)
}
func (m *QueryGameInfo) XXX_Size() int {
return xxx_messageInfo_QueryGameInfo.Size(m)
}
func (m *QueryGameInfo) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGameInfo.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGameInfo proto.InternalMessageInfo
func (m *QueryGameInfo) GetGameId() string { func (m *QueryGameInfo) GetGameId() string {
if m != nil { if m != nil {
...@@ -855,36 +640,13 @@ func (m *QueryGameInfo) GetGameId() string { ...@@ -855,36 +640,13 @@ func (m *QueryGameInfo) GetGameId() string {
} }
type QueryGameInfos struct { type QueryGameInfos struct {
GameIds []string `protobuf:"bytes,1,rep,name=gameIds,proto3" json:"gameIds,omitempty"` GameIds []string `protobuf:"bytes,1,rep,name=gameIds" json:"gameIds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryGameInfos) Reset() { *m = QueryGameInfos{} }
func (m *QueryGameInfos) String() string { return proto.CompactTextString(m) }
func (*QueryGameInfos) ProtoMessage() {}
func (*QueryGameInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{10}
} }
func (m *QueryGameInfos) XXX_Unmarshal(b []byte) error { func (m *QueryGameInfos) Reset() { *m = QueryGameInfos{} }
return xxx_messageInfo_QueryGameInfos.Unmarshal(m, b) func (m *QueryGameInfos) String() string { return proto.CompactTextString(m) }
} func (*QueryGameInfos) ProtoMessage() {}
func (m *QueryGameInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*QueryGameInfos) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
return xxx_messageInfo_QueryGameInfos.Marshal(b, m, deterministic)
}
func (m *QueryGameInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryGameInfos.Merge(m, src)
}
func (m *QueryGameInfos) XXX_Size() int {
return xxx_messageInfo_QueryGameInfos.Size(m)
}
func (m *QueryGameInfos) XXX_DiscardUnknown() {
xxx_messageInfo_QueryGameInfos.DiscardUnknown(m)
}
var xxx_messageInfo_QueryGameInfos proto.InternalMessageInfo
func (m *QueryGameInfos) GetGameIds() []string { func (m *QueryGameInfos) GetGameIds() []string {
if m != nil { if m != nil {
...@@ -894,36 +656,13 @@ func (m *QueryGameInfos) GetGameIds() []string { ...@@ -894,36 +656,13 @@ func (m *QueryGameInfos) GetGameIds() []string {
} }
type ReplyGameList struct { type ReplyGameList struct {
Games []*Game `protobuf:"bytes,1,rep,name=games,proto3" json:"games,omitempty"` Games []*Game `protobuf:"bytes,1,rep,name=games" json:"games,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyGameList) Reset() { *m = ReplyGameList{} }
func (m *ReplyGameList) String() string { return proto.CompactTextString(m) }
func (*ReplyGameList) ProtoMessage() {}
func (*ReplyGameList) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{11}
} }
func (m *ReplyGameList) XXX_Unmarshal(b []byte) error { func (m *ReplyGameList) Reset() { *m = ReplyGameList{} }
return xxx_messageInfo_ReplyGameList.Unmarshal(m, b) func (m *ReplyGameList) String() string { return proto.CompactTextString(m) }
} func (*ReplyGameList) ProtoMessage() {}
func (m *ReplyGameList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*ReplyGameList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
return xxx_messageInfo_ReplyGameList.Marshal(b, m, deterministic)
}
func (m *ReplyGameList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyGameList.Merge(m, src)
}
func (m *ReplyGameList) XXX_Size() int {
return xxx_messageInfo_ReplyGameList.Size(m)
}
func (m *ReplyGameList) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyGameList.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyGameList proto.InternalMessageInfo
func (m *ReplyGameList) GetGames() []*Game { func (m *ReplyGameList) GetGames() []*Game {
if m != nil { if m != nil {
...@@ -933,36 +672,13 @@ func (m *ReplyGameList) GetGames() []*Game { ...@@ -933,36 +672,13 @@ func (m *ReplyGameList) GetGames() []*Game {
} }
type ReplyGameListCount struct { type ReplyGameListCount struct {
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyGameListCount) Reset() { *m = ReplyGameListCount{} }
func (m *ReplyGameListCount) String() string { return proto.CompactTextString(m) }
func (*ReplyGameListCount) ProtoMessage() {}
func (*ReplyGameListCount) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{12}
} }
func (m *ReplyGameListCount) XXX_Unmarshal(b []byte) error { func (m *ReplyGameListCount) Reset() { *m = ReplyGameListCount{} }
return xxx_messageInfo_ReplyGameListCount.Unmarshal(m, b) func (m *ReplyGameListCount) String() string { return proto.CompactTextString(m) }
} func (*ReplyGameListCount) ProtoMessage() {}
func (m *ReplyGameListCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*ReplyGameListCount) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
return xxx_messageInfo_ReplyGameListCount.Marshal(b, m, deterministic)
}
func (m *ReplyGameListCount) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyGameListCount.Merge(m, src)
}
func (m *ReplyGameListCount) XXX_Size() int {
return xxx_messageInfo_ReplyGameListCount.Size(m)
}
func (m *ReplyGameListCount) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyGameListCount.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyGameListCount proto.InternalMessageInfo
func (m *ReplyGameListCount) GetCount() int64 { func (m *ReplyGameListCount) GetCount() int64 {
if m != nil { if m != nil {
...@@ -972,36 +688,13 @@ func (m *ReplyGameListCount) GetCount() int64 { ...@@ -972,36 +688,13 @@ func (m *ReplyGameListCount) GetCount() int64 {
} }
type ReplyGame struct { type ReplyGame struct {
Game *Game `protobuf:"bytes,1,opt,name=game,proto3" json:"game,omitempty"` Game *Game `protobuf:"bytes,1,opt,name=game" json:"game,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyGame) Reset() { *m = ReplyGame{} }
func (m *ReplyGame) String() string { return proto.CompactTextString(m) }
func (*ReplyGame) ProtoMessage() {}
func (*ReplyGame) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{13}
} }
func (m *ReplyGame) XXX_Unmarshal(b []byte) error { func (m *ReplyGame) Reset() { *m = ReplyGame{} }
return xxx_messageInfo_ReplyGame.Unmarshal(m, b) func (m *ReplyGame) String() string { return proto.CompactTextString(m) }
} func (*ReplyGame) ProtoMessage() {}
func (m *ReplyGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*ReplyGame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
return xxx_messageInfo_ReplyGame.Marshal(b, m, deterministic)
}
func (m *ReplyGame) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyGame.Merge(m, src)
}
func (m *ReplyGame) XXX_Size() int {
return xxx_messageInfo_ReplyGame.Size(m)
}
func (m *ReplyGame) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyGame.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyGame proto.InternalMessageInfo
func (m *ReplyGame) GetGame() *Game { func (m *ReplyGame) GetGame() *Game {
if m != nil { if m != nil {
...@@ -1011,44 +704,21 @@ func (m *ReplyGame) GetGame() *Game { ...@@ -1011,44 +704,21 @@ func (m *ReplyGame) GetGame() *Game {
} }
type ReceiptGame struct { type ReceiptGame struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
//记录上一次状态 // 记录上一次状态
PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"` PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus" json:"prevStatus,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,omitempty"`
CreateAddr string `protobuf:"bytes,5,opt,name=createAddr,proto3" json:"createAddr,omitempty"` CreateAddr string `protobuf:"bytes,5,opt,name=createAddr" json:"createAddr,omitempty"`
MatchAddr string `protobuf:"bytes,6,opt,name=matchAddr,proto3" json:"matchAddr,omitempty"` MatchAddr string `protobuf:"bytes,6,opt,name=matchAddr" json:"matchAddr,omitempty"`
Index int64 `protobuf:"varint,7,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,7,opt,name=index" json:"index,omitempty"`
PrevIndex int64 `protobuf:"varint,8,opt,name=prevIndex,proto3" json:"prevIndex,omitempty"` PrevIndex int64 `protobuf:"varint,8,opt,name=prevIndex" json:"prevIndex,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *ReceiptGame) Reset() { *m = ReceiptGame{} }
} func (m *ReceiptGame) String() string { return proto.CompactTextString(m) }
func (*ReceiptGame) ProtoMessage() {}
func (m *ReceiptGame) Reset() { *m = ReceiptGame{} } func (*ReceiptGame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
func (m *ReceiptGame) String() string { return proto.CompactTextString(m) }
func (*ReceiptGame) ProtoMessage() {}
func (*ReceiptGame) Descriptor() ([]byte, []int) {
return fileDescriptor_38fc58335341d769, []int{14}
}
func (m *ReceiptGame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptGame.Unmarshal(m, b)
}
func (m *ReceiptGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptGame.Marshal(b, m, deterministic)
}
func (m *ReceiptGame) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptGame.Merge(m, src)
}
func (m *ReceiptGame) XXX_Size() int {
return xxx_messageInfo_ReceiptGame.Size(m)
}
func (m *ReceiptGame) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptGame.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptGame proto.InternalMessageInfo
func (m *ReceiptGame) GetGameId() string { func (m *ReceiptGame) GetGameId() string {
if m != nil { if m != nil {
...@@ -1124,9 +794,9 @@ func init() { ...@@ -1124,9 +794,9 @@ func init() {
proto.RegisterType((*ReceiptGame)(nil), "types.ReceiptGame") proto.RegisterType((*ReceiptGame)(nil), "types.ReceiptGame")
} }
func init() { proto.RegisterFile("game.proto", fileDescriptor_38fc58335341d769) } func init() { proto.RegisterFile("game.proto", fileDescriptor0) }
var fileDescriptor_38fc58335341d769 = []byte{ var fileDescriptor0 = []byte{
// 712 bytes of a gzipped FileDescriptorProto // 712 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xc1, 0x6e, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0xad, 0x93, 0x38, 0xa9, 0xc7, 0x4d, 0x69, 0x97, 0x08, 0x59, 0xa8, 0x82, 0xb0, 0xaa, 0x44, 0x10, 0xad, 0x93, 0x38, 0xa9, 0xc7, 0x4d, 0x69, 0x97, 0x08, 0x59, 0xa8, 0x82, 0xb0, 0xaa, 0x44,
......
...@@ -33,7 +33,7 @@ message Hashlockquery { ...@@ -33,7 +33,7 @@ message Hashlockquery {
} }
message HashRecv { message HashRecv {
bytes HashlockId = 1; bytes HashlockId = 1;
Hashlockquery Information = 2; Hashlockquery Information = 2;
} }
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: hashlock.proto // source: hashlock.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
hashlock.proto
It has these top-level messages:
Hashlock
HashlockLock
HashlockSend
Hashlockquery
HashRecv
HashlockUnlock
HashlockAction
*/
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
proto "github.com/golang/protobuf/proto" import math "math"
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 _ = proto.Marshal var _ = proto.Marshal
...@@ -21,42 +34,19 @@ var _ = math.Inf ...@@ -21,42 +34,19 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Hashlock struct { type Hashlock struct {
HashlockId []byte `protobuf:"bytes,1,opt,name=hashlockId,proto3" json:"hashlockId,omitempty"` HashlockId []byte `protobuf:"bytes,1,opt,name=hashlockId,proto3" json:"hashlockId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
CreateTime int64 `protobuf:"varint,3,opt,name=CreateTime,proto3" json:"CreateTime,omitempty"` CreateTime int64 `protobuf:"varint,3,opt,name=CreateTime" json:"CreateTime,omitempty"`
ToAddress string `protobuf:"bytes,4,opt,name=toAddress,proto3" json:"toAddress,omitempty"` ToAddress string `protobuf:"bytes,4,opt,name=toAddress" json:"toAddress,omitempty"`
ReturnAddress string `protobuf:"bytes,5,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"` ReturnAddress string `protobuf:"bytes,5,opt,name=returnAddress" json:"returnAddress,omitempty"`
Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,6,opt,name=amount" json:"amount,omitempty"`
Frozentime int64 `protobuf:"varint,7,opt,name=frozentime,proto3" json:"frozentime,omitempty"` Frozentime int64 `protobuf:"varint,7,opt,name=frozentime" json:"frozentime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Hashlock) Reset() { *m = Hashlock{} } func (m *Hashlock) Reset() { *m = Hashlock{} }
func (m *Hashlock) String() string { return proto.CompactTextString(m) } func (m *Hashlock) String() string { return proto.CompactTextString(m) }
func (*Hashlock) ProtoMessage() {} func (*Hashlock) ProtoMessage() {}
func (*Hashlock) Descriptor() ([]byte, []int) { func (*Hashlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
return fileDescriptor_acb83e90536b5ff8, []int{0}
}
func (m *Hashlock) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Hashlock.Unmarshal(m, b)
}
func (m *Hashlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Hashlock.Marshal(b, m, deterministic)
}
func (m *Hashlock) XXX_Merge(src proto.Message) {
xxx_messageInfo_Hashlock.Merge(m, src)
}
func (m *Hashlock) XXX_Size() int {
return xxx_messageInfo_Hashlock.Size(m)
}
func (m *Hashlock) XXX_DiscardUnknown() {
xxx_messageInfo_Hashlock.DiscardUnknown(m)
}
var xxx_messageInfo_Hashlock proto.InternalMessageInfo
func (m *Hashlock) GetHashlockId() []byte { func (m *Hashlock) GetHashlockId() []byte {
if m != nil { if m != nil {
...@@ -108,40 +98,17 @@ func (m *Hashlock) GetFrozentime() int64 { ...@@ -108,40 +98,17 @@ func (m *Hashlock) GetFrozentime() int64 {
} }
type HashlockLock struct { type HashlockLock struct {
Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,1,opt,name=amount" json:"amount,omitempty"`
Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"`
Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
ToAddress string `protobuf:"bytes,4,opt,name=toAddress,proto3" json:"toAddress,omitempty"` ToAddress string `protobuf:"bytes,4,opt,name=toAddress" json:"toAddress,omitempty"`
ReturnAddress string `protobuf:"bytes,5,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"` ReturnAddress string `protobuf:"bytes,5,opt,name=returnAddress" json:"returnAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HashlockLock) Reset() { *m = HashlockLock{} }
func (m *HashlockLock) String() string { return proto.CompactTextString(m) }
func (*HashlockLock) ProtoMessage() {}
func (*HashlockLock) Descriptor() ([]byte, []int) {
return fileDescriptor_acb83e90536b5ff8, []int{1}
}
func (m *HashlockLock) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HashlockLock.Unmarshal(m, b)
}
func (m *HashlockLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HashlockLock.Marshal(b, m, deterministic)
}
func (m *HashlockLock) XXX_Merge(src proto.Message) {
xxx_messageInfo_HashlockLock.Merge(m, src)
}
func (m *HashlockLock) XXX_Size() int {
return xxx_messageInfo_HashlockLock.Size(m)
}
func (m *HashlockLock) XXX_DiscardUnknown() {
xxx_messageInfo_HashlockLock.DiscardUnknown(m)
} }
var xxx_messageInfo_HashlockLock proto.InternalMessageInfo func (m *HashlockLock) Reset() { *m = HashlockLock{} }
func (m *HashlockLock) String() string { return proto.CompactTextString(m) }
func (*HashlockLock) ProtoMessage() {}
func (*HashlockLock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *HashlockLock) GetAmount() int64 { func (m *HashlockLock) GetAmount() int64 {
if m != nil { if m != nil {
...@@ -179,36 +146,13 @@ func (m *HashlockLock) GetReturnAddress() string { ...@@ -179,36 +146,13 @@ func (m *HashlockLock) GetReturnAddress() string {
} }
type HashlockSend struct { type HashlockSend struct {
Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HashlockSend) Reset() { *m = HashlockSend{} }
func (m *HashlockSend) String() string { return proto.CompactTextString(m) }
func (*HashlockSend) ProtoMessage() {}
func (*HashlockSend) Descriptor() ([]byte, []int) {
return fileDescriptor_acb83e90536b5ff8, []int{2}
} }
func (m *HashlockSend) XXX_Unmarshal(b []byte) error { func (m *HashlockSend) Reset() { *m = HashlockSend{} }
return xxx_messageInfo_HashlockSend.Unmarshal(m, b) func (m *HashlockSend) String() string { return proto.CompactTextString(m) }
} func (*HashlockSend) ProtoMessage() {}
func (m *HashlockSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*HashlockSend) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return xxx_messageInfo_HashlockSend.Marshal(b, m, deterministic)
}
func (m *HashlockSend) XXX_Merge(src proto.Message) {
xxx_messageInfo_HashlockSend.Merge(m, src)
}
func (m *HashlockSend) XXX_Size() int {
return xxx_messageInfo_HashlockSend.Size(m)
}
func (m *HashlockSend) XXX_DiscardUnknown() {
xxx_messageInfo_HashlockSend.DiscardUnknown(m)
}
var xxx_messageInfo_HashlockSend proto.InternalMessageInfo
func (m *HashlockSend) GetSecret() []byte { func (m *HashlockSend) GetSecret() []byte {
if m != nil { if m != nil {
...@@ -218,40 +162,17 @@ func (m *HashlockSend) GetSecret() []byte { ...@@ -218,40 +162,17 @@ func (m *HashlockSend) GetSecret() []byte {
} }
type Hashlockquery struct { type Hashlockquery struct {
Time int64 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,1,opt,name=time" json:"time,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount" json:"amount,omitempty"`
CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,4,opt,name=createTime" json:"createTime,omitempty"`
CurrentTime int64 `protobuf:"varint,5,opt,name=currentTime,proto3" json:"currentTime,omitempty"` CurrentTime int64 `protobuf:"varint,5,opt,name=currentTime" json:"currentTime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Hashlockquery) Reset() { *m = Hashlockquery{} }
func (m *Hashlockquery) String() string { return proto.CompactTextString(m) }
func (*Hashlockquery) ProtoMessage() {}
func (*Hashlockquery) Descriptor() ([]byte, []int) {
return fileDescriptor_acb83e90536b5ff8, []int{3}
}
func (m *Hashlockquery) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Hashlockquery.Unmarshal(m, b)
}
func (m *Hashlockquery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Hashlockquery.Marshal(b, m, deterministic)
}
func (m *Hashlockquery) XXX_Merge(src proto.Message) {
xxx_messageInfo_Hashlockquery.Merge(m, src)
}
func (m *Hashlockquery) XXX_Size() int {
return xxx_messageInfo_Hashlockquery.Size(m)
}
func (m *Hashlockquery) XXX_DiscardUnknown() {
xxx_messageInfo_Hashlockquery.DiscardUnknown(m)
} }
var xxx_messageInfo_Hashlockquery proto.InternalMessageInfo func (m *Hashlockquery) Reset() { *m = Hashlockquery{} }
func (m *Hashlockquery) String() string { return proto.CompactTextString(m) }
func (*Hashlockquery) ProtoMessage() {}
func (*Hashlockquery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *Hashlockquery) GetTime() int64 { func (m *Hashlockquery) GetTime() int64 {
if m != nil { if m != nil {
...@@ -289,37 +210,14 @@ func (m *Hashlockquery) GetCurrentTime() int64 { ...@@ -289,37 +210,14 @@ func (m *Hashlockquery) GetCurrentTime() int64 {
} }
type HashRecv struct { type HashRecv struct {
HashlockId []byte `protobuf:"bytes,1,opt,name=HashlockId,proto3" json:"HashlockId,omitempty"` HashlockId []byte `protobuf:"bytes,1,opt,name=HashlockId,proto3" json:"HashlockId,omitempty"`
Information *Hashlockquery `protobuf:"bytes,2,opt,name=Information,proto3" json:"Information,omitempty"` Information *Hashlockquery `protobuf:"bytes,2,opt,name=Information" json:"Information,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *HashRecv) Reset() { *m = HashRecv{} } func (m *HashRecv) Reset() { *m = HashRecv{} }
func (m *HashRecv) String() string { return proto.CompactTextString(m) } func (m *HashRecv) String() string { return proto.CompactTextString(m) }
func (*HashRecv) ProtoMessage() {} func (*HashRecv) ProtoMessage() {}
func (*HashRecv) Descriptor() ([]byte, []int) { func (*HashRecv) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
return fileDescriptor_acb83e90536b5ff8, []int{4}
}
func (m *HashRecv) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HashRecv.Unmarshal(m, b)
}
func (m *HashRecv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HashRecv.Marshal(b, m, deterministic)
}
func (m *HashRecv) XXX_Merge(src proto.Message) {
xxx_messageInfo_HashRecv.Merge(m, src)
}
func (m *HashRecv) XXX_Size() int {
return xxx_messageInfo_HashRecv.Size(m)
}
func (m *HashRecv) XXX_DiscardUnknown() {
xxx_messageInfo_HashRecv.DiscardUnknown(m)
}
var xxx_messageInfo_HashRecv proto.InternalMessageInfo
func (m *HashRecv) GetHashlockId() []byte { func (m *HashRecv) GetHashlockId() []byte {
if m != nil { if m != nil {
...@@ -336,36 +234,13 @@ func (m *HashRecv) GetInformation() *Hashlockquery { ...@@ -336,36 +234,13 @@ func (m *HashRecv) GetInformation() *Hashlockquery {
} }
type HashlockUnlock struct { type HashlockUnlock struct {
Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HashlockUnlock) Reset() { *m = HashlockUnlock{} }
func (m *HashlockUnlock) String() string { return proto.CompactTextString(m) }
func (*HashlockUnlock) ProtoMessage() {}
func (*HashlockUnlock) Descriptor() ([]byte, []int) {
return fileDescriptor_acb83e90536b5ff8, []int{5}
}
func (m *HashlockUnlock) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HashlockUnlock.Unmarshal(m, b)
}
func (m *HashlockUnlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HashlockUnlock.Marshal(b, m, deterministic)
}
func (m *HashlockUnlock) XXX_Merge(src proto.Message) {
xxx_messageInfo_HashlockUnlock.Merge(m, src)
}
func (m *HashlockUnlock) XXX_Size() int {
return xxx_messageInfo_HashlockUnlock.Size(m)
}
func (m *HashlockUnlock) XXX_DiscardUnknown() {
xxx_messageInfo_HashlockUnlock.DiscardUnknown(m)
} }
var xxx_messageInfo_HashlockUnlock proto.InternalMessageInfo func (m *HashlockUnlock) Reset() { *m = HashlockUnlock{} }
func (m *HashlockUnlock) String() string { return proto.CompactTextString(m) }
func (*HashlockUnlock) ProtoMessage() {}
func (*HashlockUnlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *HashlockUnlock) GetSecret() []byte { func (m *HashlockUnlock) GetSecret() []byte {
if m != nil { if m != nil {
...@@ -380,58 +255,31 @@ type HashlockAction struct { ...@@ -380,58 +255,31 @@ type HashlockAction struct {
// *HashlockAction_Hlock // *HashlockAction_Hlock
// *HashlockAction_Hsend // *HashlockAction_Hsend
// *HashlockAction_Hunlock // *HashlockAction_Hunlock
Value isHashlockAction_Value `protobuf_oneof:"value"` Value isHashlockAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,4,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *HashlockAction) Reset() { *m = HashlockAction{} } func (m *HashlockAction) Reset() { *m = HashlockAction{} }
func (m *HashlockAction) String() string { return proto.CompactTextString(m) } func (m *HashlockAction) String() string { return proto.CompactTextString(m) }
func (*HashlockAction) ProtoMessage() {} func (*HashlockAction) ProtoMessage() {}
func (*HashlockAction) Descriptor() ([]byte, []int) { func (*HashlockAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
return fileDescriptor_acb83e90536b5ff8, []int{6}
}
func (m *HashlockAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HashlockAction.Unmarshal(m, b)
}
func (m *HashlockAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HashlockAction.Marshal(b, m, deterministic)
}
func (m *HashlockAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_HashlockAction.Merge(m, src)
}
func (m *HashlockAction) XXX_Size() int {
return xxx_messageInfo_HashlockAction.Size(m)
}
func (m *HashlockAction) XXX_DiscardUnknown() {
xxx_messageInfo_HashlockAction.DiscardUnknown(m)
}
var xxx_messageInfo_HashlockAction proto.InternalMessageInfo
type isHashlockAction_Value interface { type isHashlockAction_Value interface {
isHashlockAction_Value() isHashlockAction_Value()
} }
type HashlockAction_Hlock struct { type HashlockAction_Hlock struct {
Hlock *HashlockLock `protobuf:"bytes,1,opt,name=hlock,proto3,oneof"` Hlock *HashlockLock `protobuf:"bytes,1,opt,name=hlock,oneof"`
} }
type HashlockAction_Hsend struct { type HashlockAction_Hsend struct {
Hsend *HashlockSend `protobuf:"bytes,2,opt,name=hsend,proto3,oneof"` Hsend *HashlockSend `protobuf:"bytes,2,opt,name=hsend,oneof"`
} }
type HashlockAction_Hunlock struct { type HashlockAction_Hunlock struct {
Hunlock *HashlockUnlock `protobuf:"bytes,3,opt,name=hunlock,proto3,oneof"` Hunlock *HashlockUnlock `protobuf:"bytes,3,opt,name=hunlock,oneof"`
} }
func (*HashlockAction_Hlock) isHashlockAction_Value() {} func (*HashlockAction_Hlock) isHashlockAction_Value() {}
func (*HashlockAction_Hsend) isHashlockAction_Value() {}
func (*HashlockAction_Hsend) isHashlockAction_Value() {}
func (*HashlockAction_Hunlock) isHashlockAction_Value() {} func (*HashlockAction_Hunlock) isHashlockAction_Value() {}
func (m *HashlockAction) GetValue() isHashlockAction_Value { func (m *HashlockAction) GetValue() isHashlockAction_Value {
...@@ -542,17 +390,17 @@ func _HashlockAction_OneofSizer(msg proto.Message) (n int) { ...@@ -542,17 +390,17 @@ func _HashlockAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *HashlockAction_Hlock: case *HashlockAction_Hlock:
s := proto.Size(x.Hlock) s := proto.Size(x.Hlock)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *HashlockAction_Hsend: case *HashlockAction_Hsend:
s := proto.Size(x.Hsend) s := proto.Size(x.Hsend)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *HashlockAction_Hunlock: case *HashlockAction_Hunlock:
s := proto.Size(x.Hunlock) s := proto.Size(x.Hunlock)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -572,9 +420,9 @@ func init() { ...@@ -572,9 +420,9 @@ func init() {
proto.RegisterType((*HashlockAction)(nil), "types.HashlockAction") proto.RegisterType((*HashlockAction)(nil), "types.HashlockAction")
} }
func init() { proto.RegisterFile("hashlock.proto", fileDescriptor_acb83e90536b5ff8) } func init() { proto.RegisterFile("hashlock.proto", fileDescriptor0) }
var fileDescriptor_acb83e90536b5ff8 = []byte{ var fileDescriptor0 = []byte{
// 421 bytes of a gzipped FileDescriptorProto // 421 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x6a, 0xdb, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcd, 0x6a, 0xdb, 0x40,
0x10, 0xc7, 0xbd, 0xb2, 0x65, 0xd7, 0x23, 0xdb, 0x87, 0xed, 0x07, 0x3a, 0x94, 0x22, 0x44, 0x29, 0x10, 0xc7, 0xbd, 0xb2, 0x65, 0xd7, 0x23, 0xdb, 0x87, 0xed, 0x07, 0x3a, 0x94, 0x22, 0x44, 0x29,
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: lottery.proto // source: lottery.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
lottery.proto
It has these top-level messages:
PurchaseRecord
PurchaseRecords
Lottery
MissingRecord
LotteryAction
LotteryCreate
LotteryBuy
LotteryDraw
LotteryClose
ReceiptLottery
ReqLotteryInfo
ReqLotteryBuyInfo
ReqLotteryBuyHistory
ReqLotteryLuckyInfo
ReqLotteryLuckyHistory
ReplyLotteryNormalInfo
ReplyLotteryCurrentInfo
ReplyLotteryHistoryLuckyNumber
ReplyLotteryShowInfo
LotteryNumberRecord
LotteryBuyRecord
LotteryBuyRecords
LotteryDrawRecord
LotteryDrawRecords
LotteryUpdateRec
LotteryUpdateRecs
LotteryUpdateBuyInfo
ReplyLotteryPurchaseAddr
*/
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
proto "github.com/golang/protobuf/proto" import math "math"
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 _ = proto.Marshal var _ = proto.Marshal
...@@ -21,39 +55,16 @@ var _ = math.Inf ...@@ -21,39 +55,16 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type PurchaseRecord struct { type PurchaseRecord struct {
Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,1,opt,name=amount" json:"amount,omitempty"`
Number int64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` Number int64 `protobuf:"varint,2,opt,name=number" json:"number,omitempty"`
Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,3,opt,name=index" json:"index,omitempty"`
Way int64 `protobuf:"varint,4,opt,name=way,proto3" json:"way,omitempty"` Way int64 `protobuf:"varint,4,opt,name=way" json:"way,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PurchaseRecord) Reset() { *m = PurchaseRecord{} } func (m *PurchaseRecord) Reset() { *m = PurchaseRecord{} }
func (m *PurchaseRecord) String() string { return proto.CompactTextString(m) } func (m *PurchaseRecord) String() string { return proto.CompactTextString(m) }
func (*PurchaseRecord) ProtoMessage() {} func (*PurchaseRecord) ProtoMessage() {}
func (*PurchaseRecord) Descriptor() ([]byte, []int) { func (*PurchaseRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
return fileDescriptor_2cce7afd61783b10, []int{0}
}
func (m *PurchaseRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PurchaseRecord.Unmarshal(m, b)
}
func (m *PurchaseRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PurchaseRecord.Marshal(b, m, deterministic)
}
func (m *PurchaseRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_PurchaseRecord.Merge(m, src)
}
func (m *PurchaseRecord) XXX_Size() int {
return xxx_messageInfo_PurchaseRecord.Size(m)
}
func (m *PurchaseRecord) XXX_DiscardUnknown() {
xxx_messageInfo_PurchaseRecord.DiscardUnknown(m)
}
var xxx_messageInfo_PurchaseRecord proto.InternalMessageInfo
func (m *PurchaseRecord) GetAmount() int64 { func (m *PurchaseRecord) GetAmount() int64 {
if m != nil { if m != nil {
...@@ -84,38 +95,15 @@ func (m *PurchaseRecord) GetWay() int64 { ...@@ -84,38 +95,15 @@ func (m *PurchaseRecord) GetWay() int64 {
} }
type PurchaseRecords struct { type PurchaseRecords struct {
Record []*PurchaseRecord `protobuf:"bytes,1,rep,name=record,proto3" json:"record,omitempty"` Record []*PurchaseRecord `protobuf:"bytes,1,rep,name=record" json:"record,omitempty"`
FundWin int64 `protobuf:"varint,2,opt,name=fundWin,proto3" json:"fundWin,omitempty"` FundWin int64 `protobuf:"varint,2,opt,name=fundWin" json:"fundWin,omitempty"`
AmountOneRound int64 `protobuf:"varint,3,opt,name=amountOneRound,proto3" json:"amountOneRound,omitempty"` AmountOneRound int64 `protobuf:"varint,3,opt,name=amountOneRound" json:"amountOneRound,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PurchaseRecords) Reset() { *m = PurchaseRecords{} }
func (m *PurchaseRecords) String() string { return proto.CompactTextString(m) }
func (*PurchaseRecords) ProtoMessage() {}
func (*PurchaseRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{1}
}
func (m *PurchaseRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PurchaseRecords.Unmarshal(m, b)
}
func (m *PurchaseRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PurchaseRecords.Marshal(b, m, deterministic)
}
func (m *PurchaseRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_PurchaseRecords.Merge(m, src)
}
func (m *PurchaseRecords) XXX_Size() int {
return xxx_messageInfo_PurchaseRecords.Size(m)
}
func (m *PurchaseRecords) XXX_DiscardUnknown() {
xxx_messageInfo_PurchaseRecords.DiscardUnknown(m)
} }
var xxx_messageInfo_PurchaseRecords proto.InternalMessageInfo func (m *PurchaseRecords) Reset() { *m = PurchaseRecords{} }
func (m *PurchaseRecords) String() string { return proto.CompactTextString(m) }
func (*PurchaseRecords) ProtoMessage() {}
func (*PurchaseRecords) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *PurchaseRecords) GetRecord() []*PurchaseRecord { func (m *PurchaseRecords) GetRecord() []*PurchaseRecord {
if m != nil { if m != nil {
...@@ -139,52 +127,29 @@ func (m *PurchaseRecords) GetAmountOneRound() int64 { ...@@ -139,52 +127,29 @@ func (m *PurchaseRecords) GetAmountOneRound() int64 {
} }
type Lottery struct { type Lottery struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
CreateHeight int64 `protobuf:"varint,3,opt,name=createHeight,proto3" json:"createHeight,omitempty"` CreateHeight int64 `protobuf:"varint,3,opt,name=createHeight" json:"createHeight,omitempty"`
Fund int64 `protobuf:"varint,4,opt,name=fund,proto3" json:"fund,omitempty"` Fund int64 `protobuf:"varint,4,opt,name=fund" json:"fund,omitempty"`
PurBlockNum int64 `protobuf:"varint,5,opt,name=purBlockNum,proto3" json:"purBlockNum,omitempty"` PurBlockNum int64 `protobuf:"varint,5,opt,name=purBlockNum" json:"purBlockNum,omitempty"`
DrawBlockNum int64 `protobuf:"varint,6,opt,name=drawBlockNum,proto3" json:"drawBlockNum,omitempty"` DrawBlockNum int64 `protobuf:"varint,6,opt,name=drawBlockNum" json:"drawBlockNum,omitempty"`
LastTransToPurState int64 `protobuf:"varint,7,opt,name=lastTransToPurState,proto3" json:"lastTransToPurState,omitempty"` LastTransToPurState int64 `protobuf:"varint,7,opt,name=lastTransToPurState" json:"lastTransToPurState,omitempty"`
LastTransToDrawState int64 `protobuf:"varint,8,opt,name=lastTransToDrawState,proto3" json:"lastTransToDrawState,omitempty"` LastTransToDrawState int64 `protobuf:"varint,8,opt,name=lastTransToDrawState" json:"lastTransToDrawState,omitempty"`
Records map[string]*PurchaseRecords `protobuf:"bytes,9,rep,name=records,proto3" json:"records,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Records map[string]*PurchaseRecords `protobuf:"bytes,9,rep,name=records" json:"records,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
TotalPurchasedTxNum int64 `protobuf:"varint,10,opt,name=totalPurchasedTxNum,proto3" json:"totalPurchasedTxNum,omitempty"` TotalPurchasedTxNum int64 `protobuf:"varint,10,opt,name=totalPurchasedTxNum" json:"totalPurchasedTxNum,omitempty"`
CreateAddr string `protobuf:"bytes,11,opt,name=createAddr,proto3" json:"createAddr,omitempty"` CreateAddr string `protobuf:"bytes,11,opt,name=createAddr" json:"createAddr,omitempty"`
Round int64 `protobuf:"varint,12,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,12,opt,name=round" json:"round,omitempty"`
LuckyNumber int64 `protobuf:"varint,13,opt,name=luckyNumber,proto3" json:"luckyNumber,omitempty"` LuckyNumber int64 `protobuf:"varint,13,opt,name=luckyNumber" json:"luckyNumber,omitempty"`
CreateOnMain int64 `protobuf:"varint,14,opt,name=createOnMain,proto3" json:"createOnMain,omitempty"` CreateOnMain int64 `protobuf:"varint,14,opt,name=createOnMain" json:"createOnMain,omitempty"`
LastTransToPurStateOnMain int64 `protobuf:"varint,15,opt,name=lastTransToPurStateOnMain,proto3" json:"lastTransToPurStateOnMain,omitempty"` LastTransToPurStateOnMain int64 `protobuf:"varint,15,opt,name=lastTransToPurStateOnMain" json:"lastTransToPurStateOnMain,omitempty"`
LastTransToDrawStateOnMain int64 `protobuf:"varint,16,opt,name=lastTransToDrawStateOnMain,proto3" json:"lastTransToDrawStateOnMain,omitempty"` LastTransToDrawStateOnMain int64 `protobuf:"varint,16,opt,name=lastTransToDrawStateOnMain" json:"lastTransToDrawStateOnMain,omitempty"`
MissingRecords []*MissingRecord `protobuf:"bytes,17,rep,name=missingRecords,proto3" json:"missingRecords,omitempty"` MissingRecords []*MissingRecord `protobuf:"bytes,17,rep,name=missingRecords" json:"missingRecords,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *Lottery) Reset() { *m = Lottery{} }
} func (m *Lottery) String() string { return proto.CompactTextString(m) }
func (*Lottery) ProtoMessage() {}
func (m *Lottery) Reset() { *m = Lottery{} } func (*Lottery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Lottery) String() string { return proto.CompactTextString(m) }
func (*Lottery) ProtoMessage() {}
func (*Lottery) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{2}
}
func (m *Lottery) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Lottery.Unmarshal(m, b)
}
func (m *Lottery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Lottery.Marshal(b, m, deterministic)
}
func (m *Lottery) XXX_Merge(src proto.Message) {
xxx_messageInfo_Lottery.Merge(m, src)
}
func (m *Lottery) XXX_Size() int {
return xxx_messageInfo_Lottery.Size(m)
}
func (m *Lottery) XXX_DiscardUnknown() {
xxx_messageInfo_Lottery.DiscardUnknown(m)
}
var xxx_messageInfo_Lottery proto.InternalMessageInfo
func (m *Lottery) GetLotteryId() string { func (m *Lottery) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -306,36 +271,13 @@ func (m *Lottery) GetMissingRecords() []*MissingRecord { ...@@ -306,36 +271,13 @@ func (m *Lottery) GetMissingRecords() []*MissingRecord {
} }
type MissingRecord struct { type MissingRecord struct {
Times []int32 `protobuf:"varint,1,rep,packed,name=times,proto3" json:"times,omitempty"` Times []int32 `protobuf:"varint,1,rep,packed,name=times" json:"times,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *MissingRecord) Reset() { *m = MissingRecord{} } func (m *MissingRecord) Reset() { *m = MissingRecord{} }
func (m *MissingRecord) String() string { return proto.CompactTextString(m) } func (m *MissingRecord) String() string { return proto.CompactTextString(m) }
func (*MissingRecord) ProtoMessage() {} func (*MissingRecord) ProtoMessage() {}
func (*MissingRecord) Descriptor() ([]byte, []int) { func (*MissingRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
return fileDescriptor_2cce7afd61783b10, []int{3}
}
func (m *MissingRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MissingRecord.Unmarshal(m, b)
}
func (m *MissingRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MissingRecord.Marshal(b, m, deterministic)
}
func (m *MissingRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_MissingRecord.Merge(m, src)
}
func (m *MissingRecord) XXX_Size() int {
return xxx_messageInfo_MissingRecord.Size(m)
}
func (m *MissingRecord) XXX_DiscardUnknown() {
xxx_messageInfo_MissingRecord.DiscardUnknown(m)
}
var xxx_messageInfo_MissingRecord proto.InternalMessageInfo
func (m *MissingRecord) GetTimes() []int32 { func (m *MissingRecord) GetTimes() []int32 {
if m != nil { if m != nil {
...@@ -350,65 +292,36 @@ type LotteryAction struct { ...@@ -350,65 +292,36 @@ type LotteryAction struct {
// *LotteryAction_Buy // *LotteryAction_Buy
// *LotteryAction_Draw // *LotteryAction_Draw
// *LotteryAction_Close // *LotteryAction_Close
Value isLotteryAction_Value `protobuf_oneof:"value"` Value isLotteryAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,10,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *LotteryAction) Reset() { *m = LotteryAction{} } func (m *LotteryAction) Reset() { *m = LotteryAction{} }
func (m *LotteryAction) String() string { return proto.CompactTextString(m) } func (m *LotteryAction) String() string { return proto.CompactTextString(m) }
func (*LotteryAction) ProtoMessage() {} func (*LotteryAction) ProtoMessage() {}
func (*LotteryAction) Descriptor() ([]byte, []int) { func (*LotteryAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
return fileDescriptor_2cce7afd61783b10, []int{4}
}
func (m *LotteryAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryAction.Unmarshal(m, b)
}
func (m *LotteryAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryAction.Marshal(b, m, deterministic)
}
func (m *LotteryAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryAction.Merge(m, src)
}
func (m *LotteryAction) XXX_Size() int {
return xxx_messageInfo_LotteryAction.Size(m)
}
func (m *LotteryAction) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryAction.DiscardUnknown(m)
}
var xxx_messageInfo_LotteryAction proto.InternalMessageInfo
type isLotteryAction_Value interface { type isLotteryAction_Value interface {
isLotteryAction_Value() isLotteryAction_Value()
} }
type LotteryAction_Create struct { type LotteryAction_Create struct {
Create *LotteryCreate `protobuf:"bytes,1,opt,name=create,proto3,oneof"` Create *LotteryCreate `protobuf:"bytes,1,opt,name=create,oneof"`
} }
type LotteryAction_Buy struct { type LotteryAction_Buy struct {
Buy *LotteryBuy `protobuf:"bytes,2,opt,name=buy,proto3,oneof"` Buy *LotteryBuy `protobuf:"bytes,2,opt,name=buy,oneof"`
} }
type LotteryAction_Draw struct { type LotteryAction_Draw struct {
Draw *LotteryDraw `protobuf:"bytes,3,opt,name=draw,proto3,oneof"` Draw *LotteryDraw `protobuf:"bytes,3,opt,name=draw,oneof"`
} }
type LotteryAction_Close struct { type LotteryAction_Close struct {
Close *LotteryClose `protobuf:"bytes,4,opt,name=close,proto3,oneof"` Close *LotteryClose `protobuf:"bytes,4,opt,name=close,oneof"`
} }
func (*LotteryAction_Create) isLotteryAction_Value() {} func (*LotteryAction_Create) isLotteryAction_Value() {}
func (*LotteryAction_Buy) isLotteryAction_Value() {}
func (*LotteryAction_Buy) isLotteryAction_Value() {} func (*LotteryAction_Draw) isLotteryAction_Value() {}
func (*LotteryAction_Close) isLotteryAction_Value() {}
func (*LotteryAction_Draw) isLotteryAction_Value() {}
func (*LotteryAction_Close) isLotteryAction_Value() {}
func (m *LotteryAction) GetValue() isLotteryAction_Value { func (m *LotteryAction) GetValue() isLotteryAction_Value {
if m != nil { if m != nil {
...@@ -539,22 +452,22 @@ func _LotteryAction_OneofSizer(msg proto.Message) (n int) { ...@@ -539,22 +452,22 @@ func _LotteryAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *LotteryAction_Create: case *LotteryAction_Create:
s := proto.Size(x.Create) s := proto.Size(x.Create)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *LotteryAction_Buy: case *LotteryAction_Buy:
s := proto.Size(x.Buy) s := proto.Size(x.Buy)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *LotteryAction_Draw: case *LotteryAction_Draw:
s := proto.Size(x.Draw) s := proto.Size(x.Draw)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *LotteryAction_Close: case *LotteryAction_Close:
s := proto.Size(x.Close) s := proto.Size(x.Close)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -565,37 +478,14 @@ func _LotteryAction_OneofSizer(msg proto.Message) (n int) { ...@@ -565,37 +478,14 @@ func _LotteryAction_OneofSizer(msg proto.Message) (n int) {
} }
type LotteryCreate struct { type LotteryCreate struct {
PurBlockNum int64 `protobuf:"varint,1,opt,name=purBlockNum,proto3" json:"purBlockNum,omitempty"` PurBlockNum int64 `protobuf:"varint,1,opt,name=purBlockNum" json:"purBlockNum,omitempty"`
DrawBlockNum int64 `protobuf:"varint,2,opt,name=drawBlockNum,proto3" json:"drawBlockNum,omitempty"` DrawBlockNum int64 `protobuf:"varint,2,opt,name=drawBlockNum" json:"drawBlockNum,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LotteryCreate) Reset() { *m = LotteryCreate{} }
func (m *LotteryCreate) String() string { return proto.CompactTextString(m) }
func (*LotteryCreate) ProtoMessage() {}
func (*LotteryCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{5}
}
func (m *LotteryCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryCreate.Unmarshal(m, b)
}
func (m *LotteryCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryCreate.Marshal(b, m, deterministic)
}
func (m *LotteryCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryCreate.Merge(m, src)
}
func (m *LotteryCreate) XXX_Size() int {
return xxx_messageInfo_LotteryCreate.Size(m)
}
func (m *LotteryCreate) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryCreate.DiscardUnknown(m)
} }
var xxx_messageInfo_LotteryCreate proto.InternalMessageInfo func (m *LotteryCreate) Reset() { *m = LotteryCreate{} }
func (m *LotteryCreate) String() string { return proto.CompactTextString(m) }
func (*LotteryCreate) ProtoMessage() {}
func (*LotteryCreate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *LotteryCreate) GetPurBlockNum() int64 { func (m *LotteryCreate) GetPurBlockNum() int64 {
if m != nil { if m != nil {
...@@ -612,39 +502,16 @@ func (m *LotteryCreate) GetDrawBlockNum() int64 { ...@@ -612,39 +502,16 @@ func (m *LotteryCreate) GetDrawBlockNum() int64 {
} }
type LotteryBuy struct { type LotteryBuy struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
Number int64 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` Number int64 `protobuf:"varint,3,opt,name=number" json:"number,omitempty"`
Way int64 `protobuf:"varint,4,opt,name=way,proto3" json:"way,omitempty"` Way int64 `protobuf:"varint,4,opt,name=way" json:"way,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LotteryBuy) Reset() { *m = LotteryBuy{} }
func (m *LotteryBuy) String() string { return proto.CompactTextString(m) }
func (*LotteryBuy) ProtoMessage() {}
func (*LotteryBuy) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{6}
}
func (m *LotteryBuy) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryBuy.Unmarshal(m, b)
}
func (m *LotteryBuy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryBuy.Marshal(b, m, deterministic)
}
func (m *LotteryBuy) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryBuy.Merge(m, src)
}
func (m *LotteryBuy) XXX_Size() int {
return xxx_messageInfo_LotteryBuy.Size(m)
}
func (m *LotteryBuy) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryBuy.DiscardUnknown(m)
} }
var xxx_messageInfo_LotteryBuy proto.InternalMessageInfo func (m *LotteryBuy) Reset() { *m = LotteryBuy{} }
func (m *LotteryBuy) String() string { return proto.CompactTextString(m) }
func (*LotteryBuy) ProtoMessage() {}
func (*LotteryBuy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *LotteryBuy) GetLotteryId() string { func (m *LotteryBuy) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -675,36 +542,13 @@ func (m *LotteryBuy) GetWay() int64 { ...@@ -675,36 +542,13 @@ func (m *LotteryBuy) GetWay() int64 {
} }
type LotteryDraw struct { type LotteryDraw struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *LotteryDraw) Reset() { *m = LotteryDraw{} } func (m *LotteryDraw) Reset() { *m = LotteryDraw{} }
func (m *LotteryDraw) String() string { return proto.CompactTextString(m) } func (m *LotteryDraw) String() string { return proto.CompactTextString(m) }
func (*LotteryDraw) ProtoMessage() {} func (*LotteryDraw) ProtoMessage() {}
func (*LotteryDraw) Descriptor() ([]byte, []int) { func (*LotteryDraw) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
return fileDescriptor_2cce7afd61783b10, []int{7}
}
func (m *LotteryDraw) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryDraw.Unmarshal(m, b)
}
func (m *LotteryDraw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryDraw.Marshal(b, m, deterministic)
}
func (m *LotteryDraw) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryDraw.Merge(m, src)
}
func (m *LotteryDraw) XXX_Size() int {
return xxx_messageInfo_LotteryDraw.Size(m)
}
func (m *LotteryDraw) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryDraw.DiscardUnknown(m)
}
var xxx_messageInfo_LotteryDraw proto.InternalMessageInfo
func (m *LotteryDraw) GetLotteryId() string { func (m *LotteryDraw) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -714,36 +558,13 @@ func (m *LotteryDraw) GetLotteryId() string { ...@@ -714,36 +558,13 @@ func (m *LotteryDraw) GetLotteryId() string {
} }
type LotteryClose struct { type LotteryClose struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LotteryClose) Reset() { *m = LotteryClose{} }
func (m *LotteryClose) String() string { return proto.CompactTextString(m) }
func (*LotteryClose) ProtoMessage() {}
func (*LotteryClose) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{8}
} }
func (m *LotteryClose) XXX_Unmarshal(b []byte) error { func (m *LotteryClose) Reset() { *m = LotteryClose{} }
return xxx_messageInfo_LotteryClose.Unmarshal(m, b) func (m *LotteryClose) String() string { return proto.CompactTextString(m) }
} func (*LotteryClose) ProtoMessage() {}
func (m *LotteryClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*LotteryClose) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
return xxx_messageInfo_LotteryClose.Marshal(b, m, deterministic)
}
func (m *LotteryClose) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryClose.Merge(m, src)
}
func (m *LotteryClose) XXX_Size() int {
return xxx_messageInfo_LotteryClose.Size(m)
}
func (m *LotteryClose) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryClose.DiscardUnknown(m)
}
var xxx_messageInfo_LotteryClose proto.InternalMessageInfo
func (m *LotteryClose) GetLotteryId() string { func (m *LotteryClose) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -753,48 +574,25 @@ func (m *LotteryClose) GetLotteryId() string { ...@@ -753,48 +574,25 @@ func (m *LotteryClose) GetLotteryId() string {
} }
type ReceiptLottery struct { type ReceiptLottery struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"` PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus" json:"prevStatus,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,omitempty"`
Round int64 `protobuf:"varint,5,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,5,opt,name=round" json:"round,omitempty"`
Number int64 `protobuf:"varint,6,opt,name=number,proto3" json:"number,omitempty"` Number int64 `protobuf:"varint,6,opt,name=number" json:"number,omitempty"`
Amount int64 `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,7,opt,name=amount" json:"amount,omitempty"`
LuckyNumber int64 `protobuf:"varint,8,opt,name=luckyNumber,proto3" json:"luckyNumber,omitempty"` LuckyNumber int64 `protobuf:"varint,8,opt,name=luckyNumber" json:"luckyNumber,omitempty"`
Time int64 `protobuf:"varint,9,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,9,opt,name=time" json:"time,omitempty"`
TxHash string `protobuf:"bytes,10,opt,name=txHash,proto3" json:"txHash,omitempty"` TxHash string `protobuf:"bytes,10,opt,name=txHash" json:"txHash,omitempty"`
UpdateInfo *LotteryUpdateBuyInfo `protobuf:"bytes,11,opt,name=updateInfo,proto3" json:"updateInfo,omitempty"` UpdateInfo *LotteryUpdateBuyInfo `protobuf:"bytes,11,opt,name=updateInfo" json:"updateInfo,omitempty"`
Way int64 `protobuf:"varint,12,opt,name=way,proto3" json:"way,omitempty"` Way int64 `protobuf:"varint,12,opt,name=way" json:"way,omitempty"`
Index int64 `protobuf:"varint,13,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,13,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *ReceiptLottery) Reset() { *m = ReceiptLottery{} }
} func (m *ReceiptLottery) String() string { return proto.CompactTextString(m) }
func (*ReceiptLottery) ProtoMessage() {}
func (m *ReceiptLottery) Reset() { *m = ReceiptLottery{} } func (*ReceiptLottery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *ReceiptLottery) String() string { return proto.CompactTextString(m) }
func (*ReceiptLottery) ProtoMessage() {}
func (*ReceiptLottery) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{9}
}
func (m *ReceiptLottery) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptLottery.Unmarshal(m, b)
}
func (m *ReceiptLottery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptLottery.Marshal(b, m, deterministic)
}
func (m *ReceiptLottery) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptLottery.Merge(m, src)
}
func (m *ReceiptLottery) XXX_Size() int {
return xxx_messageInfo_ReceiptLottery.Size(m)
}
func (m *ReceiptLottery) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptLottery.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptLottery proto.InternalMessageInfo
func (m *ReceiptLottery) GetLotteryId() string { func (m *ReceiptLottery) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -888,36 +686,13 @@ func (m *ReceiptLottery) GetIndex() int64 { ...@@ -888,36 +686,13 @@ func (m *ReceiptLottery) GetIndex() int64 {
} }
type ReqLotteryInfo struct { type ReqLotteryInfo struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqLotteryInfo) Reset() { *m = ReqLotteryInfo{} }
func (m *ReqLotteryInfo) String() string { return proto.CompactTextString(m) }
func (*ReqLotteryInfo) ProtoMessage() {}
func (*ReqLotteryInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{10}
} }
func (m *ReqLotteryInfo) XXX_Unmarshal(b []byte) error { func (m *ReqLotteryInfo) Reset() { *m = ReqLotteryInfo{} }
return xxx_messageInfo_ReqLotteryInfo.Unmarshal(m, b) func (m *ReqLotteryInfo) String() string { return proto.CompactTextString(m) }
} func (*ReqLotteryInfo) ProtoMessage() {}
func (m *ReqLotteryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*ReqLotteryInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
return xxx_messageInfo_ReqLotteryInfo.Marshal(b, m, deterministic)
}
func (m *ReqLotteryInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqLotteryInfo.Merge(m, src)
}
func (m *ReqLotteryInfo) XXX_Size() int {
return xxx_messageInfo_ReqLotteryInfo.Size(m)
}
func (m *ReqLotteryInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReqLotteryInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ReqLotteryInfo proto.InternalMessageInfo
func (m *ReqLotteryInfo) GetLotteryId() string { func (m *ReqLotteryInfo) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -927,38 +702,15 @@ func (m *ReqLotteryInfo) GetLotteryId() string { ...@@ -927,38 +702,15 @@ func (m *ReqLotteryInfo) GetLotteryId() string {
} }
type ReqLotteryBuyInfo struct { type ReqLotteryBuyInfo struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
Round int64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,3,opt,name=round" json:"round,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqLotteryBuyInfo) Reset() { *m = ReqLotteryBuyInfo{} } func (m *ReqLotteryBuyInfo) Reset() { *m = ReqLotteryBuyInfo{} }
func (m *ReqLotteryBuyInfo) String() string { return proto.CompactTextString(m) } func (m *ReqLotteryBuyInfo) String() string { return proto.CompactTextString(m) }
func (*ReqLotteryBuyInfo) ProtoMessage() {} func (*ReqLotteryBuyInfo) ProtoMessage() {}
func (*ReqLotteryBuyInfo) Descriptor() ([]byte, []int) { func (*ReqLotteryBuyInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
return fileDescriptor_2cce7afd61783b10, []int{11}
}
func (m *ReqLotteryBuyInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqLotteryBuyInfo.Unmarshal(m, b)
}
func (m *ReqLotteryBuyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqLotteryBuyInfo.Marshal(b, m, deterministic)
}
func (m *ReqLotteryBuyInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqLotteryBuyInfo.Merge(m, src)
}
func (m *ReqLotteryBuyInfo) XXX_Size() int {
return xxx_messageInfo_ReqLotteryBuyInfo.Size(m)
}
func (m *ReqLotteryBuyInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReqLotteryBuyInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ReqLotteryBuyInfo proto.InternalMessageInfo
func (m *ReqLotteryBuyInfo) GetLotteryId() string { func (m *ReqLotteryBuyInfo) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -982,41 +734,18 @@ func (m *ReqLotteryBuyInfo) GetRound() int64 { ...@@ -982,41 +734,18 @@ func (m *ReqLotteryBuyInfo) GetRound() int64 {
} }
type ReqLotteryBuyHistory struct { type ReqLotteryBuyHistory struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
Round int64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,3,opt,name=round" json:"round,omitempty"`
Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Count int32 `protobuf:"varint,4,opt,name=count" json:"count,omitempty"`
Direction int32 `protobuf:"varint,5,opt,name=direction,proto3" json:"direction,omitempty"` Direction int32 `protobuf:"varint,5,opt,name=direction" json:"direction,omitempty"`
Index int64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,6,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqLotteryBuyHistory) Reset() { *m = ReqLotteryBuyHistory{} }
func (m *ReqLotteryBuyHistory) String() string { return proto.CompactTextString(m) }
func (*ReqLotteryBuyHistory) ProtoMessage() {}
func (*ReqLotteryBuyHistory) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{12}
}
func (m *ReqLotteryBuyHistory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqLotteryBuyHistory.Unmarshal(m, b)
}
func (m *ReqLotteryBuyHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqLotteryBuyHistory.Marshal(b, m, deterministic)
}
func (m *ReqLotteryBuyHistory) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqLotteryBuyHistory.Merge(m, src)
}
func (m *ReqLotteryBuyHistory) XXX_Size() int {
return xxx_messageInfo_ReqLotteryBuyHistory.Size(m)
}
func (m *ReqLotteryBuyHistory) XXX_DiscardUnknown() {
xxx_messageInfo_ReqLotteryBuyHistory.DiscardUnknown(m)
} }
var xxx_messageInfo_ReqLotteryBuyHistory proto.InternalMessageInfo func (m *ReqLotteryBuyHistory) Reset() { *m = ReqLotteryBuyHistory{} }
func (m *ReqLotteryBuyHistory) String() string { return proto.CompactTextString(m) }
func (*ReqLotteryBuyHistory) ProtoMessage() {}
func (*ReqLotteryBuyHistory) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *ReqLotteryBuyHistory) GetLotteryId() string { func (m *ReqLotteryBuyHistory) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -1061,37 +790,14 @@ func (m *ReqLotteryBuyHistory) GetIndex() int64 { ...@@ -1061,37 +790,14 @@ func (m *ReqLotteryBuyHistory) GetIndex() int64 {
} }
type ReqLotteryLuckyInfo struct { type ReqLotteryLuckyInfo struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
Round []int64 `protobuf:"varint,2,rep,packed,name=round,proto3" json:"round,omitempty"` Round []int64 `protobuf:"varint,2,rep,packed,name=round" json:"round,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqLotteryLuckyInfo) Reset() { *m = ReqLotteryLuckyInfo{} }
func (m *ReqLotteryLuckyInfo) String() string { return proto.CompactTextString(m) }
func (*ReqLotteryLuckyInfo) ProtoMessage() {}
func (*ReqLotteryLuckyInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{13}
}
func (m *ReqLotteryLuckyInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqLotteryLuckyInfo.Unmarshal(m, b)
}
func (m *ReqLotteryLuckyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqLotteryLuckyInfo.Marshal(b, m, deterministic)
}
func (m *ReqLotteryLuckyInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqLotteryLuckyInfo.Merge(m, src)
}
func (m *ReqLotteryLuckyInfo) XXX_Size() int {
return xxx_messageInfo_ReqLotteryLuckyInfo.Size(m)
}
func (m *ReqLotteryLuckyInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReqLotteryLuckyInfo.DiscardUnknown(m)
} }
var xxx_messageInfo_ReqLotteryLuckyInfo proto.InternalMessageInfo func (m *ReqLotteryLuckyInfo) Reset() { *m = ReqLotteryLuckyInfo{} }
func (m *ReqLotteryLuckyInfo) String() string { return proto.CompactTextString(m) }
func (*ReqLotteryLuckyInfo) ProtoMessage() {}
func (*ReqLotteryLuckyInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *ReqLotteryLuckyInfo) GetLotteryId() string { func (m *ReqLotteryLuckyInfo) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -1108,39 +814,16 @@ func (m *ReqLotteryLuckyInfo) GetRound() []int64 { ...@@ -1108,39 +814,16 @@ func (m *ReqLotteryLuckyInfo) GetRound() []int64 {
} }
type ReqLotteryLuckyHistory struct { type ReqLotteryLuckyHistory struct {
LotteryId string `protobuf:"bytes,1,opt,name=lotteryId,proto3" json:"lotteryId,omitempty"` LotteryId string `protobuf:"bytes,1,opt,name=lotteryId" json:"lotteryId,omitempty"`
Round int64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,2,opt,name=round" json:"round,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction" json:"direction,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqLotteryLuckyHistory) Reset() { *m = ReqLotteryLuckyHistory{} } func (m *ReqLotteryLuckyHistory) Reset() { *m = ReqLotteryLuckyHistory{} }
func (m *ReqLotteryLuckyHistory) String() string { return proto.CompactTextString(m) } func (m *ReqLotteryLuckyHistory) String() string { return proto.CompactTextString(m) }
func (*ReqLotteryLuckyHistory) ProtoMessage() {} func (*ReqLotteryLuckyHistory) ProtoMessage() {}
func (*ReqLotteryLuckyHistory) Descriptor() ([]byte, []int) { func (*ReqLotteryLuckyHistory) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
return fileDescriptor_2cce7afd61783b10, []int{14}
}
func (m *ReqLotteryLuckyHistory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqLotteryLuckyHistory.Unmarshal(m, b)
}
func (m *ReqLotteryLuckyHistory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqLotteryLuckyHistory.Marshal(b, m, deterministic)
}
func (m *ReqLotteryLuckyHistory) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqLotteryLuckyHistory.Merge(m, src)
}
func (m *ReqLotteryLuckyHistory) XXX_Size() int {
return xxx_messageInfo_ReqLotteryLuckyHistory.Size(m)
}
func (m *ReqLotteryLuckyHistory) XXX_DiscardUnknown() {
xxx_messageInfo_ReqLotteryLuckyHistory.DiscardUnknown(m)
}
var xxx_messageInfo_ReqLotteryLuckyHistory proto.InternalMessageInfo
func (m *ReqLotteryLuckyHistory) GetLotteryId() string { func (m *ReqLotteryLuckyHistory) GetLotteryId() string {
if m != nil { if m != nil {
...@@ -1171,39 +854,16 @@ func (m *ReqLotteryLuckyHistory) GetDirection() int32 { ...@@ -1171,39 +854,16 @@ func (m *ReqLotteryLuckyHistory) GetDirection() int32 {
} }
type ReplyLotteryNormalInfo struct { type ReplyLotteryNormalInfo struct {
CreateHeight int64 `protobuf:"varint,1,opt,name=createHeight,proto3" json:"createHeight,omitempty"` CreateHeight int64 `protobuf:"varint,1,opt,name=createHeight" json:"createHeight,omitempty"`
PurBlockNum int64 `protobuf:"varint,2,opt,name=purBlockNum,proto3" json:"purBlockNum,omitempty"` PurBlockNum int64 `protobuf:"varint,2,opt,name=purBlockNum" json:"purBlockNum,omitempty"`
DrawBlockNum int64 `protobuf:"varint,3,opt,name=drawBlockNum,proto3" json:"drawBlockNum,omitempty"` DrawBlockNum int64 `protobuf:"varint,3,opt,name=drawBlockNum" json:"drawBlockNum,omitempty"`
CreateAddr string `protobuf:"bytes,4,opt,name=createAddr,proto3" json:"createAddr,omitempty"` CreateAddr string `protobuf:"bytes,4,opt,name=createAddr" json:"createAddr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyLotteryNormalInfo) Reset() { *m = ReplyLotteryNormalInfo{} }
func (m *ReplyLotteryNormalInfo) String() string { return proto.CompactTextString(m) }
func (*ReplyLotteryNormalInfo) ProtoMessage() {}
func (*ReplyLotteryNormalInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{15}
}
func (m *ReplyLotteryNormalInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyLotteryNormalInfo.Unmarshal(m, b)
}
func (m *ReplyLotteryNormalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyLotteryNormalInfo.Marshal(b, m, deterministic)
}
func (m *ReplyLotteryNormalInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyLotteryNormalInfo.Merge(m, src)
}
func (m *ReplyLotteryNormalInfo) XXX_Size() int {
return xxx_messageInfo_ReplyLotteryNormalInfo.Size(m)
}
func (m *ReplyLotteryNormalInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyLotteryNormalInfo.DiscardUnknown(m)
} }
var xxx_messageInfo_ReplyLotteryNormalInfo proto.InternalMessageInfo func (m *ReplyLotteryNormalInfo) Reset() { *m = ReplyLotteryNormalInfo{} }
func (m *ReplyLotteryNormalInfo) String() string { return proto.CompactTextString(m) }
func (*ReplyLotteryNormalInfo) ProtoMessage() {}
func (*ReplyLotteryNormalInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
func (m *ReplyLotteryNormalInfo) GetCreateHeight() int64 { func (m *ReplyLotteryNormalInfo) GetCreateHeight() int64 {
if m != nil { if m != nil {
...@@ -1234,47 +894,24 @@ func (m *ReplyLotteryNormalInfo) GetCreateAddr() string { ...@@ -1234,47 +894,24 @@ func (m *ReplyLotteryNormalInfo) GetCreateAddr() string {
} }
type ReplyLotteryCurrentInfo struct { type ReplyLotteryCurrentInfo struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
Fund int64 `protobuf:"varint,2,opt,name=fund,proto3" json:"fund,omitempty"` Fund int64 `protobuf:"varint,2,opt,name=fund" json:"fund,omitempty"`
LastTransToPurState int64 `protobuf:"varint,3,opt,name=lastTransToPurState,proto3" json:"lastTransToPurState,omitempty"` LastTransToPurState int64 `protobuf:"varint,3,opt,name=lastTransToPurState" json:"lastTransToPurState,omitempty"`
LastTransToDrawState int64 `protobuf:"varint,4,opt,name=lastTransToDrawState,proto3" json:"lastTransToDrawState,omitempty"` LastTransToDrawState int64 `protobuf:"varint,4,opt,name=lastTransToDrawState" json:"lastTransToDrawState,omitempty"`
TotalPurchasedTxNum int64 `protobuf:"varint,5,opt,name=totalPurchasedTxNum,proto3" json:"totalPurchasedTxNum,omitempty"` TotalPurchasedTxNum int64 `protobuf:"varint,5,opt,name=totalPurchasedTxNum" json:"totalPurchasedTxNum,omitempty"`
Round int64 `protobuf:"varint,6,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,6,opt,name=round" json:"round,omitempty"`
LuckyNumber int64 `protobuf:"varint,7,opt,name=luckyNumber,proto3" json:"luckyNumber,omitempty"` LuckyNumber int64 `protobuf:"varint,7,opt,name=luckyNumber" json:"luckyNumber,omitempty"`
LastTransToPurStateOnMain int64 `protobuf:"varint,8,opt,name=lastTransToPurStateOnMain,proto3" json:"lastTransToPurStateOnMain,omitempty"` LastTransToPurStateOnMain int64 `protobuf:"varint,8,opt,name=lastTransToPurStateOnMain" json:"lastTransToPurStateOnMain,omitempty"`
LastTransToDrawStateOnMain int64 `protobuf:"varint,9,opt,name=lastTransToDrawStateOnMain,proto3" json:"lastTransToDrawStateOnMain,omitempty"` LastTransToDrawStateOnMain int64 `protobuf:"varint,9,opt,name=lastTransToDrawStateOnMain" json:"lastTransToDrawStateOnMain,omitempty"`
PurBlockNum int64 `protobuf:"varint,10,opt,name=purBlockNum,proto3" json:"purBlockNum,omitempty"` PurBlockNum int64 `protobuf:"varint,10,opt,name=purBlockNum" json:"purBlockNum,omitempty"`
DrawBlockNum int64 `protobuf:"varint,11,opt,name=drawBlockNum,proto3" json:"drawBlockNum,omitempty"` DrawBlockNum int64 `protobuf:"varint,11,opt,name=drawBlockNum" json:"drawBlockNum,omitempty"`
MissingRecords []*MissingRecord `protobuf:"bytes,12,rep,name=missingRecords,proto3" json:"missingRecords,omitempty"` MissingRecords []*MissingRecord `protobuf:"bytes,12,rep,name=missingRecords" json:"missingRecords,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *ReplyLotteryCurrentInfo) Reset() { *m = ReplyLotteryCurrentInfo{} }
} func (m *ReplyLotteryCurrentInfo) String() string { return proto.CompactTextString(m) }
func (*ReplyLotteryCurrentInfo) ProtoMessage() {}
func (m *ReplyLotteryCurrentInfo) Reset() { *m = ReplyLotteryCurrentInfo{} } func (*ReplyLotteryCurrentInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
func (m *ReplyLotteryCurrentInfo) String() string { return proto.CompactTextString(m) }
func (*ReplyLotteryCurrentInfo) ProtoMessage() {}
func (*ReplyLotteryCurrentInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{16}
}
func (m *ReplyLotteryCurrentInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyLotteryCurrentInfo.Unmarshal(m, b)
}
func (m *ReplyLotteryCurrentInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyLotteryCurrentInfo.Marshal(b, m, deterministic)
}
func (m *ReplyLotteryCurrentInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyLotteryCurrentInfo.Merge(m, src)
}
func (m *ReplyLotteryCurrentInfo) XXX_Size() int {
return xxx_messageInfo_ReplyLotteryCurrentInfo.Size(m)
}
func (m *ReplyLotteryCurrentInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyLotteryCurrentInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyLotteryCurrentInfo proto.InternalMessageInfo
func (m *ReplyLotteryCurrentInfo) GetStatus() int32 { func (m *ReplyLotteryCurrentInfo) GetStatus() int32 {
if m != nil { if m != nil {
...@@ -1361,36 +998,13 @@ func (m *ReplyLotteryCurrentInfo) GetMissingRecords() []*MissingRecord { ...@@ -1361,36 +998,13 @@ func (m *ReplyLotteryCurrentInfo) GetMissingRecords() []*MissingRecord {
} }
type ReplyLotteryHistoryLuckyNumber struct { type ReplyLotteryHistoryLuckyNumber struct {
LuckyNumber []int64 `protobuf:"varint,1,rep,packed,name=luckyNumber,proto3" json:"luckyNumber,omitempty"` LuckyNumber []int64 `protobuf:"varint,1,rep,packed,name=luckyNumber" json:"luckyNumber,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyLotteryHistoryLuckyNumber) Reset() { *m = ReplyLotteryHistoryLuckyNumber{} } func (m *ReplyLotteryHistoryLuckyNumber) Reset() { *m = ReplyLotteryHistoryLuckyNumber{} }
func (m *ReplyLotteryHistoryLuckyNumber) String() string { return proto.CompactTextString(m) } func (m *ReplyLotteryHistoryLuckyNumber) String() string { return proto.CompactTextString(m) }
func (*ReplyLotteryHistoryLuckyNumber) ProtoMessage() {} func (*ReplyLotteryHistoryLuckyNumber) ProtoMessage() {}
func (*ReplyLotteryHistoryLuckyNumber) Descriptor() ([]byte, []int) { func (*ReplyLotteryHistoryLuckyNumber) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
return fileDescriptor_2cce7afd61783b10, []int{17}
}
func (m *ReplyLotteryHistoryLuckyNumber) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyLotteryHistoryLuckyNumber.Unmarshal(m, b)
}
func (m *ReplyLotteryHistoryLuckyNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyLotteryHistoryLuckyNumber.Marshal(b, m, deterministic)
}
func (m *ReplyLotteryHistoryLuckyNumber) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyLotteryHistoryLuckyNumber.Merge(m, src)
}
func (m *ReplyLotteryHistoryLuckyNumber) XXX_Size() int {
return xxx_messageInfo_ReplyLotteryHistoryLuckyNumber.Size(m)
}
func (m *ReplyLotteryHistoryLuckyNumber) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyLotteryHistoryLuckyNumber.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyLotteryHistoryLuckyNumber proto.InternalMessageInfo
func (m *ReplyLotteryHistoryLuckyNumber) GetLuckyNumber() []int64 { func (m *ReplyLotteryHistoryLuckyNumber) GetLuckyNumber() []int64 {
if m != nil { if m != nil {
...@@ -1400,36 +1014,13 @@ func (m *ReplyLotteryHistoryLuckyNumber) GetLuckyNumber() []int64 { ...@@ -1400,36 +1014,13 @@ func (m *ReplyLotteryHistoryLuckyNumber) GetLuckyNumber() []int64 {
} }
type ReplyLotteryShowInfo struct { type ReplyLotteryShowInfo struct {
Records []*LotteryBuyRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` Records []*LotteryBuyRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyLotteryShowInfo) Reset() { *m = ReplyLotteryShowInfo{} } func (m *ReplyLotteryShowInfo) Reset() { *m = ReplyLotteryShowInfo{} }
func (m *ReplyLotteryShowInfo) String() string { return proto.CompactTextString(m) } func (m *ReplyLotteryShowInfo) String() string { return proto.CompactTextString(m) }
func (*ReplyLotteryShowInfo) ProtoMessage() {} func (*ReplyLotteryShowInfo) ProtoMessage() {}
func (*ReplyLotteryShowInfo) Descriptor() ([]byte, []int) { func (*ReplyLotteryShowInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
return fileDescriptor_2cce7afd61783b10, []int{18}
}
func (m *ReplyLotteryShowInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyLotteryShowInfo.Unmarshal(m, b)
}
func (m *ReplyLotteryShowInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyLotteryShowInfo.Marshal(b, m, deterministic)
}
func (m *ReplyLotteryShowInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyLotteryShowInfo.Merge(m, src)
}
func (m *ReplyLotteryShowInfo) XXX_Size() int {
return xxx_messageInfo_ReplyLotteryShowInfo.Size(m)
}
func (m *ReplyLotteryShowInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyLotteryShowInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyLotteryShowInfo proto.InternalMessageInfo
func (m *ReplyLotteryShowInfo) GetRecords() []*LotteryBuyRecord { func (m *ReplyLotteryShowInfo) GetRecords() []*LotteryBuyRecord {
if m != nil { if m != nil {
...@@ -1439,37 +1030,14 @@ func (m *ReplyLotteryShowInfo) GetRecords() []*LotteryBuyRecord { ...@@ -1439,37 +1030,14 @@ func (m *ReplyLotteryShowInfo) GetRecords() []*LotteryBuyRecord {
} }
type LotteryNumberRecord struct { type LotteryNumberRecord struct {
Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Number int64 `protobuf:"varint,1,opt,name=number" json:"number,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LotteryNumberRecord) Reset() { *m = LotteryNumberRecord{} }
func (m *LotteryNumberRecord) String() string { return proto.CompactTextString(m) }
func (*LotteryNumberRecord) ProtoMessage() {}
func (*LotteryNumberRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{19}
}
func (m *LotteryNumberRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryNumberRecord.Unmarshal(m, b)
}
func (m *LotteryNumberRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryNumberRecord.Marshal(b, m, deterministic)
}
func (m *LotteryNumberRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryNumberRecord.Merge(m, src)
}
func (m *LotteryNumberRecord) XXX_Size() int {
return xxx_messageInfo_LotteryNumberRecord.Size(m)
}
func (m *LotteryNumberRecord) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryNumberRecord.DiscardUnknown(m)
} }
var xxx_messageInfo_LotteryNumberRecord proto.InternalMessageInfo func (m *LotteryNumberRecord) Reset() { *m = LotteryNumberRecord{} }
func (m *LotteryNumberRecord) String() string { return proto.CompactTextString(m) }
func (*LotteryNumberRecord) ProtoMessage() {}
func (*LotteryNumberRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
func (m *LotteryNumberRecord) GetNumber() int64 { func (m *LotteryNumberRecord) GetNumber() int64 {
if m != nil { if m != nil {
...@@ -1487,43 +1055,20 @@ func (m *LotteryNumberRecord) GetAmount() int64 { ...@@ -1487,43 +1055,20 @@ func (m *LotteryNumberRecord) GetAmount() int64 {
// used for execlocal // used for execlocal
type LotteryBuyRecord struct { type LotteryBuyRecord struct {
Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Number int64 `protobuf:"varint,1,opt,name=number" json:"number,omitempty"`
Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"`
Round int64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,3,opt,name=round" json:"round,omitempty"`
Type int64 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` Type int64 `protobuf:"varint,4,opt,name=type" json:"type,omitempty"`
Way int64 `protobuf:"varint,5,opt,name=way,proto3" json:"way,omitempty"` Way int64 `protobuf:"varint,5,opt,name=way" json:"way,omitempty"`
Index int64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,6,opt,name=index" json:"index,omitempty"`
Time int64 `protobuf:"varint,7,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,7,opt,name=time" json:"time,omitempty"`
TxHash string `protobuf:"bytes,8,opt,name=txHash,proto3" json:"txHash,omitempty"` TxHash string `protobuf:"bytes,8,opt,name=txHash" json:"txHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LotteryBuyRecord) Reset() { *m = LotteryBuyRecord{} }
func (m *LotteryBuyRecord) String() string { return proto.CompactTextString(m) }
func (*LotteryBuyRecord) ProtoMessage() {}
func (*LotteryBuyRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{20}
}
func (m *LotteryBuyRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryBuyRecord.Unmarshal(m, b)
}
func (m *LotteryBuyRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryBuyRecord.Marshal(b, m, deterministic)
}
func (m *LotteryBuyRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryBuyRecord.Merge(m, src)
}
func (m *LotteryBuyRecord) XXX_Size() int {
return xxx_messageInfo_LotteryBuyRecord.Size(m)
}
func (m *LotteryBuyRecord) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryBuyRecord.DiscardUnknown(m)
} }
var xxx_messageInfo_LotteryBuyRecord proto.InternalMessageInfo func (m *LotteryBuyRecord) Reset() { *m = LotteryBuyRecord{} }
func (m *LotteryBuyRecord) String() string { return proto.CompactTextString(m) }
func (*LotteryBuyRecord) ProtoMessage() {}
func (*LotteryBuyRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
func (m *LotteryBuyRecord) GetNumber() int64 { func (m *LotteryBuyRecord) GetNumber() int64 {
if m != nil { if m != nil {
...@@ -1582,36 +1127,13 @@ func (m *LotteryBuyRecord) GetTxHash() string { ...@@ -1582,36 +1127,13 @@ func (m *LotteryBuyRecord) GetTxHash() string {
} }
type LotteryBuyRecords struct { type LotteryBuyRecords struct {
Records []*LotteryBuyRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` Records []*LotteryBuyRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *LotteryBuyRecords) Reset() { *m = LotteryBuyRecords{} } func (m *LotteryBuyRecords) Reset() { *m = LotteryBuyRecords{} }
func (m *LotteryBuyRecords) String() string { return proto.CompactTextString(m) } func (m *LotteryBuyRecords) String() string { return proto.CompactTextString(m) }
func (*LotteryBuyRecords) ProtoMessage() {} func (*LotteryBuyRecords) ProtoMessage() {}
func (*LotteryBuyRecords) Descriptor() ([]byte, []int) { func (*LotteryBuyRecords) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
return fileDescriptor_2cce7afd61783b10, []int{21}
}
func (m *LotteryBuyRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryBuyRecords.Unmarshal(m, b)
}
func (m *LotteryBuyRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryBuyRecords.Marshal(b, m, deterministic)
}
func (m *LotteryBuyRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryBuyRecords.Merge(m, src)
}
func (m *LotteryBuyRecords) XXX_Size() int {
return xxx_messageInfo_LotteryBuyRecords.Size(m)
}
func (m *LotteryBuyRecords) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryBuyRecords.DiscardUnknown(m)
}
var xxx_messageInfo_LotteryBuyRecords proto.InternalMessageInfo
func (m *LotteryBuyRecords) GetRecords() []*LotteryBuyRecord { func (m *LotteryBuyRecords) GetRecords() []*LotteryBuyRecord {
if m != nil { if m != nil {
...@@ -1621,39 +1143,16 @@ func (m *LotteryBuyRecords) GetRecords() []*LotteryBuyRecord { ...@@ -1621,39 +1143,16 @@ func (m *LotteryBuyRecords) GetRecords() []*LotteryBuyRecord {
} }
type LotteryDrawRecord struct { type LotteryDrawRecord struct {
Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` Number int64 `protobuf:"varint,1,opt,name=number" json:"number,omitempty"`
Round int64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,2,opt,name=round" json:"round,omitempty"`
Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,3,opt,name=time" json:"time,omitempty"`
TxHash string `protobuf:"bytes,4,opt,name=txHash,proto3" json:"txHash,omitempty"` TxHash string `protobuf:"bytes,4,opt,name=txHash" json:"txHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LotteryDrawRecord) Reset() { *m = LotteryDrawRecord{} }
func (m *LotteryDrawRecord) String() string { return proto.CompactTextString(m) }
func (*LotteryDrawRecord) ProtoMessage() {}
func (*LotteryDrawRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{22}
}
func (m *LotteryDrawRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryDrawRecord.Unmarshal(m, b)
}
func (m *LotteryDrawRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryDrawRecord.Marshal(b, m, deterministic)
}
func (m *LotteryDrawRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryDrawRecord.Merge(m, src)
}
func (m *LotteryDrawRecord) XXX_Size() int {
return xxx_messageInfo_LotteryDrawRecord.Size(m)
}
func (m *LotteryDrawRecord) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryDrawRecord.DiscardUnknown(m)
} }
var xxx_messageInfo_LotteryDrawRecord proto.InternalMessageInfo func (m *LotteryDrawRecord) Reset() { *m = LotteryDrawRecord{} }
func (m *LotteryDrawRecord) String() string { return proto.CompactTextString(m) }
func (*LotteryDrawRecord) ProtoMessage() {}
func (*LotteryDrawRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
func (m *LotteryDrawRecord) GetNumber() int64 { func (m *LotteryDrawRecord) GetNumber() int64 {
if m != nil { if m != nil {
...@@ -1684,36 +1183,13 @@ func (m *LotteryDrawRecord) GetTxHash() string { ...@@ -1684,36 +1183,13 @@ func (m *LotteryDrawRecord) GetTxHash() string {
} }
type LotteryDrawRecords struct { type LotteryDrawRecords struct {
Records []*LotteryDrawRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` Records []*LotteryDrawRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *LotteryDrawRecords) Reset() { *m = LotteryDrawRecords{} } func (m *LotteryDrawRecords) Reset() { *m = LotteryDrawRecords{} }
func (m *LotteryDrawRecords) String() string { return proto.CompactTextString(m) } func (m *LotteryDrawRecords) String() string { return proto.CompactTextString(m) }
func (*LotteryDrawRecords) ProtoMessage() {} func (*LotteryDrawRecords) ProtoMessage() {}
func (*LotteryDrawRecords) Descriptor() ([]byte, []int) { func (*LotteryDrawRecords) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
return fileDescriptor_2cce7afd61783b10, []int{23}
}
func (m *LotteryDrawRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryDrawRecords.Unmarshal(m, b)
}
func (m *LotteryDrawRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryDrawRecords.Marshal(b, m, deterministic)
}
func (m *LotteryDrawRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryDrawRecords.Merge(m, src)
}
func (m *LotteryDrawRecords) XXX_Size() int {
return xxx_messageInfo_LotteryDrawRecords.Size(m)
}
func (m *LotteryDrawRecords) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryDrawRecords.DiscardUnknown(m)
}
var xxx_messageInfo_LotteryDrawRecords proto.InternalMessageInfo
func (m *LotteryDrawRecords) GetRecords() []*LotteryDrawRecord { func (m *LotteryDrawRecords) GetRecords() []*LotteryDrawRecord {
if m != nil { if m != nil {
...@@ -1723,37 +1199,14 @@ func (m *LotteryDrawRecords) GetRecords() []*LotteryDrawRecord { ...@@ -1723,37 +1199,14 @@ func (m *LotteryDrawRecords) GetRecords() []*LotteryDrawRecord {
} }
type LotteryUpdateRec struct { type LotteryUpdateRec struct {
Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"`
Type int64 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Type int64 `protobuf:"varint,2,opt,name=type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *LotteryUpdateRec) Reset() { *m = LotteryUpdateRec{} } func (m *LotteryUpdateRec) Reset() { *m = LotteryUpdateRec{} }
func (m *LotteryUpdateRec) String() string { return proto.CompactTextString(m) } func (m *LotteryUpdateRec) String() string { return proto.CompactTextString(m) }
func (*LotteryUpdateRec) ProtoMessage() {} func (*LotteryUpdateRec) ProtoMessage() {}
func (*LotteryUpdateRec) Descriptor() ([]byte, []int) { func (*LotteryUpdateRec) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
return fileDescriptor_2cce7afd61783b10, []int{24}
}
func (m *LotteryUpdateRec) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryUpdateRec.Unmarshal(m, b)
}
func (m *LotteryUpdateRec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryUpdateRec.Marshal(b, m, deterministic)
}
func (m *LotteryUpdateRec) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryUpdateRec.Merge(m, src)
}
func (m *LotteryUpdateRec) XXX_Size() int {
return xxx_messageInfo_LotteryUpdateRec.Size(m)
}
func (m *LotteryUpdateRec) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryUpdateRec.DiscardUnknown(m)
}
var xxx_messageInfo_LotteryUpdateRec proto.InternalMessageInfo
func (m *LotteryUpdateRec) GetIndex() int64 { func (m *LotteryUpdateRec) GetIndex() int64 {
if m != nil { if m != nil {
...@@ -1770,36 +1223,13 @@ func (m *LotteryUpdateRec) GetType() int64 { ...@@ -1770,36 +1223,13 @@ func (m *LotteryUpdateRec) GetType() int64 {
} }
type LotteryUpdateRecs struct { type LotteryUpdateRecs struct {
Records []*LotteryUpdateRec `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` Records []*LotteryUpdateRec `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *LotteryUpdateRecs) Reset() { *m = LotteryUpdateRecs{} } func (m *LotteryUpdateRecs) Reset() { *m = LotteryUpdateRecs{} }
func (m *LotteryUpdateRecs) String() string { return proto.CompactTextString(m) } func (m *LotteryUpdateRecs) String() string { return proto.CompactTextString(m) }
func (*LotteryUpdateRecs) ProtoMessage() {} func (*LotteryUpdateRecs) ProtoMessage() {}
func (*LotteryUpdateRecs) Descriptor() ([]byte, []int) { func (*LotteryUpdateRecs) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
return fileDescriptor_2cce7afd61783b10, []int{25}
}
func (m *LotteryUpdateRecs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryUpdateRecs.Unmarshal(m, b)
}
func (m *LotteryUpdateRecs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryUpdateRecs.Marshal(b, m, deterministic)
}
func (m *LotteryUpdateRecs) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryUpdateRecs.Merge(m, src)
}
func (m *LotteryUpdateRecs) XXX_Size() int {
return xxx_messageInfo_LotteryUpdateRecs.Size(m)
}
func (m *LotteryUpdateRecs) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryUpdateRecs.DiscardUnknown(m)
}
var xxx_messageInfo_LotteryUpdateRecs proto.InternalMessageInfo
func (m *LotteryUpdateRecs) GetRecords() []*LotteryUpdateRec { func (m *LotteryUpdateRecs) GetRecords() []*LotteryUpdateRec {
if m != nil { if m != nil {
...@@ -1809,36 +1239,13 @@ func (m *LotteryUpdateRecs) GetRecords() []*LotteryUpdateRec { ...@@ -1809,36 +1239,13 @@ func (m *LotteryUpdateRecs) GetRecords() []*LotteryUpdateRec {
} }
type LotteryUpdateBuyInfo struct { type LotteryUpdateBuyInfo struct {
BuyInfo map[string]*LotteryUpdateRecs `protobuf:"bytes,1,rep,name=buyInfo,proto3" json:"buyInfo,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` BuyInfo map[string]*LotteryUpdateRecs `protobuf:"bytes,1,rep,name=buyInfo" json:"buyInfo,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *LotteryUpdateBuyInfo) Reset() { *m = LotteryUpdateBuyInfo{} } func (m *LotteryUpdateBuyInfo) Reset() { *m = LotteryUpdateBuyInfo{} }
func (m *LotteryUpdateBuyInfo) String() string { return proto.CompactTextString(m) } func (m *LotteryUpdateBuyInfo) String() string { return proto.CompactTextString(m) }
func (*LotteryUpdateBuyInfo) ProtoMessage() {} func (*LotteryUpdateBuyInfo) ProtoMessage() {}
func (*LotteryUpdateBuyInfo) Descriptor() ([]byte, []int) { func (*LotteryUpdateBuyInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{26} }
return fileDescriptor_2cce7afd61783b10, []int{26}
}
func (m *LotteryUpdateBuyInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LotteryUpdateBuyInfo.Unmarshal(m, b)
}
func (m *LotteryUpdateBuyInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LotteryUpdateBuyInfo.Marshal(b, m, deterministic)
}
func (m *LotteryUpdateBuyInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_LotteryUpdateBuyInfo.Merge(m, src)
}
func (m *LotteryUpdateBuyInfo) XXX_Size() int {
return xxx_messageInfo_LotteryUpdateBuyInfo.Size(m)
}
func (m *LotteryUpdateBuyInfo) XXX_DiscardUnknown() {
xxx_messageInfo_LotteryUpdateBuyInfo.DiscardUnknown(m)
}
var xxx_messageInfo_LotteryUpdateBuyInfo proto.InternalMessageInfo
func (m *LotteryUpdateBuyInfo) GetBuyInfo() map[string]*LotteryUpdateRecs { func (m *LotteryUpdateBuyInfo) GetBuyInfo() map[string]*LotteryUpdateRecs {
if m != nil { if m != nil {
...@@ -1848,36 +1255,13 @@ func (m *LotteryUpdateBuyInfo) GetBuyInfo() map[string]*LotteryUpdateRecs { ...@@ -1848,36 +1255,13 @@ func (m *LotteryUpdateBuyInfo) GetBuyInfo() map[string]*LotteryUpdateRecs {
} }
type ReplyLotteryPurchaseAddr struct { type ReplyLotteryPurchaseAddr struct {
Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"` Address []string `protobuf:"bytes,1,rep,name=address" json:"address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyLotteryPurchaseAddr) Reset() { *m = ReplyLotteryPurchaseAddr{} }
func (m *ReplyLotteryPurchaseAddr) String() string { return proto.CompactTextString(m) }
func (*ReplyLotteryPurchaseAddr) ProtoMessage() {}
func (*ReplyLotteryPurchaseAddr) Descriptor() ([]byte, []int) {
return fileDescriptor_2cce7afd61783b10, []int{27}
}
func (m *ReplyLotteryPurchaseAddr) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyLotteryPurchaseAddr.Unmarshal(m, b)
}
func (m *ReplyLotteryPurchaseAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyLotteryPurchaseAddr.Marshal(b, m, deterministic)
}
func (m *ReplyLotteryPurchaseAddr) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyLotteryPurchaseAddr.Merge(m, src)
}
func (m *ReplyLotteryPurchaseAddr) XXX_Size() int {
return xxx_messageInfo_ReplyLotteryPurchaseAddr.Size(m)
}
func (m *ReplyLotteryPurchaseAddr) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyLotteryPurchaseAddr.DiscardUnknown(m)
} }
var xxx_messageInfo_ReplyLotteryPurchaseAddr proto.InternalMessageInfo func (m *ReplyLotteryPurchaseAddr) Reset() { *m = ReplyLotteryPurchaseAddr{} }
func (m *ReplyLotteryPurchaseAddr) String() string { return proto.CompactTextString(m) }
func (*ReplyLotteryPurchaseAddr) ProtoMessage() {}
func (*ReplyLotteryPurchaseAddr) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{27} }
func (m *ReplyLotteryPurchaseAddr) GetAddress() []string { func (m *ReplyLotteryPurchaseAddr) GetAddress() []string {
if m != nil { if m != nil {
...@@ -1890,7 +1274,6 @@ func init() { ...@@ -1890,7 +1274,6 @@ func init() {
proto.RegisterType((*PurchaseRecord)(nil), "types.PurchaseRecord") proto.RegisterType((*PurchaseRecord)(nil), "types.PurchaseRecord")
proto.RegisterType((*PurchaseRecords)(nil), "types.PurchaseRecords") proto.RegisterType((*PurchaseRecords)(nil), "types.PurchaseRecords")
proto.RegisterType((*Lottery)(nil), "types.Lottery") proto.RegisterType((*Lottery)(nil), "types.Lottery")
proto.RegisterMapType((map[string]*PurchaseRecords)(nil), "types.Lottery.RecordsEntry")
proto.RegisterType((*MissingRecord)(nil), "types.MissingRecord") proto.RegisterType((*MissingRecord)(nil), "types.MissingRecord")
proto.RegisterType((*LotteryAction)(nil), "types.LotteryAction") proto.RegisterType((*LotteryAction)(nil), "types.LotteryAction")
proto.RegisterType((*LotteryCreate)(nil), "types.LotteryCreate") proto.RegisterType((*LotteryCreate)(nil), "types.LotteryCreate")
...@@ -1915,13 +1298,12 @@ func init() { ...@@ -1915,13 +1298,12 @@ func init() {
proto.RegisterType((*LotteryUpdateRec)(nil), "types.LotteryUpdateRec") proto.RegisterType((*LotteryUpdateRec)(nil), "types.LotteryUpdateRec")
proto.RegisterType((*LotteryUpdateRecs)(nil), "types.LotteryUpdateRecs") proto.RegisterType((*LotteryUpdateRecs)(nil), "types.LotteryUpdateRecs")
proto.RegisterType((*LotteryUpdateBuyInfo)(nil), "types.LotteryUpdateBuyInfo") proto.RegisterType((*LotteryUpdateBuyInfo)(nil), "types.LotteryUpdateBuyInfo")
proto.RegisterMapType((map[string]*LotteryUpdateRecs)(nil), "types.LotteryUpdateBuyInfo.BuyInfoEntry")
proto.RegisterType((*ReplyLotteryPurchaseAddr)(nil), "types.ReplyLotteryPurchaseAddr") proto.RegisterType((*ReplyLotteryPurchaseAddr)(nil), "types.ReplyLotteryPurchaseAddr")
} }
func init() { proto.RegisterFile("lottery.proto", fileDescriptor_2cce7afd61783b10) } func init() { proto.RegisterFile("lottery.proto", fileDescriptor0) }
var fileDescriptor_2cce7afd61783b10 = []byte{ var fileDescriptor0 = []byte{
// 1252 bytes of a gzipped FileDescriptorProto // 1252 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x5f, 0x6f, 0xe3, 0x44, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x5f, 0x6f, 0xe3, 0x44,
0x10, 0xaf, 0xed, 0x38, 0x69, 0x26, 0x69, 0xee, 0xba, 0x2d, 0x3d, 0x53, 0x50, 0x55, 0x59, 0x3a, 0x10, 0xaf, 0xed, 0x38, 0x69, 0x26, 0x69, 0xee, 0xba, 0x2d, 0x3d, 0x53, 0x50, 0x55, 0x59, 0x3a,
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: norm.proto // source: norm.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
norm.proto
It has these top-level messages:
Norm
NormAction
NormPut
NormGetKey
*/
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
proto "github.com/golang/protobuf/proto" import math "math"
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 _ = proto.Marshal var _ = proto.Marshal
...@@ -21,39 +31,16 @@ var _ = math.Inf ...@@ -21,39 +31,16 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Norm struct { type Norm struct {
NormId []byte `protobuf:"bytes,1,opt,name=normId,proto3" json:"normId,omitempty"` NormId []byte `protobuf:"bytes,1,opt,name=normId,proto3" json:"normId,omitempty"`
CreateTime int64 `protobuf:"varint,2,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,2,opt,name=createTime" json:"createTime,omitempty"`
Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Norm) Reset() { *m = Norm{} } func (m *Norm) Reset() { *m = Norm{} }
func (m *Norm) String() string { return proto.CompactTextString(m) } func (m *Norm) String() string { return proto.CompactTextString(m) }
func (*Norm) ProtoMessage() {} func (*Norm) ProtoMessage() {}
func (*Norm) Descriptor() ([]byte, []int) { func (*Norm) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
return fileDescriptor_4c505000707f0293, []int{0}
}
func (m *Norm) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Norm.Unmarshal(m, b)
}
func (m *Norm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Norm.Marshal(b, m, deterministic)
}
func (m *Norm) XXX_Merge(src proto.Message) {
xxx_messageInfo_Norm.Merge(m, src)
}
func (m *Norm) XXX_Size() int {
return xxx_messageInfo_Norm.Size(m)
}
func (m *Norm) XXX_DiscardUnknown() {
xxx_messageInfo_Norm.DiscardUnknown(m)
}
var xxx_messageInfo_Norm proto.InternalMessageInfo
func (m *Norm) GetNormId() []byte { func (m *Norm) GetNormId() []byte {
if m != nil { if m != nil {
...@@ -86,44 +73,21 @@ func (m *Norm) GetValue() []byte { ...@@ -86,44 +73,21 @@ func (m *Norm) GetValue() []byte {
type NormAction struct { type NormAction struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *NormAction_Nput // *NormAction_Nput
Value isNormAction_Value `protobuf_oneof:"value"` Value isNormAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,5,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,5,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NormAction) Reset() { *m = NormAction{} }
func (m *NormAction) String() string { return proto.CompactTextString(m) }
func (*NormAction) ProtoMessage() {}
func (*NormAction) Descriptor() ([]byte, []int) {
return fileDescriptor_4c505000707f0293, []int{1}
}
func (m *NormAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormAction.Unmarshal(m, b)
}
func (m *NormAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormAction.Marshal(b, m, deterministic)
}
func (m *NormAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormAction.Merge(m, src)
}
func (m *NormAction) XXX_Size() int {
return xxx_messageInfo_NormAction.Size(m)
}
func (m *NormAction) XXX_DiscardUnknown() {
xxx_messageInfo_NormAction.DiscardUnknown(m)
} }
var xxx_messageInfo_NormAction proto.InternalMessageInfo func (m *NormAction) Reset() { *m = NormAction{} }
func (m *NormAction) String() string { return proto.CompactTextString(m) }
func (*NormAction) ProtoMessage() {}
func (*NormAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type isNormAction_Value interface { type isNormAction_Value interface {
isNormAction_Value() isNormAction_Value()
} }
type NormAction_Nput struct { type NormAction_Nput struct {
Nput *NormPut `protobuf:"bytes,1,opt,name=nput,proto3,oneof"` Nput *NormPut `protobuf:"bytes,1,opt,name=nput,oneof"`
} }
func (*NormAction_Nput) isNormAction_Value() {} func (*NormAction_Nput) isNormAction_Value() {}
...@@ -194,7 +158,7 @@ func _NormAction_OneofSizer(msg proto.Message) (n int) { ...@@ -194,7 +158,7 @@ func _NormAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *NormAction_Nput: case *NormAction_Nput:
s := proto.Size(x.Nput) s := proto.Size(x.Nput)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -205,37 +169,14 @@ func _NormAction_OneofSizer(msg proto.Message) (n int) { ...@@ -205,37 +169,14 @@ func _NormAction_OneofSizer(msg proto.Message) (n int) {
} }
type NormPut struct { type NormPut struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *NormPut) Reset() { *m = NormPut{} } func (m *NormPut) Reset() { *m = NormPut{} }
func (m *NormPut) String() string { return proto.CompactTextString(m) } func (m *NormPut) String() string { return proto.CompactTextString(m) }
func (*NormPut) ProtoMessage() {} func (*NormPut) ProtoMessage() {}
func (*NormPut) Descriptor() ([]byte, []int) { func (*NormPut) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return fileDescriptor_4c505000707f0293, []int{2}
}
func (m *NormPut) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormPut.Unmarshal(m, b)
}
func (m *NormPut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormPut.Marshal(b, m, deterministic)
}
func (m *NormPut) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormPut.Merge(m, src)
}
func (m *NormPut) XXX_Size() int {
return xxx_messageInfo_NormPut.Size(m)
}
func (m *NormPut) XXX_DiscardUnknown() {
xxx_messageInfo_NormPut.DiscardUnknown(m)
}
var xxx_messageInfo_NormPut proto.InternalMessageInfo
func (m *NormPut) GetKey() string { func (m *NormPut) GetKey() string {
if m != nil { if m != nil {
...@@ -252,36 +193,13 @@ func (m *NormPut) GetValue() []byte { ...@@ -252,36 +193,13 @@ func (m *NormPut) GetValue() []byte {
} }
type NormGetKey struct { type NormGetKey struct {
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NormGetKey) Reset() { *m = NormGetKey{} }
func (m *NormGetKey) String() string { return proto.CompactTextString(m) }
func (*NormGetKey) ProtoMessage() {}
func (*NormGetKey) Descriptor() ([]byte, []int) {
return fileDescriptor_4c505000707f0293, []int{3}
}
func (m *NormGetKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NormGetKey.Unmarshal(m, b)
}
func (m *NormGetKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NormGetKey.Marshal(b, m, deterministic)
}
func (m *NormGetKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_NormGetKey.Merge(m, src)
}
func (m *NormGetKey) XXX_Size() int {
return xxx_messageInfo_NormGetKey.Size(m)
}
func (m *NormGetKey) XXX_DiscardUnknown() {
xxx_messageInfo_NormGetKey.DiscardUnknown(m)
} }
var xxx_messageInfo_NormGetKey proto.InternalMessageInfo func (m *NormGetKey) Reset() { *m = NormGetKey{} }
func (m *NormGetKey) String() string { return proto.CompactTextString(m) }
func (*NormGetKey) ProtoMessage() {}
func (*NormGetKey) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *NormGetKey) GetKey() string { func (m *NormGetKey) GetKey() string {
if m != nil { if m != nil {
...@@ -297,9 +215,9 @@ func init() { ...@@ -297,9 +215,9 @@ func init() {
proto.RegisterType((*NormGetKey)(nil), "types.NormGetKey") proto.RegisterType((*NormGetKey)(nil), "types.NormGetKey")
} }
func init() { proto.RegisterFile("norm.proto", fileDescriptor_4c505000707f0293) } func init() { proto.RegisterFile("norm.proto", fileDescriptor0) }
var fileDescriptor_4c505000707f0293 = []byte{ var fileDescriptor0 = []byte{
// 211 bytes of a gzipped FileDescriptorProto // 211 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xc6, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xc6, 0x30,
0x10, 0x84, 0x4d, 0xda, 0xfc, 0xc5, 0x55, 0x8a, 0x04, 0x91, 0x9c, 0x4a, 0x28, 0x1e, 0x72, 0x2a, 0x10, 0x84, 0x4d, 0xda, 0xfc, 0xc5, 0x55, 0x8a, 0x04, 0x91, 0x9c, 0x4a, 0x28, 0x1e, 0x72, 0x2a,
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: paracross.proto // source: paracross.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
paracross.proto
It has these top-level messages:
ParacrossStatusDetails
ParacrossHeightStatus
ParacrossStatus
ParacrossNodeStatus
ParacrossCommitAction
ParacrossMinerAction
ParacrossAction
ReceiptParacrossCommit
ReceiptParacrossMiner
ReceiptParacrossDone
ReceiptParacrossRecord
ParacrossTx
ReqParacrossTitleHeight
RespParacrossTitles
ParacrossAsset
*/
package types package types
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import types2 "github.com/33cn/chain33/types"
import types1 "github.com/33cn/chain33/types"
import ( import (
context "context" context "golang.org/x/net/context"
fmt "fmt"
types "github.com/33cn/chain33/types"
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.
...@@ -25,37 +50,14 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package ...@@ -25,37 +50,14 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// stateDB // stateDB
type ParacrossStatusDetails struct { type ParacrossStatusDetails struct {
Addrs []string `protobuf:"bytes,1,rep,name=addrs,proto3" json:"addrs,omitempty"` Addrs []string `protobuf:"bytes,1,rep,name=addrs" json:"addrs,omitempty"`
BlockHash [][]byte `protobuf:"bytes,2,rep,name=blockHash,proto3" json:"blockHash,omitempty"` BlockHash [][]byte `protobuf:"bytes,2,rep,name=blockHash,proto3" json:"blockHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParacrossStatusDetails) Reset() { *m = ParacrossStatusDetails{} }
func (m *ParacrossStatusDetails) String() string { return proto.CompactTextString(m) }
func (*ParacrossStatusDetails) ProtoMessage() {}
func (*ParacrossStatusDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{0}
}
func (m *ParacrossStatusDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossStatusDetails.Unmarshal(m, b)
}
func (m *ParacrossStatusDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossStatusDetails.Marshal(b, m, deterministic)
}
func (m *ParacrossStatusDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossStatusDetails.Merge(m, src)
}
func (m *ParacrossStatusDetails) XXX_Size() int {
return xxx_messageInfo_ParacrossStatusDetails.Size(m)
}
func (m *ParacrossStatusDetails) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossStatusDetails.DiscardUnknown(m)
} }
var xxx_messageInfo_ParacrossStatusDetails proto.InternalMessageInfo func (m *ParacrossStatusDetails) Reset() { *m = ParacrossStatusDetails{} }
func (m *ParacrossStatusDetails) String() string { return proto.CompactTextString(m) }
func (*ParacrossStatusDetails) ProtoMessage() {}
func (*ParacrossStatusDetails) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *ParacrossStatusDetails) GetAddrs() []string { func (m *ParacrossStatusDetails) GetAddrs() []string {
if m != nil { if m != nil {
...@@ -73,39 +75,16 @@ func (m *ParacrossStatusDetails) GetBlockHash() [][]byte { ...@@ -73,39 +75,16 @@ func (m *ParacrossStatusDetails) GetBlockHash() [][]byte {
type ParacrossHeightStatus struct { type ParacrossHeightStatus struct {
// ing, done // ing, done
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
Details *ParacrossStatusDetails `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"` Details *ParacrossStatusDetails `protobuf:"bytes,4,opt,name=details" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParacrossHeightStatus) Reset() { *m = ParacrossHeightStatus{} }
func (m *ParacrossHeightStatus) String() string { return proto.CompactTextString(m) }
func (*ParacrossHeightStatus) ProtoMessage() {}
func (*ParacrossHeightStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{1}
}
func (m *ParacrossHeightStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossHeightStatus.Unmarshal(m, b)
}
func (m *ParacrossHeightStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossHeightStatus.Marshal(b, m, deterministic)
}
func (m *ParacrossHeightStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossHeightStatus.Merge(m, src)
}
func (m *ParacrossHeightStatus) XXX_Size() int {
return xxx_messageInfo_ParacrossHeightStatus.Size(m)
}
func (m *ParacrossHeightStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossHeightStatus.DiscardUnknown(m)
} }
var xxx_messageInfo_ParacrossHeightStatus proto.InternalMessageInfo func (m *ParacrossHeightStatus) Reset() { *m = ParacrossHeightStatus{} }
func (m *ParacrossHeightStatus) String() string { return proto.CompactTextString(m) }
func (*ParacrossHeightStatus) ProtoMessage() {}
func (*ParacrossHeightStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ParacrossHeightStatus) GetStatus() int32 { func (m *ParacrossHeightStatus) GetStatus() int32 {
if m != nil { if m != nil {
...@@ -136,38 +115,15 @@ func (m *ParacrossHeightStatus) GetDetails() *ParacrossStatusDetails { ...@@ -136,38 +115,15 @@ func (m *ParacrossHeightStatus) GetDetails() *ParacrossStatusDetails {
} }
type ParacrossStatus struct { type ParacrossStatus struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
BlockHash []byte `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"` BlockHash []byte `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ParacrossStatus) Reset() { *m = ParacrossStatus{} } func (m *ParacrossStatus) Reset() { *m = ParacrossStatus{} }
func (m *ParacrossStatus) String() string { return proto.CompactTextString(m) } func (m *ParacrossStatus) String() string { return proto.CompactTextString(m) }
func (*ParacrossStatus) ProtoMessage() {} func (*ParacrossStatus) ProtoMessage() {}
func (*ParacrossStatus) Descriptor() ([]byte, []int) { func (*ParacrossStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return fileDescriptor_6a397e38c9ea6747, []int{2}
}
func (m *ParacrossStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossStatus.Unmarshal(m, b)
}
func (m *ParacrossStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossStatus.Marshal(b, m, deterministic)
}
func (m *ParacrossStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossStatus.Merge(m, src)
}
func (m *ParacrossStatus) XXX_Size() int {
return xxx_messageInfo_ParacrossStatus.Size(m)
}
func (m *ParacrossStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ParacrossStatus proto.InternalMessageInfo
func (m *ParacrossStatus) GetTitle() string { func (m *ParacrossStatus) GetTitle() string {
if m != nil { if m != nil {
...@@ -192,48 +148,25 @@ func (m *ParacrossStatus) GetBlockHash() []byte { ...@@ -192,48 +148,25 @@ func (m *ParacrossStatus) GetBlockHash() []byte {
// action // action
type ParacrossNodeStatus struct { type ParacrossNodeStatus struct {
MainBlockHash []byte `protobuf:"bytes,1,opt,name=mainBlockHash,proto3" json:"mainBlockHash,omitempty"` MainBlockHash []byte `protobuf:"bytes,1,opt,name=mainBlockHash,proto3" json:"mainBlockHash,omitempty"`
MainBlockHeight int64 `protobuf:"varint,2,opt,name=mainBlockHeight,proto3" json:"mainBlockHeight,omitempty"` MainBlockHeight int64 `protobuf:"varint,2,opt,name=mainBlockHeight" json:"mainBlockHeight,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Title string `protobuf:"bytes,3,opt,name=title" json:"title,omitempty"`
Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,4,opt,name=height" json:"height,omitempty"`
PreBlockHash []byte `protobuf:"bytes,5,opt,name=preBlockHash,proto3" json:"preBlockHash,omitempty"` PreBlockHash []byte `protobuf:"bytes,5,opt,name=preBlockHash,proto3" json:"preBlockHash,omitempty"`
BlockHash []byte `protobuf:"bytes,6,opt,name=blockHash,proto3" json:"blockHash,omitempty"` BlockHash []byte `protobuf:"bytes,6,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
PreStateHash []byte `protobuf:"bytes,7,opt,name=preStateHash,proto3" json:"preStateHash,omitempty"` PreStateHash []byte `protobuf:"bytes,7,opt,name=preStateHash,proto3" json:"preStateHash,omitempty"`
StateHash []byte `protobuf:"bytes,8,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,8,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
TxCounts uint32 `protobuf:"varint,9,opt,name=txCounts,proto3" json:"txCounts,omitempty"` TxCounts uint32 `protobuf:"varint,9,opt,name=txCounts" json:"txCounts,omitempty"`
TxResult []byte `protobuf:"bytes,10,opt,name=txResult,proto3" json:"txResult,omitempty"` TxResult []byte `protobuf:"bytes,10,opt,name=txResult,proto3" json:"txResult,omitempty"`
TxHashs [][]byte `protobuf:"bytes,11,rep,name=txHashs,proto3" json:"txHashs,omitempty"` TxHashs [][]byte `protobuf:"bytes,11,rep,name=txHashs,proto3" json:"txHashs,omitempty"`
CrossTxResult []byte `protobuf:"bytes,12,opt,name=crossTxResult,proto3" json:"crossTxResult,omitempty"` CrossTxResult []byte `protobuf:"bytes,12,opt,name=crossTxResult,proto3" json:"crossTxResult,omitempty"`
CrossTxHashs [][]byte `protobuf:"bytes,13,rep,name=crossTxHashs,proto3" json:"crossTxHashs,omitempty"` CrossTxHashs [][]byte `protobuf:"bytes,13,rep,name=crossTxHashs,proto3" json:"crossTxHashs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *ParacrossNodeStatus) Reset() { *m = ParacrossNodeStatus{} }
} func (m *ParacrossNodeStatus) String() string { return proto.CompactTextString(m) }
func (*ParacrossNodeStatus) ProtoMessage() {}
func (m *ParacrossNodeStatus) Reset() { *m = ParacrossNodeStatus{} } func (*ParacrossNodeStatus) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ParacrossNodeStatus) String() string { return proto.CompactTextString(m) }
func (*ParacrossNodeStatus) ProtoMessage() {}
func (*ParacrossNodeStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{3}
}
func (m *ParacrossNodeStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossNodeStatus.Unmarshal(m, b)
}
func (m *ParacrossNodeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossNodeStatus.Marshal(b, m, deterministic)
}
func (m *ParacrossNodeStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossNodeStatus.Merge(m, src)
}
func (m *ParacrossNodeStatus) XXX_Size() int {
return xxx_messageInfo_ParacrossNodeStatus.Size(m)
}
func (m *ParacrossNodeStatus) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossNodeStatus.DiscardUnknown(m)
}
var xxx_messageInfo_ParacrossNodeStatus proto.InternalMessageInfo
func (m *ParacrossNodeStatus) GetMainBlockHash() []byte { func (m *ParacrossNodeStatus) GetMainBlockHash() []byte {
if m != nil { if m != nil {
...@@ -327,36 +260,13 @@ func (m *ParacrossNodeStatus) GetCrossTxHashs() [][]byte { ...@@ -327,36 +260,13 @@ func (m *ParacrossNodeStatus) GetCrossTxHashs() [][]byte {
} }
type ParacrossCommitAction struct { type ParacrossCommitAction struct {
Status *ParacrossNodeStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Status *ParacrossNodeStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParacrossCommitAction) Reset() { *m = ParacrossCommitAction{} }
func (m *ParacrossCommitAction) String() string { return proto.CompactTextString(m) }
func (*ParacrossCommitAction) ProtoMessage() {}
func (*ParacrossCommitAction) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{4}
}
func (m *ParacrossCommitAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossCommitAction.Unmarshal(m, b)
}
func (m *ParacrossCommitAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossCommitAction.Marshal(b, m, deterministic)
}
func (m *ParacrossCommitAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossCommitAction.Merge(m, src)
}
func (m *ParacrossCommitAction) XXX_Size() int {
return xxx_messageInfo_ParacrossCommitAction.Size(m)
}
func (m *ParacrossCommitAction) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossCommitAction.DiscardUnknown(m)
} }
var xxx_messageInfo_ParacrossCommitAction proto.InternalMessageInfo func (m *ParacrossCommitAction) Reset() { *m = ParacrossCommitAction{} }
func (m *ParacrossCommitAction) String() string { return proto.CompactTextString(m) }
func (*ParacrossCommitAction) ProtoMessage() {}
func (*ParacrossCommitAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ParacrossCommitAction) GetStatus() *ParacrossNodeStatus { func (m *ParacrossCommitAction) GetStatus() *ParacrossNodeStatus {
if m != nil { if m != nil {
...@@ -366,36 +276,13 @@ func (m *ParacrossCommitAction) GetStatus() *ParacrossNodeStatus { ...@@ -366,36 +276,13 @@ func (m *ParacrossCommitAction) GetStatus() *ParacrossNodeStatus {
} }
type ParacrossMinerAction struct { type ParacrossMinerAction struct {
Status *ParacrossNodeStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Status *ParacrossNodeStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParacrossMinerAction) Reset() { *m = ParacrossMinerAction{} }
func (m *ParacrossMinerAction) String() string { return proto.CompactTextString(m) }
func (*ParacrossMinerAction) ProtoMessage() {}
func (*ParacrossMinerAction) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{5}
}
func (m *ParacrossMinerAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossMinerAction.Unmarshal(m, b)
}
func (m *ParacrossMinerAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossMinerAction.Marshal(b, m, deterministic)
}
func (m *ParacrossMinerAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossMinerAction.Merge(m, src)
}
func (m *ParacrossMinerAction) XXX_Size() int {
return xxx_messageInfo_ParacrossMinerAction.Size(m)
}
func (m *ParacrossMinerAction) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossMinerAction.DiscardUnknown(m)
} }
var xxx_messageInfo_ParacrossMinerAction proto.InternalMessageInfo func (m *ParacrossMinerAction) Reset() { *m = ParacrossMinerAction{} }
func (m *ParacrossMinerAction) String() string { return proto.CompactTextString(m) }
func (*ParacrossMinerAction) ProtoMessage() {}
func (*ParacrossMinerAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ParacrossMinerAction) GetStatus() *ParacrossNodeStatus { func (m *ParacrossMinerAction) GetStatus() *ParacrossNodeStatus {
if m != nil { if m != nil {
...@@ -413,82 +300,47 @@ type ParacrossAction struct { ...@@ -413,82 +300,47 @@ type ParacrossAction struct {
// *ParacrossAction_Transfer // *ParacrossAction_Transfer
// *ParacrossAction_Withdraw // *ParacrossAction_Withdraw
// *ParacrossAction_TransferToExec // *ParacrossAction_TransferToExec
Value isParacrossAction_Value `protobuf_oneof:"value"` Value isParacrossAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,2,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,2,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ParacrossAction) Reset() { *m = ParacrossAction{} } func (m *ParacrossAction) Reset() { *m = ParacrossAction{} }
func (m *ParacrossAction) String() string { return proto.CompactTextString(m) } func (m *ParacrossAction) String() string { return proto.CompactTextString(m) }
func (*ParacrossAction) ProtoMessage() {} func (*ParacrossAction) ProtoMessage() {}
func (*ParacrossAction) Descriptor() ([]byte, []int) { func (*ParacrossAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
return fileDescriptor_6a397e38c9ea6747, []int{6}
}
func (m *ParacrossAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossAction.Unmarshal(m, b)
}
func (m *ParacrossAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossAction.Marshal(b, m, deterministic)
}
func (m *ParacrossAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossAction.Merge(m, src)
}
func (m *ParacrossAction) XXX_Size() int {
return xxx_messageInfo_ParacrossAction.Size(m)
}
func (m *ParacrossAction) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossAction.DiscardUnknown(m)
}
var xxx_messageInfo_ParacrossAction proto.InternalMessageInfo
type isParacrossAction_Value interface { type isParacrossAction_Value interface {
isParacrossAction_Value() isParacrossAction_Value()
} }
type ParacrossAction_Commit struct { type ParacrossAction_Commit struct {
Commit *ParacrossCommitAction `protobuf:"bytes,1,opt,name=commit,proto3,oneof"` Commit *ParacrossCommitAction `protobuf:"bytes,1,opt,name=commit,oneof"`
} }
type ParacrossAction_Miner struct { type ParacrossAction_Miner struct {
Miner *ParacrossMinerAction `protobuf:"bytes,3,opt,name=miner,proto3,oneof"` Miner *ParacrossMinerAction `protobuf:"bytes,3,opt,name=miner,oneof"`
} }
type ParacrossAction_AssetTransfer struct { type ParacrossAction_AssetTransfer struct {
AssetTransfer *types.AssetsTransfer `protobuf:"bytes,4,opt,name=assetTransfer,proto3,oneof"` AssetTransfer *types2.AssetsTransfer `protobuf:"bytes,4,opt,name=assetTransfer,oneof"`
} }
type ParacrossAction_AssetWithdraw struct { type ParacrossAction_AssetWithdraw struct {
AssetWithdraw *types.AssetsWithdraw `protobuf:"bytes,5,opt,name=assetWithdraw,proto3,oneof"` AssetWithdraw *types2.AssetsWithdraw `protobuf:"bytes,5,opt,name=assetWithdraw,oneof"`
} }
type ParacrossAction_Transfer struct { type ParacrossAction_Transfer struct {
Transfer *types.AssetsTransfer `protobuf:"bytes,6,opt,name=transfer,proto3,oneof"` Transfer *types2.AssetsTransfer `protobuf:"bytes,6,opt,name=transfer,oneof"`
} }
type ParacrossAction_Withdraw struct { type ParacrossAction_Withdraw struct {
Withdraw *types.AssetsWithdraw `protobuf:"bytes,7,opt,name=withdraw,proto3,oneof"` Withdraw *types2.AssetsWithdraw `protobuf:"bytes,7,opt,name=withdraw,oneof"`
} }
type ParacrossAction_TransferToExec struct { type ParacrossAction_TransferToExec struct {
TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,8,opt,name=transferToExec,proto3,oneof"` TransferToExec *types2.AssetsTransferToExec `protobuf:"bytes,8,opt,name=transferToExec,oneof"`
} }
func (*ParacrossAction_Commit) isParacrossAction_Value() {} func (*ParacrossAction_Commit) isParacrossAction_Value() {}
func (*ParacrossAction_Miner) isParacrossAction_Value() {}
func (*ParacrossAction_Miner) isParacrossAction_Value() {} func (*ParacrossAction_AssetTransfer) isParacrossAction_Value() {}
func (*ParacrossAction_AssetWithdraw) isParacrossAction_Value() {}
func (*ParacrossAction_AssetTransfer) isParacrossAction_Value() {} func (*ParacrossAction_Transfer) isParacrossAction_Value() {}
func (*ParacrossAction_Withdraw) isParacrossAction_Value() {}
func (*ParacrossAction_AssetWithdraw) isParacrossAction_Value() {}
func (*ParacrossAction_Transfer) isParacrossAction_Value() {}
func (*ParacrossAction_Withdraw) isParacrossAction_Value() {}
func (*ParacrossAction_TransferToExec) isParacrossAction_Value() {} func (*ParacrossAction_TransferToExec) isParacrossAction_Value() {}
func (m *ParacrossAction) GetValue() isParacrossAction_Value { func (m *ParacrossAction) GetValue() isParacrossAction_Value {
...@@ -512,35 +364,35 @@ func (m *ParacrossAction) GetMiner() *ParacrossMinerAction { ...@@ -512,35 +364,35 @@ func (m *ParacrossAction) GetMiner() *ParacrossMinerAction {
return nil return nil
} }
func (m *ParacrossAction) GetAssetTransfer() *types.AssetsTransfer { func (m *ParacrossAction) GetAssetTransfer() *types2.AssetsTransfer {
if x, ok := m.GetValue().(*ParacrossAction_AssetTransfer); ok { if x, ok := m.GetValue().(*ParacrossAction_AssetTransfer); ok {
return x.AssetTransfer return x.AssetTransfer
} }
return nil return nil
} }
func (m *ParacrossAction) GetAssetWithdraw() *types.AssetsWithdraw { func (m *ParacrossAction) GetAssetWithdraw() *types2.AssetsWithdraw {
if x, ok := m.GetValue().(*ParacrossAction_AssetWithdraw); ok { if x, ok := m.GetValue().(*ParacrossAction_AssetWithdraw); ok {
return x.AssetWithdraw return x.AssetWithdraw
} }
return nil return nil
} }
func (m *ParacrossAction) GetTransfer() *types.AssetsTransfer { func (m *ParacrossAction) GetTransfer() *types2.AssetsTransfer {
if x, ok := m.GetValue().(*ParacrossAction_Transfer); ok { if x, ok := m.GetValue().(*ParacrossAction_Transfer); ok {
return x.Transfer return x.Transfer
} }
return nil return nil
} }
func (m *ParacrossAction) GetWithdraw() *types.AssetsWithdraw { func (m *ParacrossAction) GetWithdraw() *types2.AssetsWithdraw {
if x, ok := m.GetValue().(*ParacrossAction_Withdraw); ok { if x, ok := m.GetValue().(*ParacrossAction_Withdraw); ok {
return x.Withdraw return x.Withdraw
} }
return nil return nil
} }
func (m *ParacrossAction) GetTransferToExec() *types.AssetsTransferToExec { func (m *ParacrossAction) GetTransferToExec() *types2.AssetsTransferToExec {
if x, ok := m.GetValue().(*ParacrossAction_TransferToExec); ok { if x, ok := m.GetValue().(*ParacrossAction_TransferToExec); ok {
return x.TransferToExec return x.TransferToExec
} }
...@@ -636,7 +488,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot ...@@ -636,7 +488,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsTransfer) msg := new(types2.AssetsTransfer)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &ParacrossAction_AssetTransfer{msg} m.Value = &ParacrossAction_AssetTransfer{msg}
return true, err return true, err
...@@ -644,7 +496,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot ...@@ -644,7 +496,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsWithdraw) msg := new(types2.AssetsWithdraw)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &ParacrossAction_AssetWithdraw{msg} m.Value = &ParacrossAction_AssetWithdraw{msg}
return true, err return true, err
...@@ -652,7 +504,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot ...@@ -652,7 +504,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsTransfer) msg := new(types2.AssetsTransfer)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &ParacrossAction_Transfer{msg} m.Value = &ParacrossAction_Transfer{msg}
return true, err return true, err
...@@ -660,7 +512,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot ...@@ -660,7 +512,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsWithdraw) msg := new(types2.AssetsWithdraw)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &ParacrossAction_Withdraw{msg} m.Value = &ParacrossAction_Withdraw{msg}
return true, err return true, err
...@@ -668,7 +520,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot ...@@ -668,7 +520,7 @@ func _ParacrossAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *prot
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsTransferToExec) msg := new(types2.AssetsTransferToExec)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &ParacrossAction_TransferToExec{msg} m.Value = &ParacrossAction_TransferToExec{msg}
return true, err return true, err
...@@ -683,37 +535,37 @@ func _ParacrossAction_OneofSizer(msg proto.Message) (n int) { ...@@ -683,37 +535,37 @@ func _ParacrossAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *ParacrossAction_Commit: case *ParacrossAction_Commit:
s := proto.Size(x.Commit) s := proto.Size(x.Commit)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ParacrossAction_Miner: case *ParacrossAction_Miner:
s := proto.Size(x.Miner) s := proto.Size(x.Miner)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ParacrossAction_AssetTransfer: case *ParacrossAction_AssetTransfer:
s := proto.Size(x.AssetTransfer) s := proto.Size(x.AssetTransfer)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ParacrossAction_AssetWithdraw: case *ParacrossAction_AssetWithdraw:
s := proto.Size(x.AssetWithdraw) s := proto.Size(x.AssetWithdraw)
n += 1 // tag and wire n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ParacrossAction_Transfer: case *ParacrossAction_Transfer:
s := proto.Size(x.Transfer) s := proto.Size(x.Transfer)
n += 1 // tag and wire n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ParacrossAction_Withdraw: case *ParacrossAction_Withdraw:
s := proto.Size(x.Withdraw) s := proto.Size(x.Withdraw)
n += 1 // tag and wire n += proto.SizeVarint(7<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ParacrossAction_TransferToExec: case *ParacrossAction_TransferToExec:
s := proto.Size(x.TransferToExec) s := proto.Size(x.TransferToExec)
n += 1 // tag and wire n += proto.SizeVarint(8<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -725,39 +577,16 @@ func _ParacrossAction_OneofSizer(msg proto.Message) (n int) { ...@@ -725,39 +577,16 @@ func _ParacrossAction_OneofSizer(msg proto.Message) (n int) {
// logs // logs
type ReceiptParacrossCommit struct { type ReceiptParacrossCommit struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
Status *ParacrossNodeStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Status *ParacrossNodeStatus `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
Prev *ParacrossHeightStatus `protobuf:"bytes,3,opt,name=prev,proto3" json:"prev,omitempty"` Prev *ParacrossHeightStatus `protobuf:"bytes,3,opt,name=prev" json:"prev,omitempty"`
Current *ParacrossHeightStatus `protobuf:"bytes,4,opt,name=current,proto3" json:"current,omitempty"` Current *ParacrossHeightStatus `protobuf:"bytes,4,opt,name=current" json:"current,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptParacrossCommit) Reset() { *m = ReceiptParacrossCommit{} } func (m *ReceiptParacrossCommit) Reset() { *m = ReceiptParacrossCommit{} }
func (m *ReceiptParacrossCommit) String() string { return proto.CompactTextString(m) } func (m *ReceiptParacrossCommit) String() string { return proto.CompactTextString(m) }
func (*ReceiptParacrossCommit) ProtoMessage() {} func (*ReceiptParacrossCommit) ProtoMessage() {}
func (*ReceiptParacrossCommit) Descriptor() ([]byte, []int) { func (*ReceiptParacrossCommit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
return fileDescriptor_6a397e38c9ea6747, []int{7}
}
func (m *ReceiptParacrossCommit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptParacrossCommit.Unmarshal(m, b)
}
func (m *ReceiptParacrossCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptParacrossCommit.Marshal(b, m, deterministic)
}
func (m *ReceiptParacrossCommit) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptParacrossCommit.Merge(m, src)
}
func (m *ReceiptParacrossCommit) XXX_Size() int {
return xxx_messageInfo_ReceiptParacrossCommit.Size(m)
}
func (m *ReceiptParacrossCommit) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptParacrossCommit.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptParacrossCommit proto.InternalMessageInfo
func (m *ReceiptParacrossCommit) GetAddr() string { func (m *ReceiptParacrossCommit) GetAddr() string {
if m != nil { if m != nil {
...@@ -788,36 +617,13 @@ func (m *ReceiptParacrossCommit) GetCurrent() *ParacrossHeightStatus { ...@@ -788,36 +617,13 @@ func (m *ReceiptParacrossCommit) GetCurrent() *ParacrossHeightStatus {
} }
type ReceiptParacrossMiner struct { type ReceiptParacrossMiner struct {
Status *ParacrossNodeStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Status *ParacrossNodeStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReceiptParacrossMiner) Reset() { *m = ReceiptParacrossMiner{} }
func (m *ReceiptParacrossMiner) String() string { return proto.CompactTextString(m) }
func (*ReceiptParacrossMiner) ProtoMessage() {}
func (*ReceiptParacrossMiner) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{8}
}
func (m *ReceiptParacrossMiner) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptParacrossMiner.Unmarshal(m, b)
}
func (m *ReceiptParacrossMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptParacrossMiner.Marshal(b, m, deterministic)
}
func (m *ReceiptParacrossMiner) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptParacrossMiner.Merge(m, src)
}
func (m *ReceiptParacrossMiner) XXX_Size() int {
return xxx_messageInfo_ReceiptParacrossMiner.Size(m)
}
func (m *ReceiptParacrossMiner) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptParacrossMiner.DiscardUnknown(m)
} }
var xxx_messageInfo_ReceiptParacrossMiner proto.InternalMessageInfo func (m *ReceiptParacrossMiner) Reset() { *m = ReceiptParacrossMiner{} }
func (m *ReceiptParacrossMiner) String() string { return proto.CompactTextString(m) }
func (*ReceiptParacrossMiner) ProtoMessage() {}
func (*ReceiptParacrossMiner) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *ReceiptParacrossMiner) GetStatus() *ParacrossNodeStatus { func (m *ReceiptParacrossMiner) GetStatus() *ParacrossNodeStatus {
if m != nil { if m != nil {
...@@ -827,43 +633,20 @@ func (m *ReceiptParacrossMiner) GetStatus() *ParacrossNodeStatus { ...@@ -827,43 +633,20 @@ func (m *ReceiptParacrossMiner) GetStatus() *ParacrossNodeStatus {
} }
type ReceiptParacrossDone struct { type ReceiptParacrossDone struct {
TotalNodes int32 `protobuf:"varint,1,opt,name=totalNodes,proto3" json:"totalNodes,omitempty"` TotalNodes int32 `protobuf:"varint,1,opt,name=totalNodes" json:"totalNodes,omitempty"`
TotalCommit int32 `protobuf:"varint,2,opt,name=totalCommit,proto3" json:"totalCommit,omitempty"` TotalCommit int32 `protobuf:"varint,2,opt,name=totalCommit" json:"totalCommit,omitempty"`
MostSameCommit int32 `protobuf:"varint,3,opt,name=mostSameCommit,proto3" json:"mostSameCommit,omitempty"` MostSameCommit int32 `protobuf:"varint,3,opt,name=mostSameCommit" json:"mostSameCommit,omitempty"`
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` Title string `protobuf:"bytes,4,opt,name=title" json:"title,omitempty"`
Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height" json:"height,omitempty"`
StateHash []byte `protobuf:"bytes,6,opt,name=stateHash,proto3" json:"stateHash,omitempty"` StateHash []byte `protobuf:"bytes,6,opt,name=stateHash,proto3" json:"stateHash,omitempty"`
TxCounts uint32 `protobuf:"varint,7,opt,name=txCounts,proto3" json:"txCounts,omitempty"` TxCounts uint32 `protobuf:"varint,7,opt,name=txCounts" json:"txCounts,omitempty"`
TxResult []byte `protobuf:"bytes,8,opt,name=txResult,proto3" json:"txResult,omitempty"` TxResult []byte `protobuf:"bytes,8,opt,name=txResult,proto3" json:"txResult,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptParacrossDone) Reset() { *m = ReceiptParacrossDone{} } func (m *ReceiptParacrossDone) Reset() { *m = ReceiptParacrossDone{} }
func (m *ReceiptParacrossDone) String() string { return proto.CompactTextString(m) } func (m *ReceiptParacrossDone) String() string { return proto.CompactTextString(m) }
func (*ReceiptParacrossDone) ProtoMessage() {} func (*ReceiptParacrossDone) ProtoMessage() {}
func (*ReceiptParacrossDone) Descriptor() ([]byte, []int) { func (*ReceiptParacrossDone) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
return fileDescriptor_6a397e38c9ea6747, []int{9}
}
func (m *ReceiptParacrossDone) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptParacrossDone.Unmarshal(m, b)
}
func (m *ReceiptParacrossDone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptParacrossDone.Marshal(b, m, deterministic)
}
func (m *ReceiptParacrossDone) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptParacrossDone.Merge(m, src)
}
func (m *ReceiptParacrossDone) XXX_Size() int {
return xxx_messageInfo_ReceiptParacrossDone.Size(m)
}
func (m *ReceiptParacrossDone) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptParacrossDone.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptParacrossDone proto.InternalMessageInfo
func (m *ReceiptParacrossDone) GetTotalNodes() int32 { func (m *ReceiptParacrossDone) GetTotalNodes() int32 {
if m != nil { if m != nil {
...@@ -922,37 +705,14 @@ func (m *ReceiptParacrossDone) GetTxResult() []byte { ...@@ -922,37 +705,14 @@ func (m *ReceiptParacrossDone) GetTxResult() []byte {
} }
type ReceiptParacrossRecord struct { type ReceiptParacrossRecord struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
Status *ParacrossNodeStatus `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Status *ParacrossNodeStatus `protobuf:"bytes,2,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReceiptParacrossRecord) Reset() { *m = ReceiptParacrossRecord{} }
func (m *ReceiptParacrossRecord) String() string { return proto.CompactTextString(m) }
func (*ReceiptParacrossRecord) ProtoMessage() {}
func (*ReceiptParacrossRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{10}
} }
func (m *ReceiptParacrossRecord) XXX_Unmarshal(b []byte) error { func (m *ReceiptParacrossRecord) Reset() { *m = ReceiptParacrossRecord{} }
return xxx_messageInfo_ReceiptParacrossRecord.Unmarshal(m, b) func (m *ReceiptParacrossRecord) String() string { return proto.CompactTextString(m) }
} func (*ReceiptParacrossRecord) ProtoMessage() {}
func (m *ReceiptParacrossRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*ReceiptParacrossRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
return xxx_messageInfo_ReceiptParacrossRecord.Marshal(b, m, deterministic)
}
func (m *ReceiptParacrossRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptParacrossRecord.Merge(m, src)
}
func (m *ReceiptParacrossRecord) XXX_Size() int {
return xxx_messageInfo_ReceiptParacrossRecord.Size(m)
}
func (m *ReceiptParacrossRecord) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptParacrossRecord.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptParacrossRecord proto.InternalMessageInfo
func (m *ReceiptParacrossRecord) GetAddr() string { func (m *ReceiptParacrossRecord) GetAddr() string {
if m != nil { if m != nil {
...@@ -971,36 +731,13 @@ func (m *ReceiptParacrossRecord) GetStatus() *ParacrossNodeStatus { ...@@ -971,36 +731,13 @@ func (m *ReceiptParacrossRecord) GetStatus() *ParacrossNodeStatus {
// LocalDB // LocalDB
// title-height-addr : txHash // title-height-addr : txHash
type ParacrossTx struct { type ParacrossTx struct {
TxHash string `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"` TxHash string `protobuf:"bytes,1,opt,name=txHash" json:"txHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParacrossTx) Reset() { *m = ParacrossTx{} }
func (m *ParacrossTx) String() string { return proto.CompactTextString(m) }
func (*ParacrossTx) ProtoMessage() {}
func (*ParacrossTx) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{11}
}
func (m *ParacrossTx) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossTx.Unmarshal(m, b)
}
func (m *ParacrossTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossTx.Marshal(b, m, deterministic)
}
func (m *ParacrossTx) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossTx.Merge(m, src)
}
func (m *ParacrossTx) XXX_Size() int {
return xxx_messageInfo_ParacrossTx.Size(m)
}
func (m *ParacrossTx) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossTx.DiscardUnknown(m)
} }
var xxx_messageInfo_ParacrossTx proto.InternalMessageInfo func (m *ParacrossTx) Reset() { *m = ParacrossTx{} }
func (m *ParacrossTx) String() string { return proto.CompactTextString(m) }
func (*ParacrossTx) ProtoMessage() {}
func (*ParacrossTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *ParacrossTx) GetTxHash() string { func (m *ParacrossTx) GetTxHash() string {
if m != nil { if m != nil {
...@@ -1011,37 +748,14 @@ func (m *ParacrossTx) GetTxHash() string { ...@@ -1011,37 +748,14 @@ func (m *ParacrossTx) GetTxHash() string {
// query // query
type ReqParacrossTitleHeight struct { type ReqParacrossTitleHeight struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqParacrossTitleHeight) Reset() { *m = ReqParacrossTitleHeight{} }
func (m *ReqParacrossTitleHeight) String() string { return proto.CompactTextString(m) }
func (*ReqParacrossTitleHeight) ProtoMessage() {}
func (*ReqParacrossTitleHeight) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{12}
}
func (m *ReqParacrossTitleHeight) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqParacrossTitleHeight.Unmarshal(m, b)
}
func (m *ReqParacrossTitleHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqParacrossTitleHeight.Marshal(b, m, deterministic)
}
func (m *ReqParacrossTitleHeight) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqParacrossTitleHeight.Merge(m, src)
}
func (m *ReqParacrossTitleHeight) XXX_Size() int {
return xxx_messageInfo_ReqParacrossTitleHeight.Size(m)
}
func (m *ReqParacrossTitleHeight) XXX_DiscardUnknown() {
xxx_messageInfo_ReqParacrossTitleHeight.DiscardUnknown(m)
} }
var xxx_messageInfo_ReqParacrossTitleHeight proto.InternalMessageInfo func (m *ReqParacrossTitleHeight) Reset() { *m = ReqParacrossTitleHeight{} }
func (m *ReqParacrossTitleHeight) String() string { return proto.CompactTextString(m) }
func (*ReqParacrossTitleHeight) ProtoMessage() {}
func (*ReqParacrossTitleHeight) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *ReqParacrossTitleHeight) GetTitle() string { func (m *ReqParacrossTitleHeight) GetTitle() string {
if m != nil { if m != nil {
...@@ -1058,36 +772,13 @@ func (m *ReqParacrossTitleHeight) GetHeight() int64 { ...@@ -1058,36 +772,13 @@ func (m *ReqParacrossTitleHeight) GetHeight() int64 {
} }
type RespParacrossTitles struct { type RespParacrossTitles struct {
Titles []*ReceiptParacrossDone `protobuf:"bytes,1,rep,name=titles,proto3" json:"titles,omitempty"` Titles []*ReceiptParacrossDone `protobuf:"bytes,1,rep,name=titles" json:"titles,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *RespParacrossTitles) Reset() { *m = RespParacrossTitles{} } func (m *RespParacrossTitles) Reset() { *m = RespParacrossTitles{} }
func (m *RespParacrossTitles) String() string { return proto.CompactTextString(m) } func (m *RespParacrossTitles) String() string { return proto.CompactTextString(m) }
func (*RespParacrossTitles) ProtoMessage() {} func (*RespParacrossTitles) ProtoMessage() {}
func (*RespParacrossTitles) Descriptor() ([]byte, []int) { func (*RespParacrossTitles) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
return fileDescriptor_6a397e38c9ea6747, []int{13}
}
func (m *RespParacrossTitles) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RespParacrossTitles.Unmarshal(m, b)
}
func (m *RespParacrossTitles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RespParacrossTitles.Marshal(b, m, deterministic)
}
func (m *RespParacrossTitles) XXX_Merge(src proto.Message) {
xxx_messageInfo_RespParacrossTitles.Merge(m, src)
}
func (m *RespParacrossTitles) XXX_Size() int {
return xxx_messageInfo_RespParacrossTitles.Size(m)
}
func (m *RespParacrossTitles) XXX_DiscardUnknown() {
xxx_messageInfo_RespParacrossTitles.DiscardUnknown(m)
}
var xxx_messageInfo_RespParacrossTitles proto.InternalMessageInfo
func (m *RespParacrossTitles) GetTitles() []*ReceiptParacrossDone { func (m *RespParacrossTitles) GetTitles() []*ReceiptParacrossDone {
if m != nil { if m != nil {
...@@ -1099,48 +790,25 @@ func (m *RespParacrossTitles) GetTitles() []*ReceiptParacrossDone { ...@@ -1099,48 +790,25 @@ func (m *RespParacrossTitles) GetTitles() []*ReceiptParacrossDone {
// 跨链转账相关 // 跨链转账相关
type ParacrossAsset struct { type ParacrossAsset struct {
// input // input
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` From string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"`
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` To string `protobuf:"bytes,2,opt,name=to" json:"to,omitempty"`
IsWithdraw bool `protobuf:"varint,3,opt,name=isWithdraw,proto3" json:"isWithdraw,omitempty"` IsWithdraw bool `protobuf:"varint,3,opt,name=isWithdraw" json:"isWithdraw,omitempty"`
TxHash []byte `protobuf:"bytes,4,opt,name=txHash,proto3" json:"txHash,omitempty"` TxHash []byte `protobuf:"bytes,4,opt,name=txHash,proto3" json:"txHash,omitempty"`
Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,5,opt,name=amount" json:"amount,omitempty"`
Exec string `protobuf:"bytes,6,opt,name=exec,proto3" json:"exec,omitempty"` Exec string `protobuf:"bytes,6,opt,name=exec" json:"exec,omitempty"`
Symbol string `protobuf:"bytes,7,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,7,opt,name=symbol" json:"symbol,omitempty"`
// 主链部分 // 主链部分
Height int64 `protobuf:"varint,10,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,10,opt,name=height" json:"height,omitempty"`
// 平行链部分 // 平行链部分
CommitDoneHeight int64 `protobuf:"varint,21,opt,name=commitDoneHeight,proto3" json:"commitDoneHeight,omitempty"` CommitDoneHeight int64 `protobuf:"varint,21,opt,name=commitDoneHeight" json:"commitDoneHeight,omitempty"`
ParaHeight int64 `protobuf:"varint,22,opt,name=paraHeight,proto3" json:"paraHeight,omitempty"` ParaHeight int64 `protobuf:"varint,22,opt,name=paraHeight" json:"paraHeight,omitempty"`
Success bool `protobuf:"varint,23,opt,name=success,proto3" json:"success,omitempty"` Success bool `protobuf:"varint,23,opt,name=success" json:"success,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParacrossAsset) Reset() { *m = ParacrossAsset{} }
func (m *ParacrossAsset) String() string { return proto.CompactTextString(m) }
func (*ParacrossAsset) ProtoMessage() {}
func (*ParacrossAsset) Descriptor() ([]byte, []int) {
return fileDescriptor_6a397e38c9ea6747, []int{14}
}
func (m *ParacrossAsset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParacrossAsset.Unmarshal(m, b)
}
func (m *ParacrossAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParacrossAsset.Marshal(b, m, deterministic)
}
func (m *ParacrossAsset) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParacrossAsset.Merge(m, src)
}
func (m *ParacrossAsset) XXX_Size() int {
return xxx_messageInfo_ParacrossAsset.Size(m)
}
func (m *ParacrossAsset) XXX_DiscardUnknown() {
xxx_messageInfo_ParacrossAsset.DiscardUnknown(m)
} }
var xxx_messageInfo_ParacrossAsset proto.InternalMessageInfo func (m *ParacrossAsset) Reset() { *m = ParacrossAsset{} }
func (m *ParacrossAsset) String() string { return proto.CompactTextString(m) }
func (*ParacrossAsset) ProtoMessage() {}
func (*ParacrossAsset) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
func (m *ParacrossAsset) GetFrom() string { func (m *ParacrossAsset) GetFrom() string {
if m != nil { if m != nil {
...@@ -1237,74 +905,6 @@ func init() { ...@@ -1237,74 +905,6 @@ func init() {
proto.RegisterType((*ParacrossAsset)(nil), "types.ParacrossAsset") proto.RegisterType((*ParacrossAsset)(nil), "types.ParacrossAsset")
} }
func init() { proto.RegisterFile("paracross.proto", fileDescriptor_6a397e38c9ea6747) }
var fileDescriptor_6a397e38c9ea6747 = []byte{
// 985 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4b, 0x6f, 0x23, 0x45,
0x10, 0xf6, 0x8c, 0xdf, 0xe5, 0xd8, 0x09, 0xbd, 0x89, 0x77, 0x34, 0x2c, 0xc8, 0x1a, 0x01, 0xb2,
0x38, 0x44, 0xc8, 0x91, 0x82, 0x10,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f5, 0x4c, 0x10, 0x1e, 0x35, 0xae, 0x3b, 0xf8, 0xc7, 0x3d, 0xfb, 0x27, 0x00, 0x00, 0xff,
0xff, 0x6c, 0x00, 0x31, 0x06, 0x1e, 0x0b, 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 _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
...@@ -1313,14 +913,13 @@ var _ grpc.ClientConn ...@@ -1313,14 +913,13 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// ParacrossClient is the client API for Paracross service. // Client API for Paracross service
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ParacrossClient interface { type ParacrossClient interface {
GetTitle(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*ParacrossStatus, error) GetTitle(ctx context.Context, in *types1.ReqString, opts ...grpc.CallOption) (*ParacrossStatus, error)
ListTitles(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*RespParacrossTitles, error) ListTitles(ctx context.Context, in *types1.ReqNil, opts ...grpc.CallOption) (*RespParacrossTitles, error)
GetTitleHeight(ctx context.Context, in *ReqParacrossTitleHeight, opts ...grpc.CallOption) (*ReceiptParacrossDone, error) GetTitleHeight(ctx context.Context, in *ReqParacrossTitleHeight, opts ...grpc.CallOption) (*ReceiptParacrossDone, error)
GetAssetTxResult(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*ParacrossAsset, error) GetAssetTxResult(ctx context.Context, in *types1.ReqHash, opts ...grpc.CallOption) (*ParacrossAsset, error)
} }
type paracrossClient struct { type paracrossClient struct {
...@@ -1331,18 +930,18 @@ func NewParacrossClient(cc *grpc.ClientConn) ParacrossClient { ...@@ -1331,18 +930,18 @@ func NewParacrossClient(cc *grpc.ClientConn) ParacrossClient {
return &paracrossClient{cc} return &paracrossClient{cc}
} }
func (c *paracrossClient) GetTitle(ctx context.Context, in *types.ReqString, opts ...grpc.CallOption) (*ParacrossStatus, error) { func (c *paracrossClient) GetTitle(ctx context.Context, in *types1.ReqString, opts ...grpc.CallOption) (*ParacrossStatus, error) {
out := new(ParacrossStatus) out := new(ParacrossStatus)
err := c.cc.Invoke(ctx, "/types.paracross/GetTitle", in, out, opts...) err := grpc.Invoke(ctx, "/types.paracross/GetTitle", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *paracrossClient) ListTitles(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*RespParacrossTitles, error) { func (c *paracrossClient) ListTitles(ctx context.Context, in *types1.ReqNil, opts ...grpc.CallOption) (*RespParacrossTitles, error) {
out := new(RespParacrossTitles) out := new(RespParacrossTitles)
err := c.cc.Invoke(ctx, "/types.paracross/ListTitles", in, out, opts...) err := grpc.Invoke(ctx, "/types.paracross/ListTitles", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -1351,28 +950,29 @@ func (c *paracrossClient) ListTitles(ctx context.Context, in *types.ReqNil, opts ...@@ -1351,28 +950,29 @@ func (c *paracrossClient) ListTitles(ctx context.Context, in *types.ReqNil, opts
func (c *paracrossClient) GetTitleHeight(ctx context.Context, in *ReqParacrossTitleHeight, opts ...grpc.CallOption) (*ReceiptParacrossDone, error) { func (c *paracrossClient) GetTitleHeight(ctx context.Context, in *ReqParacrossTitleHeight, opts ...grpc.CallOption) (*ReceiptParacrossDone, error) {
out := new(ReceiptParacrossDone) out := new(ReceiptParacrossDone)
err := c.cc.Invoke(ctx, "/types.paracross/GetTitleHeight", in, out, opts...) err := grpc.Invoke(ctx, "/types.paracross/GetTitleHeight", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *paracrossClient) GetAssetTxResult(ctx context.Context, in *types.ReqHash, opts ...grpc.CallOption) (*ParacrossAsset, error) { func (c *paracrossClient) GetAssetTxResult(ctx context.Context, in *types1.ReqHash, opts ...grpc.CallOption) (*ParacrossAsset, error) {
out := new(ParacrossAsset) out := new(ParacrossAsset)
err := c.cc.Invoke(ctx, "/types.paracross/GetAssetTxResult", in, out, opts...) err := grpc.Invoke(ctx, "/types.paracross/GetAssetTxResult", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
// ParacrossServer is the server API for Paracross service. // Server API for Paracross service
type ParacrossServer interface { type ParacrossServer interface {
GetTitle(context.Context, *types.ReqString) (*ParacrossStatus, error) GetTitle(context.Context, *types1.ReqString) (*ParacrossStatus, error)
ListTitles(context.Context, *types.ReqNil) (*RespParacrossTitles, error) ListTitles(context.Context, *types1.ReqNil) (*RespParacrossTitles, error)
GetTitleHeight(context.Context, *ReqParacrossTitleHeight) (*ReceiptParacrossDone, error) GetTitleHeight(context.Context, *ReqParacrossTitleHeight) (*ReceiptParacrossDone, error)
GetAssetTxResult(context.Context, *types.ReqHash) (*ParacrossAsset, error) GetAssetTxResult(context.Context, *types1.ReqHash) (*ParacrossAsset, error)
} }
func RegisterParacrossServer(s *grpc.Server, srv ParacrossServer) { func RegisterParacrossServer(s *grpc.Server, srv ParacrossServer) {
...@@ -1380,7 +980,7 @@ func RegisterParacrossServer(s *grpc.Server, srv ParacrossServer) { ...@@ -1380,7 +980,7 @@ func RegisterParacrossServer(s *grpc.Server, srv ParacrossServer) {
} }
func _Paracross_GetTitle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Paracross_GetTitle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(types.ReqString) in := new(types1.ReqString)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
...@@ -1392,13 +992,13 @@ func _Paracross_GetTitle_Handler(srv interface{}, ctx context.Context, dec func( ...@@ -1392,13 +992,13 @@ func _Paracross_GetTitle_Handler(srv interface{}, ctx context.Context, dec func(
FullMethod: "/types.paracross/GetTitle", FullMethod: "/types.paracross/GetTitle",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ParacrossServer).GetTitle(ctx, req.(*types.ReqString)) return srv.(ParacrossServer).GetTitle(ctx, req.(*types1.ReqString))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
func _Paracross_ListTitles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Paracross_ListTitles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(types.ReqNil) in := new(types1.ReqNil)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
...@@ -1410,7 +1010,7 @@ func _Paracross_ListTitles_Handler(srv interface{}, ctx context.Context, dec fun ...@@ -1410,7 +1010,7 @@ func _Paracross_ListTitles_Handler(srv interface{}, ctx context.Context, dec fun
FullMethod: "/types.paracross/ListTitles", FullMethod: "/types.paracross/ListTitles",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ParacrossServer).ListTitles(ctx, req.(*types.ReqNil)) return srv.(ParacrossServer).ListTitles(ctx, req.(*types1.ReqNil))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
...@@ -1434,7 +1034,7 @@ func _Paracross_GetTitleHeight_Handler(srv interface{}, ctx context.Context, dec ...@@ -1434,7 +1034,7 @@ func _Paracross_GetTitleHeight_Handler(srv interface{}, ctx context.Context, dec
} }
func _Paracross_GetAssetTxResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Paracross_GetAssetTxResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(types.ReqHash) in := new(types1.ReqHash)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
...@@ -1446,7 +1046,7 @@ func _Paracross_GetAssetTxResult_Handler(srv interface{}, ctx context.Context, d ...@@ -1446,7 +1046,7 @@ func _Paracross_GetAssetTxResult_Handler(srv interface{}, ctx context.Context, d
FullMethod: "/types.paracross/GetAssetTxResult", FullMethod: "/types.paracross/GetAssetTxResult",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ParacrossServer).GetAssetTxResult(ctx, req.(*types.ReqHash)) return srv.(ParacrossServer).GetAssetTxResult(ctx, req.(*types1.ReqHash))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
...@@ -1475,3 +1075,71 @@ var _Paracross_serviceDesc = grpc.ServiceDesc{ ...@@ -1475,3 +1075,71 @@ var _Paracross_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "paracross.proto", Metadata: "paracross.proto",
} }
func init() { proto.RegisterFile("paracross.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 985 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4b, 0x6f, 0x23, 0x45,
0x10, 0xf6, 0x8c, 0xdf, 0xe5, 0xd8, 0x09, 0xbd, 0x89, 0x77, 0x34, 0x2c, 0xc8, 0x1a, 0x01, 0xb2,
0x38, 0x44, 0xc8, 0x91, 0x82, 0x10, 0xe2, 0xb0, 0x2f, 0xc5, 0x5a, 0x96, 0x05, 0x75, 0x22, 0x71,
0x42, 0x62, 0x32, 0xee, 0xdd, 0x8c, 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6c, 0x00, 0x31, 0x06, 0x1e, 0x0b, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: pokerbull.proto // source: pokerbull.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
pokerbull.proto
It has these top-level messages:
PokerBull
PBHand
PBPlayer
PBResult
PBPoker
PBGameAction
PBGameStart
PBGameContinue
PBGameQuit
PBGameQuery
QueryPBGameListByStatusAndPlayerNum
PBGameRecord
PBGameIndexRecord
PBGameRecords
QueryPBGameInfo
ReplyPBGame
QueryPBGameInfos
ReplyPBGameList
ReceiptPBGame
PBStartTxReq
PBContinueTxReq
PBQuitTxReq
PBQueryReq
*/
package types package types
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import types2 "github.com/33cn/chain33/types"
import ( import (
context "context" context "golang.org/x/net/context"
fmt "fmt"
types "github.com/33cn/chain33/types"
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.
...@@ -23,53 +55,30 @@ var _ = math.Inf ...@@ -23,53 +55,30 @@ var _ = math.Inf
// proto package needs to be updated. // proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
//斗牛游戏内容 // 斗牛游戏内容
type PokerBull struct { type PokerBull struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
StartTime int64 `protobuf:"varint,3,opt,name=startTime,proto3" json:"startTime,omitempty"` StartTime int64 `protobuf:"varint,3,opt,name=startTime" json:"startTime,omitempty"`
StartTxHash string `protobuf:"bytes,4,opt,name=startTxHash,proto3" json:"startTxHash,omitempty"` StartTxHash string `protobuf:"bytes,4,opt,name=startTxHash" json:"startTxHash,omitempty"`
Value int64 `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"` Value int64 `protobuf:"varint,5,opt,name=value" json:"value,omitempty"`
Poker *PBPoker `protobuf:"bytes,6,opt,name=poker,proto3" json:"poker,omitempty"` Poker *PBPoker `protobuf:"bytes,6,opt,name=poker" json:"poker,omitempty"`
Players []*PBPlayer `protobuf:"bytes,7,rep,name=players,proto3" json:"players,omitempty"` Players []*PBPlayer `protobuf:"bytes,7,rep,name=players" json:"players,omitempty"`
PlayerNum int32 `protobuf:"varint,8,opt,name=playerNum,proto3" json:"playerNum,omitempty"` PlayerNum int32 `protobuf:"varint,8,opt,name=playerNum" json:"playerNum,omitempty"`
Results []*PBResult `protobuf:"bytes,9,rep,name=results,proto3" json:"results,omitempty"` Results []*PBResult `protobuf:"bytes,9,rep,name=results" json:"results,omitempty"`
Index int64 `protobuf:"varint,10,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,10,opt,name=index" json:"index,omitempty"`
PrevIndex int64 `protobuf:"varint,11,opt,name=prevIndex,proto3" json:"prevIndex,omitempty"` PrevIndex int64 `protobuf:"varint,11,opt,name=prevIndex" json:"prevIndex,omitempty"`
QuitTime int64 `protobuf:"varint,12,opt,name=quitTime,proto3" json:"quitTime,omitempty"` QuitTime int64 `protobuf:"varint,12,opt,name=quitTime" json:"quitTime,omitempty"`
QuitTxHash string `protobuf:"bytes,13,opt,name=quitTxHash,proto3" json:"quitTxHash,omitempty"` QuitTxHash string `protobuf:"bytes,13,opt,name=quitTxHash" json:"quitTxHash,omitempty"`
DealerAddr string `protobuf:"bytes,14,opt,name=dealerAddr,proto3" json:"dealerAddr,omitempty"` DealerAddr string `protobuf:"bytes,14,opt,name=dealerAddr" json:"dealerAddr,omitempty"`
IsWaiting bool `protobuf:"varint,15,opt,name=isWaiting,proto3" json:"isWaiting,omitempty"` IsWaiting bool `protobuf:"varint,15,opt,name=isWaiting" json:"isWaiting,omitempty"`
PreStatus int32 `protobuf:"varint,16,opt,name=preStatus,proto3" json:"preStatus,omitempty"` PreStatus int32 `protobuf:"varint,16,opt,name=preStatus" json:"preStatus,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *PokerBull) Reset() { *m = PokerBull{} }
} func (m *PokerBull) String() string { return proto.CompactTextString(m) }
func (*PokerBull) ProtoMessage() {}
func (m *PokerBull) Reset() { *m = PokerBull{} } func (*PokerBull) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *PokerBull) String() string { return proto.CompactTextString(m) }
func (*PokerBull) ProtoMessage() {}
func (*PokerBull) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{0}
}
func (m *PokerBull) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PokerBull.Unmarshal(m, b)
}
func (m *PokerBull) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PokerBull.Marshal(b, m, deterministic)
}
func (m *PokerBull) XXX_Merge(src proto.Message) {
xxx_messageInfo_PokerBull.Merge(m, src)
}
func (m *PokerBull) XXX_Size() int {
return xxx_messageInfo_PokerBull.Size(m)
}
func (m *PokerBull) XXX_DiscardUnknown() {
xxx_messageInfo_PokerBull.DiscardUnknown(m)
}
var xxx_messageInfo_PokerBull proto.InternalMessageInfo
func (m *PokerBull) GetGameId() string { func (m *PokerBull) GetGameId() string {
if m != nil { if m != nil {
...@@ -183,42 +192,19 @@ func (m *PokerBull) GetPreStatus() int32 { ...@@ -183,42 +192,19 @@ func (m *PokerBull) GetPreStatus() int32 {
return 0 return 0
} }
//一把牌 // 一把牌
type PBHand struct { type PBHand struct {
Cards []int32 `protobuf:"varint,1,rep,packed,name=cards,proto3" json:"cards,omitempty"` Cards []int32 `protobuf:"varint,1,rep,packed,name=cards" json:"cards,omitempty"`
Result int32 `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"` Result int32 `protobuf:"varint,2,opt,name=result" json:"result,omitempty"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,3,opt,name=address" json:"address,omitempty"`
IsWin bool `protobuf:"varint,4,opt,name=isWin,proto3" json:"isWin,omitempty"` IsWin bool `protobuf:"varint,4,opt,name=isWin" json:"isWin,omitempty"`
Leverage int32 `protobuf:"varint,5,opt,name=leverage,proto3" json:"leverage,omitempty"` Leverage int32 `protobuf:"varint,5,opt,name=leverage" json:"leverage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PBHand) Reset() { *m = PBHand{} } func (m *PBHand) Reset() { *m = PBHand{} }
func (m *PBHand) String() string { return proto.CompactTextString(m) } func (m *PBHand) String() string { return proto.CompactTextString(m) }
func (*PBHand) ProtoMessage() {} func (*PBHand) ProtoMessage() {}
func (*PBHand) Descriptor() ([]byte, []int) { func (*PBHand) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
return fileDescriptor_8d22e4ee2313e311, []int{1}
}
func (m *PBHand) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBHand.Unmarshal(m, b)
}
func (m *PBHand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBHand.Marshal(b, m, deterministic)
}
func (m *PBHand) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBHand.Merge(m, src)
}
func (m *PBHand) XXX_Size() int {
return xxx_messageInfo_PBHand.Size(m)
}
func (m *PBHand) XXX_DiscardUnknown() {
xxx_messageInfo_PBHand.DiscardUnknown(m)
}
var xxx_messageInfo_PBHand proto.InternalMessageInfo
func (m *PBHand) GetCards() []int32 { func (m *PBHand) GetCards() []int32 {
if m != nil { if m != nil {
...@@ -255,41 +241,18 @@ func (m *PBHand) GetLeverage() int32 { ...@@ -255,41 +241,18 @@ func (m *PBHand) GetLeverage() int32 {
return 0 return 0
} }
//玩家 // 玩家
type PBPlayer struct { type PBPlayer struct {
Hands []*PBHand `protobuf:"bytes,1,rep,name=hands,proto3" json:"hands,omitempty"` Hands []*PBHand `protobuf:"bytes,1,rep,name=hands" json:"hands,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
TxHash int64 `protobuf:"varint,3,opt,name=txHash,proto3" json:"txHash,omitempty"` TxHash int64 `protobuf:"varint,3,opt,name=txHash" json:"txHash,omitempty"`
Ready bool `protobuf:"varint,4,opt,name=ready,proto3" json:"ready,omitempty"` Ready bool `protobuf:"varint,4,opt,name=ready" json:"ready,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PBPlayer) Reset() { *m = PBPlayer{} } func (m *PBPlayer) Reset() { *m = PBPlayer{} }
func (m *PBPlayer) String() string { return proto.CompactTextString(m) } func (m *PBPlayer) String() string { return proto.CompactTextString(m) }
func (*PBPlayer) ProtoMessage() {} func (*PBPlayer) ProtoMessage() {}
func (*PBPlayer) Descriptor() ([]byte, []int) { func (*PBPlayer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return fileDescriptor_8d22e4ee2313e311, []int{2}
}
func (m *PBPlayer) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBPlayer.Unmarshal(m, b)
}
func (m *PBPlayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBPlayer.Marshal(b, m, deterministic)
}
func (m *PBPlayer) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBPlayer.Merge(m, src)
}
func (m *PBPlayer) XXX_Size() int {
return xxx_messageInfo_PBPlayer.Size(m)
}
func (m *PBPlayer) XXX_DiscardUnknown() {
xxx_messageInfo_PBPlayer.DiscardUnknown(m)
}
var xxx_messageInfo_PBPlayer proto.InternalMessageInfo
func (m *PBPlayer) GetHands() []*PBHand { func (m *PBPlayer) GetHands() []*PBHand {
if m != nil { if m != nil {
...@@ -319,42 +282,19 @@ func (m *PBPlayer) GetReady() bool { ...@@ -319,42 +282,19 @@ func (m *PBPlayer) GetReady() bool {
return false return false
} }
//本局游戏结果 // 本局游戏结果
type PBResult struct { type PBResult struct {
Hands []*PBHand `protobuf:"bytes,1,rep,name=hands,proto3" json:"hands,omitempty"` Hands []*PBHand `protobuf:"bytes,1,rep,name=hands" json:"hands,omitempty"`
Winner string `protobuf:"bytes,2,opt,name=winner,proto3" json:"winner,omitempty"` Winner string `protobuf:"bytes,2,opt,name=winner" json:"winner,omitempty"`
Leverage int32 `protobuf:"varint,3,opt,name=leverage,proto3" json:"leverage,omitempty"` Leverage int32 `protobuf:"varint,3,opt,name=leverage" json:"leverage,omitempty"`
Dealer string `protobuf:"bytes,4,opt,name=dealer,proto3" json:"dealer,omitempty"` Dealer string `protobuf:"bytes,4,opt,name=dealer" json:"dealer,omitempty"`
DealerLeverage int32 `protobuf:"varint,5,opt,name=dealerLeverage,proto3" json:"dealerLeverage,omitempty"` DealerLeverage int32 `protobuf:"varint,5,opt,name=dealerLeverage" json:"dealerLeverage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBResult) Reset() { *m = PBResult{} }
func (m *PBResult) String() string { return proto.CompactTextString(m) }
func (*PBResult) ProtoMessage() {}
func (*PBResult) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{3}
}
func (m *PBResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBResult.Unmarshal(m, b)
}
func (m *PBResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBResult.Marshal(b, m, deterministic)
}
func (m *PBResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBResult.Merge(m, src)
}
func (m *PBResult) XXX_Size() int {
return xxx_messageInfo_PBResult.Size(m)
}
func (m *PBResult) XXX_DiscardUnknown() {
xxx_messageInfo_PBResult.DiscardUnknown(m)
} }
var xxx_messageInfo_PBResult proto.InternalMessageInfo func (m *PBResult) Reset() { *m = PBResult{} }
func (m *PBResult) String() string { return proto.CompactTextString(m) }
func (*PBResult) ProtoMessage() {}
func (*PBResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *PBResult) GetHands() []*PBHand { func (m *PBResult) GetHands() []*PBHand {
if m != nil { if m != nil {
...@@ -391,39 +331,16 @@ func (m *PBResult) GetDealerLeverage() int32 { ...@@ -391,39 +331,16 @@ func (m *PBResult) GetDealerLeverage() int32 {
return 0 return 0
} }
//扑克牌 // 扑克牌
type PBPoker struct { type PBPoker struct {
Cards []int32 `protobuf:"varint,1,rep,packed,name=cards,proto3" json:"cards,omitempty"` Cards []int32 `protobuf:"varint,1,rep,packed,name=cards" json:"cards,omitempty"`
Pointer int32 `protobuf:"varint,2,opt,name=pointer,proto3" json:"pointer,omitempty"` Pointer int32 `protobuf:"varint,2,opt,name=pointer" json:"pointer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBPoker) Reset() { *m = PBPoker{} }
func (m *PBPoker) String() string { return proto.CompactTextString(m) }
func (*PBPoker) ProtoMessage() {}
func (*PBPoker) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{4}
}
func (m *PBPoker) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBPoker.Unmarshal(m, b)
}
func (m *PBPoker) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBPoker.Marshal(b, m, deterministic)
}
func (m *PBPoker) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBPoker.Merge(m, src)
}
func (m *PBPoker) XXX_Size() int {
return xxx_messageInfo_PBPoker.Size(m)
}
func (m *PBPoker) XXX_DiscardUnknown() {
xxx_messageInfo_PBPoker.DiscardUnknown(m)
} }
var xxx_messageInfo_PBPoker proto.InternalMessageInfo func (m *PBPoker) Reset() { *m = PBPoker{} }
func (m *PBPoker) String() string { return proto.CompactTextString(m) }
func (*PBPoker) ProtoMessage() {}
func (*PBPoker) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *PBPoker) GetCards() []int32 { func (m *PBPoker) GetCards() []int32 {
if m != nil { if m != nil {
...@@ -439,72 +356,43 @@ func (m *PBPoker) GetPointer() int32 { ...@@ -439,72 +356,43 @@ func (m *PBPoker) GetPointer() int32 {
return 0 return 0
} }
//游戏状态 // 游戏状态
type PBGameAction struct { type PBGameAction struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *PBGameAction_Start // *PBGameAction_Start
// *PBGameAction_Continue // *PBGameAction_Continue
// *PBGameAction_Quit // *PBGameAction_Quit
// *PBGameAction_Query // *PBGameAction_Query
Value isPBGameAction_Value `protobuf_oneof:"value"` Value isPBGameAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,10,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PBGameAction) Reset() { *m = PBGameAction{} } func (m *PBGameAction) Reset() { *m = PBGameAction{} }
func (m *PBGameAction) String() string { return proto.CompactTextString(m) } func (m *PBGameAction) String() string { return proto.CompactTextString(m) }
func (*PBGameAction) ProtoMessage() {} func (*PBGameAction) ProtoMessage() {}
func (*PBGameAction) Descriptor() ([]byte, []int) { func (*PBGameAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
return fileDescriptor_8d22e4ee2313e311, []int{5}
}
func (m *PBGameAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBGameAction.Unmarshal(m, b)
}
func (m *PBGameAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBGameAction.Marshal(b, m, deterministic)
}
func (m *PBGameAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBGameAction.Merge(m, src)
}
func (m *PBGameAction) XXX_Size() int {
return xxx_messageInfo_PBGameAction.Size(m)
}
func (m *PBGameAction) XXX_DiscardUnknown() {
xxx_messageInfo_PBGameAction.DiscardUnknown(m)
}
var xxx_messageInfo_PBGameAction proto.InternalMessageInfo
type isPBGameAction_Value interface { type isPBGameAction_Value interface {
isPBGameAction_Value() isPBGameAction_Value()
} }
type PBGameAction_Start struct { type PBGameAction_Start struct {
Start *PBGameStart `protobuf:"bytes,1,opt,name=start,proto3,oneof"` Start *PBGameStart `protobuf:"bytes,1,opt,name=start,oneof"`
} }
type PBGameAction_Continue struct { type PBGameAction_Continue struct {
Continue *PBGameContinue `protobuf:"bytes,2,opt,name=continue,proto3,oneof"` Continue *PBGameContinue `protobuf:"bytes,2,opt,name=continue,oneof"`
} }
type PBGameAction_Quit struct { type PBGameAction_Quit struct {
Quit *PBGameQuit `protobuf:"bytes,3,opt,name=quit,proto3,oneof"` Quit *PBGameQuit `protobuf:"bytes,3,opt,name=quit,oneof"`
} }
type PBGameAction_Query struct { type PBGameAction_Query struct {
Query *PBGameQuery `protobuf:"bytes,4,opt,name=query,proto3,oneof"` Query *PBGameQuery `protobuf:"bytes,4,opt,name=query,oneof"`
} }
func (*PBGameAction_Start) isPBGameAction_Value() {} func (*PBGameAction_Start) isPBGameAction_Value() {}
func (*PBGameAction_Continue) isPBGameAction_Value() {} func (*PBGameAction_Continue) isPBGameAction_Value() {}
func (*PBGameAction_Quit) isPBGameAction_Value() {}
func (*PBGameAction_Quit) isPBGameAction_Value() {} func (*PBGameAction_Query) isPBGameAction_Value() {}
func (*PBGameAction_Query) isPBGameAction_Value() {}
func (m *PBGameAction) GetValue() isPBGameAction_Value { func (m *PBGameAction) GetValue() isPBGameAction_Value {
if m != nil { if m != nil {
...@@ -635,22 +523,22 @@ func _PBGameAction_OneofSizer(msg proto.Message) (n int) { ...@@ -635,22 +523,22 @@ func _PBGameAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *PBGameAction_Start: case *PBGameAction_Start:
s := proto.Size(x.Start) s := proto.Size(x.Start)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *PBGameAction_Continue: case *PBGameAction_Continue:
s := proto.Size(x.Continue) s := proto.Size(x.Continue)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *PBGameAction_Quit: case *PBGameAction_Quit:
s := proto.Size(x.Quit) s := proto.Size(x.Quit)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *PBGameAction_Query: case *PBGameAction_Query:
s := proto.Size(x.Query) s := proto.Size(x.Query)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -660,39 +548,16 @@ func _PBGameAction_OneofSizer(msg proto.Message) (n int) { ...@@ -660,39 +548,16 @@ func _PBGameAction_OneofSizer(msg proto.Message) (n int) {
return n return n
} }
//游戏启动 // 游戏启动
type PBGameStart struct { type PBGameStart struct {
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Value int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
PlayerNum int32 `protobuf:"varint,2,opt,name=playerNum,proto3" json:"playerNum,omitempty"` PlayerNum int32 `protobuf:"varint,2,opt,name=playerNum" json:"playerNum,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PBGameStart) Reset() { *m = PBGameStart{} } func (m *PBGameStart) Reset() { *m = PBGameStart{} }
func (m *PBGameStart) String() string { return proto.CompactTextString(m) } func (m *PBGameStart) String() string { return proto.CompactTextString(m) }
func (*PBGameStart) ProtoMessage() {} func (*PBGameStart) ProtoMessage() {}
func (*PBGameStart) Descriptor() ([]byte, []int) { func (*PBGameStart) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
return fileDescriptor_8d22e4ee2313e311, []int{6}
}
func (m *PBGameStart) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBGameStart.Unmarshal(m, b)
}
func (m *PBGameStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBGameStart.Marshal(b, m, deterministic)
}
func (m *PBGameStart) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBGameStart.Merge(m, src)
}
func (m *PBGameStart) XXX_Size() int {
return xxx_messageInfo_PBGameStart.Size(m)
}
func (m *PBGameStart) XXX_DiscardUnknown() {
xxx_messageInfo_PBGameStart.DiscardUnknown(m)
}
var xxx_messageInfo_PBGameStart proto.InternalMessageInfo
func (m *PBGameStart) GetValue() int64 { func (m *PBGameStart) GetValue() int64 {
if m != nil { if m != nil {
...@@ -708,38 +573,15 @@ func (m *PBGameStart) GetPlayerNum() int32 { ...@@ -708,38 +573,15 @@ func (m *PBGameStart) GetPlayerNum() int32 {
return 0 return 0
} }
//游戏继续 // 游戏继续
type PBGameContinue struct { type PBGameContinue struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBGameContinue) Reset() { *m = PBGameContinue{} }
func (m *PBGameContinue) String() string { return proto.CompactTextString(m) }
func (*PBGameContinue) ProtoMessage() {}
func (*PBGameContinue) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{7}
}
func (m *PBGameContinue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBGameContinue.Unmarshal(m, b)
}
func (m *PBGameContinue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBGameContinue.Marshal(b, m, deterministic)
}
func (m *PBGameContinue) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBGameContinue.Merge(m, src)
}
func (m *PBGameContinue) XXX_Size() int {
return xxx_messageInfo_PBGameContinue.Size(m)
}
func (m *PBGameContinue) XXX_DiscardUnknown() {
xxx_messageInfo_PBGameContinue.DiscardUnknown(m)
} }
var xxx_messageInfo_PBGameContinue proto.InternalMessageInfo func (m *PBGameContinue) Reset() { *m = PBGameContinue{} }
func (m *PBGameContinue) String() string { return proto.CompactTextString(m) }
func (*PBGameContinue) ProtoMessage() {}
func (*PBGameContinue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *PBGameContinue) GetGameId() string { func (m *PBGameContinue) GetGameId() string {
if m != nil { if m != nil {
...@@ -748,38 +590,15 @@ func (m *PBGameContinue) GetGameId() string { ...@@ -748,38 +590,15 @@ func (m *PBGameContinue) GetGameId() string {
return "" return ""
} }
//游戏结束 // 游戏结束
type PBGameQuit struct { type PBGameQuit struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBGameQuit) Reset() { *m = PBGameQuit{} }
func (m *PBGameQuit) String() string { return proto.CompactTextString(m) }
func (*PBGameQuit) ProtoMessage() {}
func (*PBGameQuit) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{8}
}
func (m *PBGameQuit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBGameQuit.Unmarshal(m, b)
}
func (m *PBGameQuit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBGameQuit.Marshal(b, m, deterministic)
}
func (m *PBGameQuit) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBGameQuit.Merge(m, src)
}
func (m *PBGameQuit) XXX_Size() int {
return xxx_messageInfo_PBGameQuit.Size(m)
}
func (m *PBGameQuit) XXX_DiscardUnknown() {
xxx_messageInfo_PBGameQuit.DiscardUnknown(m)
} }
var xxx_messageInfo_PBGameQuit proto.InternalMessageInfo func (m *PBGameQuit) Reset() { *m = PBGameQuit{} }
func (m *PBGameQuit) String() string { return proto.CompactTextString(m) }
func (*PBGameQuit) ProtoMessage() {}
func (*PBGameQuit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *PBGameQuit) GetGameId() string { func (m *PBGameQuit) GetGameId() string {
if m != nil { if m != nil {
...@@ -788,38 +607,15 @@ func (m *PBGameQuit) GetGameId() string { ...@@ -788,38 +607,15 @@ func (m *PBGameQuit) GetGameId() string {
return "" return ""
} }
//查询游戏结果 // 查询游戏结果
type PBGameQuery struct { type PBGameQuery struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBGameQuery) Reset() { *m = PBGameQuery{} }
func (m *PBGameQuery) String() string { return proto.CompactTextString(m) }
func (*PBGameQuery) ProtoMessage() {}
func (*PBGameQuery) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{9}
} }
func (m *PBGameQuery) XXX_Unmarshal(b []byte) error { func (m *PBGameQuery) Reset() { *m = PBGameQuery{} }
return xxx_messageInfo_PBGameQuery.Unmarshal(m, b) func (m *PBGameQuery) String() string { return proto.CompactTextString(m) }
} func (*PBGameQuery) ProtoMessage() {}
func (m *PBGameQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*PBGameQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
return xxx_messageInfo_PBGameQuery.Marshal(b, m, deterministic)
}
func (m *PBGameQuery) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBGameQuery.Merge(m, src)
}
func (m *PBGameQuery) XXX_Size() int {
return xxx_messageInfo_PBGameQuery.Size(m)
}
func (m *PBGameQuery) XXX_DiscardUnknown() {
xxx_messageInfo_PBGameQuery.DiscardUnknown(m)
}
var xxx_messageInfo_PBGameQuery proto.InternalMessageInfo
func (m *PBGameQuery) GetGameId() string { func (m *PBGameQuery) GetGameId() string {
if m != nil { if m != nil {
...@@ -828,41 +624,20 @@ func (m *PBGameQuery) GetGameId() string { ...@@ -828,41 +624,20 @@ func (m *PBGameQuery) GetGameId() string {
return "" return ""
} }
//根据状态和游戏人数查找 // 根据状态和游戏人数查找
type QueryPBGameListByStatusAndPlayerNum struct { type QueryPBGameListByStatusAndPlayerNum struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
PlayerNum int32 `protobuf:"varint,2,opt,name=playerNum,proto3" json:"playerNum,omitempty"` PlayerNum int32 `protobuf:"varint,2,opt,name=playerNum" json:"playerNum,omitempty"`
Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,3,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *QueryPBGameListByStatusAndPlayerNum) Reset() { *m = QueryPBGameListByStatusAndPlayerNum{} } func (m *QueryPBGameListByStatusAndPlayerNum) Reset() { *m = QueryPBGameListByStatusAndPlayerNum{} }
func (m *QueryPBGameListByStatusAndPlayerNum) String() string { return proto.CompactTextString(m) } func (m *QueryPBGameListByStatusAndPlayerNum) String() string { return proto.CompactTextString(m) }
func (*QueryPBGameListByStatusAndPlayerNum) ProtoMessage() {} func (*QueryPBGameListByStatusAndPlayerNum) ProtoMessage() {}
func (*QueryPBGameListByStatusAndPlayerNum) Descriptor() ([]byte, []int) { func (*QueryPBGameListByStatusAndPlayerNum) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{10} return fileDescriptor0, []int{10}
} }
func (m *QueryPBGameListByStatusAndPlayerNum) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryPBGameListByStatusAndPlayerNum.Unmarshal(m, b)
}
func (m *QueryPBGameListByStatusAndPlayerNum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryPBGameListByStatusAndPlayerNum.Marshal(b, m, deterministic)
}
func (m *QueryPBGameListByStatusAndPlayerNum) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryPBGameListByStatusAndPlayerNum.Merge(m, src)
}
func (m *QueryPBGameListByStatusAndPlayerNum) XXX_Size() int {
return xxx_messageInfo_QueryPBGameListByStatusAndPlayerNum.Size(m)
}
func (m *QueryPBGameListByStatusAndPlayerNum) XXX_DiscardUnknown() {
xxx_messageInfo_QueryPBGameListByStatusAndPlayerNum.DiscardUnknown(m)
}
var xxx_messageInfo_QueryPBGameListByStatusAndPlayerNum proto.InternalMessageInfo
func (m *QueryPBGameListByStatusAndPlayerNum) GetStatus() int32 { func (m *QueryPBGameListByStatusAndPlayerNum) GetStatus() int32 {
if m != nil { if m != nil {
return m.Status return m.Status
...@@ -886,38 +661,15 @@ func (m *QueryPBGameListByStatusAndPlayerNum) GetIndex() int64 { ...@@ -886,38 +661,15 @@ func (m *QueryPBGameListByStatusAndPlayerNum) GetIndex() int64 {
// 索引value值 // 索引value值
type PBGameRecord struct { type PBGameRecord struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,3,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBGameRecord) Reset() { *m = PBGameRecord{} }
func (m *PBGameRecord) String() string { return proto.CompactTextString(m) }
func (*PBGameRecord) ProtoMessage() {}
func (*PBGameRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{11}
} }
func (m *PBGameRecord) XXX_Unmarshal(b []byte) error { func (m *PBGameRecord) Reset() { *m = PBGameRecord{} }
return xxx_messageInfo_PBGameRecord.Unmarshal(m, b) func (m *PBGameRecord) String() string { return proto.CompactTextString(m) }
} func (*PBGameRecord) ProtoMessage() {}
func (m *PBGameRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*PBGameRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
return xxx_messageInfo_PBGameRecord.Marshal(b, m, deterministic)
}
func (m *PBGameRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBGameRecord.Merge(m, src)
}
func (m *PBGameRecord) XXX_Size() int {
return xxx_messageInfo_PBGameRecord.Size(m)
}
func (m *PBGameRecord) XXX_DiscardUnknown() {
xxx_messageInfo_PBGameRecord.DiscardUnknown(m)
}
var xxx_messageInfo_PBGameRecord proto.InternalMessageInfo
func (m *PBGameRecord) GetGameId() string { func (m *PBGameRecord) GetGameId() string {
if m != nil { if m != nil {
...@@ -941,37 +693,14 @@ func (m *PBGameRecord) GetIndex() int64 { ...@@ -941,37 +693,14 @@ func (m *PBGameRecord) GetIndex() int64 {
} }
type PBGameIndexRecord struct { type PBGameIndexRecord struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Index int64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBGameIndexRecord) Reset() { *m = PBGameIndexRecord{} }
func (m *PBGameIndexRecord) String() string { return proto.CompactTextString(m) }
func (*PBGameIndexRecord) ProtoMessage() {}
func (*PBGameIndexRecord) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{12}
}
func (m *PBGameIndexRecord) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBGameIndexRecord.Unmarshal(m, b)
}
func (m *PBGameIndexRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBGameIndexRecord.Marshal(b, m, deterministic)
}
func (m *PBGameIndexRecord) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBGameIndexRecord.Merge(m, src)
}
func (m *PBGameIndexRecord) XXX_Size() int {
return xxx_messageInfo_PBGameIndexRecord.Size(m)
}
func (m *PBGameIndexRecord) XXX_DiscardUnknown() {
xxx_messageInfo_PBGameIndexRecord.DiscardUnknown(m)
} }
var xxx_messageInfo_PBGameIndexRecord proto.InternalMessageInfo func (m *PBGameIndexRecord) Reset() { *m = PBGameIndexRecord{} }
func (m *PBGameIndexRecord) String() string { return proto.CompactTextString(m) }
func (*PBGameIndexRecord) ProtoMessage() {}
func (*PBGameIndexRecord) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *PBGameIndexRecord) GetGameId() string { func (m *PBGameIndexRecord) GetGameId() string {
if m != nil { if m != nil {
...@@ -988,36 +717,13 @@ func (m *PBGameIndexRecord) GetIndex() int64 { ...@@ -988,36 +717,13 @@ func (m *PBGameIndexRecord) GetIndex() int64 {
} }
type PBGameRecords struct { type PBGameRecords struct {
Records []*PBGameRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"` Records []*PBGameRecord `protobuf:"bytes,1,rep,name=records" json:"records,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBGameRecords) Reset() { *m = PBGameRecords{} }
func (m *PBGameRecords) String() string { return proto.CompactTextString(m) }
func (*PBGameRecords) ProtoMessage() {}
func (*PBGameRecords) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{13}
}
func (m *PBGameRecords) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBGameRecords.Unmarshal(m, b)
}
func (m *PBGameRecords) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBGameRecords.Marshal(b, m, deterministic)
}
func (m *PBGameRecords) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBGameRecords.Merge(m, src)
}
func (m *PBGameRecords) XXX_Size() int {
return xxx_messageInfo_PBGameRecords.Size(m)
}
func (m *PBGameRecords) XXX_DiscardUnknown() {
xxx_messageInfo_PBGameRecords.DiscardUnknown(m)
} }
var xxx_messageInfo_PBGameRecords proto.InternalMessageInfo func (m *PBGameRecords) Reset() { *m = PBGameRecords{} }
func (m *PBGameRecords) String() string { return proto.CompactTextString(m) }
func (*PBGameRecords) ProtoMessage() {}
func (*PBGameRecords) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *PBGameRecords) GetRecords() []*PBGameRecord { func (m *PBGameRecords) GetRecords() []*PBGameRecord {
if m != nil { if m != nil {
...@@ -1027,39 +733,16 @@ func (m *PBGameRecords) GetRecords() []*PBGameRecord { ...@@ -1027,39 +733,16 @@ func (m *PBGameRecords) GetRecords() []*PBGameRecord {
} }
type QueryPBGameInfo struct { type QueryPBGameInfo struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr" json:"addr,omitempty"`
Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"`
Index int64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryPBGameInfo) Reset() { *m = QueryPBGameInfo{} }
func (m *QueryPBGameInfo) String() string { return proto.CompactTextString(m) }
func (*QueryPBGameInfo) ProtoMessage() {}
func (*QueryPBGameInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{14}
}
func (m *QueryPBGameInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryPBGameInfo.Unmarshal(m, b)
}
func (m *QueryPBGameInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryPBGameInfo.Marshal(b, m, deterministic)
}
func (m *QueryPBGameInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryPBGameInfo.Merge(m, src)
}
func (m *QueryPBGameInfo) XXX_Size() int {
return xxx_messageInfo_QueryPBGameInfo.Size(m)
}
func (m *QueryPBGameInfo) XXX_DiscardUnknown() {
xxx_messageInfo_QueryPBGameInfo.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryPBGameInfo proto.InternalMessageInfo func (m *QueryPBGameInfo) Reset() { *m = QueryPBGameInfo{} }
func (m *QueryPBGameInfo) String() string { return proto.CompactTextString(m) }
func (*QueryPBGameInfo) ProtoMessage() {}
func (*QueryPBGameInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
func (m *QueryPBGameInfo) GetGameId() string { func (m *QueryPBGameInfo) GetGameId() string {
if m != nil { if m != nil {
...@@ -1090,36 +773,13 @@ func (m *QueryPBGameInfo) GetIndex() int64 { ...@@ -1090,36 +773,13 @@ func (m *QueryPBGameInfo) GetIndex() int64 {
} }
type ReplyPBGame struct { type ReplyPBGame struct {
Game *PokerBull `protobuf:"bytes,1,opt,name=game,proto3" json:"game,omitempty"` Game *PokerBull `protobuf:"bytes,1,opt,name=game" json:"game,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyPBGame) Reset() { *m = ReplyPBGame{} } func (m *ReplyPBGame) Reset() { *m = ReplyPBGame{} }
func (m *ReplyPBGame) String() string { return proto.CompactTextString(m) } func (m *ReplyPBGame) String() string { return proto.CompactTextString(m) }
func (*ReplyPBGame) ProtoMessage() {} func (*ReplyPBGame) ProtoMessage() {}
func (*ReplyPBGame) Descriptor() ([]byte, []int) { func (*ReplyPBGame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
return fileDescriptor_8d22e4ee2313e311, []int{15}
}
func (m *ReplyPBGame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyPBGame.Unmarshal(m, b)
}
func (m *ReplyPBGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyPBGame.Marshal(b, m, deterministic)
}
func (m *ReplyPBGame) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyPBGame.Merge(m, src)
}
func (m *ReplyPBGame) XXX_Size() int {
return xxx_messageInfo_ReplyPBGame.Size(m)
}
func (m *ReplyPBGame) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyPBGame.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyPBGame proto.InternalMessageInfo
func (m *ReplyPBGame) GetGame() *PokerBull { func (m *ReplyPBGame) GetGame() *PokerBull {
if m != nil { if m != nil {
...@@ -1129,36 +789,13 @@ func (m *ReplyPBGame) GetGame() *PokerBull { ...@@ -1129,36 +789,13 @@ func (m *ReplyPBGame) GetGame() *PokerBull {
} }
type QueryPBGameInfos struct { type QueryPBGameInfos struct {
GameIds []string `protobuf:"bytes,1,rep,name=gameIds,proto3" json:"gameIds,omitempty"` GameIds []string `protobuf:"bytes,1,rep,name=gameIds" json:"gameIds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryPBGameInfos) Reset() { *m = QueryPBGameInfos{} }
func (m *QueryPBGameInfos) String() string { return proto.CompactTextString(m) }
func (*QueryPBGameInfos) ProtoMessage() {}
func (*QueryPBGameInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{16}
}
func (m *QueryPBGameInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryPBGameInfos.Unmarshal(m, b)
}
func (m *QueryPBGameInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryPBGameInfos.Marshal(b, m, deterministic)
}
func (m *QueryPBGameInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryPBGameInfos.Merge(m, src)
}
func (m *QueryPBGameInfos) XXX_Size() int {
return xxx_messageInfo_QueryPBGameInfos.Size(m)
}
func (m *QueryPBGameInfos) XXX_DiscardUnknown() {
xxx_messageInfo_QueryPBGameInfos.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryPBGameInfos proto.InternalMessageInfo func (m *QueryPBGameInfos) Reset() { *m = QueryPBGameInfos{} }
func (m *QueryPBGameInfos) String() string { return proto.CompactTextString(m) }
func (*QueryPBGameInfos) ProtoMessage() {}
func (*QueryPBGameInfos) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
func (m *QueryPBGameInfos) GetGameIds() []string { func (m *QueryPBGameInfos) GetGameIds() []string {
if m != nil { if m != nil {
...@@ -1168,36 +805,13 @@ func (m *QueryPBGameInfos) GetGameIds() []string { ...@@ -1168,36 +805,13 @@ func (m *QueryPBGameInfos) GetGameIds() []string {
} }
type ReplyPBGameList struct { type ReplyPBGameList struct {
Games []*PokerBull `protobuf:"bytes,1,rep,name=games,proto3" json:"games,omitempty"` Games []*PokerBull `protobuf:"bytes,1,rep,name=games" json:"games,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyPBGameList) Reset() { *m = ReplyPBGameList{} } func (m *ReplyPBGameList) Reset() { *m = ReplyPBGameList{} }
func (m *ReplyPBGameList) String() string { return proto.CompactTextString(m) } func (m *ReplyPBGameList) String() string { return proto.CompactTextString(m) }
func (*ReplyPBGameList) ProtoMessage() {} func (*ReplyPBGameList) ProtoMessage() {}
func (*ReplyPBGameList) Descriptor() ([]byte, []int) { func (*ReplyPBGameList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
return fileDescriptor_8d22e4ee2313e311, []int{17}
}
func (m *ReplyPBGameList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyPBGameList.Unmarshal(m, b)
}
func (m *ReplyPBGameList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyPBGameList.Marshal(b, m, deterministic)
}
func (m *ReplyPBGameList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyPBGameList.Merge(m, src)
}
func (m *ReplyPBGameList) XXX_Size() int {
return xxx_messageInfo_ReplyPBGameList.Size(m)
}
func (m *ReplyPBGameList) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyPBGameList.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyPBGameList proto.InternalMessageInfo
func (m *ReplyPBGameList) GetGames() []*PokerBull { func (m *ReplyPBGameList) GetGames() []*PokerBull {
if m != nil { if m != nil {
...@@ -1207,45 +821,22 @@ func (m *ReplyPBGameList) GetGames() []*PokerBull { ...@@ -1207,45 +821,22 @@ func (m *ReplyPBGameList) GetGames() []*PokerBull {
} }
type ReceiptPBGame struct { type ReceiptPBGame struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,3,opt,name=addr" json:"addr,omitempty"`
Index int64 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"`
PrevIndex int64 `protobuf:"varint,5,opt,name=prevIndex,proto3" json:"prevIndex,omitempty"` PrevIndex int64 `protobuf:"varint,5,opt,name=prevIndex" json:"prevIndex,omitempty"`
PlayerNum int32 `protobuf:"varint,6,opt,name=playerNum,proto3" json:"playerNum,omitempty"` PlayerNum int32 `protobuf:"varint,6,opt,name=playerNum" json:"playerNum,omitempty"`
Value int64 `protobuf:"varint,7,opt,name=value,proto3" json:"value,omitempty"` Value int64 `protobuf:"varint,7,opt,name=value" json:"value,omitempty"`
IsWaiting bool `protobuf:"varint,8,opt,name=isWaiting,proto3" json:"isWaiting,omitempty"` IsWaiting bool `protobuf:"varint,8,opt,name=isWaiting" json:"isWaiting,omitempty"`
Players []string `protobuf:"bytes,9,rep,name=players,proto3" json:"players,omitempty"` Players []string `protobuf:"bytes,9,rep,name=players" json:"players,omitempty"`
PreStatus int32 `protobuf:"varint,10,opt,name=preStatus,proto3" json:"preStatus,omitempty"` PreStatus int32 `protobuf:"varint,10,opt,name=preStatus" json:"preStatus,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *ReceiptPBGame) Reset() { *m = ReceiptPBGame{} }
} func (m *ReceiptPBGame) String() string { return proto.CompactTextString(m) }
func (*ReceiptPBGame) ProtoMessage() {}
func (m *ReceiptPBGame) Reset() { *m = ReceiptPBGame{} } func (*ReceiptPBGame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
func (m *ReceiptPBGame) String() string { return proto.CompactTextString(m) }
func (*ReceiptPBGame) ProtoMessage() {}
func (*ReceiptPBGame) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{18}
}
func (m *ReceiptPBGame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptPBGame.Unmarshal(m, b)
}
func (m *ReceiptPBGame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptPBGame.Marshal(b, m, deterministic)
}
func (m *ReceiptPBGame) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptPBGame.Merge(m, src)
}
func (m *ReceiptPBGame) XXX_Size() int {
return xxx_messageInfo_ReceiptPBGame.Size(m)
}
func (m *ReceiptPBGame) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptPBGame.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptPBGame proto.InternalMessageInfo
func (m *ReceiptPBGame) GetGameId() string { func (m *ReceiptPBGame) GetGameId() string {
if m != nil { if m != nil {
...@@ -1318,38 +909,15 @@ func (m *ReceiptPBGame) GetPreStatus() int32 { ...@@ -1318,38 +909,15 @@ func (m *ReceiptPBGame) GetPreStatus() int32 {
} }
type PBStartTxReq struct { type PBStartTxReq struct {
Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Value int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
PlayerNum int32 `protobuf:"varint,2,opt,name=playerNum,proto3" json:"playerNum,omitempty"` PlayerNum int32 `protobuf:"varint,2,opt,name=playerNum" json:"playerNum,omitempty"`
Fee int64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` Fee int64 `protobuf:"varint,3,opt,name=fee" json:"fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBStartTxReq) Reset() { *m = PBStartTxReq{} }
func (m *PBStartTxReq) String() string { return proto.CompactTextString(m) }
func (*PBStartTxReq) ProtoMessage() {}
func (*PBStartTxReq) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{19}
} }
func (m *PBStartTxReq) XXX_Unmarshal(b []byte) error { func (m *PBStartTxReq) Reset() { *m = PBStartTxReq{} }
return xxx_messageInfo_PBStartTxReq.Unmarshal(m, b) func (m *PBStartTxReq) String() string { return proto.CompactTextString(m) }
} func (*PBStartTxReq) ProtoMessage() {}
func (m *PBStartTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*PBStartTxReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
return xxx_messageInfo_PBStartTxReq.Marshal(b, m, deterministic)
}
func (m *PBStartTxReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBStartTxReq.Merge(m, src)
}
func (m *PBStartTxReq) XXX_Size() int {
return xxx_messageInfo_PBStartTxReq.Size(m)
}
func (m *PBStartTxReq) XXX_DiscardUnknown() {
xxx_messageInfo_PBStartTxReq.DiscardUnknown(m)
}
var xxx_messageInfo_PBStartTxReq proto.InternalMessageInfo
func (m *PBStartTxReq) GetValue() int64 { func (m *PBStartTxReq) GetValue() int64 {
if m != nil { if m != nil {
...@@ -1373,37 +941,14 @@ func (m *PBStartTxReq) GetFee() int64 { ...@@ -1373,37 +941,14 @@ func (m *PBStartTxReq) GetFee() int64 {
} }
type PBContinueTxReq struct { type PBContinueTxReq struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Fee int64 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"` Fee int64 `protobuf:"varint,2,opt,name=fee" json:"fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PBContinueTxReq) Reset() { *m = PBContinueTxReq{} } func (m *PBContinueTxReq) Reset() { *m = PBContinueTxReq{} }
func (m *PBContinueTxReq) String() string { return proto.CompactTextString(m) } func (m *PBContinueTxReq) String() string { return proto.CompactTextString(m) }
func (*PBContinueTxReq) ProtoMessage() {} func (*PBContinueTxReq) ProtoMessage() {}
func (*PBContinueTxReq) Descriptor() ([]byte, []int) { func (*PBContinueTxReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
return fileDescriptor_8d22e4ee2313e311, []int{20}
}
func (m *PBContinueTxReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBContinueTxReq.Unmarshal(m, b)
}
func (m *PBContinueTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBContinueTxReq.Marshal(b, m, deterministic)
}
func (m *PBContinueTxReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBContinueTxReq.Merge(m, src)
}
func (m *PBContinueTxReq) XXX_Size() int {
return xxx_messageInfo_PBContinueTxReq.Size(m)
}
func (m *PBContinueTxReq) XXX_DiscardUnknown() {
xxx_messageInfo_PBContinueTxReq.DiscardUnknown(m)
}
var xxx_messageInfo_PBContinueTxReq proto.InternalMessageInfo
func (m *PBContinueTxReq) GetGameId() string { func (m *PBContinueTxReq) GetGameId() string {
if m != nil { if m != nil {
...@@ -1420,37 +965,14 @@ func (m *PBContinueTxReq) GetFee() int64 { ...@@ -1420,37 +965,14 @@ func (m *PBContinueTxReq) GetFee() int64 {
} }
type PBQuitTxReq struct { type PBQuitTxReq struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Fee int64 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"` Fee int64 `protobuf:"varint,2,opt,name=fee" json:"fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBQuitTxReq) Reset() { *m = PBQuitTxReq{} }
func (m *PBQuitTxReq) String() string { return proto.CompactTextString(m) }
func (*PBQuitTxReq) ProtoMessage() {}
func (*PBQuitTxReq) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{21}
} }
func (m *PBQuitTxReq) XXX_Unmarshal(b []byte) error { func (m *PBQuitTxReq) Reset() { *m = PBQuitTxReq{} }
return xxx_messageInfo_PBQuitTxReq.Unmarshal(m, b) func (m *PBQuitTxReq) String() string { return proto.CompactTextString(m) }
} func (*PBQuitTxReq) ProtoMessage() {}
func (m *PBQuitTxReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*PBQuitTxReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
return xxx_messageInfo_PBQuitTxReq.Marshal(b, m, deterministic)
}
func (m *PBQuitTxReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBQuitTxReq.Merge(m, src)
}
func (m *PBQuitTxReq) XXX_Size() int {
return xxx_messageInfo_PBQuitTxReq.Size(m)
}
func (m *PBQuitTxReq) XXX_DiscardUnknown() {
xxx_messageInfo_PBQuitTxReq.DiscardUnknown(m)
}
var xxx_messageInfo_PBQuitTxReq proto.InternalMessageInfo
func (m *PBQuitTxReq) GetGameId() string { func (m *PBQuitTxReq) GetGameId() string {
if m != nil { if m != nil {
...@@ -1467,37 +989,14 @@ func (m *PBQuitTxReq) GetFee() int64 { ...@@ -1467,37 +989,14 @@ func (m *PBQuitTxReq) GetFee() int64 {
} }
type PBQueryReq struct { type PBQueryReq struct {
GameId string `protobuf:"bytes,1,opt,name=gameId,proto3" json:"gameId,omitempty"` GameId string `protobuf:"bytes,1,opt,name=gameId" json:"gameId,omitempty"`
Fee int64 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"` Fee int64 `protobuf:"varint,2,opt,name=fee" json:"fee,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PBQueryReq) Reset() { *m = PBQueryReq{} }
func (m *PBQueryReq) String() string { return proto.CompactTextString(m) }
func (*PBQueryReq) ProtoMessage() {}
func (*PBQueryReq) Descriptor() ([]byte, []int) {
return fileDescriptor_8d22e4ee2313e311, []int{22}
}
func (m *PBQueryReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PBQueryReq.Unmarshal(m, b)
}
func (m *PBQueryReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PBQueryReq.Marshal(b, m, deterministic)
}
func (m *PBQueryReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_PBQueryReq.Merge(m, src)
}
func (m *PBQueryReq) XXX_Size() int {
return xxx_messageInfo_PBQueryReq.Size(m)
}
func (m *PBQueryReq) XXX_DiscardUnknown() {
xxx_messageInfo_PBQueryReq.DiscardUnknown(m)
} }
var xxx_messageInfo_PBQueryReq proto.InternalMessageInfo func (m *PBQueryReq) Reset() { *m = PBQueryReq{} }
func (m *PBQueryReq) String() string { return proto.CompactTextString(m) }
func (*PBQueryReq) ProtoMessage() {}
func (*PBQueryReq) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
func (m *PBQueryReq) GetGameId() string { func (m *PBQueryReq) GetGameId() string {
if m != nil { if m != nil {
...@@ -1539,74 +1038,6 @@ func init() { ...@@ -1539,74 +1038,6 @@ func init() {
proto.RegisterType((*PBQueryReq)(nil), "types.PBQueryReq") proto.RegisterType((*PBQueryReq)(nil), "types.PBQueryReq")
} }
func init() { proto.RegisterFile("pokerbull.proto", fileDescriptor_8d22e4ee2313e311) }
var fileDescriptor_8d22e4ee2313e311 = []byte{
// 984 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0xae, 0xe3, 0x38, 0x3f, 0xc7, 0xdb, 0xa4, 0x1d, 0xa0, 0xb2, 0x2a, 0x84, 0x22, 0x6f, 0x59,
0x02, 0x5a, 0x7a, 0x91, 0x22, 0xd0, 0x0a, 0x09, 0x29, 0xe1, 0x82, 0x56, 0x5a, 0xa1, 0x74, 0x5a,
0xb4, 0xd7, 0xde, 0x78, 0xb6, 0x6b, 0xad, 0xeb, 0xa4, 0xf6, 0xb8, 0xdb, 0xdc, 0xf2, 0x06, 0x3c,
0x01, 0x17, 0x3c, 0x17, 0xcf, 0xc1, 0x2d, 0x9a, 0x73, 0x66, 0xfc, 0xb7, 0x8e, 0xa0, 0x7b, 0x37,
0xe7, 0x67, 0xce, 0x7c, 0xe7, 0x7f, 0x60, 0xbc, 0x59, 0xbf, 0x13, 0xe9, 0xeb, 0x3c, 0x8e, 0x4f,
0x37, 0xe9, 0x5a, 0xae, 0x99, 0x23, 0xb7, 0x1b, 0x91, 0x1d, 0x1f, 0xca, 0x34, 0x48, 0xb2, 0x60,
0x25, 0xa3, 0x75, 0x42, 0x12, 0xff, 0x1f, 0x1b, 0x86, 0x4b, 0xa5, 0xbd, 0xc8, 0xe3, 0x98, 0x1d,
0x41, 0xef, 0x26, 0xb8, 0x15, 0x17, 0xa1, 0x67, 0x4d, 0xac, 0xe9, 0x90, 0x6b, 0x4a, 0xf1, 0x33,
0x19, 0xc8, 0x3c, 0xf3, 0x3a, 0x13, 0x6b, 0xea, 0x70, 0x4d, 0xb1, 0xcf, 0x61, 0x98, 0xc9, 0x20,
0x95, 0xd7, 0xd1, 0xad, 0xf0, 0xec, 0x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0x15, 0xff, 0xb8, 0x8b, 0xdf, 0xab,
0x19, 0x84, 0xa5, 0xf4, 0xa8, 0x7b, 0xb3, 0x3f, 0x2d, 0x18, 0x16, 0xff, 0x41, 0x76, 0x0a, 0x0e,
0x0d, 0xcc, 0x96, 0xf9, 0x7f, 0x6c, 0x3e, 0x3e, 0xbf, 0x25, 0x59, 0x74, 0x93, 0x5c, 0x3f, 0xf8,
0x7b, 0xec, 0x3b, 0x18, 0x14, 0xd3, 0xb1, 0x7d, 0x07, 0xb4, 0xdd, 0x7a, 0x0e, 0x5d, 0x9c, 0x94,
0x1f, 0x2e, 0x81, 0x16, 0xed, 0xd7, 0x3d, 0xfc, 0x8a, 0x9e, 0xfd, 0x1b, 0x00, 0x00, 0xff, 0xff,
0x0c, 0xc9, 0x5f, 0x3c, 0xb7, 0x0a, 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 _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
...@@ -1615,16 +1046,15 @@ var _ grpc.ClientConn ...@@ -1615,16 +1046,15 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// PokerbullClient is the client API for Pokerbull service. // Client API for Pokerbull service
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PokerbullClient interface { type PokerbullClient interface {
//游戏开始 // 游戏开始
Start(ctx context.Context, in *PBGameStart, opts ...grpc.CallOption) (*types.UnsignTx, error) Start(ctx context.Context, in *PBGameStart, opts ...grpc.CallOption) (*types2.UnsignTx, error)
//游戏继续 // 游戏继续
Continue(ctx context.Context, in *PBGameContinue, opts ...grpc.CallOption) (*types.UnsignTx, error) Continue(ctx context.Context, in *PBGameContinue, opts ...grpc.CallOption) (*types2.UnsignTx, error)
//游戏结束 // 游戏结束
Quit(ctx context.Context, in *PBGameQuit, opts ...grpc.CallOption) (*types.UnsignTx, error) Quit(ctx context.Context, in *PBGameQuit, opts ...grpc.CallOption) (*types2.UnsignTx, error)
} }
type pokerbullClient struct { type pokerbullClient struct {
...@@ -1635,41 +1065,42 @@ func NewPokerbullClient(cc *grpc.ClientConn) PokerbullClient { ...@@ -1635,41 +1065,42 @@ func NewPokerbullClient(cc *grpc.ClientConn) PokerbullClient {
return &pokerbullClient{cc} return &pokerbullClient{cc}
} }
func (c *pokerbullClient) Start(ctx context.Context, in *PBGameStart, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *pokerbullClient) Start(ctx context.Context, in *PBGameStart, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.pokerbull/Start", in, out, opts...) err := grpc.Invoke(ctx, "/types.pokerbull/Start", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *pokerbullClient) Continue(ctx context.Context, in *PBGameContinue, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *pokerbullClient) Continue(ctx context.Context, in *PBGameContinue, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.pokerbull/Continue", in, out, opts...) err := grpc.Invoke(ctx, "/types.pokerbull/Continue", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *pokerbullClient) Quit(ctx context.Context, in *PBGameQuit, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *pokerbullClient) Quit(ctx context.Context, in *PBGameQuit, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.pokerbull/Quit", in, out, opts...) err := grpc.Invoke(ctx, "/types.pokerbull/Quit", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
// PokerbullServer is the server API for Pokerbull service. // Server API for Pokerbull service
type PokerbullServer interface { type PokerbullServer interface {
//游戏开始 // 游戏开始
Start(context.Context, *PBGameStart) (*types.UnsignTx, error) Start(context.Context, *PBGameStart) (*types2.UnsignTx, error)
//游戏继续 // 游戏继续
Continue(context.Context, *PBGameContinue) (*types.UnsignTx, error) Continue(context.Context, *PBGameContinue) (*types2.UnsignTx, error)
//游戏结束 // 游戏结束
Quit(context.Context, *PBGameQuit) (*types.UnsignTx, error) Quit(context.Context, *PBGameQuit) (*types2.UnsignTx, error)
} }
func RegisterPokerbullServer(s *grpc.Server, srv PokerbullServer) { func RegisterPokerbullServer(s *grpc.Server, srv PokerbullServer) {
...@@ -1750,3 +1181,71 @@ var _Pokerbull_serviceDesc = grpc.ServiceDesc{ ...@@ -1750,3 +1181,71 @@ var _Pokerbull_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "pokerbull.proto", Metadata: "pokerbull.proto",
} }
func init() { proto.RegisterFile("pokerbull.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 984 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0xae, 0xe3, 0x38, 0x3f, 0xc7, 0xdb, 0xa4, 0x1d, 0xa0, 0xb2, 0x2a, 0x84, 0x22, 0x6f, 0x59,
0x02, 0x5a, 0x7a, 0x91, 0x22, 0xd0, 0x0a, 0x09, 0x29, 0xe1, 0x82, 0x56, 0x5a, 0xa1, 0x74, 0x5a,
0xb4, 0xd7, 0xde, 0x78, 0xb6, 0x6b, 0xad, 0xeb, 0xa4, 0xf6, 0xb8, 0xdb, 0xdc, 0xf2, 0x06, 0x3c,
0x01, 0x17, 0x3c, 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, 0xc4, 0xfe, 0x1f, 0x1d, 0xd8, 0xe7, 0x62, 0x25, 0xa2,
0x8d, 0xd4, 0x00, 0x1f, 0x9b, 0x65, 0x13, 0x21, 0xbb, 0x12, 0xa1, 0xd6, 0x48, 0xd4, 0x37, 0x9e,
0xd3, 0xdc, 0x78, 0xb5, 0x0a, 0xed, 0xb5, 0x54, 0x28, 0x75, 0x6a, 0xbf, 0xd1, 0xa9, 0xe5, 0x26,
0x1b, 0x34, 0x37, 0x99, 0x57, 0xee, 0xfa, 0x21, 0x05, 0xac, 0xba, 0xda, 0x8b, 0x1d, 0x07, 0xcd,
0x1d, 0x87, 0x75, 0x7f, 0x45, 0x1f, 0x0e, 0x2e, 0xee, 0x3e, 0x66, 0x4a, 0xb0, 0x03, 0xb0, 0xdf,
0x08, 0xf3, 0xbb, 0x51, 0x47, 0xff, 0x47, 0x18, 0x2f, 0x17, 0x66, 0x66, 0x90, 0xe1, 0x5d, 0xa1,
0xd6, 0x97, 0x3b, 0xe5, 0xe5, 0x1f, 0xd4, 0x90, 0xb8, 0xc4, 0x15, 0xff, 0xb8, 0x8b, 0xdf, 0xab,
0x19, 0x84, 0xa5, 0xf4, 0xa8, 0x7b, 0xb3, 0x3f, 0x2d, 0x18, 0x16, 0xff, 0x41, 0x76, 0x0a, 0x0e,
0x0d, 0xcc, 0x96, 0xf9, 0x7f, 0x6c, 0x3e, 0x3e, 0xbf, 0x25, 0x59, 0x74, 0x93, 0x5c, 0x3f, 0xf8,
0x7b, 0xec, 0x3b, 0x18, 0x14, 0xd3, 0xb1, 0x7d, 0x07, 0xb4, 0xdd, 0x7a, 0x0e, 0x5d, 0x9c, 0x94,
0x1f, 0x2e, 0x81, 0x16, 0xed, 0xd7, 0x3d, 0xfc, 0x8a, 0x9e, 0xfd, 0x1b, 0x00, 0x00, 0xff, 0xff,
0x0c, 0xc9, 0x5f, 0x3c, 0xb7, 0x0a, 0x00, 0x00,
}
This source diff could not be displayed because it is too large. You can view the blob instead.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: relay.proto // source: relay.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
relay.proto
It has these top-level messages:
RelayAction
RelayOrder
RelayCreate
RelayAccept
RelayRevoke
RelayConfirmTx
RelayVerify
RelayVerifyCli
BtcHeader
BtcHeaders
BtcTransaction
Vin
Vout
BtcSpv
RelayLastRcvBtcHeader
ReceiptRelayRcvBTCHeaders
ReceiptRelayLog
ReqRelayAddrCoins
ReplyRelayOrders
QueryRelayOrderParam
QueryRelayOrderResult
ReqRelayBtcHeaderHeightList
ReplyRelayBtcHeadHeightList
ReqRelayQryBTCHeadHeight
ReplayRelayQryBTCHeadHeight
*/
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
proto "github.com/golang/protobuf/proto" import math "math"
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 _ = proto.Marshal var _ = proto.Marshal
...@@ -41,7 +72,6 @@ var RelayOrderStatus_name = map[int32]string{ ...@@ -41,7 +72,6 @@ var RelayOrderStatus_name = map[int32]string{
5: "canceled", 5: "canceled",
6: "timeout", 6: "timeout",
} }
var RelayOrderStatus_value = map[string]int32{ var RelayOrderStatus_value = map[string]int32{
"init": 0, "init": 0,
"pending": 1, "pending": 1,
...@@ -55,10 +85,7 @@ var RelayOrderStatus_value = map[string]int32{ ...@@ -55,10 +85,7 @@ var RelayOrderStatus_value = map[string]int32{
func (x RelayOrderStatus) String() string { func (x RelayOrderStatus) String() string {
return proto.EnumName(RelayOrderStatus_name, int32(x)) return proto.EnumName(RelayOrderStatus_name, int32(x))
} }
func (RelayOrderStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (RelayOrderStatus) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{0}
}
type RelayAction struct { type RelayAction struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
...@@ -69,82 +96,47 @@ type RelayAction struct { ...@@ -69,82 +96,47 @@ type RelayAction struct {
// *RelayAction_Verify // *RelayAction_Verify
// *RelayAction_VerifyCli // *RelayAction_VerifyCli
// *RelayAction_BtcHeaders // *RelayAction_BtcHeaders
Value isRelayAction_Value `protobuf_oneof:"value"` Value isRelayAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,10,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *RelayAction) Reset() { *m = RelayAction{} } func (m *RelayAction) Reset() { *m = RelayAction{} }
func (m *RelayAction) String() string { return proto.CompactTextString(m) } func (m *RelayAction) String() string { return proto.CompactTextString(m) }
func (*RelayAction) ProtoMessage() {} func (*RelayAction) ProtoMessage() {}
func (*RelayAction) Descriptor() ([]byte, []int) { func (*RelayAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
return fileDescriptor_9f69a7d5a802d584, []int{0}
}
func (m *RelayAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayAction.Unmarshal(m, b)
}
func (m *RelayAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayAction.Marshal(b, m, deterministic)
}
func (m *RelayAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayAction.Merge(m, src)
}
func (m *RelayAction) XXX_Size() int {
return xxx_messageInfo_RelayAction.Size(m)
}
func (m *RelayAction) XXX_DiscardUnknown() {
xxx_messageInfo_RelayAction.DiscardUnknown(m)
}
var xxx_messageInfo_RelayAction proto.InternalMessageInfo
type isRelayAction_Value interface { type isRelayAction_Value interface {
isRelayAction_Value() isRelayAction_Value()
} }
type RelayAction_Create struct { type RelayAction_Create struct {
Create *RelayCreate `protobuf:"bytes,1,opt,name=create,proto3,oneof"` Create *RelayCreate `protobuf:"bytes,1,opt,name=create,oneof"`
} }
type RelayAction_Accept struct { type RelayAction_Accept struct {
Accept *RelayAccept `protobuf:"bytes,2,opt,name=accept,proto3,oneof"` Accept *RelayAccept `protobuf:"bytes,2,opt,name=accept,oneof"`
} }
type RelayAction_Revoke struct { type RelayAction_Revoke struct {
Revoke *RelayRevoke `protobuf:"bytes,3,opt,name=revoke,proto3,oneof"` Revoke *RelayRevoke `protobuf:"bytes,3,opt,name=revoke,oneof"`
} }
type RelayAction_ConfirmTx struct { type RelayAction_ConfirmTx struct {
ConfirmTx *RelayConfirmTx `protobuf:"bytes,4,opt,name=confirmTx,proto3,oneof"` ConfirmTx *RelayConfirmTx `protobuf:"bytes,4,opt,name=confirmTx,oneof"`
} }
type RelayAction_Verify struct { type RelayAction_Verify struct {
Verify *RelayVerify `protobuf:"bytes,5,opt,name=verify,proto3,oneof"` Verify *RelayVerify `protobuf:"bytes,5,opt,name=verify,oneof"`
} }
type RelayAction_VerifyCli struct { type RelayAction_VerifyCli struct {
VerifyCli *RelayVerifyCli `protobuf:"bytes,6,opt,name=verifyCli,proto3,oneof"` VerifyCli *RelayVerifyCli `protobuf:"bytes,6,opt,name=verifyCli,oneof"`
} }
type RelayAction_BtcHeaders struct { type RelayAction_BtcHeaders struct {
BtcHeaders *BtcHeaders `protobuf:"bytes,7,opt,name=btcHeaders,proto3,oneof"` BtcHeaders *BtcHeaders `protobuf:"bytes,7,opt,name=btcHeaders,oneof"`
} }
func (*RelayAction_Create) isRelayAction_Value() {} func (*RelayAction_Create) isRelayAction_Value() {}
func (*RelayAction_Accept) isRelayAction_Value() {}
func (*RelayAction_Accept) isRelayAction_Value() {} func (*RelayAction_Revoke) isRelayAction_Value() {}
func (*RelayAction_ConfirmTx) isRelayAction_Value() {}
func (*RelayAction_Revoke) isRelayAction_Value() {} func (*RelayAction_Verify) isRelayAction_Value() {}
func (*RelayAction_VerifyCli) isRelayAction_Value() {}
func (*RelayAction_ConfirmTx) isRelayAction_Value() {}
func (*RelayAction_Verify) isRelayAction_Value() {}
func (*RelayAction_VerifyCli) isRelayAction_Value() {}
func (*RelayAction_BtcHeaders) isRelayAction_Value() {} func (*RelayAction_BtcHeaders) isRelayAction_Value() {}
func (m *RelayAction) GetValue() isRelayAction_Value { func (m *RelayAction) GetValue() isRelayAction_Value {
...@@ -339,37 +331,37 @@ func _RelayAction_OneofSizer(msg proto.Message) (n int) { ...@@ -339,37 +331,37 @@ func _RelayAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *RelayAction_Create: case *RelayAction_Create:
s := proto.Size(x.Create) s := proto.Size(x.Create)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RelayAction_Accept: case *RelayAction_Accept:
s := proto.Size(x.Accept) s := proto.Size(x.Accept)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RelayAction_Revoke: case *RelayAction_Revoke:
s := proto.Size(x.Revoke) s := proto.Size(x.Revoke)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RelayAction_ConfirmTx: case *RelayAction_ConfirmTx:
s := proto.Size(x.ConfirmTx) s := proto.Size(x.ConfirmTx)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RelayAction_Verify: case *RelayAction_Verify:
s := proto.Size(x.Verify) s := proto.Size(x.Verify)
n += 1 // tag and wire n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RelayAction_VerifyCli: case *RelayAction_VerifyCli:
s := proto.Size(x.VerifyCli) s := proto.Size(x.VerifyCli)
n += 1 // tag and wire n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RelayAction_BtcHeaders: case *RelayAction_BtcHeaders:
s := proto.Size(x.BtcHeaders) s := proto.Size(x.BtcHeaders)
n += 1 // tag and wire n += proto.SizeVarint(7<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -380,54 +372,31 @@ func _RelayAction_OneofSizer(msg proto.Message) (n int) { ...@@ -380,54 +372,31 @@ func _RelayAction_OneofSizer(msg proto.Message) (n int) {
} }
type RelayOrder struct { type RelayOrder struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
Status RelayOrderStatus `protobuf:"varint,2,opt,name=status,proto3,enum=types.RelayOrderStatus" json:"status,omitempty"` Status RelayOrderStatus `protobuf:"varint,2,opt,name=status,enum=types.RelayOrderStatus" json:"status,omitempty"`
PreStatus RelayOrderStatus `protobuf:"varint,3,opt,name=preStatus,proto3,enum=types.RelayOrderStatus" json:"preStatus,omitempty"` PreStatus RelayOrderStatus `protobuf:"varint,3,opt,name=preStatus,enum=types.RelayOrderStatus" json:"preStatus,omitempty"`
Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` Amount uint64 `protobuf:"varint,4,opt,name=amount" json:"amount,omitempty"`
CreaterAddr string `protobuf:"bytes,5,opt,name=createrAddr,proto3" json:"createrAddr,omitempty"` CreaterAddr string `protobuf:"bytes,5,opt,name=createrAddr" json:"createrAddr,omitempty"`
CoinOperation uint32 `protobuf:"varint,6,opt,name=coinOperation,proto3" json:"coinOperation,omitempty"` CoinOperation uint32 `protobuf:"varint,6,opt,name=coinOperation" json:"coinOperation,omitempty"`
Coin string `protobuf:"bytes,7,opt,name=coin,proto3" json:"coin,omitempty"` Coin string `protobuf:"bytes,7,opt,name=coin" json:"coin,omitempty"`
CoinAmount uint64 `protobuf:"varint,8,opt,name=coinAmount,proto3" json:"coinAmount,omitempty"` CoinAmount uint64 `protobuf:"varint,8,opt,name=coinAmount" json:"coinAmount,omitempty"`
CoinAddr string `protobuf:"bytes,9,opt,name=coinAddr,proto3" json:"coinAddr,omitempty"` CoinAddr string `protobuf:"bytes,9,opt,name=coinAddr" json:"coinAddr,omitempty"`
CoinTxHash string `protobuf:"bytes,10,opt,name=coinTxHash,proto3" json:"coinTxHash,omitempty"` CoinTxHash string `protobuf:"bytes,10,opt,name=coinTxHash" json:"coinTxHash,omitempty"`
CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,11,opt,name=createTime" json:"createTime,omitempty"`
AcceptAddr string `protobuf:"bytes,12,opt,name=acceptAddr,proto3" json:"acceptAddr,omitempty"` AcceptAddr string `protobuf:"bytes,12,opt,name=acceptAddr" json:"acceptAddr,omitempty"`
AcceptTime int64 `protobuf:"varint,13,opt,name=acceptTime,proto3" json:"acceptTime,omitempty"` AcceptTime int64 `protobuf:"varint,13,opt,name=acceptTime" json:"acceptTime,omitempty"`
ConfirmTime int64 `protobuf:"varint,14,opt,name=confirmTime,proto3" json:"confirmTime,omitempty"` ConfirmTime int64 `protobuf:"varint,14,opt,name=confirmTime" json:"confirmTime,omitempty"`
FinishTime int64 `protobuf:"varint,15,opt,name=finishTime,proto3" json:"finishTime,omitempty"` FinishTime int64 `protobuf:"varint,15,opt,name=finishTime" json:"finishTime,omitempty"`
FinishTxHash string `protobuf:"bytes,16,opt,name=finishTxHash,proto3" json:"finishTxHash,omitempty"` FinishTxHash string `protobuf:"bytes,16,opt,name=finishTxHash" json:"finishTxHash,omitempty"`
Height int64 `protobuf:"varint,17,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,17,opt,name=height" json:"height,omitempty"`
CoinHeight uint64 `protobuf:"varint,18,opt,name=coinHeight,proto3" json:"coinHeight,omitempty"` CoinHeight uint64 `protobuf:"varint,18,opt,name=coinHeight" json:"coinHeight,omitempty"`
CoinWaits uint32 `protobuf:"varint,19,opt,name=coinWaits,proto3" json:"coinWaits,omitempty"` CoinWaits uint32 `protobuf:"varint,19,opt,name=coinWaits" json:"coinWaits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *RelayOrder) Reset() { *m = RelayOrder{} }
} func (m *RelayOrder) String() string { return proto.CompactTextString(m) }
func (*RelayOrder) ProtoMessage() {}
func (m *RelayOrder) Reset() { *m = RelayOrder{} } func (*RelayOrder) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *RelayOrder) String() string { return proto.CompactTextString(m) }
func (*RelayOrder) ProtoMessage() {}
func (*RelayOrder) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{1}
}
func (m *RelayOrder) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayOrder.Unmarshal(m, b)
}
func (m *RelayOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayOrder.Marshal(b, m, deterministic)
}
func (m *RelayOrder) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayOrder.Merge(m, src)
}
func (m *RelayOrder) XXX_Size() int {
return xxx_messageInfo_RelayOrder.Size(m)
}
func (m *RelayOrder) XXX_DiscardUnknown() {
xxx_messageInfo_RelayOrder.DiscardUnknown(m)
}
var xxx_messageInfo_RelayOrder proto.InternalMessageInfo
func (m *RelayOrder) GetId() string { func (m *RelayOrder) GetId() string {
if m != nil { if m != nil {
...@@ -563,41 +532,18 @@ func (m *RelayOrder) GetCoinWaits() uint32 { ...@@ -563,41 +532,18 @@ func (m *RelayOrder) GetCoinWaits() uint32 {
} }
type RelayCreate struct { type RelayCreate struct {
Operation uint32 `protobuf:"varint,1,opt,name=operation,proto3" json:"operation,omitempty"` Operation uint32 `protobuf:"varint,1,opt,name=operation" json:"operation,omitempty"`
Coin string `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin,omitempty"` Coin string `protobuf:"bytes,2,opt,name=coin" json:"coin,omitempty"`
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount" json:"amount,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,omitempty"`
BtyAmount uint64 `protobuf:"varint,5,opt,name=btyAmount,proto3" json:"btyAmount,omitempty"` BtyAmount uint64 `protobuf:"varint,5,opt,name=btyAmount" json:"btyAmount,omitempty"`
CoinWaits uint32 `protobuf:"varint,6,opt,name=coinWaits,proto3" json:"coinWaits,omitempty"` CoinWaits uint32 `protobuf:"varint,6,opt,name=coinWaits" json:"coinWaits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *RelayCreate) Reset() { *m = RelayCreate{} } func (m *RelayCreate) Reset() { *m = RelayCreate{} }
func (m *RelayCreate) String() string { return proto.CompactTextString(m) } func (m *RelayCreate) String() string { return proto.CompactTextString(m) }
func (*RelayCreate) ProtoMessage() {} func (*RelayCreate) ProtoMessage() {}
func (*RelayCreate) Descriptor() ([]byte, []int) { func (*RelayCreate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return fileDescriptor_9f69a7d5a802d584, []int{2}
}
func (m *RelayCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayCreate.Unmarshal(m, b)
}
func (m *RelayCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayCreate.Marshal(b, m, deterministic)
}
func (m *RelayCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayCreate.Merge(m, src)
}
func (m *RelayCreate) XXX_Size() int {
return xxx_messageInfo_RelayCreate.Size(m)
}
func (m *RelayCreate) XXX_DiscardUnknown() {
xxx_messageInfo_RelayCreate.DiscardUnknown(m)
}
var xxx_messageInfo_RelayCreate proto.InternalMessageInfo
func (m *RelayCreate) GetOperation() uint32 { func (m *RelayCreate) GetOperation() uint32 {
if m != nil { if m != nil {
...@@ -642,38 +588,15 @@ func (m *RelayCreate) GetCoinWaits() uint32 { ...@@ -642,38 +588,15 @@ func (m *RelayCreate) GetCoinWaits() uint32 {
} }
type RelayAccept struct { type RelayAccept struct {
OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` OrderId string `protobuf:"bytes,1,opt,name=orderId" json:"orderId,omitempty"`
CoinAddr string `protobuf:"bytes,2,opt,name=coinAddr,proto3" json:"coinAddr,omitempty"` CoinAddr string `protobuf:"bytes,2,opt,name=coinAddr" json:"coinAddr,omitempty"`
CoinWaits uint32 `protobuf:"varint,3,opt,name=coinWaits,proto3" json:"coinWaits,omitempty"` CoinWaits uint32 `protobuf:"varint,3,opt,name=coinWaits" json:"coinWaits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *RelayAccept) Reset() { *m = RelayAccept{} } func (m *RelayAccept) Reset() { *m = RelayAccept{} }
func (m *RelayAccept) String() string { return proto.CompactTextString(m) } func (m *RelayAccept) String() string { return proto.CompactTextString(m) }
func (*RelayAccept) ProtoMessage() {} func (*RelayAccept) ProtoMessage() {}
func (*RelayAccept) Descriptor() ([]byte, []int) { func (*RelayAccept) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
return fileDescriptor_9f69a7d5a802d584, []int{3}
}
func (m *RelayAccept) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayAccept.Unmarshal(m, b)
}
func (m *RelayAccept) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayAccept.Marshal(b, m, deterministic)
}
func (m *RelayAccept) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayAccept.Merge(m, src)
}
func (m *RelayAccept) XXX_Size() int {
return xxx_messageInfo_RelayAccept.Size(m)
}
func (m *RelayAccept) XXX_DiscardUnknown() {
xxx_messageInfo_RelayAccept.DiscardUnknown(m)
}
var xxx_messageInfo_RelayAccept proto.InternalMessageInfo
func (m *RelayAccept) GetOrderId() string { func (m *RelayAccept) GetOrderId() string {
if m != nil { if m != nil {
...@@ -697,38 +620,15 @@ func (m *RelayAccept) GetCoinWaits() uint32 { ...@@ -697,38 +620,15 @@ func (m *RelayAccept) GetCoinWaits() uint32 {
} }
type RelayRevoke struct { type RelayRevoke struct {
OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` OrderId string `protobuf:"bytes,1,opt,name=orderId" json:"orderId,omitempty"`
Target uint32 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"` Target uint32 `protobuf:"varint,2,opt,name=target" json:"target,omitempty"`
Action uint32 `protobuf:"varint,3,opt,name=action,proto3" json:"action,omitempty"` Action uint32 `protobuf:"varint,3,opt,name=action" json:"action,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RelayRevoke) Reset() { *m = RelayRevoke{} }
func (m *RelayRevoke) String() string { return proto.CompactTextString(m) }
func (*RelayRevoke) ProtoMessage() {}
func (*RelayRevoke) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{4}
}
func (m *RelayRevoke) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayRevoke.Unmarshal(m, b)
}
func (m *RelayRevoke) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayRevoke.Marshal(b, m, deterministic)
}
func (m *RelayRevoke) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayRevoke.Merge(m, src)
}
func (m *RelayRevoke) XXX_Size() int {
return xxx_messageInfo_RelayRevoke.Size(m)
}
func (m *RelayRevoke) XXX_DiscardUnknown() {
xxx_messageInfo_RelayRevoke.DiscardUnknown(m)
} }
var xxx_messageInfo_RelayRevoke proto.InternalMessageInfo func (m *RelayRevoke) Reset() { *m = RelayRevoke{} }
func (m *RelayRevoke) String() string { return proto.CompactTextString(m) }
func (*RelayRevoke) ProtoMessage() {}
func (*RelayRevoke) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *RelayRevoke) GetOrderId() string { func (m *RelayRevoke) GetOrderId() string {
if m != nil { if m != nil {
...@@ -751,39 +651,16 @@ func (m *RelayRevoke) GetAction() uint32 { ...@@ -751,39 +651,16 @@ func (m *RelayRevoke) GetAction() uint32 {
return 0 return 0
} }
//客户只用交易hash提交, 验证需要的其他信息由relayd提供 // 客户只用交易hash提交, 验证需要的其他信息由relayd提供
type RelayConfirmTx struct { type RelayConfirmTx struct {
OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` OrderId string `protobuf:"bytes,1,opt,name=orderId" json:"orderId,omitempty"`
TxHash string `protobuf:"bytes,2,opt,name=txHash,proto3" json:"txHash,omitempty"` TxHash string `protobuf:"bytes,2,opt,name=txHash" json:"txHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RelayConfirmTx) Reset() { *m = RelayConfirmTx{} }
func (m *RelayConfirmTx) String() string { return proto.CompactTextString(m) }
func (*RelayConfirmTx) ProtoMessage() {}
func (*RelayConfirmTx) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{5}
}
func (m *RelayConfirmTx) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayConfirmTx.Unmarshal(m, b)
}
func (m *RelayConfirmTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayConfirmTx.Marshal(b, m, deterministic)
}
func (m *RelayConfirmTx) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayConfirmTx.Merge(m, src)
}
func (m *RelayConfirmTx) XXX_Size() int {
return xxx_messageInfo_RelayConfirmTx.Size(m)
}
func (m *RelayConfirmTx) XXX_DiscardUnknown() {
xxx_messageInfo_RelayConfirmTx.DiscardUnknown(m)
} }
var xxx_messageInfo_RelayConfirmTx proto.InternalMessageInfo func (m *RelayConfirmTx) Reset() { *m = RelayConfirmTx{} }
func (m *RelayConfirmTx) String() string { return proto.CompactTextString(m) }
func (*RelayConfirmTx) ProtoMessage() {}
func (*RelayConfirmTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *RelayConfirmTx) GetOrderId() string { func (m *RelayConfirmTx) GetOrderId() string {
if m != nil { if m != nil {
...@@ -801,38 +678,15 @@ func (m *RelayConfirmTx) GetTxHash() string { ...@@ -801,38 +678,15 @@ func (m *RelayConfirmTx) GetTxHash() string {
// relayd提供验证信息 // relayd提供验证信息
type RelayVerify struct { type RelayVerify struct {
OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` OrderId string `protobuf:"bytes,1,opt,name=orderId" json:"orderId,omitempty"`
Tx *BtcTransaction `protobuf:"bytes,2,opt,name=tx,proto3" json:"tx,omitempty"` Tx *BtcTransaction `protobuf:"bytes,2,opt,name=tx" json:"tx,omitempty"`
Spv *BtcSpv `protobuf:"bytes,3,opt,name=spv,proto3" json:"spv,omitempty"` Spv *BtcSpv `protobuf:"bytes,3,opt,name=spv" json:"spv,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RelayVerify) Reset() { *m = RelayVerify{} }
func (m *RelayVerify) String() string { return proto.CompactTextString(m) }
func (*RelayVerify) ProtoMessage() {}
func (*RelayVerify) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{6}
}
func (m *RelayVerify) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayVerify.Unmarshal(m, b)
}
func (m *RelayVerify) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayVerify.Marshal(b, m, deterministic)
}
func (m *RelayVerify) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayVerify.Merge(m, src)
}
func (m *RelayVerify) XXX_Size() int {
return xxx_messageInfo_RelayVerify.Size(m)
}
func (m *RelayVerify) XXX_DiscardUnknown() {
xxx_messageInfo_RelayVerify.DiscardUnknown(m)
} }
var xxx_messageInfo_RelayVerify proto.InternalMessageInfo func (m *RelayVerify) Reset() { *m = RelayVerify{} }
func (m *RelayVerify) String() string { return proto.CompactTextString(m) }
func (*RelayVerify) ProtoMessage() {}
func (*RelayVerify) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *RelayVerify) GetOrderId() string { func (m *RelayVerify) GetOrderId() string {
if m != nil { if m != nil {
...@@ -856,40 +710,17 @@ func (m *RelayVerify) GetSpv() *BtcSpv { ...@@ -856,40 +710,17 @@ func (m *RelayVerify) GetSpv() *BtcSpv {
} }
type RelayVerifyCli struct { type RelayVerifyCli struct {
OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` OrderId string `protobuf:"bytes,1,opt,name=orderId" json:"orderId,omitempty"`
RawTx string `protobuf:"bytes,2,opt,name=rawTx,proto3" json:"rawTx,omitempty"` RawTx string `protobuf:"bytes,2,opt,name=rawTx" json:"rawTx,omitempty"`
TxIndex uint32 `protobuf:"varint,3,opt,name=txIndex,proto3" json:"txIndex,omitempty"` TxIndex uint32 `protobuf:"varint,3,opt,name=txIndex" json:"txIndex,omitempty"`
MerkBranch string `protobuf:"bytes,4,opt,name=merkBranch,proto3" json:"merkBranch,omitempty"` MerkBranch string `protobuf:"bytes,4,opt,name=merkBranch" json:"merkBranch,omitempty"`
BlockHash string `protobuf:"bytes,5,opt,name=blockHash,proto3" json:"blockHash,omitempty"` BlockHash string `protobuf:"bytes,5,opt,name=blockHash" json:"blockHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *RelayVerifyCli) Reset() { *m = RelayVerifyCli{} } func (m *RelayVerifyCli) Reset() { *m = RelayVerifyCli{} }
func (m *RelayVerifyCli) String() string { return proto.CompactTextString(m) } func (m *RelayVerifyCli) String() string { return proto.CompactTextString(m) }
func (*RelayVerifyCli) ProtoMessage() {} func (*RelayVerifyCli) ProtoMessage() {}
func (*RelayVerifyCli) Descriptor() ([]byte, []int) { func (*RelayVerifyCli) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
return fileDescriptor_9f69a7d5a802d584, []int{7}
}
func (m *RelayVerifyCli) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayVerifyCli.Unmarshal(m, b)
}
func (m *RelayVerifyCli) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayVerifyCli.Marshal(b, m, deterministic)
}
func (m *RelayVerifyCli) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayVerifyCli.Merge(m, src)
}
func (m *RelayVerifyCli) XXX_Size() int {
return xxx_messageInfo_RelayVerifyCli.Size(m)
}
func (m *RelayVerifyCli) XXX_DiscardUnknown() {
xxx_messageInfo_RelayVerifyCli.DiscardUnknown(m)
}
var xxx_messageInfo_RelayVerifyCli proto.InternalMessageInfo
func (m *RelayVerifyCli) GetOrderId() string { func (m *RelayVerifyCli) GetOrderId() string {
if m != nil { if m != nil {
...@@ -927,47 +758,24 @@ func (m *RelayVerifyCli) GetBlockHash() string { ...@@ -927,47 +758,24 @@ func (m *RelayVerifyCli) GetBlockHash() string {
} }
type BtcHeader struct { type BtcHeader struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
Confirmations uint64 `protobuf:"varint,2,opt,name=confirmations,proto3" json:"confirmations,omitempty"` Confirmations uint64 `protobuf:"varint,2,opt,name=confirmations" json:"confirmations,omitempty"`
Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Height uint64 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` Version uint32 `protobuf:"varint,4,opt,name=version" json:"version,omitempty"`
MerkleRoot string `protobuf:"bytes,5,opt,name=merkleRoot,proto3" json:"merkleRoot,omitempty"` MerkleRoot string `protobuf:"bytes,5,opt,name=merkleRoot" json:"merkleRoot,omitempty"`
Time int64 `protobuf:"varint,6,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,6,opt,name=time" json:"time,omitempty"`
Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` Nonce uint64 `protobuf:"varint,7,opt,name=nonce" json:"nonce,omitempty"`
Bits int64 `protobuf:"varint,8,opt,name=bits,proto3" json:"bits,omitempty"` Bits int64 `protobuf:"varint,8,opt,name=bits" json:"bits,omitempty"`
Difficulty int64 `protobuf:"varint,9,opt,name=difficulty,proto3" json:"difficulty,omitempty"` Difficulty int64 `protobuf:"varint,9,opt,name=difficulty" json:"difficulty,omitempty"`
PreviousHash string `protobuf:"bytes,10,opt,name=previousHash,proto3" json:"previousHash,omitempty"` PreviousHash string `protobuf:"bytes,10,opt,name=previousHash" json:"previousHash,omitempty"`
NextHash string `protobuf:"bytes,11,opt,name=nextHash,proto3" json:"nextHash,omitempty"` NextHash string `protobuf:"bytes,11,opt,name=nextHash" json:"nextHash,omitempty"`
IsReset bool `protobuf:"varint,12,opt,name=isReset,proto3" json:"isReset,omitempty"` IsReset bool `protobuf:"varint,12,opt,name=isReset" json:"isReset,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *BtcHeader) Reset() { *m = BtcHeader{} }
} func (m *BtcHeader) String() string { return proto.CompactTextString(m) }
func (*BtcHeader) ProtoMessage() {}
func (m *BtcHeader) Reset() { *m = BtcHeader{} } func (*BtcHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *BtcHeader) String() string { return proto.CompactTextString(m) }
func (*BtcHeader) ProtoMessage() {}
func (*BtcHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{8}
}
func (m *BtcHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BtcHeader.Unmarshal(m, b)
}
func (m *BtcHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BtcHeader.Marshal(b, m, deterministic)
}
func (m *BtcHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_BtcHeader.Merge(m, src)
}
func (m *BtcHeader) XXX_Size() int {
return xxx_messageInfo_BtcHeader.Size(m)
}
func (m *BtcHeader) XXX_DiscardUnknown() {
xxx_messageInfo_BtcHeader.DiscardUnknown(m)
}
var xxx_messageInfo_BtcHeader proto.InternalMessageInfo
func (m *BtcHeader) GetHash() string { func (m *BtcHeader) GetHash() string {
if m != nil { if m != nil {
...@@ -1054,36 +862,13 @@ func (m *BtcHeader) GetIsReset() bool { ...@@ -1054,36 +862,13 @@ func (m *BtcHeader) GetIsReset() bool {
} }
type BtcHeaders struct { type BtcHeaders struct {
BtcHeader []*BtcHeader `protobuf:"bytes,1,rep,name=btcHeader,proto3" json:"btcHeader,omitempty"` BtcHeader []*BtcHeader `protobuf:"bytes,1,rep,name=btcHeader" json:"btcHeader,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BtcHeaders) Reset() { *m = BtcHeaders{} }
func (m *BtcHeaders) String() string { return proto.CompactTextString(m) }
func (*BtcHeaders) ProtoMessage() {}
func (*BtcHeaders) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{9}
}
func (m *BtcHeaders) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BtcHeaders.Unmarshal(m, b)
}
func (m *BtcHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BtcHeaders.Marshal(b, m, deterministic)
}
func (m *BtcHeaders) XXX_Merge(src proto.Message) {
xxx_messageInfo_BtcHeaders.Merge(m, src)
}
func (m *BtcHeaders) XXX_Size() int {
return xxx_messageInfo_BtcHeaders.Size(m)
}
func (m *BtcHeaders) XXX_DiscardUnknown() {
xxx_messageInfo_BtcHeaders.DiscardUnknown(m)
} }
var xxx_messageInfo_BtcHeaders proto.InternalMessageInfo func (m *BtcHeaders) Reset() { *m = BtcHeaders{} }
func (m *BtcHeaders) String() string { return proto.CompactTextString(m) }
func (*BtcHeaders) ProtoMessage() {}
func (*BtcHeaders) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *BtcHeaders) GetBtcHeader() []*BtcHeader { func (m *BtcHeaders) GetBtcHeader() []*BtcHeader {
if m != nil { if m != nil {
...@@ -1093,41 +878,18 @@ func (m *BtcHeaders) GetBtcHeader() []*BtcHeader { ...@@ -1093,41 +878,18 @@ func (m *BtcHeaders) GetBtcHeader() []*BtcHeader {
} }
type BtcTransaction struct { type BtcTransaction struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"` BlockHeight uint64 `protobuf:"varint,2,opt,name=blockHeight" json:"blockHeight,omitempty"`
Vin []*Vin `protobuf:"bytes,3,rep,name=vin,proto3" json:"vin,omitempty"` Vin []*Vin `protobuf:"bytes,3,rep,name=vin" json:"vin,omitempty"`
Vout []*Vout `protobuf:"bytes,4,rep,name=vout,proto3" json:"vout,omitempty"` Vout []*Vout `protobuf:"bytes,4,rep,name=vout" json:"vout,omitempty"`
Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,5,opt,name=time" json:"time,omitempty"`
Confirmations uint64 `protobuf:"varint,6,opt,name=confirmations,proto3" json:"confirmations,omitempty"` Confirmations uint64 `protobuf:"varint,6,opt,name=confirmations" json:"confirmations,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BtcTransaction) Reset() { *m = BtcTransaction{} } func (m *BtcTransaction) Reset() { *m = BtcTransaction{} }
func (m *BtcTransaction) String() string { return proto.CompactTextString(m) } func (m *BtcTransaction) String() string { return proto.CompactTextString(m) }
func (*BtcTransaction) ProtoMessage() {} func (*BtcTransaction) ProtoMessage() {}
func (*BtcTransaction) Descriptor() ([]byte, []int) { func (*BtcTransaction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
return fileDescriptor_9f69a7d5a802d584, []int{10}
}
func (m *BtcTransaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BtcTransaction.Unmarshal(m, b)
}
func (m *BtcTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BtcTransaction.Marshal(b, m, deterministic)
}
func (m *BtcTransaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_BtcTransaction.Merge(m, src)
}
func (m *BtcTransaction) XXX_Size() int {
return xxx_messageInfo_BtcTransaction.Size(m)
}
func (m *BtcTransaction) XXX_DiscardUnknown() {
xxx_messageInfo_BtcTransaction.DiscardUnknown(m)
}
var xxx_messageInfo_BtcTransaction proto.InternalMessageInfo
func (m *BtcTransaction) GetHash() string { func (m *BtcTransaction) GetHash() string {
if m != nil { if m != nil {
...@@ -1172,37 +934,14 @@ func (m *BtcTransaction) GetConfirmations() uint64 { ...@@ -1172,37 +934,14 @@ func (m *BtcTransaction) GetConfirmations() uint64 {
} }
type Vin struct { type Vin struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
Value uint64 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty"` Value uint64 `protobuf:"varint,2,opt,name=Value" json:"Value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Vin) Reset() { *m = Vin{} }
func (m *Vin) String() string { return proto.CompactTextString(m) }
func (*Vin) ProtoMessage() {}
func (*Vin) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{11}
}
func (m *Vin) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vin.Unmarshal(m, b)
}
func (m *Vin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vin.Marshal(b, m, deterministic)
}
func (m *Vin) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vin.Merge(m, src)
}
func (m *Vin) XXX_Size() int {
return xxx_messageInfo_Vin.Size(m)
}
func (m *Vin) XXX_DiscardUnknown() {
xxx_messageInfo_Vin.DiscardUnknown(m)
} }
var xxx_messageInfo_Vin proto.InternalMessageInfo func (m *Vin) Reset() { *m = Vin{} }
func (m *Vin) String() string { return proto.CompactTextString(m) }
func (*Vin) ProtoMessage() {}
func (*Vin) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *Vin) GetAddress() string { func (m *Vin) GetAddress() string {
if m != nil { if m != nil {
...@@ -1219,38 +958,15 @@ func (m *Vin) GetValue() uint64 { ...@@ -1219,38 +958,15 @@ func (m *Vin) GetValue() uint64 {
} }
type Vout struct { type Vout struct {
Coinbase bool `protobuf:"varint,1,opt,name=coinbase,proto3" json:"coinbase,omitempty"` Coinbase bool `protobuf:"varint,1,opt,name=coinbase" json:"coinbase,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"`
Value uint64 `protobuf:"varint,3,opt,name=Value,proto3" json:"Value,omitempty"` Value uint64 `protobuf:"varint,3,opt,name=Value" json:"Value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Vout) Reset() { *m = Vout{} } func (m *Vout) Reset() { *m = Vout{} }
func (m *Vout) String() string { return proto.CompactTextString(m) } func (m *Vout) String() string { return proto.CompactTextString(m) }
func (*Vout) ProtoMessage() {} func (*Vout) ProtoMessage() {}
func (*Vout) Descriptor() ([]byte, []int) { func (*Vout) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
return fileDescriptor_9f69a7d5a802d584, []int{12}
}
func (m *Vout) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vout.Unmarshal(m, b)
}
func (m *Vout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vout.Marshal(b, m, deterministic)
}
func (m *Vout) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vout.Merge(m, src)
}
func (m *Vout) XXX_Size() int {
return xxx_messageInfo_Vout.Size(m)
}
func (m *Vout) XXX_DiscardUnknown() {
xxx_messageInfo_Vout.DiscardUnknown(m)
}
var xxx_messageInfo_Vout proto.InternalMessageInfo
func (m *Vout) GetCoinbase() bool { func (m *Vout) GetCoinbase() bool {
if m != nil { if m != nil {
...@@ -1274,41 +990,18 @@ func (m *Vout) GetValue() uint64 { ...@@ -1274,41 +990,18 @@ func (m *Vout) GetValue() uint64 {
} }
type BtcSpv struct { type BtcSpv struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"`
Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Height uint64 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
BlockHash string `protobuf:"bytes,4,opt,name=blockHash,proto3" json:"blockHash,omitempty"` BlockHash string `protobuf:"bytes,4,opt,name=blockHash" json:"blockHash,omitempty"`
TxIndex uint32 `protobuf:"varint,5,opt,name=txIndex,proto3" json:"txIndex,omitempty"` TxIndex uint32 `protobuf:"varint,5,opt,name=txIndex" json:"txIndex,omitempty"`
BranchProof [][]byte `protobuf:"bytes,6,rep,name=branchProof,proto3" json:"branchProof,omitempty"` BranchProof [][]byte `protobuf:"bytes,6,rep,name=branchProof,proto3" json:"branchProof,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BtcSpv) Reset() { *m = BtcSpv{} }
func (m *BtcSpv) String() string { return proto.CompactTextString(m) }
func (*BtcSpv) ProtoMessage() {}
func (*BtcSpv) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{13}
}
func (m *BtcSpv) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BtcSpv.Unmarshal(m, b)
}
func (m *BtcSpv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BtcSpv.Marshal(b, m, deterministic)
}
func (m *BtcSpv) XXX_Merge(src proto.Message) {
xxx_messageInfo_BtcSpv.Merge(m, src)
}
func (m *BtcSpv) XXX_Size() int {
return xxx_messageInfo_BtcSpv.Size(m)
}
func (m *BtcSpv) XXX_DiscardUnknown() {
xxx_messageInfo_BtcSpv.DiscardUnknown(m)
} }
var xxx_messageInfo_BtcSpv proto.InternalMessageInfo func (m *BtcSpv) Reset() { *m = BtcSpv{} }
func (m *BtcSpv) String() string { return proto.CompactTextString(m) }
func (*BtcSpv) ProtoMessage() {}
func (*BtcSpv) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *BtcSpv) GetHash() string { func (m *BtcSpv) GetHash() string {
if m != nil { if m != nil {
...@@ -1353,37 +1046,14 @@ func (m *BtcSpv) GetBranchProof() [][]byte { ...@@ -1353,37 +1046,14 @@ func (m *BtcSpv) GetBranchProof() [][]byte {
} }
type RelayLastRcvBtcHeader struct { type RelayLastRcvBtcHeader struct {
Header *BtcHeader `protobuf:"bytes,1,opt,name=Header,proto3" json:"Header,omitempty"` Header *BtcHeader `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"`
BaseHeight uint64 `protobuf:"varint,2,opt,name=baseHeight,proto3" json:"baseHeight,omitempty"` BaseHeight uint64 `protobuf:"varint,2,opt,name=baseHeight" json:"baseHeight,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *RelayLastRcvBtcHeader) Reset() { *m = RelayLastRcvBtcHeader{} } func (m *RelayLastRcvBtcHeader) Reset() { *m = RelayLastRcvBtcHeader{} }
func (m *RelayLastRcvBtcHeader) String() string { return proto.CompactTextString(m) } func (m *RelayLastRcvBtcHeader) String() string { return proto.CompactTextString(m) }
func (*RelayLastRcvBtcHeader) ProtoMessage() {} func (*RelayLastRcvBtcHeader) ProtoMessage() {}
func (*RelayLastRcvBtcHeader) Descriptor() ([]byte, []int) { func (*RelayLastRcvBtcHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
return fileDescriptor_9f69a7d5a802d584, []int{14}
}
func (m *RelayLastRcvBtcHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RelayLastRcvBtcHeader.Unmarshal(m, b)
}
func (m *RelayLastRcvBtcHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RelayLastRcvBtcHeader.Marshal(b, m, deterministic)
}
func (m *RelayLastRcvBtcHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_RelayLastRcvBtcHeader.Merge(m, src)
}
func (m *RelayLastRcvBtcHeader) XXX_Size() int {
return xxx_messageInfo_RelayLastRcvBtcHeader.Size(m)
}
func (m *RelayLastRcvBtcHeader) XXX_DiscardUnknown() {
xxx_messageInfo_RelayLastRcvBtcHeader.DiscardUnknown(m)
}
var xxx_messageInfo_RelayLastRcvBtcHeader proto.InternalMessageInfo
func (m *RelayLastRcvBtcHeader) GetHeader() *BtcHeader { func (m *RelayLastRcvBtcHeader) GetHeader() *BtcHeader {
if m != nil { if m != nil {
...@@ -1400,40 +1070,17 @@ func (m *RelayLastRcvBtcHeader) GetBaseHeight() uint64 { ...@@ -1400,40 +1070,17 @@ func (m *RelayLastRcvBtcHeader) GetBaseHeight() uint64 {
} }
type ReceiptRelayRcvBTCHeaders struct { type ReceiptRelayRcvBTCHeaders struct {
Headers []*BtcHeader `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` Headers []*BtcHeader `protobuf:"bytes,1,rep,name=headers" json:"headers,omitempty"`
LastHeight uint64 `protobuf:"varint,2,opt,name=lastHeight,proto3" json:"lastHeight,omitempty"` LastHeight uint64 `protobuf:"varint,2,opt,name=lastHeight" json:"lastHeight,omitempty"`
NewHeight uint64 `protobuf:"varint,3,opt,name=newHeight,proto3" json:"newHeight,omitempty"` NewHeight uint64 `protobuf:"varint,3,opt,name=newHeight" json:"newHeight,omitempty"`
LastBaseHeight uint64 `protobuf:"varint,4,opt,name=lastBaseHeight,proto3" json:"lastBaseHeight,omitempty"` LastBaseHeight uint64 `protobuf:"varint,4,opt,name=lastBaseHeight" json:"lastBaseHeight,omitempty"`
NewBaseHeight uint64 `protobuf:"varint,5,opt,name=newBaseHeight,proto3" json:"newBaseHeight,omitempty"` NewBaseHeight uint64 `protobuf:"varint,5,opt,name=newBaseHeight" json:"newBaseHeight,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptRelayRcvBTCHeaders) Reset() { *m = ReceiptRelayRcvBTCHeaders{} } func (m *ReceiptRelayRcvBTCHeaders) Reset() { *m = ReceiptRelayRcvBTCHeaders{} }
func (m *ReceiptRelayRcvBTCHeaders) String() string { return proto.CompactTextString(m) } func (m *ReceiptRelayRcvBTCHeaders) String() string { return proto.CompactTextString(m) }
func (*ReceiptRelayRcvBTCHeaders) ProtoMessage() {} func (*ReceiptRelayRcvBTCHeaders) ProtoMessage() {}
func (*ReceiptRelayRcvBTCHeaders) Descriptor() ([]byte, []int) { func (*ReceiptRelayRcvBTCHeaders) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
return fileDescriptor_9f69a7d5a802d584, []int{15}
}
func (m *ReceiptRelayRcvBTCHeaders) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptRelayRcvBTCHeaders.Unmarshal(m, b)
}
func (m *ReceiptRelayRcvBTCHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptRelayRcvBTCHeaders.Marshal(b, m, deterministic)
}
func (m *ReceiptRelayRcvBTCHeaders) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptRelayRcvBTCHeaders.Merge(m, src)
}
func (m *ReceiptRelayRcvBTCHeaders) XXX_Size() int {
return xxx_messageInfo_ReceiptRelayRcvBTCHeaders.Size(m)
}
func (m *ReceiptRelayRcvBTCHeaders) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptRelayRcvBTCHeaders.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptRelayRcvBTCHeaders proto.InternalMessageInfo
func (m *ReceiptRelayRcvBTCHeaders) GetHeaders() []*BtcHeader { func (m *ReceiptRelayRcvBTCHeaders) GetHeaders() []*BtcHeader {
if m != nil { if m != nil {
...@@ -1471,53 +1118,30 @@ func (m *ReceiptRelayRcvBTCHeaders) GetNewBaseHeight() uint64 { ...@@ -1471,53 +1118,30 @@ func (m *ReceiptRelayRcvBTCHeaders) GetNewBaseHeight() uint64 {
} }
type ReceiptRelayLog struct { type ReceiptRelayLog struct {
OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` OrderId string `protobuf:"bytes,1,opt,name=orderId" json:"orderId,omitempty"`
CurStatus string `protobuf:"bytes,2,opt,name=curStatus,proto3" json:"curStatus,omitempty"` CurStatus string `protobuf:"bytes,2,opt,name=curStatus" json:"curStatus,omitempty"`
PreStatus string `protobuf:"bytes,3,opt,name=preStatus,proto3" json:"preStatus,omitempty"` PreStatus string `protobuf:"bytes,3,opt,name=preStatus" json:"preStatus,omitempty"`
TxAmount string `protobuf:"bytes,4,opt,name=txAmount,proto3" json:"txAmount,omitempty"` TxAmount string `protobuf:"bytes,4,opt,name=txAmount" json:"txAmount,omitempty"`
CreaterAddr string `protobuf:"bytes,5,opt,name=createrAddr,proto3" json:"createrAddr,omitempty"` CreaterAddr string `protobuf:"bytes,5,opt,name=createrAddr" json:"createrAddr,omitempty"`
CoinOperation string `protobuf:"bytes,6,opt,name=coinOperation,proto3" json:"coinOperation,omitempty"` CoinOperation string `protobuf:"bytes,6,opt,name=coinOperation" json:"coinOperation,omitempty"`
Coin string `protobuf:"bytes,7,opt,name=coin,proto3" json:"coin,omitempty"` Coin string `protobuf:"bytes,7,opt,name=coin" json:"coin,omitempty"`
CoinAmount string `protobuf:"bytes,8,opt,name=coinAmount,proto3" json:"coinAmount,omitempty"` CoinAmount string `protobuf:"bytes,8,opt,name=coinAmount" json:"coinAmount,omitempty"`
CoinAddr string `protobuf:"bytes,9,opt,name=coinAddr,proto3" json:"coinAddr,omitempty"` CoinAddr string `protobuf:"bytes,9,opt,name=coinAddr" json:"coinAddr,omitempty"`
CoinTxHash string `protobuf:"bytes,10,opt,name=coinTxHash,proto3" json:"coinTxHash,omitempty"` CoinTxHash string `protobuf:"bytes,10,opt,name=coinTxHash" json:"coinTxHash,omitempty"`
CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,11,opt,name=createTime" json:"createTime,omitempty"`
AcceptAddr string `protobuf:"bytes,12,opt,name=acceptAddr,proto3" json:"acceptAddr,omitempty"` AcceptAddr string `protobuf:"bytes,12,opt,name=acceptAddr" json:"acceptAddr,omitempty"`
AcceptTime int64 `protobuf:"varint,13,opt,name=acceptTime,proto3" json:"acceptTime,omitempty"` AcceptTime int64 `protobuf:"varint,13,opt,name=acceptTime" json:"acceptTime,omitempty"`
ConfirmTime int64 `protobuf:"varint,14,opt,name=confirmTime,proto3" json:"confirmTime,omitempty"` ConfirmTime int64 `protobuf:"varint,14,opt,name=confirmTime" json:"confirmTime,omitempty"`
FinishTime int64 `protobuf:"varint,15,opt,name=finishTime,proto3" json:"finishTime,omitempty"` FinishTime int64 `protobuf:"varint,15,opt,name=finishTime" json:"finishTime,omitempty"`
FinishTxHash string `protobuf:"bytes,16,opt,name=finishTxHash,proto3" json:"finishTxHash,omitempty"` FinishTxHash string `protobuf:"bytes,16,opt,name=finishTxHash" json:"finishTxHash,omitempty"`
CoinHeight uint64 `protobuf:"varint,17,opt,name=coinHeight,proto3" json:"coinHeight,omitempty"` CoinHeight uint64 `protobuf:"varint,17,opt,name=coinHeight" json:"coinHeight,omitempty"`
CoinWaits uint32 `protobuf:"varint,18,opt,name=coinWaits,proto3" json:"coinWaits,omitempty"` CoinWaits uint32 `protobuf:"varint,18,opt,name=coinWaits" json:"coinWaits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *ReceiptRelayLog) Reset() { *m = ReceiptRelayLog{} }
} func (m *ReceiptRelayLog) String() string { return proto.CompactTextString(m) }
func (*ReceiptRelayLog) ProtoMessage() {}
func (m *ReceiptRelayLog) Reset() { *m = ReceiptRelayLog{} } func (*ReceiptRelayLog) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
func (m *ReceiptRelayLog) String() string { return proto.CompactTextString(m) }
func (*ReceiptRelayLog) ProtoMessage() {}
func (*ReceiptRelayLog) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{16}
}
func (m *ReceiptRelayLog) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptRelayLog.Unmarshal(m, b)
}
func (m *ReceiptRelayLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptRelayLog.Marshal(b, m, deterministic)
}
func (m *ReceiptRelayLog) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptRelayLog.Merge(m, src)
}
func (m *ReceiptRelayLog) XXX_Size() int {
return xxx_messageInfo_ReceiptRelayLog.Size(m)
}
func (m *ReceiptRelayLog) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptRelayLog.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptRelayLog proto.InternalMessageInfo
func (m *ReceiptRelayLog) GetOrderId() string { func (m *ReceiptRelayLog) GetOrderId() string {
if m != nil { if m != nil {
...@@ -1646,40 +1270,17 @@ func (m *ReceiptRelayLog) GetCoinWaits() uint32 { ...@@ -1646,40 +1270,17 @@ func (m *ReceiptRelayLog) GetCoinWaits() uint32 {
} }
type ReqRelayAddrCoins struct { type ReqRelayAddrCoins struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
Status RelayOrderStatus `protobuf:"varint,2,opt,name=status,proto3,enum=types.RelayOrderStatus" json:"status,omitempty"` Status RelayOrderStatus `protobuf:"varint,2,opt,name=status,enum=types.RelayOrderStatus" json:"status,omitempty"`
Coins []string `protobuf:"bytes,3,rep,name=coins,proto3" json:"coins,omitempty"` Coins []string `protobuf:"bytes,3,rep,name=coins" json:"coins,omitempty"`
PageNumber int32 `protobuf:"varint,4,opt,name=pageNumber,proto3" json:"pageNumber,omitempty"` PageNumber int32 `protobuf:"varint,4,opt,name=pageNumber" json:"pageNumber,omitempty"`
PageSize int32 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=pageSize" json:"pageSize,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqRelayAddrCoins) Reset() { *m = ReqRelayAddrCoins{} } func (m *ReqRelayAddrCoins) Reset() { *m = ReqRelayAddrCoins{} }
func (m *ReqRelayAddrCoins) String() string { return proto.CompactTextString(m) } func (m *ReqRelayAddrCoins) String() string { return proto.CompactTextString(m) }
func (*ReqRelayAddrCoins) ProtoMessage() {} func (*ReqRelayAddrCoins) ProtoMessage() {}
func (*ReqRelayAddrCoins) Descriptor() ([]byte, []int) { func (*ReqRelayAddrCoins) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
return fileDescriptor_9f69a7d5a802d584, []int{17}
}
func (m *ReqRelayAddrCoins) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqRelayAddrCoins.Unmarshal(m, b)
}
func (m *ReqRelayAddrCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqRelayAddrCoins.Marshal(b, m, deterministic)
}
func (m *ReqRelayAddrCoins) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqRelayAddrCoins.Merge(m, src)
}
func (m *ReqRelayAddrCoins) XXX_Size() int {
return xxx_messageInfo_ReqRelayAddrCoins.Size(m)
}
func (m *ReqRelayAddrCoins) XXX_DiscardUnknown() {
xxx_messageInfo_ReqRelayAddrCoins.DiscardUnknown(m)
}
var xxx_messageInfo_ReqRelayAddrCoins proto.InternalMessageInfo
func (m *ReqRelayAddrCoins) GetAddr() string { func (m *ReqRelayAddrCoins) GetAddr() string {
if m != nil { if m != nil {
...@@ -1717,36 +1318,13 @@ func (m *ReqRelayAddrCoins) GetPageSize() int32 { ...@@ -1717,36 +1318,13 @@ func (m *ReqRelayAddrCoins) GetPageSize() int32 {
} }
type ReplyRelayOrders struct { type ReplyRelayOrders struct {
Relayorders []*RelayOrder `protobuf:"bytes,1,rep,name=relayorders,proto3" json:"relayorders,omitempty"` Relayorders []*RelayOrder `protobuf:"bytes,1,rep,name=relayorders" json:"relayorders,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyRelayOrders) Reset() { *m = ReplyRelayOrders{} }
func (m *ReplyRelayOrders) String() string { return proto.CompactTextString(m) }
func (*ReplyRelayOrders) ProtoMessage() {}
func (*ReplyRelayOrders) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{18}
}
func (m *ReplyRelayOrders) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyRelayOrders.Unmarshal(m, b)
}
func (m *ReplyRelayOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyRelayOrders.Marshal(b, m, deterministic)
}
func (m *ReplyRelayOrders) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyRelayOrders.Merge(m, src)
}
func (m *ReplyRelayOrders) XXX_Size() int {
return xxx_messageInfo_ReplyRelayOrders.Size(m)
}
func (m *ReplyRelayOrders) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyRelayOrders.DiscardUnknown(m)
} }
var xxx_messageInfo_ReplyRelayOrders proto.InternalMessageInfo func (m *ReplyRelayOrders) Reset() { *m = ReplyRelayOrders{} }
func (m *ReplyRelayOrders) String() string { return proto.CompactTextString(m) }
func (*ReplyRelayOrders) ProtoMessage() {}
func (*ReplyRelayOrders) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
func (m *ReplyRelayOrders) GetRelayorders() []*RelayOrder { func (m *ReplyRelayOrders) GetRelayorders() []*RelayOrder {
if m != nil { if m != nil {
...@@ -1756,37 +1334,14 @@ func (m *ReplyRelayOrders) GetRelayorders() []*RelayOrder { ...@@ -1756,37 +1334,14 @@ func (m *ReplyRelayOrders) GetRelayorders() []*RelayOrder {
} }
type QueryRelayOrderParam struct { type QueryRelayOrderParam struct {
Status RelayOrderStatus `protobuf:"varint,1,opt,name=status,proto3,enum=types.RelayOrderStatus" json:"status,omitempty"` Status RelayOrderStatus `protobuf:"varint,1,opt,name=status,enum=types.RelayOrderStatus" json:"status,omitempty"`
OrderId string `protobuf:"bytes,2,opt,name=orderId,proto3" json:"orderId,omitempty"` OrderId string `protobuf:"bytes,2,opt,name=orderId" json:"orderId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *QueryRelayOrderParam) Reset() { *m = QueryRelayOrderParam{} } func (m *QueryRelayOrderParam) Reset() { *m = QueryRelayOrderParam{} }
func (m *QueryRelayOrderParam) String() string { return proto.CompactTextString(m) } func (m *QueryRelayOrderParam) String() string { return proto.CompactTextString(m) }
func (*QueryRelayOrderParam) ProtoMessage() {} func (*QueryRelayOrderParam) ProtoMessage() {}
func (*QueryRelayOrderParam) Descriptor() ([]byte, []int) { func (*QueryRelayOrderParam) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
return fileDescriptor_9f69a7d5a802d584, []int{19}
}
func (m *QueryRelayOrderParam) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryRelayOrderParam.Unmarshal(m, b)
}
func (m *QueryRelayOrderParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryRelayOrderParam.Marshal(b, m, deterministic)
}
func (m *QueryRelayOrderParam) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRelayOrderParam.Merge(m, src)
}
func (m *QueryRelayOrderParam) XXX_Size() int {
return xxx_messageInfo_QueryRelayOrderParam.Size(m)
}
func (m *QueryRelayOrderParam) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRelayOrderParam.DiscardUnknown(m)
}
var xxx_messageInfo_QueryRelayOrderParam proto.InternalMessageInfo
func (m *QueryRelayOrderParam) GetStatus() RelayOrderStatus { func (m *QueryRelayOrderParam) GetStatus() RelayOrderStatus {
if m != nil { if m != nil {
...@@ -1803,36 +1358,13 @@ func (m *QueryRelayOrderParam) GetOrderId() string { ...@@ -1803,36 +1358,13 @@ func (m *QueryRelayOrderParam) GetOrderId() string {
} }
type QueryRelayOrderResult struct { type QueryRelayOrderResult struct {
Orders []*RelayOrder `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` Orders []*RelayOrder `protobuf:"bytes,1,rep,name=orders" json:"orders,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *QueryRelayOrderResult) Reset() { *m = QueryRelayOrderResult{} }
func (m *QueryRelayOrderResult) String() string { return proto.CompactTextString(m) }
func (*QueryRelayOrderResult) ProtoMessage() {}
func (*QueryRelayOrderResult) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{20}
}
func (m *QueryRelayOrderResult) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_QueryRelayOrderResult.Unmarshal(m, b)
}
func (m *QueryRelayOrderResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_QueryRelayOrderResult.Marshal(b, m, deterministic)
}
func (m *QueryRelayOrderResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_QueryRelayOrderResult.Merge(m, src)
}
func (m *QueryRelayOrderResult) XXX_Size() int {
return xxx_messageInfo_QueryRelayOrderResult.Size(m)
}
func (m *QueryRelayOrderResult) XXX_DiscardUnknown() {
xxx_messageInfo_QueryRelayOrderResult.DiscardUnknown(m)
} }
var xxx_messageInfo_QueryRelayOrderResult proto.InternalMessageInfo func (m *QueryRelayOrderResult) Reset() { *m = QueryRelayOrderResult{} }
func (m *QueryRelayOrderResult) String() string { return proto.CompactTextString(m) }
func (*QueryRelayOrderResult) ProtoMessage() {}
func (*QueryRelayOrderResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
func (m *QueryRelayOrderResult) GetOrders() []*RelayOrder { func (m *QueryRelayOrderResult) GetOrders() []*RelayOrder {
if m != nil { if m != nil {
...@@ -1842,38 +1374,15 @@ func (m *QueryRelayOrderResult) GetOrders() []*RelayOrder { ...@@ -1842,38 +1374,15 @@ func (m *QueryRelayOrderResult) GetOrders() []*RelayOrder {
} }
type ReqRelayBtcHeaderHeightList struct { type ReqRelayBtcHeaderHeightList struct {
ReqHeight int64 `protobuf:"varint,1,opt,name=reqHeight,proto3" json:"reqHeight,omitempty"` ReqHeight int64 `protobuf:"varint,1,opt,name=reqHeight" json:"reqHeight,omitempty"`
Counts int32 `protobuf:"varint,2,opt,name=counts,proto3" json:"counts,omitempty"` Counts int32 `protobuf:"varint,2,opt,name=counts" json:"counts,omitempty"`
Direction int32 `protobuf:"varint,3,opt,name=direction,proto3" json:"direction,omitempty"` Direction int32 `protobuf:"varint,3,opt,name=direction" json:"direction,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqRelayBtcHeaderHeightList) Reset() { *m = ReqRelayBtcHeaderHeightList{} } func (m *ReqRelayBtcHeaderHeightList) Reset() { *m = ReqRelayBtcHeaderHeightList{} }
func (m *ReqRelayBtcHeaderHeightList) String() string { return proto.CompactTextString(m) } func (m *ReqRelayBtcHeaderHeightList) String() string { return proto.CompactTextString(m) }
func (*ReqRelayBtcHeaderHeightList) ProtoMessage() {} func (*ReqRelayBtcHeaderHeightList) ProtoMessage() {}
func (*ReqRelayBtcHeaderHeightList) Descriptor() ([]byte, []int) { func (*ReqRelayBtcHeaderHeightList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
return fileDescriptor_9f69a7d5a802d584, []int{21}
}
func (m *ReqRelayBtcHeaderHeightList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqRelayBtcHeaderHeightList.Unmarshal(m, b)
}
func (m *ReqRelayBtcHeaderHeightList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqRelayBtcHeaderHeightList.Marshal(b, m, deterministic)
}
func (m *ReqRelayBtcHeaderHeightList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqRelayBtcHeaderHeightList.Merge(m, src)
}
func (m *ReqRelayBtcHeaderHeightList) XXX_Size() int {
return xxx_messageInfo_ReqRelayBtcHeaderHeightList.Size(m)
}
func (m *ReqRelayBtcHeaderHeightList) XXX_DiscardUnknown() {
xxx_messageInfo_ReqRelayBtcHeaderHeightList.DiscardUnknown(m)
}
var xxx_messageInfo_ReqRelayBtcHeaderHeightList proto.InternalMessageInfo
func (m *ReqRelayBtcHeaderHeightList) GetReqHeight() int64 { func (m *ReqRelayBtcHeaderHeightList) GetReqHeight() int64 {
if m != nil { if m != nil {
...@@ -1897,36 +1406,13 @@ func (m *ReqRelayBtcHeaderHeightList) GetDirection() int32 { ...@@ -1897,36 +1406,13 @@ func (m *ReqRelayBtcHeaderHeightList) GetDirection() int32 {
} }
type ReplyRelayBtcHeadHeightList struct { type ReplyRelayBtcHeadHeightList struct {
Heights []int64 `protobuf:"varint,1,rep,packed,name=heights,proto3" json:"heights,omitempty"` Heights []int64 `protobuf:"varint,1,rep,packed,name=heights" json:"heights,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyRelayBtcHeadHeightList) Reset() { *m = ReplyRelayBtcHeadHeightList{} } func (m *ReplyRelayBtcHeadHeightList) Reset() { *m = ReplyRelayBtcHeadHeightList{} }
func (m *ReplyRelayBtcHeadHeightList) String() string { return proto.CompactTextString(m) } func (m *ReplyRelayBtcHeadHeightList) String() string { return proto.CompactTextString(m) }
func (*ReplyRelayBtcHeadHeightList) ProtoMessage() {} func (*ReplyRelayBtcHeadHeightList) ProtoMessage() {}
func (*ReplyRelayBtcHeadHeightList) Descriptor() ([]byte, []int) { func (*ReplyRelayBtcHeadHeightList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
return fileDescriptor_9f69a7d5a802d584, []int{22}
}
func (m *ReplyRelayBtcHeadHeightList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyRelayBtcHeadHeightList.Unmarshal(m, b)
}
func (m *ReplyRelayBtcHeadHeightList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyRelayBtcHeadHeightList.Marshal(b, m, deterministic)
}
func (m *ReplyRelayBtcHeadHeightList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyRelayBtcHeadHeightList.Merge(m, src)
}
func (m *ReplyRelayBtcHeadHeightList) XXX_Size() int {
return xxx_messageInfo_ReplyRelayBtcHeadHeightList.Size(m)
}
func (m *ReplyRelayBtcHeadHeightList) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyRelayBtcHeadHeightList.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyRelayBtcHeadHeightList proto.InternalMessageInfo
func (m *ReplyRelayBtcHeadHeightList) GetHeights() []int64 { func (m *ReplyRelayBtcHeadHeightList) GetHeights() []int64 {
if m != nil { if m != nil {
...@@ -1936,36 +1422,13 @@ func (m *ReplyRelayBtcHeadHeightList) GetHeights() []int64 { ...@@ -1936,36 +1422,13 @@ func (m *ReplyRelayBtcHeadHeightList) GetHeights() []int64 {
} }
type ReqRelayQryBTCHeadHeight struct { type ReqRelayQryBTCHeadHeight struct {
BaseHeight int64 `protobuf:"varint,1,opt,name=baseHeight,proto3" json:"baseHeight,omitempty"` BaseHeight int64 `protobuf:"varint,1,opt,name=baseHeight" json:"baseHeight,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqRelayQryBTCHeadHeight) Reset() { *m = ReqRelayQryBTCHeadHeight{} } func (m *ReqRelayQryBTCHeadHeight) Reset() { *m = ReqRelayQryBTCHeadHeight{} }
func (m *ReqRelayQryBTCHeadHeight) String() string { return proto.CompactTextString(m) } func (m *ReqRelayQryBTCHeadHeight) String() string { return proto.CompactTextString(m) }
func (*ReqRelayQryBTCHeadHeight) ProtoMessage() {} func (*ReqRelayQryBTCHeadHeight) ProtoMessage() {}
func (*ReqRelayQryBTCHeadHeight) Descriptor() ([]byte, []int) { func (*ReqRelayQryBTCHeadHeight) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
return fileDescriptor_9f69a7d5a802d584, []int{23}
}
func (m *ReqRelayQryBTCHeadHeight) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqRelayQryBTCHeadHeight.Unmarshal(m, b)
}
func (m *ReqRelayQryBTCHeadHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqRelayQryBTCHeadHeight.Marshal(b, m, deterministic)
}
func (m *ReqRelayQryBTCHeadHeight) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqRelayQryBTCHeadHeight.Merge(m, src)
}
func (m *ReqRelayQryBTCHeadHeight) XXX_Size() int {
return xxx_messageInfo_ReqRelayQryBTCHeadHeight.Size(m)
}
func (m *ReqRelayQryBTCHeadHeight) XXX_DiscardUnknown() {
xxx_messageInfo_ReqRelayQryBTCHeadHeight.DiscardUnknown(m)
}
var xxx_messageInfo_ReqRelayQryBTCHeadHeight proto.InternalMessageInfo
func (m *ReqRelayQryBTCHeadHeight) GetBaseHeight() int64 { func (m *ReqRelayQryBTCHeadHeight) GetBaseHeight() int64 {
if m != nil { if m != nil {
...@@ -1975,37 +1438,14 @@ func (m *ReqRelayQryBTCHeadHeight) GetBaseHeight() int64 { ...@@ -1975,37 +1438,14 @@ func (m *ReqRelayQryBTCHeadHeight) GetBaseHeight() int64 {
} }
type ReplayRelayQryBTCHeadHeight struct { type ReplayRelayQryBTCHeadHeight struct {
CurHeight int64 `protobuf:"varint,1,opt,name=curHeight,proto3" json:"curHeight,omitempty"` CurHeight int64 `protobuf:"varint,1,opt,name=curHeight" json:"curHeight,omitempty"`
BaseHeight int64 `protobuf:"varint,2,opt,name=baseHeight,proto3" json:"baseHeight,omitempty"` BaseHeight int64 `protobuf:"varint,2,opt,name=baseHeight" json:"baseHeight,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplayRelayQryBTCHeadHeight) Reset() { *m = ReplayRelayQryBTCHeadHeight{} }
func (m *ReplayRelayQryBTCHeadHeight) String() string { return proto.CompactTextString(m) }
func (*ReplayRelayQryBTCHeadHeight) ProtoMessage() {}
func (*ReplayRelayQryBTCHeadHeight) Descriptor() ([]byte, []int) {
return fileDescriptor_9f69a7d5a802d584, []int{24}
}
func (m *ReplayRelayQryBTCHeadHeight) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplayRelayQryBTCHeadHeight.Unmarshal(m, b)
}
func (m *ReplayRelayQryBTCHeadHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplayRelayQryBTCHeadHeight.Marshal(b, m, deterministic)
}
func (m *ReplayRelayQryBTCHeadHeight) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplayRelayQryBTCHeadHeight.Merge(m, src)
}
func (m *ReplayRelayQryBTCHeadHeight) XXX_Size() int {
return xxx_messageInfo_ReplayRelayQryBTCHeadHeight.Size(m)
}
func (m *ReplayRelayQryBTCHeadHeight) XXX_DiscardUnknown() {
xxx_messageInfo_ReplayRelayQryBTCHeadHeight.DiscardUnknown(m)
} }
var xxx_messageInfo_ReplayRelayQryBTCHeadHeight proto.InternalMessageInfo func (m *ReplayRelayQryBTCHeadHeight) Reset() { *m = ReplayRelayQryBTCHeadHeight{} }
func (m *ReplayRelayQryBTCHeadHeight) String() string { return proto.CompactTextString(m) }
func (*ReplayRelayQryBTCHeadHeight) ProtoMessage() {}
func (*ReplayRelayQryBTCHeadHeight) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
func (m *ReplayRelayQryBTCHeadHeight) GetCurHeight() int64 { func (m *ReplayRelayQryBTCHeadHeight) GetCurHeight() int64 {
if m != nil { if m != nil {
...@@ -2022,7 +1462,6 @@ func (m *ReplayRelayQryBTCHeadHeight) GetBaseHeight() int64 { ...@@ -2022,7 +1462,6 @@ func (m *ReplayRelayQryBTCHeadHeight) GetBaseHeight() int64 {
} }
func init() { func init() {
proto.RegisterEnum("types.RelayOrderStatus", RelayOrderStatus_name, RelayOrderStatus_value)
proto.RegisterType((*RelayAction)(nil), "types.RelayAction") proto.RegisterType((*RelayAction)(nil), "types.RelayAction")
proto.RegisterType((*RelayOrder)(nil), "types.RelayOrder") proto.RegisterType((*RelayOrder)(nil), "types.RelayOrder")
proto.RegisterType((*RelayCreate)(nil), "types.RelayCreate") proto.RegisterType((*RelayCreate)(nil), "types.RelayCreate")
...@@ -2048,11 +1487,12 @@ func init() { ...@@ -2048,11 +1487,12 @@ func init() {
proto.RegisterType((*ReplyRelayBtcHeadHeightList)(nil), "types.ReplyRelayBtcHeadHeightList") proto.RegisterType((*ReplyRelayBtcHeadHeightList)(nil), "types.ReplyRelayBtcHeadHeightList")
proto.RegisterType((*ReqRelayQryBTCHeadHeight)(nil), "types.ReqRelayQryBTCHeadHeight") proto.RegisterType((*ReqRelayQryBTCHeadHeight)(nil), "types.ReqRelayQryBTCHeadHeight")
proto.RegisterType((*ReplayRelayQryBTCHeadHeight)(nil), "types.ReplayRelayQryBTCHeadHeight") proto.RegisterType((*ReplayRelayQryBTCHeadHeight)(nil), "types.ReplayRelayQryBTCHeadHeight")
proto.RegisterEnum("types.RelayOrderStatus", RelayOrderStatus_name, RelayOrderStatus_value)
} }
func init() { proto.RegisterFile("relay.proto", fileDescriptor_9f69a7d5a802d584) } func init() { proto.RegisterFile("relay.proto", fileDescriptor0) }
var fileDescriptor_9f69a7d5a802d584 = []byte{ var fileDescriptor0 = []byte{
// 1487 bytes of a gzipped FileDescriptorProto // 1487 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcf, 0x6e, 0xdb, 0x46, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x58, 0xcf, 0x6e, 0xdb, 0x46,
0x13, 0x37, 0xc5, 0x3f, 0x96, 0x46, 0xb6, 0x23, 0xef, 0x17, 0xe7, 0xe3, 0x97, 0x2f, 0x68, 0x04, 0x13, 0x37, 0xc5, 0x3f, 0x96, 0x46, 0xb6, 0x23, 0xef, 0x17, 0xe7, 0xe3, 0x97, 0x2f, 0x68, 0x04,
......
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: retrieve.proto // source: retrieve.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
retrieve.proto
It has these top-level messages:
RetrievePara
Retrieve
RetrieveAction
BackupRetrieve
PrepareRetrieve
PerformRetrieve
CancelRetrieve
ReqRetrieveInfo
RetrieveQuery
*/
package types package types
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import types2 "github.com/33cn/chain33/types"
import ( import (
context "context" context "golang.org/x/net/context"
fmt "fmt"
types "github.com/33cn/chain33/types"
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.
...@@ -25,40 +43,17 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package ...@@ -25,40 +43,17 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// message for retrieve start // message for retrieve start
type RetrievePara struct { type RetrievePara struct {
DefaultAddress string `protobuf:"bytes,1,opt,name=defaultAddress,proto3" json:"defaultAddress,omitempty"` DefaultAddress string `protobuf:"bytes,1,opt,name=defaultAddress" json:"defaultAddress,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
CreateTime int64 `protobuf:"varint,3,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,3,opt,name=createTime" json:"createTime,omitempty"`
PrepareTime int64 `protobuf:"varint,4,opt,name=prepareTime,proto3" json:"prepareTime,omitempty"` PrepareTime int64 `protobuf:"varint,4,opt,name=prepareTime" json:"prepareTime,omitempty"`
DelayPeriod int64 `protobuf:"varint,5,opt,name=delayPeriod,proto3" json:"delayPeriod,omitempty"` DelayPeriod int64 `protobuf:"varint,5,opt,name=delayPeriod" json:"delayPeriod,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RetrievePara) Reset() { *m = RetrievePara{} }
func (m *RetrievePara) String() string { return proto.CompactTextString(m) }
func (*RetrievePara) ProtoMessage() {}
func (*RetrievePara) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7b02fb18d30b6d, []int{0}
}
func (m *RetrievePara) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RetrievePara.Unmarshal(m, b)
}
func (m *RetrievePara) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RetrievePara.Marshal(b, m, deterministic)
}
func (m *RetrievePara) XXX_Merge(src proto.Message) {
xxx_messageInfo_RetrievePara.Merge(m, src)
}
func (m *RetrievePara) XXX_Size() int {
return xxx_messageInfo_RetrievePara.Size(m)
}
func (m *RetrievePara) XXX_DiscardUnknown() {
xxx_messageInfo_RetrievePara.DiscardUnknown(m)
} }
var xxx_messageInfo_RetrievePara proto.InternalMessageInfo func (m *RetrievePara) Reset() { *m = RetrievePara{} }
func (m *RetrievePara) String() string { return proto.CompactTextString(m) }
func (*RetrievePara) ProtoMessage() {}
func (*RetrievePara) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *RetrievePara) GetDefaultAddress() string { func (m *RetrievePara) GetDefaultAddress() string {
if m != nil { if m != nil {
...@@ -97,37 +92,14 @@ func (m *RetrievePara) GetDelayPeriod() int64 { ...@@ -97,37 +92,14 @@ func (m *RetrievePara) GetDelayPeriod() int64 {
type Retrieve struct { type Retrieve struct {
// used as key // used as key
BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress,proto3" json:"backupAddress,omitempty"` BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress" json:"backupAddress,omitempty"`
RetPara []*RetrievePara `protobuf:"bytes,2,rep,name=retPara,proto3" json:"retPara,omitempty"` RetPara []*RetrievePara `protobuf:"bytes,2,rep,name=retPara" json:"retPara,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Retrieve) Reset() { *m = Retrieve{} } func (m *Retrieve) Reset() { *m = Retrieve{} }
func (m *Retrieve) String() string { return proto.CompactTextString(m) } func (m *Retrieve) String() string { return proto.CompactTextString(m) }
func (*Retrieve) ProtoMessage() {} func (*Retrieve) ProtoMessage() {}
func (*Retrieve) Descriptor() ([]byte, []int) { func (*Retrieve) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
return fileDescriptor_ef7b02fb18d30b6d, []int{1}
}
func (m *Retrieve) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Retrieve.Unmarshal(m, b)
}
func (m *Retrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Retrieve.Marshal(b, m, deterministic)
}
func (m *Retrieve) XXX_Merge(src proto.Message) {
xxx_messageInfo_Retrieve.Merge(m, src)
}
func (m *Retrieve) XXX_Size() int {
return xxx_messageInfo_Retrieve.Size(m)
}
func (m *Retrieve) XXX_DiscardUnknown() {
xxx_messageInfo_Retrieve.DiscardUnknown(m)
}
var xxx_messageInfo_Retrieve proto.InternalMessageInfo
func (m *Retrieve) GetBackupAddress() string { func (m *Retrieve) GetBackupAddress() string {
if m != nil { if m != nil {
...@@ -149,65 +121,36 @@ type RetrieveAction struct { ...@@ -149,65 +121,36 @@ type RetrieveAction struct {
// *RetrieveAction_Perform // *RetrieveAction_Perform
// *RetrieveAction_Backup // *RetrieveAction_Backup
// *RetrieveAction_Cancel // *RetrieveAction_Cancel
Value isRetrieveAction_Value `protobuf_oneof:"value"` Value isRetrieveAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,5,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,5,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RetrieveAction) Reset() { *m = RetrieveAction{} }
func (m *RetrieveAction) String() string { return proto.CompactTextString(m) }
func (*RetrieveAction) ProtoMessage() {}
func (*RetrieveAction) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7b02fb18d30b6d, []int{2}
} }
func (m *RetrieveAction) XXX_Unmarshal(b []byte) error { func (m *RetrieveAction) Reset() { *m = RetrieveAction{} }
return xxx_messageInfo_RetrieveAction.Unmarshal(m, b) func (m *RetrieveAction) String() string { return proto.CompactTextString(m) }
} func (*RetrieveAction) ProtoMessage() {}
func (m *RetrieveAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*RetrieveAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return xxx_messageInfo_RetrieveAction.Marshal(b, m, deterministic)
}
func (m *RetrieveAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_RetrieveAction.Merge(m, src)
}
func (m *RetrieveAction) XXX_Size() int {
return xxx_messageInfo_RetrieveAction.Size(m)
}
func (m *RetrieveAction) XXX_DiscardUnknown() {
xxx_messageInfo_RetrieveAction.DiscardUnknown(m)
}
var xxx_messageInfo_RetrieveAction proto.InternalMessageInfo
type isRetrieveAction_Value interface { type isRetrieveAction_Value interface {
isRetrieveAction_Value() isRetrieveAction_Value()
} }
type RetrieveAction_Prepare struct { type RetrieveAction_Prepare struct {
Prepare *PrepareRetrieve `protobuf:"bytes,1,opt,name=prepare,proto3,oneof"` Prepare *PrepareRetrieve `protobuf:"bytes,1,opt,name=prepare,oneof"`
} }
type RetrieveAction_Perform struct { type RetrieveAction_Perform struct {
Perform *PerformRetrieve `protobuf:"bytes,2,opt,name=perform,proto3,oneof"` Perform *PerformRetrieve `protobuf:"bytes,2,opt,name=perform,oneof"`
} }
type RetrieveAction_Backup struct { type RetrieveAction_Backup struct {
Backup *BackupRetrieve `protobuf:"bytes,3,opt,name=backup,proto3,oneof"` Backup *BackupRetrieve `protobuf:"bytes,3,opt,name=backup,oneof"`
} }
type RetrieveAction_Cancel struct { type RetrieveAction_Cancel struct {
Cancel *CancelRetrieve `protobuf:"bytes,4,opt,name=cancel,proto3,oneof"` Cancel *CancelRetrieve `protobuf:"bytes,4,opt,name=cancel,oneof"`
} }
func (*RetrieveAction_Prepare) isRetrieveAction_Value() {} func (*RetrieveAction_Prepare) isRetrieveAction_Value() {}
func (*RetrieveAction_Perform) isRetrieveAction_Value() {} func (*RetrieveAction_Perform) isRetrieveAction_Value() {}
func (*RetrieveAction_Backup) isRetrieveAction_Value() {}
func (*RetrieveAction_Backup) isRetrieveAction_Value() {} func (*RetrieveAction_Cancel) isRetrieveAction_Value() {}
func (*RetrieveAction_Cancel) isRetrieveAction_Value() {}
func (m *RetrieveAction) GetValue() isRetrieveAction_Value { func (m *RetrieveAction) GetValue() isRetrieveAction_Value {
if m != nil { if m != nil {
...@@ -338,22 +281,22 @@ func _RetrieveAction_OneofSizer(msg proto.Message) (n int) { ...@@ -338,22 +281,22 @@ func _RetrieveAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *RetrieveAction_Prepare: case *RetrieveAction_Prepare:
s := proto.Size(x.Prepare) s := proto.Size(x.Prepare)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RetrieveAction_Perform: case *RetrieveAction_Perform:
s := proto.Size(x.Perform) s := proto.Size(x.Perform)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RetrieveAction_Backup: case *RetrieveAction_Backup:
s := proto.Size(x.Backup) s := proto.Size(x.Backup)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *RetrieveAction_Cancel: case *RetrieveAction_Cancel:
s := proto.Size(x.Cancel) s := proto.Size(x.Cancel)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -364,38 +307,15 @@ func _RetrieveAction_OneofSizer(msg proto.Message) (n int) { ...@@ -364,38 +307,15 @@ func _RetrieveAction_OneofSizer(msg proto.Message) (n int) {
} }
type BackupRetrieve struct { type BackupRetrieve struct {
BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress,proto3" json:"backupAddress,omitempty"` BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress" json:"backupAddress,omitempty"`
DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress,proto3" json:"defaultAddress,omitempty"` DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress" json:"defaultAddress,omitempty"`
DelayPeriod int64 `protobuf:"varint,3,opt,name=delayPeriod,proto3" json:"delayPeriod,omitempty"` DelayPeriod int64 `protobuf:"varint,3,opt,name=delayPeriod" json:"delayPeriod,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BackupRetrieve) Reset() { *m = BackupRetrieve{} } func (m *BackupRetrieve) Reset() { *m = BackupRetrieve{} }
func (m *BackupRetrieve) String() string { return proto.CompactTextString(m) } func (m *BackupRetrieve) String() string { return proto.CompactTextString(m) }
func (*BackupRetrieve) ProtoMessage() {} func (*BackupRetrieve) ProtoMessage() {}
func (*BackupRetrieve) Descriptor() ([]byte, []int) { func (*BackupRetrieve) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
return fileDescriptor_ef7b02fb18d30b6d, []int{3}
}
func (m *BackupRetrieve) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BackupRetrieve.Unmarshal(m, b)
}
func (m *BackupRetrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BackupRetrieve.Marshal(b, m, deterministic)
}
func (m *BackupRetrieve) XXX_Merge(src proto.Message) {
xxx_messageInfo_BackupRetrieve.Merge(m, src)
}
func (m *BackupRetrieve) XXX_Size() int {
return xxx_messageInfo_BackupRetrieve.Size(m)
}
func (m *BackupRetrieve) XXX_DiscardUnknown() {
xxx_messageInfo_BackupRetrieve.DiscardUnknown(m)
}
var xxx_messageInfo_BackupRetrieve proto.InternalMessageInfo
func (m *BackupRetrieve) GetBackupAddress() string { func (m *BackupRetrieve) GetBackupAddress() string {
if m != nil { if m != nil {
...@@ -419,37 +339,14 @@ func (m *BackupRetrieve) GetDelayPeriod() int64 { ...@@ -419,37 +339,14 @@ func (m *BackupRetrieve) GetDelayPeriod() int64 {
} }
type PrepareRetrieve struct { type PrepareRetrieve struct {
BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress,proto3" json:"backupAddress,omitempty"` BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress" json:"backupAddress,omitempty"`
DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress,proto3" json:"defaultAddress,omitempty"` DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress" json:"defaultAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PrepareRetrieve) Reset() { *m = PrepareRetrieve{} }
func (m *PrepareRetrieve) String() string { return proto.CompactTextString(m) }
func (*PrepareRetrieve) ProtoMessage() {}
func (*PrepareRetrieve) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7b02fb18d30b6d, []int{4}
}
func (m *PrepareRetrieve) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PrepareRetrieve.Unmarshal(m, b)
}
func (m *PrepareRetrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PrepareRetrieve.Marshal(b, m, deterministic)
}
func (m *PrepareRetrieve) XXX_Merge(src proto.Message) {
xxx_messageInfo_PrepareRetrieve.Merge(m, src)
}
func (m *PrepareRetrieve) XXX_Size() int {
return xxx_messageInfo_PrepareRetrieve.Size(m)
}
func (m *PrepareRetrieve) XXX_DiscardUnknown() {
xxx_messageInfo_PrepareRetrieve.DiscardUnknown(m)
} }
var xxx_messageInfo_PrepareRetrieve proto.InternalMessageInfo func (m *PrepareRetrieve) Reset() { *m = PrepareRetrieve{} }
func (m *PrepareRetrieve) String() string { return proto.CompactTextString(m) }
func (*PrepareRetrieve) ProtoMessage() {}
func (*PrepareRetrieve) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *PrepareRetrieve) GetBackupAddress() string { func (m *PrepareRetrieve) GetBackupAddress() string {
if m != nil { if m != nil {
...@@ -466,37 +363,14 @@ func (m *PrepareRetrieve) GetDefaultAddress() string { ...@@ -466,37 +363,14 @@ func (m *PrepareRetrieve) GetDefaultAddress() string {
} }
type PerformRetrieve struct { type PerformRetrieve struct {
BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress,proto3" json:"backupAddress,omitempty"` BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress" json:"backupAddress,omitempty"`
DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress,proto3" json:"defaultAddress,omitempty"` DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress" json:"defaultAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *PerformRetrieve) Reset() { *m = PerformRetrieve{} } func (m *PerformRetrieve) Reset() { *m = PerformRetrieve{} }
func (m *PerformRetrieve) String() string { return proto.CompactTextString(m) } func (m *PerformRetrieve) String() string { return proto.CompactTextString(m) }
func (*PerformRetrieve) ProtoMessage() {} func (*PerformRetrieve) ProtoMessage() {}
func (*PerformRetrieve) Descriptor() ([]byte, []int) { func (*PerformRetrieve) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
return fileDescriptor_ef7b02fb18d30b6d, []int{5}
}
func (m *PerformRetrieve) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PerformRetrieve.Unmarshal(m, b)
}
func (m *PerformRetrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PerformRetrieve.Marshal(b, m, deterministic)
}
func (m *PerformRetrieve) XXX_Merge(src proto.Message) {
xxx_messageInfo_PerformRetrieve.Merge(m, src)
}
func (m *PerformRetrieve) XXX_Size() int {
return xxx_messageInfo_PerformRetrieve.Size(m)
}
func (m *PerformRetrieve) XXX_DiscardUnknown() {
xxx_messageInfo_PerformRetrieve.DiscardUnknown(m)
}
var xxx_messageInfo_PerformRetrieve proto.InternalMessageInfo
func (m *PerformRetrieve) GetBackupAddress() string { func (m *PerformRetrieve) GetBackupAddress() string {
if m != nil { if m != nil {
...@@ -513,37 +387,14 @@ func (m *PerformRetrieve) GetDefaultAddress() string { ...@@ -513,37 +387,14 @@ func (m *PerformRetrieve) GetDefaultAddress() string {
} }
type CancelRetrieve struct { type CancelRetrieve struct {
BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress,proto3" json:"backupAddress,omitempty"` BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress" json:"backupAddress,omitempty"`
DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress,proto3" json:"defaultAddress,omitempty"` DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress" json:"defaultAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *CancelRetrieve) Reset() { *m = CancelRetrieve{} } func (m *CancelRetrieve) Reset() { *m = CancelRetrieve{} }
func (m *CancelRetrieve) String() string { return proto.CompactTextString(m) } func (m *CancelRetrieve) String() string { return proto.CompactTextString(m) }
func (*CancelRetrieve) ProtoMessage() {} func (*CancelRetrieve) ProtoMessage() {}
func (*CancelRetrieve) Descriptor() ([]byte, []int) { func (*CancelRetrieve) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
return fileDescriptor_ef7b02fb18d30b6d, []int{6}
}
func (m *CancelRetrieve) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CancelRetrieve.Unmarshal(m, b)
}
func (m *CancelRetrieve) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CancelRetrieve.Marshal(b, m, deterministic)
}
func (m *CancelRetrieve) XXX_Merge(src proto.Message) {
xxx_messageInfo_CancelRetrieve.Merge(m, src)
}
func (m *CancelRetrieve) XXX_Size() int {
return xxx_messageInfo_CancelRetrieve.Size(m)
}
func (m *CancelRetrieve) XXX_DiscardUnknown() {
xxx_messageInfo_CancelRetrieve.DiscardUnknown(m)
}
var xxx_messageInfo_CancelRetrieve proto.InternalMessageInfo
func (m *CancelRetrieve) GetBackupAddress() string { func (m *CancelRetrieve) GetBackupAddress() string {
if m != nil { if m != nil {
...@@ -560,37 +411,14 @@ func (m *CancelRetrieve) GetDefaultAddress() string { ...@@ -560,37 +411,14 @@ func (m *CancelRetrieve) GetDefaultAddress() string {
} }
type ReqRetrieveInfo struct { type ReqRetrieveInfo struct {
BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress,proto3" json:"backupAddress,omitempty"` BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress" json:"backupAddress,omitempty"`
DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress,proto3" json:"defaultAddress,omitempty"` DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress" json:"defaultAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqRetrieveInfo) Reset() { *m = ReqRetrieveInfo{} }
func (m *ReqRetrieveInfo) String() string { return proto.CompactTextString(m) }
func (*ReqRetrieveInfo) ProtoMessage() {}
func (*ReqRetrieveInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7b02fb18d30b6d, []int{7}
}
func (m *ReqRetrieveInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqRetrieveInfo.Unmarshal(m, b)
}
func (m *ReqRetrieveInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqRetrieveInfo.Marshal(b, m, deterministic)
}
func (m *ReqRetrieveInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqRetrieveInfo.Merge(m, src)
}
func (m *ReqRetrieveInfo) XXX_Size() int {
return xxx_messageInfo_ReqRetrieveInfo.Size(m)
}
func (m *ReqRetrieveInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReqRetrieveInfo.DiscardUnknown(m)
} }
var xxx_messageInfo_ReqRetrieveInfo proto.InternalMessageInfo func (m *ReqRetrieveInfo) Reset() { *m = ReqRetrieveInfo{} }
func (m *ReqRetrieveInfo) String() string { return proto.CompactTextString(m) }
func (*ReqRetrieveInfo) ProtoMessage() {}
func (*ReqRetrieveInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *ReqRetrieveInfo) GetBackupAddress() string { func (m *ReqRetrieveInfo) GetBackupAddress() string {
if m != nil { if m != nil {
...@@ -607,41 +435,18 @@ func (m *ReqRetrieveInfo) GetDefaultAddress() string { ...@@ -607,41 +435,18 @@ func (m *ReqRetrieveInfo) GetDefaultAddress() string {
} }
type RetrieveQuery struct { type RetrieveQuery struct {
BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress,proto3" json:"backupAddress,omitempty"` BackupAddress string `protobuf:"bytes,1,opt,name=backupAddress" json:"backupAddress,omitempty"`
DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress,proto3" json:"defaultAddress,omitempty"` DefaultAddress string `protobuf:"bytes,2,opt,name=defaultAddress" json:"defaultAddress,omitempty"`
DelayPeriod int64 `protobuf:"varint,3,opt,name=delayPeriod,proto3" json:"delayPeriod,omitempty"` DelayPeriod int64 `protobuf:"varint,3,opt,name=delayPeriod" json:"delayPeriod,omitempty"`
PrepareTime int64 `protobuf:"varint,4,opt,name=prepareTime,proto3" json:"prepareTime,omitempty"` PrepareTime int64 `protobuf:"varint,4,opt,name=prepareTime" json:"prepareTime,omitempty"`
RemainTime int64 `protobuf:"varint,5,opt,name=remainTime,proto3" json:"remainTime,omitempty"` RemainTime int64 `protobuf:"varint,5,opt,name=remainTime" json:"remainTime,omitempty"`
Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,6,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *RetrieveQuery) Reset() { *m = RetrieveQuery{} } func (m *RetrieveQuery) Reset() { *m = RetrieveQuery{} }
func (m *RetrieveQuery) String() string { return proto.CompactTextString(m) } func (m *RetrieveQuery) String() string { return proto.CompactTextString(m) }
func (*RetrieveQuery) ProtoMessage() {} func (*RetrieveQuery) ProtoMessage() {}
func (*RetrieveQuery) Descriptor() ([]byte, []int) { func (*RetrieveQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
return fileDescriptor_ef7b02fb18d30b6d, []int{8}
}
func (m *RetrieveQuery) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RetrieveQuery.Unmarshal(m, b)
}
func (m *RetrieveQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RetrieveQuery.Marshal(b, m, deterministic)
}
func (m *RetrieveQuery) XXX_Merge(src proto.Message) {
xxx_messageInfo_RetrieveQuery.Merge(m, src)
}
func (m *RetrieveQuery) XXX_Size() int {
return xxx_messageInfo_RetrieveQuery.Size(m)
}
func (m *RetrieveQuery) XXX_DiscardUnknown() {
xxx_messageInfo_RetrieveQuery.DiscardUnknown(m)
}
var xxx_messageInfo_RetrieveQuery proto.InternalMessageInfo
func (m *RetrieveQuery) GetBackupAddress() string { func (m *RetrieveQuery) GetBackupAddress() string {
if m != nil { if m != nil {
...@@ -697,42 +502,6 @@ func init() { ...@@ -697,42 +502,6 @@ func init() {
proto.RegisterType((*RetrieveQuery)(nil), "types.RetrieveQuery") proto.RegisterType((*RetrieveQuery)(nil), "types.RetrieveQuery")
} }
func init() { proto.RegisterFile("retrieve.proto", fileDescriptor_ef7b02fb18d30b6d) }
var fileDescriptor_ef7b02fb18d30b6d = []byte{
// 471 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xee, 0x3a, 0xd8, 0x29, 0x13, 0xea, 0x8a, 0x45, 0x54, 0x56, 0x0f, 0x95, 0x65, 0x21, 0x94,
0x0b, 0x41, 0x32, 0xbc, 0x40, 0xcb, 0x05, 0x6e, 0x61, 0x55, 0xae, 0xa0, 0xad, 0x3d, 0x41, 0x16,
0x8e, 0x6d, 0xd6, 0xeb, 0x0a, 0xdf, 0x78, 0x26, 0xde, 0x86, 0x0b, 0x2f, 0xc1, 0x0b, 0xa0, 0xec,
0x8f, 0x58, 0x07, 0x47, 0xca, 0xc1, 0xe2, 0xe8, 0xcf,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 0xef, 0xf3, 0x01, 0x8d, 0x9e, 0x24, 0x3a,
0xbe, 0xd2, 0x23, 0x9a, 0xbb, 0x40, 0xa5, 0xfa, 0xab, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x01,
0x17, 0x39, 0x99, 0x01, 0x06, 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 _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
...@@ -741,14 +510,13 @@ var _ grpc.ClientConn ...@@ -741,14 +510,13 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// RetrieveClient is the client API for Retrieve service. // Client API for Retrieve service
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type RetrieveClient interface { type RetrieveClient interface {
Prepare(ctx context.Context, in *PrepareRetrieve, opts ...grpc.CallOption) (*types.UnsignTx, error) Prepare(ctx context.Context, in *PrepareRetrieve, opts ...grpc.CallOption) (*types2.UnsignTx, error)
Perform(ctx context.Context, in *PerformRetrieve, opts ...grpc.CallOption) (*types.UnsignTx, error) Perform(ctx context.Context, in *PerformRetrieve, opts ...grpc.CallOption) (*types2.UnsignTx, error)
Backup(ctx context.Context, in *BackupRetrieve, opts ...grpc.CallOption) (*types.UnsignTx, error) Backup(ctx context.Context, in *BackupRetrieve, opts ...grpc.CallOption) (*types2.UnsignTx, error)
Cancel(ctx context.Context, in *CancelRetrieve, opts ...grpc.CallOption) (*types.UnsignTx, error) Cancel(ctx context.Context, in *CancelRetrieve, opts ...grpc.CallOption) (*types2.UnsignTx, error)
} }
type retrieveClient struct { type retrieveClient struct {
...@@ -759,48 +527,49 @@ func NewRetrieveClient(cc *grpc.ClientConn) RetrieveClient { ...@@ -759,48 +527,49 @@ func NewRetrieveClient(cc *grpc.ClientConn) RetrieveClient {
return &retrieveClient{cc} return &retrieveClient{cc}
} }
func (c *retrieveClient) Prepare(ctx context.Context, in *PrepareRetrieve, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *retrieveClient) Prepare(ctx context.Context, in *PrepareRetrieve, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.retrieve/Prepare", in, out, opts...) err := grpc.Invoke(ctx, "/types.retrieve/Prepare", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *retrieveClient) Perform(ctx context.Context, in *PerformRetrieve, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *retrieveClient) Perform(ctx context.Context, in *PerformRetrieve, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.retrieve/Perform", in, out, opts...) err := grpc.Invoke(ctx, "/types.retrieve/Perform", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *retrieveClient) Backup(ctx context.Context, in *BackupRetrieve, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *retrieveClient) Backup(ctx context.Context, in *BackupRetrieve, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.retrieve/Backup", in, out, opts...) err := grpc.Invoke(ctx, "/types.retrieve/Backup", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *retrieveClient) Cancel(ctx context.Context, in *CancelRetrieve, opts ...grpc.CallOption) (*types.UnsignTx, error) { func (c *retrieveClient) Cancel(ctx context.Context, in *CancelRetrieve, opts ...grpc.CallOption) (*types2.UnsignTx, error) {
out := new(types.UnsignTx) out := new(types2.UnsignTx)
err := c.cc.Invoke(ctx, "/types.retrieve/Cancel", in, out, opts...) err := grpc.Invoke(ctx, "/types.retrieve/Cancel", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
// RetrieveServer is the server API for Retrieve service. // Server API for Retrieve service
type RetrieveServer interface { type RetrieveServer interface {
Prepare(context.Context, *PrepareRetrieve) (*types.UnsignTx, error) Prepare(context.Context, *PrepareRetrieve) (*types2.UnsignTx, error)
Perform(context.Context, *PerformRetrieve) (*types.UnsignTx, error) Perform(context.Context, *PerformRetrieve) (*types2.UnsignTx, error)
Backup(context.Context, *BackupRetrieve) (*types.UnsignTx, error) Backup(context.Context, *BackupRetrieve) (*types2.UnsignTx, error)
Cancel(context.Context, *CancelRetrieve) (*types.UnsignTx, error) Cancel(context.Context, *CancelRetrieve) (*types2.UnsignTx, error)
} }
func RegisterRetrieveServer(s *grpc.Server, srv RetrieveServer) { func RegisterRetrieveServer(s *grpc.Server, srv RetrieveServer) {
...@@ -903,3 +672,39 @@ var _Retrieve_serviceDesc = grpc.ServiceDesc{ ...@@ -903,3 +672,39 @@ var _Retrieve_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "retrieve.proto", Metadata: "retrieve.proto",
} }
func init() { proto.RegisterFile("retrieve.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 471 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xcd, 0x6e, 0xd3, 0x40,
0x10, 0xee, 0x3a, 0xd8, 0x29, 0x13, 0xea, 0x8a, 0x45, 0x54, 0x56, 0x0f, 0x95, 0x65, 0x21, 0x94,
0x0b, 0x41, 0x32, 0xbc, 0x40, 0xcb, 0x05, 0x6e, 0x61, 0x55, 0xae, 0xa0, 0xad, 0x3d, 0x41, 0x16,
0x8e, 0x6d, 0xd6, 0xeb, 0x0a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, 0xe2, 0x73, 0x75, 0xfb, 0x2d, 0x39, 0x51, 0x2a, 0xb3, 0xaa, 0x07,
0xb6, 0x79, 0x4c, 0x95, 0x42, 0xa0, 0x37, 0x8b, 0x8e, 0xef, 0xf3, 0x01, 0x8d, 0x9e, 0x24, 0x3a,
0xbe, 0xd2, 0x23, 0x9a, 0xbb, 0x40, 0xa5, 0xfa, 0xab, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x01,
0x17, 0x39, 0x99, 0x01, 0x06, 0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: ticket.proto // source: ticket.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
ticket.proto
It has these top-level messages:
Ticket
TicketAction
TicketMiner
TicketMinerOld
MinerFlag
TicketBind
TicketOpen
TicketGenesis
TicketClose
TicketList
TicketInfos
ReplyTicketList
ReplyWalletTickets
ReceiptTicket
ReceiptTicketBind
ReqBindMiner
ReplyBindMiner
*/
package types package types
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import types1 "github.com/33cn/chain33/types"
import ( import (
context "context" context "golang.org/x/net/context"
fmt "fmt"
types "github.com/33cn/chain33/types"
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.
...@@ -24,49 +50,26 @@ var _ = math.Inf ...@@ -24,49 +50,26 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Ticket struct { type Ticket struct {
TicketId string `protobuf:"bytes,1,opt,name=ticketId,proto3" json:"ticketId,omitempty"` TicketId string `protobuf:"bytes,1,opt,name=ticketId" json:"ticketId,omitempty"`
// 0 -> 未成熟 1 -> 可挖矿 2 -> 已挖成功 3-> 已关闭 // 0 -> 未成熟 1 -> 可挖矿 2 -> 已挖成功 3-> 已关闭
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
// genesis 创建的私钥比较特殊 // genesis 创建的私钥比较特殊
IsGenesis bool `protobuf:"varint,3,opt,name=isGenesis,proto3" json:"isGenesis,omitempty"` IsGenesis bool `protobuf:"varint,3,opt,name=isGenesis" json:"isGenesis,omitempty"`
//创建时间 // 创建时间
CreateTime int64 `protobuf:"varint,4,opt,name=createTime,proto3" json:"createTime,omitempty"` CreateTime int64 `protobuf:"varint,4,opt,name=createTime" json:"createTime,omitempty"`
//挖矿时间 // 挖矿时间
MinerTime int64 `protobuf:"varint,5,opt,name=minerTime,proto3" json:"minerTime,omitempty"` MinerTime int64 `protobuf:"varint,5,opt,name=minerTime" json:"minerTime,omitempty"`
//挖到的币的数目 // 挖到的币的数目
MinerValue int64 `protobuf:"varint,8,opt,name=minerValue,proto3" json:"minerValue,omitempty"` MinerValue int64 `protobuf:"varint,8,opt,name=minerValue" json:"minerValue,omitempty"`
MinerAddress string `protobuf:"bytes,6,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"` MinerAddress string `protobuf:"bytes,6,opt,name=minerAddress" json:"minerAddress,omitempty"`
// return wallet // return wallet
ReturnAddress string `protobuf:"bytes,7,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"` ReturnAddress string `protobuf:"bytes,7,opt,name=returnAddress" json:"returnAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Ticket) Reset() { *m = Ticket{} }
func (m *Ticket) String() string { return proto.CompactTextString(m) }
func (*Ticket) ProtoMessage() {}
func (*Ticket) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{0}
}
func (m *Ticket) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Ticket.Unmarshal(m, b)
}
func (m *Ticket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Ticket.Marshal(b, m, deterministic)
}
func (m *Ticket) XXX_Merge(src proto.Message) {
xxx_messageInfo_Ticket.Merge(m, src)
}
func (m *Ticket) XXX_Size() int {
return xxx_messageInfo_Ticket.Size(m)
}
func (m *Ticket) XXX_DiscardUnknown() {
xxx_messageInfo_Ticket.DiscardUnknown(m)
} }
var xxx_messageInfo_Ticket proto.InternalMessageInfo func (m *Ticket) Reset() { *m = Ticket{} }
func (m *Ticket) String() string { return proto.CompactTextString(m) }
func (*Ticket) ProtoMessage() {}
func (*Ticket) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Ticket) GetTicketId() string { func (m *Ticket) GetTicketId() string {
if m != nil { if m != nil {
...@@ -132,71 +135,40 @@ type TicketAction struct { ...@@ -132,71 +135,40 @@ type TicketAction struct {
// *TicketAction_Genesis // *TicketAction_Genesis
// *TicketAction_Tclose // *TicketAction_Tclose
// *TicketAction_Miner // *TicketAction_Miner
Value isTicketAction_Value `protobuf_oneof:"value"` Value isTicketAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,10,opt,name=ty,proto3" json:"ty,omitempty"` Ty int32 `protobuf:"varint,10,opt,name=ty" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TicketAction) Reset() { *m = TicketAction{} }
func (m *TicketAction) String() string { return proto.CompactTextString(m) }
func (*TicketAction) ProtoMessage() {}
func (*TicketAction) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{1}
}
func (m *TicketAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketAction.Unmarshal(m, b)
}
func (m *TicketAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketAction.Marshal(b, m, deterministic)
}
func (m *TicketAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketAction.Merge(m, src)
}
func (m *TicketAction) XXX_Size() int {
return xxx_messageInfo_TicketAction.Size(m)
}
func (m *TicketAction) XXX_DiscardUnknown() {
xxx_messageInfo_TicketAction.DiscardUnknown(m)
} }
var xxx_messageInfo_TicketAction proto.InternalMessageInfo func (m *TicketAction) Reset() { *m = TicketAction{} }
func (m *TicketAction) String() string { return proto.CompactTextString(m) }
func (*TicketAction) ProtoMessage() {}
func (*TicketAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type isTicketAction_Value interface { type isTicketAction_Value interface {
isTicketAction_Value() isTicketAction_Value()
} }
type TicketAction_Tbind struct { type TicketAction_Tbind struct {
Tbind *TicketBind `protobuf:"bytes,5,opt,name=tbind,proto3,oneof"` Tbind *TicketBind `protobuf:"bytes,5,opt,name=tbind,oneof"`
} }
type TicketAction_Topen struct { type TicketAction_Topen struct {
Topen *TicketOpen `protobuf:"bytes,1,opt,name=topen,proto3,oneof"` Topen *TicketOpen `protobuf:"bytes,1,opt,name=topen,oneof"`
} }
type TicketAction_Genesis struct { type TicketAction_Genesis struct {
Genesis *TicketGenesis `protobuf:"bytes,2,opt,name=genesis,proto3,oneof"` Genesis *TicketGenesis `protobuf:"bytes,2,opt,name=genesis,oneof"`
} }
type TicketAction_Tclose struct { type TicketAction_Tclose struct {
Tclose *TicketClose `protobuf:"bytes,3,opt,name=tclose,proto3,oneof"` Tclose *TicketClose `protobuf:"bytes,3,opt,name=tclose,oneof"`
} }
type TicketAction_Miner struct { type TicketAction_Miner struct {
Miner *TicketMiner `protobuf:"bytes,4,opt,name=miner,proto3,oneof"` Miner *TicketMiner `protobuf:"bytes,4,opt,name=miner,oneof"`
} }
func (*TicketAction_Tbind) isTicketAction_Value() {} func (*TicketAction_Tbind) isTicketAction_Value() {}
func (*TicketAction_Topen) isTicketAction_Value() {}
func (*TicketAction_Topen) isTicketAction_Value() {}
func (*TicketAction_Genesis) isTicketAction_Value() {} func (*TicketAction_Genesis) isTicketAction_Value() {}
func (*TicketAction_Tclose) isTicketAction_Value() {}
func (*TicketAction_Tclose) isTicketAction_Value() {} func (*TicketAction_Miner) isTicketAction_Value() {}
func (*TicketAction_Miner) isTicketAction_Value() {}
func (m *TicketAction) GetValue() isTicketAction_Value { func (m *TicketAction) GetValue() isTicketAction_Value {
if m != nil { if m != nil {
...@@ -348,27 +320,27 @@ func _TicketAction_OneofSizer(msg proto.Message) (n int) { ...@@ -348,27 +320,27 @@ func _TicketAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *TicketAction_Tbind: case *TicketAction_Tbind:
s := proto.Size(x.Tbind) s := proto.Size(x.Tbind)
n += 1 // tag and wire n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TicketAction_Topen: case *TicketAction_Topen:
s := proto.Size(x.Topen) s := proto.Size(x.Topen)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TicketAction_Genesis: case *TicketAction_Genesis:
s := proto.Size(x.Genesis) s := proto.Size(x.Genesis)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TicketAction_Tclose: case *TicketAction_Tclose:
s := proto.Size(x.Tclose) s := proto.Size(x.Tclose)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TicketAction_Miner: case *TicketAction_Miner:
s := proto.Size(x.Miner) s := proto.Size(x.Miner)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -379,41 +351,18 @@ func _TicketAction_OneofSizer(msg proto.Message) (n int) { ...@@ -379,41 +351,18 @@ func _TicketAction_OneofSizer(msg proto.Message) (n int) {
} }
type TicketMiner struct { type TicketMiner struct {
Bits uint32 `protobuf:"varint,1,opt,name=bits,proto3" json:"bits,omitempty"` Bits uint32 `protobuf:"varint,1,opt,name=bits" json:"bits,omitempty"`
Reward int64 `protobuf:"varint,2,opt,name=reward,proto3" json:"reward,omitempty"` Reward int64 `protobuf:"varint,2,opt,name=reward" json:"reward,omitempty"`
TicketId string `protobuf:"bytes,3,opt,name=ticketId,proto3" json:"ticketId,omitempty"` TicketId string `protobuf:"bytes,3,opt,name=ticketId" json:"ticketId,omitempty"`
Modify []byte `protobuf:"bytes,4,opt,name=modify,proto3" json:"modify,omitempty"` Modify []byte `protobuf:"bytes,4,opt,name=modify,proto3" json:"modify,omitempty"`
//挖到区块时公开 // 挖到区块时公开
PrivHash []byte `protobuf:"bytes,5,opt,name=privHash,proto3" json:"privHash,omitempty"` PrivHash []byte `protobuf:"bytes,5,opt,name=privHash,proto3" json:"privHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TicketMiner) Reset() { *m = TicketMiner{} }
func (m *TicketMiner) String() string { return proto.CompactTextString(m) }
func (*TicketMiner) ProtoMessage() {}
func (*TicketMiner) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{2}
}
func (m *TicketMiner) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketMiner.Unmarshal(m, b)
}
func (m *TicketMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketMiner.Marshal(b, m, deterministic)
}
func (m *TicketMiner) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketMiner.Merge(m, src)
}
func (m *TicketMiner) XXX_Size() int {
return xxx_messageInfo_TicketMiner.Size(m)
}
func (m *TicketMiner) XXX_DiscardUnknown() {
xxx_messageInfo_TicketMiner.DiscardUnknown(m)
} }
var xxx_messageInfo_TicketMiner proto.InternalMessageInfo func (m *TicketMiner) Reset() { *m = TicketMiner{} }
func (m *TicketMiner) String() string { return proto.CompactTextString(m) }
func (*TicketMiner) ProtoMessage() {}
func (*TicketMiner) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *TicketMiner) GetBits() uint32 { func (m *TicketMiner) GetBits() uint32 {
if m != nil { if m != nil {
...@@ -451,39 +400,16 @@ func (m *TicketMiner) GetPrivHash() []byte { ...@@ -451,39 +400,16 @@ func (m *TicketMiner) GetPrivHash() []byte {
} }
type TicketMinerOld struct { type TicketMinerOld struct {
Bits uint32 `protobuf:"varint,1,opt,name=bits,proto3" json:"bits,omitempty"` Bits uint32 `protobuf:"varint,1,opt,name=bits" json:"bits,omitempty"`
Reward int64 `protobuf:"varint,2,opt,name=reward,proto3" json:"reward,omitempty"` Reward int64 `protobuf:"varint,2,opt,name=reward" json:"reward,omitempty"`
TicketId string `protobuf:"bytes,3,opt,name=ticketId,proto3" json:"ticketId,omitempty"` TicketId string `protobuf:"bytes,3,opt,name=ticketId" json:"ticketId,omitempty"`
Modify []byte `protobuf:"bytes,4,opt,name=modify,proto3" json:"modify,omitempty"` Modify []byte `protobuf:"bytes,4,opt,name=modify,proto3" json:"modify,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TicketMinerOld) Reset() { *m = TicketMinerOld{} }
func (m *TicketMinerOld) String() string { return proto.CompactTextString(m) }
func (*TicketMinerOld) ProtoMessage() {}
func (*TicketMinerOld) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{3}
}
func (m *TicketMinerOld) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketMinerOld.Unmarshal(m, b)
}
func (m *TicketMinerOld) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketMinerOld.Marshal(b, m, deterministic)
}
func (m *TicketMinerOld) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketMinerOld.Merge(m, src)
}
func (m *TicketMinerOld) XXX_Size() int {
return xxx_messageInfo_TicketMinerOld.Size(m)
}
func (m *TicketMinerOld) XXX_DiscardUnknown() {
xxx_messageInfo_TicketMinerOld.DiscardUnknown(m)
} }
var xxx_messageInfo_TicketMinerOld proto.InternalMessageInfo func (m *TicketMinerOld) Reset() { *m = TicketMinerOld{} }
func (m *TicketMinerOld) String() string { return proto.CompactTextString(m) }
func (*TicketMinerOld) ProtoMessage() {}
func (*TicketMinerOld) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *TicketMinerOld) GetBits() uint32 { func (m *TicketMinerOld) GetBits() uint32 {
if m != nil { if m != nil {
...@@ -514,37 +440,14 @@ func (m *TicketMinerOld) GetModify() []byte { ...@@ -514,37 +440,14 @@ func (m *TicketMinerOld) GetModify() []byte {
} }
type MinerFlag struct { type MinerFlag struct {
Flag int32 `protobuf:"varint,1,opt,name=flag,proto3" json:"flag,omitempty"` Flag int32 `protobuf:"varint,1,opt,name=flag" json:"flag,omitempty"`
Reserve int64 `protobuf:"varint,2,opt,name=reserve,proto3" json:"reserve,omitempty"` Reserve int64 `protobuf:"varint,2,opt,name=reserve" json:"reserve,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MinerFlag) Reset() { *m = MinerFlag{} }
func (m *MinerFlag) String() string { return proto.CompactTextString(m) }
func (*MinerFlag) ProtoMessage() {}
func (*MinerFlag) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{4}
}
func (m *MinerFlag) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MinerFlag.Unmarshal(m, b)
}
func (m *MinerFlag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MinerFlag.Marshal(b, m, deterministic)
}
func (m *MinerFlag) XXX_Merge(src proto.Message) {
xxx_messageInfo_MinerFlag.Merge(m, src)
}
func (m *MinerFlag) XXX_Size() int {
return xxx_messageInfo_MinerFlag.Size(m)
}
func (m *MinerFlag) XXX_DiscardUnknown() {
xxx_messageInfo_MinerFlag.DiscardUnknown(m)
} }
var xxx_messageInfo_MinerFlag proto.InternalMessageInfo func (m *MinerFlag) Reset() { *m = MinerFlag{} }
func (m *MinerFlag) String() string { return proto.CompactTextString(m) }
func (*MinerFlag) ProtoMessage() {}
func (*MinerFlag) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *MinerFlag) GetFlag() int32 { func (m *MinerFlag) GetFlag() int32 {
if m != nil { if m != nil {
...@@ -561,37 +464,14 @@ func (m *MinerFlag) GetReserve() int64 { ...@@ -561,37 +464,14 @@ func (m *MinerFlag) GetReserve() int64 {
} }
type TicketBind struct { type TicketBind struct {
MinerAddress string `protobuf:"bytes,1,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"` MinerAddress string `protobuf:"bytes,1,opt,name=minerAddress" json:"minerAddress,omitempty"`
ReturnAddress string `protobuf:"bytes,2,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"` ReturnAddress string `protobuf:"bytes,2,opt,name=returnAddress" json:"returnAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TicketBind) Reset() { *m = TicketBind{} } func (m *TicketBind) Reset() { *m = TicketBind{} }
func (m *TicketBind) String() string { return proto.CompactTextString(m) } func (m *TicketBind) String() string { return proto.CompactTextString(m) }
func (*TicketBind) ProtoMessage() {} func (*TicketBind) ProtoMessage() {}
func (*TicketBind) Descriptor() ([]byte, []int) { func (*TicketBind) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
return fileDescriptor_98a6c21780e82d22, []int{5}
}
func (m *TicketBind) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketBind.Unmarshal(m, b)
}
func (m *TicketBind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketBind.Marshal(b, m, deterministic)
}
func (m *TicketBind) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketBind.Merge(m, src)
}
func (m *TicketBind) XXX_Size() int {
return xxx_messageInfo_TicketBind.Size(m)
}
func (m *TicketBind) XXX_DiscardUnknown() {
xxx_messageInfo_TicketBind.DiscardUnknown(m)
}
var xxx_messageInfo_TicketBind proto.InternalMessageInfo
func (m *TicketBind) GetMinerAddress() string { func (m *TicketBind) GetMinerAddress() string {
if m != nil { if m != nil {
...@@ -608,45 +488,22 @@ func (m *TicketBind) GetReturnAddress() string { ...@@ -608,45 +488,22 @@ func (m *TicketBind) GetReturnAddress() string {
} }
type TicketOpen struct { type TicketOpen struct {
//用户挖矿的ticket 地址 // 用户挖矿的ticket 地址
MinerAddress string `protobuf:"bytes,1,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"` MinerAddress string `protobuf:"bytes,1,opt,name=minerAddress" json:"minerAddress,omitempty"`
//购买ticket的数目 // 购买ticket的数目
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"`
//币实际存储的地址 // 币实际存储的地址
ReturnAddress string `protobuf:"bytes,3,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"` ReturnAddress string `protobuf:"bytes,3,opt,name=returnAddress" json:"returnAddress,omitempty"`
//随机种子 // 随机种子
RandSeed int64 `protobuf:"varint,4,opt,name=randSeed,proto3" json:"randSeed,omitempty"` RandSeed int64 `protobuf:"varint,4,opt,name=randSeed" json:"randSeed,omitempty"`
//购买ticket时公开 // 购买ticket时公开
PubHashes [][]byte `protobuf:"bytes,5,rep,name=pubHashes,proto3" json:"pubHashes,omitempty"` PubHashes [][]byte `protobuf:"bytes,5,rep,name=pubHashes,proto3" json:"pubHashes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *TicketOpen) Reset() { *m = TicketOpen{} }
} func (m *TicketOpen) String() string { return proto.CompactTextString(m) }
func (*TicketOpen) ProtoMessage() {}
func (m *TicketOpen) Reset() { *m = TicketOpen{} } func (*TicketOpen) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *TicketOpen) String() string { return proto.CompactTextString(m) }
func (*TicketOpen) ProtoMessage() {}
func (*TicketOpen) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{6}
}
func (m *TicketOpen) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketOpen.Unmarshal(m, b)
}
func (m *TicketOpen) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketOpen.Marshal(b, m, deterministic)
}
func (m *TicketOpen) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketOpen.Merge(m, src)
}
func (m *TicketOpen) XXX_Size() int {
return xxx_messageInfo_TicketOpen.Size(m)
}
func (m *TicketOpen) XXX_DiscardUnknown() {
xxx_messageInfo_TicketOpen.DiscardUnknown(m)
}
var xxx_messageInfo_TicketOpen proto.InternalMessageInfo
func (m *TicketOpen) GetMinerAddress() string { func (m *TicketOpen) GetMinerAddress() string {
if m != nil { if m != nil {
...@@ -684,38 +541,15 @@ func (m *TicketOpen) GetPubHashes() [][]byte { ...@@ -684,38 +541,15 @@ func (m *TicketOpen) GetPubHashes() [][]byte {
} }
type TicketGenesis struct { type TicketGenesis struct {
MinerAddress string `protobuf:"bytes,1,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"` MinerAddress string `protobuf:"bytes,1,opt,name=minerAddress" json:"minerAddress,omitempty"`
ReturnAddress string `protobuf:"bytes,2,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"` ReturnAddress string `protobuf:"bytes,2,opt,name=returnAddress" json:"returnAddress,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TicketGenesis) Reset() { *m = TicketGenesis{} } func (m *TicketGenesis) Reset() { *m = TicketGenesis{} }
func (m *TicketGenesis) String() string { return proto.CompactTextString(m) } func (m *TicketGenesis) String() string { return proto.CompactTextString(m) }
func (*TicketGenesis) ProtoMessage() {} func (*TicketGenesis) ProtoMessage() {}
func (*TicketGenesis) Descriptor() ([]byte, []int) { func (*TicketGenesis) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
return fileDescriptor_98a6c21780e82d22, []int{7}
}
func (m *TicketGenesis) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketGenesis.Unmarshal(m, b)
}
func (m *TicketGenesis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketGenesis.Marshal(b, m, deterministic)
}
func (m *TicketGenesis) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketGenesis.Merge(m, src)
}
func (m *TicketGenesis) XXX_Size() int {
return xxx_messageInfo_TicketGenesis.Size(m)
}
func (m *TicketGenesis) XXX_DiscardUnknown() {
xxx_messageInfo_TicketGenesis.DiscardUnknown(m)
}
var xxx_messageInfo_TicketGenesis proto.InternalMessageInfo
func (m *TicketGenesis) GetMinerAddress() string { func (m *TicketGenesis) GetMinerAddress() string {
if m != nil { if m != nil {
...@@ -739,36 +573,13 @@ func (m *TicketGenesis) GetCount() int32 { ...@@ -739,36 +573,13 @@ func (m *TicketGenesis) GetCount() int32 {
} }
type TicketClose struct { type TicketClose struct {
TicketId []string `protobuf:"bytes,1,rep,name=ticketId,proto3" json:"ticketId,omitempty"` TicketId []string `protobuf:"bytes,1,rep,name=ticketId" json:"ticketId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TicketClose) Reset() { *m = TicketClose{} }
func (m *TicketClose) String() string { return proto.CompactTextString(m) }
func (*TicketClose) ProtoMessage() {}
func (*TicketClose) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{8}
} }
func (m *TicketClose) XXX_Unmarshal(b []byte) error { func (m *TicketClose) Reset() { *m = TicketClose{} }
return xxx_messageInfo_TicketClose.Unmarshal(m, b) func (m *TicketClose) String() string { return proto.CompactTextString(m) }
} func (*TicketClose) ProtoMessage() {}
func (m *TicketClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*TicketClose) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
return xxx_messageInfo_TicketClose.Marshal(b, m, deterministic)
}
func (m *TicketClose) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketClose.Merge(m, src)
}
func (m *TicketClose) XXX_Size() int {
return xxx_messageInfo_TicketClose.Size(m)
}
func (m *TicketClose) XXX_DiscardUnknown() {
xxx_messageInfo_TicketClose.DiscardUnknown(m)
}
var xxx_messageInfo_TicketClose proto.InternalMessageInfo
func (m *TicketClose) GetTicketId() []string { func (m *TicketClose) GetTicketId() []string {
if m != nil { if m != nil {
...@@ -778,37 +589,14 @@ func (m *TicketClose) GetTicketId() []string { ...@@ -778,37 +589,14 @@ func (m *TicketClose) GetTicketId() []string {
} }
type TicketList struct { type TicketList struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TicketList) Reset() { *m = TicketList{} }
func (m *TicketList) String() string { return proto.CompactTextString(m) }
func (*TicketList) ProtoMessage() {}
func (*TicketList) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{9}
}
func (m *TicketList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketList.Unmarshal(m, b)
}
func (m *TicketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketList.Marshal(b, m, deterministic)
}
func (m *TicketList) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketList.Merge(m, src)
}
func (m *TicketList) XXX_Size() int {
return xxx_messageInfo_TicketList.Size(m)
}
func (m *TicketList) XXX_DiscardUnknown() {
xxx_messageInfo_TicketList.DiscardUnknown(m)
} }
var xxx_messageInfo_TicketList proto.InternalMessageInfo func (m *TicketList) Reset() { *m = TicketList{} }
func (m *TicketList) String() string { return proto.CompactTextString(m) }
func (*TicketList) ProtoMessage() {}
func (*TicketList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *TicketList) GetAddr() string { func (m *TicketList) GetAddr() string {
if m != nil { if m != nil {
...@@ -825,36 +613,13 @@ func (m *TicketList) GetStatus() int32 { ...@@ -825,36 +613,13 @@ func (m *TicketList) GetStatus() int32 {
} }
type TicketInfos struct { type TicketInfos struct {
TicketIds []string `protobuf:"bytes,1,rep,name=ticketIds,proto3" json:"ticketIds,omitempty"` TicketIds []string `protobuf:"bytes,1,rep,name=ticketIds" json:"ticketIds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TicketInfos) Reset() { *m = TicketInfos{} }
func (m *TicketInfos) String() string { return proto.CompactTextString(m) }
func (*TicketInfos) ProtoMessage() {}
func (*TicketInfos) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{10}
}
func (m *TicketInfos) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TicketInfos.Unmarshal(m, b)
}
func (m *TicketInfos) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TicketInfos.Marshal(b, m, deterministic)
}
func (m *TicketInfos) XXX_Merge(src proto.Message) {
xxx_messageInfo_TicketInfos.Merge(m, src)
}
func (m *TicketInfos) XXX_Size() int {
return xxx_messageInfo_TicketInfos.Size(m)
}
func (m *TicketInfos) XXX_DiscardUnknown() {
xxx_messageInfo_TicketInfos.DiscardUnknown(m)
} }
var xxx_messageInfo_TicketInfos proto.InternalMessageInfo func (m *TicketInfos) Reset() { *m = TicketInfos{} }
func (m *TicketInfos) String() string { return proto.CompactTextString(m) }
func (*TicketInfos) ProtoMessage() {}
func (*TicketInfos) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
func (m *TicketInfos) GetTicketIds() []string { func (m *TicketInfos) GetTicketIds() []string {
if m != nil { if m != nil {
...@@ -864,36 +629,13 @@ func (m *TicketInfos) GetTicketIds() []string { ...@@ -864,36 +629,13 @@ func (m *TicketInfos) GetTicketIds() []string {
} }
type ReplyTicketList struct { type ReplyTicketList struct {
Tickets []*Ticket `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"` Tickets []*Ticket `protobuf:"bytes,1,rep,name=tickets" json:"tickets,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyTicketList) Reset() { *m = ReplyTicketList{} }
func (m *ReplyTicketList) String() string { return proto.CompactTextString(m) }
func (*ReplyTicketList) ProtoMessage() {}
func (*ReplyTicketList) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{11}
}
func (m *ReplyTicketList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyTicketList.Unmarshal(m, b)
}
func (m *ReplyTicketList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyTicketList.Marshal(b, m, deterministic)
}
func (m *ReplyTicketList) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyTicketList.Merge(m, src)
}
func (m *ReplyTicketList) XXX_Size() int {
return xxx_messageInfo_ReplyTicketList.Size(m)
}
func (m *ReplyTicketList) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyTicketList.DiscardUnknown(m)
} }
var xxx_messageInfo_ReplyTicketList proto.InternalMessageInfo func (m *ReplyTicketList) Reset() { *m = ReplyTicketList{} }
func (m *ReplyTicketList) String() string { return proto.CompactTextString(m) }
func (*ReplyTicketList) ProtoMessage() {}
func (*ReplyTicketList) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *ReplyTicketList) GetTickets() []*Ticket { func (m *ReplyTicketList) GetTickets() []*Ticket {
if m != nil { if m != nil {
...@@ -903,37 +645,14 @@ func (m *ReplyTicketList) GetTickets() []*Ticket { ...@@ -903,37 +645,14 @@ func (m *ReplyTicketList) GetTickets() []*Ticket {
} }
type ReplyWalletTickets struct { type ReplyWalletTickets struct {
Tickets []*Ticket `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"` Tickets []*Ticket `protobuf:"bytes,1,rep,name=tickets" json:"tickets,omitempty"`
Privkeys [][]byte `protobuf:"bytes,2,rep,name=privkeys,proto3" json:"privkeys,omitempty"` Privkeys [][]byte `protobuf:"bytes,2,rep,name=privkeys,proto3" json:"privkeys,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyWalletTickets) Reset() { *m = ReplyWalletTickets{} }
func (m *ReplyWalletTickets) String() string { return proto.CompactTextString(m) }
func (*ReplyWalletTickets) ProtoMessage() {}
func (*ReplyWalletTickets) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{12}
}
func (m *ReplyWalletTickets) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyWalletTickets.Unmarshal(m, b)
}
func (m *ReplyWalletTickets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyWalletTickets.Marshal(b, m, deterministic)
}
func (m *ReplyWalletTickets) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyWalletTickets.Merge(m, src)
}
func (m *ReplyWalletTickets) XXX_Size() int {
return xxx_messageInfo_ReplyWalletTickets.Size(m)
}
func (m *ReplyWalletTickets) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyWalletTickets.DiscardUnknown(m)
} }
var xxx_messageInfo_ReplyWalletTickets proto.InternalMessageInfo func (m *ReplyWalletTickets) Reset() { *m = ReplyWalletTickets{} }
func (m *ReplyWalletTickets) String() string { return proto.CompactTextString(m) }
func (*ReplyWalletTickets) ProtoMessage() {}
func (*ReplyWalletTickets) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
func (m *ReplyWalletTickets) GetTickets() []*Ticket { func (m *ReplyWalletTickets) GetTickets() []*Ticket {
if m != nil { if m != nil {
...@@ -950,39 +669,16 @@ func (m *ReplyWalletTickets) GetPrivkeys() [][]byte { ...@@ -950,39 +669,16 @@ func (m *ReplyWalletTickets) GetPrivkeys() [][]byte {
} }
type ReceiptTicket struct { type ReceiptTicket struct {
TicketId string `protobuf:"bytes,1,opt,name=ticketId,proto3" json:"ticketId,omitempty"` TicketId string `protobuf:"bytes,1,opt,name=ticketId" json:"ticketId,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus,proto3" json:"prevStatus,omitempty"` PrevStatus int32 `protobuf:"varint,3,opt,name=prevStatus" json:"prevStatus,omitempty"`
Addr string `protobuf:"bytes,4,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,4,opt,name=addr" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptTicket) Reset() { *m = ReceiptTicket{} } func (m *ReceiptTicket) Reset() { *m = ReceiptTicket{} }
func (m *ReceiptTicket) String() string { return proto.CompactTextString(m) } func (m *ReceiptTicket) String() string { return proto.CompactTextString(m) }
func (*ReceiptTicket) ProtoMessage() {} func (*ReceiptTicket) ProtoMessage() {}
func (*ReceiptTicket) Descriptor() ([]byte, []int) { func (*ReceiptTicket) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
return fileDescriptor_98a6c21780e82d22, []int{13}
}
func (m *ReceiptTicket) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptTicket.Unmarshal(m, b)
}
func (m *ReceiptTicket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptTicket.Marshal(b, m, deterministic)
}
func (m *ReceiptTicket) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptTicket.Merge(m, src)
}
func (m *ReceiptTicket) XXX_Size() int {
return xxx_messageInfo_ReceiptTicket.Size(m)
}
func (m *ReceiptTicket) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptTicket.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptTicket proto.InternalMessageInfo
func (m *ReceiptTicket) GetTicketId() string { func (m *ReceiptTicket) GetTicketId() string {
if m != nil { if m != nil {
...@@ -1013,38 +709,15 @@ func (m *ReceiptTicket) GetAddr() string { ...@@ -1013,38 +709,15 @@ func (m *ReceiptTicket) GetAddr() string {
} }
type ReceiptTicketBind struct { type ReceiptTicketBind struct {
OldMinerAddress string `protobuf:"bytes,1,opt,name=oldMinerAddress,proto3" json:"oldMinerAddress,omitempty"` OldMinerAddress string `protobuf:"bytes,1,opt,name=oldMinerAddress" json:"oldMinerAddress,omitempty"`
NewMinerAddress string `protobuf:"bytes,2,opt,name=newMinerAddress,proto3" json:"newMinerAddress,omitempty"` NewMinerAddress string `protobuf:"bytes,2,opt,name=newMinerAddress" json:"newMinerAddress,omitempty"`
ReturnAddress string `protobuf:"bytes,3,opt,name=returnAddress,proto3" json:"returnAddress,omitempty"` ReturnAddress string `protobuf:"bytes,3,opt,name=returnAddress" json:"returnAddress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReceiptTicketBind) Reset() { *m = ReceiptTicketBind{} }
func (m *ReceiptTicketBind) String() string { return proto.CompactTextString(m) }
func (*ReceiptTicketBind) ProtoMessage() {}
func (*ReceiptTicketBind) Descriptor() ([]byte, []int) {
return fileDescriptor_98a6c21780e82d22, []int{14}
}
func (m *ReceiptTicketBind) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptTicketBind.Unmarshal(m, b)
}
func (m *ReceiptTicketBind) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptTicketBind.Marshal(b, m, deterministic)
}
func (m *ReceiptTicketBind) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptTicketBind.Merge(m, src)
}
func (m *ReceiptTicketBind) XXX_Size() int {
return xxx_messageInfo_ReceiptTicketBind.Size(m)
}
func (m *ReceiptTicketBind) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptTicketBind.DiscardUnknown(m)
} }
var xxx_messageInfo_ReceiptTicketBind proto.InternalMessageInfo func (m *ReceiptTicketBind) Reset() { *m = ReceiptTicketBind{} }
func (m *ReceiptTicketBind) String() string { return proto.CompactTextString(m) }
func (*ReceiptTicketBind) ProtoMessage() {}
func (*ReceiptTicketBind) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
func (m *ReceiptTicketBind) GetOldMinerAddress() string { func (m *ReceiptTicketBind) GetOldMinerAddress() string {
if m != nil { if m != nil {
...@@ -1068,39 +741,16 @@ func (m *ReceiptTicketBind) GetReturnAddress() string { ...@@ -1068,39 +741,16 @@ func (m *ReceiptTicketBind) GetReturnAddress() string {
} }
type ReqBindMiner struct { type ReqBindMiner struct {
BindAddr string `protobuf:"bytes,1,opt,name=bindAddr,proto3" json:"bindAddr,omitempty"` BindAddr string `protobuf:"bytes,1,opt,name=bindAddr" json:"bindAddr,omitempty"`
OriginAddr string `protobuf:"bytes,2,opt,name=originAddr,proto3" json:"originAddr,omitempty"` OriginAddr string `protobuf:"bytes,2,opt,name=originAddr" json:"originAddr,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount" json:"amount,omitempty"`
CheckBalance bool `protobuf:"varint,4,opt,name=checkBalance,proto3" json:"checkBalance,omitempty"` CheckBalance bool `protobuf:"varint,4,opt,name=checkBalance" json:"checkBalance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqBindMiner) Reset() { *m = ReqBindMiner{} } func (m *ReqBindMiner) Reset() { *m = ReqBindMiner{} }
func (m *ReqBindMiner) String() string { return proto.CompactTextString(m) } func (m *ReqBindMiner) String() string { return proto.CompactTextString(m) }
func (*ReqBindMiner) ProtoMessage() {} func (*ReqBindMiner) ProtoMessage() {}
func (*ReqBindMiner) Descriptor() ([]byte, []int) { func (*ReqBindMiner) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
return fileDescriptor_98a6c21780e82d22, []int{15}
}
func (m *ReqBindMiner) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqBindMiner.Unmarshal(m, b)
}
func (m *ReqBindMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqBindMiner.Marshal(b, m, deterministic)
}
func (m *ReqBindMiner) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqBindMiner.Merge(m, src)
}
func (m *ReqBindMiner) XXX_Size() int {
return xxx_messageInfo_ReqBindMiner.Size(m)
}
func (m *ReqBindMiner) XXX_DiscardUnknown() {
xxx_messageInfo_ReqBindMiner.DiscardUnknown(m)
}
var xxx_messageInfo_ReqBindMiner proto.InternalMessageInfo
func (m *ReqBindMiner) GetBindAddr() string { func (m *ReqBindMiner) GetBindAddr() string {
if m != nil { if m != nil {
...@@ -1131,36 +781,13 @@ func (m *ReqBindMiner) GetCheckBalance() bool { ...@@ -1131,36 +781,13 @@ func (m *ReqBindMiner) GetCheckBalance() bool {
} }
type ReplyBindMiner struct { type ReplyBindMiner struct {
TxHex string `protobuf:"bytes,1,opt,name=txHex,proto3" json:"txHex,omitempty"` TxHex string `protobuf:"bytes,1,opt,name=txHex" json:"txHex,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyBindMiner) Reset() { *m = ReplyBindMiner{} } func (m *ReplyBindMiner) Reset() { *m = ReplyBindMiner{} }
func (m *ReplyBindMiner) String() string { return proto.CompactTextString(m) } func (m *ReplyBindMiner) String() string { return proto.CompactTextString(m) }
func (*ReplyBindMiner) ProtoMessage() {} func (*ReplyBindMiner) ProtoMessage() {}
func (*ReplyBindMiner) Descriptor() ([]byte, []int) { func (*ReplyBindMiner) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
return fileDescriptor_98a6c21780e82d22, []int{16}
}
func (m *ReplyBindMiner) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyBindMiner.Unmarshal(m, b)
}
func (m *ReplyBindMiner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyBindMiner.Marshal(b, m, deterministic)
}
func (m *ReplyBindMiner) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyBindMiner.Merge(m, src)
}
func (m *ReplyBindMiner) XXX_Size() int {
return xxx_messageInfo_ReplyBindMiner.Size(m)
}
func (m *ReplyBindMiner) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyBindMiner.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyBindMiner proto.InternalMessageInfo
func (m *ReplyBindMiner) GetTxHex() string { func (m *ReplyBindMiner) GetTxHex() string {
if m != nil { if m != nil {
...@@ -1189,65 +816,6 @@ func init() { ...@@ -1189,65 +816,6 @@ func init() {
proto.RegisterType((*ReplyBindMiner)(nil), "types.ReplyBindMiner") proto.RegisterType((*ReplyBindMiner)(nil), "types.ReplyBindMiner")
} }
func init() { proto.RegisterFile("ticket.proto", fileDescriptor_98a6c21780e82d22) }
var fileDescriptor_98a6c21780e82d22 = []byte{
// 834 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0xe3, 0x44,
0x14, 0x8e, 0xe3, 0x3a, 0x49, 0x5f, 0x9d, 0x96, 0x1d, 0x0a, 0xb2, 0x22, 0xb4, 0x8a, 0x46, 0x08,
0xb2, 0x80, 0x0a, 0x14, 0x84, 0x80, 0x0b, 0x6a, 0x2b, 0xb1, 0xa9, 0x44, 0x59, 0x69, 0xba, 0x5a,
0xc4, 0xd1, 0xb5, 0x5f, 0xb3, 0xa3, 0x3a, 0x63, 0x63, 0x4f, 0xda, 0xcd, 0x95, 0x03, 0xd2, 0x1e,
0xf8, 0x37, 0xb8, 0xf1, 0x3f, 0xa2, 0x79, 0x1e, 0xff, 0x4a, 0x7a, 0x88, 0x04, 0xdc, 0xfc, 0xbe,
0xf9, 0xde, 0xbc, 0x37, 0xdf, 0x7c, 0xf3, 0x12, 0xf0, 0xb5, 0x8c, 0xee, 0x50, 0x9f, 0x64, 0x79,
0xaa, 0x53, 0xe6, 0xe9, 0x75, 0x86, 0xc5, 0xc4, 0x8f, 0xd2, 0xe5, 0x32, 0x55, 0x25, 0xc8, 0x7f,
0xef, 0xc3, 0xe0, 0x25, 0xb1, 0xd8, 0x04, 0x46, 0x25, 0xff, 0x32, 0x0e, 0x9c, 0xa9, 0x33, 0xdb,
0x17, 0x75, 0xcc, 0xde, 0x87, 0x41, 0xa1, 0x43, 0xbd, 0x2a,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 0xcb, 0x85, 0xa4, 0x6c, 0x5b, 0xb7, 0x85, 0x18, 0xa1, 0xc2, 0x65, 0xed, 0x4a, 0x57, 0xd8,
0xc8, 0xd8, 0x3e, 0x7a, 0x8d, 0xd1, 0xdd, 0x79, 0x98, 0x84, 0x2a, 0x2a, 0x7f, 0xf7, 0x46, 0xa2,
0x83, 0xf1, 0x8f, 0xe0, 0x90, 0x2e, 0xbb, 0xe9, 0xe4, 0x18, 0x3c, 0xfd, 0x66, 0x8e, 0x6f, 0x6c,
0x1b, 0x65, 0x70, 0xfa, 0xb7, 0x03, 0x83, 0xf2, 0x66, 0xd8, 0x0f, 0x70, 0x74, 0x41, 0x3f, 0x9d,
0x4d, 0xce, 0xbb, 0xd6, 0x0b, 0xed, 0x23, 0x4d, 0xde, 0xab, 0xc1, 0xf6, 0xfe, 0xbc, 0xc7, 0x3e,
0x87, 0xc3, 0xe7, 0x95, 0xb1, 0x2e, 0xa8, 0xd3, 0x71, 0x93, 0xff, 0xb3, 0x4c, 0x26, 0xbe, 0x0d,
0x2f, 0x95, 0xfe, 0xe6, 0x6b, 0xde, 0x63, 0x5f, 0xc2, 0xf8, 0x1a, 0xf5, 0xd9, 0x4a, 0xa7, 0x57,
0x52, 0x49, 0xb5, 0x60, 0xef, 0x58, 0x42, 0x3d, 0x22, 0xeb, 0x14, 0x2a, 0xc6, 0x7b, 0x37, 0x03,
0xfa, 0x57, 0xf1, 0xd5, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xb2, 0x68, 0x2b, 0x7a, 0x08,
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 _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
...@@ -1256,17 +824,16 @@ var _ grpc.ClientConn ...@@ -1256,17 +824,16 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// TicketClient is the client API for Ticket service. // Client API for Ticket service
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TicketClient interface { type TicketClient interface {
//创建绑定挖矿 // 创建绑定挖矿
CreateBindMiner(ctx context.Context, in *ReqBindMiner, opts ...grpc.CallOption) (*ReplyBindMiner, error) CreateBindMiner(ctx context.Context, in *ReqBindMiner, opts ...grpc.CallOption) (*ReplyBindMiner, error)
//查询钱包票数 // 查询钱包票数
GetTicketCount(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Int64, error) GetTicketCount(ctx context.Context, in *types1.ReqNil, opts ...grpc.CallOption) (*types1.Int64, error)
// Miner // Miner
//设置自动挖矿 // 设置自动挖矿
SetAutoMining(ctx context.Context, in *MinerFlag, opts ...grpc.CallOption) (*types.Reply, error) SetAutoMining(ctx context.Context, in *MinerFlag, opts ...grpc.CallOption) (*types1.Reply, error)
} }
type ticketClient struct { type ticketClient struct {
...@@ -1279,40 +846,41 @@ func NewTicketClient(cc *grpc.ClientConn) TicketClient { ...@@ -1279,40 +846,41 @@ func NewTicketClient(cc *grpc.ClientConn) TicketClient {
func (c *ticketClient) CreateBindMiner(ctx context.Context, in *ReqBindMiner, opts ...grpc.CallOption) (*ReplyBindMiner, error) { func (c *ticketClient) CreateBindMiner(ctx context.Context, in *ReqBindMiner, opts ...grpc.CallOption) (*ReplyBindMiner, error) {
out := new(ReplyBindMiner) out := new(ReplyBindMiner)
err := c.cc.Invoke(ctx, "/types.ticket/CreateBindMiner", in, out, opts...) err := grpc.Invoke(ctx, "/types.ticket/CreateBindMiner", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *ticketClient) GetTicketCount(ctx context.Context, in *types.ReqNil, opts ...grpc.CallOption) (*types.Int64, error) { func (c *ticketClient) GetTicketCount(ctx context.Context, in *types1.ReqNil, opts ...grpc.CallOption) (*types1.Int64, error) {
out := new(types.Int64) out := new(types1.Int64)
err := c.cc.Invoke(ctx, "/types.ticket/GetTicketCount", in, out, opts...) err := grpc.Invoke(ctx, "/types.ticket/GetTicketCount", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
func (c *ticketClient) SetAutoMining(ctx context.Context, in *MinerFlag, opts ...grpc.CallOption) (*types.Reply, error) { func (c *ticketClient) SetAutoMining(ctx context.Context, in *MinerFlag, opts ...grpc.CallOption) (*types1.Reply, error) {
out := new(types.Reply) out := new(types1.Reply)
err := c.cc.Invoke(ctx, "/types.ticket/SetAutoMining", in, out, opts...) err := grpc.Invoke(ctx, "/types.ticket/SetAutoMining", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
// TicketServer is the server API for Ticket service. // Server API for Ticket service
type TicketServer interface { type TicketServer interface {
//创建绑定挖矿 // 创建绑定挖矿
CreateBindMiner(context.Context, *ReqBindMiner) (*ReplyBindMiner, error) CreateBindMiner(context.Context, *ReqBindMiner) (*ReplyBindMiner, error)
//查询钱包票数 // 查询钱包票数
GetTicketCount(context.Context, *types.ReqNil) (*types.Int64, error) GetTicketCount(context.Context, *types1.ReqNil) (*types1.Int64, error)
// Miner // Miner
//设置自动挖矿 // 设置自动挖矿
SetAutoMining(context.Context, *MinerFlag) (*types.Reply, error) SetAutoMining(context.Context, *MinerFlag) (*types1.Reply, error)
} }
func RegisterTicketServer(s *grpc.Server, srv TicketServer) { func RegisterTicketServer(s *grpc.Server, srv TicketServer) {
...@@ -1338,7 +906,7 @@ func _Ticket_CreateBindMiner_Handler(srv interface{}, ctx context.Context, dec f ...@@ -1338,7 +906,7 @@ func _Ticket_CreateBindMiner_Handler(srv interface{}, ctx context.Context, dec f
} }
func _Ticket_GetTicketCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { func _Ticket_GetTicketCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(types.ReqNil) in := new(types1.ReqNil)
if err := dec(in); err != nil { if err := dec(in); err != nil {
return nil, err return nil, err
} }
...@@ -1350,7 +918,7 @@ func _Ticket_GetTicketCount_Handler(srv interface{}, ctx context.Context, dec fu ...@@ -1350,7 +918,7 @@ func _Ticket_GetTicketCount_Handler(srv interface{}, ctx context.Context, dec fu
FullMethod: "/types.ticket/GetTicketCount", FullMethod: "/types.ticket/GetTicketCount",
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TicketServer).GetTicketCount(ctx, req.(*types.ReqNil)) return srv.(TicketServer).GetTicketCount(ctx, req.(*types1.ReqNil))
} }
return interceptor(ctx, in, info, handler) return interceptor(ctx, in, info, handler)
} }
...@@ -1393,3 +961,62 @@ var _Ticket_serviceDesc = grpc.ServiceDesc{ ...@@ -1393,3 +961,62 @@ var _Ticket_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "ticket.proto", Metadata: "ticket.proto",
} }
func init() { proto.RegisterFile("ticket.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 834 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcf, 0x6f, 0xe3, 0x44,
0x14, 0x8e, 0xe3, 0x3a, 0x49, 0x5f, 0x9d, 0x96, 0x1d, 0x0a, 0xb2, 0x22, 0xb4, 0x8a, 0x46, 0x08,
0xb2, 0x80, 0x0a, 0x14, 0x84, 0x80, 0x0b, 0x6a, 0x2b, 0xb1, 0xa9, 0x44, 0x59, 0x69, 0xba, 0x5a,
0xc4, 0xd1, 0xb5, 0x5f, 0xb3, 0xa3, 0x3a, 0x63, 0x63, 0x4f, 0xda, 0xcd, 0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8, 0x1a, 0xf5, 0xd9, 0x4a, 0xa7, 0x57,
0x52, 0x49, 0xb5, 0x60, 0xef, 0x58, 0x42, 0x3d, 0x22, 0xeb, 0x14, 0x2a, 0xc6, 0x7b, 0x37, 0x03,
0xfa, 0x57, 0xf1, 0xd5, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xbe, 0xb2, 0x68, 0x2b, 0x7a, 0x08,
0x00, 0x00,
}
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: token.proto // source: token.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
token.proto
It has these top-level messages:
TokenAction
TokenPreCreate
TokenFinishCreate
TokenRevokeCreate
Token
ReceiptToken
LocalToken
ReqTokens
ReplyTokens
TokenRecv
ReplyAddrRecvForTokens
ReqTokenBalance
ReqAccountTokenAssets
TokenAsset
ReplyAccountTokenAssets
ReqAddrTokens
ReqTokenTx
*/
package types package types
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import types2 "github.com/33cn/chain33/types"
import types3 "github.com/33cn/chain33/types"
import ( import (
context "context" context "golang.org/x/net/context"
fmt "fmt"
types "github.com/33cn/chain33/types"
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.
...@@ -33,83 +60,48 @@ type TokenAction struct { ...@@ -33,83 +60,48 @@ type TokenAction struct {
// *TokenAction_Withdraw // *TokenAction_Withdraw
// *TokenAction_Genesis // *TokenAction_Genesis
// *TokenAction_TransferToExec // *TokenAction_TransferToExec
Value isTokenAction_Value `protobuf_oneof:"value"` Value isTokenAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,7,opt,name=Ty,proto3" json:"Ty,omitempty"` Ty int32 `protobuf:"varint,7,opt,name=Ty" json:"Ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TokenAction) Reset() { *m = TokenAction{} }
func (m *TokenAction) String() string { return proto.CompactTextString(m) }
func (*TokenAction) ProtoMessage() {}
func (*TokenAction) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{0}
}
func (m *TokenAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TokenAction.Unmarshal(m, b)
}
func (m *TokenAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TokenAction.Marshal(b, m, deterministic)
}
func (m *TokenAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenAction.Merge(m, src)
}
func (m *TokenAction) XXX_Size() int {
return xxx_messageInfo_TokenAction.Size(m)
}
func (m *TokenAction) XXX_DiscardUnknown() {
xxx_messageInfo_TokenAction.DiscardUnknown(m)
} }
var xxx_messageInfo_TokenAction proto.InternalMessageInfo func (m *TokenAction) Reset() { *m = TokenAction{} }
func (m *TokenAction) String() string { return proto.CompactTextString(m) }
func (*TokenAction) ProtoMessage() {}
func (*TokenAction) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type isTokenAction_Value interface { type isTokenAction_Value interface {
isTokenAction_Value() isTokenAction_Value()
} }
type TokenAction_TokenPreCreate struct { type TokenAction_TokenPreCreate struct {
TokenPreCreate *TokenPreCreate `protobuf:"bytes,1,opt,name=tokenPreCreate,proto3,oneof"` TokenPreCreate *TokenPreCreate `protobuf:"bytes,1,opt,name=tokenPreCreate,oneof"`
} }
type TokenAction_TokenFinishCreate struct { type TokenAction_TokenFinishCreate struct {
TokenFinishCreate *TokenFinishCreate `protobuf:"bytes,2,opt,name=tokenFinishCreate,proto3,oneof"` TokenFinishCreate *TokenFinishCreate `protobuf:"bytes,2,opt,name=tokenFinishCreate,oneof"`
} }
type TokenAction_TokenRevokeCreate struct { type TokenAction_TokenRevokeCreate struct {
TokenRevokeCreate *TokenRevokeCreate `protobuf:"bytes,3,opt,name=tokenRevokeCreate,proto3,oneof"` TokenRevokeCreate *TokenRevokeCreate `protobuf:"bytes,3,opt,name=tokenRevokeCreate,oneof"`
} }
type TokenAction_Transfer struct { type TokenAction_Transfer struct {
Transfer *types.AssetsTransfer `protobuf:"bytes,4,opt,name=transfer,proto3,oneof"` Transfer *types2.AssetsTransfer `protobuf:"bytes,4,opt,name=transfer,oneof"`
} }
type TokenAction_Withdraw struct { type TokenAction_Withdraw struct {
Withdraw *types.AssetsWithdraw `protobuf:"bytes,5,opt,name=withdraw,proto3,oneof"` Withdraw *types2.AssetsWithdraw `protobuf:"bytes,5,opt,name=withdraw,oneof"`
} }
type TokenAction_Genesis struct { type TokenAction_Genesis struct {
Genesis *types.AssetsGenesis `protobuf:"bytes,6,opt,name=genesis,proto3,oneof"` Genesis *types2.AssetsGenesis `protobuf:"bytes,6,opt,name=genesis,oneof"`
} }
type TokenAction_TransferToExec struct { type TokenAction_TransferToExec struct {
TransferToExec *types.AssetsTransferToExec `protobuf:"bytes,8,opt,name=transferToExec,proto3,oneof"` TransferToExec *types2.AssetsTransferToExec `protobuf:"bytes,8,opt,name=transferToExec,oneof"`
} }
func (*TokenAction_TokenPreCreate) isTokenAction_Value() {} func (*TokenAction_TokenPreCreate) isTokenAction_Value() {}
func (*TokenAction_TokenFinishCreate) isTokenAction_Value() {} func (*TokenAction_TokenFinishCreate) isTokenAction_Value() {}
func (*TokenAction_TokenRevokeCreate) isTokenAction_Value() {} func (*TokenAction_TokenRevokeCreate) isTokenAction_Value() {}
func (*TokenAction_Transfer) isTokenAction_Value() {}
func (*TokenAction_Transfer) isTokenAction_Value() {} func (*TokenAction_Withdraw) isTokenAction_Value() {}
func (*TokenAction_Genesis) isTokenAction_Value() {}
func (*TokenAction_Withdraw) isTokenAction_Value() {} func (*TokenAction_TransferToExec) isTokenAction_Value() {}
func (*TokenAction_Genesis) isTokenAction_Value() {}
func (*TokenAction_TransferToExec) isTokenAction_Value() {}
func (m *TokenAction) GetValue() isTokenAction_Value { func (m *TokenAction) GetValue() isTokenAction_Value {
if m != nil { if m != nil {
...@@ -139,28 +131,28 @@ func (m *TokenAction) GetTokenRevokeCreate() *TokenRevokeCreate { ...@@ -139,28 +131,28 @@ func (m *TokenAction) GetTokenRevokeCreate() *TokenRevokeCreate {
return nil return nil
} }
func (m *TokenAction) GetTransfer() *types.AssetsTransfer { func (m *TokenAction) GetTransfer() *types2.AssetsTransfer {
if x, ok := m.GetValue().(*TokenAction_Transfer); ok { if x, ok := m.GetValue().(*TokenAction_Transfer); ok {
return x.Transfer return x.Transfer
} }
return nil return nil
} }
func (m *TokenAction) GetWithdraw() *types.AssetsWithdraw { func (m *TokenAction) GetWithdraw() *types2.AssetsWithdraw {
if x, ok := m.GetValue().(*TokenAction_Withdraw); ok { if x, ok := m.GetValue().(*TokenAction_Withdraw); ok {
return x.Withdraw return x.Withdraw
} }
return nil return nil
} }
func (m *TokenAction) GetGenesis() *types.AssetsGenesis { func (m *TokenAction) GetGenesis() *types2.AssetsGenesis {
if x, ok := m.GetValue().(*TokenAction_Genesis); ok { if x, ok := m.GetValue().(*TokenAction_Genesis); ok {
return x.Genesis return x.Genesis
} }
return nil return nil
} }
func (m *TokenAction) GetTransferToExec() *types.AssetsTransferToExec { func (m *TokenAction) GetTransferToExec() *types2.AssetsTransferToExec {
if x, ok := m.GetValue().(*TokenAction_TransferToExec); ok { if x, ok := m.GetValue().(*TokenAction_TransferToExec); ok {
return x.TransferToExec return x.TransferToExec
} }
...@@ -264,7 +256,7 @@ func _TokenAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu ...@@ -264,7 +256,7 @@ func _TokenAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsTransfer) msg := new(types2.AssetsTransfer)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &TokenAction_Transfer{msg} m.Value = &TokenAction_Transfer{msg}
return true, err return true, err
...@@ -272,7 +264,7 @@ func _TokenAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu ...@@ -272,7 +264,7 @@ func _TokenAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsWithdraw) msg := new(types2.AssetsWithdraw)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &TokenAction_Withdraw{msg} m.Value = &TokenAction_Withdraw{msg}
return true, err return true, err
...@@ -280,7 +272,7 @@ func _TokenAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu ...@@ -280,7 +272,7 @@ func _TokenAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsGenesis) msg := new(types2.AssetsGenesis)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &TokenAction_Genesis{msg} m.Value = &TokenAction_Genesis{msg}
return true, err return true, err
...@@ -288,7 +280,7 @@ func _TokenAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu ...@@ -288,7 +280,7 @@ func _TokenAction_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Bu
if wire != proto.WireBytes { if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType return true, proto.ErrInternalBadWireType
} }
msg := new(types.AssetsTransferToExec) msg := new(types2.AssetsTransferToExec)
err := b.DecodeMessage(msg) err := b.DecodeMessage(msg)
m.Value = &TokenAction_TransferToExec{msg} m.Value = &TokenAction_TransferToExec{msg}
return true, err return true, err
...@@ -303,37 +295,37 @@ func _TokenAction_OneofSizer(msg proto.Message) (n int) { ...@@ -303,37 +295,37 @@ func _TokenAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *TokenAction_TokenPreCreate: case *TokenAction_TokenPreCreate:
s := proto.Size(x.TokenPreCreate) s := proto.Size(x.TokenPreCreate)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TokenAction_TokenFinishCreate: case *TokenAction_TokenFinishCreate:
s := proto.Size(x.TokenFinishCreate) s := proto.Size(x.TokenFinishCreate)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TokenAction_TokenRevokeCreate: case *TokenAction_TokenRevokeCreate:
s := proto.Size(x.TokenRevokeCreate) s := proto.Size(x.TokenRevokeCreate)
n += 1 // tag and wire n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TokenAction_Transfer: case *TokenAction_Transfer:
s := proto.Size(x.Transfer) s := proto.Size(x.Transfer)
n += 1 // tag and wire n += proto.SizeVarint(4<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TokenAction_Withdraw: case *TokenAction_Withdraw:
s := proto.Size(x.Withdraw) s := proto.Size(x.Withdraw)
n += 1 // tag and wire n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TokenAction_Genesis: case *TokenAction_Genesis:
s := proto.Size(x.Genesis) s := proto.Size(x.Genesis)
n += 1 // tag and wire n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *TokenAction_TransferToExec: case *TokenAction_TransferToExec:
s := proto.Size(x.TransferToExec) s := proto.Size(x.TransferToExec)
n += 1 // tag and wire n += proto.SizeVarint(8<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -343,43 +335,20 @@ func _TokenAction_OneofSizer(msg proto.Message) (n int) { ...@@ -343,43 +335,20 @@ func _TokenAction_OneofSizer(msg proto.Message) (n int) {
return n return n
} }
//创建token,支持最大精确度是8位小数,即存入数据库的实际总额需要放大1e8倍 // 创建token,支持最大精确度是8位小数,即存入数据库的实际总额需要放大1e8倍
type TokenPreCreate struct { type TokenPreCreate struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol" json:"symbol,omitempty"`
Introduction string `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"` Introduction string `protobuf:"bytes,3,opt,name=introduction" json:"introduction,omitempty"`
Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Total int64 `protobuf:"varint,4,opt,name=total" json:"total,omitempty"`
Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` Price int64 `protobuf:"varint,5,opt,name=price" json:"price,omitempty"`
Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` Owner string `protobuf:"bytes,6,opt,name=owner" json:"owner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TokenPreCreate) Reset() { *m = TokenPreCreate{} } func (m *TokenPreCreate) Reset() { *m = TokenPreCreate{} }
func (m *TokenPreCreate) String() string { return proto.CompactTextString(m) } func (m *TokenPreCreate) String() string { return proto.CompactTextString(m) }
func (*TokenPreCreate) ProtoMessage() {} func (*TokenPreCreate) ProtoMessage() {}
func (*TokenPreCreate) Descriptor() ([]byte, []int) { func (*TokenPreCreate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
return fileDescriptor_3aff0bcd502840ab, []int{1}
}
func (m *TokenPreCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TokenPreCreate.Unmarshal(m, b)
}
func (m *TokenPreCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TokenPreCreate.Marshal(b, m, deterministic)
}
func (m *TokenPreCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenPreCreate.Merge(m, src)
}
func (m *TokenPreCreate) XXX_Size() int {
return xxx_messageInfo_TokenPreCreate.Size(m)
}
func (m *TokenPreCreate) XXX_DiscardUnknown() {
xxx_messageInfo_TokenPreCreate.DiscardUnknown(m)
}
var xxx_messageInfo_TokenPreCreate proto.InternalMessageInfo
func (m *TokenPreCreate) GetName() string { func (m *TokenPreCreate) GetName() string {
if m != nil { if m != nil {
...@@ -424,37 +393,14 @@ func (m *TokenPreCreate) GetOwner() string { ...@@ -424,37 +393,14 @@ func (m *TokenPreCreate) GetOwner() string {
} }
type TokenFinishCreate struct { type TokenFinishCreate struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,1,opt,name=symbol" json:"symbol,omitempty"`
Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner" json:"owner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TokenFinishCreate) Reset() { *m = TokenFinishCreate{} }
func (m *TokenFinishCreate) String() string { return proto.CompactTextString(m) }
func (*TokenFinishCreate) ProtoMessage() {}
func (*TokenFinishCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{2}
}
func (m *TokenFinishCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TokenFinishCreate.Unmarshal(m, b)
}
func (m *TokenFinishCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TokenFinishCreate.Marshal(b, m, deterministic)
}
func (m *TokenFinishCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenFinishCreate.Merge(m, src)
}
func (m *TokenFinishCreate) XXX_Size() int {
return xxx_messageInfo_TokenFinishCreate.Size(m)
}
func (m *TokenFinishCreate) XXX_DiscardUnknown() {
xxx_messageInfo_TokenFinishCreate.DiscardUnknown(m)
} }
var xxx_messageInfo_TokenFinishCreate proto.InternalMessageInfo func (m *TokenFinishCreate) Reset() { *m = TokenFinishCreate{} }
func (m *TokenFinishCreate) String() string { return proto.CompactTextString(m) }
func (*TokenFinishCreate) ProtoMessage() {}
func (*TokenFinishCreate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *TokenFinishCreate) GetSymbol() string { func (m *TokenFinishCreate) GetSymbol() string {
if m != nil { if m != nil {
...@@ -471,37 +417,14 @@ func (m *TokenFinishCreate) GetOwner() string { ...@@ -471,37 +417,14 @@ func (m *TokenFinishCreate) GetOwner() string {
} }
type TokenRevokeCreate struct { type TokenRevokeCreate struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,1,opt,name=symbol" json:"symbol,omitempty"`
Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner" json:"owner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TokenRevokeCreate) Reset() { *m = TokenRevokeCreate{} }
func (m *TokenRevokeCreate) String() string { return proto.CompactTextString(m) }
func (*TokenRevokeCreate) ProtoMessage() {}
func (*TokenRevokeCreate) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{3}
}
func (m *TokenRevokeCreate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TokenRevokeCreate.Unmarshal(m, b)
}
func (m *TokenRevokeCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TokenRevokeCreate.Marshal(b, m, deterministic)
}
func (m *TokenRevokeCreate) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenRevokeCreate.Merge(m, src)
}
func (m *TokenRevokeCreate) XXX_Size() int {
return xxx_messageInfo_TokenRevokeCreate.Size(m)
}
func (m *TokenRevokeCreate) XXX_DiscardUnknown() {
xxx_messageInfo_TokenRevokeCreate.DiscardUnknown(m)
} }
var xxx_messageInfo_TokenRevokeCreate proto.InternalMessageInfo func (m *TokenRevokeCreate) Reset() { *m = TokenRevokeCreate{} }
func (m *TokenRevokeCreate) String() string { return proto.CompactTextString(m) }
func (*TokenRevokeCreate) ProtoMessage() {}
func (*TokenRevokeCreate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *TokenRevokeCreate) GetSymbol() string { func (m *TokenRevokeCreate) GetSymbol() string {
if m != nil { if m != nil {
...@@ -519,43 +442,20 @@ func (m *TokenRevokeCreate) GetOwner() string { ...@@ -519,43 +442,20 @@ func (m *TokenRevokeCreate) GetOwner() string {
// state db // state db
type Token struct { type Token struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol" json:"symbol,omitempty"`
Introduction string `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"` Introduction string `protobuf:"bytes,3,opt,name=introduction" json:"introduction,omitempty"`
Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Total int64 `protobuf:"varint,4,opt,name=total" json:"total,omitempty"`
Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` Price int64 `protobuf:"varint,5,opt,name=price" json:"price,omitempty"`
Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` Owner string `protobuf:"bytes,6,opt,name=owner" json:"owner,omitempty"`
Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` Creator string `protobuf:"bytes,7,opt,name=creator" json:"creator,omitempty"`
Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,8,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Token) Reset() { *m = Token{} }
func (m *Token) String() string { return proto.CompactTextString(m) }
func (*Token) ProtoMessage() {}
func (*Token) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{4}
}
func (m *Token) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Token.Unmarshal(m, b)
}
func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Token.Marshal(b, m, deterministic)
}
func (m *Token) XXX_Merge(src proto.Message) {
xxx_messageInfo_Token.Merge(m, src)
}
func (m *Token) XXX_Size() int {
return xxx_messageInfo_Token.Size(m)
}
func (m *Token) XXX_DiscardUnknown() {
xxx_messageInfo_Token.DiscardUnknown(m)
} }
var xxx_messageInfo_Token proto.InternalMessageInfo func (m *Token) Reset() { *m = Token{} }
func (m *Token) String() string { return proto.CompactTextString(m) }
func (*Token) ProtoMessage() {}
func (*Token) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *Token) GetName() string { func (m *Token) GetName() string {
if m != nil { if m != nil {
...@@ -615,38 +515,15 @@ func (m *Token) GetStatus() int32 { ...@@ -615,38 +515,15 @@ func (m *Token) GetStatus() int32 {
// log // log
type ReceiptToken struct { type ReceiptToken struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,1,opt,name=symbol" json:"symbol,omitempty"`
Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner" json:"owner,omitempty"`
Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,3,opt,name=status" json:"status,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReceiptToken) Reset() { *m = ReceiptToken{} } func (m *ReceiptToken) Reset() { *m = ReceiptToken{} }
func (m *ReceiptToken) String() string { return proto.CompactTextString(m) } func (m *ReceiptToken) String() string { return proto.CompactTextString(m) }
func (*ReceiptToken) ProtoMessage() {} func (*ReceiptToken) ProtoMessage() {}
func (*ReceiptToken) Descriptor() ([]byte, []int) { func (*ReceiptToken) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
return fileDescriptor_3aff0bcd502840ab, []int{5}
}
func (m *ReceiptToken) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReceiptToken.Unmarshal(m, b)
}
func (m *ReceiptToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReceiptToken.Marshal(b, m, deterministic)
}
func (m *ReceiptToken) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReceiptToken.Merge(m, src)
}
func (m *ReceiptToken) XXX_Size() int {
return xxx_messageInfo_ReceiptToken.Size(m)
}
func (m *ReceiptToken) XXX_DiscardUnknown() {
xxx_messageInfo_ReceiptToken.DiscardUnknown(m)
}
var xxx_messageInfo_ReceiptToken proto.InternalMessageInfo
func (m *ReceiptToken) GetSymbol() string { func (m *ReceiptToken) GetSymbol() string {
if m != nil { if m != nil {
...@@ -671,52 +548,29 @@ func (m *ReceiptToken) GetStatus() int32 { ...@@ -671,52 +548,29 @@ func (m *ReceiptToken) GetStatus() int32 {
// local // local
type LocalToken struct { type LocalToken struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol" json:"symbol,omitempty"`
Introduction string `protobuf:"bytes,3,opt,name=introduction,proto3" json:"introduction,omitempty"` Introduction string `protobuf:"bytes,3,opt,name=introduction" json:"introduction,omitempty"`
Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` Total int64 `protobuf:"varint,4,opt,name=total" json:"total,omitempty"`
Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` Price int64 `protobuf:"varint,5,opt,name=price" json:"price,omitempty"`
Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"` Owner string `protobuf:"bytes,6,opt,name=owner" json:"owner,omitempty"`
Creator string `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"` Creator string `protobuf:"bytes,7,opt,name=creator" json:"creator,omitempty"`
Status int32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,8,opt,name=status" json:"status,omitempty"`
CreatedHeight int64 `protobuf:"varint,9,opt,name=createdHeight,proto3" json:"createdHeight,omitempty"` CreatedHeight int64 `protobuf:"varint,9,opt,name=createdHeight" json:"createdHeight,omitempty"`
CreatedTime int64 `protobuf:"varint,10,opt,name=createdTime,proto3" json:"createdTime,omitempty"` CreatedTime int64 `protobuf:"varint,10,opt,name=createdTime" json:"createdTime,omitempty"`
PrepareCreateHeight int64 `protobuf:"varint,11,opt,name=prepareCreateHeight,proto3" json:"prepareCreateHeight,omitempty"` PrepareCreateHeight int64 `protobuf:"varint,11,opt,name=prepareCreateHeight" json:"prepareCreateHeight,omitempty"`
PrepareCreateTime int64 `protobuf:"varint,12,opt,name=prepareCreateTime,proto3" json:"prepareCreateTime,omitempty"` PrepareCreateTime int64 `protobuf:"varint,12,opt,name=prepareCreateTime" json:"prepareCreateTime,omitempty"`
Precision int32 `protobuf:"varint,13,opt,name=precision,proto3" json:"precision,omitempty"` Precision int32 `protobuf:"varint,13,opt,name=precision" json:"precision,omitempty"`
// 如果需要这个项可以单独做一个域存储 // 如果需要这个项可以单独做一个域存储
TotalTransferTimes int64 `protobuf:"varint,14,opt,name=totalTransferTimes,proto3" json:"totalTransferTimes,omitempty"` TotalTransferTimes int64 `protobuf:"varint,14,opt,name=totalTransferTimes" json:"totalTransferTimes,omitempty"`
RevokedHeight int64 `protobuf:"varint,15,opt,name=revokedHeight,proto3" json:"revokedHeight,omitempty"` RevokedHeight int64 `protobuf:"varint,15,opt,name=revokedHeight" json:"revokedHeight,omitempty"`
RevokedTime int64 `protobuf:"varint,16,opt,name=revokedTime,proto3" json:"revokedTime,omitempty"` RevokedTime int64 `protobuf:"varint,16,opt,name=revokedTime" json:"revokedTime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *LocalToken) Reset() { *m = LocalToken{} } func (m *LocalToken) Reset() { *m = LocalToken{} }
func (m *LocalToken) String() string { return proto.CompactTextString(m) } func (m *LocalToken) String() string { return proto.CompactTextString(m) }
func (*LocalToken) ProtoMessage() {} func (*LocalToken) ProtoMessage() {}
func (*LocalToken) Descriptor() ([]byte, []int) { func (*LocalToken) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
return fileDescriptor_3aff0bcd502840ab, []int{6}
}
func (m *LocalToken) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LocalToken.Unmarshal(m, b)
}
func (m *LocalToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LocalToken.Marshal(b, m, deterministic)
}
func (m *LocalToken) XXX_Merge(src proto.Message) {
xxx_messageInfo_LocalToken.Merge(m, src)
}
func (m *LocalToken) XXX_Size() int {
return xxx_messageInfo_LocalToken.Size(m)
}
func (m *LocalToken) XXX_DiscardUnknown() {
xxx_messageInfo_LocalToken.DiscardUnknown(m)
}
var xxx_messageInfo_LocalToken proto.InternalMessageInfo
func (m *LocalToken) GetName() string { func (m *LocalToken) GetName() string {
if m != nil { if m != nil {
...@@ -832,39 +686,16 @@ func (m *LocalToken) GetRevokedTime() int64 { ...@@ -832,39 +686,16 @@ func (m *LocalToken) GetRevokedTime() int64 {
// query // query
type ReqTokens struct { type ReqTokens struct {
QueryAll bool `protobuf:"varint,1,opt,name=queryAll,proto3" json:"queryAll,omitempty"` QueryAll bool `protobuf:"varint,1,opt,name=queryAll" json:"queryAll,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
Tokens []string `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"` Tokens []string `protobuf:"bytes,3,rep,name=tokens" json:"tokens,omitempty"`
SymbolOnly bool `protobuf:"varint,4,opt,name=symbolOnly,proto3" json:"symbolOnly,omitempty"` SymbolOnly bool `protobuf:"varint,4,opt,name=symbolOnly" json:"symbolOnly,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqTokens) Reset() { *m = ReqTokens{} } func (m *ReqTokens) Reset() { *m = ReqTokens{} }
func (m *ReqTokens) String() string { return proto.CompactTextString(m) } func (m *ReqTokens) String() string { return proto.CompactTextString(m) }
func (*ReqTokens) ProtoMessage() {} func (*ReqTokens) ProtoMessage() {}
func (*ReqTokens) Descriptor() ([]byte, []int) { func (*ReqTokens) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
return fileDescriptor_3aff0bcd502840ab, []int{7}
}
func (m *ReqTokens) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqTokens.Unmarshal(m, b)
}
func (m *ReqTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqTokens.Marshal(b, m, deterministic)
}
func (m *ReqTokens) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqTokens.Merge(m, src)
}
func (m *ReqTokens) XXX_Size() int {
return xxx_messageInfo_ReqTokens.Size(m)
}
func (m *ReqTokens) XXX_DiscardUnknown() {
xxx_messageInfo_ReqTokens.DiscardUnknown(m)
}
var xxx_messageInfo_ReqTokens proto.InternalMessageInfo
func (m *ReqTokens) GetQueryAll() bool { func (m *ReqTokens) GetQueryAll() bool {
if m != nil { if m != nil {
...@@ -895,36 +726,13 @@ func (m *ReqTokens) GetSymbolOnly() bool { ...@@ -895,36 +726,13 @@ func (m *ReqTokens) GetSymbolOnly() bool {
} }
type ReplyTokens struct { type ReplyTokens struct {
Tokens []*LocalToken `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` Tokens []*LocalToken `protobuf:"bytes,1,rep,name=tokens" json:"tokens,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReplyTokens) Reset() { *m = ReplyTokens{} }
func (m *ReplyTokens) String() string { return proto.CompactTextString(m) }
func (*ReplyTokens) ProtoMessage() {}
func (*ReplyTokens) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{8}
} }
func (m *ReplyTokens) XXX_Unmarshal(b []byte) error { func (m *ReplyTokens) Reset() { *m = ReplyTokens{} }
return xxx_messageInfo_ReplyTokens.Unmarshal(m, b) func (m *ReplyTokens) String() string { return proto.CompactTextString(m) }
} func (*ReplyTokens) ProtoMessage() {}
func (m *ReplyTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*ReplyTokens) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
return xxx_messageInfo_ReplyTokens.Marshal(b, m, deterministic)
}
func (m *ReplyTokens) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyTokens.Merge(m, src)
}
func (m *ReplyTokens) XXX_Size() int {
return xxx_messageInfo_ReplyTokens.Size(m)
}
func (m *ReplyTokens) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyTokens.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyTokens proto.InternalMessageInfo
func (m *ReplyTokens) GetTokens() []*LocalToken { func (m *ReplyTokens) GetTokens() []*LocalToken {
if m != nil { if m != nil {
...@@ -934,37 +742,14 @@ func (m *ReplyTokens) GetTokens() []*LocalToken { ...@@ -934,37 +742,14 @@ func (m *ReplyTokens) GetTokens() []*LocalToken {
} }
type TokenRecv struct { type TokenRecv struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
Recv int64 `protobuf:"varint,2,opt,name=recv,proto3" json:"recv,omitempty"` Recv int64 `protobuf:"varint,2,opt,name=recv" json:"recv,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TokenRecv) Reset() { *m = TokenRecv{} } func (m *TokenRecv) Reset() { *m = TokenRecv{} }
func (m *TokenRecv) String() string { return proto.CompactTextString(m) } func (m *TokenRecv) String() string { return proto.CompactTextString(m) }
func (*TokenRecv) ProtoMessage() {} func (*TokenRecv) ProtoMessage() {}
func (*TokenRecv) Descriptor() ([]byte, []int) { func (*TokenRecv) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
return fileDescriptor_3aff0bcd502840ab, []int{9}
}
func (m *TokenRecv) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TokenRecv.Unmarshal(m, b)
}
func (m *TokenRecv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TokenRecv.Marshal(b, m, deterministic)
}
func (m *TokenRecv) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenRecv.Merge(m, src)
}
func (m *TokenRecv) XXX_Size() int {
return xxx_messageInfo_TokenRecv.Size(m)
}
func (m *TokenRecv) XXX_DiscardUnknown() {
xxx_messageInfo_TokenRecv.DiscardUnknown(m)
}
var xxx_messageInfo_TokenRecv proto.InternalMessageInfo
func (m *TokenRecv) GetToken() string { func (m *TokenRecv) GetToken() string {
if m != nil { if m != nil {
...@@ -981,36 +766,13 @@ func (m *TokenRecv) GetRecv() int64 { ...@@ -981,36 +766,13 @@ func (m *TokenRecv) GetRecv() int64 {
} }
type ReplyAddrRecvForTokens struct { type ReplyAddrRecvForTokens struct {
TokenRecvs []*TokenRecv `protobuf:"bytes,1,rep,name=tokenRecvs,proto3" json:"tokenRecvs,omitempty"` TokenRecvs []*TokenRecv `protobuf:"bytes,1,rep,name=tokenRecvs" json:"tokenRecvs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyAddrRecvForTokens) Reset() { *m = ReplyAddrRecvForTokens{} } func (m *ReplyAddrRecvForTokens) Reset() { *m = ReplyAddrRecvForTokens{} }
func (m *ReplyAddrRecvForTokens) String() string { return proto.CompactTextString(m) } func (m *ReplyAddrRecvForTokens) String() string { return proto.CompactTextString(m) }
func (*ReplyAddrRecvForTokens) ProtoMessage() {} func (*ReplyAddrRecvForTokens) ProtoMessage() {}
func (*ReplyAddrRecvForTokens) Descriptor() ([]byte, []int) { func (*ReplyAddrRecvForTokens) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
return fileDescriptor_3aff0bcd502840ab, []int{10}
}
func (m *ReplyAddrRecvForTokens) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyAddrRecvForTokens.Unmarshal(m, b)
}
func (m *ReplyAddrRecvForTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyAddrRecvForTokens.Marshal(b, m, deterministic)
}
func (m *ReplyAddrRecvForTokens) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyAddrRecvForTokens.Merge(m, src)
}
func (m *ReplyAddrRecvForTokens) XXX_Size() int {
return xxx_messageInfo_ReplyAddrRecvForTokens.Size(m)
}
func (m *ReplyAddrRecvForTokens) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyAddrRecvForTokens.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyAddrRecvForTokens proto.InternalMessageInfo
func (m *ReplyAddrRecvForTokens) GetTokenRecvs() []*TokenRecv { func (m *ReplyAddrRecvForTokens) GetTokenRecvs() []*TokenRecv {
if m != nil { if m != nil {
...@@ -1020,38 +782,15 @@ func (m *ReplyAddrRecvForTokens) GetTokenRecvs() []*TokenRecv { ...@@ -1020,38 +782,15 @@ func (m *ReplyAddrRecvForTokens) GetTokenRecvs() []*TokenRecv {
} }
type ReqTokenBalance struct { type ReqTokenBalance struct {
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"`
TokenSymbol string `protobuf:"bytes,2,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"` TokenSymbol string `protobuf:"bytes,2,opt,name=tokenSymbol" json:"tokenSymbol,omitempty"`
Execer string `protobuf:"bytes,3,opt,name=execer,proto3" json:"execer,omitempty"` Execer string `protobuf:"bytes,3,opt,name=execer" json:"execer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqTokenBalance) Reset() { *m = ReqTokenBalance{} } func (m *ReqTokenBalance) Reset() { *m = ReqTokenBalance{} }
func (m *ReqTokenBalance) String() string { return proto.CompactTextString(m) } func (m *ReqTokenBalance) String() string { return proto.CompactTextString(m) }
func (*ReqTokenBalance) ProtoMessage() {} func (*ReqTokenBalance) ProtoMessage() {}
func (*ReqTokenBalance) Descriptor() ([]byte, []int) { func (*ReqTokenBalance) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
return fileDescriptor_3aff0bcd502840ab, []int{11}
}
func (m *ReqTokenBalance) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqTokenBalance.Unmarshal(m, b)
}
func (m *ReqTokenBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqTokenBalance.Marshal(b, m, deterministic)
}
func (m *ReqTokenBalance) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqTokenBalance.Merge(m, src)
}
func (m *ReqTokenBalance) XXX_Size() int {
return xxx_messageInfo_ReqTokenBalance.Size(m)
}
func (m *ReqTokenBalance) XXX_DiscardUnknown() {
xxx_messageInfo_ReqTokenBalance.DiscardUnknown(m)
}
var xxx_messageInfo_ReqTokenBalance proto.InternalMessageInfo
func (m *ReqTokenBalance) GetAddresses() []string { func (m *ReqTokenBalance) GetAddresses() []string {
if m != nil { if m != nil {
...@@ -1075,37 +814,14 @@ func (m *ReqTokenBalance) GetExecer() string { ...@@ -1075,37 +814,14 @@ func (m *ReqTokenBalance) GetExecer() string {
} }
type ReqAccountTokenAssets struct { type ReqAccountTokenAssets struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Address string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
Execer string `protobuf:"bytes,2,opt,name=execer,proto3" json:"execer,omitempty"` Execer string `protobuf:"bytes,2,opt,name=execer" json:"execer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqAccountTokenAssets) Reset() { *m = ReqAccountTokenAssets{} } func (m *ReqAccountTokenAssets) Reset() { *m = ReqAccountTokenAssets{} }
func (m *ReqAccountTokenAssets) String() string { return proto.CompactTextString(m) } func (m *ReqAccountTokenAssets) String() string { return proto.CompactTextString(m) }
func (*ReqAccountTokenAssets) ProtoMessage() {} func (*ReqAccountTokenAssets) ProtoMessage() {}
func (*ReqAccountTokenAssets) Descriptor() ([]byte, []int) { func (*ReqAccountTokenAssets) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
return fileDescriptor_3aff0bcd502840ab, []int{12}
}
func (m *ReqAccountTokenAssets) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqAccountTokenAssets.Unmarshal(m, b)
}
func (m *ReqAccountTokenAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqAccountTokenAssets.Marshal(b, m, deterministic)
}
func (m *ReqAccountTokenAssets) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqAccountTokenAssets.Merge(m, src)
}
func (m *ReqAccountTokenAssets) XXX_Size() int {
return xxx_messageInfo_ReqAccountTokenAssets.Size(m)
}
func (m *ReqAccountTokenAssets) XXX_DiscardUnknown() {
xxx_messageInfo_ReqAccountTokenAssets.DiscardUnknown(m)
}
var xxx_messageInfo_ReqAccountTokenAssets proto.InternalMessageInfo
func (m *ReqAccountTokenAssets) GetAddress() string { func (m *ReqAccountTokenAssets) GetAddress() string {
if m != nil { if m != nil {
...@@ -1122,37 +838,14 @@ func (m *ReqAccountTokenAssets) GetExecer() string { ...@@ -1122,37 +838,14 @@ func (m *ReqAccountTokenAssets) GetExecer() string {
} }
type TokenAsset struct { type TokenAsset struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,1,opt,name=symbol" json:"symbol,omitempty"`
Account *types.Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Account *types3.Account `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TokenAsset) Reset() { *m = TokenAsset{} }
func (m *TokenAsset) String() string { return proto.CompactTextString(m) }
func (*TokenAsset) ProtoMessage() {}
func (*TokenAsset) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{13}
}
func (m *TokenAsset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TokenAsset.Unmarshal(m, b)
}
func (m *TokenAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TokenAsset.Marshal(b, m, deterministic)
}
func (m *TokenAsset) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenAsset.Merge(m, src)
}
func (m *TokenAsset) XXX_Size() int {
return xxx_messageInfo_TokenAsset.Size(m)
}
func (m *TokenAsset) XXX_DiscardUnknown() {
xxx_messageInfo_TokenAsset.DiscardUnknown(m)
} }
var xxx_messageInfo_TokenAsset proto.InternalMessageInfo func (m *TokenAsset) Reset() { *m = TokenAsset{} }
func (m *TokenAsset) String() string { return proto.CompactTextString(m) }
func (*TokenAsset) ProtoMessage() {}
func (*TokenAsset) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *TokenAsset) GetSymbol() string { func (m *TokenAsset) GetSymbol() string {
if m != nil { if m != nil {
...@@ -1161,7 +854,7 @@ func (m *TokenAsset) GetSymbol() string { ...@@ -1161,7 +854,7 @@ func (m *TokenAsset) GetSymbol() string {
return "" return ""
} }
func (m *TokenAsset) GetAccount() *types.Account { func (m *TokenAsset) GetAccount() *types3.Account {
if m != nil { if m != nil {
return m.Account return m.Account
} }
...@@ -1169,36 +862,13 @@ func (m *TokenAsset) GetAccount() *types.Account { ...@@ -1169,36 +862,13 @@ func (m *TokenAsset) GetAccount() *types.Account {
} }
type ReplyAccountTokenAssets struct { type ReplyAccountTokenAssets struct {
TokenAssets []*TokenAsset `protobuf:"bytes,1,rep,name=tokenAssets,proto3" json:"tokenAssets,omitempty"` TokenAssets []*TokenAsset `protobuf:"bytes,1,rep,name=tokenAssets" json:"tokenAssets,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReplyAccountTokenAssets) Reset() { *m = ReplyAccountTokenAssets{} } func (m *ReplyAccountTokenAssets) Reset() { *m = ReplyAccountTokenAssets{} }
func (m *ReplyAccountTokenAssets) String() string { return proto.CompactTextString(m) } func (m *ReplyAccountTokenAssets) String() string { return proto.CompactTextString(m) }
func (*ReplyAccountTokenAssets) ProtoMessage() {} func (*ReplyAccountTokenAssets) ProtoMessage() {}
func (*ReplyAccountTokenAssets) Descriptor() ([]byte, []int) { func (*ReplyAccountTokenAssets) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
return fileDescriptor_3aff0bcd502840ab, []int{14}
}
func (m *ReplyAccountTokenAssets) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReplyAccountTokenAssets.Unmarshal(m, b)
}
func (m *ReplyAccountTokenAssets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReplyAccountTokenAssets.Marshal(b, m, deterministic)
}
func (m *ReplyAccountTokenAssets) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReplyAccountTokenAssets.Merge(m, src)
}
func (m *ReplyAccountTokenAssets) XXX_Size() int {
return xxx_messageInfo_ReplyAccountTokenAssets.Size(m)
}
func (m *ReplyAccountTokenAssets) XXX_DiscardUnknown() {
xxx_messageInfo_ReplyAccountTokenAssets.DiscardUnknown(m)
}
var xxx_messageInfo_ReplyAccountTokenAssets proto.InternalMessageInfo
func (m *ReplyAccountTokenAssets) GetTokenAssets() []*TokenAsset { func (m *ReplyAccountTokenAssets) GetTokenAssets() []*TokenAsset {
if m != nil { if m != nil {
...@@ -1208,41 +878,18 @@ func (m *ReplyAccountTokenAssets) GetTokenAssets() []*TokenAsset { ...@@ -1208,41 +878,18 @@ func (m *ReplyAccountTokenAssets) GetTokenAssets() []*TokenAsset {
} }
type ReqAddrTokens struct { type ReqAddrTokens struct {
Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,1,opt,name=addr" json:"addr,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
Token []string `protobuf:"bytes,3,rep,name=token,proto3" json:"token,omitempty"` Token []string `protobuf:"bytes,3,rep,name=token" json:"token,omitempty"`
Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction" json:"direction,omitempty"`
Count int32 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` Count int32 `protobuf:"varint,5,opt,name=count" json:"count,omitempty"`
FromKey string `protobuf:"bytes,6,opt,name=fromKey,proto3" json:"fromKey,omitempty"` FromKey string `protobuf:"bytes,6,opt,name=fromKey" json:"fromKey,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqAddrTokens) Reset() { *m = ReqAddrTokens{} } func (m *ReqAddrTokens) Reset() { *m = ReqAddrTokens{} }
func (m *ReqAddrTokens) String() string { return proto.CompactTextString(m) } func (m *ReqAddrTokens) String() string { return proto.CompactTextString(m) }
func (*ReqAddrTokens) ProtoMessage() {} func (*ReqAddrTokens) ProtoMessage() {}
func (*ReqAddrTokens) Descriptor() ([]byte, []int) { func (*ReqAddrTokens) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
return fileDescriptor_3aff0bcd502840ab, []int{15}
}
func (m *ReqAddrTokens) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqAddrTokens.Unmarshal(m, b)
}
func (m *ReqAddrTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqAddrTokens.Marshal(b, m, deterministic)
}
func (m *ReqAddrTokens) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqAddrTokens.Merge(m, src)
}
func (m *ReqAddrTokens) XXX_Size() int {
return xxx_messageInfo_ReqAddrTokens.Size(m)
}
func (m *ReqAddrTokens) XXX_DiscardUnknown() {
xxx_messageInfo_ReqAddrTokens.DiscardUnknown(m)
}
var xxx_messageInfo_ReqAddrTokens proto.InternalMessageInfo
func (m *ReqAddrTokens) GetAddr() string { func (m *ReqAddrTokens) GetAddr() string {
if m != nil { if m != nil {
...@@ -1287,43 +934,20 @@ func (m *ReqAddrTokens) GetFromKey() string { ...@@ -1287,43 +934,20 @@ func (m *ReqAddrTokens) GetFromKey() string {
} }
type ReqTokenTx struct { type ReqTokenTx struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Symbol string `protobuf:"bytes,1,opt,name=symbol" json:"symbol,omitempty"`
//表示取所有/from/to/其他的hash列表 // 表示取所有/from/to/其他的hash列表
Flag int32 `protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"` Flag int32 `protobuf:"varint,2,opt,name=flag" json:"flag,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"`
Direction int32 `protobuf:"varint,4,opt,name=direction,proto3" json:"direction,omitempty"` Direction int32 `protobuf:"varint,4,opt,name=direction" json:"direction,omitempty"`
Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height" json:"height,omitempty"`
Index int64 `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"` Index int64 `protobuf:"varint,6,opt,name=index" json:"index,omitempty"`
Addr string `protobuf:"bytes,7,opt,name=addr,proto3" json:"addr,omitempty"` Addr string `protobuf:"bytes,7,opt,name=addr" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqTokenTx) Reset() { *m = ReqTokenTx{} }
func (m *ReqTokenTx) String() string { return proto.CompactTextString(m) }
func (*ReqTokenTx) ProtoMessage() {}
func (*ReqTokenTx) Descriptor() ([]byte, []int) {
return fileDescriptor_3aff0bcd502840ab, []int{16}
}
func (m *ReqTokenTx) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqTokenTx.Unmarshal(m, b)
}
func (m *ReqTokenTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqTokenTx.Marshal(b, m, deterministic)
}
func (m *ReqTokenTx) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqTokenTx.Merge(m, src)
}
func (m *ReqTokenTx) XXX_Size() int {
return xxx_messageInfo_ReqTokenTx.Size(m)
}
func (m *ReqTokenTx) XXX_DiscardUnknown() {
xxx_messageInfo_ReqTokenTx.DiscardUnknown(m)
} }
var xxx_messageInfo_ReqTokenTx proto.InternalMessageInfo func (m *ReqTokenTx) Reset() { *m = ReqTokenTx{} }
func (m *ReqTokenTx) String() string { return proto.CompactTextString(m) }
func (*ReqTokenTx) ProtoMessage() {}
func (*ReqTokenTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
func (m *ReqTokenTx) GetSymbol() string { func (m *ReqTokenTx) GetSymbol() string {
if m != nil { if m != nil {
...@@ -1394,71 +1018,6 @@ func init() { ...@@ -1394,71 +1018,6 @@ func init() {
proto.RegisterType((*ReqTokenTx)(nil), "types.ReqTokenTx") proto.RegisterType((*ReqTokenTx)(nil), "types.ReqTokenTx")
} }
func init() { proto.RegisterFile("token.proto", fileDescriptor_3aff0bcd502840ab) }
var fileDescriptor_3aff0bcd502840ab = []byte{
// 939 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0xdd, 0x6a, 0xe3, 0x46,
0x14, 0xb6, 0x2c, 0xff, 0xe9, 0x38, 0x71, 0xd6, 0xd3, 0x5d, 0x57, 0xa4, 0x4b, 0x09, 0xa2, 0x17,
0x29, 0x94, 0x10, 0x12, 0x0a, 0xbd, 0x28, 0x14, 0x6f, 0xc9, 0xae, 0xfb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, 0x3e, 0xea, 0xe9,
0xd6, 0x91, 0x37, 0xbd, 0x82, 0xdf, 0x1d, 0x38, 0x54, 0xb5, 0x26, 0x49, 0xd5, 0x19, 0x06, 0x1d,
0x55, 0x54, 0xb5, 0x9f, 0xd4, 0xf7, 0x93, 0x83, 0x58, 0x4f, 0x82, 0x9e, 0x43, 0x33, 0x09, 0xaf,
0xc1, 0x4b, 0x52, 0x81, 0x7a, 0x65, 0x75, 0xf4, 0xad, 0xab, 0x15, 0x2a, 0x46, 0x57, 0xda, 0x25,
0x8b, 0x16, 0x14, 0xb3, 0xd7, 0xa2, 0x98, 0xff, 0x80, 0x1b, 0xb3, 0x9b, 0x2a, 0x31, 0xf8, 0xd3,
0x01, 0xa8, 0x1a, 0x1f, 0xae, 0x9f, 0xa4, 0x90, 0x41, 0xe7, 0x3a, 0x8b, 0x6e, 0x4c, 0x82, 0xf4,
0xbd, 0x3d, 0xca, 0x6d, 0x1e, 0xf5, 0xef, 0xe9, 0x4d, 0xa0, 0x77, 0xab, 0x6f, 0xb7, 0xde, 0x9c,
0x46, 0x52, 0x58, 0x69, 0x9e, 0xe0, 0x9a, 0xd2, 0x73, 0xb9, 0x16, 0x6a, 0xb2, 0xfa, 0x5b, 0xb2,
0x2e, 0xae, 0x0c, 0x29, 0xec, 0x6b, 0x38, 0x7a, 0x87, 0xd2, 0x9a, 0xd8, 0x89, 0x69, 0xc7, 0xa3,
0x49, 0x3e, 0x3e, 0xb2, 0xfb, 0x5d, 0x06, 0xad, 0x0f, 0x3d, 0xfa, 0xdb, 0xbc, 0xfc, 0x27, 0x00,
0x00, 0xff, 0xff, 0x7f, 0xe4, 0x09, 0x63, 0xa5, 0x0a, 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 _ context.Context var _ context.Context
var _ grpc.ClientConn var _ grpc.ClientConn
...@@ -1467,13 +1026,12 @@ var _ grpc.ClientConn ...@@ -1467,13 +1026,12 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against. // is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4 const _ = grpc.SupportPackageIsVersion4
// TokenClient is the client API for Token service. // Client API for Token service
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type TokenClient interface { type TokenClient interface {
// token 对外提供服务的接口 // token 对外提供服务的接口
//区块链接口 // 区块链接口
GetTokenBalance(ctx context.Context, in *ReqTokenBalance, opts ...grpc.CallOption) (*types.Accounts, error) GetTokenBalance(ctx context.Context, in *ReqTokenBalance, opts ...grpc.CallOption) (*types3.Accounts, error)
} }
type tokenClient struct { type tokenClient struct {
...@@ -1484,20 +1042,21 @@ func NewTokenClient(cc *grpc.ClientConn) TokenClient { ...@@ -1484,20 +1042,21 @@ func NewTokenClient(cc *grpc.ClientConn) TokenClient {
return &tokenClient{cc} return &tokenClient{cc}
} }
func (c *tokenClient) GetTokenBalance(ctx context.Context, in *ReqTokenBalance, opts ...grpc.CallOption) (*types.Accounts, error) { func (c *tokenClient) GetTokenBalance(ctx context.Context, in *ReqTokenBalance, opts ...grpc.CallOption) (*types3.Accounts, error) {
out := new(types.Accounts) out := new(types3.Accounts)
err := c.cc.Invoke(ctx, "/types.token/GetTokenBalance", in, out, opts...) err := grpc.Invoke(ctx, "/types.token/GetTokenBalance", in, out, c.cc, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return out, nil return out, nil
} }
// TokenServer is the server API for Token service. // Server API for Token service
type TokenServer interface { type TokenServer interface {
// token 对外提供服务的接口 // token 对外提供服务的接口
//区块链接口 // 区块链接口
GetTokenBalance(context.Context, *ReqTokenBalance) (*types.Accounts, error) GetTokenBalance(context.Context, *ReqTokenBalance) (*types3.Accounts, error)
} }
func RegisterTokenServer(s *grpc.Server, srv TokenServer) { func RegisterTokenServer(s *grpc.Server, srv TokenServer) {
...@@ -1534,3 +1093,68 @@ var _Token_serviceDesc = grpc.ServiceDesc{ ...@@ -1534,3 +1093,68 @@ var _Token_serviceDesc = grpc.ServiceDesc{
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "token.proto", Metadata: "token.proto",
} }
func init() { proto.RegisterFile("token.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 939 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0xdd, 0x6a, 0xe3, 0x46,
0x14, 0xb6, 0x2c, 0xff, 0xe9, 0x38, 0x71, 0xd6, 0xd3, 0x5d, 0x57, 0xa4, 0x4b, 0x09, 0xa2, 0x17,
0x29, 0x94, 0x10, 0x12, 0x0a, 0xbd, 0x28, 0x14, 0x6f, 0xc9, 0xae, 0xfb, 0xc3, 0xb6, 0x4c, 0x05,
0xbd, 0xd6, 0x4a, 0x27, 0x89, 0x88, 0x2c, 0x39, 0xa3, 0xb1, 0x63, 0xbf, 0x44, 0x5f, 0xa1, 0xd0,
0x07, 0xe8, 0x8b, 0xf4, 0x1d, 0xfa, 0x2c, 0x65, 0xce, 0x8c, 0x64, 0x4d, 0xec, 0x14, 0x72, 0x57,
0x7a, 0xa7, 0xf3, 0xf7, 0xcd, 0x39, 0xdf, 0x39, 0x73, 0x46, 0x30, 0x94, 0xc5, 0x1d, 0xe6, 0x67,
0x0b, 0x51, 0xc8, 0x82, 0x75, 0xe5, 0x66, 0x81, 0xe5, 0xf1, 0x58, 0x8a, 0x28, 0x2f, 0xa3, 0x58,
0xa6, 0x85, 0xb1, 0x1c, 0x1f, 0x46, 0x71, 0x5c, 0x2c, 0x73, 0xa9, 0xc5, 0xe0, 0x6f, 0x17, 0x86,
0xa1, 0x0a, 0x9c, 0x92, 0x13, 0xfb, 0x06, 0x46, 0x84, 0xf3, 0xb3, 0xc0, 0x6f, 0x05, 0x46, 0x12,
0x7d, 0xe7, 0xc4, 0x39, 0x1d, 0x5e, 0xbc, 0x3a, 0x23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, 0x6a, 0xb2, 0xfa, 0x5b, 0xb2,
0x2e, 0xae, 0x0c, 0x29, 0xec, 0x6b, 0x38, 0x7a, 0x87, 0xd2, 0x9a, 0xd8, 0x89, 0x69, 0xc7, 0xa3,
0x49, 0x3e, 0x3e, 0xb2, 0xfb, 0x5d, 0x06, 0xad, 0x0f, 0x3d, 0xfa, 0xdb, 0xbc, 0xfc, 0x27, 0x00,
0x00, 0xff, 0xff, 0x7f, 0xe4, 0x09, 0x63, 0xa5, 0x0a, 0x00, 0x00,
}
This source diff could not be displayed because it is too large. You can view the blob instead.
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: tendermint.proto // source: tendermint.proto
/*
Package types is a generated protocol buffer package.
It is generated from these files:
tendermint.proto
valnode.proto
It has these top-level messages:
BlockID
TendermintBitArray
Vote
TendermintCommit
TendermintBlockInfo
BlockSize
TxSize
BlockGossip
EvidenceParams
ConsensusParams
Validator
ValidatorSet
State
DuplicateVoteEvidence
EvidenceEnvelope
EvidenceData
TendermintBlockHeader
TendermintBlock
Proposal
NewRoundStepMsg
CommitStepMsg
ProposalPOLMsg
HasVoteMsg
VoteSetMaj23Msg
VoteSetBitsMsg
Heartbeat
ValNode
ValNodes
ValNodeAction
ReqNodeInfo
ReqBlockInfo
*/
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
types "github.com/33cn/chain33/types" import math "math"
proto "github.com/golang/protobuf/proto" import types2 "github.com/33cn/chain33/types"
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 _ = proto.Marshal var _ = proto.Marshal
...@@ -22,36 +60,13 @@ var _ = math.Inf ...@@ -22,36 +60,13 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type BlockID struct { type BlockID struct {
Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"` Hash []byte `protobuf:"bytes,1,opt,name=Hash,proto3" json:"Hash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlockID) Reset() { *m = BlockID{} } func (m *BlockID) Reset() { *m = BlockID{} }
func (m *BlockID) String() string { return proto.CompactTextString(m) } func (m *BlockID) String() string { return proto.CompactTextString(m) }
func (*BlockID) ProtoMessage() {} func (*BlockID) ProtoMessage() {}
func (*BlockID) Descriptor() ([]byte, []int) { func (*BlockID) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
return fileDescriptor_04f926c8da23c367, []int{0}
}
func (m *BlockID) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockID.Unmarshal(m, b)
}
func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockID.Marshal(b, m, deterministic)
}
func (m *BlockID) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockID.Merge(m, src)
}
func (m *BlockID) XXX_Size() int {
return xxx_messageInfo_BlockID.Size(m)
}
func (m *BlockID) XXX_DiscardUnknown() {
xxx_messageInfo_BlockID.DiscardUnknown(m)
}
var xxx_messageInfo_BlockID proto.InternalMessageInfo
func (m *BlockID) GetHash() []byte { func (m *BlockID) GetHash() []byte {
if m != nil { if m != nil {
...@@ -61,37 +76,14 @@ func (m *BlockID) GetHash() []byte { ...@@ -61,37 +76,14 @@ func (m *BlockID) GetHash() []byte {
} }
type TendermintBitArray struct { type TendermintBitArray struct {
Bits int32 `protobuf:"varint,1,opt,name=Bits,proto3" json:"Bits,omitempty"` Bits int32 `protobuf:"varint,1,opt,name=Bits" json:"Bits,omitempty"`
Elems []uint64 `protobuf:"varint,2,rep,packed,name=Elems,proto3" json:"Elems,omitempty"` Elems []uint64 `protobuf:"varint,2,rep,packed,name=Elems" json:"Elems,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TendermintBitArray) Reset() { *m = TendermintBitArray{} } func (m *TendermintBitArray) Reset() { *m = TendermintBitArray{} }
func (m *TendermintBitArray) String() string { return proto.CompactTextString(m) } func (m *TendermintBitArray) String() string { return proto.CompactTextString(m) }
func (*TendermintBitArray) ProtoMessage() {} func (*TendermintBitArray) ProtoMessage() {}
func (*TendermintBitArray) Descriptor() ([]byte, []int) { func (*TendermintBitArray) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
return fileDescriptor_04f926c8da23c367, []int{1}
}
func (m *TendermintBitArray) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TendermintBitArray.Unmarshal(m, b)
}
func (m *TendermintBitArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TendermintBitArray.Marshal(b, m, deterministic)
}
func (m *TendermintBitArray) XXX_Merge(src proto.Message) {
xxx_messageInfo_TendermintBitArray.Merge(m, src)
}
func (m *TendermintBitArray) XXX_Size() int {
return xxx_messageInfo_TendermintBitArray.Size(m)
}
func (m *TendermintBitArray) XXX_DiscardUnknown() {
xxx_messageInfo_TendermintBitArray.DiscardUnknown(m)
}
var xxx_messageInfo_TendermintBitArray proto.InternalMessageInfo
func (m *TendermintBitArray) GetBits() int32 { func (m *TendermintBitArray) GetBits() int32 {
if m != nil { if m != nil {
...@@ -108,43 +100,20 @@ func (m *TendermintBitArray) GetElems() []uint64 { ...@@ -108,43 +100,20 @@ func (m *TendermintBitArray) GetElems() []uint64 {
} }
type Vote struct { type Vote struct {
ValidatorAddress []byte `protobuf:"bytes,1,opt,name=ValidatorAddress,proto3" json:"ValidatorAddress,omitempty"` ValidatorAddress []byte `protobuf:"bytes,1,opt,name=ValidatorAddress,proto3" json:"ValidatorAddress,omitempty"`
ValidatorIndex int32 `protobuf:"varint,2,opt,name=ValidatorIndex,proto3" json:"ValidatorIndex,omitempty"` ValidatorIndex int32 `protobuf:"varint,2,opt,name=ValidatorIndex" json:"ValidatorIndex,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=Height,proto3" json:"Height,omitempty"` Height int64 `protobuf:"varint,3,opt,name=Height" json:"Height,omitempty"`
Round int32 `protobuf:"varint,4,opt,name=Round,proto3" json:"Round,omitempty"` Round int32 `protobuf:"varint,4,opt,name=Round" json:"Round,omitempty"`
Timestamp int64 `protobuf:"varint,5,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=Timestamp" json:"Timestamp,omitempty"`
Type uint32 `protobuf:"varint,6,opt,name=Type,proto3" json:"Type,omitempty"` Type uint32 `protobuf:"varint,6,opt,name=Type" json:"Type,omitempty"`
BlockID *BlockID `protobuf:"bytes,7,opt,name=BlockID,proto3" json:"BlockID,omitempty"` BlockID *BlockID `protobuf:"bytes,7,opt,name=BlockID" json:"BlockID,omitempty"`
Signature []byte `protobuf:"bytes,8,opt,name=Signature,proto3" json:"Signature,omitempty"` Signature []byte `protobuf:"bytes,8,opt,name=Signature,proto3" json:"Signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Vote) Reset() { *m = Vote{} } func (m *Vote) Reset() { *m = Vote{} }
func (m *Vote) String() string { return proto.CompactTextString(m) } func (m *Vote) String() string { return proto.CompactTextString(m) }
func (*Vote) ProtoMessage() {} func (*Vote) ProtoMessage() {}
func (*Vote) Descriptor() ([]byte, []int) { func (*Vote) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
return fileDescriptor_04f926c8da23c367, []int{2}
}
func (m *Vote) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Vote.Unmarshal(m, b)
}
func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Vote.Marshal(b, m, deterministic)
}
func (m *Vote) XXX_Merge(src proto.Message) {
xxx_messageInfo_Vote.Merge(m, src)
}
func (m *Vote) XXX_Size() int {
return xxx_messageInfo_Vote.Size(m)
}
func (m *Vote) XXX_DiscardUnknown() {
xxx_messageInfo_Vote.DiscardUnknown(m)
}
var xxx_messageInfo_Vote proto.InternalMessageInfo
func (m *Vote) GetValidatorAddress() []byte { func (m *Vote) GetValidatorAddress() []byte {
if m != nil { if m != nil {
...@@ -203,37 +172,14 @@ func (m *Vote) GetSignature() []byte { ...@@ -203,37 +172,14 @@ func (m *Vote) GetSignature() []byte {
} }
type TendermintCommit struct { type TendermintCommit struct {
BlockID *BlockID `protobuf:"bytes,1,opt,name=BlockID,proto3" json:"BlockID,omitempty"` BlockID *BlockID `protobuf:"bytes,1,opt,name=BlockID" json:"BlockID,omitempty"`
Precommits []*Vote `protobuf:"bytes,2,rep,name=Precommits,proto3" json:"Precommits,omitempty"` Precommits []*Vote `protobuf:"bytes,2,rep,name=Precommits" json:"Precommits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TendermintCommit) Reset() { *m = TendermintCommit{} } func (m *TendermintCommit) Reset() { *m = TendermintCommit{} }
func (m *TendermintCommit) String() string { return proto.CompactTextString(m) } func (m *TendermintCommit) String() string { return proto.CompactTextString(m) }
func (*TendermintCommit) ProtoMessage() {} func (*TendermintCommit) ProtoMessage() {}
func (*TendermintCommit) Descriptor() ([]byte, []int) { func (*TendermintCommit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
return fileDescriptor_04f926c8da23c367, []int{3}
}
func (m *TendermintCommit) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TendermintCommit.Unmarshal(m, b)
}
func (m *TendermintCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TendermintCommit.Marshal(b, m, deterministic)
}
func (m *TendermintCommit) XXX_Merge(src proto.Message) {
xxx_messageInfo_TendermintCommit.Merge(m, src)
}
func (m *TendermintCommit) XXX_Size() int {
return xxx_messageInfo_TendermintCommit.Size(m)
}
func (m *TendermintCommit) XXX_DiscardUnknown() {
xxx_messageInfo_TendermintCommit.DiscardUnknown(m)
}
var xxx_messageInfo_TendermintCommit proto.InternalMessageInfo
func (m *TendermintCommit) GetBlockID() *BlockID { func (m *TendermintCommit) GetBlockID() *BlockID {
if m != nil { if m != nil {
...@@ -250,40 +196,17 @@ func (m *TendermintCommit) GetPrecommits() []*Vote { ...@@ -250,40 +196,17 @@ func (m *TendermintCommit) GetPrecommits() []*Vote {
} }
type TendermintBlockInfo struct { type TendermintBlockInfo struct {
SeenCommit *TendermintCommit `protobuf:"bytes,1,opt,name=SeenCommit,proto3" json:"SeenCommit,omitempty"` SeenCommit *TendermintCommit `protobuf:"bytes,1,opt,name=SeenCommit" json:"SeenCommit,omitempty"`
LastCommit *TendermintCommit `protobuf:"bytes,2,opt,name=LastCommit,proto3" json:"LastCommit,omitempty"` LastCommit *TendermintCommit `protobuf:"bytes,2,opt,name=LastCommit" json:"LastCommit,omitempty"`
State *State `protobuf:"bytes,3,opt,name=State,proto3" json:"State,omitempty"` State *State `protobuf:"bytes,3,opt,name=State" json:"State,omitempty"`
Proposal *Proposal `protobuf:"bytes,4,opt,name=Proposal,proto3" json:"Proposal,omitempty"` Proposal *Proposal `protobuf:"bytes,4,opt,name=Proposal" json:"Proposal,omitempty"`
Block *TendermintBlock `protobuf:"bytes,5,opt,name=block,proto3" json:"block,omitempty"` Block *TendermintBlock `protobuf:"bytes,5,opt,name=block" json:"block,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TendermintBlockInfo) Reset() { *m = TendermintBlockInfo{} }
func (m *TendermintBlockInfo) String() string { return proto.CompactTextString(m) }
func (*TendermintBlockInfo) ProtoMessage() {}
func (*TendermintBlockInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{4}
}
func (m *TendermintBlockInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TendermintBlockInfo.Unmarshal(m, b)
}
func (m *TendermintBlockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TendermintBlockInfo.Marshal(b, m, deterministic)
}
func (m *TendermintBlockInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_TendermintBlockInfo.Merge(m, src)
}
func (m *TendermintBlockInfo) XXX_Size() int {
return xxx_messageInfo_TendermintBlockInfo.Size(m)
}
func (m *TendermintBlockInfo) XXX_DiscardUnknown() {
xxx_messageInfo_TendermintBlockInfo.DiscardUnknown(m)
} }
var xxx_messageInfo_TendermintBlockInfo proto.InternalMessageInfo func (m *TendermintBlockInfo) Reset() { *m = TendermintBlockInfo{} }
func (m *TendermintBlockInfo) String() string { return proto.CompactTextString(m) }
func (*TendermintBlockInfo) ProtoMessage() {}
func (*TendermintBlockInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *TendermintBlockInfo) GetSeenCommit() *TendermintCommit { func (m *TendermintBlockInfo) GetSeenCommit() *TendermintCommit {
if m != nil { if m != nil {
...@@ -321,38 +244,15 @@ func (m *TendermintBlockInfo) GetBlock() *TendermintBlock { ...@@ -321,38 +244,15 @@ func (m *TendermintBlockInfo) GetBlock() *TendermintBlock {
} }
type BlockSize struct { type BlockSize struct {
MaxBytes int32 `protobuf:"varint,1,opt,name=MaxBytes,proto3" json:"MaxBytes,omitempty"` MaxBytes int32 `protobuf:"varint,1,opt,name=MaxBytes" json:"MaxBytes,omitempty"`
MaxTxs int32 `protobuf:"varint,2,opt,name=MaxTxs,proto3" json:"MaxTxs,omitempty"` MaxTxs int32 `protobuf:"varint,2,opt,name=MaxTxs" json:"MaxTxs,omitempty"`
MaxGas int64 `protobuf:"varint,3,opt,name=MaxGas,proto3" json:"MaxGas,omitempty"` MaxGas int64 `protobuf:"varint,3,opt,name=MaxGas" json:"MaxGas,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlockSize) Reset() { *m = BlockSize{} } func (m *BlockSize) Reset() { *m = BlockSize{} }
func (m *BlockSize) String() string { return proto.CompactTextString(m) } func (m *BlockSize) String() string { return proto.CompactTextString(m) }
func (*BlockSize) ProtoMessage() {} func (*BlockSize) ProtoMessage() {}
func (*BlockSize) Descriptor() ([]byte, []int) { func (*BlockSize) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
return fileDescriptor_04f926c8da23c367, []int{5}
}
func (m *BlockSize) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockSize.Unmarshal(m, b)
}
func (m *BlockSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockSize.Marshal(b, m, deterministic)
}
func (m *BlockSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockSize.Merge(m, src)
}
func (m *BlockSize) XXX_Size() int {
return xxx_messageInfo_BlockSize.Size(m)
}
func (m *BlockSize) XXX_DiscardUnknown() {
xxx_messageInfo_BlockSize.DiscardUnknown(m)
}
var xxx_messageInfo_BlockSize proto.InternalMessageInfo
func (m *BlockSize) GetMaxBytes() int32 { func (m *BlockSize) GetMaxBytes() int32 {
if m != nil { if m != nil {
...@@ -376,37 +276,14 @@ func (m *BlockSize) GetMaxGas() int64 { ...@@ -376,37 +276,14 @@ func (m *BlockSize) GetMaxGas() int64 {
} }
type TxSize struct { type TxSize struct {
MaxBytes int32 `protobuf:"varint,1,opt,name=MaxBytes,proto3" json:"MaxBytes,omitempty"` MaxBytes int32 `protobuf:"varint,1,opt,name=MaxBytes" json:"MaxBytes,omitempty"`
MaxGas int64 `protobuf:"varint,2,opt,name=MaxGas,proto3" json:"MaxGas,omitempty"` MaxGas int64 `protobuf:"varint,2,opt,name=MaxGas" json:"MaxGas,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *TxSize) Reset() { *m = TxSize{} } func (m *TxSize) Reset() { *m = TxSize{} }
func (m *TxSize) String() string { return proto.CompactTextString(m) } func (m *TxSize) String() string { return proto.CompactTextString(m) }
func (*TxSize) ProtoMessage() {} func (*TxSize) ProtoMessage() {}
func (*TxSize) Descriptor() ([]byte, []int) { func (*TxSize) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
return fileDescriptor_04f926c8da23c367, []int{6}
}
func (m *TxSize) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TxSize.Unmarshal(m, b)
}
func (m *TxSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TxSize.Marshal(b, m, deterministic)
}
func (m *TxSize) XXX_Merge(src proto.Message) {
xxx_messageInfo_TxSize.Merge(m, src)
}
func (m *TxSize) XXX_Size() int {
return xxx_messageInfo_TxSize.Size(m)
}
func (m *TxSize) XXX_DiscardUnknown() {
xxx_messageInfo_TxSize.DiscardUnknown(m)
}
var xxx_messageInfo_TxSize proto.InternalMessageInfo
func (m *TxSize) GetMaxBytes() int32 { func (m *TxSize) GetMaxBytes() int32 {
if m != nil { if m != nil {
...@@ -423,36 +300,13 @@ func (m *TxSize) GetMaxGas() int64 { ...@@ -423,36 +300,13 @@ func (m *TxSize) GetMaxGas() int64 {
} }
type BlockGossip struct { type BlockGossip struct {
BlockPartSizeBytes int32 `protobuf:"varint,1,opt,name=BlockPartSizeBytes,proto3" json:"BlockPartSizeBytes,omitempty"` BlockPartSizeBytes int32 `protobuf:"varint,1,opt,name=BlockPartSizeBytes" json:"BlockPartSizeBytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *BlockGossip) Reset() { *m = BlockGossip{} } func (m *BlockGossip) Reset() { *m = BlockGossip{} }
func (m *BlockGossip) String() string { return proto.CompactTextString(m) } func (m *BlockGossip) String() string { return proto.CompactTextString(m) }
func (*BlockGossip) ProtoMessage() {} func (*BlockGossip) ProtoMessage() {}
func (*BlockGossip) Descriptor() ([]byte, []int) { func (*BlockGossip) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
return fileDescriptor_04f926c8da23c367, []int{7}
}
func (m *BlockGossip) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlockGossip.Unmarshal(m, b)
}
func (m *BlockGossip) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlockGossip.Marshal(b, m, deterministic)
}
func (m *BlockGossip) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlockGossip.Merge(m, src)
}
func (m *BlockGossip) XXX_Size() int {
return xxx_messageInfo_BlockGossip.Size(m)
}
func (m *BlockGossip) XXX_DiscardUnknown() {
xxx_messageInfo_BlockGossip.DiscardUnknown(m)
}
var xxx_messageInfo_BlockGossip proto.InternalMessageInfo
func (m *BlockGossip) GetBlockPartSizeBytes() int32 { func (m *BlockGossip) GetBlockPartSizeBytes() int32 {
if m != nil { if m != nil {
...@@ -462,36 +316,13 @@ func (m *BlockGossip) GetBlockPartSizeBytes() int32 { ...@@ -462,36 +316,13 @@ func (m *BlockGossip) GetBlockPartSizeBytes() int32 {
} }
type EvidenceParams struct { type EvidenceParams struct {
MaxAge int64 `protobuf:"varint,1,opt,name=MaxAge,proto3" json:"MaxAge,omitempty"` MaxAge int64 `protobuf:"varint,1,opt,name=MaxAge" json:"MaxAge,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EvidenceParams) Reset() { *m = EvidenceParams{} }
func (m *EvidenceParams) String() string { return proto.CompactTextString(m) }
func (*EvidenceParams) ProtoMessage() {}
func (*EvidenceParams) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{8}
} }
func (m *EvidenceParams) XXX_Unmarshal(b []byte) error { func (m *EvidenceParams) Reset() { *m = EvidenceParams{} }
return xxx_messageInfo_EvidenceParams.Unmarshal(m, b) func (m *EvidenceParams) String() string { return proto.CompactTextString(m) }
} func (*EvidenceParams) ProtoMessage() {}
func (m *EvidenceParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*EvidenceParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
return xxx_messageInfo_EvidenceParams.Marshal(b, m, deterministic)
}
func (m *EvidenceParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_EvidenceParams.Merge(m, src)
}
func (m *EvidenceParams) XXX_Size() int {
return xxx_messageInfo_EvidenceParams.Size(m)
}
func (m *EvidenceParams) XXX_DiscardUnknown() {
xxx_messageInfo_EvidenceParams.DiscardUnknown(m)
}
var xxx_messageInfo_EvidenceParams proto.InternalMessageInfo
func (m *EvidenceParams) GetMaxAge() int64 { func (m *EvidenceParams) GetMaxAge() int64 {
if m != nil { if m != nil {
...@@ -501,39 +332,16 @@ func (m *EvidenceParams) GetMaxAge() int64 { ...@@ -501,39 +332,16 @@ func (m *EvidenceParams) GetMaxAge() int64 {
} }
type ConsensusParams struct { type ConsensusParams struct {
BlockSize *BlockSize `protobuf:"bytes,1,opt,name=BlockSize,proto3" json:"BlockSize,omitempty"` BlockSize *BlockSize `protobuf:"bytes,1,opt,name=BlockSize" json:"BlockSize,omitempty"`
TxSize *TxSize `protobuf:"bytes,2,opt,name=TxSize,proto3" json:"TxSize,omitempty"` TxSize *TxSize `protobuf:"bytes,2,opt,name=TxSize" json:"TxSize,omitempty"`
BlockGossip *BlockGossip `protobuf:"bytes,3,opt,name=BlockGossip,proto3" json:"BlockGossip,omitempty"` BlockGossip *BlockGossip `protobuf:"bytes,3,opt,name=BlockGossip" json:"BlockGossip,omitempty"`
EvidenceParams *EvidenceParams `protobuf:"bytes,4,opt,name=EvidenceParams,proto3" json:"EvidenceParams,omitempty"` EvidenceParams *EvidenceParams `protobuf:"bytes,4,opt,name=EvidenceParams" json:"EvidenceParams,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConsensusParams) Reset() { *m = ConsensusParams{} }
func (m *ConsensusParams) String() string { return proto.CompactTextString(m) }
func (*ConsensusParams) ProtoMessage() {}
func (*ConsensusParams) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{9}
}
func (m *ConsensusParams) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConsensusParams.Unmarshal(m, b)
}
func (m *ConsensusParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConsensusParams.Marshal(b, m, deterministic)
}
func (m *ConsensusParams) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConsensusParams.Merge(m, src)
}
func (m *ConsensusParams) XXX_Size() int {
return xxx_messageInfo_ConsensusParams.Size(m)
}
func (m *ConsensusParams) XXX_DiscardUnknown() {
xxx_messageInfo_ConsensusParams.DiscardUnknown(m)
} }
var xxx_messageInfo_ConsensusParams proto.InternalMessageInfo func (m *ConsensusParams) Reset() { *m = ConsensusParams{} }
func (m *ConsensusParams) String() string { return proto.CompactTextString(m) }
func (*ConsensusParams) ProtoMessage() {}
func (*ConsensusParams) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
func (m *ConsensusParams) GetBlockSize() *BlockSize { func (m *ConsensusParams) GetBlockSize() *BlockSize {
if m != nil { if m != nil {
...@@ -564,39 +372,16 @@ func (m *ConsensusParams) GetEvidenceParams() *EvidenceParams { ...@@ -564,39 +372,16 @@ func (m *ConsensusParams) GetEvidenceParams() *EvidenceParams {
} }
type Validator struct { type Validator struct {
Address []byte `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"` Address []byte `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,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"`
VotingPower int64 `protobuf:"varint,3,opt,name=VotingPower,proto3" json:"VotingPower,omitempty"` VotingPower int64 `protobuf:"varint,3,opt,name=VotingPower" json:"VotingPower,omitempty"`
Accum int64 `protobuf:"varint,4,opt,name=Accum,proto3" json:"Accum,omitempty"` Accum int64 `protobuf:"varint,4,opt,name=Accum" json:"Accum,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Validator) Reset() { *m = Validator{} } func (m *Validator) Reset() { *m = Validator{} }
func (m *Validator) String() string { return proto.CompactTextString(m) } func (m *Validator) String() string { return proto.CompactTextString(m) }
func (*Validator) ProtoMessage() {} func (*Validator) ProtoMessage() {}
func (*Validator) Descriptor() ([]byte, []int) { func (*Validator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
return fileDescriptor_04f926c8da23c367, []int{10}
}
func (m *Validator) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Validator.Unmarshal(m, b)
}
func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Validator.Marshal(b, m, deterministic)
}
func (m *Validator) XXX_Merge(src proto.Message) {
xxx_messageInfo_Validator.Merge(m, src)
}
func (m *Validator) XXX_Size() int {
return xxx_messageInfo_Validator.Size(m)
}
func (m *Validator) XXX_DiscardUnknown() {
xxx_messageInfo_Validator.DiscardUnknown(m)
}
var xxx_messageInfo_Validator proto.InternalMessageInfo
func (m *Validator) GetAddress() []byte { func (m *Validator) GetAddress() []byte {
if m != nil { if m != nil {
...@@ -627,37 +412,14 @@ func (m *Validator) GetAccum() int64 { ...@@ -627,37 +412,14 @@ func (m *Validator) GetAccum() int64 {
} }
type ValidatorSet struct { type ValidatorSet struct {
Validators []*Validator `protobuf:"bytes,1,rep,name=Validators,proto3" json:"Validators,omitempty"` Validators []*Validator `protobuf:"bytes,1,rep,name=Validators" json:"Validators,omitempty"`
Proposer *Validator `protobuf:"bytes,2,opt,name=Proposer,proto3" json:"Proposer,omitempty"` Proposer *Validator `protobuf:"bytes,2,opt,name=Proposer" json:"Proposer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ValidatorSet) Reset() { *m = ValidatorSet{} }
func (m *ValidatorSet) String() string { return proto.CompactTextString(m) }
func (*ValidatorSet) ProtoMessage() {}
func (*ValidatorSet) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{11}
}
func (m *ValidatorSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValidatorSet.Unmarshal(m, b)
}
func (m *ValidatorSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValidatorSet.Marshal(b, m, deterministic)
}
func (m *ValidatorSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValidatorSet.Merge(m, src)
}
func (m *ValidatorSet) XXX_Size() int {
return xxx_messageInfo_ValidatorSet.Size(m)
}
func (m *ValidatorSet) XXX_DiscardUnknown() {
xxx_messageInfo_ValidatorSet.DiscardUnknown(m)
} }
var xxx_messageInfo_ValidatorSet proto.InternalMessageInfo func (m *ValidatorSet) Reset() { *m = ValidatorSet{} }
func (m *ValidatorSet) String() string { return proto.CompactTextString(m) }
func (*ValidatorSet) ProtoMessage() {}
func (*ValidatorSet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
func (m *ValidatorSet) GetValidators() []*Validator { func (m *ValidatorSet) GetValidators() []*Validator {
if m != nil { if m != nil {
...@@ -674,47 +436,24 @@ func (m *ValidatorSet) GetProposer() *Validator { ...@@ -674,47 +436,24 @@ func (m *ValidatorSet) GetProposer() *Validator {
} }
type State struct { type State struct {
ChainID string `protobuf:"bytes,1,opt,name=ChainID,proto3" json:"ChainID,omitempty"` ChainID string `protobuf:"bytes,1,opt,name=ChainID" json:"ChainID,omitempty"`
LastBlockHeight int64 `protobuf:"varint,2,opt,name=LastBlockHeight,proto3" json:"LastBlockHeight,omitempty"` LastBlockHeight int64 `protobuf:"varint,2,opt,name=LastBlockHeight" json:"LastBlockHeight,omitempty"`
LastBlockTotalTx int64 `protobuf:"varint,3,opt,name=LastBlockTotalTx,proto3" json:"LastBlockTotalTx,omitempty"` LastBlockTotalTx int64 `protobuf:"varint,3,opt,name=LastBlockTotalTx" json:"LastBlockTotalTx,omitempty"`
LastBlockID *BlockID `protobuf:"bytes,4,opt,name=LastBlockID,proto3" json:"LastBlockID,omitempty"` LastBlockID *BlockID `protobuf:"bytes,4,opt,name=LastBlockID" json:"LastBlockID,omitempty"`
LastBlockTime int64 `protobuf:"varint,5,opt,name=LastBlockTime,proto3" json:"LastBlockTime,omitempty"` LastBlockTime int64 `protobuf:"varint,5,opt,name=LastBlockTime" json:"LastBlockTime,omitempty"`
Validators *ValidatorSet `protobuf:"bytes,6,opt,name=Validators,proto3" json:"Validators,omitempty"` Validators *ValidatorSet `protobuf:"bytes,6,opt,name=Validators" json:"Validators,omitempty"`
LastValidators *ValidatorSet `protobuf:"bytes,7,opt,name=LastValidators,proto3" json:"LastValidators,omitempty"` LastValidators *ValidatorSet `protobuf:"bytes,7,opt,name=LastValidators" json:"LastValidators,omitempty"`
LastHeightValidatorsChanged int64 `protobuf:"varint,8,opt,name=LastHeightValidatorsChanged,proto3" json:"LastHeightValidatorsChanged,omitempty"` LastHeightValidatorsChanged int64 `protobuf:"varint,8,opt,name=LastHeightValidatorsChanged" json:"LastHeightValidatorsChanged,omitempty"`
ConsensusParams *ConsensusParams `protobuf:"bytes,9,opt,name=ConsensusParams,proto3" json:"ConsensusParams,omitempty"` ConsensusParams *ConsensusParams `protobuf:"bytes,9,opt,name=ConsensusParams" json:"ConsensusParams,omitempty"`
LastHeightConsensusParamsChanged int64 `protobuf:"varint,10,opt,name=LastHeightConsensusParamsChanged,proto3" json:"LastHeightConsensusParamsChanged,omitempty"` LastHeightConsensusParamsChanged int64 `protobuf:"varint,10,opt,name=LastHeightConsensusParamsChanged" json:"LastHeightConsensusParamsChanged,omitempty"`
LastResultsHash []byte `protobuf:"bytes,11,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"` LastResultsHash []byte `protobuf:"bytes,11,opt,name=LastResultsHash,proto3" json:"LastResultsHash,omitempty"`
AppHash []byte `protobuf:"bytes,12,opt,name=AppHash,proto3" json:"AppHash,omitempty"` AppHash []byte `protobuf:"bytes,12,opt,name=AppHash,proto3" json:"AppHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *State) Reset() { *m = State{} } func (m *State) Reset() { *m = State{} }
func (m *State) String() string { return proto.CompactTextString(m) } func (m *State) String() string { return proto.CompactTextString(m) }
func (*State) ProtoMessage() {} func (*State) ProtoMessage() {}
func (*State) Descriptor() ([]byte, []int) { func (*State) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
return fileDescriptor_04f926c8da23c367, []int{12}
}
func (m *State) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_State.Unmarshal(m, b)
}
func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_State.Marshal(b, m, deterministic)
}
func (m *State) XXX_Merge(src proto.Message) {
xxx_messageInfo_State.Merge(m, src)
}
func (m *State) XXX_Size() int {
return xxx_messageInfo_State.Size(m)
}
func (m *State) XXX_DiscardUnknown() {
xxx_messageInfo_State.DiscardUnknown(m)
}
var xxx_messageInfo_State proto.InternalMessageInfo
func (m *State) GetChainID() string { func (m *State) GetChainID() string {
if m != nil { if m != nil {
...@@ -801,38 +540,15 @@ func (m *State) GetAppHash() []byte { ...@@ -801,38 +540,15 @@ func (m *State) GetAppHash() []byte {
} }
type DuplicateVoteEvidence struct { type DuplicateVoteEvidence struct {
PubKey string `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"` PubKey string `protobuf:"bytes,1,opt,name=pubKey" json:"pubKey,omitempty"`
VoteA *Vote `protobuf:"bytes,2,opt,name=voteA,proto3" json:"voteA,omitempty"` VoteA *Vote `protobuf:"bytes,2,opt,name=voteA" json:"voteA,omitempty"`
VoteB *Vote `protobuf:"bytes,3,opt,name=voteB,proto3" json:"voteB,omitempty"` VoteB *Vote `protobuf:"bytes,3,opt,name=voteB" json:"voteB,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DuplicateVoteEvidence) Reset() { *m = DuplicateVoteEvidence{} }
func (m *DuplicateVoteEvidence) String() string { return proto.CompactTextString(m) }
func (*DuplicateVoteEvidence) ProtoMessage() {}
func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{13}
}
func (m *DuplicateVoteEvidence) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DuplicateVoteEvidence.Unmarshal(m, b)
}
func (m *DuplicateVoteEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DuplicateVoteEvidence.Marshal(b, m, deterministic)
}
func (m *DuplicateVoteEvidence) XXX_Merge(src proto.Message) {
xxx_messageInfo_DuplicateVoteEvidence.Merge(m, src)
}
func (m *DuplicateVoteEvidence) XXX_Size() int {
return xxx_messageInfo_DuplicateVoteEvidence.Size(m)
}
func (m *DuplicateVoteEvidence) XXX_DiscardUnknown() {
xxx_messageInfo_DuplicateVoteEvidence.DiscardUnknown(m)
} }
var xxx_messageInfo_DuplicateVoteEvidence proto.InternalMessageInfo func (m *DuplicateVoteEvidence) Reset() { *m = DuplicateVoteEvidence{} }
func (m *DuplicateVoteEvidence) String() string { return proto.CompactTextString(m) }
func (*DuplicateVoteEvidence) ProtoMessage() {}
func (*DuplicateVoteEvidence) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
func (m *DuplicateVoteEvidence) GetPubKey() string { func (m *DuplicateVoteEvidence) GetPubKey() string {
if m != nil { if m != nil {
...@@ -856,37 +572,14 @@ func (m *DuplicateVoteEvidence) GetVoteB() *Vote { ...@@ -856,37 +572,14 @@ func (m *DuplicateVoteEvidence) GetVoteB() *Vote {
} }
type EvidenceEnvelope struct { type EvidenceEnvelope struct {
TypeName string `protobuf:"bytes,1,opt,name=typeName,proto3" json:"typeName,omitempty"` TypeName string `protobuf:"bytes,1,opt,name=typeName" json:"typeName,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *EvidenceEnvelope) Reset() { *m = EvidenceEnvelope{} } func (m *EvidenceEnvelope) Reset() { *m = EvidenceEnvelope{} }
func (m *EvidenceEnvelope) String() string { return proto.CompactTextString(m) } func (m *EvidenceEnvelope) String() string { return proto.CompactTextString(m) }
func (*EvidenceEnvelope) ProtoMessage() {} func (*EvidenceEnvelope) ProtoMessage() {}
func (*EvidenceEnvelope) Descriptor() ([]byte, []int) { func (*EvidenceEnvelope) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
return fileDescriptor_04f926c8da23c367, []int{14}
}
func (m *EvidenceEnvelope) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EvidenceEnvelope.Unmarshal(m, b)
}
func (m *EvidenceEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EvidenceEnvelope.Marshal(b, m, deterministic)
}
func (m *EvidenceEnvelope) XXX_Merge(src proto.Message) {
xxx_messageInfo_EvidenceEnvelope.Merge(m, src)
}
func (m *EvidenceEnvelope) XXX_Size() int {
return xxx_messageInfo_EvidenceEnvelope.Size(m)
}
func (m *EvidenceEnvelope) XXX_DiscardUnknown() {
xxx_messageInfo_EvidenceEnvelope.DiscardUnknown(m)
}
var xxx_messageInfo_EvidenceEnvelope proto.InternalMessageInfo
func (m *EvidenceEnvelope) GetTypeName() string { func (m *EvidenceEnvelope) GetTypeName() string {
if m != nil { if m != nil {
...@@ -903,36 +596,13 @@ func (m *EvidenceEnvelope) GetData() []byte { ...@@ -903,36 +596,13 @@ func (m *EvidenceEnvelope) GetData() []byte {
} }
type EvidenceData struct { type EvidenceData struct {
Evidence []*EvidenceEnvelope `protobuf:"bytes,1,rep,name=evidence,proto3" json:"evidence,omitempty"` Evidence []*EvidenceEnvelope `protobuf:"bytes,1,rep,name=evidence" json:"evidence,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *EvidenceData) Reset() { *m = EvidenceData{} } func (m *EvidenceData) Reset() { *m = EvidenceData{} }
func (m *EvidenceData) String() string { return proto.CompactTextString(m) } func (m *EvidenceData) String() string { return proto.CompactTextString(m) }
func (*EvidenceData) ProtoMessage() {} func (*EvidenceData) ProtoMessage() {}
func (*EvidenceData) Descriptor() ([]byte, []int) { func (*EvidenceData) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
return fileDescriptor_04f926c8da23c367, []int{15}
}
func (m *EvidenceData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EvidenceData.Unmarshal(m, b)
}
func (m *EvidenceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EvidenceData.Marshal(b, m, deterministic)
}
func (m *EvidenceData) XXX_Merge(src proto.Message) {
xxx_messageInfo_EvidenceData.Merge(m, src)
}
func (m *EvidenceData) XXX_Size() int {
return xxx_messageInfo_EvidenceData.Size(m)
}
func (m *EvidenceData) XXX_DiscardUnknown() {
xxx_messageInfo_EvidenceData.DiscardUnknown(m)
}
var xxx_messageInfo_EvidenceData proto.InternalMessageInfo
func (m *EvidenceData) GetEvidence() []*EvidenceEnvelope { func (m *EvidenceData) GetEvidence() []*EvidenceEnvelope {
if m != nil { if m != nil {
...@@ -942,48 +612,25 @@ func (m *EvidenceData) GetEvidence() []*EvidenceEnvelope { ...@@ -942,48 +612,25 @@ func (m *EvidenceData) GetEvidence() []*EvidenceEnvelope {
} }
type TendermintBlockHeader struct { type TendermintBlockHeader struct {
ChainID string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` ChainID string `protobuf:"bytes,1,opt,name=chainID" json:"chainID,omitempty"`
Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height" json:"height,omitempty"`
Round int64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` Round int64 `protobuf:"varint,3,opt,name=round" json:"round,omitempty"`
Time int64 `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"` Time int64 `protobuf:"varint,4,opt,name=time" json:"time,omitempty"`
NumTxs int64 `protobuf:"varint,5,opt,name=numTxs,proto3" json:"numTxs,omitempty"` NumTxs int64 `protobuf:"varint,5,opt,name=numTxs" json:"numTxs,omitempty"`
LastBlockID *BlockID `protobuf:"bytes,6,opt,name=lastBlockID,proto3" json:"lastBlockID,omitempty"` LastBlockID *BlockID `protobuf:"bytes,6,opt,name=lastBlockID" json:"lastBlockID,omitempty"`
TotalTxs int64 `protobuf:"varint,7,opt,name=totalTxs,proto3" json:"totalTxs,omitempty"` TotalTxs int64 `protobuf:"varint,7,opt,name=totalTxs" json:"totalTxs,omitempty"`
LastCommitHash []byte `protobuf:"bytes,8,opt,name=lastCommitHash,proto3" json:"lastCommitHash,omitempty"` LastCommitHash []byte `protobuf:"bytes,8,opt,name=lastCommitHash,proto3" json:"lastCommitHash,omitempty"`
ValidatorsHash []byte `protobuf:"bytes,9,opt,name=validatorsHash,proto3" json:"validatorsHash,omitempty"` ValidatorsHash []byte `protobuf:"bytes,9,opt,name=validatorsHash,proto3" json:"validatorsHash,omitempty"`
ConsensusHash []byte `protobuf:"bytes,10,opt,name=consensusHash,proto3" json:"consensusHash,omitempty"` ConsensusHash []byte `protobuf:"bytes,10,opt,name=consensusHash,proto3" json:"consensusHash,omitempty"`
AppHash []byte `protobuf:"bytes,11,opt,name=appHash,proto3" json:"appHash,omitempty"` AppHash []byte `protobuf:"bytes,11,opt,name=appHash,proto3" json:"appHash,omitempty"`
LastResultsHash []byte `protobuf:"bytes,12,opt,name=lastResultsHash,proto3" json:"lastResultsHash,omitempty"` LastResultsHash []byte `protobuf:"bytes,12,opt,name=lastResultsHash,proto3" json:"lastResultsHash,omitempty"`
EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidenceHash,proto3" json:"evidenceHash,omitempty"` EvidenceHash []byte `protobuf:"bytes,13,opt,name=evidenceHash,proto3" json:"evidenceHash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"` }
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"` func (m *TendermintBlockHeader) Reset() { *m = TendermintBlockHeader{} }
} func (m *TendermintBlockHeader) String() string { return proto.CompactTextString(m) }
func (*TendermintBlockHeader) ProtoMessage() {}
func (m *TendermintBlockHeader) Reset() { *m = TendermintBlockHeader{} } func (*TendermintBlockHeader) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
func (m *TendermintBlockHeader) String() string { return proto.CompactTextString(m) }
func (*TendermintBlockHeader) ProtoMessage() {}
func (*TendermintBlockHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{16}
}
func (m *TendermintBlockHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TendermintBlockHeader.Unmarshal(m, b)
}
func (m *TendermintBlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TendermintBlockHeader.Marshal(b, m, deterministic)
}
func (m *TendermintBlockHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_TendermintBlockHeader.Merge(m, src)
}
func (m *TendermintBlockHeader) XXX_Size() int {
return xxx_messageInfo_TendermintBlockHeader.Size(m)
}
func (m *TendermintBlockHeader) XXX_DiscardUnknown() {
xxx_messageInfo_TendermintBlockHeader.DiscardUnknown(m)
}
var xxx_messageInfo_TendermintBlockHeader proto.InternalMessageInfo
func (m *TendermintBlockHeader) GetChainID() string { func (m *TendermintBlockHeader) GetChainID() string {
if m != nil { if m != nil {
...@@ -1077,40 +724,17 @@ func (m *TendermintBlockHeader) GetEvidenceHash() []byte { ...@@ -1077,40 +724,17 @@ func (m *TendermintBlockHeader) GetEvidenceHash() []byte {
} }
type TendermintBlock struct { type TendermintBlock struct {
Header *TendermintBlockHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Header *TendermintBlockHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"`
Txs []*types.Transaction `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"` Txs []*types2.Transaction `protobuf:"bytes,2,rep,name=txs" json:"txs,omitempty"`
Evidence *EvidenceData `protobuf:"bytes,3,opt,name=evidence,proto3" json:"evidence,omitempty"` Evidence *EvidenceData `protobuf:"bytes,3,opt,name=evidence" json:"evidence,omitempty"`
LastCommit *TendermintCommit `protobuf:"bytes,4,opt,name=lastCommit,proto3" json:"lastCommit,omitempty"` LastCommit *TendermintCommit `protobuf:"bytes,4,opt,name=lastCommit" json:"lastCommit,omitempty"`
ProposerAddr []byte `protobuf:"bytes,5,opt,name=proposerAddr,proto3" json:"proposerAddr,omitempty"` ProposerAddr []byte `protobuf:"bytes,5,opt,name=proposerAddr,proto3" json:"proposerAddr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TendermintBlock) Reset() { *m = TendermintBlock{} }
func (m *TendermintBlock) String() string { return proto.CompactTextString(m) }
func (*TendermintBlock) ProtoMessage() {}
func (*TendermintBlock) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{17}
}
func (m *TendermintBlock) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TendermintBlock.Unmarshal(m, b)
}
func (m *TendermintBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TendermintBlock.Marshal(b, m, deterministic)
}
func (m *TendermintBlock) XXX_Merge(src proto.Message) {
xxx_messageInfo_TendermintBlock.Merge(m, src)
}
func (m *TendermintBlock) XXX_Size() int {
return xxx_messageInfo_TendermintBlock.Size(m)
}
func (m *TendermintBlock) XXX_DiscardUnknown() {
xxx_messageInfo_TendermintBlock.DiscardUnknown(m)
} }
var xxx_messageInfo_TendermintBlock proto.InternalMessageInfo func (m *TendermintBlock) Reset() { *m = TendermintBlock{} }
func (m *TendermintBlock) String() string { return proto.CompactTextString(m) }
func (*TendermintBlock) ProtoMessage() {}
func (*TendermintBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
func (m *TendermintBlock) GetHeader() *TendermintBlockHeader { func (m *TendermintBlock) GetHeader() *TendermintBlockHeader {
if m != nil { if m != nil {
...@@ -1119,7 +743,7 @@ func (m *TendermintBlock) GetHeader() *TendermintBlockHeader { ...@@ -1119,7 +743,7 @@ func (m *TendermintBlock) GetHeader() *TendermintBlockHeader {
return nil return nil
} }
func (m *TendermintBlock) GetTxs() []*types.Transaction { func (m *TendermintBlock) GetTxs() []*types2.Transaction {
if m != nil { if m != nil {
return m.Txs return m.Txs
} }
...@@ -1148,42 +772,19 @@ func (m *TendermintBlock) GetProposerAddr() []byte { ...@@ -1148,42 +772,19 @@ func (m *TendermintBlock) GetProposerAddr() []byte {
} }
type Proposal struct { type Proposal struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round" json:"round,omitempty"`
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"`
POLRound int32 `protobuf:"varint,4,opt,name=POLRound,proto3" json:"POLRound,omitempty"` POLRound int32 `protobuf:"varint,4,opt,name=POLRound" json:"POLRound,omitempty"`
POLBlockID *BlockID `protobuf:"bytes,5,opt,name=POLBlockID,proto3" json:"POLBlockID,omitempty"` POLBlockID *BlockID `protobuf:"bytes,5,opt,name=POLBlockID" json:"POLBlockID,omitempty"`
Signature []byte `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"` Signature []byte `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
Blockhash []byte `protobuf:"bytes,7,opt,name=blockhash,proto3" json:"blockhash,omitempty"` Blockhash []byte `protobuf:"bytes,7,opt,name=blockhash,proto3" json:"blockhash,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *Proposal) Reset() { *m = Proposal{} } func (m *Proposal) Reset() { *m = Proposal{} }
func (m *Proposal) String() string { return proto.CompactTextString(m) } func (m *Proposal) String() string { return proto.CompactTextString(m) }
func (*Proposal) ProtoMessage() {} func (*Proposal) ProtoMessage() {}
func (*Proposal) Descriptor() ([]byte, []int) { func (*Proposal) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
return fileDescriptor_04f926c8da23c367, []int{18}
}
func (m *Proposal) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Proposal.Unmarshal(m, b)
}
func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Proposal.Marshal(b, m, deterministic)
}
func (m *Proposal) XXX_Merge(src proto.Message) {
xxx_messageInfo_Proposal.Merge(m, src)
}
func (m *Proposal) XXX_Size() int {
return xxx_messageInfo_Proposal.Size(m)
}
func (m *Proposal) XXX_DiscardUnknown() {
xxx_messageInfo_Proposal.DiscardUnknown(m)
}
var xxx_messageInfo_Proposal proto.InternalMessageInfo
func (m *Proposal) GetHeight() int64 { func (m *Proposal) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -1235,40 +836,17 @@ func (m *Proposal) GetBlockhash() []byte { ...@@ -1235,40 +836,17 @@ func (m *Proposal) GetBlockhash() []byte {
} }
type NewRoundStepMsg struct { type NewRoundStepMsg struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round" json:"round,omitempty"`
Step int32 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"` Step int32 `protobuf:"varint,3,opt,name=step" json:"step,omitempty"`
SecondsSinceStartTime int32 `protobuf:"varint,4,opt,name=secondsSinceStartTime,proto3" json:"secondsSinceStartTime,omitempty"` SecondsSinceStartTime int32 `protobuf:"varint,4,opt,name=secondsSinceStartTime" json:"secondsSinceStartTime,omitempty"`
LastCommitRound int32 `protobuf:"varint,5,opt,name=lastCommitRound,proto3" json:"lastCommitRound,omitempty"` LastCommitRound int32 `protobuf:"varint,5,opt,name=lastCommitRound" json:"lastCommitRound,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *NewRoundStepMsg) Reset() { *m = NewRoundStepMsg{} } func (m *NewRoundStepMsg) Reset() { *m = NewRoundStepMsg{} }
func (m *NewRoundStepMsg) String() string { return proto.CompactTextString(m) } func (m *NewRoundStepMsg) String() string { return proto.CompactTextString(m) }
func (*NewRoundStepMsg) ProtoMessage() {} func (*NewRoundStepMsg) ProtoMessage() {}
func (*NewRoundStepMsg) Descriptor() ([]byte, []int) { func (*NewRoundStepMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
return fileDescriptor_04f926c8da23c367, []int{19}
}
func (m *NewRoundStepMsg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NewRoundStepMsg.Unmarshal(m, b)
}
func (m *NewRoundStepMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NewRoundStepMsg.Marshal(b, m, deterministic)
}
func (m *NewRoundStepMsg) XXX_Merge(src proto.Message) {
xxx_messageInfo_NewRoundStepMsg.Merge(m, src)
}
func (m *NewRoundStepMsg) XXX_Size() int {
return xxx_messageInfo_NewRoundStepMsg.Size(m)
}
func (m *NewRoundStepMsg) XXX_DiscardUnknown() {
xxx_messageInfo_NewRoundStepMsg.DiscardUnknown(m)
}
var xxx_messageInfo_NewRoundStepMsg proto.InternalMessageInfo
func (m *NewRoundStepMsg) GetHeight() int64 { func (m *NewRoundStepMsg) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -1306,36 +884,13 @@ func (m *NewRoundStepMsg) GetLastCommitRound() int32 { ...@@ -1306,36 +884,13 @@ func (m *NewRoundStepMsg) GetLastCommitRound() int32 {
} }
type CommitStepMsg struct { type CommitStepMsg struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *CommitStepMsg) Reset() { *m = CommitStepMsg{} } func (m *CommitStepMsg) Reset() { *m = CommitStepMsg{} }
func (m *CommitStepMsg) String() string { return proto.CompactTextString(m) } func (m *CommitStepMsg) String() string { return proto.CompactTextString(m) }
func (*CommitStepMsg) ProtoMessage() {} func (*CommitStepMsg) ProtoMessage() {}
func (*CommitStepMsg) Descriptor() ([]byte, []int) { func (*CommitStepMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
return fileDescriptor_04f926c8da23c367, []int{20}
}
func (m *CommitStepMsg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommitStepMsg.Unmarshal(m, b)
}
func (m *CommitStepMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommitStepMsg.Marshal(b, m, deterministic)
}
func (m *CommitStepMsg) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitStepMsg.Merge(m, src)
}
func (m *CommitStepMsg) XXX_Size() int {
return xxx_messageInfo_CommitStepMsg.Size(m)
}
func (m *CommitStepMsg) XXX_DiscardUnknown() {
xxx_messageInfo_CommitStepMsg.DiscardUnknown(m)
}
var xxx_messageInfo_CommitStepMsg proto.InternalMessageInfo
func (m *CommitStepMsg) GetHeight() int64 { func (m *CommitStepMsg) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -1345,38 +900,15 @@ func (m *CommitStepMsg) GetHeight() int64 { ...@@ -1345,38 +900,15 @@ func (m *CommitStepMsg) GetHeight() int64 {
} }
type ProposalPOLMsg struct { type ProposalPOLMsg struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
ProposalPOLRound int32 `protobuf:"varint,2,opt,name=proposalPOLRound,proto3" json:"proposalPOLRound,omitempty"` ProposalPOLRound int32 `protobuf:"varint,2,opt,name=proposalPOLRound" json:"proposalPOLRound,omitempty"`
ProposalPOL *TendermintBitArray `protobuf:"bytes,3,opt,name=proposalPOL,proto3" json:"proposalPOL,omitempty"` ProposalPOL *TendermintBitArray `protobuf:"bytes,3,opt,name=proposalPOL" json:"proposalPOL,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProposalPOLMsg) Reset() { *m = ProposalPOLMsg{} }
func (m *ProposalPOLMsg) String() string { return proto.CompactTextString(m) }
func (*ProposalPOLMsg) ProtoMessage() {}
func (*ProposalPOLMsg) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{21}
}
func (m *ProposalPOLMsg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProposalPOLMsg.Unmarshal(m, b)
}
func (m *ProposalPOLMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProposalPOLMsg.Marshal(b, m, deterministic)
}
func (m *ProposalPOLMsg) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProposalPOLMsg.Merge(m, src)
}
func (m *ProposalPOLMsg) XXX_Size() int {
return xxx_messageInfo_ProposalPOLMsg.Size(m)
}
func (m *ProposalPOLMsg) XXX_DiscardUnknown() {
xxx_messageInfo_ProposalPOLMsg.DiscardUnknown(m)
} }
var xxx_messageInfo_ProposalPOLMsg proto.InternalMessageInfo func (m *ProposalPOLMsg) Reset() { *m = ProposalPOLMsg{} }
func (m *ProposalPOLMsg) String() string { return proto.CompactTextString(m) }
func (*ProposalPOLMsg) ProtoMessage() {}
func (*ProposalPOLMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
func (m *ProposalPOLMsg) GetHeight() int64 { func (m *ProposalPOLMsg) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -1400,39 +932,16 @@ func (m *ProposalPOLMsg) GetProposalPOL() *TendermintBitArray { ...@@ -1400,39 +932,16 @@ func (m *ProposalPOLMsg) GetProposalPOL() *TendermintBitArray {
} }
type HasVoteMsg struct { type HasVoteMsg struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round" json:"round,omitempty"`
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` Type int32 `protobuf:"varint,3,opt,name=type" json:"type,omitempty"`
Index int32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"` Index int32 `protobuf:"varint,4,opt,name=index" json:"index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HasVoteMsg) Reset() { *m = HasVoteMsg{} }
func (m *HasVoteMsg) String() string { return proto.CompactTextString(m) }
func (*HasVoteMsg) ProtoMessage() {}
func (*HasVoteMsg) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{22}
}
func (m *HasVoteMsg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_HasVoteMsg.Unmarshal(m, b)
}
func (m *HasVoteMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_HasVoteMsg.Marshal(b, m, deterministic)
}
func (m *HasVoteMsg) XXX_Merge(src proto.Message) {
xxx_messageInfo_HasVoteMsg.Merge(m, src)
}
func (m *HasVoteMsg) XXX_Size() int {
return xxx_messageInfo_HasVoteMsg.Size(m)
}
func (m *HasVoteMsg) XXX_DiscardUnknown() {
xxx_messageInfo_HasVoteMsg.DiscardUnknown(m)
} }
var xxx_messageInfo_HasVoteMsg proto.InternalMessageInfo func (m *HasVoteMsg) Reset() { *m = HasVoteMsg{} }
func (m *HasVoteMsg) String() string { return proto.CompactTextString(m) }
func (*HasVoteMsg) ProtoMessage() {}
func (*HasVoteMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
func (m *HasVoteMsg) GetHeight() int64 { func (m *HasVoteMsg) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -1463,39 +972,16 @@ func (m *HasVoteMsg) GetIndex() int32 { ...@@ -1463,39 +972,16 @@ func (m *HasVoteMsg) GetIndex() int32 {
} }
type VoteSetMaj23Msg struct { type VoteSetMaj23Msg struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round" json:"round,omitempty"`
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` Type int32 `protobuf:"varint,3,opt,name=type" json:"type,omitempty"`
BlockID *BlockID `protobuf:"bytes,4,opt,name=blockID,proto3" json:"blockID,omitempty"` BlockID *BlockID `protobuf:"bytes,4,opt,name=blockID" json:"blockID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *VoteSetMaj23Msg) Reset() { *m = VoteSetMaj23Msg{} } func (m *VoteSetMaj23Msg) Reset() { *m = VoteSetMaj23Msg{} }
func (m *VoteSetMaj23Msg) String() string { return proto.CompactTextString(m) } func (m *VoteSetMaj23Msg) String() string { return proto.CompactTextString(m) }
func (*VoteSetMaj23Msg) ProtoMessage() {} func (*VoteSetMaj23Msg) ProtoMessage() {}
func (*VoteSetMaj23Msg) Descriptor() ([]byte, []int) { func (*VoteSetMaj23Msg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
return fileDescriptor_04f926c8da23c367, []int{23}
}
func (m *VoteSetMaj23Msg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VoteSetMaj23Msg.Unmarshal(m, b)
}
func (m *VoteSetMaj23Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VoteSetMaj23Msg.Marshal(b, m, deterministic)
}
func (m *VoteSetMaj23Msg) XXX_Merge(src proto.Message) {
xxx_messageInfo_VoteSetMaj23Msg.Merge(m, src)
}
func (m *VoteSetMaj23Msg) XXX_Size() int {
return xxx_messageInfo_VoteSetMaj23Msg.Size(m)
}
func (m *VoteSetMaj23Msg) XXX_DiscardUnknown() {
xxx_messageInfo_VoteSetMaj23Msg.DiscardUnknown(m)
}
var xxx_messageInfo_VoteSetMaj23Msg proto.InternalMessageInfo
func (m *VoteSetMaj23Msg) GetHeight() int64 { func (m *VoteSetMaj23Msg) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -1526,40 +1012,17 @@ func (m *VoteSetMaj23Msg) GetBlockID() *BlockID { ...@@ -1526,40 +1012,17 @@ func (m *VoteSetMaj23Msg) GetBlockID() *BlockID {
} }
type VoteSetBitsMsg struct { type VoteSetBitsMsg struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round" json:"round,omitempty"`
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` Type int32 `protobuf:"varint,3,opt,name=type" json:"type,omitempty"`
BlockID *BlockID `protobuf:"bytes,4,opt,name=blockID,proto3" json:"blockID,omitempty"` BlockID *BlockID `protobuf:"bytes,4,opt,name=blockID" json:"blockID,omitempty"`
Votes *TendermintBitArray `protobuf:"bytes,5,opt,name=votes,proto3" json:"votes,omitempty"` Votes *TendermintBitArray `protobuf:"bytes,5,opt,name=votes" json:"votes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VoteSetBitsMsg) Reset() { *m = VoteSetBitsMsg{} }
func (m *VoteSetBitsMsg) String() string { return proto.CompactTextString(m) }
func (*VoteSetBitsMsg) ProtoMessage() {}
func (*VoteSetBitsMsg) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{24}
}
func (m *VoteSetBitsMsg) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VoteSetBitsMsg.Unmarshal(m, b)
}
func (m *VoteSetBitsMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VoteSetBitsMsg.Marshal(b, m, deterministic)
}
func (m *VoteSetBitsMsg) XXX_Merge(src proto.Message) {
xxx_messageInfo_VoteSetBitsMsg.Merge(m, src)
}
func (m *VoteSetBitsMsg) XXX_Size() int {
return xxx_messageInfo_VoteSetBitsMsg.Size(m)
}
func (m *VoteSetBitsMsg) XXX_DiscardUnknown() {
xxx_messageInfo_VoteSetBitsMsg.DiscardUnknown(m)
} }
var xxx_messageInfo_VoteSetBitsMsg proto.InternalMessageInfo func (m *VoteSetBitsMsg) Reset() { *m = VoteSetBitsMsg{} }
func (m *VoteSetBitsMsg) String() string { return proto.CompactTextString(m) }
func (*VoteSetBitsMsg) ProtoMessage() {}
func (*VoteSetBitsMsg) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
func (m *VoteSetBitsMsg) GetHeight() int64 { func (m *VoteSetBitsMsg) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -1597,41 +1060,18 @@ func (m *VoteSetBitsMsg) GetVotes() *TendermintBitArray { ...@@ -1597,41 +1060,18 @@ func (m *VoteSetBitsMsg) GetVotes() *TendermintBitArray {
} }
type Heartbeat struct { type Heartbeat struct {
ValidatorAddress []byte `protobuf:"bytes,1,opt,name=validatorAddress,proto3" json:"validatorAddress,omitempty"` ValidatorAddress []byte `protobuf:"bytes,1,opt,name=validatorAddress,proto3" json:"validatorAddress,omitempty"`
ValidatorIndex int32 `protobuf:"varint,2,opt,name=validatorIndex,proto3" json:"validatorIndex,omitempty"` ValidatorIndex int32 `protobuf:"varint,2,opt,name=validatorIndex" json:"validatorIndex,omitempty"`
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
Round int32 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` Round int32 `protobuf:"varint,4,opt,name=round" json:"round,omitempty"`
Sequence int32 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` Sequence int32 `protobuf:"varint,5,opt,name=sequence" json:"sequence,omitempty"`
Signature []byte `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"` Signature []byte `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Heartbeat) Reset() { *m = Heartbeat{} }
func (m *Heartbeat) String() string { return proto.CompactTextString(m) }
func (*Heartbeat) ProtoMessage() {}
func (*Heartbeat) Descriptor() ([]byte, []int) {
return fileDescriptor_04f926c8da23c367, []int{25}
}
func (m *Heartbeat) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Heartbeat.Unmarshal(m, b)
}
func (m *Heartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Heartbeat.Marshal(b, m, deterministic)
}
func (m *Heartbeat) XXX_Merge(src proto.Message) {
xxx_messageInfo_Heartbeat.Merge(m, src)
}
func (m *Heartbeat) XXX_Size() int {
return xxx_messageInfo_Heartbeat.Size(m)
}
func (m *Heartbeat) XXX_DiscardUnknown() {
xxx_messageInfo_Heartbeat.DiscardUnknown(m)
} }
var xxx_messageInfo_Heartbeat proto.InternalMessageInfo func (m *Heartbeat) Reset() { *m = Heartbeat{} }
func (m *Heartbeat) String() string { return proto.CompactTextString(m) }
func (*Heartbeat) ProtoMessage() {}
func (*Heartbeat) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
func (m *Heartbeat) GetValidatorAddress() []byte { func (m *Heartbeat) GetValidatorAddress() []byte {
if m != nil { if m != nil {
...@@ -1704,9 +1144,9 @@ func init() { ...@@ -1704,9 +1144,9 @@ func init() {
proto.RegisterType((*Heartbeat)(nil), "types.Heartbeat") proto.RegisterType((*Heartbeat)(nil), "types.Heartbeat")
} }
func init() { proto.RegisterFile("tendermint.proto", fileDescriptor_04f926c8da23c367) } func init() { proto.RegisterFile("tendermint.proto", fileDescriptor0) }
var fileDescriptor_04f926c8da23c367 = []byte{ var fileDescriptor0 = []byte{
// 1450 bytes of a gzipped FileDescriptorProto // 1450 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x6f, 0x5b, 0x45, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4f, 0x6f, 0x5b, 0x45,
0x10, 0xd7, 0x8b, 0xe3, 0x24, 0x1e, 0x3b, 0x7f, 0xd8, 0x92, 0xd6, 0x94, 0x20, 0x85, 0x55, 0x01, 0x10, 0xd7, 0x8b, 0xe3, 0x24, 0x1e, 0x3b, 0x7f, 0xd8, 0x92, 0xd6, 0x94, 0x20, 0x85, 0x55, 0x01,
......
...@@ -3,55 +3,24 @@ ...@@ -3,55 +3,24 @@
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
proto "github.com/golang/protobuf/proto" import math "math"
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 _ = proto.Marshal var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ValNode struct { type ValNode struct {
PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"` PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` Power int64 `protobuf:"varint,2,opt,name=power" json:"power,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ValNode) Reset() { *m = ValNode{} } func (m *ValNode) Reset() { *m = ValNode{} }
func (m *ValNode) String() string { return proto.CompactTextString(m) } func (m *ValNode) String() string { return proto.CompactTextString(m) }
func (*ValNode) ProtoMessage() {} func (*ValNode) ProtoMessage() {}
func (*ValNode) Descriptor() ([]byte, []int) { func (*ValNode) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
return fileDescriptor_38e9a3523ca7e0ea, []int{0}
}
func (m *ValNode) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValNode.Unmarshal(m, b)
}
func (m *ValNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValNode.Marshal(b, m, deterministic)
}
func (m *ValNode) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValNode.Merge(m, src)
}
func (m *ValNode) XXX_Size() int {
return xxx_messageInfo_ValNode.Size(m)
}
func (m *ValNode) XXX_DiscardUnknown() {
xxx_messageInfo_ValNode.DiscardUnknown(m)
}
var xxx_messageInfo_ValNode proto.InternalMessageInfo
func (m *ValNode) GetPubKey() []byte { func (m *ValNode) GetPubKey() []byte {
if m != nil { if m != nil {
...@@ -68,36 +37,13 @@ func (m *ValNode) GetPower() int64 { ...@@ -68,36 +37,13 @@ func (m *ValNode) GetPower() int64 {
} }
type ValNodes struct { type ValNodes struct {
Nodes []*ValNode `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` Nodes []*ValNode `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ValNodes) Reset() { *m = ValNodes{} }
func (m *ValNodes) String() string { return proto.CompactTextString(m) }
func (*ValNodes) ProtoMessage() {}
func (*ValNodes) Descriptor() ([]byte, []int) {
return fileDescriptor_38e9a3523ca7e0ea, []int{1}
} }
func (m *ValNodes) XXX_Unmarshal(b []byte) error { func (m *ValNodes) Reset() { *m = ValNodes{} }
return xxx_messageInfo_ValNodes.Unmarshal(m, b) func (m *ValNodes) String() string { return proto.CompactTextString(m) }
} func (*ValNodes) ProtoMessage() {}
func (m *ValNodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { func (*ValNodes) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
return xxx_messageInfo_ValNodes.Marshal(b, m, deterministic)
}
func (m *ValNodes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValNodes.Merge(m, src)
}
func (m *ValNodes) XXX_Size() int {
return xxx_messageInfo_ValNodes.Size(m)
}
func (m *ValNodes) XXX_DiscardUnknown() {
xxx_messageInfo_ValNodes.DiscardUnknown(m)
}
var xxx_messageInfo_ValNodes proto.InternalMessageInfo
func (m *ValNodes) GetNodes() []*ValNode { func (m *ValNodes) GetNodes() []*ValNode {
if m != nil { if m != nil {
...@@ -110,52 +56,27 @@ type ValNodeAction struct { ...@@ -110,52 +56,27 @@ type ValNodeAction struct {
// Types that are valid to be assigned to Value: // Types that are valid to be assigned to Value:
// *ValNodeAction_Node // *ValNodeAction_Node
// *ValNodeAction_BlockInfo // *ValNodeAction_BlockInfo
Value isValNodeAction_Value `protobuf_oneof:"value"` Value isValNodeAction_Value `protobuf_oneof:"value"`
Ty int32 `protobuf:"varint,3,opt,name=Ty,proto3" json:"Ty,omitempty"` Ty int32 `protobuf:"varint,3,opt,name=Ty" json:"Ty,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ValNodeAction) Reset() { *m = ValNodeAction{} } func (m *ValNodeAction) Reset() { *m = ValNodeAction{} }
func (m *ValNodeAction) String() string { return proto.CompactTextString(m) } func (m *ValNodeAction) String() string { return proto.CompactTextString(m) }
func (*ValNodeAction) ProtoMessage() {} func (*ValNodeAction) ProtoMessage() {}
func (*ValNodeAction) Descriptor() ([]byte, []int) { func (*ValNodeAction) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
return fileDescriptor_38e9a3523ca7e0ea, []int{2}
}
func (m *ValNodeAction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ValNodeAction.Unmarshal(m, b)
}
func (m *ValNodeAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ValNodeAction.Marshal(b, m, deterministic)
}
func (m *ValNodeAction) XXX_Merge(src proto.Message) {
xxx_messageInfo_ValNodeAction.Merge(m, src)
}
func (m *ValNodeAction) XXX_Size() int {
return xxx_messageInfo_ValNodeAction.Size(m)
}
func (m *ValNodeAction) XXX_DiscardUnknown() {
xxx_messageInfo_ValNodeAction.DiscardUnknown(m)
}
var xxx_messageInfo_ValNodeAction proto.InternalMessageInfo
type isValNodeAction_Value interface { type isValNodeAction_Value interface {
isValNodeAction_Value() isValNodeAction_Value()
} }
type ValNodeAction_Node struct { type ValNodeAction_Node struct {
Node *ValNode `protobuf:"bytes,1,opt,name=node,proto3,oneof"` Node *ValNode `protobuf:"bytes,1,opt,name=node,oneof"`
} }
type ValNodeAction_BlockInfo struct { type ValNodeAction_BlockInfo struct {
BlockInfo *TendermintBlockInfo `protobuf:"bytes,2,opt,name=blockInfo,proto3,oneof"` BlockInfo *TendermintBlockInfo `protobuf:"bytes,2,opt,name=blockInfo,oneof"`
} }
func (*ValNodeAction_Node) isValNodeAction_Value() {} func (*ValNodeAction_Node) isValNodeAction_Value() {}
func (*ValNodeAction_BlockInfo) isValNodeAction_Value() {} func (*ValNodeAction_BlockInfo) isValNodeAction_Value() {}
func (m *ValNodeAction) GetValue() isValNodeAction_Value { func (m *ValNodeAction) GetValue() isValNodeAction_Value {
...@@ -245,12 +166,12 @@ func _ValNodeAction_OneofSizer(msg proto.Message) (n int) { ...@@ -245,12 +166,12 @@ func _ValNodeAction_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) { switch x := m.Value.(type) {
case *ValNodeAction_Node: case *ValNodeAction_Node:
s := proto.Size(x.Node) s := proto.Size(x.Node)
n += 1 // tag and wire n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case *ValNodeAction_BlockInfo: case *ValNodeAction_BlockInfo:
s := proto.Size(x.BlockInfo) s := proto.Size(x.BlockInfo)
n += 1 // tag and wire n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s)) n += proto.SizeVarint(uint64(s))
n += s n += s
case nil: case nil:
...@@ -261,36 +182,13 @@ func _ValNodeAction_OneofSizer(msg proto.Message) (n int) { ...@@ -261,36 +182,13 @@ func _ValNodeAction_OneofSizer(msg proto.Message) (n int) {
} }
type ReqNodeInfo struct { type ReqNodeInfo struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
} }
func (m *ReqNodeInfo) Reset() { *m = ReqNodeInfo{} } func (m *ReqNodeInfo) Reset() { *m = ReqNodeInfo{} }
func (m *ReqNodeInfo) String() string { return proto.CompactTextString(m) } func (m *ReqNodeInfo) String() string { return proto.CompactTextString(m) }
func (*ReqNodeInfo) ProtoMessage() {} func (*ReqNodeInfo) ProtoMessage() {}
func (*ReqNodeInfo) Descriptor() ([]byte, []int) { func (*ReqNodeInfo) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
return fileDescriptor_38e9a3523ca7e0ea, []int{3}
}
func (m *ReqNodeInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqNodeInfo.Unmarshal(m, b)
}
func (m *ReqNodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqNodeInfo.Marshal(b, m, deterministic)
}
func (m *ReqNodeInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqNodeInfo.Merge(m, src)
}
func (m *ReqNodeInfo) XXX_Size() int {
return xxx_messageInfo_ReqNodeInfo.Size(m)
}
func (m *ReqNodeInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReqNodeInfo.DiscardUnknown(m)
}
var xxx_messageInfo_ReqNodeInfo proto.InternalMessageInfo
func (m *ReqNodeInfo) GetHeight() int64 { func (m *ReqNodeInfo) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -300,36 +198,13 @@ func (m *ReqNodeInfo) GetHeight() int64 { ...@@ -300,36 +198,13 @@ func (m *ReqNodeInfo) GetHeight() int64 {
} }
type ReqBlockInfo struct { type ReqBlockInfo struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Height int64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReqBlockInfo) Reset() { *m = ReqBlockInfo{} }
func (m *ReqBlockInfo) String() string { return proto.CompactTextString(m) }
func (*ReqBlockInfo) ProtoMessage() {}
func (*ReqBlockInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_38e9a3523ca7e0ea, []int{4}
}
func (m *ReqBlockInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReqBlockInfo.Unmarshal(m, b)
}
func (m *ReqBlockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReqBlockInfo.Marshal(b, m, deterministic)
}
func (m *ReqBlockInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReqBlockInfo.Merge(m, src)
}
func (m *ReqBlockInfo) XXX_Size() int {
return xxx_messageInfo_ReqBlockInfo.Size(m)
}
func (m *ReqBlockInfo) XXX_DiscardUnknown() {
xxx_messageInfo_ReqBlockInfo.DiscardUnknown(m)
} }
var xxx_messageInfo_ReqBlockInfo proto.InternalMessageInfo func (m *ReqBlockInfo) Reset() { *m = ReqBlockInfo{} }
func (m *ReqBlockInfo) String() string { return proto.CompactTextString(m) }
func (*ReqBlockInfo) ProtoMessage() {}
func (*ReqBlockInfo) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
func (m *ReqBlockInfo) GetHeight() int64 { func (m *ReqBlockInfo) GetHeight() int64 {
if m != nil { if m != nil {
...@@ -346,9 +221,9 @@ func init() { ...@@ -346,9 +221,9 @@ func init() {
proto.RegisterType((*ReqBlockInfo)(nil), "types.ReqBlockInfo") proto.RegisterType((*ReqBlockInfo)(nil), "types.ReqBlockInfo")
} }
func init() { proto.RegisterFile("valnode.proto", fileDescriptor_38e9a3523ca7e0ea) } func init() { proto.RegisterFile("valnode.proto", fileDescriptor1) }
var fileDescriptor_38e9a3523ca7e0ea = []byte{ var fileDescriptor1 = []byte{
// 261 bytes of a gzipped FileDescriptorProto // 261 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x41, 0x4b, 0xc3, 0x30, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x41, 0x4b, 0xc3, 0x30,
0x14, 0xc7, 0x97, 0xd6, 0x74, 0xfa, 0xba, 0x0d, 0x09, 0x32, 0xca, 0x4e, 0x25, 0x4c, 0xe9, 0xa9, 0x14, 0xc7, 0x97, 0xd6, 0x74, 0xfa, 0xba, 0x0d, 0x09, 0x32, 0xca, 0x4e, 0x25, 0x4c, 0xe9, 0xa9,
......
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