You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

166 lines
2.4 KiB

  1. package test
  2. // sets of instructions to use in tests of other packages
  3. // line can be Deposit:
  4. // A (1): 10
  5. // (deposit to A, TokenID 1, 10 units)
  6. // or Transfer:
  7. // A-B (1): 6 1
  8. // (transfer from A to B, TokenID 1, 6 units, with fee 1)
  9. // or Withdraw:
  10. // A (1) E: 4
  11. // exit to A, TokenID 1, 4 units)
  12. // or NextBatch:
  13. // > and here the comment
  14. // move one batch forward
  15. // SetTest0 has 3 batches, 29 different accounts, with:
  16. // - 3 TokenIDs
  17. // - 29+5+10 L1 txs (deposits & exits)
  18. // - 21+53+7 L2 transactions
  19. var SetTest0 = `
  20. // deposits TokenID: 1
  21. A (1): 50
  22. B (1): 5
  23. C (1): 20
  24. D (1): 25
  25. E (1): 25
  26. F (1): 25
  27. G (1): 25
  28. H (1): 25
  29. I (1): 25
  30. J (1): 25
  31. K (1): 25
  32. L (1): 25
  33. M (1): 25
  34. N (1): 25
  35. O (1): 25
  36. P (1): 25
  37. Q (1): 25
  38. R (1): 25
  39. S (1): 25
  40. T (1): 25
  41. U (1): 25
  42. V (1): 25
  43. W (1): 25
  44. X (1): 25
  45. Y (1): 25
  46. Z (1): 25
  47. // deposits TokenID: 2
  48. B (2): 5
  49. A (2): 20
  50. // deposits TokenID: 3
  51. B (3): 100
  52. // transactions TokenID: 1
  53. A-B (1): 5 1
  54. A-L (1): 10 1
  55. A-M (1): 5 1
  56. A-N (1): 5 1
  57. A-O (1): 5 1
  58. B-C (1): 3 1
  59. C-A (1): 3 255
  60. D-A (1): 5 1
  61. D-Z (1): 5 1
  62. D-Y (1): 5 1
  63. D-X (1): 5 1
  64. E-Z (1): 5 2
  65. E-Y (1): 5 1
  66. E-X (1): 5 1
  67. F-Z (1): 5 1
  68. G-K (1): 3 1
  69. G-K (1): 3 1
  70. G-K (1): 3 1
  71. H-K (1): 3 2
  72. H-K (1): 3 1
  73. H-K (1): 3 1
  74. > batch1
  75. // A (3) still does not exist, coordinator should create new L1Tx to create the account
  76. B-A (3): 5 1
  77. A-B (2): 5 1
  78. I-K (1): 3 1
  79. I-K (1): 3 1
  80. I-K (1): 3 1
  81. J-K (1): 3 1
  82. J-K (1): 3 1
  83. J-K (1): 3 1
  84. K-J (1): 3 1
  85. L-A (1): 5 1
  86. L-Z (1): 5 1
  87. L-Y (1): 5 1
  88. L-X (1): 5 1
  89. M-A (1): 5 1
  90. M-Z (1): 5 1
  91. M-Y (1): 5 1
  92. N-A (1): 5 1
  93. N-Z (1): 5 2
  94. N-Y (1): 5 1
  95. O-T (1): 3 1
  96. O-U (1): 3 1
  97. O-V (1): 3 1
  98. P-T (1): 3 1
  99. P-U (1): 3 1
  100. P-V (1): 3 5
  101. Q-O (1): 3 1
  102. Q-P (1): 3 1
  103. R-O (1): 3 1
  104. R-P (1): 3 1
  105. R-Q (1): 3 1
  106. S-O (1): 3 1
  107. S-P (1): 3 1
  108. S-Q (1): 3 1
  109. T-O (1): 3 1
  110. T-P (1): 3 1
  111. T-Q (1): 3 1
  112. U-Z (1): 5 3
  113. U-Y (1): 5 1
  114. U-T (1): 3 1
  115. V-Z (1): 5 0
  116. V-Y (1): 6 1
  117. V-T (1): 3 1
  118. W-K (1): 3 1
  119. W-J (1): 3 1
  120. W-A (1): 5 1
  121. W-Z (1): 5 1
  122. X-B (1): 5 1
  123. X-C (1): 5 50
  124. X-D (1): 5 1
  125. X-E (1): 5 1
  126. Y-B (1): 5 1
  127. Y-C (1): 5 1
  128. Y-D (1): 5 1
  129. Y-E (1): 5 1
  130. Z-A (1): 5 1
  131. // exits
  132. A (1) E: 5
  133. K (1) E: 5
  134. X (1) E: 5
  135. Y (1) E: 5
  136. Z (1) E: 5
  137. > batch2
  138. A (1): 50
  139. B (1): 5
  140. C (1): 20
  141. D (1): 25
  142. E (1): 25
  143. F (1): 25
  144. G (1): 25
  145. H (1): 25
  146. I (1): 25
  147. A-B (1): 5 1
  148. A-L (1): 10 1
  149. A-M (1): 5 1
  150. B-N (1): 5 1
  151. C-O (1): 5 1
  152. H-O (1): 5 1
  153. I-H (1): 5 1
  154. A (1) E: 5
  155. `