@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,1095 @@
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
+ return new (P || (P = Promise))(function (resolve, reject) {
16
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
20
+ });
21
+ };
22
+ var __generator = (this && this.__generator) || function (thisArg, body) {
23
+ 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);
24
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
+ function verb(n) { return function (v) { return step([n, v]); }; }
26
+ function step(op) {
27
+ if (f) throw new TypeError("Generator is already executing.");
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
+ 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;
30
+ if (y = 0, t) op = [op[0] & 2, t.value];
31
+ switch (op[0]) {
32
+ case 0: case 1: t = op; break;
33
+ case 4: _.label++; return { value: op[1], done: false };
34
+ case 5: _.label++; y = op[1]; op = [0]; continue;
35
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
+ default:
37
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
+ if (t[2]) _.ops.pop();
42
+ _.trys.pop(); continue;
43
+ }
44
+ op = body.call(thisArg, _);
45
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
+ }
48
+ };
49
+ var __read = (this && this.__read) || function (o, n) {
50
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
51
+ if (!m) return o;
52
+ var i = m.call(o), r, ar = [], e;
53
+ try {
54
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
55
+ }
56
+ catch (error) { e = { error: error }; }
57
+ finally {
58
+ try {
59
+ if (r && !r.done && (m = i["return"])) m.call(i);
60
+ }
61
+ finally { if (e) throw e.error; }
62
+ }
63
+ return ar;
64
+ };
65
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
66
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
67
+ if (ar || !(i in from)) {
68
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
69
+ ar[i] = from[i];
70
+ }
71
+ }
72
+ return to.concat(ar || Array.prototype.slice.call(from));
73
+ };
74
+ Object.defineProperty(exports, "__esModule", { value: true });
75
+ exports.TokenPolicyCreated = exports.TokenPolicyCap = exports.TokenPolicy = exports.Token = exports.ActionRequest = exports.RuleKey = void 0;
76
+ exports.isRuleKey = isRuleKey;
77
+ exports.isActionRequest = isActionRequest;
78
+ exports.isToken = isToken;
79
+ exports.isTokenPolicy = isTokenPolicy;
80
+ exports.isTokenPolicyCap = isTokenPolicyCap;
81
+ exports.isTokenPolicyCreated = isTokenPolicyCreated;
82
+ var reified_1 = require("../../../../_framework/reified");
83
+ var util_1 = require("../../../../_framework/util");
84
+ var structs_1 = require("../../0x1/option/structs");
85
+ var structs_2 = require("../../0x1/string/structs");
86
+ var structs_3 = require("../../0x1/type-name/structs");
87
+ var structs_4 = require("../balance/structs");
88
+ var index_1 = require("../index");
89
+ var structs_5 = require("../object/structs");
90
+ var structs_6 = require("../vec-map/structs");
91
+ var structs_7 = require("../vec-set/structs");
92
+ var bcs_1 = require("@mysten/sui/bcs");
93
+ var utils_1 = require("@mysten/sui/utils");
94
+ /* ============================== RuleKey =============================== */
95
+ function isRuleKey(type) {
96
+ type = (0, util_1.compressSuiType)(type);
97
+ return type.startsWith("".concat(index_1.PKG_V26, "::token::RuleKey") + "<");
98
+ }
99
+ var RuleKey = /** @class */ (function () {
100
+ function RuleKey(typeArgs, fields) {
101
+ this.__StructClass = true;
102
+ this.$typeName = RuleKey.$typeName;
103
+ this.$isPhantom = RuleKey.$isPhantom;
104
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RuleKey.$typeName], __read(typeArgs), false));
105
+ this.$typeArgs = typeArgs;
106
+ this.isProtected = fields.isProtected;
107
+ }
108
+ RuleKey.reified = function (T) {
109
+ var _this = this;
110
+ return {
111
+ typeName: RuleKey.$typeName,
112
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RuleKey.$typeName], [(0, reified_1.extractType)(T)], false)),
113
+ typeArgs: [(0, reified_1.extractType)(T)],
114
+ isPhantom: RuleKey.$isPhantom,
115
+ reifiedTypeArgs: [T],
116
+ fromFields: function (fields) { return RuleKey.fromFields(T, fields); },
117
+ fromFieldsWithTypes: function (item) { return RuleKey.fromFieldsWithTypes(T, item); },
118
+ fromBcs: function (data) { return RuleKey.fromBcs(T, data); },
119
+ bcs: RuleKey.bcs,
120
+ fromJSONField: function (field) { return RuleKey.fromJSONField(T, field); },
121
+ fromJSON: function (json) { return RuleKey.fromJSON(T, json); },
122
+ fromSuiParsedData: function (content) { return RuleKey.fromSuiParsedData(T, content); },
123
+ fromSuiObjectData: function (content) { return RuleKey.fromSuiObjectData(T, content); },
124
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
125
+ return [2 /*return*/, RuleKey.fetch(client, T, id)];
126
+ }); }); },
127
+ new: function (fields) {
128
+ return new RuleKey([(0, reified_1.extractType)(T)], fields);
129
+ },
130
+ kind: "StructClassReified",
131
+ };
132
+ };
133
+ Object.defineProperty(RuleKey, "r", {
134
+ get: function () {
135
+ return RuleKey.reified;
136
+ },
137
+ enumerable: false,
138
+ configurable: true
139
+ });
140
+ RuleKey.phantom = function (T) {
141
+ return (0, reified_1.phantom)(RuleKey.reified(T));
142
+ };
143
+ Object.defineProperty(RuleKey, "p", {
144
+ get: function () {
145
+ return RuleKey.phantom;
146
+ },
147
+ enumerable: false,
148
+ configurable: true
149
+ });
150
+ Object.defineProperty(RuleKey, "bcs", {
151
+ get: function () {
152
+ return bcs_1.bcs.struct("RuleKey", {
153
+ is_protected: bcs_1.bcs.bool(),
154
+ });
155
+ },
156
+ enumerable: false,
157
+ configurable: true
158
+ });
159
+ RuleKey.fromFields = function (typeArg, fields) {
160
+ return RuleKey.reified(typeArg).new({ isProtected: (0, reified_1.decodeFromFields)("bool", fields.is_protected) });
161
+ };
162
+ RuleKey.fromFieldsWithTypes = function (typeArg, item) {
163
+ if (!isRuleKey(item.type)) {
164
+ throw new Error("not a RuleKey type");
165
+ }
166
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
167
+ return RuleKey.reified(typeArg).new({ isProtected: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_protected) });
168
+ };
169
+ RuleKey.fromBcs = function (typeArg, data) {
170
+ return RuleKey.fromFields(typeArg, RuleKey.bcs.parse(data));
171
+ };
172
+ RuleKey.prototype.toJSONField = function () {
173
+ return {
174
+ isProtected: this.isProtected,
175
+ };
176
+ };
177
+ RuleKey.prototype.toJSON = function () {
178
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
179
+ };
180
+ RuleKey.fromJSONField = function (typeArg, field) {
181
+ return RuleKey.reified(typeArg).new({ isProtected: (0, reified_1.decodeFromJSONField)("bool", field.isProtected) });
182
+ };
183
+ RuleKey.fromJSON = function (typeArg, json) {
184
+ if (json.$typeName !== RuleKey.$typeName) {
185
+ throw new Error("not a WithTwoGenerics json object");
186
+ }
187
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(RuleKey.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
188
+ return RuleKey.fromJSONField(typeArg, json);
189
+ };
190
+ RuleKey.fromSuiParsedData = function (typeArg, content) {
191
+ if (content.dataType !== "moveObject") {
192
+ throw new Error("not an object");
193
+ }
194
+ if (!isRuleKey(content.type)) {
195
+ throw new Error("object at ".concat(content.fields.id, " is not a RuleKey object"));
196
+ }
197
+ return RuleKey.fromFieldsWithTypes(typeArg, content);
198
+ };
199
+ RuleKey.fromSuiObjectData = function (typeArg, data) {
200
+ if (data.bcs) {
201
+ if (data.bcs.dataType !== "moveObject" || !isRuleKey(data.bcs.type)) {
202
+ throw new Error("object at is not a RuleKey object");
203
+ }
204
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
205
+ if (gotTypeArgs.length !== 1) {
206
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
207
+ }
208
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
209
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
210
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
211
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
212
+ }
213
+ return RuleKey.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
214
+ }
215
+ if (data.content) {
216
+ return RuleKey.fromSuiParsedData(typeArg, data.content);
217
+ }
218
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
219
+ };
220
+ RuleKey.fetch = function (client, typeArg, id) {
221
+ return __awaiter(this, void 0, void 0, function () {
222
+ var res;
223
+ var _a, _b;
224
+ return __generator(this, function (_c) {
225
+ switch (_c.label) {
226
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
227
+ case 1:
228
+ res = _c.sent();
229
+ if (res.error) {
230
+ throw new Error("error fetching RuleKey object at id ".concat(id, ": ").concat(res.error.code));
231
+ }
232
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRuleKey(res.data.bcs.type)) {
233
+ throw new Error("object at id ".concat(id, " is not a RuleKey object"));
234
+ }
235
+ return [2 /*return*/, RuleKey.fromSuiObjectData(typeArg, res.data)];
236
+ }
237
+ });
238
+ });
239
+ };
240
+ RuleKey.$typeName = "".concat(index_1.PKG_V26, "::token::RuleKey");
241
+ RuleKey.$numTypeParams = 1;
242
+ RuleKey.$isPhantom = [true];
243
+ return RuleKey;
244
+ }());
245
+ exports.RuleKey = RuleKey;
246
+ /* ============================== ActionRequest =============================== */
247
+ function isActionRequest(type) {
248
+ type = (0, util_1.compressSuiType)(type);
249
+ return type.startsWith("".concat(index_1.PKG_V26, "::token::ActionRequest") + "<");
250
+ }
251
+ var ActionRequest = /** @class */ (function () {
252
+ function ActionRequest(typeArgs, fields) {
253
+ this.__StructClass = true;
254
+ this.$typeName = ActionRequest.$typeName;
255
+ this.$isPhantom = ActionRequest.$isPhantom;
256
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ActionRequest.$typeName], __read(typeArgs), false));
257
+ this.$typeArgs = typeArgs;
258
+ this.name = fields.name;
259
+ this.amount = fields.amount;
260
+ this.sender = fields.sender;
261
+ this.recipient = fields.recipient;
262
+ this.spentBalance = fields.spentBalance;
263
+ this.approvals = fields.approvals;
264
+ }
265
+ ActionRequest.reified = function (T) {
266
+ var _this = this;
267
+ return {
268
+ typeName: ActionRequest.$typeName,
269
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ActionRequest.$typeName], [(0, reified_1.extractType)(T)], false)),
270
+ typeArgs: [(0, reified_1.extractType)(T)],
271
+ isPhantom: ActionRequest.$isPhantom,
272
+ reifiedTypeArgs: [T],
273
+ fromFields: function (fields) { return ActionRequest.fromFields(T, fields); },
274
+ fromFieldsWithTypes: function (item) { return ActionRequest.fromFieldsWithTypes(T, item); },
275
+ fromBcs: function (data) { return ActionRequest.fromBcs(T, data); },
276
+ bcs: ActionRequest.bcs,
277
+ fromJSONField: function (field) { return ActionRequest.fromJSONField(T, field); },
278
+ fromJSON: function (json) { return ActionRequest.fromJSON(T, json); },
279
+ fromSuiParsedData: function (content) { return ActionRequest.fromSuiParsedData(T, content); },
280
+ fromSuiObjectData: function (content) { return ActionRequest.fromSuiObjectData(T, content); },
281
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
282
+ return [2 /*return*/, ActionRequest.fetch(client, T, id)];
283
+ }); }); },
284
+ new: function (fields) {
285
+ return new ActionRequest([(0, reified_1.extractType)(T)], fields);
286
+ },
287
+ kind: "StructClassReified",
288
+ };
289
+ };
290
+ Object.defineProperty(ActionRequest, "r", {
291
+ get: function () {
292
+ return ActionRequest.reified;
293
+ },
294
+ enumerable: false,
295
+ configurable: true
296
+ });
297
+ ActionRequest.phantom = function (T) {
298
+ return (0, reified_1.phantom)(ActionRequest.reified(T));
299
+ };
300
+ Object.defineProperty(ActionRequest, "p", {
301
+ get: function () {
302
+ return ActionRequest.phantom;
303
+ },
304
+ enumerable: false,
305
+ configurable: true
306
+ });
307
+ Object.defineProperty(ActionRequest, "bcs", {
308
+ get: function () {
309
+ return bcs_1.bcs.struct("ActionRequest", {
310
+ name: structs_2.String.bcs,
311
+ amount: bcs_1.bcs.u64(),
312
+ sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } }),
313
+ recipient: structs_1.Option.bcs(bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, utils_1.fromHEX)(val); }, output: function (val) { return (0, utils_1.toHEX)(val); } })),
314
+ spent_balance: structs_1.Option.bcs(structs_4.Balance.bcs),
315
+ approvals: structs_7.VecSet.bcs(structs_3.TypeName.bcs),
316
+ });
317
+ },
318
+ enumerable: false,
319
+ configurable: true
320
+ });
321
+ ActionRequest.fromFields = function (typeArg, fields) {
322
+ return ActionRequest.reified(typeArg).new({
323
+ name: (0, reified_1.decodeFromFields)(structs_2.String.reified(), fields.name),
324
+ amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
325
+ sender: (0, reified_1.decodeFromFields)("address", fields.sender),
326
+ recipient: (0, reified_1.decodeFromFields)(structs_1.Option.reified("address"), fields.recipient),
327
+ spentBalance: (0, reified_1.decodeFromFields)(structs_1.Option.reified(structs_4.Balance.reified(typeArg)), fields.spent_balance),
328
+ approvals: (0, reified_1.decodeFromFields)(structs_7.VecSet.reified(structs_3.TypeName.reified()), fields.approvals),
329
+ });
330
+ };
331
+ ActionRequest.fromFieldsWithTypes = function (typeArg, item) {
332
+ if (!isActionRequest(item.type)) {
333
+ throw new Error("not a ActionRequest type");
334
+ }
335
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
336
+ return ActionRequest.reified(typeArg).new({
337
+ name: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.String.reified(), item.fields.name),
338
+ amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
339
+ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
340
+ recipient: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Option.reified("address"), item.fields.recipient),
341
+ spentBalance: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.Option.reified(structs_4.Balance.reified(typeArg)), item.fields.spent_balance),
342
+ approvals: (0, reified_1.decodeFromFieldsWithTypes)(structs_7.VecSet.reified(structs_3.TypeName.reified()), item.fields.approvals),
343
+ });
344
+ };
345
+ ActionRequest.fromBcs = function (typeArg, data) {
346
+ return ActionRequest.fromFields(typeArg, ActionRequest.bcs.parse(data));
347
+ };
348
+ ActionRequest.prototype.toJSONField = function () {
349
+ return {
350
+ name: this.name,
351
+ amount: this.amount.toString(),
352
+ sender: this.sender,
353
+ recipient: (0, reified_1.fieldToJSON)("".concat(structs_1.Option.$typeName, "<address>"), this.recipient),
354
+ spentBalance: (0, reified_1.fieldToJSON)("".concat(structs_1.Option.$typeName, "<").concat(structs_4.Balance.$typeName, "<").concat(this.$typeArgs[0], ">>"), this.spentBalance),
355
+ approvals: this.approvals.toJSONField(),
356
+ };
357
+ };
358
+ ActionRequest.prototype.toJSON = function () {
359
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
360
+ };
361
+ ActionRequest.fromJSONField = function (typeArg, field) {
362
+ return ActionRequest.reified(typeArg).new({
363
+ name: (0, reified_1.decodeFromJSONField)(structs_2.String.reified(), field.name),
364
+ amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
365
+ sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
366
+ recipient: (0, reified_1.decodeFromJSONField)(structs_1.Option.reified("address"), field.recipient),
367
+ spentBalance: (0, reified_1.decodeFromJSONField)(structs_1.Option.reified(structs_4.Balance.reified(typeArg)), field.spentBalance),
368
+ approvals: (0, reified_1.decodeFromJSONField)(structs_7.VecSet.reified(structs_3.TypeName.reified()), field.approvals),
369
+ });
370
+ };
371
+ ActionRequest.fromJSON = function (typeArg, json) {
372
+ if (json.$typeName !== ActionRequest.$typeName) {
373
+ throw new Error("not a WithTwoGenerics json object");
374
+ }
375
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(ActionRequest.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
376
+ return ActionRequest.fromJSONField(typeArg, json);
377
+ };
378
+ ActionRequest.fromSuiParsedData = function (typeArg, content) {
379
+ if (content.dataType !== "moveObject") {
380
+ throw new Error("not an object");
381
+ }
382
+ if (!isActionRequest(content.type)) {
383
+ throw new Error("object at ".concat(content.fields.id, " is not a ActionRequest object"));
384
+ }
385
+ return ActionRequest.fromFieldsWithTypes(typeArg, content);
386
+ };
387
+ ActionRequest.fromSuiObjectData = function (typeArg, data) {
388
+ if (data.bcs) {
389
+ if (data.bcs.dataType !== "moveObject" || !isActionRequest(data.bcs.type)) {
390
+ throw new Error("object at is not a ActionRequest object");
391
+ }
392
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
393
+ if (gotTypeArgs.length !== 1) {
394
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
395
+ }
396
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
397
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
398
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
399
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
400
+ }
401
+ return ActionRequest.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
402
+ }
403
+ if (data.content) {
404
+ return ActionRequest.fromSuiParsedData(typeArg, data.content);
405
+ }
406
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
407
+ };
408
+ ActionRequest.fetch = function (client, typeArg, id) {
409
+ return __awaiter(this, void 0, void 0, function () {
410
+ var res;
411
+ var _a, _b;
412
+ return __generator(this, function (_c) {
413
+ switch (_c.label) {
414
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
415
+ case 1:
416
+ res = _c.sent();
417
+ if (res.error) {
418
+ throw new Error("error fetching ActionRequest object at id ".concat(id, ": ").concat(res.error.code));
419
+ }
420
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isActionRequest(res.data.bcs.type)) {
421
+ throw new Error("object at id ".concat(id, " is not a ActionRequest object"));
422
+ }
423
+ return [2 /*return*/, ActionRequest.fromSuiObjectData(typeArg, res.data)];
424
+ }
425
+ });
426
+ });
427
+ };
428
+ ActionRequest.$typeName = "".concat(index_1.PKG_V26, "::token::ActionRequest");
429
+ ActionRequest.$numTypeParams = 1;
430
+ ActionRequest.$isPhantom = [true];
431
+ return ActionRequest;
432
+ }());
433
+ exports.ActionRequest = ActionRequest;
434
+ /* ============================== Token =============================== */
435
+ function isToken(type) {
436
+ type = (0, util_1.compressSuiType)(type);
437
+ return type.startsWith("".concat(index_1.PKG_V26, "::token::Token") + "<");
438
+ }
439
+ var Token = /** @class */ (function () {
440
+ function Token(typeArgs, fields) {
441
+ this.__StructClass = true;
442
+ this.$typeName = Token.$typeName;
443
+ this.$isPhantom = Token.$isPhantom;
444
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Token.$typeName], __read(typeArgs), false));
445
+ this.$typeArgs = typeArgs;
446
+ this.id = fields.id;
447
+ this.balance = fields.balance;
448
+ }
449
+ Token.reified = function (T) {
450
+ var _this = this;
451
+ return {
452
+ typeName: Token.$typeName,
453
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Token.$typeName], [(0, reified_1.extractType)(T)], false)),
454
+ typeArgs: [(0, reified_1.extractType)(T)],
455
+ isPhantom: Token.$isPhantom,
456
+ reifiedTypeArgs: [T],
457
+ fromFields: function (fields) { return Token.fromFields(T, fields); },
458
+ fromFieldsWithTypes: function (item) { return Token.fromFieldsWithTypes(T, item); },
459
+ fromBcs: function (data) { return Token.fromBcs(T, data); },
460
+ bcs: Token.bcs,
461
+ fromJSONField: function (field) { return Token.fromJSONField(T, field); },
462
+ fromJSON: function (json) { return Token.fromJSON(T, json); },
463
+ fromSuiParsedData: function (content) { return Token.fromSuiParsedData(T, content); },
464
+ fromSuiObjectData: function (content) { return Token.fromSuiObjectData(T, content); },
465
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
466
+ return [2 /*return*/, Token.fetch(client, T, id)];
467
+ }); }); },
468
+ new: function (fields) {
469
+ return new Token([(0, reified_1.extractType)(T)], fields);
470
+ },
471
+ kind: "StructClassReified",
472
+ };
473
+ };
474
+ Object.defineProperty(Token, "r", {
475
+ get: function () {
476
+ return Token.reified;
477
+ },
478
+ enumerable: false,
479
+ configurable: true
480
+ });
481
+ Token.phantom = function (T) {
482
+ return (0, reified_1.phantom)(Token.reified(T));
483
+ };
484
+ Object.defineProperty(Token, "p", {
485
+ get: function () {
486
+ return Token.phantom;
487
+ },
488
+ enumerable: false,
489
+ configurable: true
490
+ });
491
+ Object.defineProperty(Token, "bcs", {
492
+ get: function () {
493
+ return bcs_1.bcs.struct("Token", {
494
+ id: structs_5.UID.bcs,
495
+ balance: structs_4.Balance.bcs,
496
+ });
497
+ },
498
+ enumerable: false,
499
+ configurable: true
500
+ });
501
+ Token.fromFields = function (typeArg, fields) {
502
+ return Token.reified(typeArg).new({
503
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
504
+ balance: (0, reified_1.decodeFromFields)(structs_4.Balance.reified(typeArg), fields.balance),
505
+ });
506
+ };
507
+ Token.fromFieldsWithTypes = function (typeArg, item) {
508
+ if (!isToken(item.type)) {
509
+ throw new Error("not a Token type");
510
+ }
511
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
512
+ return Token.reified(typeArg).new({
513
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
514
+ balance: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Balance.reified(typeArg), item.fields.balance),
515
+ });
516
+ };
517
+ Token.fromBcs = function (typeArg, data) {
518
+ return Token.fromFields(typeArg, Token.bcs.parse(data));
519
+ };
520
+ Token.prototype.toJSONField = function () {
521
+ return {
522
+ id: this.id,
523
+ balance: this.balance.toJSONField(),
524
+ };
525
+ };
526
+ Token.prototype.toJSON = function () {
527
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
528
+ };
529
+ Token.fromJSONField = function (typeArg, field) {
530
+ return Token.reified(typeArg).new({
531
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
532
+ balance: (0, reified_1.decodeFromJSONField)(structs_4.Balance.reified(typeArg), field.balance),
533
+ });
534
+ };
535
+ Token.fromJSON = function (typeArg, json) {
536
+ if (json.$typeName !== Token.$typeName) {
537
+ throw new Error("not a WithTwoGenerics json object");
538
+ }
539
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(Token.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
540
+ return Token.fromJSONField(typeArg, json);
541
+ };
542
+ Token.fromSuiParsedData = function (typeArg, content) {
543
+ if (content.dataType !== "moveObject") {
544
+ throw new Error("not an object");
545
+ }
546
+ if (!isToken(content.type)) {
547
+ throw new Error("object at ".concat(content.fields.id, " is not a Token object"));
548
+ }
549
+ return Token.fromFieldsWithTypes(typeArg, content);
550
+ };
551
+ Token.fromSuiObjectData = function (typeArg, data) {
552
+ if (data.bcs) {
553
+ if (data.bcs.dataType !== "moveObject" || !isToken(data.bcs.type)) {
554
+ throw new Error("object at is not a Token object");
555
+ }
556
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
557
+ if (gotTypeArgs.length !== 1) {
558
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
559
+ }
560
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
561
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
562
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
563
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
564
+ }
565
+ return Token.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
566
+ }
567
+ if (data.content) {
568
+ return Token.fromSuiParsedData(typeArg, data.content);
569
+ }
570
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
571
+ };
572
+ Token.fetch = function (client, typeArg, id) {
573
+ return __awaiter(this, void 0, void 0, function () {
574
+ var res;
575
+ var _a, _b;
576
+ return __generator(this, function (_c) {
577
+ switch (_c.label) {
578
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
579
+ case 1:
580
+ res = _c.sent();
581
+ if (res.error) {
582
+ throw new Error("error fetching Token object at id ".concat(id, ": ").concat(res.error.code));
583
+ }
584
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isToken(res.data.bcs.type)) {
585
+ throw new Error("object at id ".concat(id, " is not a Token object"));
586
+ }
587
+ return [2 /*return*/, Token.fromSuiObjectData(typeArg, res.data)];
588
+ }
589
+ });
590
+ });
591
+ };
592
+ Token.$typeName = "".concat(index_1.PKG_V26, "::token::Token");
593
+ Token.$numTypeParams = 1;
594
+ Token.$isPhantom = [true];
595
+ return Token;
596
+ }());
597
+ exports.Token = Token;
598
+ /* ============================== TokenPolicy =============================== */
599
+ function isTokenPolicy(type) {
600
+ type = (0, util_1.compressSuiType)(type);
601
+ return type.startsWith("".concat(index_1.PKG_V26, "::token::TokenPolicy") + "<");
602
+ }
603
+ var TokenPolicy = /** @class */ (function () {
604
+ function TokenPolicy(typeArgs, fields) {
605
+ this.__StructClass = true;
606
+ this.$typeName = TokenPolicy.$typeName;
607
+ this.$isPhantom = TokenPolicy.$isPhantom;
608
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicy.$typeName], __read(typeArgs), false));
609
+ this.$typeArgs = typeArgs;
610
+ this.id = fields.id;
611
+ this.spentBalance = fields.spentBalance;
612
+ this.rules = fields.rules;
613
+ }
614
+ TokenPolicy.reified = function (T) {
615
+ var _this = this;
616
+ return {
617
+ typeName: TokenPolicy.$typeName,
618
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicy.$typeName], [(0, reified_1.extractType)(T)], false)),
619
+ typeArgs: [(0, reified_1.extractType)(T)],
620
+ isPhantom: TokenPolicy.$isPhantom,
621
+ reifiedTypeArgs: [T],
622
+ fromFields: function (fields) { return TokenPolicy.fromFields(T, fields); },
623
+ fromFieldsWithTypes: function (item) { return TokenPolicy.fromFieldsWithTypes(T, item); },
624
+ fromBcs: function (data) { return TokenPolicy.fromBcs(T, data); },
625
+ bcs: TokenPolicy.bcs,
626
+ fromJSONField: function (field) { return TokenPolicy.fromJSONField(T, field); },
627
+ fromJSON: function (json) { return TokenPolicy.fromJSON(T, json); },
628
+ fromSuiParsedData: function (content) { return TokenPolicy.fromSuiParsedData(T, content); },
629
+ fromSuiObjectData: function (content) { return TokenPolicy.fromSuiObjectData(T, content); },
630
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
631
+ return [2 /*return*/, TokenPolicy.fetch(client, T, id)];
632
+ }); }); },
633
+ new: function (fields) {
634
+ return new TokenPolicy([(0, reified_1.extractType)(T)], fields);
635
+ },
636
+ kind: "StructClassReified",
637
+ };
638
+ };
639
+ Object.defineProperty(TokenPolicy, "r", {
640
+ get: function () {
641
+ return TokenPolicy.reified;
642
+ },
643
+ enumerable: false,
644
+ configurable: true
645
+ });
646
+ TokenPolicy.phantom = function (T) {
647
+ return (0, reified_1.phantom)(TokenPolicy.reified(T));
648
+ };
649
+ Object.defineProperty(TokenPolicy, "p", {
650
+ get: function () {
651
+ return TokenPolicy.phantom;
652
+ },
653
+ enumerable: false,
654
+ configurable: true
655
+ });
656
+ Object.defineProperty(TokenPolicy, "bcs", {
657
+ get: function () {
658
+ return bcs_1.bcs.struct("TokenPolicy", {
659
+ id: structs_5.UID.bcs,
660
+ spent_balance: structs_4.Balance.bcs,
661
+ rules: structs_6.VecMap.bcs(structs_2.String.bcs, structs_7.VecSet.bcs(structs_3.TypeName.bcs)),
662
+ });
663
+ },
664
+ enumerable: false,
665
+ configurable: true
666
+ });
667
+ TokenPolicy.fromFields = function (typeArg, fields) {
668
+ return TokenPolicy.reified(typeArg).new({
669
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
670
+ spentBalance: (0, reified_1.decodeFromFields)(structs_4.Balance.reified(typeArg), fields.spent_balance),
671
+ rules: (0, reified_1.decodeFromFields)(structs_6.VecMap.reified(structs_2.String.reified(), structs_7.VecSet.reified(structs_3.TypeName.reified())), fields.rules),
672
+ });
673
+ };
674
+ TokenPolicy.fromFieldsWithTypes = function (typeArg, item) {
675
+ if (!isTokenPolicy(item.type)) {
676
+ throw new Error("not a TokenPolicy type");
677
+ }
678
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
679
+ return TokenPolicy.reified(typeArg).new({
680
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
681
+ spentBalance: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Balance.reified(typeArg), item.fields.spent_balance),
682
+ rules: (0, reified_1.decodeFromFieldsWithTypes)(structs_6.VecMap.reified(structs_2.String.reified(), structs_7.VecSet.reified(structs_3.TypeName.reified())), item.fields.rules),
683
+ });
684
+ };
685
+ TokenPolicy.fromBcs = function (typeArg, data) {
686
+ return TokenPolicy.fromFields(typeArg, TokenPolicy.bcs.parse(data));
687
+ };
688
+ TokenPolicy.prototype.toJSONField = function () {
689
+ return {
690
+ id: this.id,
691
+ spentBalance: this.spentBalance.toJSONField(),
692
+ rules: this.rules.toJSONField(),
693
+ };
694
+ };
695
+ TokenPolicy.prototype.toJSON = function () {
696
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
697
+ };
698
+ TokenPolicy.fromJSONField = function (typeArg, field) {
699
+ return TokenPolicy.reified(typeArg).new({
700
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
701
+ spentBalance: (0, reified_1.decodeFromJSONField)(structs_4.Balance.reified(typeArg), field.spentBalance),
702
+ rules: (0, reified_1.decodeFromJSONField)(structs_6.VecMap.reified(structs_2.String.reified(), structs_7.VecSet.reified(structs_3.TypeName.reified())), field.rules),
703
+ });
704
+ };
705
+ TokenPolicy.fromJSON = function (typeArg, json) {
706
+ if (json.$typeName !== TokenPolicy.$typeName) {
707
+ throw new Error("not a WithTwoGenerics json object");
708
+ }
709
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TokenPolicy.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
710
+ return TokenPolicy.fromJSONField(typeArg, json);
711
+ };
712
+ TokenPolicy.fromSuiParsedData = function (typeArg, content) {
713
+ if (content.dataType !== "moveObject") {
714
+ throw new Error("not an object");
715
+ }
716
+ if (!isTokenPolicy(content.type)) {
717
+ throw new Error("object at ".concat(content.fields.id, " is not a TokenPolicy object"));
718
+ }
719
+ return TokenPolicy.fromFieldsWithTypes(typeArg, content);
720
+ };
721
+ TokenPolicy.fromSuiObjectData = function (typeArg, data) {
722
+ if (data.bcs) {
723
+ if (data.bcs.dataType !== "moveObject" || !isTokenPolicy(data.bcs.type)) {
724
+ throw new Error("object at is not a TokenPolicy object");
725
+ }
726
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
727
+ if (gotTypeArgs.length !== 1) {
728
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
729
+ }
730
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
731
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
732
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
733
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
734
+ }
735
+ return TokenPolicy.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
736
+ }
737
+ if (data.content) {
738
+ return TokenPolicy.fromSuiParsedData(typeArg, data.content);
739
+ }
740
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
741
+ };
742
+ TokenPolicy.fetch = function (client, typeArg, id) {
743
+ return __awaiter(this, void 0, void 0, function () {
744
+ var res;
745
+ var _a, _b;
746
+ return __generator(this, function (_c) {
747
+ switch (_c.label) {
748
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
749
+ case 1:
750
+ res = _c.sent();
751
+ if (res.error) {
752
+ throw new Error("error fetching TokenPolicy object at id ".concat(id, ": ").concat(res.error.code));
753
+ }
754
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTokenPolicy(res.data.bcs.type)) {
755
+ throw new Error("object at id ".concat(id, " is not a TokenPolicy object"));
756
+ }
757
+ return [2 /*return*/, TokenPolicy.fromSuiObjectData(typeArg, res.data)];
758
+ }
759
+ });
760
+ });
761
+ };
762
+ TokenPolicy.$typeName = "".concat(index_1.PKG_V26, "::token::TokenPolicy");
763
+ TokenPolicy.$numTypeParams = 1;
764
+ TokenPolicy.$isPhantom = [true];
765
+ return TokenPolicy;
766
+ }());
767
+ exports.TokenPolicy = TokenPolicy;
768
+ /* ============================== TokenPolicyCap =============================== */
769
+ function isTokenPolicyCap(type) {
770
+ type = (0, util_1.compressSuiType)(type);
771
+ return type.startsWith("".concat(index_1.PKG_V26, "::token::TokenPolicyCap") + "<");
772
+ }
773
+ var TokenPolicyCap = /** @class */ (function () {
774
+ function TokenPolicyCap(typeArgs, fields) {
775
+ this.__StructClass = true;
776
+ this.$typeName = TokenPolicyCap.$typeName;
777
+ this.$isPhantom = TokenPolicyCap.$isPhantom;
778
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicyCap.$typeName], __read(typeArgs), false));
779
+ this.$typeArgs = typeArgs;
780
+ this.id = fields.id;
781
+ this.for = fields.for;
782
+ }
783
+ TokenPolicyCap.reified = function (T) {
784
+ var _this = this;
785
+ return {
786
+ typeName: TokenPolicyCap.$typeName,
787
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicyCap.$typeName], [(0, reified_1.extractType)(T)], false)),
788
+ typeArgs: [(0, reified_1.extractType)(T)],
789
+ isPhantom: TokenPolicyCap.$isPhantom,
790
+ reifiedTypeArgs: [T],
791
+ fromFields: function (fields) { return TokenPolicyCap.fromFields(T, fields); },
792
+ fromFieldsWithTypes: function (item) { return TokenPolicyCap.fromFieldsWithTypes(T, item); },
793
+ fromBcs: function (data) { return TokenPolicyCap.fromBcs(T, data); },
794
+ bcs: TokenPolicyCap.bcs,
795
+ fromJSONField: function (field) { return TokenPolicyCap.fromJSONField(T, field); },
796
+ fromJSON: function (json) { return TokenPolicyCap.fromJSON(T, json); },
797
+ fromSuiParsedData: function (content) { return TokenPolicyCap.fromSuiParsedData(T, content); },
798
+ fromSuiObjectData: function (content) { return TokenPolicyCap.fromSuiObjectData(T, content); },
799
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
800
+ return [2 /*return*/, TokenPolicyCap.fetch(client, T, id)];
801
+ }); }); },
802
+ new: function (fields) {
803
+ return new TokenPolicyCap([(0, reified_1.extractType)(T)], fields);
804
+ },
805
+ kind: "StructClassReified",
806
+ };
807
+ };
808
+ Object.defineProperty(TokenPolicyCap, "r", {
809
+ get: function () {
810
+ return TokenPolicyCap.reified;
811
+ },
812
+ enumerable: false,
813
+ configurable: true
814
+ });
815
+ TokenPolicyCap.phantom = function (T) {
816
+ return (0, reified_1.phantom)(TokenPolicyCap.reified(T));
817
+ };
818
+ Object.defineProperty(TokenPolicyCap, "p", {
819
+ get: function () {
820
+ return TokenPolicyCap.phantom;
821
+ },
822
+ enumerable: false,
823
+ configurable: true
824
+ });
825
+ Object.defineProperty(TokenPolicyCap, "bcs", {
826
+ get: function () {
827
+ return bcs_1.bcs.struct("TokenPolicyCap", {
828
+ id: structs_5.UID.bcs,
829
+ for: structs_5.ID.bcs,
830
+ });
831
+ },
832
+ enumerable: false,
833
+ configurable: true
834
+ });
835
+ TokenPolicyCap.fromFields = function (typeArg, fields) {
836
+ return TokenPolicyCap.reified(typeArg).new({
837
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
838
+ for: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.for),
839
+ });
840
+ };
841
+ TokenPolicyCap.fromFieldsWithTypes = function (typeArg, item) {
842
+ if (!isTokenPolicyCap(item.type)) {
843
+ throw new Error("not a TokenPolicyCap type");
844
+ }
845
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
846
+ return TokenPolicyCap.reified(typeArg).new({
847
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
848
+ for: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.for),
849
+ });
850
+ };
851
+ TokenPolicyCap.fromBcs = function (typeArg, data) {
852
+ return TokenPolicyCap.fromFields(typeArg, TokenPolicyCap.bcs.parse(data));
853
+ };
854
+ TokenPolicyCap.prototype.toJSONField = function () {
855
+ return {
856
+ id: this.id,
857
+ for: this.for,
858
+ };
859
+ };
860
+ TokenPolicyCap.prototype.toJSON = function () {
861
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
862
+ };
863
+ TokenPolicyCap.fromJSONField = function (typeArg, field) {
864
+ return TokenPolicyCap.reified(typeArg).new({
865
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
866
+ for: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.for),
867
+ });
868
+ };
869
+ TokenPolicyCap.fromJSON = function (typeArg, json) {
870
+ if (json.$typeName !== TokenPolicyCap.$typeName) {
871
+ throw new Error("not a WithTwoGenerics json object");
872
+ }
873
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TokenPolicyCap.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
874
+ return TokenPolicyCap.fromJSONField(typeArg, json);
875
+ };
876
+ TokenPolicyCap.fromSuiParsedData = function (typeArg, content) {
877
+ if (content.dataType !== "moveObject") {
878
+ throw new Error("not an object");
879
+ }
880
+ if (!isTokenPolicyCap(content.type)) {
881
+ throw new Error("object at ".concat(content.fields.id, " is not a TokenPolicyCap object"));
882
+ }
883
+ return TokenPolicyCap.fromFieldsWithTypes(typeArg, content);
884
+ };
885
+ TokenPolicyCap.fromSuiObjectData = function (typeArg, data) {
886
+ if (data.bcs) {
887
+ if (data.bcs.dataType !== "moveObject" || !isTokenPolicyCap(data.bcs.type)) {
888
+ throw new Error("object at is not a TokenPolicyCap object");
889
+ }
890
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
891
+ if (gotTypeArgs.length !== 1) {
892
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
893
+ }
894
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
895
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
896
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
897
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
898
+ }
899
+ return TokenPolicyCap.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
900
+ }
901
+ if (data.content) {
902
+ return TokenPolicyCap.fromSuiParsedData(typeArg, data.content);
903
+ }
904
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
905
+ };
906
+ TokenPolicyCap.fetch = function (client, typeArg, id) {
907
+ return __awaiter(this, void 0, void 0, function () {
908
+ var res;
909
+ var _a, _b;
910
+ return __generator(this, function (_c) {
911
+ switch (_c.label) {
912
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
913
+ case 1:
914
+ res = _c.sent();
915
+ if (res.error) {
916
+ throw new Error("error fetching TokenPolicyCap object at id ".concat(id, ": ").concat(res.error.code));
917
+ }
918
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTokenPolicyCap(res.data.bcs.type)) {
919
+ throw new Error("object at id ".concat(id, " is not a TokenPolicyCap object"));
920
+ }
921
+ return [2 /*return*/, TokenPolicyCap.fromSuiObjectData(typeArg, res.data)];
922
+ }
923
+ });
924
+ });
925
+ };
926
+ TokenPolicyCap.$typeName = "".concat(index_1.PKG_V26, "::token::TokenPolicyCap");
927
+ TokenPolicyCap.$numTypeParams = 1;
928
+ TokenPolicyCap.$isPhantom = [true];
929
+ return TokenPolicyCap;
930
+ }());
931
+ exports.TokenPolicyCap = TokenPolicyCap;
932
+ /* ============================== TokenPolicyCreated =============================== */
933
+ function isTokenPolicyCreated(type) {
934
+ type = (0, util_1.compressSuiType)(type);
935
+ return type.startsWith("".concat(index_1.PKG_V26, "::token::TokenPolicyCreated") + "<");
936
+ }
937
+ var TokenPolicyCreated = /** @class */ (function () {
938
+ function TokenPolicyCreated(typeArgs, fields) {
939
+ this.__StructClass = true;
940
+ this.$typeName = TokenPolicyCreated.$typeName;
941
+ this.$isPhantom = TokenPolicyCreated.$isPhantom;
942
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicyCreated.$typeName], __read(typeArgs), false));
943
+ this.$typeArgs = typeArgs;
944
+ this.id = fields.id;
945
+ this.isMutable = fields.isMutable;
946
+ }
947
+ TokenPolicyCreated.reified = function (T) {
948
+ var _this = this;
949
+ return {
950
+ typeName: TokenPolicyCreated.$typeName,
951
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TokenPolicyCreated.$typeName], [(0, reified_1.extractType)(T)], false)),
952
+ typeArgs: [(0, reified_1.extractType)(T)],
953
+ isPhantom: TokenPolicyCreated.$isPhantom,
954
+ reifiedTypeArgs: [T],
955
+ fromFields: function (fields) { return TokenPolicyCreated.fromFields(T, fields); },
956
+ fromFieldsWithTypes: function (item) { return TokenPolicyCreated.fromFieldsWithTypes(T, item); },
957
+ fromBcs: function (data) { return TokenPolicyCreated.fromBcs(T, data); },
958
+ bcs: TokenPolicyCreated.bcs,
959
+ fromJSONField: function (field) { return TokenPolicyCreated.fromJSONField(T, field); },
960
+ fromJSON: function (json) { return TokenPolicyCreated.fromJSON(T, json); },
961
+ fromSuiParsedData: function (content) { return TokenPolicyCreated.fromSuiParsedData(T, content); },
962
+ fromSuiObjectData: function (content) { return TokenPolicyCreated.fromSuiObjectData(T, content); },
963
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
964
+ return [2 /*return*/, TokenPolicyCreated.fetch(client, T, id)];
965
+ }); }); },
966
+ new: function (fields) {
967
+ return new TokenPolicyCreated([(0, reified_1.extractType)(T)], fields);
968
+ },
969
+ kind: "StructClassReified",
970
+ };
971
+ };
972
+ Object.defineProperty(TokenPolicyCreated, "r", {
973
+ get: function () {
974
+ return TokenPolicyCreated.reified;
975
+ },
976
+ enumerable: false,
977
+ configurable: true
978
+ });
979
+ TokenPolicyCreated.phantom = function (T) {
980
+ return (0, reified_1.phantom)(TokenPolicyCreated.reified(T));
981
+ };
982
+ Object.defineProperty(TokenPolicyCreated, "p", {
983
+ get: function () {
984
+ return TokenPolicyCreated.phantom;
985
+ },
986
+ enumerable: false,
987
+ configurable: true
988
+ });
989
+ Object.defineProperty(TokenPolicyCreated, "bcs", {
990
+ get: function () {
991
+ return bcs_1.bcs.struct("TokenPolicyCreated", {
992
+ id: structs_5.ID.bcs,
993
+ is_mutable: bcs_1.bcs.bool(),
994
+ });
995
+ },
996
+ enumerable: false,
997
+ configurable: true
998
+ });
999
+ TokenPolicyCreated.fromFields = function (typeArg, fields) {
1000
+ return TokenPolicyCreated.reified(typeArg).new({
1001
+ id: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.id),
1002
+ isMutable: (0, reified_1.decodeFromFields)("bool", fields.is_mutable),
1003
+ });
1004
+ };
1005
+ TokenPolicyCreated.fromFieldsWithTypes = function (typeArg, item) {
1006
+ if (!isTokenPolicyCreated(item.type)) {
1007
+ throw new Error("not a TokenPolicyCreated type");
1008
+ }
1009
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
1010
+ return TokenPolicyCreated.reified(typeArg).new({
1011
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.id),
1012
+ isMutable: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.is_mutable),
1013
+ });
1014
+ };
1015
+ TokenPolicyCreated.fromBcs = function (typeArg, data) {
1016
+ return TokenPolicyCreated.fromFields(typeArg, TokenPolicyCreated.bcs.parse(data));
1017
+ };
1018
+ TokenPolicyCreated.prototype.toJSONField = function () {
1019
+ return {
1020
+ id: this.id,
1021
+ isMutable: this.isMutable,
1022
+ };
1023
+ };
1024
+ TokenPolicyCreated.prototype.toJSON = function () {
1025
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1026
+ };
1027
+ TokenPolicyCreated.fromJSONField = function (typeArg, field) {
1028
+ return TokenPolicyCreated.reified(typeArg).new({
1029
+ id: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.id),
1030
+ isMutable: (0, reified_1.decodeFromJSONField)("bool", field.isMutable),
1031
+ });
1032
+ };
1033
+ TokenPolicyCreated.fromJSON = function (typeArg, json) {
1034
+ if (json.$typeName !== TokenPolicyCreated.$typeName) {
1035
+ throw new Error("not a WithTwoGenerics json object");
1036
+ }
1037
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TokenPolicyCreated.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
1038
+ return TokenPolicyCreated.fromJSONField(typeArg, json);
1039
+ };
1040
+ TokenPolicyCreated.fromSuiParsedData = function (typeArg, content) {
1041
+ if (content.dataType !== "moveObject") {
1042
+ throw new Error("not an object");
1043
+ }
1044
+ if (!isTokenPolicyCreated(content.type)) {
1045
+ throw new Error("object at ".concat(content.fields.id, " is not a TokenPolicyCreated object"));
1046
+ }
1047
+ return TokenPolicyCreated.fromFieldsWithTypes(typeArg, content);
1048
+ };
1049
+ TokenPolicyCreated.fromSuiObjectData = function (typeArg, data) {
1050
+ if (data.bcs) {
1051
+ if (data.bcs.dataType !== "moveObject" || !isTokenPolicyCreated(data.bcs.type)) {
1052
+ throw new Error("object at is not a TokenPolicyCreated object");
1053
+ }
1054
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
1055
+ if (gotTypeArgs.length !== 1) {
1056
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
1057
+ }
1058
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
1059
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
1060
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
1061
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
1062
+ }
1063
+ return TokenPolicyCreated.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
1064
+ }
1065
+ if (data.content) {
1066
+ return TokenPolicyCreated.fromSuiParsedData(typeArg, data.content);
1067
+ }
1068
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1069
+ };
1070
+ TokenPolicyCreated.fetch = function (client, typeArg, id) {
1071
+ return __awaiter(this, void 0, void 0, function () {
1072
+ var res;
1073
+ var _a, _b;
1074
+ return __generator(this, function (_c) {
1075
+ switch (_c.label) {
1076
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1077
+ case 1:
1078
+ res = _c.sent();
1079
+ if (res.error) {
1080
+ throw new Error("error fetching TokenPolicyCreated object at id ".concat(id, ": ").concat(res.error.code));
1081
+ }
1082
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTokenPolicyCreated(res.data.bcs.type)) {
1083
+ throw new Error("object at id ".concat(id, " is not a TokenPolicyCreated object"));
1084
+ }
1085
+ return [2 /*return*/, TokenPolicyCreated.fromSuiObjectData(typeArg, res.data)];
1086
+ }
1087
+ });
1088
+ });
1089
+ };
1090
+ TokenPolicyCreated.$typeName = "".concat(index_1.PKG_V26, "::token::TokenPolicyCreated");
1091
+ TokenPolicyCreated.$numTypeParams = 1;
1092
+ TokenPolicyCreated.$isPhantom = [true];
1093
+ return TokenPolicyCreated;
1094
+ }());
1095
+ exports.TokenPolicyCreated = TokenPolicyCreated;