/
exchange_contract.pb.go
326 lines (285 loc) · 12.3 KB
/
exchange_contract.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: core/contract/exchange_contract.proto
package core
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
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.ProtoPackageIsVersion3 // please upgrade the proto package
type ExchangeCreateContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
FirstTokenId []byte `protobuf:"bytes,2,opt,name=first_token_id,json=firstTokenId,proto3" json:"first_token_id,omitempty"`
FirstTokenBalance int64 `protobuf:"varint,3,opt,name=first_token_balance,json=firstTokenBalance,proto3" json:"first_token_balance,omitempty"`
SecondTokenId []byte `protobuf:"bytes,4,opt,name=second_token_id,json=secondTokenId,proto3" json:"second_token_id,omitempty"`
SecondTokenBalance int64 `protobuf:"varint,5,opt,name=second_token_balance,json=secondTokenBalance,proto3" json:"second_token_balance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExchangeCreateContract) Reset() { *m = ExchangeCreateContract{} }
func (m *ExchangeCreateContract) String() string { return proto.CompactTextString(m) }
func (*ExchangeCreateContract) ProtoMessage() {}
func (*ExchangeCreateContract) Descriptor() ([]byte, []int) {
return fileDescriptor_10c7f776bef66f61, []int{0}
}
func (m *ExchangeCreateContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExchangeCreateContract.Unmarshal(m, b)
}
func (m *ExchangeCreateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExchangeCreateContract.Marshal(b, m, deterministic)
}
func (m *ExchangeCreateContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExchangeCreateContract.Merge(m, src)
}
func (m *ExchangeCreateContract) XXX_Size() int {
return xxx_messageInfo_ExchangeCreateContract.Size(m)
}
func (m *ExchangeCreateContract) XXX_DiscardUnknown() {
xxx_messageInfo_ExchangeCreateContract.DiscardUnknown(m)
}
var xxx_messageInfo_ExchangeCreateContract proto.InternalMessageInfo
func (m *ExchangeCreateContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *ExchangeCreateContract) GetFirstTokenId() []byte {
if m != nil {
return m.FirstTokenId
}
return nil
}
func (m *ExchangeCreateContract) GetFirstTokenBalance() int64 {
if m != nil {
return m.FirstTokenBalance
}
return 0
}
func (m *ExchangeCreateContract) GetSecondTokenId() []byte {
if m != nil {
return m.SecondTokenId
}
return nil
}
func (m *ExchangeCreateContract) GetSecondTokenBalance() int64 {
if m != nil {
return m.SecondTokenBalance
}
return 0
}
type ExchangeInjectContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
ExchangeId int64 `protobuf:"varint,2,opt,name=exchange_id,json=exchangeId,proto3" json:"exchange_id,omitempty"`
TokenId []byte `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
Quant int64 `protobuf:"varint,4,opt,name=quant,proto3" json:"quant,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExchangeInjectContract) Reset() { *m = ExchangeInjectContract{} }
func (m *ExchangeInjectContract) String() string { return proto.CompactTextString(m) }
func (*ExchangeInjectContract) ProtoMessage() {}
func (*ExchangeInjectContract) Descriptor() ([]byte, []int) {
return fileDescriptor_10c7f776bef66f61, []int{1}
}
func (m *ExchangeInjectContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExchangeInjectContract.Unmarshal(m, b)
}
func (m *ExchangeInjectContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExchangeInjectContract.Marshal(b, m, deterministic)
}
func (m *ExchangeInjectContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExchangeInjectContract.Merge(m, src)
}
func (m *ExchangeInjectContract) XXX_Size() int {
return xxx_messageInfo_ExchangeInjectContract.Size(m)
}
func (m *ExchangeInjectContract) XXX_DiscardUnknown() {
xxx_messageInfo_ExchangeInjectContract.DiscardUnknown(m)
}
var xxx_messageInfo_ExchangeInjectContract proto.InternalMessageInfo
func (m *ExchangeInjectContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *ExchangeInjectContract) GetExchangeId() int64 {
if m != nil {
return m.ExchangeId
}
return 0
}
func (m *ExchangeInjectContract) GetTokenId() []byte {
if m != nil {
return m.TokenId
}
return nil
}
func (m *ExchangeInjectContract) GetQuant() int64 {
if m != nil {
return m.Quant
}
return 0
}
type ExchangeWithdrawContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
ExchangeId int64 `protobuf:"varint,2,opt,name=exchange_id,json=exchangeId,proto3" json:"exchange_id,omitempty"`
TokenId []byte `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
Quant int64 `protobuf:"varint,4,opt,name=quant,proto3" json:"quant,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExchangeWithdrawContract) Reset() { *m = ExchangeWithdrawContract{} }
func (m *ExchangeWithdrawContract) String() string { return proto.CompactTextString(m) }
func (*ExchangeWithdrawContract) ProtoMessage() {}
func (*ExchangeWithdrawContract) Descriptor() ([]byte, []int) {
return fileDescriptor_10c7f776bef66f61, []int{2}
}
func (m *ExchangeWithdrawContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExchangeWithdrawContract.Unmarshal(m, b)
}
func (m *ExchangeWithdrawContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExchangeWithdrawContract.Marshal(b, m, deterministic)
}
func (m *ExchangeWithdrawContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExchangeWithdrawContract.Merge(m, src)
}
func (m *ExchangeWithdrawContract) XXX_Size() int {
return xxx_messageInfo_ExchangeWithdrawContract.Size(m)
}
func (m *ExchangeWithdrawContract) XXX_DiscardUnknown() {
xxx_messageInfo_ExchangeWithdrawContract.DiscardUnknown(m)
}
var xxx_messageInfo_ExchangeWithdrawContract proto.InternalMessageInfo
func (m *ExchangeWithdrawContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *ExchangeWithdrawContract) GetExchangeId() int64 {
if m != nil {
return m.ExchangeId
}
return 0
}
func (m *ExchangeWithdrawContract) GetTokenId() []byte {
if m != nil {
return m.TokenId
}
return nil
}
func (m *ExchangeWithdrawContract) GetQuant() int64 {
if m != nil {
return m.Quant
}
return 0
}
type ExchangeTransactionContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
ExchangeId int64 `protobuf:"varint,2,opt,name=exchange_id,json=exchangeId,proto3" json:"exchange_id,omitempty"`
TokenId []byte `protobuf:"bytes,3,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
Quant int64 `protobuf:"varint,4,opt,name=quant,proto3" json:"quant,omitempty"`
Expected int64 `protobuf:"varint,5,opt,name=expected,proto3" json:"expected,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExchangeTransactionContract) Reset() { *m = ExchangeTransactionContract{} }
func (m *ExchangeTransactionContract) String() string { return proto.CompactTextString(m) }
func (*ExchangeTransactionContract) ProtoMessage() {}
func (*ExchangeTransactionContract) Descriptor() ([]byte, []int) {
return fileDescriptor_10c7f776bef66f61, []int{3}
}
func (m *ExchangeTransactionContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExchangeTransactionContract.Unmarshal(m, b)
}
func (m *ExchangeTransactionContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExchangeTransactionContract.Marshal(b, m, deterministic)
}
func (m *ExchangeTransactionContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExchangeTransactionContract.Merge(m, src)
}
func (m *ExchangeTransactionContract) XXX_Size() int {
return xxx_messageInfo_ExchangeTransactionContract.Size(m)
}
func (m *ExchangeTransactionContract) XXX_DiscardUnknown() {
xxx_messageInfo_ExchangeTransactionContract.DiscardUnknown(m)
}
var xxx_messageInfo_ExchangeTransactionContract proto.InternalMessageInfo
func (m *ExchangeTransactionContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *ExchangeTransactionContract) GetExchangeId() int64 {
if m != nil {
return m.ExchangeId
}
return 0
}
func (m *ExchangeTransactionContract) GetTokenId() []byte {
if m != nil {
return m.TokenId
}
return nil
}
func (m *ExchangeTransactionContract) GetQuant() int64 {
if m != nil {
return m.Quant
}
return 0
}
func (m *ExchangeTransactionContract) GetExpected() int64 {
if m != nil {
return m.Expected
}
return 0
}
func init() {
proto.RegisterType((*ExchangeCreateContract)(nil), "protocol.ExchangeCreateContract")
proto.RegisterType((*ExchangeInjectContract)(nil), "protocol.ExchangeInjectContract")
proto.RegisterType((*ExchangeWithdrawContract)(nil), "protocol.ExchangeWithdrawContract")
proto.RegisterType((*ExchangeTransactionContract)(nil), "protocol.ExchangeTransactionContract")
}
func init() {
proto.RegisterFile("core/contract/exchange_contract.proto", fileDescriptor_10c7f776bef66f61)
}
var fileDescriptor_10c7f776bef66f61 = []byte{
// 347 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x93, 0xcf, 0x4e, 0xf2, 0x40,
0x14, 0xc5, 0xd3, 0xaf, 0x1f, 0x4a, 0xae, 0xa0, 0x71, 0x24, 0xa6, 0xea, 0x42, 0xc4, 0x3f, 0x61,
0xd5, 0x9a, 0xb8, 0x76, 0x21, 0xc4, 0x05, 0xdb, 0x86, 0xc4, 0xc4, 0x4d, 0x33, 0x9d, 0xb9, 0x94,
0x2a, 0xce, 0xe0, 0xf4, 0x12, 0x78, 0x0b, 0xe3, 0x9b, 0xf8, 0x62, 0xbe, 0x83, 0x61, 0xda, 0x01,
0x5c, 0xba, 0x62, 0xd5, 0xdc, 0xd3, 0x5f, 0x4f, 0xce, 0xe9, 0xdc, 0x81, 0x6b, 0x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