Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
d2c699ee
Commit
d2c699ee
authored
Dec 10, 2019
by
harrylee
Committed by
vipwzw
Dec 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix duplicate proto
parent
1403b9bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
49 deletions
+46
-49
exchange.proto
plugin/dapp/exchange/proto/exchange.proto
+11
-11
exchange.pb.go
plugin/dapp/exchange/types/exchange.pb.go
+35
-38
No files found.
plugin/dapp/exchange/proto/exchange.proto
View file @
d2c699ee
...
...
@@ -15,9 +15,9 @@ message ExchangeAction {
//限价订单
message
LimitOrder
{
//交易对
A
sset
leftAsset
=
1
;
a
sset
leftAsset
=
1
;
//交易对
A
sset
rightAsset
=
2
;
a
sset
rightAsset
=
2
;
//价格
float
price
=
3
;
//总量
...
...
@@ -29,9 +29,9 @@ message LimitOrder {
//市价委托
message
MarketOrder
{
//资产1
A
sset
leftAsset
=
1
;
a
sset
leftAsset
=
1
;
//资产2
A
sset
rightAsset
=
2
;
a
sset
rightAsset
=
2
;
//总量
int64
amount
=
3
;
//操作, 1为买,2为卖
...
...
@@ -44,7 +44,7 @@ message RevokeOrder {
string
orderID
=
1
;
}
//资产类型
message
A
sset
{
message
a
sset
{
string
execer
=
1
;
string
symbol
=
2
;
}
...
...
@@ -85,9 +85,9 @@ message OrderID {
//查询接口
message
QueryMarketDepth
{
//资产1
A
sset
leftAsset
=
1
;
a
sset
leftAsset
=
1
;
//资产2
A
sset
rightAsset
=
2
;
a
sset
rightAsset
=
2
;
//操作, 1为买,2为卖
int32
op
=
3
;
// 这里用价格作为索引值
...
...
@@ -98,9 +98,9 @@ message QueryMarketDepth {
//市场深度
message
MarketDepth
{
//资产1
A
sset
leftAsset
=
1
;
a
sset
leftAsset
=
1
;
//资产2
A
sset
rightAsset
=
2
;
a
sset
rightAsset
=
2
;
//价格
float
price
=
3
;
//总量
...
...
@@ -116,9 +116,9 @@ message MarketDepthList {
//查询最新得成交信息,外部接口
message
QueryCompletedOrderList
{
//资产1
A
sset
leftAsset
=
1
;
a
sset
leftAsset
=
1
;
//资产2
A
sset
rightAsset
=
2
;
a
sset
rightAsset
=
2
;
// 索引值
int64
index
=
3
;
//单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条
...
...
plugin/dapp/exchange/types/exchange.pb.go
View file @
d2c699ee
...
...
@@ -28,15 +28,12 @@ It has these top-level messages:
*/
package
types
import
(
fmt
"fmt"
proto
"github.com/golang/protobuf/proto"
math
"math"
import
proto
"github.com/golang/protobuf/proto"
import
fmt
"fmt"
import
math
"math"
import
(
context
"golang.org/x/net/context"
grpc
"google.golang.org/grpc"
)
...
...
@@ -910,7 +907,7 @@ func init() {
proto
.
RegisterType
((
*
LimitOrder
)(
nil
),
"types.LimitOrder"
)
proto
.
RegisterType
((
*
MarketOrder
)(
nil
),
"types.MarketOrder"
)
proto
.
RegisterType
((
*
RevokeOrder
)(
nil
),
"types.RevokeOrder"
)
proto
.
RegisterType
((
*
Asset
)(
nil
),
"types.
A
sset"
)
proto
.
RegisterType
((
*
Asset
)(
nil
),
"types.
a
sset"
)
proto
.
RegisterType
((
*
Order
)(
nil
),
"types.Order"
)
proto
.
RegisterType
((
*
OrderPrice
)(
nil
),
"types.OrderPrice"
)
proto
.
RegisterType
((
*
OrderID
)(
nil
),
"types.OrderID"
)
...
...
@@ -965,7 +962,7 @@ var _Exchange_serviceDesc = grpc.ServiceDesc{
func
init
()
{
proto
.
RegisterFile
(
"exchange.proto"
,
fileDescriptor0
)
}
var
fileDescriptor0
=
[]
byte
{
// 65
8
bytes of a gzipped FileDescriptorProto
// 65
9
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xb4
,
0x55
,
0xed
,
0x6a
,
0xd4
,
0x4c
,
0x14
,
0x6e
,
0xbe
,
0xba
,
0xcd
,
0xd9
,
0x97
,
0xed
,
0xeb
,
0x20
,
0x1a
,
0x44
,
0x64
,
0xc9
,
0x8f
,
0x5a
,
0x44
,
0x57
,
0x68
,
0xc1
,
0x8f
,
0x9f
,
0xd5
,
0x0a
,
0x2d
,
0x54
,
0xaa
,
0x83
,
0x37
,
0x90
,
0x26
,
0xc7
,
...
...
@@ -979,33 +976,33 @@ var fileDescriptor0 = []byte{
0x96
,
0x83
,
0x35
,
0x6e
,
0x3b
,
0xca
,
0xb8
,
0x1a
,
0xcf
,
0xcb
,
0x33
,
0x54
,
0x71
,
0xde
,
0x42
,
0x1c
,
0x37
,
0x16
,
0x19
,
0x67
,
0x39
,
0xb2
,
0x01
,
0xb8
,
0x62
,
0x1e
,
0xad
,
0x0f
,
0x9d
,
0xed
,
0x80
,
0xbb
,
0x62
,
0xfe
,
0xa2
,
0x07
,
0xc1
,
0x79
,
0x52
,
0xcc
,
0x30
,
0xfe
,
0xec
,
0x00
,
0x18
,
0x96
,
0xec
,
0x01
,
0x84
,
0x05
,
0xbe
,
0x17
,
0x7b
,
0x4d
,
0x83
,
0x42
,
0xd7
,
0xf2
,
0x9f
,
0xce
,
0x
4e
,
0x67
,
0xdc
,
0x98
,
0x
d9
,
0x43
,
0x80
,
0x3a
,
0x3f
,
0x1d
,
0x6b
,
0x67
,
0x77
,
0x89
,
0xb3
,
0x65
,
0x67
,
0x37
,
0x21
,
0xa8
,
0x
ea
,
0x3c
,
0x45
,
0xe2
,
0xec
,
0x72
,
0x05
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x16
,
0xd6
,
0x2b
,
0x82
,
0x9e
,
0x
5c
,
0x29
,
0x6c
,
0x1a
,
0x7d
,
0xcd
,
0xb4
,
0xf0
,
0x1f
,
0xd2
,
0x7e
,
0x04
,
0xa1
,
0x21
,
0x32
,
0x5
c
,
0x
98
,
0x55
,
0xdb
,
0x35
,
0xb2
,
0xeb
,
0x29
,
0x7d
,
0x80
,
0x4d
,
0x8e
,
0x29
,
0xe6
,
0x95
,
0x68
,
0x9f
,
0x
54
,
0x16
,
0x43
,
0x50
,
0x5a
,
0xef
,
0xe8
,
0x62
,
0x94
,
0x32
,
0xb1
,
0x91
,
0xbc
,
0xbe
,
0x44
,
0x3a
,
0x
a6
,
0x43
,
0x59
,
0xcd
,
0xd5
,
0xfc
,
0xb6
,
0xc3
,
0xf2
,
0xfa
,
0x76
,
0x40
,
0x5e
,
0x5e
,
0xea
,
0xaf
,
0x
27
,
0xeb
,
0xf4
,
0xde
,
0xef
,
0xfe
,
0x0c
,
0x00
,
0x00
,
0xff
,
0xff
,
0x08
,
0x34
,
0x16
,
0x15
,
0x01
,
0x0
8
,
0x0
0
,
0x00
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment