/
storage_contract.pb.go
240 lines (209 loc) · 9.1 KB
/
storage_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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: core/contract/storage_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 BuyStorageBytesContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuyStorageBytesContract) Reset() { *m = BuyStorageBytesContract{} }
func (m *BuyStorageBytesContract) String() string { return proto.CompactTextString(m) }
func (*BuyStorageBytesContract) ProtoMessage() {}
func (*BuyStorageBytesContract) Descriptor() ([]byte, []int) {
return fileDescriptor_fb2d446a78170b16, []int{0}
}
func (m *BuyStorageBytesContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuyStorageBytesContract.Unmarshal(m, b)
}
func (m *BuyStorageBytesContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuyStorageBytesContract.Marshal(b, m, deterministic)
}
func (m *BuyStorageBytesContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuyStorageBytesContract.Merge(m, src)
}
func (m *BuyStorageBytesContract) XXX_Size() int {
return xxx_messageInfo_BuyStorageBytesContract.Size(m)
}
func (m *BuyStorageBytesContract) XXX_DiscardUnknown() {
xxx_messageInfo_BuyStorageBytesContract.DiscardUnknown(m)
}
var xxx_messageInfo_BuyStorageBytesContract proto.InternalMessageInfo
func (m *BuyStorageBytesContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *BuyStorageBytesContract) GetBytes() int64 {
if m != nil {
return m.Bytes
}
return 0
}
type BuyStorageContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
Quant int64 `protobuf:"varint,2,opt,name=quant,proto3" json:"quant,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuyStorageContract) Reset() { *m = BuyStorageContract{} }
func (m *BuyStorageContract) String() string { return proto.CompactTextString(m) }
func (*BuyStorageContract) ProtoMessage() {}
func (*BuyStorageContract) Descriptor() ([]byte, []int) {
return fileDescriptor_fb2d446a78170b16, []int{1}
}
func (m *BuyStorageContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuyStorageContract.Unmarshal(m, b)
}
func (m *BuyStorageContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuyStorageContract.Marshal(b, m, deterministic)
}
func (m *BuyStorageContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuyStorageContract.Merge(m, src)
}
func (m *BuyStorageContract) XXX_Size() int {
return xxx_messageInfo_BuyStorageContract.Size(m)
}
func (m *BuyStorageContract) XXX_DiscardUnknown() {
xxx_messageInfo_BuyStorageContract.DiscardUnknown(m)
}
var xxx_messageInfo_BuyStorageContract proto.InternalMessageInfo
func (m *BuyStorageContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *BuyStorageContract) GetQuant() int64 {
if m != nil {
return m.Quant
}
return 0
}
type SellStorageContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
StorageBytes int64 `protobuf:"varint,2,opt,name=storage_bytes,json=storageBytes,proto3" json:"storage_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SellStorageContract) Reset() { *m = SellStorageContract{} }
func (m *SellStorageContract) String() string { return proto.CompactTextString(m) }
func (*SellStorageContract) ProtoMessage() {}
func (*SellStorageContract) Descriptor() ([]byte, []int) {
return fileDescriptor_fb2d446a78170b16, []int{2}
}
func (m *SellStorageContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SellStorageContract.Unmarshal(m, b)
}
func (m *SellStorageContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SellStorageContract.Marshal(b, m, deterministic)
}
func (m *SellStorageContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_SellStorageContract.Merge(m, src)
}
func (m *SellStorageContract) XXX_Size() int {
return xxx_messageInfo_SellStorageContract.Size(m)
}
func (m *SellStorageContract) XXX_DiscardUnknown() {
xxx_messageInfo_SellStorageContract.DiscardUnknown(m)
}
var xxx_messageInfo_SellStorageContract proto.InternalMessageInfo
func (m *SellStorageContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *SellStorageContract) GetStorageBytes() int64 {
if m != nil {
return m.StorageBytes
}
return 0
}
type UpdateBrokerageContract struct {
OwnerAddress []byte `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
Brokerage int32 `protobuf:"varint,2,opt,name=brokerage,proto3" json:"brokerage,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UpdateBrokerageContract) Reset() { *m = UpdateBrokerageContract{} }
func (m *UpdateBrokerageContract) String() string { return proto.CompactTextString(m) }
func (*UpdateBrokerageContract) ProtoMessage() {}
func (*UpdateBrokerageContract) Descriptor() ([]byte, []int) {
return fileDescriptor_fb2d446a78170b16, []int{3}
}
func (m *UpdateBrokerageContract) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateBrokerageContract.Unmarshal(m, b)
}
func (m *UpdateBrokerageContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UpdateBrokerageContract.Marshal(b, m, deterministic)
}
func (m *UpdateBrokerageContract) XXX_Merge(src proto.Message) {
xxx_messageInfo_UpdateBrokerageContract.Merge(m, src)
}
func (m *UpdateBrokerageContract) XXX_Size() int {
return xxx_messageInfo_UpdateBrokerageContract.Size(m)
}
func (m *UpdateBrokerageContract) XXX_DiscardUnknown() {
xxx_messageInfo_UpdateBrokerageContract.DiscardUnknown(m)
}
var xxx_messageInfo_UpdateBrokerageContract proto.InternalMessageInfo
func (m *UpdateBrokerageContract) GetOwnerAddress() []byte {
if m != nil {
return m.OwnerAddress
}
return nil
}
func (m *UpdateBrokerageContract) GetBrokerage() int32 {
if m != nil {
return m.Brokerage
}
return 0
}
func init() {
proto.RegisterType((*BuyStorageBytesContract)(nil), "protocol.BuyStorageBytesContract")
proto.RegisterType((*BuyStorageContract)(nil), "protocol.BuyStorageContract")
proto.RegisterType((*SellStorageContract)(nil), "protocol.SellStorageContract")
proto.RegisterType((*UpdateBrokerageContract)(nil), "protocol.UpdateBrokerageContract")
}
func init() {
proto.RegisterFile("core/contract/storage_contract.proto", fileDescriptor_fb2d446a78170b16)
}
var fileDescriptor_fb2d446a78170b16 = []byte{
// 246 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0x31, 0x4f, 0xc3, 0x30,
0x10, 0x85, 0x15, 0x50, 0x11, 0x9c, 0xd2, 0x25, 0x20, 0x35, 0x03, 0x43, 0x49, 0x19, 0x3a, 0xc5,
0x03, 0x33, 0x03, 0xe1, 0x07, 0x20, 0xa5, 0xb0, 0x20, 0xa4, 0xc8, 0x76, 0x8e, 0x50, 0x11, 0x72,
0xe5, 0x7c, 0x11, 0xea, 0xbf, 0x47, 0x71, 0xb0, 0xda, 0x35, 0x4c, 0xd6, 0x3d, 0xbd, 0xf7, 0x9d,
0xed, 0x07, 0xb7, 0x96, 0x18, 0x95, 0xa5, 0x4e, 0x58, 0x5b, 0x51, 0x4e, 0x88, 0x75, 0x83, 0x55,
0x10, 0xf2, 0x1d, 0x93, 0x50, 0x72, 0xee, 0x0f, 0x4b, 0x6d, 0xf6, 0x0c, 0x8b, 0xa2, 0xdf, 0x6f,
0x46, 0x5b, 0xb1, 0x17, 0x74, 0x8f, 0x7f, 0xd6, 0x64, 0x05, 0x73, 0xfa, 0xe9, 0x90, 0x2b, 0x5d,
0xd7, 0x8c, 0xce, 0xa5, 0xd1, 0x32, 0x5a, 0xc7, 0x65, 0xec, 0xc5, 0x87, 0x51, 0x4b, 0xae, 0x60,
0x66, 0x86, 0x54, 0x7a, 0xb2, 0x8c, 0xd6, 0xa7, 0xe5, 0x38, 0x64, 0x4f, 0x90, 0x1c, 0xa8, 0x93,
0x81, 0xdf, 0xbd, 0xee, 0x24, 0x00, 0xfd, 0x90, 0x55, 0x70, 0xb9, 0xc1, 0xb6, 0xfd, 0x17, 0x71,
0x05, 0xf3, 0xf0, 0x0d, 0xc7, 0x57, 0x8d, 0xdd, 0xd1, 0xa3, 0xb3, 0x37, 0x58, 0xbc, 0xec, 0x6a,
0x2d, 0x58, 0x30, 0x7d, 0xe2, 0xf4, 0x25, 0xd7, 0x70, 0x61, 0x42, 0xd2, 0x2f, 0x98, 0x95, 0x07,
0xa1, 0xb8, 0x87, 0x94, 0xb8, 0xc9, 0x85, 0xa9, 0x1b, 0x1b, 0x70, 0x79, 0x68, 0xe4, 0xf5, 0xa6,
0xd9, 0xca, 0x47, 0x6f, 0x72, 0x4b, 0x5f, 0xea, 0xdd, 0x38, 0x32, 0x8c, 0x5b, 0xd6, 0xaa, 0xa1,
0xc1, 0xad, 0x86, 0x3a, 0xcd, 0x99, 0xcf, 0xdc, 0xfd, 0x06, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xc5,
0x4d, 0x27, 0xdd, 0x01, 0x00, 0x00,
}