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