This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
assets.pb.go
318 lines (276 loc) · 10.8 KB
/
assets.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: vega/assets.proto
package vega
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
)
// 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
// The Vega representation of an external asset
type Asset struct {
// Internal identifier of the asset
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// The definition of the external source for this asset
Details *AssetDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Asset) Reset() { *m = Asset{} }
func (m *Asset) String() string { return proto.CompactTextString(m) }
func (*Asset) ProtoMessage() {}
func (*Asset) Descriptor() ([]byte, []int) {
return fileDescriptor_6fa9a099d51ec55d, []int{0}
}
func (m *Asset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Asset.Unmarshal(m, b)
}
func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Asset.Marshal(b, m, deterministic)
}
func (m *Asset) XXX_Merge(src proto.Message) {
xxx_messageInfo_Asset.Merge(m, src)
}
func (m *Asset) XXX_Size() int {
return xxx_messageInfo_Asset.Size(m)
}
func (m *Asset) XXX_DiscardUnknown() {
xxx_messageInfo_Asset.DiscardUnknown(m)
}
var xxx_messageInfo_Asset proto.InternalMessageInfo
func (m *Asset) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Asset) GetDetails() *AssetDetails {
if m != nil {
return m.Details
}
return nil
}
// The Vega representation of an external asset
type AssetDetails struct {
// Name of the asset (e.g: Great British Pound)
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Symbol of the asset (e.g: GBP)
Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
// Total circulating supply for the asset
TotalSupply string `protobuf:"bytes,3,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply,omitempty"`
// Number of decimal / precision handled by this asset
Decimals uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
// Min stake required for this asset from liquidity providers
MinLpStake string `protobuf:"bytes,5,opt,name=min_lp_stake,json=minLpStake,proto3" json:"min_lp_stake,omitempty"`
// The source
//
// Types that are valid to be assigned to Source:
// *AssetDetails_BuiltinAsset
// *AssetDetails_Erc20
Source isAssetDetails_Source `protobuf_oneof:"source"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AssetDetails) Reset() { *m = AssetDetails{} }
func (m *AssetDetails) String() string { return proto.CompactTextString(m) }
func (*AssetDetails) ProtoMessage() {}
func (*AssetDetails) Descriptor() ([]byte, []int) {
return fileDescriptor_6fa9a099d51ec55d, []int{1}
}
func (m *AssetDetails) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AssetDetails.Unmarshal(m, b)
}
func (m *AssetDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AssetDetails.Marshal(b, m, deterministic)
}
func (m *AssetDetails) XXX_Merge(src proto.Message) {
xxx_messageInfo_AssetDetails.Merge(m, src)
}
func (m *AssetDetails) XXX_Size() int {
return xxx_messageInfo_AssetDetails.Size(m)
}
func (m *AssetDetails) XXX_DiscardUnknown() {
xxx_messageInfo_AssetDetails.DiscardUnknown(m)
}
var xxx_messageInfo_AssetDetails proto.InternalMessageInfo
func (m *AssetDetails) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *AssetDetails) GetSymbol() string {
if m != nil {
return m.Symbol
}
return ""
}
func (m *AssetDetails) GetTotalSupply() string {
if m != nil {
return m.TotalSupply
}
return ""
}
func (m *AssetDetails) GetDecimals() uint64 {
if m != nil {
return m.Decimals
}
return 0
}
func (m *AssetDetails) GetMinLpStake() string {
if m != nil {
return m.MinLpStake
}
return ""
}
type isAssetDetails_Source interface {
isAssetDetails_Source()
}
type AssetDetails_BuiltinAsset struct {
BuiltinAsset *BuiltinAsset `protobuf:"bytes,101,opt,name=builtin_asset,json=builtinAsset,proto3,oneof"`
}
type AssetDetails_Erc20 struct {
Erc20 *ERC20 `protobuf:"bytes,102,opt,name=erc20,proto3,oneof"`
}
func (*AssetDetails_BuiltinAsset) isAssetDetails_Source() {}
func (*AssetDetails_Erc20) isAssetDetails_Source() {}
func (m *AssetDetails) GetSource() isAssetDetails_Source {
if m != nil {
return m.Source
}
return nil
}
func (m *AssetDetails) GetBuiltinAsset() *BuiltinAsset {
if x, ok := m.GetSource().(*AssetDetails_BuiltinAsset); ok {
return x.BuiltinAsset
}
return nil
}
func (m *AssetDetails) GetErc20() *ERC20 {
if x, ok := m.GetSource().(*AssetDetails_Erc20); ok {
return x.Erc20
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*AssetDetails) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*AssetDetails_BuiltinAsset)(nil),
(*AssetDetails_Erc20)(nil),
}
}
// A Vega internal asset
type BuiltinAsset struct {
// Maximum amount that can be requested by a party through the built-in asset faucet at a time
MaxFaucetAmountMint string `protobuf:"bytes,1,opt,name=max_faucet_amount_mint,json=maxFaucetAmountMint,proto3" json:"max_faucet_amount_mint,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BuiltinAsset) Reset() { *m = BuiltinAsset{} }
func (m *BuiltinAsset) String() string { return proto.CompactTextString(m) }
func (*BuiltinAsset) ProtoMessage() {}
func (*BuiltinAsset) Descriptor() ([]byte, []int) {
return fileDescriptor_6fa9a099d51ec55d, []int{2}
}
func (m *BuiltinAsset) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BuiltinAsset.Unmarshal(m, b)
}
func (m *BuiltinAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BuiltinAsset.Marshal(b, m, deterministic)
}
func (m *BuiltinAsset) XXX_Merge(src proto.Message) {
xxx_messageInfo_BuiltinAsset.Merge(m, src)
}
func (m *BuiltinAsset) XXX_Size() int {
return xxx_messageInfo_BuiltinAsset.Size(m)
}
func (m *BuiltinAsset) XXX_DiscardUnknown() {
xxx_messageInfo_BuiltinAsset.DiscardUnknown(m)
}
var xxx_messageInfo_BuiltinAsset proto.InternalMessageInfo
func (m *BuiltinAsset) GetMaxFaucetAmountMint() string {
if m != nil {
return m.MaxFaucetAmountMint
}
return ""
}
// An ERC20 token based asset, living on the ethereum network
type ERC20 struct {
// The address of the contract for the token, on the ethereum network
ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ERC20) Reset() { *m = ERC20{} }
func (m *ERC20) String() string { return proto.CompactTextString(m) }
func (*ERC20) ProtoMessage() {}
func (*ERC20) Descriptor() ([]byte, []int) {
return fileDescriptor_6fa9a099d51ec55d, []int{3}
}
func (m *ERC20) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ERC20.Unmarshal(m, b)
}
func (m *ERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ERC20.Marshal(b, m, deterministic)
}
func (m *ERC20) XXX_Merge(src proto.Message) {
xxx_messageInfo_ERC20.Merge(m, src)
}
func (m *ERC20) XXX_Size() int {
return xxx_messageInfo_ERC20.Size(m)
}
func (m *ERC20) XXX_DiscardUnknown() {
xxx_messageInfo_ERC20.DiscardUnknown(m)
}
var xxx_messageInfo_ERC20 proto.InternalMessageInfo
func (m *ERC20) GetContractAddress() string {
if m != nil {
return m.ContractAddress
}
return ""
}
func init() {
proto.RegisterType((*Asset)(nil), "vega.Asset")
proto.RegisterType((*AssetDetails)(nil), "vega.AssetDetails")
proto.RegisterType((*BuiltinAsset)(nil), "vega.BuiltinAsset")
proto.RegisterType((*ERC20)(nil), "vega.ERC20")
}
func init() { proto.RegisterFile("vega/assets.proto", fileDescriptor_6fa9a099d51ec55d) }
var fileDescriptor_6fa9a099d51ec55d = []byte{
// 362 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02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