@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,1259 @@
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.TreasuryCap = exports.RegulatedCoinMetadata = exports.DenyCapV2 = exports.DenyCap = exports.CurrencyCreated = exports.CoinMetadata = exports.Coin = void 0;
76
+ exports.isCoin = isCoin;
77
+ exports.isCoinMetadata = isCoinMetadata;
78
+ exports.isCurrencyCreated = isCurrencyCreated;
79
+ exports.isDenyCap = isDenyCap;
80
+ exports.isDenyCapV2 = isDenyCapV2;
81
+ exports.isRegulatedCoinMetadata = isRegulatedCoinMetadata;
82
+ exports.isTreasuryCap = isTreasuryCap;
83
+ var reified_1 = require("../../../../_framework/reified");
84
+ var util_1 = require("../../../../_framework/util");
85
+ var structs_1 = require("../../0x1/ascii/structs");
86
+ var structs_2 = require("../../0x1/option/structs");
87
+ var structs_3 = require("../../0x1/string/structs");
88
+ var structs_4 = require("../balance/structs");
89
+ var index_1 = require("../index");
90
+ var structs_5 = require("../object/structs");
91
+ var structs_6 = require("../url/structs");
92
+ var bcs_1 = require("@mysten/sui/bcs");
93
+ var utils_1 = require("@mysten/sui/utils");
94
+ /* ============================== Coin =============================== */
95
+ function isCoin(type) {
96
+ type = (0, util_1.compressSuiType)(type);
97
+ return type.startsWith("".concat(index_1.PKG_V26, "::coin::Coin") + "<");
98
+ }
99
+ var Coin = /** @class */ (function () {
100
+ function Coin(typeArgs, fields) {
101
+ this.__StructClass = true;
102
+ this.$typeName = Coin.$typeName;
103
+ this.$isPhantom = Coin.$isPhantom;
104
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Coin.$typeName], __read(typeArgs), false));
105
+ this.$typeArgs = typeArgs;
106
+ this.id = fields.id;
107
+ this.balance = fields.balance;
108
+ }
109
+ Coin.reified = function (T) {
110
+ var _this = this;
111
+ return {
112
+ typeName: Coin.$typeName,
113
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Coin.$typeName], [(0, reified_1.extractType)(T)], false)),
114
+ typeArgs: [(0, reified_1.extractType)(T)],
115
+ isPhantom: Coin.$isPhantom,
116
+ reifiedTypeArgs: [T],
117
+ fromFields: function (fields) { return Coin.fromFields(T, fields); },
118
+ fromFieldsWithTypes: function (item) { return Coin.fromFieldsWithTypes(T, item); },
119
+ fromBcs: function (data) { return Coin.fromBcs(T, data); },
120
+ bcs: Coin.bcs,
121
+ fromJSONField: function (field) { return Coin.fromJSONField(T, field); },
122
+ fromJSON: function (json) { return Coin.fromJSON(T, json); },
123
+ fromSuiParsedData: function (content) { return Coin.fromSuiParsedData(T, content); },
124
+ fromSuiObjectData: function (content) { return Coin.fromSuiObjectData(T, content); },
125
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
126
+ return [2 /*return*/, Coin.fetch(client, T, id)];
127
+ }); }); },
128
+ new: function (fields) {
129
+ return new Coin([(0, reified_1.extractType)(T)], fields);
130
+ },
131
+ kind: "StructClassReified",
132
+ };
133
+ };
134
+ Object.defineProperty(Coin, "r", {
135
+ get: function () {
136
+ return Coin.reified;
137
+ },
138
+ enumerable: false,
139
+ configurable: true
140
+ });
141
+ Coin.phantom = function (T) {
142
+ return (0, reified_1.phantom)(Coin.reified(T));
143
+ };
144
+ Object.defineProperty(Coin, "p", {
145
+ get: function () {
146
+ return Coin.phantom;
147
+ },
148
+ enumerable: false,
149
+ configurable: true
150
+ });
151
+ Object.defineProperty(Coin, "bcs", {
152
+ get: function () {
153
+ return bcs_1.bcs.struct("Coin", {
154
+ id: structs_5.UID.bcs,
155
+ balance: structs_4.Balance.bcs,
156
+ });
157
+ },
158
+ enumerable: false,
159
+ configurable: true
160
+ });
161
+ Coin.fromFields = function (typeArg, fields) {
162
+ return Coin.reified(typeArg).new({
163
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
164
+ balance: (0, reified_1.decodeFromFields)(structs_4.Balance.reified(typeArg), fields.balance),
165
+ });
166
+ };
167
+ Coin.fromFieldsWithTypes = function (typeArg, item) {
168
+ if (!isCoin(item.type)) {
169
+ throw new Error("not a Coin type");
170
+ }
171
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
172
+ return Coin.reified(typeArg).new({
173
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
174
+ balance: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Balance.reified(typeArg), item.fields.balance),
175
+ });
176
+ };
177
+ Coin.fromBcs = function (typeArg, data) {
178
+ return Coin.fromFields(typeArg, Coin.bcs.parse(data));
179
+ };
180
+ Coin.prototype.toJSONField = function () {
181
+ return {
182
+ id: this.id,
183
+ balance: this.balance.toJSONField(),
184
+ };
185
+ };
186
+ Coin.prototype.toJSON = function () {
187
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
188
+ };
189
+ Coin.fromJSONField = function (typeArg, field) {
190
+ return Coin.reified(typeArg).new({
191
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
192
+ balance: (0, reified_1.decodeFromJSONField)(structs_4.Balance.reified(typeArg), field.balance),
193
+ });
194
+ };
195
+ Coin.fromJSON = function (typeArg, json) {
196
+ if (json.$typeName !== Coin.$typeName) {
197
+ throw new Error("not a WithTwoGenerics json object");
198
+ }
199
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(Coin.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
200
+ return Coin.fromJSONField(typeArg, json);
201
+ };
202
+ Coin.fromSuiParsedData = function (typeArg, content) {
203
+ if (content.dataType !== "moveObject") {
204
+ throw new Error("not an object");
205
+ }
206
+ if (!isCoin(content.type)) {
207
+ throw new Error("object at ".concat(content.fields.id, " is not a Coin object"));
208
+ }
209
+ return Coin.fromFieldsWithTypes(typeArg, content);
210
+ };
211
+ Coin.fromSuiObjectData = function (typeArg, data) {
212
+ if (data.bcs) {
213
+ if (data.bcs.dataType !== "moveObject" || !isCoin(data.bcs.type)) {
214
+ throw new Error("object at is not a Coin object");
215
+ }
216
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
217
+ if (gotTypeArgs.length !== 1) {
218
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
219
+ }
220
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
221
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
222
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
223
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
224
+ }
225
+ return Coin.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
226
+ }
227
+ if (data.content) {
228
+ return Coin.fromSuiParsedData(typeArg, data.content);
229
+ }
230
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
231
+ };
232
+ Coin.fetch = function (client, typeArg, id) {
233
+ return __awaiter(this, void 0, void 0, function () {
234
+ var res;
235
+ var _a, _b;
236
+ return __generator(this, function (_c) {
237
+ switch (_c.label) {
238
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
239
+ case 1:
240
+ res = _c.sent();
241
+ if (res.error) {
242
+ throw new Error("error fetching Coin object at id ".concat(id, ": ").concat(res.error.code));
243
+ }
244
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isCoin(res.data.bcs.type)) {
245
+ throw new Error("object at id ".concat(id, " is not a Coin object"));
246
+ }
247
+ return [2 /*return*/, Coin.fromSuiObjectData(typeArg, res.data)];
248
+ }
249
+ });
250
+ });
251
+ };
252
+ Coin.$typeName = "".concat(index_1.PKG_V26, "::coin::Coin");
253
+ Coin.$numTypeParams = 1;
254
+ Coin.$isPhantom = [true];
255
+ return Coin;
256
+ }());
257
+ exports.Coin = Coin;
258
+ /* ============================== CoinMetadata =============================== */
259
+ function isCoinMetadata(type) {
260
+ type = (0, util_1.compressSuiType)(type);
261
+ return type.startsWith("".concat(index_1.PKG_V26, "::coin::CoinMetadata") + "<");
262
+ }
263
+ var CoinMetadata = /** @class */ (function () {
264
+ function CoinMetadata(typeArgs, fields) {
265
+ this.__StructClass = true;
266
+ this.$typeName = CoinMetadata.$typeName;
267
+ this.$isPhantom = CoinMetadata.$isPhantom;
268
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([CoinMetadata.$typeName], __read(typeArgs), false));
269
+ this.$typeArgs = typeArgs;
270
+ this.id = fields.id;
271
+ this.decimals = fields.decimals;
272
+ this.name = fields.name;
273
+ this.symbol = fields.symbol;
274
+ this.description = fields.description;
275
+ this.iconUrl = fields.iconUrl;
276
+ }
277
+ CoinMetadata.reified = function (T) {
278
+ var _this = this;
279
+ return {
280
+ typeName: CoinMetadata.$typeName,
281
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([CoinMetadata.$typeName], [(0, reified_1.extractType)(T)], false)),
282
+ typeArgs: [(0, reified_1.extractType)(T)],
283
+ isPhantom: CoinMetadata.$isPhantom,
284
+ reifiedTypeArgs: [T],
285
+ fromFields: function (fields) { return CoinMetadata.fromFields(T, fields); },
286
+ fromFieldsWithTypes: function (item) { return CoinMetadata.fromFieldsWithTypes(T, item); },
287
+ fromBcs: function (data) { return CoinMetadata.fromBcs(T, data); },
288
+ bcs: CoinMetadata.bcs,
289
+ fromJSONField: function (field) { return CoinMetadata.fromJSONField(T, field); },
290
+ fromJSON: function (json) { return CoinMetadata.fromJSON(T, json); },
291
+ fromSuiParsedData: function (content) { return CoinMetadata.fromSuiParsedData(T, content); },
292
+ fromSuiObjectData: function (content) { return CoinMetadata.fromSuiObjectData(T, content); },
293
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
294
+ return [2 /*return*/, CoinMetadata.fetch(client, T, id)];
295
+ }); }); },
296
+ new: function (fields) {
297
+ return new CoinMetadata([(0, reified_1.extractType)(T)], fields);
298
+ },
299
+ kind: "StructClassReified",
300
+ };
301
+ };
302
+ Object.defineProperty(CoinMetadata, "r", {
303
+ get: function () {
304
+ return CoinMetadata.reified;
305
+ },
306
+ enumerable: false,
307
+ configurable: true
308
+ });
309
+ CoinMetadata.phantom = function (T) {
310
+ return (0, reified_1.phantom)(CoinMetadata.reified(T));
311
+ };
312
+ Object.defineProperty(CoinMetadata, "p", {
313
+ get: function () {
314
+ return CoinMetadata.phantom;
315
+ },
316
+ enumerable: false,
317
+ configurable: true
318
+ });
319
+ Object.defineProperty(CoinMetadata, "bcs", {
320
+ get: function () {
321
+ return bcs_1.bcs.struct("CoinMetadata", {
322
+ id: structs_5.UID.bcs,
323
+ decimals: bcs_1.bcs.u8(),
324
+ name: structs_3.String.bcs,
325
+ symbol: structs_1.String.bcs,
326
+ description: structs_3.String.bcs,
327
+ icon_url: structs_2.Option.bcs(structs_6.Url.bcs),
328
+ });
329
+ },
330
+ enumerable: false,
331
+ configurable: true
332
+ });
333
+ CoinMetadata.fromFields = function (typeArg, fields) {
334
+ return CoinMetadata.reified(typeArg).new({
335
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
336
+ decimals: (0, reified_1.decodeFromFields)("u8", fields.decimals),
337
+ name: (0, reified_1.decodeFromFields)(structs_3.String.reified(), fields.name),
338
+ symbol: (0, reified_1.decodeFromFields)(structs_1.String.reified(), fields.symbol),
339
+ description: (0, reified_1.decodeFromFields)(structs_3.String.reified(), fields.description),
340
+ iconUrl: (0, reified_1.decodeFromFields)(structs_2.Option.reified(structs_6.Url.reified()), fields.icon_url),
341
+ });
342
+ };
343
+ CoinMetadata.fromFieldsWithTypes = function (typeArg, item) {
344
+ if (!isCoinMetadata(item.type)) {
345
+ throw new Error("not a CoinMetadata type");
346
+ }
347
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
348
+ return CoinMetadata.reified(typeArg).new({
349
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
350
+ decimals: (0, reified_1.decodeFromFieldsWithTypes)("u8", item.fields.decimals),
351
+ name: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.String.reified(), item.fields.name),
352
+ symbol: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.String.reified(), item.fields.symbol),
353
+ description: (0, reified_1.decodeFromFieldsWithTypes)(structs_3.String.reified(), item.fields.description),
354
+ iconUrl: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Option.reified(structs_6.Url.reified()), item.fields.icon_url),
355
+ });
356
+ };
357
+ CoinMetadata.fromBcs = function (typeArg, data) {
358
+ return CoinMetadata.fromFields(typeArg, CoinMetadata.bcs.parse(data));
359
+ };
360
+ CoinMetadata.prototype.toJSONField = function () {
361
+ return {
362
+ id: this.id,
363
+ decimals: this.decimals,
364
+ name: this.name,
365
+ symbol: this.symbol,
366
+ description: this.description,
367
+ iconUrl: (0, reified_1.fieldToJSON)("".concat(structs_2.Option.$typeName, "<").concat(structs_6.Url.$typeName, ">"), this.iconUrl),
368
+ };
369
+ };
370
+ CoinMetadata.prototype.toJSON = function () {
371
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
372
+ };
373
+ CoinMetadata.fromJSONField = function (typeArg, field) {
374
+ return CoinMetadata.reified(typeArg).new({
375
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
376
+ decimals: (0, reified_1.decodeFromJSONField)("u8", field.decimals),
377
+ name: (0, reified_1.decodeFromJSONField)(structs_3.String.reified(), field.name),
378
+ symbol: (0, reified_1.decodeFromJSONField)(structs_1.String.reified(), field.symbol),
379
+ description: (0, reified_1.decodeFromJSONField)(structs_3.String.reified(), field.description),
380
+ iconUrl: (0, reified_1.decodeFromJSONField)(structs_2.Option.reified(structs_6.Url.reified()), field.iconUrl),
381
+ });
382
+ };
383
+ CoinMetadata.fromJSON = function (typeArg, json) {
384
+ if (json.$typeName !== CoinMetadata.$typeName) {
385
+ throw new Error("not a WithTwoGenerics json object");
386
+ }
387
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(CoinMetadata.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
388
+ return CoinMetadata.fromJSONField(typeArg, json);
389
+ };
390
+ CoinMetadata.fromSuiParsedData = function (typeArg, content) {
391
+ if (content.dataType !== "moveObject") {
392
+ throw new Error("not an object");
393
+ }
394
+ if (!isCoinMetadata(content.type)) {
395
+ throw new Error("object at ".concat(content.fields.id, " is not a CoinMetadata object"));
396
+ }
397
+ return CoinMetadata.fromFieldsWithTypes(typeArg, content);
398
+ };
399
+ CoinMetadata.fromSuiObjectData = function (typeArg, data) {
400
+ if (data.bcs) {
401
+ if (data.bcs.dataType !== "moveObject" || !isCoinMetadata(data.bcs.type)) {
402
+ throw new Error("object at is not a CoinMetadata 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 CoinMetadata.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
414
+ }
415
+ if (data.content) {
416
+ return CoinMetadata.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
+ CoinMetadata.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 CoinMetadata 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" || !isCoinMetadata(res.data.bcs.type)) {
433
+ throw new Error("object at id ".concat(id, " is not a CoinMetadata object"));
434
+ }
435
+ return [2 /*return*/, CoinMetadata.fromSuiObjectData(typeArg, res.data)];
436
+ }
437
+ });
438
+ });
439
+ };
440
+ CoinMetadata.$typeName = "".concat(index_1.PKG_V26, "::coin::CoinMetadata");
441
+ CoinMetadata.$numTypeParams = 1;
442
+ CoinMetadata.$isPhantom = [true];
443
+ return CoinMetadata;
444
+ }());
445
+ exports.CoinMetadata = CoinMetadata;
446
+ /* ============================== CurrencyCreated =============================== */
447
+ function isCurrencyCreated(type) {
448
+ type = (0, util_1.compressSuiType)(type);
449
+ return type.startsWith("".concat(index_1.PKG_V26, "::coin::CurrencyCreated") + "<");
450
+ }
451
+ var CurrencyCreated = /** @class */ (function () {
452
+ function CurrencyCreated(typeArgs, fields) {
453
+ this.__StructClass = true;
454
+ this.$typeName = CurrencyCreated.$typeName;
455
+ this.$isPhantom = CurrencyCreated.$isPhantom;
456
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([CurrencyCreated.$typeName], __read(typeArgs), false));
457
+ this.$typeArgs = typeArgs;
458
+ this.decimals = fields.decimals;
459
+ }
460
+ CurrencyCreated.reified = function (T) {
461
+ var _this = this;
462
+ return {
463
+ typeName: CurrencyCreated.$typeName,
464
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([CurrencyCreated.$typeName], [(0, reified_1.extractType)(T)], false)),
465
+ typeArgs: [(0, reified_1.extractType)(T)],
466
+ isPhantom: CurrencyCreated.$isPhantom,
467
+ reifiedTypeArgs: [T],
468
+ fromFields: function (fields) { return CurrencyCreated.fromFields(T, fields); },
469
+ fromFieldsWithTypes: function (item) { return CurrencyCreated.fromFieldsWithTypes(T, item); },
470
+ fromBcs: function (data) { return CurrencyCreated.fromBcs(T, data); },
471
+ bcs: CurrencyCreated.bcs,
472
+ fromJSONField: function (field) { return CurrencyCreated.fromJSONField(T, field); },
473
+ fromJSON: function (json) { return CurrencyCreated.fromJSON(T, json); },
474
+ fromSuiParsedData: function (content) { return CurrencyCreated.fromSuiParsedData(T, content); },
475
+ fromSuiObjectData: function (content) { return CurrencyCreated.fromSuiObjectData(T, content); },
476
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
477
+ return [2 /*return*/, CurrencyCreated.fetch(client, T, id)];
478
+ }); }); },
479
+ new: function (fields) {
480
+ return new CurrencyCreated([(0, reified_1.extractType)(T)], fields);
481
+ },
482
+ kind: "StructClassReified",
483
+ };
484
+ };
485
+ Object.defineProperty(CurrencyCreated, "r", {
486
+ get: function () {
487
+ return CurrencyCreated.reified;
488
+ },
489
+ enumerable: false,
490
+ configurable: true
491
+ });
492
+ CurrencyCreated.phantom = function (T) {
493
+ return (0, reified_1.phantom)(CurrencyCreated.reified(T));
494
+ };
495
+ Object.defineProperty(CurrencyCreated, "p", {
496
+ get: function () {
497
+ return CurrencyCreated.phantom;
498
+ },
499
+ enumerable: false,
500
+ configurable: true
501
+ });
502
+ Object.defineProperty(CurrencyCreated, "bcs", {
503
+ get: function () {
504
+ return bcs_1.bcs.struct("CurrencyCreated", {
505
+ decimals: bcs_1.bcs.u8(),
506
+ });
507
+ },
508
+ enumerable: false,
509
+ configurable: true
510
+ });
511
+ CurrencyCreated.fromFields = function (typeArg, fields) {
512
+ return CurrencyCreated.reified(typeArg).new({
513
+ decimals: (0, reified_1.decodeFromFields)("u8", fields.decimals),
514
+ });
515
+ };
516
+ CurrencyCreated.fromFieldsWithTypes = function (typeArg, item) {
517
+ if (!isCurrencyCreated(item.type)) {
518
+ throw new Error("not a CurrencyCreated type");
519
+ }
520
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
521
+ return CurrencyCreated.reified(typeArg).new({
522
+ decimals: (0, reified_1.decodeFromFieldsWithTypes)("u8", item.fields.decimals),
523
+ });
524
+ };
525
+ CurrencyCreated.fromBcs = function (typeArg, data) {
526
+ return CurrencyCreated.fromFields(typeArg, CurrencyCreated.bcs.parse(data));
527
+ };
528
+ CurrencyCreated.prototype.toJSONField = function () {
529
+ return {
530
+ decimals: this.decimals,
531
+ };
532
+ };
533
+ CurrencyCreated.prototype.toJSON = function () {
534
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
535
+ };
536
+ CurrencyCreated.fromJSONField = function (typeArg, field) {
537
+ return CurrencyCreated.reified(typeArg).new({
538
+ decimals: (0, reified_1.decodeFromJSONField)("u8", field.decimals),
539
+ });
540
+ };
541
+ CurrencyCreated.fromJSON = function (typeArg, json) {
542
+ if (json.$typeName !== CurrencyCreated.$typeName) {
543
+ throw new Error("not a WithTwoGenerics json object");
544
+ }
545
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(CurrencyCreated.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
546
+ return CurrencyCreated.fromJSONField(typeArg, json);
547
+ };
548
+ CurrencyCreated.fromSuiParsedData = function (typeArg, content) {
549
+ if (content.dataType !== "moveObject") {
550
+ throw new Error("not an object");
551
+ }
552
+ if (!isCurrencyCreated(content.type)) {
553
+ throw new Error("object at ".concat(content.fields.id, " is not a CurrencyCreated object"));
554
+ }
555
+ return CurrencyCreated.fromFieldsWithTypes(typeArg, content);
556
+ };
557
+ CurrencyCreated.fromSuiObjectData = function (typeArg, data) {
558
+ if (data.bcs) {
559
+ if (data.bcs.dataType !== "moveObject" || !isCurrencyCreated(data.bcs.type)) {
560
+ throw new Error("object at is not a CurrencyCreated object");
561
+ }
562
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
563
+ if (gotTypeArgs.length !== 1) {
564
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
565
+ }
566
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
567
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
568
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
569
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
570
+ }
571
+ return CurrencyCreated.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
572
+ }
573
+ if (data.content) {
574
+ return CurrencyCreated.fromSuiParsedData(typeArg, data.content);
575
+ }
576
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
577
+ };
578
+ CurrencyCreated.fetch = function (client, typeArg, id) {
579
+ return __awaiter(this, void 0, void 0, function () {
580
+ var res;
581
+ var _a, _b;
582
+ return __generator(this, function (_c) {
583
+ switch (_c.label) {
584
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
585
+ case 1:
586
+ res = _c.sent();
587
+ if (res.error) {
588
+ throw new Error("error fetching CurrencyCreated object at id ".concat(id, ": ").concat(res.error.code));
589
+ }
590
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isCurrencyCreated(res.data.bcs.type)) {
591
+ throw new Error("object at id ".concat(id, " is not a CurrencyCreated object"));
592
+ }
593
+ return [2 /*return*/, CurrencyCreated.fromSuiObjectData(typeArg, res.data)];
594
+ }
595
+ });
596
+ });
597
+ };
598
+ CurrencyCreated.$typeName = "".concat(index_1.PKG_V26, "::coin::CurrencyCreated");
599
+ CurrencyCreated.$numTypeParams = 1;
600
+ CurrencyCreated.$isPhantom = [true];
601
+ return CurrencyCreated;
602
+ }());
603
+ exports.CurrencyCreated = CurrencyCreated;
604
+ /* ============================== DenyCap =============================== */
605
+ function isDenyCap(type) {
606
+ type = (0, util_1.compressSuiType)(type);
607
+ return type.startsWith("".concat(index_1.PKG_V26, "::coin::DenyCap") + "<");
608
+ }
609
+ var DenyCap = /** @class */ (function () {
610
+ function DenyCap(typeArgs, fields) {
611
+ this.__StructClass = true;
612
+ this.$typeName = DenyCap.$typeName;
613
+ this.$isPhantom = DenyCap.$isPhantom;
614
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DenyCap.$typeName], __read(typeArgs), false));
615
+ this.$typeArgs = typeArgs;
616
+ this.id = fields.id;
617
+ }
618
+ DenyCap.reified = function (T) {
619
+ var _this = this;
620
+ return {
621
+ typeName: DenyCap.$typeName,
622
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DenyCap.$typeName], [(0, reified_1.extractType)(T)], false)),
623
+ typeArgs: [(0, reified_1.extractType)(T)],
624
+ isPhantom: DenyCap.$isPhantom,
625
+ reifiedTypeArgs: [T],
626
+ fromFields: function (fields) { return DenyCap.fromFields(T, fields); },
627
+ fromFieldsWithTypes: function (item) { return DenyCap.fromFieldsWithTypes(T, item); },
628
+ fromBcs: function (data) { return DenyCap.fromBcs(T, data); },
629
+ bcs: DenyCap.bcs,
630
+ fromJSONField: function (field) { return DenyCap.fromJSONField(T, field); },
631
+ fromJSON: function (json) { return DenyCap.fromJSON(T, json); },
632
+ fromSuiParsedData: function (content) { return DenyCap.fromSuiParsedData(T, content); },
633
+ fromSuiObjectData: function (content) { return DenyCap.fromSuiObjectData(T, content); },
634
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
635
+ return [2 /*return*/, DenyCap.fetch(client, T, id)];
636
+ }); }); },
637
+ new: function (fields) {
638
+ return new DenyCap([(0, reified_1.extractType)(T)], fields);
639
+ },
640
+ kind: "StructClassReified",
641
+ };
642
+ };
643
+ Object.defineProperty(DenyCap, "r", {
644
+ get: function () {
645
+ return DenyCap.reified;
646
+ },
647
+ enumerable: false,
648
+ configurable: true
649
+ });
650
+ DenyCap.phantom = function (T) {
651
+ return (0, reified_1.phantom)(DenyCap.reified(T));
652
+ };
653
+ Object.defineProperty(DenyCap, "p", {
654
+ get: function () {
655
+ return DenyCap.phantom;
656
+ },
657
+ enumerable: false,
658
+ configurable: true
659
+ });
660
+ Object.defineProperty(DenyCap, "bcs", {
661
+ get: function () {
662
+ return bcs_1.bcs.struct("DenyCap", {
663
+ id: structs_5.UID.bcs,
664
+ });
665
+ },
666
+ enumerable: false,
667
+ configurable: true
668
+ });
669
+ DenyCap.fromFields = function (typeArg, fields) {
670
+ return DenyCap.reified(typeArg).new({
671
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
672
+ });
673
+ };
674
+ DenyCap.fromFieldsWithTypes = function (typeArg, item) {
675
+ if (!isDenyCap(item.type)) {
676
+ throw new Error("not a DenyCap type");
677
+ }
678
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
679
+ return DenyCap.reified(typeArg).new({
680
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
681
+ });
682
+ };
683
+ DenyCap.fromBcs = function (typeArg, data) {
684
+ return DenyCap.fromFields(typeArg, DenyCap.bcs.parse(data));
685
+ };
686
+ DenyCap.prototype.toJSONField = function () {
687
+ return {
688
+ id: this.id,
689
+ };
690
+ };
691
+ DenyCap.prototype.toJSON = function () {
692
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
693
+ };
694
+ DenyCap.fromJSONField = function (typeArg, field) {
695
+ return DenyCap.reified(typeArg).new({
696
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
697
+ });
698
+ };
699
+ DenyCap.fromJSON = function (typeArg, json) {
700
+ if (json.$typeName !== DenyCap.$typeName) {
701
+ throw new Error("not a WithTwoGenerics json object");
702
+ }
703
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(DenyCap.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
704
+ return DenyCap.fromJSONField(typeArg, json);
705
+ };
706
+ DenyCap.fromSuiParsedData = function (typeArg, content) {
707
+ if (content.dataType !== "moveObject") {
708
+ throw new Error("not an object");
709
+ }
710
+ if (!isDenyCap(content.type)) {
711
+ throw new Error("object at ".concat(content.fields.id, " is not a DenyCap object"));
712
+ }
713
+ return DenyCap.fromFieldsWithTypes(typeArg, content);
714
+ };
715
+ DenyCap.fromSuiObjectData = function (typeArg, data) {
716
+ if (data.bcs) {
717
+ if (data.bcs.dataType !== "moveObject" || !isDenyCap(data.bcs.type)) {
718
+ throw new Error("object at is not a DenyCap object");
719
+ }
720
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
721
+ if (gotTypeArgs.length !== 1) {
722
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
723
+ }
724
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
725
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
726
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
727
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
728
+ }
729
+ return DenyCap.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
730
+ }
731
+ if (data.content) {
732
+ return DenyCap.fromSuiParsedData(typeArg, data.content);
733
+ }
734
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
735
+ };
736
+ DenyCap.fetch = function (client, typeArg, id) {
737
+ return __awaiter(this, void 0, void 0, function () {
738
+ var res;
739
+ var _a, _b;
740
+ return __generator(this, function (_c) {
741
+ switch (_c.label) {
742
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
743
+ case 1:
744
+ res = _c.sent();
745
+ if (res.error) {
746
+ throw new Error("error fetching DenyCap object at id ".concat(id, ": ").concat(res.error.code));
747
+ }
748
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDenyCap(res.data.bcs.type)) {
749
+ throw new Error("object at id ".concat(id, " is not a DenyCap object"));
750
+ }
751
+ return [2 /*return*/, DenyCap.fromSuiObjectData(typeArg, res.data)];
752
+ }
753
+ });
754
+ });
755
+ };
756
+ DenyCap.$typeName = "".concat(index_1.PKG_V26, "::coin::DenyCap");
757
+ DenyCap.$numTypeParams = 1;
758
+ DenyCap.$isPhantom = [true];
759
+ return DenyCap;
760
+ }());
761
+ exports.DenyCap = DenyCap;
762
+ /* ============================== DenyCapV2 =============================== */
763
+ function isDenyCapV2(type) {
764
+ type = (0, util_1.compressSuiType)(type);
765
+ return type.startsWith("".concat(index_1.PKG_V26, "::coin::DenyCapV2") + "<");
766
+ }
767
+ var DenyCapV2 = /** @class */ (function () {
768
+ function DenyCapV2(typeArgs, fields) {
769
+ this.__StructClass = true;
770
+ this.$typeName = DenyCapV2.$typeName;
771
+ this.$isPhantom = DenyCapV2.$isPhantom;
772
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DenyCapV2.$typeName], __read(typeArgs), false));
773
+ this.$typeArgs = typeArgs;
774
+ this.id = fields.id;
775
+ this.allowGlobalPause = fields.allowGlobalPause;
776
+ }
777
+ DenyCapV2.reified = function (T) {
778
+ var _this = this;
779
+ return {
780
+ typeName: DenyCapV2.$typeName,
781
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DenyCapV2.$typeName], [(0, reified_1.extractType)(T)], false)),
782
+ typeArgs: [(0, reified_1.extractType)(T)],
783
+ isPhantom: DenyCapV2.$isPhantom,
784
+ reifiedTypeArgs: [T],
785
+ fromFields: function (fields) { return DenyCapV2.fromFields(T, fields); },
786
+ fromFieldsWithTypes: function (item) { return DenyCapV2.fromFieldsWithTypes(T, item); },
787
+ fromBcs: function (data) { return DenyCapV2.fromBcs(T, data); },
788
+ bcs: DenyCapV2.bcs,
789
+ fromJSONField: function (field) { return DenyCapV2.fromJSONField(T, field); },
790
+ fromJSON: function (json) { return DenyCapV2.fromJSON(T, json); },
791
+ fromSuiParsedData: function (content) { return DenyCapV2.fromSuiParsedData(T, content); },
792
+ fromSuiObjectData: function (content) { return DenyCapV2.fromSuiObjectData(T, content); },
793
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
794
+ return [2 /*return*/, DenyCapV2.fetch(client, T, id)];
795
+ }); }); },
796
+ new: function (fields) {
797
+ return new DenyCapV2([(0, reified_1.extractType)(T)], fields);
798
+ },
799
+ kind: "StructClassReified",
800
+ };
801
+ };
802
+ Object.defineProperty(DenyCapV2, "r", {
803
+ get: function () {
804
+ return DenyCapV2.reified;
805
+ },
806
+ enumerable: false,
807
+ configurable: true
808
+ });
809
+ DenyCapV2.phantom = function (T) {
810
+ return (0, reified_1.phantom)(DenyCapV2.reified(T));
811
+ };
812
+ Object.defineProperty(DenyCapV2, "p", {
813
+ get: function () {
814
+ return DenyCapV2.phantom;
815
+ },
816
+ enumerable: false,
817
+ configurable: true
818
+ });
819
+ Object.defineProperty(DenyCapV2, "bcs", {
820
+ get: function () {
821
+ return bcs_1.bcs.struct("DenyCapV2", {
822
+ id: structs_5.UID.bcs,
823
+ allow_global_pause: bcs_1.bcs.bool(),
824
+ });
825
+ },
826
+ enumerable: false,
827
+ configurable: true
828
+ });
829
+ DenyCapV2.fromFields = function (typeArg, fields) {
830
+ return DenyCapV2.reified(typeArg).new({
831
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
832
+ allowGlobalPause: (0, reified_1.decodeFromFields)("bool", fields.allow_global_pause),
833
+ });
834
+ };
835
+ DenyCapV2.fromFieldsWithTypes = function (typeArg, item) {
836
+ if (!isDenyCapV2(item.type)) {
837
+ throw new Error("not a DenyCapV2 type");
838
+ }
839
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
840
+ return DenyCapV2.reified(typeArg).new({
841
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
842
+ allowGlobalPause: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.allow_global_pause),
843
+ });
844
+ };
845
+ DenyCapV2.fromBcs = function (typeArg, data) {
846
+ return DenyCapV2.fromFields(typeArg, DenyCapV2.bcs.parse(data));
847
+ };
848
+ DenyCapV2.prototype.toJSONField = function () {
849
+ return {
850
+ id: this.id,
851
+ allowGlobalPause: this.allowGlobalPause,
852
+ };
853
+ };
854
+ DenyCapV2.prototype.toJSON = function () {
855
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
856
+ };
857
+ DenyCapV2.fromJSONField = function (typeArg, field) {
858
+ return DenyCapV2.reified(typeArg).new({
859
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
860
+ allowGlobalPause: (0, reified_1.decodeFromJSONField)("bool", field.allowGlobalPause),
861
+ });
862
+ };
863
+ DenyCapV2.fromJSON = function (typeArg, json) {
864
+ if (json.$typeName !== DenyCapV2.$typeName) {
865
+ throw new Error("not a WithTwoGenerics json object");
866
+ }
867
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(DenyCapV2.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
868
+ return DenyCapV2.fromJSONField(typeArg, json);
869
+ };
870
+ DenyCapV2.fromSuiParsedData = function (typeArg, content) {
871
+ if (content.dataType !== "moveObject") {
872
+ throw new Error("not an object");
873
+ }
874
+ if (!isDenyCapV2(content.type)) {
875
+ throw new Error("object at ".concat(content.fields.id, " is not a DenyCapV2 object"));
876
+ }
877
+ return DenyCapV2.fromFieldsWithTypes(typeArg, content);
878
+ };
879
+ DenyCapV2.fromSuiObjectData = function (typeArg, data) {
880
+ if (data.bcs) {
881
+ if (data.bcs.dataType !== "moveObject" || !isDenyCapV2(data.bcs.type)) {
882
+ throw new Error("object at is not a DenyCapV2 object");
883
+ }
884
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
885
+ if (gotTypeArgs.length !== 1) {
886
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
887
+ }
888
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
889
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
890
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
891
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
892
+ }
893
+ return DenyCapV2.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
894
+ }
895
+ if (data.content) {
896
+ return DenyCapV2.fromSuiParsedData(typeArg, data.content);
897
+ }
898
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
899
+ };
900
+ DenyCapV2.fetch = function (client, typeArg, id) {
901
+ return __awaiter(this, void 0, void 0, function () {
902
+ var res;
903
+ var _a, _b;
904
+ return __generator(this, function (_c) {
905
+ switch (_c.label) {
906
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
907
+ case 1:
908
+ res = _c.sent();
909
+ if (res.error) {
910
+ throw new Error("error fetching DenyCapV2 object at id ".concat(id, ": ").concat(res.error.code));
911
+ }
912
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDenyCapV2(res.data.bcs.type)) {
913
+ throw new Error("object at id ".concat(id, " is not a DenyCapV2 object"));
914
+ }
915
+ return [2 /*return*/, DenyCapV2.fromSuiObjectData(typeArg, res.data)];
916
+ }
917
+ });
918
+ });
919
+ };
920
+ DenyCapV2.$typeName = "".concat(index_1.PKG_V26, "::coin::DenyCapV2");
921
+ DenyCapV2.$numTypeParams = 1;
922
+ DenyCapV2.$isPhantom = [true];
923
+ return DenyCapV2;
924
+ }());
925
+ exports.DenyCapV2 = DenyCapV2;
926
+ /* ============================== RegulatedCoinMetadata =============================== */
927
+ function isRegulatedCoinMetadata(type) {
928
+ type = (0, util_1.compressSuiType)(type);
929
+ return type.startsWith("".concat(index_1.PKG_V26, "::coin::RegulatedCoinMetadata") + "<");
930
+ }
931
+ var RegulatedCoinMetadata = /** @class */ (function () {
932
+ function RegulatedCoinMetadata(typeArgs, fields) {
933
+ this.__StructClass = true;
934
+ this.$typeName = RegulatedCoinMetadata.$typeName;
935
+ this.$isPhantom = RegulatedCoinMetadata.$isPhantom;
936
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RegulatedCoinMetadata.$typeName], __read(typeArgs), false));
937
+ this.$typeArgs = typeArgs;
938
+ this.id = fields.id;
939
+ this.coinMetadataObject = fields.coinMetadataObject;
940
+ this.denyCapObject = fields.denyCapObject;
941
+ }
942
+ RegulatedCoinMetadata.reified = function (T) {
943
+ var _this = this;
944
+ return {
945
+ typeName: RegulatedCoinMetadata.$typeName,
946
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RegulatedCoinMetadata.$typeName], [(0, reified_1.extractType)(T)], false)),
947
+ typeArgs: [(0, reified_1.extractType)(T)],
948
+ isPhantom: RegulatedCoinMetadata.$isPhantom,
949
+ reifiedTypeArgs: [T],
950
+ fromFields: function (fields) { return RegulatedCoinMetadata.fromFields(T, fields); },
951
+ fromFieldsWithTypes: function (item) { return RegulatedCoinMetadata.fromFieldsWithTypes(T, item); },
952
+ fromBcs: function (data) { return RegulatedCoinMetadata.fromBcs(T, data); },
953
+ bcs: RegulatedCoinMetadata.bcs,
954
+ fromJSONField: function (field) { return RegulatedCoinMetadata.fromJSONField(T, field); },
955
+ fromJSON: function (json) { return RegulatedCoinMetadata.fromJSON(T, json); },
956
+ fromSuiParsedData: function (content) { return RegulatedCoinMetadata.fromSuiParsedData(T, content); },
957
+ fromSuiObjectData: function (content) { return RegulatedCoinMetadata.fromSuiObjectData(T, content); },
958
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
959
+ return [2 /*return*/, RegulatedCoinMetadata.fetch(client, T, id)];
960
+ }); }); },
961
+ new: function (fields) {
962
+ return new RegulatedCoinMetadata([(0, reified_1.extractType)(T)], fields);
963
+ },
964
+ kind: "StructClassReified",
965
+ };
966
+ };
967
+ Object.defineProperty(RegulatedCoinMetadata, "r", {
968
+ get: function () {
969
+ return RegulatedCoinMetadata.reified;
970
+ },
971
+ enumerable: false,
972
+ configurable: true
973
+ });
974
+ RegulatedCoinMetadata.phantom = function (T) {
975
+ return (0, reified_1.phantom)(RegulatedCoinMetadata.reified(T));
976
+ };
977
+ Object.defineProperty(RegulatedCoinMetadata, "p", {
978
+ get: function () {
979
+ return RegulatedCoinMetadata.phantom;
980
+ },
981
+ enumerable: false,
982
+ configurable: true
983
+ });
984
+ Object.defineProperty(RegulatedCoinMetadata, "bcs", {
985
+ get: function () {
986
+ return bcs_1.bcs.struct("RegulatedCoinMetadata", {
987
+ id: structs_5.UID.bcs,
988
+ coin_metadata_object: structs_5.ID.bcs,
989
+ deny_cap_object: structs_5.ID.bcs,
990
+ });
991
+ },
992
+ enumerable: false,
993
+ configurable: true
994
+ });
995
+ RegulatedCoinMetadata.fromFields = function (typeArg, fields) {
996
+ return RegulatedCoinMetadata.reified(typeArg).new({
997
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
998
+ coinMetadataObject: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.coin_metadata_object),
999
+ denyCapObject: (0, reified_1.decodeFromFields)(structs_5.ID.reified(), fields.deny_cap_object),
1000
+ });
1001
+ };
1002
+ RegulatedCoinMetadata.fromFieldsWithTypes = function (typeArg, item) {
1003
+ if (!isRegulatedCoinMetadata(item.type)) {
1004
+ throw new Error("not a RegulatedCoinMetadata type");
1005
+ }
1006
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
1007
+ return RegulatedCoinMetadata.reified(typeArg).new({
1008
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
1009
+ coinMetadataObject: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.coin_metadata_object),
1010
+ denyCapObject: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.ID.reified(), item.fields.deny_cap_object),
1011
+ });
1012
+ };
1013
+ RegulatedCoinMetadata.fromBcs = function (typeArg, data) {
1014
+ return RegulatedCoinMetadata.fromFields(typeArg, RegulatedCoinMetadata.bcs.parse(data));
1015
+ };
1016
+ RegulatedCoinMetadata.prototype.toJSONField = function () {
1017
+ return {
1018
+ id: this.id,
1019
+ coinMetadataObject: this.coinMetadataObject,
1020
+ denyCapObject: this.denyCapObject,
1021
+ };
1022
+ };
1023
+ RegulatedCoinMetadata.prototype.toJSON = function () {
1024
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1025
+ };
1026
+ RegulatedCoinMetadata.fromJSONField = function (typeArg, field) {
1027
+ return RegulatedCoinMetadata.reified(typeArg).new({
1028
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
1029
+ coinMetadataObject: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.coinMetadataObject),
1030
+ denyCapObject: (0, reified_1.decodeFromJSONField)(structs_5.ID.reified(), field.denyCapObject),
1031
+ });
1032
+ };
1033
+ RegulatedCoinMetadata.fromJSON = function (typeArg, json) {
1034
+ if (json.$typeName !== RegulatedCoinMetadata.$typeName) {
1035
+ throw new Error("not a WithTwoGenerics json object");
1036
+ }
1037
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(RegulatedCoinMetadata.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
1038
+ return RegulatedCoinMetadata.fromJSONField(typeArg, json);
1039
+ };
1040
+ RegulatedCoinMetadata.fromSuiParsedData = function (typeArg, content) {
1041
+ if (content.dataType !== "moveObject") {
1042
+ throw new Error("not an object");
1043
+ }
1044
+ if (!isRegulatedCoinMetadata(content.type)) {
1045
+ throw new Error("object at ".concat(content.fields.id, " is not a RegulatedCoinMetadata object"));
1046
+ }
1047
+ return RegulatedCoinMetadata.fromFieldsWithTypes(typeArg, content);
1048
+ };
1049
+ RegulatedCoinMetadata.fromSuiObjectData = function (typeArg, data) {
1050
+ if (data.bcs) {
1051
+ if (data.bcs.dataType !== "moveObject" || !isRegulatedCoinMetadata(data.bcs.type)) {
1052
+ throw new Error("object at is not a RegulatedCoinMetadata object");
1053
+ }
1054
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
1055
+ if (gotTypeArgs.length !== 1) {
1056
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
1057
+ }
1058
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
1059
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
1060
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
1061
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
1062
+ }
1063
+ return RegulatedCoinMetadata.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
1064
+ }
1065
+ if (data.content) {
1066
+ return RegulatedCoinMetadata.fromSuiParsedData(typeArg, data.content);
1067
+ }
1068
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1069
+ };
1070
+ RegulatedCoinMetadata.fetch = function (client, typeArg, id) {
1071
+ return __awaiter(this, void 0, void 0, function () {
1072
+ var res;
1073
+ var _a, _b;
1074
+ return __generator(this, function (_c) {
1075
+ switch (_c.label) {
1076
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1077
+ case 1:
1078
+ res = _c.sent();
1079
+ if (res.error) {
1080
+ throw new Error("error fetching RegulatedCoinMetadata object at id ".concat(id, ": ").concat(res.error.code));
1081
+ }
1082
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRegulatedCoinMetadata(res.data.bcs.type)) {
1083
+ throw new Error("object at id ".concat(id, " is not a RegulatedCoinMetadata object"));
1084
+ }
1085
+ return [2 /*return*/, RegulatedCoinMetadata.fromSuiObjectData(typeArg, res.data)];
1086
+ }
1087
+ });
1088
+ });
1089
+ };
1090
+ RegulatedCoinMetadata.$typeName = "".concat(index_1.PKG_V26, "::coin::RegulatedCoinMetadata");
1091
+ RegulatedCoinMetadata.$numTypeParams = 1;
1092
+ RegulatedCoinMetadata.$isPhantom = [true];
1093
+ return RegulatedCoinMetadata;
1094
+ }());
1095
+ exports.RegulatedCoinMetadata = RegulatedCoinMetadata;
1096
+ /* ============================== TreasuryCap =============================== */
1097
+ function isTreasuryCap(type) {
1098
+ type = (0, util_1.compressSuiType)(type);
1099
+ return type.startsWith("".concat(index_1.PKG_V26, "::coin::TreasuryCap") + "<");
1100
+ }
1101
+ var TreasuryCap = /** @class */ (function () {
1102
+ function TreasuryCap(typeArgs, fields) {
1103
+ this.__StructClass = true;
1104
+ this.$typeName = TreasuryCap.$typeName;
1105
+ this.$isPhantom = TreasuryCap.$isPhantom;
1106
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TreasuryCap.$typeName], __read(typeArgs), false));
1107
+ this.$typeArgs = typeArgs;
1108
+ this.id = fields.id;
1109
+ this.totalSupply = fields.totalSupply;
1110
+ }
1111
+ TreasuryCap.reified = function (T) {
1112
+ var _this = this;
1113
+ return {
1114
+ typeName: TreasuryCap.$typeName,
1115
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TreasuryCap.$typeName], [(0, reified_1.extractType)(T)], false)),
1116
+ typeArgs: [(0, reified_1.extractType)(T)],
1117
+ isPhantom: TreasuryCap.$isPhantom,
1118
+ reifiedTypeArgs: [T],
1119
+ fromFields: function (fields) { return TreasuryCap.fromFields(T, fields); },
1120
+ fromFieldsWithTypes: function (item) { return TreasuryCap.fromFieldsWithTypes(T, item); },
1121
+ fromBcs: function (data) { return TreasuryCap.fromBcs(T, data); },
1122
+ bcs: TreasuryCap.bcs,
1123
+ fromJSONField: function (field) { return TreasuryCap.fromJSONField(T, field); },
1124
+ fromJSON: function (json) { return TreasuryCap.fromJSON(T, json); },
1125
+ fromSuiParsedData: function (content) { return TreasuryCap.fromSuiParsedData(T, content); },
1126
+ fromSuiObjectData: function (content) { return TreasuryCap.fromSuiObjectData(T, content); },
1127
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1128
+ return [2 /*return*/, TreasuryCap.fetch(client, T, id)];
1129
+ }); }); },
1130
+ new: function (fields) {
1131
+ return new TreasuryCap([(0, reified_1.extractType)(T)], fields);
1132
+ },
1133
+ kind: "StructClassReified",
1134
+ };
1135
+ };
1136
+ Object.defineProperty(TreasuryCap, "r", {
1137
+ get: function () {
1138
+ return TreasuryCap.reified;
1139
+ },
1140
+ enumerable: false,
1141
+ configurable: true
1142
+ });
1143
+ TreasuryCap.phantom = function (T) {
1144
+ return (0, reified_1.phantom)(TreasuryCap.reified(T));
1145
+ };
1146
+ Object.defineProperty(TreasuryCap, "p", {
1147
+ get: function () {
1148
+ return TreasuryCap.phantom;
1149
+ },
1150
+ enumerable: false,
1151
+ configurable: true
1152
+ });
1153
+ Object.defineProperty(TreasuryCap, "bcs", {
1154
+ get: function () {
1155
+ return bcs_1.bcs.struct("TreasuryCap", {
1156
+ id: structs_5.UID.bcs,
1157
+ total_supply: structs_4.Supply.bcs,
1158
+ });
1159
+ },
1160
+ enumerable: false,
1161
+ configurable: true
1162
+ });
1163
+ TreasuryCap.fromFields = function (typeArg, fields) {
1164
+ return TreasuryCap.reified(typeArg).new({
1165
+ id: (0, reified_1.decodeFromFields)(structs_5.UID.reified(), fields.id),
1166
+ totalSupply: (0, reified_1.decodeFromFields)(structs_4.Supply.reified(typeArg), fields.total_supply),
1167
+ });
1168
+ };
1169
+ TreasuryCap.fromFieldsWithTypes = function (typeArg, item) {
1170
+ if (!isTreasuryCap(item.type)) {
1171
+ throw new Error("not a TreasuryCap type");
1172
+ }
1173
+ (0, reified_1.assertFieldsWithTypesArgsMatch)(item, [typeArg]);
1174
+ return TreasuryCap.reified(typeArg).new({
1175
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_5.UID.reified(), item.fields.id),
1176
+ totalSupply: (0, reified_1.decodeFromFieldsWithTypes)(structs_4.Supply.reified(typeArg), item.fields.total_supply),
1177
+ });
1178
+ };
1179
+ TreasuryCap.fromBcs = function (typeArg, data) {
1180
+ return TreasuryCap.fromFields(typeArg, TreasuryCap.bcs.parse(data));
1181
+ };
1182
+ TreasuryCap.prototype.toJSONField = function () {
1183
+ return {
1184
+ id: this.id,
1185
+ totalSupply: this.totalSupply.toJSONField(),
1186
+ };
1187
+ };
1188
+ TreasuryCap.prototype.toJSON = function () {
1189
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1190
+ };
1191
+ TreasuryCap.fromJSONField = function (typeArg, field) {
1192
+ return TreasuryCap.reified(typeArg).new({
1193
+ id: (0, reified_1.decodeFromJSONField)(structs_5.UID.reified(), field.id),
1194
+ totalSupply: (0, reified_1.decodeFromJSONField)(structs_4.Supply.reified(typeArg), field.totalSupply),
1195
+ });
1196
+ };
1197
+ TreasuryCap.fromJSON = function (typeArg, json) {
1198
+ if (json.$typeName !== TreasuryCap.$typeName) {
1199
+ throw new Error("not a WithTwoGenerics json object");
1200
+ }
1201
+ (0, reified_1.assertReifiedTypeArgsMatch)((0, util_1.composeSuiType)(TreasuryCap.$typeName, (0, reified_1.extractType)(typeArg)), json.$typeArgs, [typeArg]);
1202
+ return TreasuryCap.fromJSONField(typeArg, json);
1203
+ };
1204
+ TreasuryCap.fromSuiParsedData = function (typeArg, content) {
1205
+ if (content.dataType !== "moveObject") {
1206
+ throw new Error("not an object");
1207
+ }
1208
+ if (!isTreasuryCap(content.type)) {
1209
+ throw new Error("object at ".concat(content.fields.id, " is not a TreasuryCap object"));
1210
+ }
1211
+ return TreasuryCap.fromFieldsWithTypes(typeArg, content);
1212
+ };
1213
+ TreasuryCap.fromSuiObjectData = function (typeArg, data) {
1214
+ if (data.bcs) {
1215
+ if (data.bcs.dataType !== "moveObject" || !isTreasuryCap(data.bcs.type)) {
1216
+ throw new Error("object at is not a TreasuryCap object");
1217
+ }
1218
+ var gotTypeArgs = (0, util_1.parseTypeName)(data.bcs.type).typeArgs;
1219
+ if (gotTypeArgs.length !== 1) {
1220
+ throw new Error("type argument mismatch: expected 1 type argument but got '".concat(gotTypeArgs.length, "'"));
1221
+ }
1222
+ var gotTypeArg = (0, util_1.compressSuiType)(gotTypeArgs[0]);
1223
+ var expectedTypeArg = (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg));
1224
+ if (gotTypeArg !== (0, util_1.compressSuiType)((0, reified_1.extractType)(typeArg))) {
1225
+ throw new Error("type argument mismatch: expected '".concat(expectedTypeArg, "' but got '").concat(gotTypeArg, "'"));
1226
+ }
1227
+ return TreasuryCap.fromBcs(typeArg, (0, utils_1.fromB64)(data.bcs.bcsBytes));
1228
+ }
1229
+ if (data.content) {
1230
+ return TreasuryCap.fromSuiParsedData(typeArg, data.content);
1231
+ }
1232
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1233
+ };
1234
+ TreasuryCap.fetch = function (client, typeArg, id) {
1235
+ return __awaiter(this, void 0, void 0, function () {
1236
+ var res;
1237
+ var _a, _b;
1238
+ return __generator(this, function (_c) {
1239
+ switch (_c.label) {
1240
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1241
+ case 1:
1242
+ res = _c.sent();
1243
+ if (res.error) {
1244
+ throw new Error("error fetching TreasuryCap object at id ".concat(id, ": ").concat(res.error.code));
1245
+ }
1246
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTreasuryCap(res.data.bcs.type)) {
1247
+ throw new Error("object at id ".concat(id, " is not a TreasuryCap object"));
1248
+ }
1249
+ return [2 /*return*/, TreasuryCap.fromSuiObjectData(typeArg, res.data)];
1250
+ }
1251
+ });
1252
+ });
1253
+ };
1254
+ TreasuryCap.$typeName = "".concat(index_1.PKG_V26, "::coin::TreasuryCap");
1255
+ TreasuryCap.$numTypeParams = 1;
1256
+ TreasuryCap.$isPhantom = [true];
1257
+ return TreasuryCap;
1258
+ }());
1259
+ exports.TreasuryCap = TreasuryCap;