Advertisement
Guest User

y12coin-v4.proto

a guest
Nov 20th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. package y12.tw;
  2. // v4
  3. message Y12Meta {
  4.  
  5. enum Type {
  6. COMMON = 1;
  7. COMMON_ARRAY = 11;
  8. FILE_EXIST = 21;
  9. ASSET_GENESIS = 31;
  10. ASSET_TRANSCATION = 32;
  11. }
  12.  
  13. message Common {
  14. optional string valueString = 1;
  15. optional int32 valueInt32 = 2;
  16. optional bytes valueBytes = 3;
  17. }
  18.  
  19. message CommonArray {
  20. repeated string arrString = 1 [packed=true];
  21. repeated int32 arrInt32 = 2 [packed=true];
  22. repeated bytes arrBytes = 3 [packed=true];
  23. }
  24.  
  25. message FileExist {
  26. required bytes hash = 1;
  27. optional string title = 2;
  28. optional int32 size = 3;
  29. }
  30.  
  31. message AssetGenesis {
  32. required string name = 1;
  33. required string domain = 2;
  34. required int32 qty = 3;
  35. }
  36.  
  37. message AssetTranscation {
  38. required string number = 1;
  39. }
  40.  
  41. required Type type = 1;
  42. optional Common common = 2;
  43. optional CommonArray commonArray = 3;
  44. optional FileExist fileExist = 4;
  45. optional AssetGenesis assetGenesis = 5;
  46. optional AssetTranscation assetTranscation = 6;
  47.  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement