code.vegaprotocol.io/vega@v0.79.0/protos/vega/assets.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc (unknown) 5 // source: vega/assets.proto 6 7 package vega 8 9 import ( 10 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 12 reflect "reflect" 13 sync "sync" 14 ) 15 16 const ( 17 // Verify that this generated code is sufficiently up-to-date. 18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 19 // Verify that runtime/protoimpl is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 21 ) 22 23 type Asset_Status int32 24 25 const ( 26 // Default value, always invalid 27 Asset_STATUS_UNSPECIFIED Asset_Status = 0 28 // Asset is proposed and under vote 29 Asset_STATUS_PROPOSED Asset_Status = 1 30 // Asset has been rejected from governance 31 Asset_STATUS_REJECTED Asset_Status = 2 32 // Asset is pending listing from the bridge 33 Asset_STATUS_PENDING_LISTING Asset_Status = 3 34 // Asset is fully usable in the network 35 Asset_STATUS_ENABLED Asset_Status = 4 36 ) 37 38 // Enum value maps for Asset_Status. 39 var ( 40 Asset_Status_name = map[int32]string{ 41 0: "STATUS_UNSPECIFIED", 42 1: "STATUS_PROPOSED", 43 2: "STATUS_REJECTED", 44 3: "STATUS_PENDING_LISTING", 45 4: "STATUS_ENABLED", 46 } 47 Asset_Status_value = map[string]int32{ 48 "STATUS_UNSPECIFIED": 0, 49 "STATUS_PROPOSED": 1, 50 "STATUS_REJECTED": 2, 51 "STATUS_PENDING_LISTING": 3, 52 "STATUS_ENABLED": 4, 53 } 54 ) 55 56 func (x Asset_Status) Enum() *Asset_Status { 57 p := new(Asset_Status) 58 *p = x 59 return p 60 } 61 62 func (x Asset_Status) String() string { 63 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 64 } 65 66 func (Asset_Status) Descriptor() protoreflect.EnumDescriptor { 67 return file_vega_assets_proto_enumTypes[0].Descriptor() 68 } 69 70 func (Asset_Status) Type() protoreflect.EnumType { 71 return &file_vega_assets_proto_enumTypes[0] 72 } 73 74 func (x Asset_Status) Number() protoreflect.EnumNumber { 75 return protoreflect.EnumNumber(x) 76 } 77 78 // Deprecated: Use Asset_Status.Descriptor instead. 79 func (Asset_Status) EnumDescriptor() ([]byte, []int) { 80 return file_vega_assets_proto_rawDescGZIP(), []int{0, 0} 81 } 82 83 // Vega representation of an external asset 84 type Asset struct { 85 state protoimpl.MessageState 86 sizeCache protoimpl.SizeCache 87 unknownFields protoimpl.UnknownFields 88 89 // Internal identifier of the asset. 90 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 91 // Definition of the external source for this asset. 92 Details *AssetDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` 93 // Status of the asset. 94 Status Asset_Status `protobuf:"varint,3,opt,name=status,proto3,enum=vega.Asset_Status" json:"status,omitempty"` 95 } 96 97 func (x *Asset) Reset() { 98 *x = Asset{} 99 if protoimpl.UnsafeEnabled { 100 mi := &file_vega_assets_proto_msgTypes[0] 101 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 102 ms.StoreMessageInfo(mi) 103 } 104 } 105 106 func (x *Asset) String() string { 107 return protoimpl.X.MessageStringOf(x) 108 } 109 110 func (*Asset) ProtoMessage() {} 111 112 func (x *Asset) ProtoReflect() protoreflect.Message { 113 mi := &file_vega_assets_proto_msgTypes[0] 114 if protoimpl.UnsafeEnabled && x != nil { 115 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 116 if ms.LoadMessageInfo() == nil { 117 ms.StoreMessageInfo(mi) 118 } 119 return ms 120 } 121 return mi.MessageOf(x) 122 } 123 124 // Deprecated: Use Asset.ProtoReflect.Descriptor instead. 125 func (*Asset) Descriptor() ([]byte, []int) { 126 return file_vega_assets_proto_rawDescGZIP(), []int{0} 127 } 128 129 func (x *Asset) GetId() string { 130 if x != nil { 131 return x.Id 132 } 133 return "" 134 } 135 136 func (x *Asset) GetDetails() *AssetDetails { 137 if x != nil { 138 return x.Details 139 } 140 return nil 141 } 142 143 func (x *Asset) GetStatus() Asset_Status { 144 if x != nil { 145 return x.Status 146 } 147 return Asset_STATUS_UNSPECIFIED 148 } 149 150 // Vega representation of an external asset 151 type AssetDetails struct { 152 state protoimpl.MessageState 153 sizeCache protoimpl.SizeCache 154 unknownFields protoimpl.UnknownFields 155 156 // Name of the asset (e.g: Great British Pound). 157 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 158 // Symbol of the asset (e.g: GBP). 159 Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` 160 // Number of decimal / precision handled by this asset. 161 Decimals uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"` 162 // Minimum economically meaningful amount in the asset. 163 Quantum string `protobuf:"bytes,5,opt,name=quantum,proto3" json:"quantum,omitempty"` 164 // Source of the asset 165 // 166 // Types that are assignable to Source: 167 // 168 // *AssetDetails_BuiltinAsset 169 // *AssetDetails_Erc20 170 Source isAssetDetails_Source `protobuf_oneof:"source"` 171 } 172 173 func (x *AssetDetails) Reset() { 174 *x = AssetDetails{} 175 if protoimpl.UnsafeEnabled { 176 mi := &file_vega_assets_proto_msgTypes[1] 177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 178 ms.StoreMessageInfo(mi) 179 } 180 } 181 182 func (x *AssetDetails) String() string { 183 return protoimpl.X.MessageStringOf(x) 184 } 185 186 func (*AssetDetails) ProtoMessage() {} 187 188 func (x *AssetDetails) ProtoReflect() protoreflect.Message { 189 mi := &file_vega_assets_proto_msgTypes[1] 190 if protoimpl.UnsafeEnabled && x != nil { 191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 192 if ms.LoadMessageInfo() == nil { 193 ms.StoreMessageInfo(mi) 194 } 195 return ms 196 } 197 return mi.MessageOf(x) 198 } 199 200 // Deprecated: Use AssetDetails.ProtoReflect.Descriptor instead. 201 func (*AssetDetails) Descriptor() ([]byte, []int) { 202 return file_vega_assets_proto_rawDescGZIP(), []int{1} 203 } 204 205 func (x *AssetDetails) GetName() string { 206 if x != nil { 207 return x.Name 208 } 209 return "" 210 } 211 212 func (x *AssetDetails) GetSymbol() string { 213 if x != nil { 214 return x.Symbol 215 } 216 return "" 217 } 218 219 func (x *AssetDetails) GetDecimals() uint64 { 220 if x != nil { 221 return x.Decimals 222 } 223 return 0 224 } 225 226 func (x *AssetDetails) GetQuantum() string { 227 if x != nil { 228 return x.Quantum 229 } 230 return "" 231 } 232 233 func (m *AssetDetails) GetSource() isAssetDetails_Source { 234 if m != nil { 235 return m.Source 236 } 237 return nil 238 } 239 240 func (x *AssetDetails) GetBuiltinAsset() *BuiltinAsset { 241 if x, ok := x.GetSource().(*AssetDetails_BuiltinAsset); ok { 242 return x.BuiltinAsset 243 } 244 return nil 245 } 246 247 func (x *AssetDetails) GetErc20() *ERC20 { 248 if x, ok := x.GetSource().(*AssetDetails_Erc20); ok { 249 return x.Erc20 250 } 251 return nil 252 } 253 254 type isAssetDetails_Source interface { 255 isAssetDetails_Source() 256 } 257 258 type AssetDetails_BuiltinAsset struct { 259 // Vega built-in asset. 260 BuiltinAsset *BuiltinAsset `protobuf:"bytes,101,opt,name=builtin_asset,json=builtinAsset,proto3,oneof"` 261 } 262 263 type AssetDetails_Erc20 struct { 264 // Ethereum ERC20 asset. 265 Erc20 *ERC20 `protobuf:"bytes,102,opt,name=erc20,proto3,oneof"` 266 } 267 268 func (*AssetDetails_BuiltinAsset) isAssetDetails_Source() {} 269 270 func (*AssetDetails_Erc20) isAssetDetails_Source() {} 271 272 // Vega internal asset 273 type BuiltinAsset struct { 274 state protoimpl.MessageState 275 sizeCache protoimpl.SizeCache 276 unknownFields protoimpl.UnknownFields 277 278 // Maximum amount that can be requested by a party through the built-in asset faucet at a time. 279 MaxFaucetAmountMint string `protobuf:"bytes,1,opt,name=max_faucet_amount_mint,json=maxFaucetAmountMint,proto3" json:"max_faucet_amount_mint,omitempty"` 280 } 281 282 func (x *BuiltinAsset) Reset() { 283 *x = BuiltinAsset{} 284 if protoimpl.UnsafeEnabled { 285 mi := &file_vega_assets_proto_msgTypes[2] 286 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 287 ms.StoreMessageInfo(mi) 288 } 289 } 290 291 func (x *BuiltinAsset) String() string { 292 return protoimpl.X.MessageStringOf(x) 293 } 294 295 func (*BuiltinAsset) ProtoMessage() {} 296 297 func (x *BuiltinAsset) ProtoReflect() protoreflect.Message { 298 mi := &file_vega_assets_proto_msgTypes[2] 299 if protoimpl.UnsafeEnabled && x != nil { 300 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 301 if ms.LoadMessageInfo() == nil { 302 ms.StoreMessageInfo(mi) 303 } 304 return ms 305 } 306 return mi.MessageOf(x) 307 } 308 309 // Deprecated: Use BuiltinAsset.ProtoReflect.Descriptor instead. 310 func (*BuiltinAsset) Descriptor() ([]byte, []int) { 311 return file_vega_assets_proto_rawDescGZIP(), []int{2} 312 } 313 314 func (x *BuiltinAsset) GetMaxFaucetAmountMint() string { 315 if x != nil { 316 return x.MaxFaucetAmountMint 317 } 318 return "" 319 } 320 321 // ERC20 token based asset, living on the ethereum network 322 type ERC20 struct { 323 state protoimpl.MessageState 324 sizeCache protoimpl.SizeCache 325 unknownFields protoimpl.UnknownFields 326 327 // Address of the contract for the token, on the ethereum network. 328 ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` 329 // Lifetime limits deposit per address 330 // note: this is a temporary measure that can be changed by governance. 331 LifetimeLimit string `protobuf:"bytes,2,opt,name=lifetime_limit,json=lifetimeLimit,proto3" json:"lifetime_limit,omitempty"` 332 // Maximum you can withdraw instantly. All withdrawals over the threshold will be delayed by the withdrawal delay. 333 // There’s no limit on the size of a withdrawal 334 // note: this is a temporary measure that can be changed by governance. 335 WithdrawThreshold string `protobuf:"bytes,3,opt,name=withdraw_threshold,json=withdrawThreshold,proto3" json:"withdraw_threshold,omitempty"` 336 // Chain ID the asset originated from. 337 ChainId string `protobuf:"bytes,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` 338 } 339 340 func (x *ERC20) Reset() { 341 *x = ERC20{} 342 if protoimpl.UnsafeEnabled { 343 mi := &file_vega_assets_proto_msgTypes[3] 344 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 345 ms.StoreMessageInfo(mi) 346 } 347 } 348 349 func (x *ERC20) String() string { 350 return protoimpl.X.MessageStringOf(x) 351 } 352 353 func (*ERC20) ProtoMessage() {} 354 355 func (x *ERC20) ProtoReflect() protoreflect.Message { 356 mi := &file_vega_assets_proto_msgTypes[3] 357 if protoimpl.UnsafeEnabled && x != nil { 358 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 359 if ms.LoadMessageInfo() == nil { 360 ms.StoreMessageInfo(mi) 361 } 362 return ms 363 } 364 return mi.MessageOf(x) 365 } 366 367 // Deprecated: Use ERC20.ProtoReflect.Descriptor instead. 368 func (*ERC20) Descriptor() ([]byte, []int) { 369 return file_vega_assets_proto_rawDescGZIP(), []int{3} 370 } 371 372 func (x *ERC20) GetContractAddress() string { 373 if x != nil { 374 return x.ContractAddress 375 } 376 return "" 377 } 378 379 func (x *ERC20) GetLifetimeLimit() string { 380 if x != nil { 381 return x.LifetimeLimit 382 } 383 return "" 384 } 385 386 func (x *ERC20) GetWithdrawThreshold() string { 387 if x != nil { 388 return x.WithdrawThreshold 389 } 390 return "" 391 } 392 393 func (x *ERC20) GetChainId() string { 394 if x != nil { 395 return x.ChainId 396 } 397 return "" 398 } 399 400 // Changes to apply on an existing asset. 401 type AssetDetailsUpdate struct { 402 state protoimpl.MessageState 403 sizeCache protoimpl.SizeCache 404 unknownFields protoimpl.UnknownFields 405 406 // Minimum economically meaningful amount in the asset. 407 Quantum string `protobuf:"bytes,5,opt,name=quantum,proto3" json:"quantum,omitempty"` 408 // Source of the asset update 409 // 410 // Types that are assignable to Source: 411 // 412 // *AssetDetailsUpdate_Erc20 413 Source isAssetDetailsUpdate_Source `protobuf_oneof:"source"` 414 } 415 416 func (x *AssetDetailsUpdate) Reset() { 417 *x = AssetDetailsUpdate{} 418 if protoimpl.UnsafeEnabled { 419 mi := &file_vega_assets_proto_msgTypes[4] 420 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 421 ms.StoreMessageInfo(mi) 422 } 423 } 424 425 func (x *AssetDetailsUpdate) String() string { 426 return protoimpl.X.MessageStringOf(x) 427 } 428 429 func (*AssetDetailsUpdate) ProtoMessage() {} 430 431 func (x *AssetDetailsUpdate) ProtoReflect() protoreflect.Message { 432 mi := &file_vega_assets_proto_msgTypes[4] 433 if protoimpl.UnsafeEnabled && x != nil { 434 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 435 if ms.LoadMessageInfo() == nil { 436 ms.StoreMessageInfo(mi) 437 } 438 return ms 439 } 440 return mi.MessageOf(x) 441 } 442 443 // Deprecated: Use AssetDetailsUpdate.ProtoReflect.Descriptor instead. 444 func (*AssetDetailsUpdate) Descriptor() ([]byte, []int) { 445 return file_vega_assets_proto_rawDescGZIP(), []int{4} 446 } 447 448 func (x *AssetDetailsUpdate) GetQuantum() string { 449 if x != nil { 450 return x.Quantum 451 } 452 return "" 453 } 454 455 func (m *AssetDetailsUpdate) GetSource() isAssetDetailsUpdate_Source { 456 if m != nil { 457 return m.Source 458 } 459 return nil 460 } 461 462 func (x *AssetDetailsUpdate) GetErc20() *ERC20Update { 463 if x, ok := x.GetSource().(*AssetDetailsUpdate_Erc20); ok { 464 return x.Erc20 465 } 466 return nil 467 } 468 469 type isAssetDetailsUpdate_Source interface { 470 isAssetDetailsUpdate_Source() 471 } 472 473 type AssetDetailsUpdate_Erc20 struct { 474 // Ethereum ERC20 asset update. 475 Erc20 *ERC20Update `protobuf:"bytes,101,opt,name=erc20,proto3,oneof"` 476 } 477 478 func (*AssetDetailsUpdate_Erc20) isAssetDetailsUpdate_Source() {} 479 480 type ERC20Update struct { 481 state protoimpl.MessageState 482 sizeCache protoimpl.SizeCache 483 unknownFields protoimpl.UnknownFields 484 485 // Lifetime limits deposit per address. 486 // This will be interpreted against the asset decimals. 487 // note: this is a temporary measure that can be changed by governance. 488 LifetimeLimit string `protobuf:"bytes,1,opt,name=lifetime_limit,json=lifetimeLimit,proto3" json:"lifetime_limit,omitempty"` 489 // Maximum you can withdraw instantly. All withdrawals over the threshold will be delayed by the withdrawal delay. 490 // There’s no limit on the size of a withdrawal 491 // note: this is a temporary measure that can be changed by governance. 492 WithdrawThreshold string `protobuf:"bytes,2,opt,name=withdraw_threshold,json=withdrawThreshold,proto3" json:"withdraw_threshold,omitempty"` 493 } 494 495 func (x *ERC20Update) Reset() { 496 *x = ERC20Update{} 497 if protoimpl.UnsafeEnabled { 498 mi := &file_vega_assets_proto_msgTypes[5] 499 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 500 ms.StoreMessageInfo(mi) 501 } 502 } 503 504 func (x *ERC20Update) String() string { 505 return protoimpl.X.MessageStringOf(x) 506 } 507 508 func (*ERC20Update) ProtoMessage() {} 509 510 func (x *ERC20Update) ProtoReflect() protoreflect.Message { 511 mi := &file_vega_assets_proto_msgTypes[5] 512 if protoimpl.UnsafeEnabled && x != nil { 513 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 514 if ms.LoadMessageInfo() == nil { 515 ms.StoreMessageInfo(mi) 516 } 517 return ms 518 } 519 return mi.MessageOf(x) 520 } 521 522 // Deprecated: Use ERC20Update.ProtoReflect.Descriptor instead. 523 func (*ERC20Update) Descriptor() ([]byte, []int) { 524 return file_vega_assets_proto_rawDescGZIP(), []int{5} 525 } 526 527 func (x *ERC20Update) GetLifetimeLimit() string { 528 if x != nil { 529 return x.LifetimeLimit 530 } 531 return "" 532 } 533 534 func (x *ERC20Update) GetWithdrawThreshold() string { 535 if x != nil { 536 return x.WithdrawThreshold 537 } 538 return "" 539 } 540 541 var File_vega_assets_proto protoreflect.FileDescriptor 542 543 var file_vega_assets_proto_rawDesc = []byte{ 544 0x0a, 0x11, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x70, 0x72, 545 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x76, 0x65, 0x67, 0x61, 0x22, 0xed, 0x01, 0x0a, 0x05, 0x41, 0x73, 546 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 547 0x02, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 548 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x73, 0x73, 0x65, 549 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 550 0x73, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 551 0x0e, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x53, 552 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x7a, 0x0a, 553 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 554 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 555 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x50, 0x4f, 0x53, 556 0x45, 0x44, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 557 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x54, 0x41, 558 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4c, 0x49, 0x53, 0x54, 559 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 560 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x04, 0x22, 0xe0, 0x01, 0x0a, 0x0c, 0x41, 0x73, 561 0x73, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 562 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 563 0x0a, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 564 0x73, 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 565 0x6c, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 566 0x6c, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x75, 0x6d, 0x18, 0x05, 0x20, 567 0x01, 0x28, 0x09, 0x52, 0x07, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 568 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x5f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x65, 0x20, 569 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x74, 570 0x69, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x74, 571 0x69, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x23, 0x0a, 0x05, 0x65, 0x72, 0x63, 0x32, 0x30, 572 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x45, 0x52, 573 0x43, 0x32, 0x30, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x63, 0x32, 0x30, 0x42, 0x08, 0x0a, 0x06, 574 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x43, 0x0a, 0x0c, 575 0x42, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x33, 0x0a, 0x16, 576 0x6d, 0x61, 0x78, 0x5f, 0x66, 0x61, 0x75, 0x63, 0x65, 0x74, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 577 0x74, 0x5f, 0x6d, 0x69, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6d, 0x61, 578 0x78, 0x46, 0x61, 0x75, 0x63, 0x65, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x69, 0x6e, 579 0x74, 0x22, 0xa3, 0x01, 0x0a, 0x05, 0x45, 0x52, 0x43, 0x32, 0x30, 0x12, 0x29, 0x0a, 0x10, 0x63, 580 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 581 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 582 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 583 0x6d, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 584 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2d, 0x0a, 585 0x12, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 586 0x6f, 0x6c, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x77, 0x69, 0x74, 0x68, 0x64, 587 0x72, 0x61, 0x77, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x19, 0x0a, 0x08, 588 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 589 0x63, 0x68, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x7b, 0x0a, 0x12, 0x41, 0x73, 0x73, 0x65, 0x74, 590 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 591 0x07, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 592 0x71, 0x75, 0x61, 0x6e, 0x74, 0x75, 0x6d, 0x12, 0x29, 0x0a, 0x05, 0x65, 0x72, 0x63, 0x32, 0x30, 593 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x2e, 0x45, 0x52, 594 0x43, 0x32, 0x30, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x63, 595 0x32, 0x30, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4a, 0x04, 0x08, 0x01, 596 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 597 0x08, 0x04, 0x10, 0x05, 0x22, 0x63, 0x0a, 0x0b, 0x45, 0x52, 0x43, 0x32, 0x30, 0x55, 0x70, 0x64, 598 0x61, 0x74, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x6c, 0x69, 0x66, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 599 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6c, 0x69, 0x66, 600 0x65, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x77, 0x69, 601 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 602 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x77, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 603 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x42, 0x27, 0x5a, 0x25, 0x63, 0x6f, 0x64, 604 0x65, 0x2e, 0x76, 0x65, 0x67, 0x61, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x69, 605 0x6f, 0x2f, 0x76, 0x65, 0x67, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x76, 0x65, 606 0x67, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 607 } 608 609 var ( 610 file_vega_assets_proto_rawDescOnce sync.Once 611 file_vega_assets_proto_rawDescData = file_vega_assets_proto_rawDesc 612 ) 613 614 func file_vega_assets_proto_rawDescGZIP() []byte { 615 file_vega_assets_proto_rawDescOnce.Do(func() { 616 file_vega_assets_proto_rawDescData = protoimpl.X.CompressGZIP(file_vega_assets_proto_rawDescData) 617 }) 618 return file_vega_assets_proto_rawDescData 619 } 620 621 var file_vega_assets_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 622 var file_vega_assets_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 623 var file_vega_assets_proto_goTypes = []interface{}{ 624 (Asset_Status)(0), // 0: vega.Asset.Status 625 (*Asset)(nil), // 1: vega.Asset 626 (*AssetDetails)(nil), // 2: vega.AssetDetails 627 (*BuiltinAsset)(nil), // 3: vega.BuiltinAsset 628 (*ERC20)(nil), // 4: vega.ERC20 629 (*AssetDetailsUpdate)(nil), // 5: vega.AssetDetailsUpdate 630 (*ERC20Update)(nil), // 6: vega.ERC20Update 631 } 632 var file_vega_assets_proto_depIdxs = []int32{ 633 2, // 0: vega.Asset.details:type_name -> vega.AssetDetails 634 0, // 1: vega.Asset.status:type_name -> vega.Asset.Status 635 3, // 2: vega.AssetDetails.builtin_asset:type_name -> vega.BuiltinAsset 636 4, // 3: vega.AssetDetails.erc20:type_name -> vega.ERC20 637 6, // 4: vega.AssetDetailsUpdate.erc20:type_name -> vega.ERC20Update 638 5, // [5:5] is the sub-list for method output_type 639 5, // [5:5] is the sub-list for method input_type 640 5, // [5:5] is the sub-list for extension type_name 641 5, // [5:5] is the sub-list for extension extendee 642 0, // [0:5] is the sub-list for field type_name 643 } 644 645 func init() { file_vega_assets_proto_init() } 646 func file_vega_assets_proto_init() { 647 if File_vega_assets_proto != nil { 648 return 649 } 650 if !protoimpl.UnsafeEnabled { 651 file_vega_assets_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 652 switch v := v.(*Asset); i { 653 case 0: 654 return &v.state 655 case 1: 656 return &v.sizeCache 657 case 2: 658 return &v.unknownFields 659 default: 660 return nil 661 } 662 } 663 file_vega_assets_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 664 switch v := v.(*AssetDetails); i { 665 case 0: 666 return &v.state 667 case 1: 668 return &v.sizeCache 669 case 2: 670 return &v.unknownFields 671 default: 672 return nil 673 } 674 } 675 file_vega_assets_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 676 switch v := v.(*BuiltinAsset); i { 677 case 0: 678 return &v.state 679 case 1: 680 return &v.sizeCache 681 case 2: 682 return &v.unknownFields 683 default: 684 return nil 685 } 686 } 687 file_vega_assets_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 688 switch v := v.(*ERC20); i { 689 case 0: 690 return &v.state 691 case 1: 692 return &v.sizeCache 693 case 2: 694 return &v.unknownFields 695 default: 696 return nil 697 } 698 } 699 file_vega_assets_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 700 switch v := v.(*AssetDetailsUpdate); i { 701 case 0: 702 return &v.state 703 case 1: 704 return &v.sizeCache 705 case 2: 706 return &v.unknownFields 707 default: 708 return nil 709 } 710 } 711 file_vega_assets_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 712 switch v := v.(*ERC20Update); i { 713 case 0: 714 return &v.state 715 case 1: 716 return &v.sizeCache 717 case 2: 718 return &v.unknownFields 719 default: 720 return nil 721 } 722 } 723 } 724 file_vega_assets_proto_msgTypes[1].OneofWrappers = []interface{}{ 725 (*AssetDetails_BuiltinAsset)(nil), 726 (*AssetDetails_Erc20)(nil), 727 } 728 file_vega_assets_proto_msgTypes[4].OneofWrappers = []interface{}{ 729 (*AssetDetailsUpdate_Erc20)(nil), 730 } 731 type x struct{} 732 out := protoimpl.TypeBuilder{ 733 File: protoimpl.DescBuilder{ 734 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 735 RawDescriptor: file_vega_assets_proto_rawDesc, 736 NumEnums: 1, 737 NumMessages: 6, 738 NumExtensions: 0, 739 NumServices: 0, 740 }, 741 GoTypes: file_vega_assets_proto_goTypes, 742 DependencyIndexes: file_vega_assets_proto_depIdxs, 743 EnumInfos: file_vega_assets_proto_enumTypes, 744 MessageInfos: file_vega_assets_proto_msgTypes, 745 }.Build() 746 File_vega_assets_proto = out.File 747 file_vega_assets_proto_rawDesc = nil 748 file_vega_assets_proto_goTypes = nil 749 file_vega_assets_proto_depIdxs = nil 750 }