@typus/typus-perp-sdk 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/dist/src/_dependencies/source/0x1/ascii/structs.d.ts +92 -0
  2. package/dist/src/_dependencies/source/0x1/ascii/structs.js +398 -0
  3. package/dist/src/_dependencies/source/0x1/bit-vector/structs.d.ts +56 -0
  4. package/dist/src/_dependencies/source/0x1/bit-vector/structs.js +268 -0
  5. package/dist/src/_dependencies/source/0x1/fixed-point32/structs.d.ts +46 -0
  6. package/dist/src/_dependencies/source/0x1/fixed-point32/structs.js +222 -0
  7. package/dist/src/_dependencies/source/0x1/index.d.ts +3 -0
  8. package/dist/src/_dependencies/source/0x1/index.js +6 -0
  9. package/dist/src/_dependencies/source/0x1/init.d.ts +2 -0
  10. package/dist/src/_dependencies/source/0x1/init.js +55 -0
  11. package/dist/src/_dependencies/source/0x1/option/structs.d.ts +52 -0
  12. package/dist/src/_dependencies/source/0x1/option/structs.js +271 -0
  13. package/dist/src/_dependencies/source/0x1/string/structs.d.ts +50 -0
  14. package/dist/src/_dependencies/source/0x1/string/structs.js +256 -0
  15. package/dist/src/_dependencies/source/0x1/type-name/structs.d.ts +53 -0
  16. package/dist/src/_dependencies/source/0x1/type-name/structs.js +223 -0
  17. package/dist/src/_dependencies/source/0x1/uq32-32/structs.d.ts +46 -0
  18. package/dist/src/_dependencies/source/0x1/uq32-32/structs.js +222 -0
  19. package/dist/src/_dependencies/source/0x1/uq64-64/structs.d.ts +46 -0
  20. package/dist/src/_dependencies/source/0x1/uq64-64/structs.js +222 -0
  21. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +5 -0
  22. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +8 -0
  23. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +2 -0
  24. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +50 -0
  25. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +350 -0
  26. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +794 -0
  27. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +111 -0
  28. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +389 -0
  29. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +70 -0
  30. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +252 -0
  31. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +70 -0
  32. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +252 -0
  33. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.d.ts +464 -0
  34. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +904 -0
  35. package/dist/src/_dependencies/source/0x2/bag/structs.d.ts +61 -0
  36. package/dist/src/_dependencies/source/0x2/bag/structs.js +229 -0
  37. package/dist/src/_dependencies/source/0x2/balance/structs.d.ts +88 -0
  38. package/dist/src/_dependencies/source/0x2/balance/structs.js +386 -0
  39. package/dist/src/_dependencies/source/0x2/bcs/structs.d.ts +50 -0
  40. package/dist/src/_dependencies/source/0x2/bcs/structs.js +256 -0
  41. package/dist/src/_dependencies/source/0x2/bls12381/structs.d.ts +214 -0
  42. package/dist/src/_dependencies/source/0x2/bls12381/structs.js +790 -0
  43. package/dist/src/_dependencies/source/0x2/borrow/structs.d.ts +113 -0
  44. package/dist/src/_dependencies/source/0x2/borrow/structs.js +398 -0
  45. package/dist/src/_dependencies/source/0x2/clock/structs.d.ts +61 -0
  46. package/dist/src/_dependencies/source/0x2/clock/structs.js +235 -0
  47. package/dist/src/_dependencies/source/0x2/coin/structs.d.ts +460 -0
  48. package/dist/src/_dependencies/source/0x2/coin/structs.js +1247 -0
  49. package/dist/src/_dependencies/source/0x2/config/structs.d.ts +179 -0
  50. package/dist/src/_dependencies/source/0x2/config/structs.js +567 -0
  51. package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +430 -0
  52. package/dist/src/_dependencies/source/0x2/deny-list/structs.js +1166 -0
  53. package/dist/src/_dependencies/source/0x2/display/structs.d.ts +241 -0
  54. package/dist/src/_dependencies/source/0x2/display/structs.js +578 -0
  55. package/dist/src/_dependencies/source/0x2/dynamic-field/structs.d.ts +68 -0
  56. package/dist/src/_dependencies/source/0x2/dynamic-field/structs.js +256 -0
  57. package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +47 -0
  58. package/dist/src/_dependencies/source/0x2/dynamic-object-field/structs.js +236 -0
  59. package/dist/src/_dependencies/source/0x2/groth16/structs.d.ts +204 -0
  60. package/dist/src/_dependencies/source/0x2/groth16/structs.js +706 -0
  61. package/dist/src/_dependencies/source/0x2/group-ops/structs.d.ts +50 -0
  62. package/dist/src/_dependencies/source/0x2/group-ops/structs.js +267 -0
  63. package/dist/src/_dependencies/source/0x2/index.d.ts +3 -0
  64. package/dist/src/_dependencies/source/0x2/index.js +6 -0
  65. package/dist/src/_dependencies/source/0x2/init.d.ts +2 -0
  66. package/dist/src/_dependencies/source/0x2/init.js +171 -0
  67. package/dist/src/_dependencies/source/0x2/kiosk/structs.d.ts +606 -0
  68. package/dist/src/_dependencies/source/0x2/kiosk/structs.js +1719 -0
  69. package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.d.ts +121 -0
  70. package/dist/src/_dependencies/source/0x2/kiosk-extension/structs.js +394 -0
  71. package/dist/src/_dependencies/source/0x2/linked-table/structs.d.ts +153 -0
  72. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +438 -0
  73. package/dist/src/_dependencies/source/0x2/object/structs.d.ts +92 -0
  74. package/dist/src/_dependencies/source/0x2/object/structs.js +364 -0
  75. package/dist/src/_dependencies/source/0x2/object-bag/structs.d.ts +61 -0
  76. package/dist/src/_dependencies/source/0x2/object-bag/structs.js +229 -0
  77. package/dist/src/_dependencies/source/0x2/object-table/structs.d.ts +61 -0
  78. package/dist/src/_dependencies/source/0x2/object-table/structs.js +248 -0
  79. package/dist/src/_dependencies/source/0x2/package/structs.d.ts +280 -0
  80. package/dist/src/_dependencies/source/0x2/package/structs.js +762 -0
  81. package/dist/src/_dependencies/source/0x2/priority-queue/structs.d.ts +111 -0
  82. package/dist/src/_dependencies/source/0x2/priority-queue/structs.js +440 -0
  83. package/dist/src/_dependencies/source/0x2/random/structs.d.ts +204 -0
  84. package/dist/src/_dependencies/source/0x2/random/structs.js +596 -0
  85. package/dist/src/_dependencies/source/0x2/sui/structs.d.ts +46 -0
  86. package/dist/src/_dependencies/source/0x2/sui/structs.js +222 -0
  87. package/dist/src/_dependencies/source/0x2/table/structs.d.ts +61 -0
  88. package/dist/src/_dependencies/source/0x2/table/structs.js +248 -0
  89. package/dist/src/_dependencies/source/0x2/table-vec/structs.d.ts +68 -0
  90. package/dist/src/_dependencies/source/0x2/table-vec/structs.js +274 -0
  91. package/dist/src/_dependencies/source/0x2/token/structs.d.ts +449 -0
  92. package/dist/src/_dependencies/source/0x2/token/structs.js +1095 -0
  93. package/dist/src/_dependencies/source/0x2/transfer/structs.d.ts +57 -0
  94. package/dist/src/_dependencies/source/0x2/transfer/structs.js +246 -0
  95. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.d.ts +370 -0
  96. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +1091 -0
  97. package/dist/src/_dependencies/source/0x2/tx-context/structs.d.ts +74 -0
  98. package/dist/src/_dependencies/source/0x2/tx-context/structs.js +286 -0
  99. package/dist/src/_dependencies/source/0x2/url/structs.d.ts +53 -0
  100. package/dist/src/_dependencies/source/0x2/url/structs.js +223 -0
  101. package/dist/src/_dependencies/source/0x2/vec-map/structs.d.ts +111 -0
  102. package/dist/src/_dependencies/source/0x2/vec-map/structs.js +446 -0
  103. package/dist/src/_dependencies/source/0x2/vec-set/structs.d.ts +51 -0
  104. package/dist/src/_dependencies/source/0x2/vec-set/structs.js +270 -0
  105. package/dist/src/_dependencies/source/0x2/versioned/structs.d.ts +113 -0
  106. package/dist/src/_dependencies/source/0x2/versioned/structs.js +389 -0
  107. package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +110 -0
  108. package/dist/src/_dependencies/source/0x2/zklogin-verified-id/structs.js +260 -0
  109. package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +74 -0
  110. package/dist/src/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +242 -0
  111. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +3 -0
  112. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +6 -0
  113. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +2 -0
  114. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +40 -0
  115. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +55 -0
  116. package/dist/src/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +223 -0
  117. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +4 -0
  118. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +7 -0
  119. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +2 -0
  120. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +43 -0
  121. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +46 -0
  122. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +222 -0
  123. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +121 -0
  124. package/dist/src/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +395 -0
  125. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +489 -0
  126. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +1084 -0
  127. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +147 -0
  128. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +456 -0
  129. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +239 -0
  130. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +653 -0
  131. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +405 -0
  132. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +899 -0
  133. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +8 -0
  134. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +11 -0
  135. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +2 -0
  136. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +102 -0
  137. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.d.ts +227 -0
  138. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.js +632 -0
  139. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +699 -0
  140. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +1459 -0
  141. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +161 -0
  142. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +438 -0
  143. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +147 -0
  144. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +430 -0
  145. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +1071 -0
  146. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +2261 -0
  147. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +279 -0
  148. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +733 -0
  149. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +328 -0
  150. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +892 -0
  151. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +628 -0
  152. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +1324 -0
  153. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +9 -0
  154. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +12 -0
  155. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +2 -0
  156. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +72 -0
  157. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +94 -0
  158. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.js +376 -0
  159. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +454 -0
  160. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +881 -0
  161. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +68 -0
  162. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +274 -0
  163. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +1117 -0
  164. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +2387 -0
  165. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +1524 -0
  166. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +3008 -0
  167. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +10 -0
  168. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +13 -0
  169. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +2 -0
  170. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +145 -0
  171. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +1267 -0
  172. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +2820 -0
  173. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +1412 -0
  174. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +1646 -0
  175. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +425 -0
  176. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +1223 -0
  177. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +1156 -0
  178. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +1828 -0
  179. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +82 -0
  180. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +264 -0
  181. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +5022 -0
  182. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +7585 -0
  183. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +3 -0
  184. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +6 -0
  185. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +2 -0
  186. package/dist/src/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +4 -0
  187. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +88 -0
  188. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +263 -0
  189. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +347 -0
  190. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +591 -0
  191. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +73 -0
  192. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +258 -0
  193. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +876 -0
  194. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +1721 -0
  195. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +46 -0
  196. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +222 -0
  197. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +3 -0
  198. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +6 -0
  199. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +2 -0
  200. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +89 -0
  201. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +155 -0
  202. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +444 -0
  203. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +2386 -0
  204. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +4952 -0
  205. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +745 -0
  206. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +1221 -0
  207. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +3 -0
  208. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +6 -0
  209. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +2 -0
  210. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +53 -0
  211. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +87 -0
  212. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +287 -0
  213. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +58 -0
  214. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +240 -0
  215. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +121 -0
  216. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +323 -0
  217. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +55 -0
  218. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +223 -0
  219. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.d.ts +289 -0
  220. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/batch-price-attestation/structs.js +453 -0
  221. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.d.ts +114 -0
  222. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/contract-upgrade/structs.js +378 -0
  223. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.d.ts +71 -0
  224. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/data-source/structs.js +235 -0
  225. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.d.ts +209 -0
  226. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/event/structs.js +377 -0
  227. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.d.ts +73 -0
  228. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance/structs.js +275 -0
  229. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.d.ts +46 -0
  230. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-action/structs.js +222 -0
  231. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.d.ts +77 -0
  232. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/governance-instruction/structs.js +281 -0
  233. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.d.ts +51 -0
  234. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/hot-potato-vector/structs.js +270 -0
  235. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.d.ts +52 -0
  236. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/i64/structs.js +234 -0
  237. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +3 -0
  238. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +6 -0
  239. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.d.ts +2 -0
  240. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/init.js +95 -0
  241. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.d.ts +51 -0
  242. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/migrate/structs.js +223 -0
  243. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.d.ts +89 -0
  244. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price/structs.js +247 -0
  245. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.d.ts +158 -0
  246. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-feed/structs.js +242 -0
  247. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.d.ts +50 -0
  248. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-identifier/structs.js +256 -0
  249. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.d.ts +360 -0
  250. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-info/structs.js +396 -0
  251. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.d.ts +46 -0
  252. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/price-status/structs.js +222 -0
  253. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.d.ts +120 -0
  254. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set/structs.js +425 -0
  255. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.d.ts +81 -0
  256. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-data-sources/structs.js +257 -0
  257. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.d.ts +46 -0
  258. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-fee-recipient/structs.js +222 -0
  259. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.d.ts +77 -0
  260. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-governance-data-source/structs.js +241 -0
  261. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.d.ts +46 -0
  262. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-stale-price-threshold/structs.js +222 -0
  263. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.d.ts +52 -0
  264. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/set-update-fee/structs.js +234 -0
  265. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.d.ts +55 -0
  266. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/setup/structs.js +223 -0
  267. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.d.ts +282 -0
  268. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +560 -0
  269. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +130 -0
  270. package/dist/src/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +506 -0
  271. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +3 -0
  272. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +6 -0
  273. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +2 -0
  274. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +46 -0
  275. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +88 -0
  276. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +364 -0
  277. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +94 -0
  278. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +376 -0
  279. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +46 -0
  280. package/dist/src/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +233 -0
  281. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.d.ts +50 -0
  282. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes20/structs.js +256 -0
  283. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.d.ts +50 -0
  284. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/bytes32/structs.js +256 -0
  285. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.d.ts +77 -0
  286. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/consumed-vaas/structs.js +260 -0
  287. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.d.ts +51 -0
  288. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/cursor/structs.js +270 -0
  289. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.d.ts +153 -0
  290. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +519 -0
  291. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.d.ts +57 -0
  292. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/external-address/structs.js +223 -0
  293. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.d.ts +63 -0
  294. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/fee-collector/structs.js +270 -0
  295. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.d.ts +168 -0
  296. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +470 -0
  297. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.d.ts +57 -0
  298. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian/structs.js +223 -0
  299. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.d.ts +81 -0
  300. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-set/structs.js +275 -0
  301. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.d.ts +85 -0
  302. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/guardian-signature/structs.js +247 -0
  303. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +3 -0
  304. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +6 -0
  305. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.d.ts +2 -0
  306. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/init.js +100 -0
  307. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.d.ts +51 -0
  308. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/migrate/structs.js +223 -0
  309. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.d.ts +194 -0
  310. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +662 -0
  311. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.d.ts +151 -0
  312. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +459 -0
  313. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.d.ts +110 -0
  314. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set/structs.js +416 -0
  315. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.d.ts +88 -0
  316. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/set-fee/structs.js +364 -0
  317. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.d.ts +55 -0
  318. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/setup/structs.js +223 -0
  319. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.d.ts +278 -0
  320. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +459 -0
  321. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.d.ts +94 -0
  322. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/transfer-fee/structs.js +376 -0
  323. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.d.ts +159 -0
  324. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/update-guardian-set/structs.js +553 -0
  325. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.d.ts +156 -0
  326. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +520 -0
  327. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.d.ts +128 -0
  328. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/vaa/structs.js +312 -0
  329. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.d.ts +88 -0
  330. package/dist/src/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/version-control/structs.js +364 -0
  331. package/dist/src/_framework/init-loader.d.ts +2 -0
  332. package/dist/src/_framework/init-loader.js +73 -0
  333. package/dist/src/_framework/loader.d.ts +17 -0
  334. package/dist/src/_framework/loader.js +108 -0
  335. package/dist/src/_framework/reified.d.ts +108 -0
  336. package/dist/src/_framework/reified.js +237 -0
  337. package/dist/src/_framework/util.d.ts +35 -0
  338. package/dist/src/_framework/util.js +396 -0
  339. package/dist/src/_framework/vector.d.ts +35 -0
  340. package/dist/src/_framework/vector.js +112 -0
  341. package/dist/src/fetch.d.ts +17 -0
  342. package/dist/src/fetch.js +408 -0
  343. package/dist/src/index.d.ts +5 -0
  344. package/dist/src/index.js +29 -0
  345. package/dist/src/readVec.d.ts +3 -0
  346. package/dist/src/readVec.js +118 -0
  347. package/dist/src/typus_perp/admin/functions.d.ts +49 -0
  348. package/dist/src/typus_perp/admin/functions.js +92 -0
  349. package/dist/src/typus_perp/admin/structs.d.ts +405 -0
  350. package/dist/src/typus_perp/admin/structs.js +757 -0
  351. package/dist/src/typus_perp/error/functions.d.ts +64 -0
  352. package/dist/src/typus_perp/error/functions.js +255 -0
  353. package/dist/src/typus_perp/escrow/functions.d.ts +17 -0
  354. package/dist/src/typus_perp/escrow/functions.js +33 -0
  355. package/dist/src/typus_perp/escrow/structs.d.ts +172 -0
  356. package/dist/src/typus_perp/escrow/structs.js +324 -0
  357. package/dist/src/typus_perp/index.d.ts +3 -0
  358. package/dist/src/typus_perp/index.js +7 -0
  359. package/dist/src/typus_perp/init.d.ts +2 -0
  360. package/dist/src/typus_perp/init.js +121 -0
  361. package/dist/src/typus_perp/lp-pool/functions.d.ts +356 -0
  362. package/dist/src/typus_perp/lp-pool/functions.js +528 -0
  363. package/dist/src/typus_perp/lp-pool/structs.d.ts +3219 -0
  364. package/dist/src/typus_perp/lp-pool/structs.js +4789 -0
  365. package/dist/src/typus_perp/math/functions.d.ts +18 -0
  366. package/dist/src/typus_perp/math/functions.js +40 -0
  367. package/dist/src/typus_perp/oracle/functions.d.ts +13 -0
  368. package/dist/src/typus_perp/oracle/functions.js +22 -0
  369. package/dist/src/typus_perp/oracle/structs.d.ts +111 -0
  370. package/dist/src/typus_perp/oracle/structs.js +389 -0
  371. package/dist/src/typus_perp/position/functions.d.ts +339 -0
  372. package/dist/src/typus_perp/position/functions.js +576 -0
  373. package/dist/src/typus_perp/position/structs.d.ts +1186 -0
  374. package/dist/src/typus_perp/position/structs.js +1628 -0
  375. package/dist/src/typus_perp/symbol/functions.d.ts +9 -0
  376. package/dist/src/typus_perp/symbol/functions.js +20 -0
  377. package/dist/src/typus_perp/symbol/structs.d.ts +81 -0
  378. package/dist/src/typus_perp/symbol/structs.js +235 -0
  379. package/dist/src/typus_perp/tlp/functions.d.ts +19 -0
  380. package/dist/src/typus_perp/tlp/functions.js +35 -0
  381. package/dist/src/typus_perp/tlp/structs.d.ts +97 -0
  382. package/dist/src/typus_perp/tlp/structs.js +365 -0
  383. package/dist/src/typus_perp/token-interface/functions.d.ts +11 -0
  384. package/dist/src/typus_perp/token-interface/functions.js +20 -0
  385. package/dist/src/typus_perp/trading/functions.d.ts +549 -0
  386. package/dist/src/typus_perp/trading/functions.js +786 -0
  387. package/dist/src/typus_perp/trading/structs.d.ts +3418 -0
  388. package/dist/src/typus_perp/trading/structs.js +5556 -0
  389. package/dist/src/typus_perp/treasury-caps/functions.d.ts +9 -0
  390. package/dist/src/typus_perp/treasury-caps/functions.js +32 -0
  391. package/dist/src/typus_perp/treasury-caps/structs.d.ts +55 -0
  392. package/dist/src/typus_perp/treasury-caps/structs.js +223 -0
  393. package/dist/src/typus_stake_pool/admin/functions.d.ts +49 -0
  394. package/dist/src/typus_stake_pool/admin/functions.js +92 -0
  395. package/dist/src/typus_stake_pool/admin/structs.d.ts +405 -0
  396. package/dist/src/typus_stake_pool/admin/structs.js +757 -0
  397. package/dist/src/typus_stake_pool/index.d.ts +3 -0
  398. package/dist/src/typus_stake_pool/index.js +7 -0
  399. package/dist/src/typus_stake_pool/init.d.ts +2 -0
  400. package/dist/src/typus_stake_pool/init.js +66 -0
  401. package/dist/src/typus_stake_pool/stake-pool/functions.d.ts +175 -0
  402. package/dist/src/typus_stake_pool/stake-pool/functions.js +263 -0
  403. package/dist/src/typus_stake_pool/stake-pool/structs.d.ts +2179 -0
  404. package/dist/src/typus_stake_pool/stake-pool/structs.js +3907 -0
  405. package/dist/src/user/history.d.ts +2 -0
  406. package/dist/src/user/history.js +194 -0
  407. package/dist/src/user/index.d.ts +4 -0
  408. package/dist/src/user/index.js +20 -0
  409. package/dist/src/user/order.d.ts +29 -0
  410. package/dist/src/user/order.js +205 -0
  411. package/dist/src/user/orderWithBidReceipt.d.ts +22 -0
  412. package/dist/src/user/orderWithBidReceipt.js +144 -0
  413. package/dist/src/user/tlp.d.ts +32 -0
  414. package/dist/src/user/tlp.js +266 -0
  415. package/package.json +36 -0
@@ -0,0 +1,1324 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
46
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
47
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
48
+ return new (P || (P = Promise))(function (resolve, reject) {
49
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
50
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
51
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
52
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
53
+ });
54
+ };
55
+ var __generator = (this && this.__generator) || function (thisArg, body) {
56
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
57
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
58
+ function verb(n) { return function (v) { return step([n, v]); }; }
59
+ function step(op) {
60
+ if (f) throw new TypeError("Generator is already executing.");
61
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
62
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
63
+ if (y = 0, t) op = [op[0] & 2, t.value];
64
+ switch (op[0]) {
65
+ case 0: case 1: t = op; break;
66
+ case 4: _.label++; return { value: op[1], done: false };
67
+ case 5: _.label++; y = op[1]; op = [0]; continue;
68
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
69
+ default:
70
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
71
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
72
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
73
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
74
+ if (t[2]) _.ops.pop();
75
+ _.trys.pop(); continue;
76
+ }
77
+ op = body.call(thisArg, _);
78
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
79
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
80
+ }
81
+ };
82
+ var __read = (this && this.__read) || function (o, n) {
83
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
84
+ if (!m) return o;
85
+ var i = m.call(o), r, ar = [], e;
86
+ try {
87
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
88
+ }
89
+ catch (error) { e = { error: error }; }
90
+ finally {
91
+ try {
92
+ if (r && !r.done && (m = i["return"])) m.call(i);
93
+ }
94
+ finally { if (e) throw e.error; }
95
+ }
96
+ return ar;
97
+ };
98
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
99
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
100
+ if (ar || !(i in from)) {
101
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
102
+ ar[i] = from[i];
103
+ }
104
+ }
105
+ return to.concat(ar || Array.prototype.slice.call(from));
106
+ };
107
+ Object.defineProperty(exports, "__esModule", { value: true });
108
+ exports.MintRequestEvent = exports.MintRequest = exports.DiscountEventV3 = exports.DiscountEventV2 = exports.DiscountEvent = exports.Pool = exports.ManagerCap = void 0;
109
+ exports.isManagerCap = isManagerCap;
110
+ exports.isPool = isPool;
111
+ exports.isDiscountEvent = isDiscountEvent;
112
+ exports.isDiscountEventV2 = isDiscountEventV2;
113
+ exports.isDiscountEventV3 = isDiscountEventV3;
114
+ exports.isMintRequest = isMintRequest;
115
+ exports.isMintRequestEvent = isMintRequestEvent;
116
+ var reified = __importStar(require("../../../../_framework/reified"));
117
+ var reified_1 = require("../../../../_framework/reified");
118
+ var util_1 = require("../../../../_framework/util");
119
+ var structs_1 = require("../../0x2/balance/structs");
120
+ var structs_2 = require("../../0x2/coin/structs");
121
+ var structs_3 = require("../../0x2/object/structs");
122
+ var structs_4 = require("../../0x2/sui/structs");
123
+ var structs_5 = require("../../0x2/table-vec/structs");
124
+ var index_1 = require("../index");
125
+ var structs_6 = require("../typus-nft/structs");
126
+ var bcs_1 = require("@mysten/sui/bcs");
127
+ var utils_1 = require("@mysten/sui/utils");
128
+ /* ============================== ManagerCap =============================== */
129
+ function isManagerCap(type) {
130
+ type = (0, util_1.compressSuiType)(type);
131
+ return type === "".concat(index_1.PKG_V4, "::discount_mint::ManagerCap");
132
+ }
133
+ var ManagerCap = /** @class */ (function () {
134
+ function ManagerCap(typeArgs, fields) {
135
+ this.__StructClass = true;
136
+ this.$typeName = ManagerCap.$typeName;
137
+ this.$isPhantom = ManagerCap.$isPhantom;
138
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], __read(typeArgs), false));
139
+ this.$typeArgs = typeArgs;
140
+ this.id = fields.id;
141
+ }
142
+ ManagerCap.reified = function () {
143
+ var _this = this;
144
+ return {
145
+ typeName: ManagerCap.$typeName,
146
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ManagerCap.$typeName], [], false)),
147
+ typeArgs: [],
148
+ isPhantom: ManagerCap.$isPhantom,
149
+ reifiedTypeArgs: [],
150
+ fromFields: function (fields) { return ManagerCap.fromFields(fields); },
151
+ fromFieldsWithTypes: function (item) { return ManagerCap.fromFieldsWithTypes(item); },
152
+ fromBcs: function (data) { return ManagerCap.fromBcs(data); },
153
+ bcs: ManagerCap.bcs,
154
+ fromJSONField: function (field) { return ManagerCap.fromJSONField(field); },
155
+ fromJSON: function (json) { return ManagerCap.fromJSON(json); },
156
+ fromSuiParsedData: function (content) { return ManagerCap.fromSuiParsedData(content); },
157
+ fromSuiObjectData: function (content) { return ManagerCap.fromSuiObjectData(content); },
158
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
159
+ return [2 /*return*/, ManagerCap.fetch(client, id)];
160
+ }); }); },
161
+ new: function (fields) {
162
+ return new ManagerCap([], fields);
163
+ },
164
+ kind: "StructClassReified",
165
+ };
166
+ };
167
+ Object.defineProperty(ManagerCap, "r", {
168
+ get: function () {
169
+ return ManagerCap.reified();
170
+ },
171
+ enumerable: false,
172
+ configurable: true
173
+ });
174
+ ManagerCap.phantom = function () {
175
+ return (0, reified_1.phantom)(ManagerCap.reified());
176
+ };
177
+ Object.defineProperty(ManagerCap, "p", {
178
+ get: function () {
179
+ return ManagerCap.phantom();
180
+ },
181
+ enumerable: false,
182
+ configurable: true
183
+ });
184
+ Object.defineProperty(ManagerCap, "bcs", {
185
+ get: function () {
186
+ return bcs_1.bcs.struct("ManagerCap", {
187
+ id: structs_3.UID.bcs,
188
+ });
189
+ },
190
+ enumerable: false,
191
+ configurable: true
192
+ });
193
+ ManagerCap.fromFields = function (fields) {
194
+ return ManagerCap.reified().new({ id: (0, reified_1.decodeFromFields)(structs_3.UID.reified(), fields.id) });
195
+ };
196
+ ManagerCap.fromFieldsWithTypes = function (item) {
197
+ if (!isManagerCap(item.type)) {
198
+ throw new Error("not a ManagerCap type");
199
+ }
200
+ return ManagerCap.reified().new({ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.UID.reified(), item.fields.id) });
201
+ };
202
+ ManagerCap.fromBcs = function (data) {
203
+ return ManagerCap.fromFields(ManagerCap.bcs.parse(data));
204
+ };
205
+ ManagerCap.prototype.toJSONField = function () {
206
+ return {
207
+ id: this.id,
208
+ };
209
+ };
210
+ ManagerCap.prototype.toJSON = function () {
211
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
212
+ };
213
+ ManagerCap.fromJSONField = function (field) {
214
+ return ManagerCap.reified().new({ id: (0, reified_1.decodeFromJSONField)(structs_3.UID.reified(), field.id) });
215
+ };
216
+ ManagerCap.fromJSON = function (json) {
217
+ if (json.$typeName !== ManagerCap.$typeName) {
218
+ throw new Error("not a WithTwoGenerics json object");
219
+ }
220
+ return ManagerCap.fromJSONField(json);
221
+ };
222
+ ManagerCap.fromSuiParsedData = function (content) {
223
+ if (content.dataType !== "moveObject") {
224
+ throw new Error("not an object");
225
+ }
226
+ if (!isManagerCap(content.type)) {
227
+ throw new Error("object at ".concat(content.fields.id, " is not a ManagerCap object"));
228
+ }
229
+ return ManagerCap.fromFieldsWithTypes(content);
230
+ };
231
+ ManagerCap.fromSuiObjectData = function (data) {
232
+ if (data.bcs) {
233
+ if (data.bcs.dataType !== "moveObject" || !isManagerCap(data.bcs.type)) {
234
+ throw new Error("object at is not a ManagerCap object");
235
+ }
236
+ return ManagerCap.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
237
+ }
238
+ if (data.content) {
239
+ return ManagerCap.fromSuiParsedData(data.content);
240
+ }
241
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
242
+ };
243
+ ManagerCap.fetch = function (client, id) {
244
+ return __awaiter(this, void 0, void 0, function () {
245
+ var res;
246
+ var _a, _b;
247
+ return __generator(this, function (_c) {
248
+ switch (_c.label) {
249
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
250
+ case 1:
251
+ res = _c.sent();
252
+ if (res.error) {
253
+ throw new Error("error fetching ManagerCap object at id ".concat(id, ": ").concat(res.error.code));
254
+ }
255
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isManagerCap(res.data.bcs.type)) {
256
+ throw new Error("object at id ".concat(id, " is not a ManagerCap object"));
257
+ }
258
+ return [2 /*return*/, ManagerCap.fromSuiObjectData(res.data)];
259
+ }
260
+ });
261
+ });
262
+ };
263
+ ManagerCap.$typeName = "".concat(index_1.PKG_V4, "::discount_mint::ManagerCap");
264
+ ManagerCap.$numTypeParams = 0;
265
+ ManagerCap.$isPhantom = [];
266
+ return ManagerCap;
267
+ }());
268
+ exports.ManagerCap = ManagerCap;
269
+ /* ============================== Pool =============================== */
270
+ function isPool(type) {
271
+ type = (0, util_1.compressSuiType)(type);
272
+ return type === "".concat(index_1.PKG_V4, "::discount_mint::Pool");
273
+ }
274
+ var Pool = /** @class */ (function () {
275
+ function Pool(typeArgs, fields) {
276
+ this.__StructClass = true;
277
+ this.$typeName = Pool.$typeName;
278
+ this.$isPhantom = Pool.$isPhantom;
279
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], __read(typeArgs), false));
280
+ this.$typeArgs = typeArgs;
281
+ this.id = fields.id;
282
+ this.num = fields.num;
283
+ this.price = fields.price;
284
+ this.startMs = fields.startMs;
285
+ this.endMs = fields.endMs;
286
+ this.authority = fields.authority;
287
+ this.publicKey = fields.publicKey;
288
+ this.discountPcts = fields.discountPcts;
289
+ this.isLive = fields.isLive;
290
+ this.balance = fields.balance;
291
+ this.tails = fields.tails;
292
+ this.requests = fields.requests;
293
+ }
294
+ Pool.reified = function () {
295
+ var _this = this;
296
+ return {
297
+ typeName: Pool.$typeName,
298
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Pool.$typeName], [], false)),
299
+ typeArgs: [],
300
+ isPhantom: Pool.$isPhantom,
301
+ reifiedTypeArgs: [],
302
+ fromFields: function (fields) { return Pool.fromFields(fields); },
303
+ fromFieldsWithTypes: function (item) { return Pool.fromFieldsWithTypes(item); },
304
+ fromBcs: function (data) { return Pool.fromBcs(data); },
305
+ bcs: Pool.bcs,
306
+ fromJSONField: function (field) { return Pool.fromJSONField(field); },
307
+ fromJSON: function (json) { return Pool.fromJSON(json); },
308
+ fromSuiParsedData: function (content) { return Pool.fromSuiParsedData(content); },
309
+ fromSuiObjectData: function (content) { return Pool.fromSuiObjectData(content); },
310
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
311
+ return [2 /*return*/, Pool.fetch(client, id)];
312
+ }); }); },
313
+ new: function (fields) {
314
+ return new Pool([], fields);
315
+ },
316
+ kind: "StructClassReified",
317
+ };
318
+ };
319
+ Object.defineProperty(Pool, "r", {
320
+ get: function () {
321
+ return Pool.reified();
322
+ },
323
+ enumerable: false,
324
+ configurable: true
325
+ });
326
+ Pool.phantom = function () {
327
+ return (0, reified_1.phantom)(Pool.reified());
328
+ };
329
+ Object.defineProperty(Pool, "p", {
330
+ get: function () {
331
+ return Pool.phantom();
332
+ },
333
+ enumerable: false,
334
+ configurable: true
335
+ });
336
+ Object.defineProperty(Pool, "bcs", {
337
+ get: function () {
338
+ return bcs_1.bcs.struct("Pool", {
339
+ id: structs_3.UID.bcs,
340
+ num: bcs_1.bcs.u64(),
341
+ price: bcs_1.bcs.u64(),
342
+ start_ms: bcs_1.bcs.u64(),
343
+ end_ms: bcs_1.bcs.u64(),
344
+ authority: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
345
+ public_key: bcs_1.bcs.vector(bcs_1.bcs.u8()),
346
+ discount_pcts: bcs_1.bcs.vector(bcs_1.bcs.u64()),
347
+ is_live: bcs_1.bcs.bool(),
348
+ balance: structs_1.Balance.bcs,
349
+ tails: structs_5.TableVec.bcs,
350
+ requests: bcs_1.bcs.vector(MintRequest.bcs),
351
+ });
352
+ },
353
+ enumerable: false,
354
+ configurable: true
355
+ });
356
+ Pool.fromFields = function (fields) {
357
+ return Pool.reified().new({
358
+ id: (0, reified_1.decodeFromFields)(structs_3.UID.reified(), fields.id),
359
+ num: (0, reified_1.decodeFromFields)("u64", fields.num),
360
+ price: (0, reified_1.decodeFromFields)("u64", fields.price),
361
+ startMs: (0, reified_1.decodeFromFields)("u64", fields.start_ms),
362
+ endMs: (0, reified_1.decodeFromFields)("u64", fields.end_ms),
363
+ authority: (0, reified_1.decodeFromFields)("address", fields.authority),
364
+ publicKey: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.public_key),
365
+ discountPcts: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.discount_pcts),
366
+ isLive: (0, reified_1.decodeFromFields)("bool", fields.is_live),
367
+ balance: (0, reified_1.decodeFromFields)(structs_1.Balance.reified(reified.phantom(structs_4.SUI.reified())), fields.balance),
368
+ tails: (0, reified_1.decodeFromFields)(structs_5.TableVec.reified(reified.phantom(structs_6.Tails.reified())), fields.tails),
369
+ requests: (0, reified_1.decodeFromFields)(reified.vector(MintRequest.reified()), fields.requests),
370
+ });
371
+ };
372
+ Pool.fromFieldsWithTypes = function (item) {
373
+ if (!isPool(item.type)) {
374
+ throw new Error("not a Pool type");
375
+ }
376
+ return Pool.reified().new({
377
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.UID.reified(), item.fields.id),
378
+ num: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.num),
379
+ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price),
380
+ startMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ms),
381
+ endMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.end_ms),
382
+ authority: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.authority),
383
+ publicKey: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.public_key),
384
+ discountPcts: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.discount_pcts),
385
+ isLive: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_live),
386
+ balance: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Balance.reified(reified.phantom(structs_4.SUI.reified())), item.fields.balance),
387
+ tails: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.TableVec.reified(reified.phantom(structs_6.Tails.reified())), item.fields.tails),
388
+ requests: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(MintRequest.reified()), item.fields.requests),
389
+ });
390
+ };
391
+ Pool.fromBcs = function (data) {
392
+ return Pool.fromFields(Pool.bcs.parse(data));
393
+ };
394
+ Pool.prototype.toJSONField = function () {
395
+ return {
396
+ id: this.id,
397
+ num: this.num.toString(),
398
+ price: this.price.toString(),
399
+ startMs: this.startMs.toString(),
400
+ endMs: this.endMs.toString(),
401
+ authority: this.authority,
402
+ publicKey: (0, reified_1.fieldToJSON)("vector<u8>", this.publicKey),
403
+ discountPcts: (0, reified_1.fieldToJSON)("vector<u64>", this.discountPcts),
404
+ isLive: this.isLive,
405
+ balance: this.balance.toJSONField(),
406
+ tails: this.tails.toJSONField(),
407
+ requests: (0, reified_1.fieldToJSON)("vector<".concat(MintRequest.$typeName, ">"), this.requests),
408
+ };
409
+ };
410
+ Pool.prototype.toJSON = function () {
411
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
412
+ };
413
+ Pool.fromJSONField = function (field) {
414
+ return Pool.reified().new({
415
+ id: (0, reified_1.decodeFromJSONField)(structs_3.UID.reified(), field.id),
416
+ num: (0, reified_1.decodeFromJSONField)("u64", field.num),
417
+ price: (0, reified_1.decodeFromJSONField)("u64", field.price),
418
+ startMs: (0, reified_1.decodeFromJSONField)("u64", field.startMs),
419
+ endMs: (0, reified_1.decodeFromJSONField)("u64", field.endMs),
420
+ authority: (0, reified_1.decodeFromJSONField)("address", field.authority),
421
+ publicKey: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.publicKey),
422
+ discountPcts: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.discountPcts),
423
+ isLive: (0, reified_1.decodeFromJSONField)("bool", field.isLive),
424
+ balance: (0, reified_1.decodeFromJSONField)(structs_1.Balance.reified(reified.phantom(structs_4.SUI.reified())), field.balance),
425
+ tails: (0, reified_1.decodeFromJSONField)(structs_5.TableVec.reified(reified.phantom(structs_6.Tails.reified())), field.tails),
426
+ requests: (0, reified_1.decodeFromJSONField)(reified.vector(MintRequest.reified()), field.requests),
427
+ });
428
+ };
429
+ Pool.fromJSON = function (json) {
430
+ if (json.$typeName !== Pool.$typeName) {
431
+ throw new Error("not a WithTwoGenerics json object");
432
+ }
433
+ return Pool.fromJSONField(json);
434
+ };
435
+ Pool.fromSuiParsedData = function (content) {
436
+ if (content.dataType !== "moveObject") {
437
+ throw new Error("not an object");
438
+ }
439
+ if (!isPool(content.type)) {
440
+ throw new Error("object at ".concat(content.fields.id, " is not a Pool object"));
441
+ }
442
+ return Pool.fromFieldsWithTypes(content);
443
+ };
444
+ Pool.fromSuiObjectData = function (data) {
445
+ if (data.bcs) {
446
+ if (data.bcs.dataType !== "moveObject" || !isPool(data.bcs.type)) {
447
+ throw new Error("object at is not a Pool object");
448
+ }
449
+ return Pool.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
450
+ }
451
+ if (data.content) {
452
+ return Pool.fromSuiParsedData(data.content);
453
+ }
454
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
455
+ };
456
+ Pool.fetch = function (client, id) {
457
+ return __awaiter(this, void 0, void 0, function () {
458
+ var res;
459
+ var _a, _b;
460
+ return __generator(this, function (_c) {
461
+ switch (_c.label) {
462
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
463
+ case 1:
464
+ res = _c.sent();
465
+ if (res.error) {
466
+ throw new Error("error fetching Pool object at id ".concat(id, ": ").concat(res.error.code));
467
+ }
468
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isPool(res.data.bcs.type)) {
469
+ throw new Error("object at id ".concat(id, " is not a Pool object"));
470
+ }
471
+ return [2 /*return*/, Pool.fromSuiObjectData(res.data)];
472
+ }
473
+ });
474
+ });
475
+ };
476
+ Pool.$typeName = "".concat(index_1.PKG_V4, "::discount_mint::Pool");
477
+ Pool.$numTypeParams = 0;
478
+ Pool.$isPhantom = [];
479
+ return Pool;
480
+ }());
481
+ exports.Pool = Pool;
482
+ /* ============================== DiscountEvent =============================== */
483
+ function isDiscountEvent(type) {
484
+ type = (0, util_1.compressSuiType)(type);
485
+ return type === "".concat(index_1.PKG_V4, "::discount_mint::DiscountEvent");
486
+ }
487
+ var DiscountEvent = /** @class */ (function () {
488
+ function DiscountEvent(typeArgs, fields) {
489
+ this.__StructClass = true;
490
+ this.$typeName = DiscountEvent.$typeName;
491
+ this.$isPhantom = DiscountEvent.$isPhantom;
492
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEvent.$typeName], __read(typeArgs), false));
493
+ this.$typeArgs = typeArgs;
494
+ this.price = fields.price;
495
+ this.discountPct = fields.discountPct;
496
+ this.discountPrice = fields.discountPrice;
497
+ }
498
+ DiscountEvent.reified = function () {
499
+ var _this = this;
500
+ return {
501
+ typeName: DiscountEvent.$typeName,
502
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEvent.$typeName], [], false)),
503
+ typeArgs: [],
504
+ isPhantom: DiscountEvent.$isPhantom,
505
+ reifiedTypeArgs: [],
506
+ fromFields: function (fields) { return DiscountEvent.fromFields(fields); },
507
+ fromFieldsWithTypes: function (item) { return DiscountEvent.fromFieldsWithTypes(item); },
508
+ fromBcs: function (data) { return DiscountEvent.fromBcs(data); },
509
+ bcs: DiscountEvent.bcs,
510
+ fromJSONField: function (field) { return DiscountEvent.fromJSONField(field); },
511
+ fromJSON: function (json) { return DiscountEvent.fromJSON(json); },
512
+ fromSuiParsedData: function (content) { return DiscountEvent.fromSuiParsedData(content); },
513
+ fromSuiObjectData: function (content) { return DiscountEvent.fromSuiObjectData(content); },
514
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
515
+ return [2 /*return*/, DiscountEvent.fetch(client, id)];
516
+ }); }); },
517
+ new: function (fields) {
518
+ return new DiscountEvent([], fields);
519
+ },
520
+ kind: "StructClassReified",
521
+ };
522
+ };
523
+ Object.defineProperty(DiscountEvent, "r", {
524
+ get: function () {
525
+ return DiscountEvent.reified();
526
+ },
527
+ enumerable: false,
528
+ configurable: true
529
+ });
530
+ DiscountEvent.phantom = function () {
531
+ return (0, reified_1.phantom)(DiscountEvent.reified());
532
+ };
533
+ Object.defineProperty(DiscountEvent, "p", {
534
+ get: function () {
535
+ return DiscountEvent.phantom();
536
+ },
537
+ enumerable: false,
538
+ configurable: true
539
+ });
540
+ Object.defineProperty(DiscountEvent, "bcs", {
541
+ get: function () {
542
+ return bcs_1.bcs.struct("DiscountEvent", {
543
+ price: bcs_1.bcs.u64(),
544
+ discount_pct: bcs_1.bcs.u64(),
545
+ discount_price: bcs_1.bcs.u64(),
546
+ });
547
+ },
548
+ enumerable: false,
549
+ configurable: true
550
+ });
551
+ DiscountEvent.fromFields = function (fields) {
552
+ return DiscountEvent.reified().new({
553
+ price: (0, reified_1.decodeFromFields)("u64", fields.price),
554
+ discountPct: (0, reified_1.decodeFromFields)("u64", fields.discount_pct),
555
+ discountPrice: (0, reified_1.decodeFromFields)("u64", fields.discount_price),
556
+ });
557
+ };
558
+ DiscountEvent.fromFieldsWithTypes = function (item) {
559
+ if (!isDiscountEvent(item.type)) {
560
+ throw new Error("not a DiscountEvent type");
561
+ }
562
+ return DiscountEvent.reified().new({
563
+ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price),
564
+ discountPct: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_pct),
565
+ discountPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_price),
566
+ });
567
+ };
568
+ DiscountEvent.fromBcs = function (data) {
569
+ return DiscountEvent.fromFields(DiscountEvent.bcs.parse(data));
570
+ };
571
+ DiscountEvent.prototype.toJSONField = function () {
572
+ return {
573
+ price: this.price.toString(),
574
+ discountPct: this.discountPct.toString(),
575
+ discountPrice: this.discountPrice.toString(),
576
+ };
577
+ };
578
+ DiscountEvent.prototype.toJSON = function () {
579
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
580
+ };
581
+ DiscountEvent.fromJSONField = function (field) {
582
+ return DiscountEvent.reified().new({
583
+ price: (0, reified_1.decodeFromJSONField)("u64", field.price),
584
+ discountPct: (0, reified_1.decodeFromJSONField)("u64", field.discountPct),
585
+ discountPrice: (0, reified_1.decodeFromJSONField)("u64", field.discountPrice),
586
+ });
587
+ };
588
+ DiscountEvent.fromJSON = function (json) {
589
+ if (json.$typeName !== DiscountEvent.$typeName) {
590
+ throw new Error("not a WithTwoGenerics json object");
591
+ }
592
+ return DiscountEvent.fromJSONField(json);
593
+ };
594
+ DiscountEvent.fromSuiParsedData = function (content) {
595
+ if (content.dataType !== "moveObject") {
596
+ throw new Error("not an object");
597
+ }
598
+ if (!isDiscountEvent(content.type)) {
599
+ throw new Error("object at ".concat(content.fields.id, " is not a DiscountEvent object"));
600
+ }
601
+ return DiscountEvent.fromFieldsWithTypes(content);
602
+ };
603
+ DiscountEvent.fromSuiObjectData = function (data) {
604
+ if (data.bcs) {
605
+ if (data.bcs.dataType !== "moveObject" || !isDiscountEvent(data.bcs.type)) {
606
+ throw new Error("object at is not a DiscountEvent object");
607
+ }
608
+ return DiscountEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
609
+ }
610
+ if (data.content) {
611
+ return DiscountEvent.fromSuiParsedData(data.content);
612
+ }
613
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
614
+ };
615
+ DiscountEvent.fetch = function (client, id) {
616
+ return __awaiter(this, void 0, void 0, function () {
617
+ var res;
618
+ var _a, _b;
619
+ return __generator(this, function (_c) {
620
+ switch (_c.label) {
621
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
622
+ case 1:
623
+ res = _c.sent();
624
+ if (res.error) {
625
+ throw new Error("error fetching DiscountEvent object at id ".concat(id, ": ").concat(res.error.code));
626
+ }
627
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDiscountEvent(res.data.bcs.type)) {
628
+ throw new Error("object at id ".concat(id, " is not a DiscountEvent object"));
629
+ }
630
+ return [2 /*return*/, DiscountEvent.fromSuiObjectData(res.data)];
631
+ }
632
+ });
633
+ });
634
+ };
635
+ DiscountEvent.$typeName = "".concat(index_1.PKG_V4, "::discount_mint::DiscountEvent");
636
+ DiscountEvent.$numTypeParams = 0;
637
+ DiscountEvent.$isPhantom = [];
638
+ return DiscountEvent;
639
+ }());
640
+ exports.DiscountEvent = DiscountEvent;
641
+ /* ============================== DiscountEventV2 =============================== */
642
+ function isDiscountEventV2(type) {
643
+ type = (0, util_1.compressSuiType)(type);
644
+ return type === "".concat(index_1.PKG_V7, "::discount_mint::DiscountEventV2");
645
+ }
646
+ var DiscountEventV2 = /** @class */ (function () {
647
+ function DiscountEventV2(typeArgs, fields) {
648
+ this.__StructClass = true;
649
+ this.$typeName = DiscountEventV2.$typeName;
650
+ this.$isPhantom = DiscountEventV2.$isPhantom;
651
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEventV2.$typeName], __read(typeArgs), false));
652
+ this.$typeArgs = typeArgs;
653
+ this.pool = fields.pool;
654
+ this.price = fields.price;
655
+ this.discountPct = fields.discountPct;
656
+ this.discountPrice = fields.discountPrice;
657
+ this.user = fields.user;
658
+ this.vrfInput = fields.vrfInput;
659
+ }
660
+ DiscountEventV2.reified = function () {
661
+ var _this = this;
662
+ return {
663
+ typeName: DiscountEventV2.$typeName,
664
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEventV2.$typeName], [], false)),
665
+ typeArgs: [],
666
+ isPhantom: DiscountEventV2.$isPhantom,
667
+ reifiedTypeArgs: [],
668
+ fromFields: function (fields) { return DiscountEventV2.fromFields(fields); },
669
+ fromFieldsWithTypes: function (item) { return DiscountEventV2.fromFieldsWithTypes(item); },
670
+ fromBcs: function (data) { return DiscountEventV2.fromBcs(data); },
671
+ bcs: DiscountEventV2.bcs,
672
+ fromJSONField: function (field) { return DiscountEventV2.fromJSONField(field); },
673
+ fromJSON: function (json) { return DiscountEventV2.fromJSON(json); },
674
+ fromSuiParsedData: function (content) { return DiscountEventV2.fromSuiParsedData(content); },
675
+ fromSuiObjectData: function (content) { return DiscountEventV2.fromSuiObjectData(content); },
676
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
677
+ return [2 /*return*/, DiscountEventV2.fetch(client, id)];
678
+ }); }); },
679
+ new: function (fields) {
680
+ return new DiscountEventV2([], fields);
681
+ },
682
+ kind: "StructClassReified",
683
+ };
684
+ };
685
+ Object.defineProperty(DiscountEventV2, "r", {
686
+ get: function () {
687
+ return DiscountEventV2.reified();
688
+ },
689
+ enumerable: false,
690
+ configurable: true
691
+ });
692
+ DiscountEventV2.phantom = function () {
693
+ return (0, reified_1.phantom)(DiscountEventV2.reified());
694
+ };
695
+ Object.defineProperty(DiscountEventV2, "p", {
696
+ get: function () {
697
+ return DiscountEventV2.phantom();
698
+ },
699
+ enumerable: false,
700
+ configurable: true
701
+ });
702
+ Object.defineProperty(DiscountEventV2, "bcs", {
703
+ get: function () {
704
+ return bcs_1.bcs.struct("DiscountEventV2", {
705
+ pool: structs_3.ID.bcs,
706
+ price: bcs_1.bcs.u64(),
707
+ discount_pct: bcs_1.bcs.u64(),
708
+ discount_price: bcs_1.bcs.u64(),
709
+ user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
710
+ vrf_input: bcs_1.bcs.vector(bcs_1.bcs.u8()),
711
+ });
712
+ },
713
+ enumerable: false,
714
+ configurable: true
715
+ });
716
+ DiscountEventV2.fromFields = function (fields) {
717
+ return DiscountEventV2.reified().new({
718
+ pool: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.pool),
719
+ price: (0, reified_1.decodeFromFields)("u64", fields.price),
720
+ discountPct: (0, reified_1.decodeFromFields)("u64", fields.discount_pct),
721
+ discountPrice: (0, reified_1.decodeFromFields)("u64", fields.discount_price),
722
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
723
+ vrfInput: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vrf_input),
724
+ });
725
+ };
726
+ DiscountEventV2.fromFieldsWithTypes = function (item) {
727
+ if (!isDiscountEventV2(item.type)) {
728
+ throw new Error("not a DiscountEventV2 type");
729
+ }
730
+ return DiscountEventV2.reified().new({
731
+ pool: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.pool),
732
+ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price),
733
+ discountPct: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_pct),
734
+ discountPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_price),
735
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
736
+ vrfInput: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vrf_input),
737
+ });
738
+ };
739
+ DiscountEventV2.fromBcs = function (data) {
740
+ return DiscountEventV2.fromFields(DiscountEventV2.bcs.parse(data));
741
+ };
742
+ DiscountEventV2.prototype.toJSONField = function () {
743
+ return {
744
+ pool: this.pool,
745
+ price: this.price.toString(),
746
+ discountPct: this.discountPct.toString(),
747
+ discountPrice: this.discountPrice.toString(),
748
+ user: this.user,
749
+ vrfInput: (0, reified_1.fieldToJSON)("vector<u8>", this.vrfInput),
750
+ };
751
+ };
752
+ DiscountEventV2.prototype.toJSON = function () {
753
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
754
+ };
755
+ DiscountEventV2.fromJSONField = function (field) {
756
+ return DiscountEventV2.reified().new({
757
+ pool: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.pool),
758
+ price: (0, reified_1.decodeFromJSONField)("u64", field.price),
759
+ discountPct: (0, reified_1.decodeFromJSONField)("u64", field.discountPct),
760
+ discountPrice: (0, reified_1.decodeFromJSONField)("u64", field.discountPrice),
761
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
762
+ vrfInput: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vrfInput),
763
+ });
764
+ };
765
+ DiscountEventV2.fromJSON = function (json) {
766
+ if (json.$typeName !== DiscountEventV2.$typeName) {
767
+ throw new Error("not a WithTwoGenerics json object");
768
+ }
769
+ return DiscountEventV2.fromJSONField(json);
770
+ };
771
+ DiscountEventV2.fromSuiParsedData = function (content) {
772
+ if (content.dataType !== "moveObject") {
773
+ throw new Error("not an object");
774
+ }
775
+ if (!isDiscountEventV2(content.type)) {
776
+ throw new Error("object at ".concat(content.fields.id, " is not a DiscountEventV2 object"));
777
+ }
778
+ return DiscountEventV2.fromFieldsWithTypes(content);
779
+ };
780
+ DiscountEventV2.fromSuiObjectData = function (data) {
781
+ if (data.bcs) {
782
+ if (data.bcs.dataType !== "moveObject" || !isDiscountEventV2(data.bcs.type)) {
783
+ throw new Error("object at is not a DiscountEventV2 object");
784
+ }
785
+ return DiscountEventV2.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
786
+ }
787
+ if (data.content) {
788
+ return DiscountEventV2.fromSuiParsedData(data.content);
789
+ }
790
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
791
+ };
792
+ DiscountEventV2.fetch = function (client, id) {
793
+ return __awaiter(this, void 0, void 0, function () {
794
+ var res;
795
+ var _a, _b;
796
+ return __generator(this, function (_c) {
797
+ switch (_c.label) {
798
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
799
+ case 1:
800
+ res = _c.sent();
801
+ if (res.error) {
802
+ throw new Error("error fetching DiscountEventV2 object at id ".concat(id, ": ").concat(res.error.code));
803
+ }
804
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDiscountEventV2(res.data.bcs.type)) {
805
+ throw new Error("object at id ".concat(id, " is not a DiscountEventV2 object"));
806
+ }
807
+ return [2 /*return*/, DiscountEventV2.fromSuiObjectData(res.data)];
808
+ }
809
+ });
810
+ });
811
+ };
812
+ DiscountEventV2.$typeName = "".concat(index_1.PKG_V7, "::discount_mint::DiscountEventV2");
813
+ DiscountEventV2.$numTypeParams = 0;
814
+ DiscountEventV2.$isPhantom = [];
815
+ return DiscountEventV2;
816
+ }());
817
+ exports.DiscountEventV2 = DiscountEventV2;
818
+ /* ============================== DiscountEventV3 =============================== */
819
+ function isDiscountEventV3(type) {
820
+ type = (0, util_1.compressSuiType)(type);
821
+ return type === "".concat(index_1.PKG_V11, "::discount_mint::DiscountEventV3");
822
+ }
823
+ var DiscountEventV3 = /** @class */ (function () {
824
+ function DiscountEventV3(typeArgs, fields) {
825
+ this.__StructClass = true;
826
+ this.$typeName = DiscountEventV3.$typeName;
827
+ this.$isPhantom = DiscountEventV3.$isPhantom;
828
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEventV3.$typeName], __read(typeArgs), false));
829
+ this.$typeArgs = typeArgs;
830
+ this.pool = fields.pool;
831
+ this.price = fields.price;
832
+ this.discountPct = fields.discountPct;
833
+ this.discountPrice = fields.discountPrice;
834
+ this.user = fields.user;
835
+ this.vrfInput = fields.vrfInput;
836
+ this.level = fields.level;
837
+ }
838
+ DiscountEventV3.reified = function () {
839
+ var _this = this;
840
+ return {
841
+ typeName: DiscountEventV3.$typeName,
842
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DiscountEventV3.$typeName], [], false)),
843
+ typeArgs: [],
844
+ isPhantom: DiscountEventV3.$isPhantom,
845
+ reifiedTypeArgs: [],
846
+ fromFields: function (fields) { return DiscountEventV3.fromFields(fields); },
847
+ fromFieldsWithTypes: function (item) { return DiscountEventV3.fromFieldsWithTypes(item); },
848
+ fromBcs: function (data) { return DiscountEventV3.fromBcs(data); },
849
+ bcs: DiscountEventV3.bcs,
850
+ fromJSONField: function (field) { return DiscountEventV3.fromJSONField(field); },
851
+ fromJSON: function (json) { return DiscountEventV3.fromJSON(json); },
852
+ fromSuiParsedData: function (content) { return DiscountEventV3.fromSuiParsedData(content); },
853
+ fromSuiObjectData: function (content) { return DiscountEventV3.fromSuiObjectData(content); },
854
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
855
+ return [2 /*return*/, DiscountEventV3.fetch(client, id)];
856
+ }); }); },
857
+ new: function (fields) {
858
+ return new DiscountEventV3([], fields);
859
+ },
860
+ kind: "StructClassReified",
861
+ };
862
+ };
863
+ Object.defineProperty(DiscountEventV3, "r", {
864
+ get: function () {
865
+ return DiscountEventV3.reified();
866
+ },
867
+ enumerable: false,
868
+ configurable: true
869
+ });
870
+ DiscountEventV3.phantom = function () {
871
+ return (0, reified_1.phantom)(DiscountEventV3.reified());
872
+ };
873
+ Object.defineProperty(DiscountEventV3, "p", {
874
+ get: function () {
875
+ return DiscountEventV3.phantom();
876
+ },
877
+ enumerable: false,
878
+ configurable: true
879
+ });
880
+ Object.defineProperty(DiscountEventV3, "bcs", {
881
+ get: function () {
882
+ return bcs_1.bcs.struct("DiscountEventV3", {
883
+ pool: structs_3.ID.bcs,
884
+ price: bcs_1.bcs.u64(),
885
+ discount_pct: bcs_1.bcs.u64(),
886
+ discount_price: bcs_1.bcs.u64(),
887
+ user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
888
+ vrf_input: bcs_1.bcs.vector(bcs_1.bcs.u8()),
889
+ level: bcs_1.bcs.u64(),
890
+ });
891
+ },
892
+ enumerable: false,
893
+ configurable: true
894
+ });
895
+ DiscountEventV3.fromFields = function (fields) {
896
+ return DiscountEventV3.reified().new({
897
+ pool: (0, reified_1.decodeFromFields)(structs_3.ID.reified(), fields.pool),
898
+ price: (0, reified_1.decodeFromFields)("u64", fields.price),
899
+ discountPct: (0, reified_1.decodeFromFields)("u64", fields.discount_pct),
900
+ discountPrice: (0, reified_1.decodeFromFields)("u64", fields.discount_price),
901
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
902
+ vrfInput: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vrf_input),
903
+ level: (0, reified_1.decodeFromFields)("u64", fields.level),
904
+ });
905
+ };
906
+ DiscountEventV3.fromFieldsWithTypes = function (item) {
907
+ if (!isDiscountEventV3(item.type)) {
908
+ throw new Error("not a DiscountEventV3 type");
909
+ }
910
+ return DiscountEventV3.reified().new({
911
+ pool: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.ID.reified(), item.fields.pool),
912
+ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price),
913
+ discountPct: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_pct),
914
+ discountPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.discount_price),
915
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
916
+ vrfInput: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vrf_input),
917
+ level: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.level),
918
+ });
919
+ };
920
+ DiscountEventV3.fromBcs = function (data) {
921
+ return DiscountEventV3.fromFields(DiscountEventV3.bcs.parse(data));
922
+ };
923
+ DiscountEventV3.prototype.toJSONField = function () {
924
+ return {
925
+ pool: this.pool,
926
+ price: this.price.toString(),
927
+ discountPct: this.discountPct.toString(),
928
+ discountPrice: this.discountPrice.toString(),
929
+ user: this.user,
930
+ vrfInput: (0, reified_1.fieldToJSON)("vector<u8>", this.vrfInput),
931
+ level: this.level.toString(),
932
+ };
933
+ };
934
+ DiscountEventV3.prototype.toJSON = function () {
935
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
936
+ };
937
+ DiscountEventV3.fromJSONField = function (field) {
938
+ return DiscountEventV3.reified().new({
939
+ pool: (0, reified_1.decodeFromJSONField)(structs_3.ID.reified(), field.pool),
940
+ price: (0, reified_1.decodeFromJSONField)("u64", field.price),
941
+ discountPct: (0, reified_1.decodeFromJSONField)("u64", field.discountPct),
942
+ discountPrice: (0, reified_1.decodeFromJSONField)("u64", field.discountPrice),
943
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
944
+ vrfInput: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vrfInput),
945
+ level: (0, reified_1.decodeFromJSONField)("u64", field.level),
946
+ });
947
+ };
948
+ DiscountEventV3.fromJSON = function (json) {
949
+ if (json.$typeName !== DiscountEventV3.$typeName) {
950
+ throw new Error("not a WithTwoGenerics json object");
951
+ }
952
+ return DiscountEventV3.fromJSONField(json);
953
+ };
954
+ DiscountEventV3.fromSuiParsedData = function (content) {
955
+ if (content.dataType !== "moveObject") {
956
+ throw new Error("not an object");
957
+ }
958
+ if (!isDiscountEventV3(content.type)) {
959
+ throw new Error("object at ".concat(content.fields.id, " is not a DiscountEventV3 object"));
960
+ }
961
+ return DiscountEventV3.fromFieldsWithTypes(content);
962
+ };
963
+ DiscountEventV3.fromSuiObjectData = function (data) {
964
+ if (data.bcs) {
965
+ if (data.bcs.dataType !== "moveObject" || !isDiscountEventV3(data.bcs.type)) {
966
+ throw new Error("object at is not a DiscountEventV3 object");
967
+ }
968
+ return DiscountEventV3.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
969
+ }
970
+ if (data.content) {
971
+ return DiscountEventV3.fromSuiParsedData(data.content);
972
+ }
973
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
974
+ };
975
+ DiscountEventV3.fetch = function (client, id) {
976
+ return __awaiter(this, void 0, void 0, function () {
977
+ var res;
978
+ var _a, _b;
979
+ return __generator(this, function (_c) {
980
+ switch (_c.label) {
981
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
982
+ case 1:
983
+ res = _c.sent();
984
+ if (res.error) {
985
+ throw new Error("error fetching DiscountEventV3 object at id ".concat(id, ": ").concat(res.error.code));
986
+ }
987
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDiscountEventV3(res.data.bcs.type)) {
988
+ throw new Error("object at id ".concat(id, " is not a DiscountEventV3 object"));
989
+ }
990
+ return [2 /*return*/, DiscountEventV3.fromSuiObjectData(res.data)];
991
+ }
992
+ });
993
+ });
994
+ };
995
+ DiscountEventV3.$typeName = "".concat(index_1.PKG_V11, "::discount_mint::DiscountEventV3");
996
+ DiscountEventV3.$numTypeParams = 0;
997
+ DiscountEventV3.$isPhantom = [];
998
+ return DiscountEventV3;
999
+ }());
1000
+ exports.DiscountEventV3 = DiscountEventV3;
1001
+ /* ============================== MintRequest =============================== */
1002
+ function isMintRequest(type) {
1003
+ type = (0, util_1.compressSuiType)(type);
1004
+ return type === "".concat(index_1.PKG_V4, "::discount_mint::MintRequest");
1005
+ }
1006
+ var MintRequest = /** @class */ (function () {
1007
+ function MintRequest(typeArgs, fields) {
1008
+ this.__StructClass = true;
1009
+ this.$typeName = MintRequest.$typeName;
1010
+ this.$isPhantom = MintRequest.$isPhantom;
1011
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MintRequest.$typeName], __read(typeArgs), false));
1012
+ this.$typeArgs = typeArgs;
1013
+ this.user = fields.user;
1014
+ this.coin = fields.coin;
1015
+ this.vrfInput = fields.vrfInput;
1016
+ }
1017
+ MintRequest.reified = function () {
1018
+ var _this = this;
1019
+ return {
1020
+ typeName: MintRequest.$typeName,
1021
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MintRequest.$typeName], [], false)),
1022
+ typeArgs: [],
1023
+ isPhantom: MintRequest.$isPhantom,
1024
+ reifiedTypeArgs: [],
1025
+ fromFields: function (fields) { return MintRequest.fromFields(fields); },
1026
+ fromFieldsWithTypes: function (item) { return MintRequest.fromFieldsWithTypes(item); },
1027
+ fromBcs: function (data) { return MintRequest.fromBcs(data); },
1028
+ bcs: MintRequest.bcs,
1029
+ fromJSONField: function (field) { return MintRequest.fromJSONField(field); },
1030
+ fromJSON: function (json) { return MintRequest.fromJSON(json); },
1031
+ fromSuiParsedData: function (content) { return MintRequest.fromSuiParsedData(content); },
1032
+ fromSuiObjectData: function (content) { return MintRequest.fromSuiObjectData(content); },
1033
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1034
+ return [2 /*return*/, MintRequest.fetch(client, id)];
1035
+ }); }); },
1036
+ new: function (fields) {
1037
+ return new MintRequest([], fields);
1038
+ },
1039
+ kind: "StructClassReified",
1040
+ };
1041
+ };
1042
+ Object.defineProperty(MintRequest, "r", {
1043
+ get: function () {
1044
+ return MintRequest.reified();
1045
+ },
1046
+ enumerable: false,
1047
+ configurable: true
1048
+ });
1049
+ MintRequest.phantom = function () {
1050
+ return (0, reified_1.phantom)(MintRequest.reified());
1051
+ };
1052
+ Object.defineProperty(MintRequest, "p", {
1053
+ get: function () {
1054
+ return MintRequest.phantom();
1055
+ },
1056
+ enumerable: false,
1057
+ configurable: true
1058
+ });
1059
+ Object.defineProperty(MintRequest, "bcs", {
1060
+ get: function () {
1061
+ return bcs_1.bcs.struct("MintRequest", {
1062
+ user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
1063
+ coin: structs_2.Coin.bcs,
1064
+ vrf_input: bcs_1.bcs.vector(bcs_1.bcs.u8()),
1065
+ });
1066
+ },
1067
+ enumerable: false,
1068
+ configurable: true
1069
+ });
1070
+ MintRequest.fromFields = function (fields) {
1071
+ return MintRequest.reified().new({
1072
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
1073
+ coin: (0, reified_1.decodeFromFields)(structs_2.Coin.reified(reified.phantom(structs_4.SUI.reified())), fields.coin),
1074
+ vrfInput: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vrf_input),
1075
+ });
1076
+ };
1077
+ MintRequest.fromFieldsWithTypes = function (item) {
1078
+ if (!isMintRequest(item.type)) {
1079
+ throw new Error("not a MintRequest type");
1080
+ }
1081
+ return MintRequest.reified().new({
1082
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
1083
+ coin: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Coin.reified(reified.phantom(structs_4.SUI.reified())), item.fields.coin),
1084
+ vrfInput: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vrf_input),
1085
+ });
1086
+ };
1087
+ MintRequest.fromBcs = function (data) {
1088
+ return MintRequest.fromFields(MintRequest.bcs.parse(data));
1089
+ };
1090
+ MintRequest.prototype.toJSONField = function () {
1091
+ return {
1092
+ user: this.user,
1093
+ coin: this.coin.toJSONField(),
1094
+ vrfInput: (0, reified_1.fieldToJSON)("vector<u8>", this.vrfInput),
1095
+ };
1096
+ };
1097
+ MintRequest.prototype.toJSON = function () {
1098
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1099
+ };
1100
+ MintRequest.fromJSONField = function (field) {
1101
+ return MintRequest.reified().new({
1102
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
1103
+ coin: (0, reified_1.decodeFromJSONField)(structs_2.Coin.reified(reified.phantom(structs_4.SUI.reified())), field.coin),
1104
+ vrfInput: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vrfInput),
1105
+ });
1106
+ };
1107
+ MintRequest.fromJSON = function (json) {
1108
+ if (json.$typeName !== MintRequest.$typeName) {
1109
+ throw new Error("not a WithTwoGenerics json object");
1110
+ }
1111
+ return MintRequest.fromJSONField(json);
1112
+ };
1113
+ MintRequest.fromSuiParsedData = function (content) {
1114
+ if (content.dataType !== "moveObject") {
1115
+ throw new Error("not an object");
1116
+ }
1117
+ if (!isMintRequest(content.type)) {
1118
+ throw new Error("object at ".concat(content.fields.id, " is not a MintRequest object"));
1119
+ }
1120
+ return MintRequest.fromFieldsWithTypes(content);
1121
+ };
1122
+ MintRequest.fromSuiObjectData = function (data) {
1123
+ if (data.bcs) {
1124
+ if (data.bcs.dataType !== "moveObject" || !isMintRequest(data.bcs.type)) {
1125
+ throw new Error("object at is not a MintRequest object");
1126
+ }
1127
+ return MintRequest.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1128
+ }
1129
+ if (data.content) {
1130
+ return MintRequest.fromSuiParsedData(data.content);
1131
+ }
1132
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1133
+ };
1134
+ MintRequest.fetch = function (client, id) {
1135
+ return __awaiter(this, void 0, void 0, function () {
1136
+ var res;
1137
+ var _a, _b;
1138
+ return __generator(this, function (_c) {
1139
+ switch (_c.label) {
1140
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1141
+ case 1:
1142
+ res = _c.sent();
1143
+ if (res.error) {
1144
+ throw new Error("error fetching MintRequest object at id ".concat(id, ": ").concat(res.error.code));
1145
+ }
1146
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMintRequest(res.data.bcs.type)) {
1147
+ throw new Error("object at id ".concat(id, " is not a MintRequest object"));
1148
+ }
1149
+ return [2 /*return*/, MintRequest.fromSuiObjectData(res.data)];
1150
+ }
1151
+ });
1152
+ });
1153
+ };
1154
+ MintRequest.$typeName = "".concat(index_1.PKG_V4, "::discount_mint::MintRequest");
1155
+ MintRequest.$numTypeParams = 0;
1156
+ MintRequest.$isPhantom = [];
1157
+ return MintRequest;
1158
+ }());
1159
+ exports.MintRequest = MintRequest;
1160
+ /* ============================== MintRequestEvent =============================== */
1161
+ function isMintRequestEvent(type) {
1162
+ type = (0, util_1.compressSuiType)(type);
1163
+ return type === "".concat(index_1.PKG_V6, "::discount_mint::MintRequestEvent");
1164
+ }
1165
+ var MintRequestEvent = /** @class */ (function () {
1166
+ function MintRequestEvent(typeArgs, fields) {
1167
+ this.__StructClass = true;
1168
+ this.$typeName = MintRequestEvent.$typeName;
1169
+ this.$isPhantom = MintRequestEvent.$isPhantom;
1170
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MintRequestEvent.$typeName], __read(typeArgs), false));
1171
+ this.$typeArgs = typeArgs;
1172
+ this.user = fields.user;
1173
+ this.vrfInput = fields.vrfInput;
1174
+ this.remaining = fields.remaining;
1175
+ this.seed = fields.seed;
1176
+ }
1177
+ MintRequestEvent.reified = function () {
1178
+ var _this = this;
1179
+ return {
1180
+ typeName: MintRequestEvent.$typeName,
1181
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MintRequestEvent.$typeName], [], false)),
1182
+ typeArgs: [],
1183
+ isPhantom: MintRequestEvent.$isPhantom,
1184
+ reifiedTypeArgs: [],
1185
+ fromFields: function (fields) { return MintRequestEvent.fromFields(fields); },
1186
+ fromFieldsWithTypes: function (item) { return MintRequestEvent.fromFieldsWithTypes(item); },
1187
+ fromBcs: function (data) { return MintRequestEvent.fromBcs(data); },
1188
+ bcs: MintRequestEvent.bcs,
1189
+ fromJSONField: function (field) { return MintRequestEvent.fromJSONField(field); },
1190
+ fromJSON: function (json) { return MintRequestEvent.fromJSON(json); },
1191
+ fromSuiParsedData: function (content) { return MintRequestEvent.fromSuiParsedData(content); },
1192
+ fromSuiObjectData: function (content) { return MintRequestEvent.fromSuiObjectData(content); },
1193
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1194
+ return [2 /*return*/, MintRequestEvent.fetch(client, id)];
1195
+ }); }); },
1196
+ new: function (fields) {
1197
+ return new MintRequestEvent([], fields);
1198
+ },
1199
+ kind: "StructClassReified",
1200
+ };
1201
+ };
1202
+ Object.defineProperty(MintRequestEvent, "r", {
1203
+ get: function () {
1204
+ return MintRequestEvent.reified();
1205
+ },
1206
+ enumerable: false,
1207
+ configurable: true
1208
+ });
1209
+ MintRequestEvent.phantom = function () {
1210
+ return (0, reified_1.phantom)(MintRequestEvent.reified());
1211
+ };
1212
+ Object.defineProperty(MintRequestEvent, "p", {
1213
+ get: function () {
1214
+ return MintRequestEvent.phantom();
1215
+ },
1216
+ enumerable: false,
1217
+ configurable: true
1218
+ });
1219
+ Object.defineProperty(MintRequestEvent, "bcs", {
1220
+ get: function () {
1221
+ return bcs_1.bcs.struct("MintRequestEvent", {
1222
+ user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
1223
+ vrf_input: bcs_1.bcs.vector(bcs_1.bcs.u8()),
1224
+ remaining: bcs_1.bcs.u64(),
1225
+ seed: bcs_1.bcs.u64(),
1226
+ });
1227
+ },
1228
+ enumerable: false,
1229
+ configurable: true
1230
+ });
1231
+ MintRequestEvent.fromFields = function (fields) {
1232
+ return MintRequestEvent.reified().new({
1233
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
1234
+ vrfInput: (0, reified_1.decodeFromFields)(reified.vector("u8"), fields.vrf_input),
1235
+ remaining: (0, reified_1.decodeFromFields)("u64", fields.remaining),
1236
+ seed: (0, reified_1.decodeFromFields)("u64", fields.seed),
1237
+ });
1238
+ };
1239
+ MintRequestEvent.fromFieldsWithTypes = function (item) {
1240
+ if (!isMintRequestEvent(item.type)) {
1241
+ throw new Error("not a MintRequestEvent type");
1242
+ }
1243
+ return MintRequestEvent.reified().new({
1244
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
1245
+ vrfInput: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u8"), item.fields.vrf_input),
1246
+ remaining: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.remaining),
1247
+ seed: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.seed),
1248
+ });
1249
+ };
1250
+ MintRequestEvent.fromBcs = function (data) {
1251
+ return MintRequestEvent.fromFields(MintRequestEvent.bcs.parse(data));
1252
+ };
1253
+ MintRequestEvent.prototype.toJSONField = function () {
1254
+ return {
1255
+ user: this.user,
1256
+ vrfInput: (0, reified_1.fieldToJSON)("vector<u8>", this.vrfInput),
1257
+ remaining: this.remaining.toString(),
1258
+ seed: this.seed.toString(),
1259
+ };
1260
+ };
1261
+ MintRequestEvent.prototype.toJSON = function () {
1262
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1263
+ };
1264
+ MintRequestEvent.fromJSONField = function (field) {
1265
+ return MintRequestEvent.reified().new({
1266
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
1267
+ vrfInput: (0, reified_1.decodeFromJSONField)(reified.vector("u8"), field.vrfInput),
1268
+ remaining: (0, reified_1.decodeFromJSONField)("u64", field.remaining),
1269
+ seed: (0, reified_1.decodeFromJSONField)("u64", field.seed),
1270
+ });
1271
+ };
1272
+ MintRequestEvent.fromJSON = function (json) {
1273
+ if (json.$typeName !== MintRequestEvent.$typeName) {
1274
+ throw new Error("not a WithTwoGenerics json object");
1275
+ }
1276
+ return MintRequestEvent.fromJSONField(json);
1277
+ };
1278
+ MintRequestEvent.fromSuiParsedData = function (content) {
1279
+ if (content.dataType !== "moveObject") {
1280
+ throw new Error("not an object");
1281
+ }
1282
+ if (!isMintRequestEvent(content.type)) {
1283
+ throw new Error("object at ".concat(content.fields.id, " is not a MintRequestEvent object"));
1284
+ }
1285
+ return MintRequestEvent.fromFieldsWithTypes(content);
1286
+ };
1287
+ MintRequestEvent.fromSuiObjectData = function (data) {
1288
+ if (data.bcs) {
1289
+ if (data.bcs.dataType !== "moveObject" || !isMintRequestEvent(data.bcs.type)) {
1290
+ throw new Error("object at is not a MintRequestEvent object");
1291
+ }
1292
+ return MintRequestEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1293
+ }
1294
+ if (data.content) {
1295
+ return MintRequestEvent.fromSuiParsedData(data.content);
1296
+ }
1297
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1298
+ };
1299
+ MintRequestEvent.fetch = function (client, id) {
1300
+ return __awaiter(this, void 0, void 0, function () {
1301
+ var res;
1302
+ var _a, _b;
1303
+ return __generator(this, function (_c) {
1304
+ switch (_c.label) {
1305
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1306
+ case 1:
1307
+ res = _c.sent();
1308
+ if (res.error) {
1309
+ throw new Error("error fetching MintRequestEvent object at id ".concat(id, ": ").concat(res.error.code));
1310
+ }
1311
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMintRequestEvent(res.data.bcs.type)) {
1312
+ throw new Error("object at id ".concat(id, " is not a MintRequestEvent object"));
1313
+ }
1314
+ return [2 /*return*/, MintRequestEvent.fromSuiObjectData(res.data)];
1315
+ }
1316
+ });
1317
+ });
1318
+ };
1319
+ MintRequestEvent.$typeName = "".concat(index_1.PKG_V6, "::discount_mint::MintRequestEvent");
1320
+ MintRequestEvent.$numTypeParams = 0;
1321
+ MintRequestEvent.$isPhantom = [];
1322
+ return MintRequestEvent;
1323
+ }());
1324
+ exports.MintRequestEvent = MintRequestEvent;