@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
@@ -95,8 +95,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
95
95
  return to.concat(ar || Array.prototype.slice.call(from));
96
96
  };
97
97
  Object.defineProperty(exports, "__esModule", { value: true });
98
- exports.WithdrawIncentiveEvent = exports.UpdateUnlockCountdownTsMsEvent = exports.UpdateIncentiveConfigEvent = exports.UnstakeEvent = exports.StakePoolRegistry = exports.StakePoolInfo = exports.StakePoolConfig = exports.StakePool = exports.StakeEvent = exports.RemoveIncentiveTokenEvent = exports.NewStakePoolEvent = exports.LpUserShare = exports.IncentiveInfo = exports.IncentiveConfig = exports.Incentive = exports.HarvestPerUserShareEvent = exports.DepositIncentiveEvent = exports.DeactivatingShares = exports.DeactivateIncentiveTokenEvent = exports.AddIncentiveTokenEvent = exports.ActivateIncentiveTokenEvent = exports.UnsubscribeEvent = void 0;
98
+ exports.UpdateUnlockCountdownTsMsEvent = exports.UpdateIncentiveConfigEvent = exports.UnstakeEvent = exports.StakePoolRegistry = exports.StakePoolInfo = exports.StakePoolConfig = exports.StakePool = exports.StakeEvent = exports.RemoveIncentiveTokenEvent = exports.NewStakePoolEvent = exports.LpUserShare = exports.IncentiveInfo = exports.IncentiveConfig = exports.Incentive = exports.HarvestPerUserShareEvent = exports.DepositIncentiveEvent = exports.DeactivatingShares = exports.DeactivateIncentiveTokenEvent = exports.AddIncentiveTokenEvent = exports.ActivateIncentiveTokenEvent = exports.WithdrawIncentiveEvent = exports.UnsubscribeEvent = void 0;
99
99
  exports.isUnsubscribeEvent = isUnsubscribeEvent;
100
+ exports.isWithdrawIncentiveEvent = isWithdrawIncentiveEvent;
100
101
  exports.isActivateIncentiveTokenEvent = isActivateIncentiveTokenEvent;
101
102
  exports.isAddIncentiveTokenEvent = isAddIncentiveTokenEvent;
102
103
  exports.isDeactivateIncentiveTokenEvent = isDeactivateIncentiveTokenEvent;
@@ -117,22 +118,25 @@ exports.isStakePoolRegistry = isStakePoolRegistry;
117
118
  exports.isUnstakeEvent = isUnstakeEvent;
118
119
  exports.isUpdateIncentiveConfigEvent = isUpdateIncentiveConfigEvent;
119
120
  exports.isUpdateUnlockCountdownTsMsEvent = isUpdateUnlockCountdownTsMsEvent;
120
- exports.isWithdrawIncentiveEvent = isWithdrawIncentiveEvent;
121
121
  var reified = __importStar(require("../../_framework/reified"));
122
122
  var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
123
123
  var structs_2 = require("../../_dependencies/source/0x2/object/structs");
124
124
  var structs_3 = require("../../_dependencies/source/0x2/vec-map/structs");
125
125
  var reified_1 = require("../../_framework/reified");
126
126
  var util_1 = require("../../_framework/util");
127
- var bcs_1 = require("@mysten/bcs");
127
+ var index_1 = require("../index");
128
+ var bcs_1 = require("@mysten/sui/bcs");
129
+ var utils_1 = require("@mysten/sui/utils");
128
130
  /* ============================== UnsubscribeEvent =============================== */
129
131
  function isUnsubscribeEvent(type) {
130
132
  type = (0, util_1.compressSuiType)(type);
131
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UnsubscribeEvent";
133
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::UnsubscribeEvent");
132
134
  }
133
135
  var UnsubscribeEvent = /** @class */ (function () {
134
136
  function UnsubscribeEvent(typeArgs, fields) {
137
+ this.__StructClass = true;
135
138
  this.$typeName = UnsubscribeEvent.$typeName;
139
+ this.$isPhantom = UnsubscribeEvent.$isPhantom;
136
140
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnsubscribeEvent.$typeName], __read(typeArgs), false));
137
141
  this.$typeArgs = typeArgs;
138
142
  this.sender = fields.sender;
@@ -150,6 +154,7 @@ var UnsubscribeEvent = /** @class */ (function () {
150
154
  typeName: UnsubscribeEvent.$typeName,
151
155
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnsubscribeEvent.$typeName], [], false)),
152
156
  typeArgs: [],
157
+ isPhantom: UnsubscribeEvent.$isPhantom,
153
158
  reifiedTypeArgs: [],
154
159
  fromFields: function (fields) { return UnsubscribeEvent.fromFields(fields); },
155
160
  fromFieldsWithTypes: function (item) { return UnsubscribeEvent.fromFieldsWithTypes(item); },
@@ -158,6 +163,7 @@ var UnsubscribeEvent = /** @class */ (function () {
158
163
  fromJSONField: function (field) { return UnsubscribeEvent.fromJSONField(field); },
159
164
  fromJSON: function (json) { return UnsubscribeEvent.fromJSON(json); },
160
165
  fromSuiParsedData: function (content) { return UnsubscribeEvent.fromSuiParsedData(content); },
166
+ fromSuiObjectData: function (content) { return UnsubscribeEvent.fromSuiObjectData(content); },
161
167
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
162
168
  return [2 /*return*/, UnsubscribeEvent.fetch(client, id)];
163
169
  }); }); },
@@ -187,7 +193,10 @@ var UnsubscribeEvent = /** @class */ (function () {
187
193
  Object.defineProperty(UnsubscribeEvent, "bcs", {
188
194
  get: function () {
189
195
  return bcs_1.bcs.struct("UnsubscribeEvent", {
190
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
196
+ sender: bcs_1.bcs.bytes(32).transform({
197
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
198
+ output: function (val) { return (0, utils_1.toHEX)(val); },
199
+ }),
191
200
  index: bcs_1.bcs.u64(),
192
201
  lp_token_type: structs_1.TypeName.bcs,
193
202
  user_share_id: bcs_1.bcs.u64(),
@@ -272,6 +281,18 @@ var UnsubscribeEvent = /** @class */ (function () {
272
281
  }
273
282
  return UnsubscribeEvent.fromFieldsWithTypes(content);
274
283
  };
284
+ UnsubscribeEvent.fromSuiObjectData = function (data) {
285
+ if (data.bcs) {
286
+ if (data.bcs.dataType !== "moveObject" || !isUnsubscribeEvent(data.bcs.type)) {
287
+ throw new Error("object at is not a UnsubscribeEvent object");
288
+ }
289
+ return UnsubscribeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
290
+ }
291
+ if (data.content) {
292
+ return UnsubscribeEvent.fromSuiParsedData(data.content);
293
+ }
294
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
295
+ };
275
296
  UnsubscribeEvent.fetch = function (client, id) {
276
297
  return __awaiter(this, void 0, void 0, function () {
277
298
  var res;
@@ -287,24 +308,201 @@ var UnsubscribeEvent = /** @class */ (function () {
287
308
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUnsubscribeEvent(res.data.bcs.type)) {
288
309
  throw new Error("object at id ".concat(id, " is not a UnsubscribeEvent object"));
289
310
  }
290
- return [2 /*return*/, UnsubscribeEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
311
+ return [2 /*return*/, UnsubscribeEvent.fromSuiObjectData(res.data)];
291
312
  }
292
313
  });
293
314
  });
294
315
  };
295
- UnsubscribeEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UnsubscribeEvent";
316
+ UnsubscribeEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::UnsubscribeEvent");
296
317
  UnsubscribeEvent.$numTypeParams = 0;
318
+ UnsubscribeEvent.$isPhantom = [];
297
319
  return UnsubscribeEvent;
298
320
  }());
299
321
  exports.UnsubscribeEvent = UnsubscribeEvent;
322
+ /* ============================== WithdrawIncentiveEvent =============================== */
323
+ function isWithdrawIncentiveEvent(type) {
324
+ type = (0, util_1.compressSuiType)(type);
325
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::WithdrawIncentiveEvent");
326
+ }
327
+ var WithdrawIncentiveEvent = /** @class */ (function () {
328
+ function WithdrawIncentiveEvent(typeArgs, fields) {
329
+ this.__StructClass = true;
330
+ this.$typeName = WithdrawIncentiveEvent.$typeName;
331
+ this.$isPhantom = WithdrawIncentiveEvent.$isPhantom;
332
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], __read(typeArgs), false));
333
+ this.$typeArgs = typeArgs;
334
+ this.sender = fields.sender;
335
+ this.index = fields.index;
336
+ this.incentiveTokenType = fields.incentiveTokenType;
337
+ this.withdrawalAmount = fields.withdrawalAmount;
338
+ this.u64Padding = fields.u64Padding;
339
+ }
340
+ WithdrawIncentiveEvent.reified = function () {
341
+ var _this = this;
342
+ return {
343
+ typeName: WithdrawIncentiveEvent.$typeName,
344
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], [], false)),
345
+ typeArgs: [],
346
+ isPhantom: WithdrawIncentiveEvent.$isPhantom,
347
+ reifiedTypeArgs: [],
348
+ fromFields: function (fields) { return WithdrawIncentiveEvent.fromFields(fields); },
349
+ fromFieldsWithTypes: function (item) { return WithdrawIncentiveEvent.fromFieldsWithTypes(item); },
350
+ fromBcs: function (data) { return WithdrawIncentiveEvent.fromBcs(data); },
351
+ bcs: WithdrawIncentiveEvent.bcs,
352
+ fromJSONField: function (field) { return WithdrawIncentiveEvent.fromJSONField(field); },
353
+ fromJSON: function (json) { return WithdrawIncentiveEvent.fromJSON(json); },
354
+ fromSuiParsedData: function (content) { return WithdrawIncentiveEvent.fromSuiParsedData(content); },
355
+ fromSuiObjectData: function (content) { return WithdrawIncentiveEvent.fromSuiObjectData(content); },
356
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
357
+ return [2 /*return*/, WithdrawIncentiveEvent.fetch(client, id)];
358
+ }); }); },
359
+ new: function (fields) {
360
+ return new WithdrawIncentiveEvent([], fields);
361
+ },
362
+ kind: "StructClassReified",
363
+ };
364
+ };
365
+ Object.defineProperty(WithdrawIncentiveEvent, "r", {
366
+ get: function () {
367
+ return WithdrawIncentiveEvent.reified();
368
+ },
369
+ enumerable: false,
370
+ configurable: true
371
+ });
372
+ WithdrawIncentiveEvent.phantom = function () {
373
+ return (0, reified_1.phantom)(WithdrawIncentiveEvent.reified());
374
+ };
375
+ Object.defineProperty(WithdrawIncentiveEvent, "p", {
376
+ get: function () {
377
+ return WithdrawIncentiveEvent.phantom();
378
+ },
379
+ enumerable: false,
380
+ configurable: true
381
+ });
382
+ Object.defineProperty(WithdrawIncentiveEvent, "bcs", {
383
+ get: function () {
384
+ return bcs_1.bcs.struct("WithdrawIncentiveEvent", {
385
+ sender: bcs_1.bcs.bytes(32).transform({
386
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
387
+ output: function (val) { return (0, utils_1.toHEX)(val); },
388
+ }),
389
+ index: bcs_1.bcs.u64(),
390
+ incentive_token_type: structs_1.TypeName.bcs,
391
+ withdrawal_amount: bcs_1.bcs.u64(),
392
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
393
+ });
394
+ },
395
+ enumerable: false,
396
+ configurable: true
397
+ });
398
+ WithdrawIncentiveEvent.fromFields = function (fields) {
399
+ return WithdrawIncentiveEvent.reified().new({
400
+ sender: (0, reified_1.decodeFromFields)("address", fields.sender),
401
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
402
+ incentiveTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token_type),
403
+ withdrawalAmount: (0, reified_1.decodeFromFields)("u64", fields.withdrawal_amount),
404
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
405
+ });
406
+ };
407
+ WithdrawIncentiveEvent.fromFieldsWithTypes = function (item) {
408
+ if (!isWithdrawIncentiveEvent(item.type)) {
409
+ throw new Error("not a WithdrawIncentiveEvent type");
410
+ }
411
+ return WithdrawIncentiveEvent.reified().new({
412
+ sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
413
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
414
+ incentiveTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token_type),
415
+ withdrawalAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.withdrawal_amount),
416
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
417
+ });
418
+ };
419
+ WithdrawIncentiveEvent.fromBcs = function (data) {
420
+ return WithdrawIncentiveEvent.fromFields(WithdrawIncentiveEvent.bcs.parse(data));
421
+ };
422
+ WithdrawIncentiveEvent.prototype.toJSONField = function () {
423
+ return {
424
+ sender: this.sender,
425
+ index: this.index.toString(),
426
+ incentiveTokenType: this.incentiveTokenType.toJSONField(),
427
+ withdrawalAmount: this.withdrawalAmount.toString(),
428
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
429
+ };
430
+ };
431
+ WithdrawIncentiveEvent.prototype.toJSON = function () {
432
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
433
+ };
434
+ WithdrawIncentiveEvent.fromJSONField = function (field) {
435
+ return WithdrawIncentiveEvent.reified().new({
436
+ sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
437
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
438
+ incentiveTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveTokenType),
439
+ withdrawalAmount: (0, reified_1.decodeFromJSONField)("u64", field.withdrawalAmount),
440
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
441
+ });
442
+ };
443
+ WithdrawIncentiveEvent.fromJSON = function (json) {
444
+ if (json.$typeName !== WithdrawIncentiveEvent.$typeName) {
445
+ throw new Error("not a WithTwoGenerics json object");
446
+ }
447
+ return WithdrawIncentiveEvent.fromJSONField(json);
448
+ };
449
+ WithdrawIncentiveEvent.fromSuiParsedData = function (content) {
450
+ if (content.dataType !== "moveObject") {
451
+ throw new Error("not an object");
452
+ }
453
+ if (!isWithdrawIncentiveEvent(content.type)) {
454
+ throw new Error("object at ".concat(content.fields.id, " is not a WithdrawIncentiveEvent object"));
455
+ }
456
+ return WithdrawIncentiveEvent.fromFieldsWithTypes(content);
457
+ };
458
+ WithdrawIncentiveEvent.fromSuiObjectData = function (data) {
459
+ if (data.bcs) {
460
+ if (data.bcs.dataType !== "moveObject" || !isWithdrawIncentiveEvent(data.bcs.type)) {
461
+ throw new Error("object at is not a WithdrawIncentiveEvent object");
462
+ }
463
+ return WithdrawIncentiveEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
464
+ }
465
+ if (data.content) {
466
+ return WithdrawIncentiveEvent.fromSuiParsedData(data.content);
467
+ }
468
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
469
+ };
470
+ WithdrawIncentiveEvent.fetch = function (client, id) {
471
+ return __awaiter(this, void 0, void 0, function () {
472
+ var res;
473
+ var _a, _b;
474
+ return __generator(this, function (_c) {
475
+ switch (_c.label) {
476
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
477
+ case 1:
478
+ res = _c.sent();
479
+ if (res.error) {
480
+ throw new Error("error fetching WithdrawIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
481
+ }
482
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWithdrawIncentiveEvent(res.data.bcs.type)) {
483
+ throw new Error("object at id ".concat(id, " is not a WithdrawIncentiveEvent object"));
484
+ }
485
+ return [2 /*return*/, WithdrawIncentiveEvent.fromSuiObjectData(res.data)];
486
+ }
487
+ });
488
+ });
489
+ };
490
+ WithdrawIncentiveEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::WithdrawIncentiveEvent");
491
+ WithdrawIncentiveEvent.$numTypeParams = 0;
492
+ WithdrawIncentiveEvent.$isPhantom = [];
493
+ return WithdrawIncentiveEvent;
494
+ }());
495
+ exports.WithdrawIncentiveEvent = WithdrawIncentiveEvent;
300
496
  /* ============================== ActivateIncentiveTokenEvent =============================== */
301
497
  function isActivateIncentiveTokenEvent(type) {
302
498
  type = (0, util_1.compressSuiType)(type);
303
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::ActivateIncentiveTokenEvent";
499
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::ActivateIncentiveTokenEvent");
304
500
  }
305
501
  var ActivateIncentiveTokenEvent = /** @class */ (function () {
306
502
  function ActivateIncentiveTokenEvent(typeArgs, fields) {
503
+ this.__StructClass = true;
307
504
  this.$typeName = ActivateIncentiveTokenEvent.$typeName;
505
+ this.$isPhantom = ActivateIncentiveTokenEvent.$isPhantom;
308
506
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ActivateIncentiveTokenEvent.$typeName], __read(typeArgs), false));
309
507
  this.$typeArgs = typeArgs;
310
508
  this.sender = fields.sender;
@@ -318,6 +516,7 @@ var ActivateIncentiveTokenEvent = /** @class */ (function () {
318
516
  typeName: ActivateIncentiveTokenEvent.$typeName,
319
517
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ActivateIncentiveTokenEvent.$typeName], [], false)),
320
518
  typeArgs: [],
519
+ isPhantom: ActivateIncentiveTokenEvent.$isPhantom,
321
520
  reifiedTypeArgs: [],
322
521
  fromFields: function (fields) { return ActivateIncentiveTokenEvent.fromFields(fields); },
323
522
  fromFieldsWithTypes: function (item) { return ActivateIncentiveTokenEvent.fromFieldsWithTypes(item); },
@@ -326,6 +525,7 @@ var ActivateIncentiveTokenEvent = /** @class */ (function () {
326
525
  fromJSONField: function (field) { return ActivateIncentiveTokenEvent.fromJSONField(field); },
327
526
  fromJSON: function (json) { return ActivateIncentiveTokenEvent.fromJSON(json); },
328
527
  fromSuiParsedData: function (content) { return ActivateIncentiveTokenEvent.fromSuiParsedData(content); },
528
+ fromSuiObjectData: function (content) { return ActivateIncentiveTokenEvent.fromSuiObjectData(content); },
329
529
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
330
530
  return [2 /*return*/, ActivateIncentiveTokenEvent.fetch(client, id)];
331
531
  }); }); },
@@ -355,7 +555,10 @@ var ActivateIncentiveTokenEvent = /** @class */ (function () {
355
555
  Object.defineProperty(ActivateIncentiveTokenEvent, "bcs", {
356
556
  get: function () {
357
557
  return bcs_1.bcs.struct("ActivateIncentiveTokenEvent", {
358
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
558
+ sender: bcs_1.bcs.bytes(32).transform({
559
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
560
+ output: function (val) { return (0, utils_1.toHEX)(val); },
561
+ }),
359
562
  index: bcs_1.bcs.u64(),
360
563
  incentive_token: structs_1.TypeName.bcs,
361
564
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
@@ -420,6 +623,18 @@ var ActivateIncentiveTokenEvent = /** @class */ (function () {
420
623
  }
421
624
  return ActivateIncentiveTokenEvent.fromFieldsWithTypes(content);
422
625
  };
626
+ ActivateIncentiveTokenEvent.fromSuiObjectData = function (data) {
627
+ if (data.bcs) {
628
+ if (data.bcs.dataType !== "moveObject" || !isActivateIncentiveTokenEvent(data.bcs.type)) {
629
+ throw new Error("object at is not a ActivateIncentiveTokenEvent object");
630
+ }
631
+ return ActivateIncentiveTokenEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
632
+ }
633
+ if (data.content) {
634
+ return ActivateIncentiveTokenEvent.fromSuiParsedData(data.content);
635
+ }
636
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
637
+ };
423
638
  ActivateIncentiveTokenEvent.fetch = function (client, id) {
424
639
  return __awaiter(this, void 0, void 0, function () {
425
640
  var res;
@@ -435,24 +650,27 @@ var ActivateIncentiveTokenEvent = /** @class */ (function () {
435
650
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isActivateIncentiveTokenEvent(res.data.bcs.type)) {
436
651
  throw new Error("object at id ".concat(id, " is not a ActivateIncentiveTokenEvent object"));
437
652
  }
438
- return [2 /*return*/, ActivateIncentiveTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
653
+ return [2 /*return*/, ActivateIncentiveTokenEvent.fromSuiObjectData(res.data)];
439
654
  }
440
655
  });
441
656
  });
442
657
  };
443
- ActivateIncentiveTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::ActivateIncentiveTokenEvent";
658
+ ActivateIncentiveTokenEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::ActivateIncentiveTokenEvent");
444
659
  ActivateIncentiveTokenEvent.$numTypeParams = 0;
660
+ ActivateIncentiveTokenEvent.$isPhantom = [];
445
661
  return ActivateIncentiveTokenEvent;
446
662
  }());
447
663
  exports.ActivateIncentiveTokenEvent = ActivateIncentiveTokenEvent;
448
664
  /* ============================== AddIncentiveTokenEvent =============================== */
449
665
  function isAddIncentiveTokenEvent(type) {
450
666
  type = (0, util_1.compressSuiType)(type);
451
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::AddIncentiveTokenEvent";
667
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::AddIncentiveTokenEvent");
452
668
  }
453
669
  var AddIncentiveTokenEvent = /** @class */ (function () {
454
670
  function AddIncentiveTokenEvent(typeArgs, fields) {
671
+ this.__StructClass = true;
455
672
  this.$typeName = AddIncentiveTokenEvent.$typeName;
673
+ this.$isPhantom = AddIncentiveTokenEvent.$isPhantom;
456
674
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddIncentiveTokenEvent.$typeName], __read(typeArgs), false));
457
675
  this.$typeArgs = typeArgs;
458
676
  this.sender = fields.sender;
@@ -468,6 +686,7 @@ var AddIncentiveTokenEvent = /** @class */ (function () {
468
686
  typeName: AddIncentiveTokenEvent.$typeName,
469
687
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddIncentiveTokenEvent.$typeName], [], false)),
470
688
  typeArgs: [],
689
+ isPhantom: AddIncentiveTokenEvent.$isPhantom,
471
690
  reifiedTypeArgs: [],
472
691
  fromFields: function (fields) { return AddIncentiveTokenEvent.fromFields(fields); },
473
692
  fromFieldsWithTypes: function (item) { return AddIncentiveTokenEvent.fromFieldsWithTypes(item); },
@@ -476,6 +695,7 @@ var AddIncentiveTokenEvent = /** @class */ (function () {
476
695
  fromJSONField: function (field) { return AddIncentiveTokenEvent.fromJSONField(field); },
477
696
  fromJSON: function (json) { return AddIncentiveTokenEvent.fromJSON(json); },
478
697
  fromSuiParsedData: function (content) { return AddIncentiveTokenEvent.fromSuiParsedData(content); },
698
+ fromSuiObjectData: function (content) { return AddIncentiveTokenEvent.fromSuiObjectData(content); },
479
699
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
480
700
  return [2 /*return*/, AddIncentiveTokenEvent.fetch(client, id)];
481
701
  }); }); },
@@ -505,7 +725,10 @@ var AddIncentiveTokenEvent = /** @class */ (function () {
505
725
  Object.defineProperty(AddIncentiveTokenEvent, "bcs", {
506
726
  get: function () {
507
727
  return bcs_1.bcs.struct("AddIncentiveTokenEvent", {
508
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
728
+ sender: bcs_1.bcs.bytes(32).transform({
729
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
730
+ output: function (val) { return (0, utils_1.toHEX)(val); },
731
+ }),
509
732
  index: bcs_1.bcs.u64(),
510
733
  incentive_token: structs_1.TypeName.bcs,
511
734
  incentive_info: IncentiveInfo.bcs,
@@ -580,6 +803,18 @@ var AddIncentiveTokenEvent = /** @class */ (function () {
580
803
  }
581
804
  return AddIncentiveTokenEvent.fromFieldsWithTypes(content);
582
805
  };
806
+ AddIncentiveTokenEvent.fromSuiObjectData = function (data) {
807
+ if (data.bcs) {
808
+ if (data.bcs.dataType !== "moveObject" || !isAddIncentiveTokenEvent(data.bcs.type)) {
809
+ throw new Error("object at is not a AddIncentiveTokenEvent object");
810
+ }
811
+ return AddIncentiveTokenEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
812
+ }
813
+ if (data.content) {
814
+ return AddIncentiveTokenEvent.fromSuiParsedData(data.content);
815
+ }
816
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
817
+ };
583
818
  AddIncentiveTokenEvent.fetch = function (client, id) {
584
819
  return __awaiter(this, void 0, void 0, function () {
585
820
  var res;
@@ -595,24 +830,27 @@ var AddIncentiveTokenEvent = /** @class */ (function () {
595
830
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddIncentiveTokenEvent(res.data.bcs.type)) {
596
831
  throw new Error("object at id ".concat(id, " is not a AddIncentiveTokenEvent object"));
597
832
  }
598
- return [2 /*return*/, AddIncentiveTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
833
+ return [2 /*return*/, AddIncentiveTokenEvent.fromSuiObjectData(res.data)];
599
834
  }
600
835
  });
601
836
  });
602
837
  };
603
- AddIncentiveTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::AddIncentiveTokenEvent";
838
+ AddIncentiveTokenEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::AddIncentiveTokenEvent");
604
839
  AddIncentiveTokenEvent.$numTypeParams = 0;
840
+ AddIncentiveTokenEvent.$isPhantom = [];
605
841
  return AddIncentiveTokenEvent;
606
842
  }());
607
843
  exports.AddIncentiveTokenEvent = AddIncentiveTokenEvent;
608
844
  /* ============================== DeactivateIncentiveTokenEvent =============================== */
609
845
  function isDeactivateIncentiveTokenEvent(type) {
610
846
  type = (0, util_1.compressSuiType)(type);
611
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivateIncentiveTokenEvent";
847
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::DeactivateIncentiveTokenEvent");
612
848
  }
613
849
  var DeactivateIncentiveTokenEvent = /** @class */ (function () {
614
850
  function DeactivateIncentiveTokenEvent(typeArgs, fields) {
851
+ this.__StructClass = true;
615
852
  this.$typeName = DeactivateIncentiveTokenEvent.$typeName;
853
+ this.$isPhantom = DeactivateIncentiveTokenEvent.$isPhantom;
616
854
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DeactivateIncentiveTokenEvent.$typeName], __read(typeArgs), false));
617
855
  this.$typeArgs = typeArgs;
618
856
  this.sender = fields.sender;
@@ -626,6 +864,7 @@ var DeactivateIncentiveTokenEvent = /** @class */ (function () {
626
864
  typeName: DeactivateIncentiveTokenEvent.$typeName,
627
865
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DeactivateIncentiveTokenEvent.$typeName], [], false)),
628
866
  typeArgs: [],
867
+ isPhantom: DeactivateIncentiveTokenEvent.$isPhantom,
629
868
  reifiedTypeArgs: [],
630
869
  fromFields: function (fields) { return DeactivateIncentiveTokenEvent.fromFields(fields); },
631
870
  fromFieldsWithTypes: function (item) { return DeactivateIncentiveTokenEvent.fromFieldsWithTypes(item); },
@@ -634,6 +873,7 @@ var DeactivateIncentiveTokenEvent = /** @class */ (function () {
634
873
  fromJSONField: function (field) { return DeactivateIncentiveTokenEvent.fromJSONField(field); },
635
874
  fromJSON: function (json) { return DeactivateIncentiveTokenEvent.fromJSON(json); },
636
875
  fromSuiParsedData: function (content) { return DeactivateIncentiveTokenEvent.fromSuiParsedData(content); },
876
+ fromSuiObjectData: function (content) { return DeactivateIncentiveTokenEvent.fromSuiObjectData(content); },
637
877
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
638
878
  return [2 /*return*/, DeactivateIncentiveTokenEvent.fetch(client, id)];
639
879
  }); }); },
@@ -663,7 +903,10 @@ var DeactivateIncentiveTokenEvent = /** @class */ (function () {
663
903
  Object.defineProperty(DeactivateIncentiveTokenEvent, "bcs", {
664
904
  get: function () {
665
905
  return bcs_1.bcs.struct("DeactivateIncentiveTokenEvent", {
666
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
906
+ sender: bcs_1.bcs.bytes(32).transform({
907
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
908
+ output: function (val) { return (0, utils_1.toHEX)(val); },
909
+ }),
667
910
  index: bcs_1.bcs.u64(),
668
911
  incentive_token: structs_1.TypeName.bcs,
669
912
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
@@ -728,6 +971,18 @@ var DeactivateIncentiveTokenEvent = /** @class */ (function () {
728
971
  }
729
972
  return DeactivateIncentiveTokenEvent.fromFieldsWithTypes(content);
730
973
  };
974
+ DeactivateIncentiveTokenEvent.fromSuiObjectData = function (data) {
975
+ if (data.bcs) {
976
+ if (data.bcs.dataType !== "moveObject" || !isDeactivateIncentiveTokenEvent(data.bcs.type)) {
977
+ throw new Error("object at is not a DeactivateIncentiveTokenEvent object");
978
+ }
979
+ return DeactivateIncentiveTokenEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
980
+ }
981
+ if (data.content) {
982
+ return DeactivateIncentiveTokenEvent.fromSuiParsedData(data.content);
983
+ }
984
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
985
+ };
731
986
  DeactivateIncentiveTokenEvent.fetch = function (client, id) {
732
987
  return __awaiter(this, void 0, void 0, function () {
733
988
  var res;
@@ -743,24 +998,27 @@ var DeactivateIncentiveTokenEvent = /** @class */ (function () {
743
998
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDeactivateIncentiveTokenEvent(res.data.bcs.type)) {
744
999
  throw new Error("object at id ".concat(id, " is not a DeactivateIncentiveTokenEvent object"));
745
1000
  }
746
- return [2 /*return*/, DeactivateIncentiveTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1001
+ return [2 /*return*/, DeactivateIncentiveTokenEvent.fromSuiObjectData(res.data)];
747
1002
  }
748
1003
  });
749
1004
  });
750
1005
  };
751
- DeactivateIncentiveTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivateIncentiveTokenEvent";
1006
+ DeactivateIncentiveTokenEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::DeactivateIncentiveTokenEvent");
752
1007
  DeactivateIncentiveTokenEvent.$numTypeParams = 0;
1008
+ DeactivateIncentiveTokenEvent.$isPhantom = [];
753
1009
  return DeactivateIncentiveTokenEvent;
754
1010
  }());
755
1011
  exports.DeactivateIncentiveTokenEvent = DeactivateIncentiveTokenEvent;
756
1012
  /* ============================== DeactivatingShares =============================== */
757
1013
  function isDeactivatingShares(type) {
758
1014
  type = (0, util_1.compressSuiType)(type);
759
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivatingShares";
1015
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::DeactivatingShares");
760
1016
  }
761
1017
  var DeactivatingShares = /** @class */ (function () {
762
1018
  function DeactivatingShares(typeArgs, fields) {
1019
+ this.__StructClass = true;
763
1020
  this.$typeName = DeactivatingShares.$typeName;
1021
+ this.$isPhantom = DeactivatingShares.$isPhantom;
764
1022
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DeactivatingShares.$typeName], __read(typeArgs), false));
765
1023
  this.$typeArgs = typeArgs;
766
1024
  this.shares = fields.shares;
@@ -775,6 +1033,7 @@ var DeactivatingShares = /** @class */ (function () {
775
1033
  typeName: DeactivatingShares.$typeName,
776
1034
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DeactivatingShares.$typeName], [], false)),
777
1035
  typeArgs: [],
1036
+ isPhantom: DeactivatingShares.$isPhantom,
778
1037
  reifiedTypeArgs: [],
779
1038
  fromFields: function (fields) { return DeactivatingShares.fromFields(fields); },
780
1039
  fromFieldsWithTypes: function (item) { return DeactivatingShares.fromFieldsWithTypes(item); },
@@ -783,6 +1042,7 @@ var DeactivatingShares = /** @class */ (function () {
783
1042
  fromJSONField: function (field) { return DeactivatingShares.fromJSONField(field); },
784
1043
  fromJSON: function (json) { return DeactivatingShares.fromJSON(json); },
785
1044
  fromSuiParsedData: function (content) { return DeactivatingShares.fromSuiParsedData(content); },
1045
+ fromSuiObjectData: function (content) { return DeactivatingShares.fromSuiObjectData(content); },
786
1046
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
787
1047
  return [2 /*return*/, DeactivatingShares.fetch(client, id)];
788
1048
  }); }); },
@@ -882,6 +1142,18 @@ var DeactivatingShares = /** @class */ (function () {
882
1142
  }
883
1143
  return DeactivatingShares.fromFieldsWithTypes(content);
884
1144
  };
1145
+ DeactivatingShares.fromSuiObjectData = function (data) {
1146
+ if (data.bcs) {
1147
+ if (data.bcs.dataType !== "moveObject" || !isDeactivatingShares(data.bcs.type)) {
1148
+ throw new Error("object at is not a DeactivatingShares object");
1149
+ }
1150
+ return DeactivatingShares.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1151
+ }
1152
+ if (data.content) {
1153
+ return DeactivatingShares.fromSuiParsedData(data.content);
1154
+ }
1155
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1156
+ };
885
1157
  DeactivatingShares.fetch = function (client, id) {
886
1158
  return __awaiter(this, void 0, void 0, function () {
887
1159
  var res;
@@ -897,24 +1169,27 @@ var DeactivatingShares = /** @class */ (function () {
897
1169
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDeactivatingShares(res.data.bcs.type)) {
898
1170
  throw new Error("object at id ".concat(id, " is not a DeactivatingShares object"));
899
1171
  }
900
- return [2 /*return*/, DeactivatingShares.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1172
+ return [2 /*return*/, DeactivatingShares.fromSuiObjectData(res.data)];
901
1173
  }
902
1174
  });
903
1175
  });
904
1176
  };
905
- DeactivatingShares.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivatingShares";
1177
+ DeactivatingShares.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::DeactivatingShares");
906
1178
  DeactivatingShares.$numTypeParams = 0;
1179
+ DeactivatingShares.$isPhantom = [];
907
1180
  return DeactivatingShares;
908
1181
  }());
909
1182
  exports.DeactivatingShares = DeactivatingShares;
910
1183
  /* ============================== DepositIncentiveEvent =============================== */
911
1184
  function isDepositIncentiveEvent(type) {
912
1185
  type = (0, util_1.compressSuiType)(type);
913
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DepositIncentiveEvent";
1186
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::DepositIncentiveEvent");
914
1187
  }
915
1188
  var DepositIncentiveEvent = /** @class */ (function () {
916
1189
  function DepositIncentiveEvent(typeArgs, fields) {
1190
+ this.__StructClass = true;
917
1191
  this.$typeName = DepositIncentiveEvent.$typeName;
1192
+ this.$isPhantom = DepositIncentiveEvent.$isPhantom;
918
1193
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([DepositIncentiveEvent.$typeName], __read(typeArgs), false));
919
1194
  this.$typeArgs = typeArgs;
920
1195
  this.sender = fields.sender;
@@ -929,6 +1204,7 @@ var DepositIncentiveEvent = /** @class */ (function () {
929
1204
  typeName: DepositIncentiveEvent.$typeName,
930
1205
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([DepositIncentiveEvent.$typeName], [], false)),
931
1206
  typeArgs: [],
1207
+ isPhantom: DepositIncentiveEvent.$isPhantom,
932
1208
  reifiedTypeArgs: [],
933
1209
  fromFields: function (fields) { return DepositIncentiveEvent.fromFields(fields); },
934
1210
  fromFieldsWithTypes: function (item) { return DepositIncentiveEvent.fromFieldsWithTypes(item); },
@@ -937,6 +1213,7 @@ var DepositIncentiveEvent = /** @class */ (function () {
937
1213
  fromJSONField: function (field) { return DepositIncentiveEvent.fromJSONField(field); },
938
1214
  fromJSON: function (json) { return DepositIncentiveEvent.fromJSON(json); },
939
1215
  fromSuiParsedData: function (content) { return DepositIncentiveEvent.fromSuiParsedData(content); },
1216
+ fromSuiObjectData: function (content) { return DepositIncentiveEvent.fromSuiObjectData(content); },
940
1217
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
941
1218
  return [2 /*return*/, DepositIncentiveEvent.fetch(client, id)];
942
1219
  }); }); },
@@ -966,7 +1243,10 @@ var DepositIncentiveEvent = /** @class */ (function () {
966
1243
  Object.defineProperty(DepositIncentiveEvent, "bcs", {
967
1244
  get: function () {
968
1245
  return bcs_1.bcs.struct("DepositIncentiveEvent", {
969
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
1246
+ sender: bcs_1.bcs.bytes(32).transform({
1247
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1248
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1249
+ }),
970
1250
  index: bcs_1.bcs.u64(),
971
1251
  incentive_token_type: structs_1.TypeName.bcs,
972
1252
  deposit_amount: bcs_1.bcs.u64(),
@@ -1036,6 +1316,18 @@ var DepositIncentiveEvent = /** @class */ (function () {
1036
1316
  }
1037
1317
  return DepositIncentiveEvent.fromFieldsWithTypes(content);
1038
1318
  };
1319
+ DepositIncentiveEvent.fromSuiObjectData = function (data) {
1320
+ if (data.bcs) {
1321
+ if (data.bcs.dataType !== "moveObject" || !isDepositIncentiveEvent(data.bcs.type)) {
1322
+ throw new Error("object at is not a DepositIncentiveEvent object");
1323
+ }
1324
+ return DepositIncentiveEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1325
+ }
1326
+ if (data.content) {
1327
+ return DepositIncentiveEvent.fromSuiParsedData(data.content);
1328
+ }
1329
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1330
+ };
1039
1331
  DepositIncentiveEvent.fetch = function (client, id) {
1040
1332
  return __awaiter(this, void 0, void 0, function () {
1041
1333
  var res;
@@ -1051,24 +1343,27 @@ var DepositIncentiveEvent = /** @class */ (function () {
1051
1343
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isDepositIncentiveEvent(res.data.bcs.type)) {
1052
1344
  throw new Error("object at id ".concat(id, " is not a DepositIncentiveEvent object"));
1053
1345
  }
1054
- return [2 /*return*/, DepositIncentiveEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1346
+ return [2 /*return*/, DepositIncentiveEvent.fromSuiObjectData(res.data)];
1055
1347
  }
1056
1348
  });
1057
1349
  });
1058
1350
  };
1059
- DepositIncentiveEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DepositIncentiveEvent";
1351
+ DepositIncentiveEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::DepositIncentiveEvent");
1060
1352
  DepositIncentiveEvent.$numTypeParams = 0;
1353
+ DepositIncentiveEvent.$isPhantom = [];
1061
1354
  return DepositIncentiveEvent;
1062
1355
  }());
1063
1356
  exports.DepositIncentiveEvent = DepositIncentiveEvent;
1064
1357
  /* ============================== HarvestPerUserShareEvent =============================== */
1065
1358
  function isHarvestPerUserShareEvent(type) {
1066
1359
  type = (0, util_1.compressSuiType)(type);
1067
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::HarvestPerUserShareEvent";
1360
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::HarvestPerUserShareEvent");
1068
1361
  }
1069
1362
  var HarvestPerUserShareEvent = /** @class */ (function () {
1070
1363
  function HarvestPerUserShareEvent(typeArgs, fields) {
1364
+ this.__StructClass = true;
1071
1365
  this.$typeName = HarvestPerUserShareEvent.$typeName;
1366
+ this.$isPhantom = HarvestPerUserShareEvent.$isPhantom;
1072
1367
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([HarvestPerUserShareEvent.$typeName], __read(typeArgs), false));
1073
1368
  this.$typeArgs = typeArgs;
1074
1369
  this.sender = fields.sender;
@@ -1084,6 +1379,7 @@ var HarvestPerUserShareEvent = /** @class */ (function () {
1084
1379
  typeName: HarvestPerUserShareEvent.$typeName,
1085
1380
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([HarvestPerUserShareEvent.$typeName], [], false)),
1086
1381
  typeArgs: [],
1382
+ isPhantom: HarvestPerUserShareEvent.$isPhantom,
1087
1383
  reifiedTypeArgs: [],
1088
1384
  fromFields: function (fields) { return HarvestPerUserShareEvent.fromFields(fields); },
1089
1385
  fromFieldsWithTypes: function (item) { return HarvestPerUserShareEvent.fromFieldsWithTypes(item); },
@@ -1092,6 +1388,7 @@ var HarvestPerUserShareEvent = /** @class */ (function () {
1092
1388
  fromJSONField: function (field) { return HarvestPerUserShareEvent.fromJSONField(field); },
1093
1389
  fromJSON: function (json) { return HarvestPerUserShareEvent.fromJSON(json); },
1094
1390
  fromSuiParsedData: function (content) { return HarvestPerUserShareEvent.fromSuiParsedData(content); },
1391
+ fromSuiObjectData: function (content) { return HarvestPerUserShareEvent.fromSuiObjectData(content); },
1095
1392
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1096
1393
  return [2 /*return*/, HarvestPerUserShareEvent.fetch(client, id)];
1097
1394
  }); }); },
@@ -1121,7 +1418,10 @@ var HarvestPerUserShareEvent = /** @class */ (function () {
1121
1418
  Object.defineProperty(HarvestPerUserShareEvent, "bcs", {
1122
1419
  get: function () {
1123
1420
  return bcs_1.bcs.struct("HarvestPerUserShareEvent", {
1124
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
1421
+ sender: bcs_1.bcs.bytes(32).transform({
1422
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1423
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1424
+ }),
1125
1425
  index: bcs_1.bcs.u64(),
1126
1426
  incentive_token_type: structs_1.TypeName.bcs,
1127
1427
  harvest_amount: bcs_1.bcs.u64(),
@@ -1196,6 +1496,18 @@ var HarvestPerUserShareEvent = /** @class */ (function () {
1196
1496
  }
1197
1497
  return HarvestPerUserShareEvent.fromFieldsWithTypes(content);
1198
1498
  };
1499
+ HarvestPerUserShareEvent.fromSuiObjectData = function (data) {
1500
+ if (data.bcs) {
1501
+ if (data.bcs.dataType !== "moveObject" || !isHarvestPerUserShareEvent(data.bcs.type)) {
1502
+ throw new Error("object at is not a HarvestPerUserShareEvent object");
1503
+ }
1504
+ return HarvestPerUserShareEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1505
+ }
1506
+ if (data.content) {
1507
+ return HarvestPerUserShareEvent.fromSuiParsedData(data.content);
1508
+ }
1509
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1510
+ };
1199
1511
  HarvestPerUserShareEvent.fetch = function (client, id) {
1200
1512
  return __awaiter(this, void 0, void 0, function () {
1201
1513
  var res;
@@ -1211,24 +1523,27 @@ var HarvestPerUserShareEvent = /** @class */ (function () {
1211
1523
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isHarvestPerUserShareEvent(res.data.bcs.type)) {
1212
1524
  throw new Error("object at id ".concat(id, " is not a HarvestPerUserShareEvent object"));
1213
1525
  }
1214
- return [2 /*return*/, HarvestPerUserShareEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1526
+ return [2 /*return*/, HarvestPerUserShareEvent.fromSuiObjectData(res.data)];
1215
1527
  }
1216
1528
  });
1217
1529
  });
1218
1530
  };
1219
- HarvestPerUserShareEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::HarvestPerUserShareEvent";
1531
+ HarvestPerUserShareEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::HarvestPerUserShareEvent");
1220
1532
  HarvestPerUserShareEvent.$numTypeParams = 0;
1533
+ HarvestPerUserShareEvent.$isPhantom = [];
1221
1534
  return HarvestPerUserShareEvent;
1222
1535
  }());
1223
1536
  exports.HarvestPerUserShareEvent = HarvestPerUserShareEvent;
1224
1537
  /* ============================== Incentive =============================== */
1225
1538
  function isIncentive(type) {
1226
1539
  type = (0, util_1.compressSuiType)(type);
1227
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::Incentive";
1540
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::Incentive");
1228
1541
  }
1229
1542
  var Incentive = /** @class */ (function () {
1230
1543
  function Incentive(typeArgs, fields) {
1544
+ this.__StructClass = true;
1231
1545
  this.$typeName = Incentive.$typeName;
1546
+ this.$isPhantom = Incentive.$isPhantom;
1232
1547
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Incentive.$typeName], __read(typeArgs), false));
1233
1548
  this.$typeArgs = typeArgs;
1234
1549
  this.tokenType = fields.tokenType;
@@ -1241,6 +1556,7 @@ var Incentive = /** @class */ (function () {
1241
1556
  typeName: Incentive.$typeName,
1242
1557
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Incentive.$typeName], [], false)),
1243
1558
  typeArgs: [],
1559
+ isPhantom: Incentive.$isPhantom,
1244
1560
  reifiedTypeArgs: [],
1245
1561
  fromFields: function (fields) { return Incentive.fromFields(fields); },
1246
1562
  fromFieldsWithTypes: function (item) { return Incentive.fromFieldsWithTypes(item); },
@@ -1249,6 +1565,7 @@ var Incentive = /** @class */ (function () {
1249
1565
  fromJSONField: function (field) { return Incentive.fromJSONField(field); },
1250
1566
  fromJSON: function (json) { return Incentive.fromJSON(json); },
1251
1567
  fromSuiParsedData: function (content) { return Incentive.fromSuiParsedData(content); },
1568
+ fromSuiObjectData: function (content) { return Incentive.fromSuiObjectData(content); },
1252
1569
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1253
1570
  return [2 /*return*/, Incentive.fetch(client, id)];
1254
1571
  }); }); },
@@ -1338,6 +1655,18 @@ var Incentive = /** @class */ (function () {
1338
1655
  }
1339
1656
  return Incentive.fromFieldsWithTypes(content);
1340
1657
  };
1658
+ Incentive.fromSuiObjectData = function (data) {
1659
+ if (data.bcs) {
1660
+ if (data.bcs.dataType !== "moveObject" || !isIncentive(data.bcs.type)) {
1661
+ throw new Error("object at is not a Incentive object");
1662
+ }
1663
+ return Incentive.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1664
+ }
1665
+ if (data.content) {
1666
+ return Incentive.fromSuiParsedData(data.content);
1667
+ }
1668
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1669
+ };
1341
1670
  Incentive.fetch = function (client, id) {
1342
1671
  return __awaiter(this, void 0, void 0, function () {
1343
1672
  var res;
@@ -1353,24 +1682,27 @@ var Incentive = /** @class */ (function () {
1353
1682
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isIncentive(res.data.bcs.type)) {
1354
1683
  throw new Error("object at id ".concat(id, " is not a Incentive object"));
1355
1684
  }
1356
- return [2 /*return*/, Incentive.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1685
+ return [2 /*return*/, Incentive.fromSuiObjectData(res.data)];
1357
1686
  }
1358
1687
  });
1359
1688
  });
1360
1689
  };
1361
- Incentive.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::Incentive";
1690
+ Incentive.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::Incentive");
1362
1691
  Incentive.$numTypeParams = 0;
1692
+ Incentive.$isPhantom = [];
1363
1693
  return Incentive;
1364
1694
  }());
1365
1695
  exports.Incentive = Incentive;
1366
1696
  /* ============================== IncentiveConfig =============================== */
1367
1697
  function isIncentiveConfig(type) {
1368
1698
  type = (0, util_1.compressSuiType)(type);
1369
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::IncentiveConfig";
1699
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::IncentiveConfig");
1370
1700
  }
1371
1701
  var IncentiveConfig = /** @class */ (function () {
1372
1702
  function IncentiveConfig(typeArgs, fields) {
1703
+ this.__StructClass = true;
1373
1704
  this.$typeName = IncentiveConfig.$typeName;
1705
+ this.$isPhantom = IncentiveConfig.$isPhantom;
1374
1706
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([IncentiveConfig.$typeName], __read(typeArgs), false));
1375
1707
  this.$typeArgs = typeArgs;
1376
1708
  this.periodIncentiveAmount = fields.periodIncentiveAmount;
@@ -1383,6 +1715,7 @@ var IncentiveConfig = /** @class */ (function () {
1383
1715
  typeName: IncentiveConfig.$typeName,
1384
1716
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([IncentiveConfig.$typeName], [], false)),
1385
1717
  typeArgs: [],
1718
+ isPhantom: IncentiveConfig.$isPhantom,
1386
1719
  reifiedTypeArgs: [],
1387
1720
  fromFields: function (fields) { return IncentiveConfig.fromFields(fields); },
1388
1721
  fromFieldsWithTypes: function (item) { return IncentiveConfig.fromFieldsWithTypes(item); },
@@ -1391,6 +1724,7 @@ var IncentiveConfig = /** @class */ (function () {
1391
1724
  fromJSONField: function (field) { return IncentiveConfig.fromJSONField(field); },
1392
1725
  fromJSON: function (json) { return IncentiveConfig.fromJSON(json); },
1393
1726
  fromSuiParsedData: function (content) { return IncentiveConfig.fromSuiParsedData(content); },
1727
+ fromSuiObjectData: function (content) { return IncentiveConfig.fromSuiObjectData(content); },
1394
1728
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1395
1729
  return [2 /*return*/, IncentiveConfig.fetch(client, id)];
1396
1730
  }); }); },
@@ -1480,6 +1814,18 @@ var IncentiveConfig = /** @class */ (function () {
1480
1814
  }
1481
1815
  return IncentiveConfig.fromFieldsWithTypes(content);
1482
1816
  };
1817
+ IncentiveConfig.fromSuiObjectData = function (data) {
1818
+ if (data.bcs) {
1819
+ if (data.bcs.dataType !== "moveObject" || !isIncentiveConfig(data.bcs.type)) {
1820
+ throw new Error("object at is not a IncentiveConfig object");
1821
+ }
1822
+ return IncentiveConfig.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1823
+ }
1824
+ if (data.content) {
1825
+ return IncentiveConfig.fromSuiParsedData(data.content);
1826
+ }
1827
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1828
+ };
1483
1829
  IncentiveConfig.fetch = function (client, id) {
1484
1830
  return __awaiter(this, void 0, void 0, function () {
1485
1831
  var res;
@@ -1495,29 +1841,33 @@ var IncentiveConfig = /** @class */ (function () {
1495
1841
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isIncentiveConfig(res.data.bcs.type)) {
1496
1842
  throw new Error("object at id ".concat(id, " is not a IncentiveConfig object"));
1497
1843
  }
1498
- return [2 /*return*/, IncentiveConfig.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1844
+ return [2 /*return*/, IncentiveConfig.fromSuiObjectData(res.data)];
1499
1845
  }
1500
1846
  });
1501
1847
  });
1502
1848
  };
1503
- IncentiveConfig.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::IncentiveConfig";
1849
+ IncentiveConfig.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::IncentiveConfig");
1504
1850
  IncentiveConfig.$numTypeParams = 0;
1851
+ IncentiveConfig.$isPhantom = [];
1505
1852
  return IncentiveConfig;
1506
1853
  }());
1507
1854
  exports.IncentiveConfig = IncentiveConfig;
1508
1855
  /* ============================== IncentiveInfo =============================== */
1509
1856
  function isIncentiveInfo(type) {
1510
1857
  type = (0, util_1.compressSuiType)(type);
1511
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::IncentiveInfo";
1858
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::IncentiveInfo");
1512
1859
  }
1513
1860
  var IncentiveInfo = /** @class */ (function () {
1514
1861
  function IncentiveInfo(typeArgs, fields) {
1862
+ this.__StructClass = true;
1515
1863
  this.$typeName = IncentiveInfo.$typeName;
1864
+ this.$isPhantom = IncentiveInfo.$isPhantom;
1516
1865
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([IncentiveInfo.$typeName], __read(typeArgs), false));
1517
1866
  this.$typeArgs = typeArgs;
1518
1867
  this.active = fields.active;
1519
1868
  this.lastAllocateTsMs = fields.lastAllocateTsMs;
1520
1869
  this.incentivePriceIndex = fields.incentivePriceIndex;
1870
+ this.unallocatedAmount = fields.unallocatedAmount;
1521
1871
  this.u64Padding = fields.u64Padding;
1522
1872
  }
1523
1873
  IncentiveInfo.reified = function () {
@@ -1526,6 +1876,7 @@ var IncentiveInfo = /** @class */ (function () {
1526
1876
  typeName: IncentiveInfo.$typeName,
1527
1877
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([IncentiveInfo.$typeName], [], false)),
1528
1878
  typeArgs: [],
1879
+ isPhantom: IncentiveInfo.$isPhantom,
1529
1880
  reifiedTypeArgs: [],
1530
1881
  fromFields: function (fields) { return IncentiveInfo.fromFields(fields); },
1531
1882
  fromFieldsWithTypes: function (item) { return IncentiveInfo.fromFieldsWithTypes(item); },
@@ -1534,6 +1885,7 @@ var IncentiveInfo = /** @class */ (function () {
1534
1885
  fromJSONField: function (field) { return IncentiveInfo.fromJSONField(field); },
1535
1886
  fromJSON: function (json) { return IncentiveInfo.fromJSON(json); },
1536
1887
  fromSuiParsedData: function (content) { return IncentiveInfo.fromSuiParsedData(content); },
1888
+ fromSuiObjectData: function (content) { return IncentiveInfo.fromSuiObjectData(content); },
1537
1889
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1538
1890
  return [2 /*return*/, IncentiveInfo.fetch(client, id)];
1539
1891
  }); }); },
@@ -1566,6 +1918,7 @@ var IncentiveInfo = /** @class */ (function () {
1566
1918
  active: bcs_1.bcs.bool(),
1567
1919
  last_allocate_ts_ms: bcs_1.bcs.u64(),
1568
1920
  incentive_price_index: bcs_1.bcs.u64(),
1921
+ unallocated_amount: bcs_1.bcs.u64(),
1569
1922
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1570
1923
  });
1571
1924
  },
@@ -1577,6 +1930,7 @@ var IncentiveInfo = /** @class */ (function () {
1577
1930
  active: (0, reified_1.decodeFromFields)("bool", fields.active),
1578
1931
  lastAllocateTsMs: (0, reified_1.decodeFromFields)("u64", fields.last_allocate_ts_ms),
1579
1932
  incentivePriceIndex: (0, reified_1.decodeFromFields)("u64", fields.incentive_price_index),
1933
+ unallocatedAmount: (0, reified_1.decodeFromFields)("u64", fields.unallocated_amount),
1580
1934
  u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1581
1935
  });
1582
1936
  };
@@ -1588,6 +1942,7 @@ var IncentiveInfo = /** @class */ (function () {
1588
1942
  active: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.active),
1589
1943
  lastAllocateTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.last_allocate_ts_ms),
1590
1944
  incentivePriceIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_price_index),
1945
+ unallocatedAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.unallocated_amount),
1591
1946
  u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1592
1947
  });
1593
1948
  };
@@ -1599,6 +1954,7 @@ var IncentiveInfo = /** @class */ (function () {
1599
1954
  active: this.active,
1600
1955
  lastAllocateTsMs: this.lastAllocateTsMs.toString(),
1601
1956
  incentivePriceIndex: this.incentivePriceIndex.toString(),
1957
+ unallocatedAmount: this.unallocatedAmount.toString(),
1602
1958
  u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1603
1959
  };
1604
1960
  };
@@ -1610,6 +1966,7 @@ var IncentiveInfo = /** @class */ (function () {
1610
1966
  active: (0, reified_1.decodeFromJSONField)("bool", field.active),
1611
1967
  lastAllocateTsMs: (0, reified_1.decodeFromJSONField)("u64", field.lastAllocateTsMs),
1612
1968
  incentivePriceIndex: (0, reified_1.decodeFromJSONField)("u64", field.incentivePriceIndex),
1969
+ unallocatedAmount: (0, reified_1.decodeFromJSONField)("u64", field.unallocatedAmount),
1613
1970
  u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1614
1971
  });
1615
1972
  };
@@ -1628,6 +1985,18 @@ var IncentiveInfo = /** @class */ (function () {
1628
1985
  }
1629
1986
  return IncentiveInfo.fromFieldsWithTypes(content);
1630
1987
  };
1988
+ IncentiveInfo.fromSuiObjectData = function (data) {
1989
+ if (data.bcs) {
1990
+ if (data.bcs.dataType !== "moveObject" || !isIncentiveInfo(data.bcs.type)) {
1991
+ throw new Error("object at is not a IncentiveInfo object");
1992
+ }
1993
+ return IncentiveInfo.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1994
+ }
1995
+ if (data.content) {
1996
+ return IncentiveInfo.fromSuiParsedData(data.content);
1997
+ }
1998
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1999
+ };
1631
2000
  IncentiveInfo.fetch = function (client, id) {
1632
2001
  return __awaiter(this, void 0, void 0, function () {
1633
2002
  var res;
@@ -1643,24 +2012,27 @@ var IncentiveInfo = /** @class */ (function () {
1643
2012
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isIncentiveInfo(res.data.bcs.type)) {
1644
2013
  throw new Error("object at id ".concat(id, " is not a IncentiveInfo object"));
1645
2014
  }
1646
- return [2 /*return*/, IncentiveInfo.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2015
+ return [2 /*return*/, IncentiveInfo.fromSuiObjectData(res.data)];
1647
2016
  }
1648
2017
  });
1649
2018
  });
1650
2019
  };
1651
- IncentiveInfo.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::IncentiveInfo";
2020
+ IncentiveInfo.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::IncentiveInfo");
1652
2021
  IncentiveInfo.$numTypeParams = 0;
2022
+ IncentiveInfo.$isPhantom = [];
1653
2023
  return IncentiveInfo;
1654
2024
  }());
1655
2025
  exports.IncentiveInfo = IncentiveInfo;
1656
2026
  /* ============================== LpUserShare =============================== */
1657
2027
  function isLpUserShare(type) {
1658
2028
  type = (0, util_1.compressSuiType)(type);
1659
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::LpUserShare";
2029
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::LpUserShare");
1660
2030
  }
1661
2031
  var LpUserShare = /** @class */ (function () {
1662
2032
  function LpUserShare(typeArgs, fields) {
2033
+ this.__StructClass = true;
1663
2034
  this.$typeName = LpUserShare.$typeName;
2035
+ this.$isPhantom = LpUserShare.$isPhantom;
1664
2036
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LpUserShare.$typeName], __read(typeArgs), false));
1665
2037
  this.$typeArgs = typeArgs;
1666
2038
  this.user = fields.user;
@@ -1678,6 +2050,7 @@ var LpUserShare = /** @class */ (function () {
1678
2050
  typeName: LpUserShare.$typeName,
1679
2051
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LpUserShare.$typeName], [], false)),
1680
2052
  typeArgs: [],
2053
+ isPhantom: LpUserShare.$isPhantom,
1681
2054
  reifiedTypeArgs: [],
1682
2055
  fromFields: function (fields) { return LpUserShare.fromFields(fields); },
1683
2056
  fromFieldsWithTypes: function (item) { return LpUserShare.fromFieldsWithTypes(item); },
@@ -1686,6 +2059,7 @@ var LpUserShare = /** @class */ (function () {
1686
2059
  fromJSONField: function (field) { return LpUserShare.fromJSONField(field); },
1687
2060
  fromJSON: function (json) { return LpUserShare.fromJSON(json); },
1688
2061
  fromSuiParsedData: function (content) { return LpUserShare.fromSuiParsedData(content); },
2062
+ fromSuiObjectData: function (content) { return LpUserShare.fromSuiObjectData(content); },
1689
2063
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1690
2064
  return [2 /*return*/, LpUserShare.fetch(client, id)];
1691
2065
  }); }); },
@@ -1715,7 +2089,10 @@ var LpUserShare = /** @class */ (function () {
1715
2089
  Object.defineProperty(LpUserShare, "bcs", {
1716
2090
  get: function () {
1717
2091
  return bcs_1.bcs.struct("LpUserShare", {
1718
- user: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
2092
+ user: bcs_1.bcs.bytes(32).transform({
2093
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2094
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2095
+ }),
1719
2096
  user_share_id: bcs_1.bcs.u64(),
1720
2097
  stake_ts_ms: bcs_1.bcs.u64(),
1721
2098
  total_shares: bcs_1.bcs.u64(),
@@ -1765,7 +2142,7 @@ var LpUserShare = /** @class */ (function () {
1765
2142
  stakeTsMs: this.stakeTsMs.toString(),
1766
2143
  totalShares: this.totalShares.toString(),
1767
2144
  activeShares: this.activeShares.toString(),
1768
- deactivatingShares: (0, reified_1.fieldToJSON)("vector<0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::DeactivatingShares>", this.deactivatingShares),
2145
+ deactivatingShares: (0, reified_1.fieldToJSON)("vector<".concat(DeactivatingShares.$typeName, ">"), this.deactivatingShares),
1769
2146
  lastIncentivePriceIndex: this.lastIncentivePriceIndex.toJSONField(),
1770
2147
  u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1771
2148
  };
@@ -1800,6 +2177,18 @@ var LpUserShare = /** @class */ (function () {
1800
2177
  }
1801
2178
  return LpUserShare.fromFieldsWithTypes(content);
1802
2179
  };
2180
+ LpUserShare.fromSuiObjectData = function (data) {
2181
+ if (data.bcs) {
2182
+ if (data.bcs.dataType !== "moveObject" || !isLpUserShare(data.bcs.type)) {
2183
+ throw new Error("object at is not a LpUserShare object");
2184
+ }
2185
+ return LpUserShare.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2186
+ }
2187
+ if (data.content) {
2188
+ return LpUserShare.fromSuiParsedData(data.content);
2189
+ }
2190
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2191
+ };
1803
2192
  LpUserShare.fetch = function (client, id) {
1804
2193
  return __awaiter(this, void 0, void 0, function () {
1805
2194
  var res;
@@ -1815,24 +2204,27 @@ var LpUserShare = /** @class */ (function () {
1815
2204
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLpUserShare(res.data.bcs.type)) {
1816
2205
  throw new Error("object at id ".concat(id, " is not a LpUserShare object"));
1817
2206
  }
1818
- return [2 /*return*/, LpUserShare.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2207
+ return [2 /*return*/, LpUserShare.fromSuiObjectData(res.data)];
1819
2208
  }
1820
2209
  });
1821
2210
  });
1822
2211
  };
1823
- LpUserShare.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::LpUserShare";
2212
+ LpUserShare.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::LpUserShare");
1824
2213
  LpUserShare.$numTypeParams = 0;
2214
+ LpUserShare.$isPhantom = [];
1825
2215
  return LpUserShare;
1826
2216
  }());
1827
2217
  exports.LpUserShare = LpUserShare;
1828
2218
  /* ============================== NewStakePoolEvent =============================== */
1829
2219
  function isNewStakePoolEvent(type) {
1830
2220
  type = (0, util_1.compressSuiType)(type);
1831
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::NewStakePoolEvent";
2221
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::NewStakePoolEvent");
1832
2222
  }
1833
2223
  var NewStakePoolEvent = /** @class */ (function () {
1834
2224
  function NewStakePoolEvent(typeArgs, fields) {
2225
+ this.__StructClass = true;
1835
2226
  this.$typeName = NewStakePoolEvent.$typeName;
2227
+ this.$isPhantom = NewStakePoolEvent.$isPhantom;
1836
2228
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStakePoolEvent.$typeName], __read(typeArgs), false));
1837
2229
  this.$typeArgs = typeArgs;
1838
2230
  this.sender = fields.sender;
@@ -1846,6 +2238,7 @@ var NewStakePoolEvent = /** @class */ (function () {
1846
2238
  typeName: NewStakePoolEvent.$typeName,
1847
2239
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStakePoolEvent.$typeName], [], false)),
1848
2240
  typeArgs: [],
2241
+ isPhantom: NewStakePoolEvent.$isPhantom,
1849
2242
  reifiedTypeArgs: [],
1850
2243
  fromFields: function (fields) { return NewStakePoolEvent.fromFields(fields); },
1851
2244
  fromFieldsWithTypes: function (item) { return NewStakePoolEvent.fromFieldsWithTypes(item); },
@@ -1854,6 +2247,7 @@ var NewStakePoolEvent = /** @class */ (function () {
1854
2247
  fromJSONField: function (field) { return NewStakePoolEvent.fromJSONField(field); },
1855
2248
  fromJSON: function (json) { return NewStakePoolEvent.fromJSON(json); },
1856
2249
  fromSuiParsedData: function (content) { return NewStakePoolEvent.fromSuiParsedData(content); },
2250
+ fromSuiObjectData: function (content) { return NewStakePoolEvent.fromSuiObjectData(content); },
1857
2251
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1858
2252
  return [2 /*return*/, NewStakePoolEvent.fetch(client, id)];
1859
2253
  }); }); },
@@ -1883,7 +2277,10 @@ var NewStakePoolEvent = /** @class */ (function () {
1883
2277
  Object.defineProperty(NewStakePoolEvent, "bcs", {
1884
2278
  get: function () {
1885
2279
  return bcs_1.bcs.struct("NewStakePoolEvent", {
1886
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
2280
+ sender: bcs_1.bcs.bytes(32).transform({
2281
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2282
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2283
+ }),
1887
2284
  stake_pool_info: StakePoolInfo.bcs,
1888
2285
  stake_pool_config: StakePoolConfig.bcs,
1889
2286
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
@@ -1948,6 +2345,18 @@ var NewStakePoolEvent = /** @class */ (function () {
1948
2345
  }
1949
2346
  return NewStakePoolEvent.fromFieldsWithTypes(content);
1950
2347
  };
2348
+ NewStakePoolEvent.fromSuiObjectData = function (data) {
2349
+ if (data.bcs) {
2350
+ if (data.bcs.dataType !== "moveObject" || !isNewStakePoolEvent(data.bcs.type)) {
2351
+ throw new Error("object at is not a NewStakePoolEvent object");
2352
+ }
2353
+ return NewStakePoolEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2354
+ }
2355
+ if (data.content) {
2356
+ return NewStakePoolEvent.fromSuiParsedData(data.content);
2357
+ }
2358
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2359
+ };
1951
2360
  NewStakePoolEvent.fetch = function (client, id) {
1952
2361
  return __awaiter(this, void 0, void 0, function () {
1953
2362
  var res;
@@ -1963,24 +2372,27 @@ var NewStakePoolEvent = /** @class */ (function () {
1963
2372
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewStakePoolEvent(res.data.bcs.type)) {
1964
2373
  throw new Error("object at id ".concat(id, " is not a NewStakePoolEvent object"));
1965
2374
  }
1966
- return [2 /*return*/, NewStakePoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2375
+ return [2 /*return*/, NewStakePoolEvent.fromSuiObjectData(res.data)];
1967
2376
  }
1968
2377
  });
1969
2378
  });
1970
2379
  };
1971
- NewStakePoolEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::NewStakePoolEvent";
2380
+ NewStakePoolEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::NewStakePoolEvent");
1972
2381
  NewStakePoolEvent.$numTypeParams = 0;
2382
+ NewStakePoolEvent.$isPhantom = [];
1973
2383
  return NewStakePoolEvent;
1974
2384
  }());
1975
2385
  exports.NewStakePoolEvent = NewStakePoolEvent;
1976
2386
  /* ============================== RemoveIncentiveTokenEvent =============================== */
1977
2387
  function isRemoveIncentiveTokenEvent(type) {
1978
2388
  type = (0, util_1.compressSuiType)(type);
1979
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::RemoveIncentiveTokenEvent";
2389
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::RemoveIncentiveTokenEvent");
1980
2390
  }
1981
2391
  var RemoveIncentiveTokenEvent = /** @class */ (function () {
1982
2392
  function RemoveIncentiveTokenEvent(typeArgs, fields) {
2393
+ this.__StructClass = true;
1983
2394
  this.$typeName = RemoveIncentiveTokenEvent.$typeName;
2395
+ this.$isPhantom = RemoveIncentiveTokenEvent.$isPhantom;
1984
2396
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveIncentiveTokenEvent.$typeName], __read(typeArgs), false));
1985
2397
  this.$typeArgs = typeArgs;
1986
2398
  this.sender = fields.sender;
@@ -1995,6 +2407,7 @@ var RemoveIncentiveTokenEvent = /** @class */ (function () {
1995
2407
  typeName: RemoveIncentiveTokenEvent.$typeName,
1996
2408
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveIncentiveTokenEvent.$typeName], [], false)),
1997
2409
  typeArgs: [],
2410
+ isPhantom: RemoveIncentiveTokenEvent.$isPhantom,
1998
2411
  reifiedTypeArgs: [],
1999
2412
  fromFields: function (fields) { return RemoveIncentiveTokenEvent.fromFields(fields); },
2000
2413
  fromFieldsWithTypes: function (item) { return RemoveIncentiveTokenEvent.fromFieldsWithTypes(item); },
@@ -2003,6 +2416,7 @@ var RemoveIncentiveTokenEvent = /** @class */ (function () {
2003
2416
  fromJSONField: function (field) { return RemoveIncentiveTokenEvent.fromJSONField(field); },
2004
2417
  fromJSON: function (json) { return RemoveIncentiveTokenEvent.fromJSON(json); },
2005
2418
  fromSuiParsedData: function (content) { return RemoveIncentiveTokenEvent.fromSuiParsedData(content); },
2419
+ fromSuiObjectData: function (content) { return RemoveIncentiveTokenEvent.fromSuiObjectData(content); },
2006
2420
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2007
2421
  return [2 /*return*/, RemoveIncentiveTokenEvent.fetch(client, id)];
2008
2422
  }); }); },
@@ -2032,7 +2446,10 @@ var RemoveIncentiveTokenEvent = /** @class */ (function () {
2032
2446
  Object.defineProperty(RemoveIncentiveTokenEvent, "bcs", {
2033
2447
  get: function () {
2034
2448
  return bcs_1.bcs.struct("RemoveIncentiveTokenEvent", {
2035
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
2449
+ sender: bcs_1.bcs.bytes(32).transform({
2450
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2451
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2452
+ }),
2036
2453
  index: bcs_1.bcs.u64(),
2037
2454
  incentive_token: structs_1.TypeName.bcs,
2038
2455
  incentive_balance_value: bcs_1.bcs.u64(),
@@ -2102,6 +2519,18 @@ var RemoveIncentiveTokenEvent = /** @class */ (function () {
2102
2519
  }
2103
2520
  return RemoveIncentiveTokenEvent.fromFieldsWithTypes(content);
2104
2521
  };
2522
+ RemoveIncentiveTokenEvent.fromSuiObjectData = function (data) {
2523
+ if (data.bcs) {
2524
+ if (data.bcs.dataType !== "moveObject" || !isRemoveIncentiveTokenEvent(data.bcs.type)) {
2525
+ throw new Error("object at is not a RemoveIncentiveTokenEvent object");
2526
+ }
2527
+ return RemoveIncentiveTokenEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2528
+ }
2529
+ if (data.content) {
2530
+ return RemoveIncentiveTokenEvent.fromSuiParsedData(data.content);
2531
+ }
2532
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2533
+ };
2105
2534
  RemoveIncentiveTokenEvent.fetch = function (client, id) {
2106
2535
  return __awaiter(this, void 0, void 0, function () {
2107
2536
  var res;
@@ -2117,24 +2546,27 @@ var RemoveIncentiveTokenEvent = /** @class */ (function () {
2117
2546
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveIncentiveTokenEvent(res.data.bcs.type)) {
2118
2547
  throw new Error("object at id ".concat(id, " is not a RemoveIncentiveTokenEvent object"));
2119
2548
  }
2120
- return [2 /*return*/, RemoveIncentiveTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2549
+ return [2 /*return*/, RemoveIncentiveTokenEvent.fromSuiObjectData(res.data)];
2121
2550
  }
2122
2551
  });
2123
2552
  });
2124
2553
  };
2125
- RemoveIncentiveTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::RemoveIncentiveTokenEvent";
2554
+ RemoveIncentiveTokenEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::RemoveIncentiveTokenEvent");
2126
2555
  RemoveIncentiveTokenEvent.$numTypeParams = 0;
2556
+ RemoveIncentiveTokenEvent.$isPhantom = [];
2127
2557
  return RemoveIncentiveTokenEvent;
2128
2558
  }());
2129
2559
  exports.RemoveIncentiveTokenEvent = RemoveIncentiveTokenEvent;
2130
2560
  /* ============================== StakeEvent =============================== */
2131
2561
  function isStakeEvent(type) {
2132
2562
  type = (0, util_1.compressSuiType)(type);
2133
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakeEvent";
2563
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::StakeEvent");
2134
2564
  }
2135
2565
  var StakeEvent = /** @class */ (function () {
2136
2566
  function StakeEvent(typeArgs, fields) {
2567
+ this.__StructClass = true;
2137
2568
  this.$typeName = StakeEvent.$typeName;
2569
+ this.$isPhantom = StakeEvent.$isPhantom;
2138
2570
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakeEvent.$typeName], __read(typeArgs), false));
2139
2571
  this.$typeArgs = typeArgs;
2140
2572
  this.sender = fields.sender;
@@ -2152,6 +2584,7 @@ var StakeEvent = /** @class */ (function () {
2152
2584
  typeName: StakeEvent.$typeName,
2153
2585
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakeEvent.$typeName], [], false)),
2154
2586
  typeArgs: [],
2587
+ isPhantom: StakeEvent.$isPhantom,
2155
2588
  reifiedTypeArgs: [],
2156
2589
  fromFields: function (fields) { return StakeEvent.fromFields(fields); },
2157
2590
  fromFieldsWithTypes: function (item) { return StakeEvent.fromFieldsWithTypes(item); },
@@ -2160,6 +2593,7 @@ var StakeEvent = /** @class */ (function () {
2160
2593
  fromJSONField: function (field) { return StakeEvent.fromJSONField(field); },
2161
2594
  fromJSON: function (json) { return StakeEvent.fromJSON(json); },
2162
2595
  fromSuiParsedData: function (content) { return StakeEvent.fromSuiParsedData(content); },
2596
+ fromSuiObjectData: function (content) { return StakeEvent.fromSuiObjectData(content); },
2163
2597
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2164
2598
  return [2 /*return*/, StakeEvent.fetch(client, id)];
2165
2599
  }); }); },
@@ -2189,7 +2623,10 @@ var StakeEvent = /** @class */ (function () {
2189
2623
  Object.defineProperty(StakeEvent, "bcs", {
2190
2624
  get: function () {
2191
2625
  return bcs_1.bcs.struct("StakeEvent", {
2192
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
2626
+ sender: bcs_1.bcs.bytes(32).transform({
2627
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2628
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2629
+ }),
2193
2630
  index: bcs_1.bcs.u64(),
2194
2631
  lp_token_type: structs_1.TypeName.bcs,
2195
2632
  stake_amount: bcs_1.bcs.u64(),
@@ -2274,6 +2711,18 @@ var StakeEvent = /** @class */ (function () {
2274
2711
  }
2275
2712
  return StakeEvent.fromFieldsWithTypes(content);
2276
2713
  };
2714
+ StakeEvent.fromSuiObjectData = function (data) {
2715
+ if (data.bcs) {
2716
+ if (data.bcs.dataType !== "moveObject" || !isStakeEvent(data.bcs.type)) {
2717
+ throw new Error("object at is not a StakeEvent object");
2718
+ }
2719
+ return StakeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2720
+ }
2721
+ if (data.content) {
2722
+ return StakeEvent.fromSuiParsedData(data.content);
2723
+ }
2724
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2725
+ };
2277
2726
  StakeEvent.fetch = function (client, id) {
2278
2727
  return __awaiter(this, void 0, void 0, function () {
2279
2728
  var res;
@@ -2289,24 +2738,27 @@ var StakeEvent = /** @class */ (function () {
2289
2738
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakeEvent(res.data.bcs.type)) {
2290
2739
  throw new Error("object at id ".concat(id, " is not a StakeEvent object"));
2291
2740
  }
2292
- return [2 /*return*/, StakeEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2741
+ return [2 /*return*/, StakeEvent.fromSuiObjectData(res.data)];
2293
2742
  }
2294
2743
  });
2295
2744
  });
2296
2745
  };
2297
- StakeEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakeEvent";
2746
+ StakeEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::StakeEvent");
2298
2747
  StakeEvent.$numTypeParams = 0;
2748
+ StakeEvent.$isPhantom = [];
2299
2749
  return StakeEvent;
2300
2750
  }());
2301
2751
  exports.StakeEvent = StakeEvent;
2302
2752
  /* ============================== StakePool =============================== */
2303
2753
  function isStakePool(type) {
2304
2754
  type = (0, util_1.compressSuiType)(type);
2305
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePool";
2755
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::StakePool");
2306
2756
  }
2307
2757
  var StakePool = /** @class */ (function () {
2308
2758
  function StakePool(typeArgs, fields) {
2759
+ this.__StructClass = true;
2309
2760
  this.$typeName = StakePool.$typeName;
2761
+ this.$isPhantom = StakePool.$isPhantom;
2310
2762
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakePool.$typeName], __read(typeArgs), false));
2311
2763
  this.$typeArgs = typeArgs;
2312
2764
  this.id = fields.id;
@@ -2321,6 +2773,7 @@ var StakePool = /** @class */ (function () {
2321
2773
  typeName: StakePool.$typeName,
2322
2774
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakePool.$typeName], [], false)),
2323
2775
  typeArgs: [],
2776
+ isPhantom: StakePool.$isPhantom,
2324
2777
  reifiedTypeArgs: [],
2325
2778
  fromFields: function (fields) { return StakePool.fromFields(fields); },
2326
2779
  fromFieldsWithTypes: function (item) { return StakePool.fromFieldsWithTypes(item); },
@@ -2329,6 +2782,7 @@ var StakePool = /** @class */ (function () {
2329
2782
  fromJSONField: function (field) { return StakePool.fromJSONField(field); },
2330
2783
  fromJSON: function (json) { return StakePool.fromJSON(json); },
2331
2784
  fromSuiParsedData: function (content) { return StakePool.fromSuiParsedData(content); },
2785
+ fromSuiObjectData: function (content) { return StakePool.fromSuiObjectData(content); },
2332
2786
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2333
2787
  return [2 /*return*/, StakePool.fetch(client, id)];
2334
2788
  }); }); },
@@ -2397,7 +2851,7 @@ var StakePool = /** @class */ (function () {
2397
2851
  id: this.id,
2398
2852
  poolInfo: this.poolInfo.toJSONField(),
2399
2853
  config: this.config.toJSONField(),
2400
- incentives: (0, reified_1.fieldToJSON)("vector<0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::Incentive>", this.incentives),
2854
+ incentives: (0, reified_1.fieldToJSON)("vector<".concat(Incentive.$typeName, ">"), this.incentives),
2401
2855
  u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
2402
2856
  };
2403
2857
  };
@@ -2428,6 +2882,18 @@ var StakePool = /** @class */ (function () {
2428
2882
  }
2429
2883
  return StakePool.fromFieldsWithTypes(content);
2430
2884
  };
2885
+ StakePool.fromSuiObjectData = function (data) {
2886
+ if (data.bcs) {
2887
+ if (data.bcs.dataType !== "moveObject" || !isStakePool(data.bcs.type)) {
2888
+ throw new Error("object at is not a StakePool object");
2889
+ }
2890
+ return StakePool.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2891
+ }
2892
+ if (data.content) {
2893
+ return StakePool.fromSuiParsedData(data.content);
2894
+ }
2895
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2896
+ };
2431
2897
  StakePool.fetch = function (client, id) {
2432
2898
  return __awaiter(this, void 0, void 0, function () {
2433
2899
  var res;
@@ -2443,24 +2909,27 @@ var StakePool = /** @class */ (function () {
2443
2909
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakePool(res.data.bcs.type)) {
2444
2910
  throw new Error("object at id ".concat(id, " is not a StakePool object"));
2445
2911
  }
2446
- return [2 /*return*/, StakePool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2912
+ return [2 /*return*/, StakePool.fromSuiObjectData(res.data)];
2447
2913
  }
2448
2914
  });
2449
2915
  });
2450
2916
  };
2451
- StakePool.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePool";
2917
+ StakePool.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::StakePool");
2452
2918
  StakePool.$numTypeParams = 0;
2919
+ StakePool.$isPhantom = [];
2453
2920
  return StakePool;
2454
2921
  }());
2455
2922
  exports.StakePool = StakePool;
2456
2923
  /* ============================== StakePoolConfig =============================== */
2457
2924
  function isStakePoolConfig(type) {
2458
2925
  type = (0, util_1.compressSuiType)(type);
2459
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolConfig";
2926
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::StakePoolConfig");
2460
2927
  }
2461
2928
  var StakePoolConfig = /** @class */ (function () {
2462
2929
  function StakePoolConfig(typeArgs, fields) {
2930
+ this.__StructClass = true;
2463
2931
  this.$typeName = StakePoolConfig.$typeName;
2932
+ this.$isPhantom = StakePoolConfig.$isPhantom;
2464
2933
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolConfig.$typeName], __read(typeArgs), false));
2465
2934
  this.$typeArgs = typeArgs;
2466
2935
  this.unlockCountdownTsMs = fields.unlockCountdownTsMs;
@@ -2472,6 +2941,7 @@ var StakePoolConfig = /** @class */ (function () {
2472
2941
  typeName: StakePoolConfig.$typeName,
2473
2942
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolConfig.$typeName], [], false)),
2474
2943
  typeArgs: [],
2944
+ isPhantom: StakePoolConfig.$isPhantom,
2475
2945
  reifiedTypeArgs: [],
2476
2946
  fromFields: function (fields) { return StakePoolConfig.fromFields(fields); },
2477
2947
  fromFieldsWithTypes: function (item) { return StakePoolConfig.fromFieldsWithTypes(item); },
@@ -2480,6 +2950,7 @@ var StakePoolConfig = /** @class */ (function () {
2480
2950
  fromJSONField: function (field) { return StakePoolConfig.fromJSONField(field); },
2481
2951
  fromJSON: function (json) { return StakePoolConfig.fromJSON(json); },
2482
2952
  fromSuiParsedData: function (content) { return StakePoolConfig.fromSuiParsedData(content); },
2953
+ fromSuiObjectData: function (content) { return StakePoolConfig.fromSuiObjectData(content); },
2483
2954
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2484
2955
  return [2 /*return*/, StakePoolConfig.fetch(client, id)];
2485
2956
  }); }); },
@@ -2564,6 +3035,18 @@ var StakePoolConfig = /** @class */ (function () {
2564
3035
  }
2565
3036
  return StakePoolConfig.fromFieldsWithTypes(content);
2566
3037
  };
3038
+ StakePoolConfig.fromSuiObjectData = function (data) {
3039
+ if (data.bcs) {
3040
+ if (data.bcs.dataType !== "moveObject" || !isStakePoolConfig(data.bcs.type)) {
3041
+ throw new Error("object at is not a StakePoolConfig object");
3042
+ }
3043
+ return StakePoolConfig.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3044
+ }
3045
+ if (data.content) {
3046
+ return StakePoolConfig.fromSuiParsedData(data.content);
3047
+ }
3048
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3049
+ };
2567
3050
  StakePoolConfig.fetch = function (client, id) {
2568
3051
  return __awaiter(this, void 0, void 0, function () {
2569
3052
  var res;
@@ -2579,24 +3062,27 @@ var StakePoolConfig = /** @class */ (function () {
2579
3062
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakePoolConfig(res.data.bcs.type)) {
2580
3063
  throw new Error("object at id ".concat(id, " is not a StakePoolConfig object"));
2581
3064
  }
2582
- return [2 /*return*/, StakePoolConfig.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3065
+ return [2 /*return*/, StakePoolConfig.fromSuiObjectData(res.data)];
2583
3066
  }
2584
3067
  });
2585
3068
  });
2586
3069
  };
2587
- StakePoolConfig.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolConfig";
3070
+ StakePoolConfig.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::StakePoolConfig");
2588
3071
  StakePoolConfig.$numTypeParams = 0;
3072
+ StakePoolConfig.$isPhantom = [];
2589
3073
  return StakePoolConfig;
2590
3074
  }());
2591
3075
  exports.StakePoolConfig = StakePoolConfig;
2592
3076
  /* ============================== StakePoolInfo =============================== */
2593
3077
  function isStakePoolInfo(type) {
2594
3078
  type = (0, util_1.compressSuiType)(type);
2595
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolInfo";
3079
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::StakePoolInfo");
2596
3080
  }
2597
3081
  var StakePoolInfo = /** @class */ (function () {
2598
3082
  function StakePoolInfo(typeArgs, fields) {
3083
+ this.__StructClass = true;
2599
3084
  this.$typeName = StakePoolInfo.$typeName;
3085
+ this.$isPhantom = StakePoolInfo.$isPhantom;
2600
3086
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolInfo.$typeName], __read(typeArgs), false));
2601
3087
  this.$typeArgs = typeArgs;
2602
3088
  this.stakeToken = fields.stakeToken;
@@ -2612,6 +3098,7 @@ var StakePoolInfo = /** @class */ (function () {
2612
3098
  typeName: StakePoolInfo.$typeName,
2613
3099
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolInfo.$typeName], [], false)),
2614
3100
  typeArgs: [],
3101
+ isPhantom: StakePoolInfo.$isPhantom,
2615
3102
  reifiedTypeArgs: [],
2616
3103
  fromFields: function (fields) { return StakePoolInfo.fromFields(fields); },
2617
3104
  fromFieldsWithTypes: function (item) { return StakePoolInfo.fromFieldsWithTypes(item); },
@@ -2620,6 +3107,7 @@ var StakePoolInfo = /** @class */ (function () {
2620
3107
  fromJSONField: function (field) { return StakePoolInfo.fromJSONField(field); },
2621
3108
  fromJSON: function (json) { return StakePoolInfo.fromJSON(json); },
2622
3109
  fromSuiParsedData: function (content) { return StakePoolInfo.fromSuiParsedData(content); },
3110
+ fromSuiObjectData: function (content) { return StakePoolInfo.fromSuiObjectData(content); },
2623
3111
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2624
3112
  return [2 /*return*/, StakePoolInfo.fetch(client, id)];
2625
3113
  }); }); },
@@ -2724,6 +3212,18 @@ var StakePoolInfo = /** @class */ (function () {
2724
3212
  }
2725
3213
  return StakePoolInfo.fromFieldsWithTypes(content);
2726
3214
  };
3215
+ StakePoolInfo.fromSuiObjectData = function (data) {
3216
+ if (data.bcs) {
3217
+ if (data.bcs.dataType !== "moveObject" || !isStakePoolInfo(data.bcs.type)) {
3218
+ throw new Error("object at is not a StakePoolInfo object");
3219
+ }
3220
+ return StakePoolInfo.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3221
+ }
3222
+ if (data.content) {
3223
+ return StakePoolInfo.fromSuiParsedData(data.content);
3224
+ }
3225
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3226
+ };
2727
3227
  StakePoolInfo.fetch = function (client, id) {
2728
3228
  return __awaiter(this, void 0, void 0, function () {
2729
3229
  var res;
@@ -2739,24 +3239,27 @@ var StakePoolInfo = /** @class */ (function () {
2739
3239
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakePoolInfo(res.data.bcs.type)) {
2740
3240
  throw new Error("object at id ".concat(id, " is not a StakePoolInfo object"));
2741
3241
  }
2742
- return [2 /*return*/, StakePoolInfo.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3242
+ return [2 /*return*/, StakePoolInfo.fromSuiObjectData(res.data)];
2743
3243
  }
2744
3244
  });
2745
3245
  });
2746
3246
  };
2747
- StakePoolInfo.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolInfo";
3247
+ StakePoolInfo.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::StakePoolInfo");
2748
3248
  StakePoolInfo.$numTypeParams = 0;
3249
+ StakePoolInfo.$isPhantom = [];
2749
3250
  return StakePoolInfo;
2750
3251
  }());
2751
3252
  exports.StakePoolInfo = StakePoolInfo;
2752
3253
  /* ============================== StakePoolRegistry =============================== */
2753
3254
  function isStakePoolRegistry(type) {
2754
3255
  type = (0, util_1.compressSuiType)(type);
2755
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolRegistry";
3256
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::StakePoolRegistry");
2756
3257
  }
2757
3258
  var StakePoolRegistry = /** @class */ (function () {
2758
3259
  function StakePoolRegistry(typeArgs, fields) {
3260
+ this.__StructClass = true;
2759
3261
  this.$typeName = StakePoolRegistry.$typeName;
3262
+ this.$isPhantom = StakePoolRegistry.$isPhantom;
2760
3263
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolRegistry.$typeName], __read(typeArgs), false));
2761
3264
  this.$typeArgs = typeArgs;
2762
3265
  this.id = fields.id;
@@ -2768,6 +3271,7 @@ var StakePoolRegistry = /** @class */ (function () {
2768
3271
  typeName: StakePoolRegistry.$typeName,
2769
3272
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StakePoolRegistry.$typeName], [], false)),
2770
3273
  typeArgs: [],
3274
+ isPhantom: StakePoolRegistry.$isPhantom,
2771
3275
  reifiedTypeArgs: [],
2772
3276
  fromFields: function (fields) { return StakePoolRegistry.fromFields(fields); },
2773
3277
  fromFieldsWithTypes: function (item) { return StakePoolRegistry.fromFieldsWithTypes(item); },
@@ -2776,6 +3280,7 @@ var StakePoolRegistry = /** @class */ (function () {
2776
3280
  fromJSONField: function (field) { return StakePoolRegistry.fromJSONField(field); },
2777
3281
  fromJSON: function (json) { return StakePoolRegistry.fromJSON(json); },
2778
3282
  fromSuiParsedData: function (content) { return StakePoolRegistry.fromSuiParsedData(content); },
3283
+ fromSuiObjectData: function (content) { return StakePoolRegistry.fromSuiObjectData(content); },
2779
3284
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2780
3285
  return [2 /*return*/, StakePoolRegistry.fetch(client, id)];
2781
3286
  }); }); },
@@ -2860,6 +3365,18 @@ var StakePoolRegistry = /** @class */ (function () {
2860
3365
  }
2861
3366
  return StakePoolRegistry.fromFieldsWithTypes(content);
2862
3367
  };
3368
+ StakePoolRegistry.fromSuiObjectData = function (data) {
3369
+ if (data.bcs) {
3370
+ if (data.bcs.dataType !== "moveObject" || !isStakePoolRegistry(data.bcs.type)) {
3371
+ throw new Error("object at is not a StakePoolRegistry object");
3372
+ }
3373
+ return StakePoolRegistry.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3374
+ }
3375
+ if (data.content) {
3376
+ return StakePoolRegistry.fromSuiParsedData(data.content);
3377
+ }
3378
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3379
+ };
2863
3380
  StakePoolRegistry.fetch = function (client, id) {
2864
3381
  return __awaiter(this, void 0, void 0, function () {
2865
3382
  var res;
@@ -2875,24 +3392,27 @@ var StakePoolRegistry = /** @class */ (function () {
2875
3392
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStakePoolRegistry(res.data.bcs.type)) {
2876
3393
  throw new Error("object at id ".concat(id, " is not a StakePoolRegistry object"));
2877
3394
  }
2878
- return [2 /*return*/, StakePoolRegistry.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3395
+ return [2 /*return*/, StakePoolRegistry.fromSuiObjectData(res.data)];
2879
3396
  }
2880
3397
  });
2881
3398
  });
2882
3399
  };
2883
- StakePoolRegistry.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::StakePoolRegistry";
3400
+ StakePoolRegistry.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::StakePoolRegistry");
2884
3401
  StakePoolRegistry.$numTypeParams = 0;
3402
+ StakePoolRegistry.$isPhantom = [];
2885
3403
  return StakePoolRegistry;
2886
3404
  }());
2887
3405
  exports.StakePoolRegistry = StakePoolRegistry;
2888
3406
  /* ============================== UnstakeEvent =============================== */
2889
3407
  function isUnstakeEvent(type) {
2890
3408
  type = (0, util_1.compressSuiType)(type);
2891
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UnstakeEvent";
3409
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::UnstakeEvent");
2892
3410
  }
2893
3411
  var UnstakeEvent = /** @class */ (function () {
2894
3412
  function UnstakeEvent(typeArgs, fields) {
3413
+ this.__StructClass = true;
2895
3414
  this.$typeName = UnstakeEvent.$typeName;
3415
+ this.$isPhantom = UnstakeEvent.$isPhantom;
2896
3416
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeEvent.$typeName], __read(typeArgs), false));
2897
3417
  this.$typeArgs = typeArgs;
2898
3418
  this.sender = fields.sender;
@@ -2909,6 +3429,7 @@ var UnstakeEvent = /** @class */ (function () {
2909
3429
  typeName: UnstakeEvent.$typeName,
2910
3430
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UnstakeEvent.$typeName], [], false)),
2911
3431
  typeArgs: [],
3432
+ isPhantom: UnstakeEvent.$isPhantom,
2912
3433
  reifiedTypeArgs: [],
2913
3434
  fromFields: function (fields) { return UnstakeEvent.fromFields(fields); },
2914
3435
  fromFieldsWithTypes: function (item) { return UnstakeEvent.fromFieldsWithTypes(item); },
@@ -2917,6 +3438,7 @@ var UnstakeEvent = /** @class */ (function () {
2917
3438
  fromJSONField: function (field) { return UnstakeEvent.fromJSONField(field); },
2918
3439
  fromJSON: function (json) { return UnstakeEvent.fromJSON(json); },
2919
3440
  fromSuiParsedData: function (content) { return UnstakeEvent.fromSuiParsedData(content); },
3441
+ fromSuiObjectData: function (content) { return UnstakeEvent.fromSuiObjectData(content); },
2920
3442
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2921
3443
  return [2 /*return*/, UnstakeEvent.fetch(client, id)];
2922
3444
  }); }); },
@@ -2946,7 +3468,10 @@ var UnstakeEvent = /** @class */ (function () {
2946
3468
  Object.defineProperty(UnstakeEvent, "bcs", {
2947
3469
  get: function () {
2948
3470
  return bcs_1.bcs.struct("UnstakeEvent", {
2949
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
3471
+ sender: bcs_1.bcs.bytes(32).transform({
3472
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
3473
+ output: function (val) { return (0, utils_1.toHEX)(val); },
3474
+ }),
2950
3475
  index: bcs_1.bcs.u64(),
2951
3476
  lp_token_type: structs_1.TypeName.bcs,
2952
3477
  user_share_id: bcs_1.bcs.u64(),
@@ -3026,6 +3551,18 @@ var UnstakeEvent = /** @class */ (function () {
3026
3551
  }
3027
3552
  return UnstakeEvent.fromFieldsWithTypes(content);
3028
3553
  };
3554
+ UnstakeEvent.fromSuiObjectData = function (data) {
3555
+ if (data.bcs) {
3556
+ if (data.bcs.dataType !== "moveObject" || !isUnstakeEvent(data.bcs.type)) {
3557
+ throw new Error("object at is not a UnstakeEvent object");
3558
+ }
3559
+ return UnstakeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3560
+ }
3561
+ if (data.content) {
3562
+ return UnstakeEvent.fromSuiParsedData(data.content);
3563
+ }
3564
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3565
+ };
3029
3566
  UnstakeEvent.fetch = function (client, id) {
3030
3567
  return __awaiter(this, void 0, void 0, function () {
3031
3568
  var res;
@@ -3041,24 +3578,27 @@ var UnstakeEvent = /** @class */ (function () {
3041
3578
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUnstakeEvent(res.data.bcs.type)) {
3042
3579
  throw new Error("object at id ".concat(id, " is not a UnstakeEvent object"));
3043
3580
  }
3044
- return [2 /*return*/, UnstakeEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3581
+ return [2 /*return*/, UnstakeEvent.fromSuiObjectData(res.data)];
3045
3582
  }
3046
3583
  });
3047
3584
  });
3048
3585
  };
3049
- UnstakeEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UnstakeEvent";
3586
+ UnstakeEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::UnstakeEvent");
3050
3587
  UnstakeEvent.$numTypeParams = 0;
3588
+ UnstakeEvent.$isPhantom = [];
3051
3589
  return UnstakeEvent;
3052
3590
  }());
3053
3591
  exports.UnstakeEvent = UnstakeEvent;
3054
3592
  /* ============================== UpdateIncentiveConfigEvent =============================== */
3055
3593
  function isUpdateIncentiveConfigEvent(type) {
3056
3594
  type = (0, util_1.compressSuiType)(type);
3057
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UpdateIncentiveConfigEvent";
3595
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::UpdateIncentiveConfigEvent");
3058
3596
  }
3059
3597
  var UpdateIncentiveConfigEvent = /** @class */ (function () {
3060
3598
  function UpdateIncentiveConfigEvent(typeArgs, fields) {
3599
+ this.__StructClass = true;
3061
3600
  this.$typeName = UpdateIncentiveConfigEvent.$typeName;
3601
+ this.$isPhantom = UpdateIncentiveConfigEvent.$isPhantom;
3062
3602
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateIncentiveConfigEvent.$typeName], __read(typeArgs), false));
3063
3603
  this.$typeArgs = typeArgs;
3064
3604
  this.sender = fields.sender;
@@ -3073,6 +3613,7 @@ var UpdateIncentiveConfigEvent = /** @class */ (function () {
3073
3613
  typeName: UpdateIncentiveConfigEvent.$typeName,
3074
3614
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateIncentiveConfigEvent.$typeName], [], false)),
3075
3615
  typeArgs: [],
3616
+ isPhantom: UpdateIncentiveConfigEvent.$isPhantom,
3076
3617
  reifiedTypeArgs: [],
3077
3618
  fromFields: function (fields) { return UpdateIncentiveConfigEvent.fromFields(fields); },
3078
3619
  fromFieldsWithTypes: function (item) { return UpdateIncentiveConfigEvent.fromFieldsWithTypes(item); },
@@ -3081,6 +3622,7 @@ var UpdateIncentiveConfigEvent = /** @class */ (function () {
3081
3622
  fromJSONField: function (field) { return UpdateIncentiveConfigEvent.fromJSONField(field); },
3082
3623
  fromJSON: function (json) { return UpdateIncentiveConfigEvent.fromJSON(json); },
3083
3624
  fromSuiParsedData: function (content) { return UpdateIncentiveConfigEvent.fromSuiParsedData(content); },
3625
+ fromSuiObjectData: function (content) { return UpdateIncentiveConfigEvent.fromSuiObjectData(content); },
3084
3626
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3085
3627
  return [2 /*return*/, UpdateIncentiveConfigEvent.fetch(client, id)];
3086
3628
  }); }); },
@@ -3110,7 +3652,10 @@ var UpdateIncentiveConfigEvent = /** @class */ (function () {
3110
3652
  Object.defineProperty(UpdateIncentiveConfigEvent, "bcs", {
3111
3653
  get: function () {
3112
3654
  return bcs_1.bcs.struct("UpdateIncentiveConfigEvent", {
3113
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
3655
+ sender: bcs_1.bcs.bytes(32).transform({
3656
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
3657
+ output: function (val) { return (0, utils_1.toHEX)(val); },
3658
+ }),
3114
3659
  index: bcs_1.bcs.u64(),
3115
3660
  previous_incentive_config: IncentiveConfig.bcs,
3116
3661
  new_incentive_config: IncentiveConfig.bcs,
@@ -3180,6 +3725,18 @@ var UpdateIncentiveConfigEvent = /** @class */ (function () {
3180
3725
  }
3181
3726
  return UpdateIncentiveConfigEvent.fromFieldsWithTypes(content);
3182
3727
  };
3728
+ UpdateIncentiveConfigEvent.fromSuiObjectData = function (data) {
3729
+ if (data.bcs) {
3730
+ if (data.bcs.dataType !== "moveObject" || !isUpdateIncentiveConfigEvent(data.bcs.type)) {
3731
+ throw new Error("object at is not a UpdateIncentiveConfigEvent object");
3732
+ }
3733
+ return UpdateIncentiveConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3734
+ }
3735
+ if (data.content) {
3736
+ return UpdateIncentiveConfigEvent.fromSuiParsedData(data.content);
3737
+ }
3738
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3739
+ };
3183
3740
  UpdateIncentiveConfigEvent.fetch = function (client, id) {
3184
3741
  return __awaiter(this, void 0, void 0, function () {
3185
3742
  var res;
@@ -3195,24 +3752,27 @@ var UpdateIncentiveConfigEvent = /** @class */ (function () {
3195
3752
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateIncentiveConfigEvent(res.data.bcs.type)) {
3196
3753
  throw new Error("object at id ".concat(id, " is not a UpdateIncentiveConfigEvent object"));
3197
3754
  }
3198
- return [2 /*return*/, UpdateIncentiveConfigEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3755
+ return [2 /*return*/, UpdateIncentiveConfigEvent.fromSuiObjectData(res.data)];
3199
3756
  }
3200
3757
  });
3201
3758
  });
3202
3759
  };
3203
- UpdateIncentiveConfigEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UpdateIncentiveConfigEvent";
3760
+ UpdateIncentiveConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::UpdateIncentiveConfigEvent");
3204
3761
  UpdateIncentiveConfigEvent.$numTypeParams = 0;
3762
+ UpdateIncentiveConfigEvent.$isPhantom = [];
3205
3763
  return UpdateIncentiveConfigEvent;
3206
3764
  }());
3207
3765
  exports.UpdateIncentiveConfigEvent = UpdateIncentiveConfigEvent;
3208
3766
  /* ============================== UpdateUnlockCountdownTsMsEvent =============================== */
3209
3767
  function isUpdateUnlockCountdownTsMsEvent(type) {
3210
3768
  type = (0, util_1.compressSuiType)(type);
3211
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UpdateUnlockCountdownTsMsEvent";
3769
+ return type === "".concat(index_1.PKG_V1, "::stake_pool::UpdateUnlockCountdownTsMsEvent");
3212
3770
  }
3213
3771
  var UpdateUnlockCountdownTsMsEvent = /** @class */ (function () {
3214
3772
  function UpdateUnlockCountdownTsMsEvent(typeArgs, fields) {
3773
+ this.__StructClass = true;
3215
3774
  this.$typeName = UpdateUnlockCountdownTsMsEvent.$typeName;
3775
+ this.$isPhantom = UpdateUnlockCountdownTsMsEvent.$isPhantom;
3216
3776
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateUnlockCountdownTsMsEvent.$typeName], __read(typeArgs), false));
3217
3777
  this.$typeArgs = typeArgs;
3218
3778
  this.sender = fields.sender;
@@ -3227,6 +3787,7 @@ var UpdateUnlockCountdownTsMsEvent = /** @class */ (function () {
3227
3787
  typeName: UpdateUnlockCountdownTsMsEvent.$typeName,
3228
3788
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateUnlockCountdownTsMsEvent.$typeName], [], false)),
3229
3789
  typeArgs: [],
3790
+ isPhantom: UpdateUnlockCountdownTsMsEvent.$isPhantom,
3230
3791
  reifiedTypeArgs: [],
3231
3792
  fromFields: function (fields) { return UpdateUnlockCountdownTsMsEvent.fromFields(fields); },
3232
3793
  fromFieldsWithTypes: function (item) { return UpdateUnlockCountdownTsMsEvent.fromFieldsWithTypes(item); },
@@ -3235,6 +3796,7 @@ var UpdateUnlockCountdownTsMsEvent = /** @class */ (function () {
3235
3796
  fromJSONField: function (field) { return UpdateUnlockCountdownTsMsEvent.fromJSONField(field); },
3236
3797
  fromJSON: function (json) { return UpdateUnlockCountdownTsMsEvent.fromJSON(json); },
3237
3798
  fromSuiParsedData: function (content) { return UpdateUnlockCountdownTsMsEvent.fromSuiParsedData(content); },
3799
+ fromSuiObjectData: function (content) { return UpdateUnlockCountdownTsMsEvent.fromSuiObjectData(content); },
3238
3800
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3239
3801
  return [2 /*return*/, UpdateUnlockCountdownTsMsEvent.fetch(client, id)];
3240
3802
  }); }); },
@@ -3264,7 +3826,10 @@ var UpdateUnlockCountdownTsMsEvent = /** @class */ (function () {
3264
3826
  Object.defineProperty(UpdateUnlockCountdownTsMsEvent, "bcs", {
3265
3827
  get: function () {
3266
3828
  return bcs_1.bcs.struct("UpdateUnlockCountdownTsMsEvent", {
3267
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
3829
+ sender: bcs_1.bcs.bytes(32).transform({
3830
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
3831
+ output: function (val) { return (0, utils_1.toHEX)(val); },
3832
+ }),
3268
3833
  index: bcs_1.bcs.u64(),
3269
3834
  previous_unlock_countdown_ts_ms: bcs_1.bcs.u64(),
3270
3835
  new_unlock_countdown_ts_ms: bcs_1.bcs.u64(),
@@ -3334,6 +3899,18 @@ var UpdateUnlockCountdownTsMsEvent = /** @class */ (function () {
3334
3899
  }
3335
3900
  return UpdateUnlockCountdownTsMsEvent.fromFieldsWithTypes(content);
3336
3901
  };
3902
+ UpdateUnlockCountdownTsMsEvent.fromSuiObjectData = function (data) {
3903
+ if (data.bcs) {
3904
+ if (data.bcs.dataType !== "moveObject" || !isUpdateUnlockCountdownTsMsEvent(data.bcs.type)) {
3905
+ throw new Error("object at is not a UpdateUnlockCountdownTsMsEvent object");
3906
+ }
3907
+ return UpdateUnlockCountdownTsMsEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3908
+ }
3909
+ if (data.content) {
3910
+ return UpdateUnlockCountdownTsMsEvent.fromSuiParsedData(data.content);
3911
+ }
3912
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3913
+ };
3337
3914
  UpdateUnlockCountdownTsMsEvent.fetch = function (client, id) {
3338
3915
  return __awaiter(this, void 0, void 0, function () {
3339
3916
  var res;
@@ -3349,167 +3926,14 @@ var UpdateUnlockCountdownTsMsEvent = /** @class */ (function () {
3349
3926
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateUnlockCountdownTsMsEvent(res.data.bcs.type)) {
3350
3927
  throw new Error("object at id ".concat(id, " is not a UpdateUnlockCountdownTsMsEvent object"));
3351
3928
  }
3352
- return [2 /*return*/, UpdateUnlockCountdownTsMsEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3929
+ return [2 /*return*/, UpdateUnlockCountdownTsMsEvent.fromSuiObjectData(res.data)];
3353
3930
  }
3354
3931
  });
3355
3932
  });
3356
3933
  };
3357
- UpdateUnlockCountdownTsMsEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::UpdateUnlockCountdownTsMsEvent";
3934
+ UpdateUnlockCountdownTsMsEvent.$typeName = "".concat(index_1.PKG_V1, "::stake_pool::UpdateUnlockCountdownTsMsEvent");
3358
3935
  UpdateUnlockCountdownTsMsEvent.$numTypeParams = 0;
3936
+ UpdateUnlockCountdownTsMsEvent.$isPhantom = [];
3359
3937
  return UpdateUnlockCountdownTsMsEvent;
3360
3938
  }());
3361
3939
  exports.UpdateUnlockCountdownTsMsEvent = UpdateUnlockCountdownTsMsEvent;
3362
- /* ============================== WithdrawIncentiveEvent =============================== */
3363
- function isWithdrawIncentiveEvent(type) {
3364
- type = (0, util_1.compressSuiType)(type);
3365
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::WithdrawIncentiveEvent";
3366
- }
3367
- var WithdrawIncentiveEvent = /** @class */ (function () {
3368
- function WithdrawIncentiveEvent(typeArgs, fields) {
3369
- this.$typeName = WithdrawIncentiveEvent.$typeName;
3370
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], __read(typeArgs), false));
3371
- this.$typeArgs = typeArgs;
3372
- this.sender = fields.sender;
3373
- this.index = fields.index;
3374
- this.incentiveTokenType = fields.incentiveTokenType;
3375
- this.withdrawalAmount = fields.withdrawalAmount;
3376
- this.u64Padding = fields.u64Padding;
3377
- }
3378
- WithdrawIncentiveEvent.reified = function () {
3379
- var _this = this;
3380
- return {
3381
- typeName: WithdrawIncentiveEvent.$typeName,
3382
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], [], false)),
3383
- typeArgs: [],
3384
- reifiedTypeArgs: [],
3385
- fromFields: function (fields) { return WithdrawIncentiveEvent.fromFields(fields); },
3386
- fromFieldsWithTypes: function (item) { return WithdrawIncentiveEvent.fromFieldsWithTypes(item); },
3387
- fromBcs: function (data) { return WithdrawIncentiveEvent.fromBcs(data); },
3388
- bcs: WithdrawIncentiveEvent.bcs,
3389
- fromJSONField: function (field) { return WithdrawIncentiveEvent.fromJSONField(field); },
3390
- fromJSON: function (json) { return WithdrawIncentiveEvent.fromJSON(json); },
3391
- fromSuiParsedData: function (content) { return WithdrawIncentiveEvent.fromSuiParsedData(content); },
3392
- fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3393
- return [2 /*return*/, WithdrawIncentiveEvent.fetch(client, id)];
3394
- }); }); },
3395
- new: function (fields) {
3396
- return new WithdrawIncentiveEvent([], fields);
3397
- },
3398
- kind: "StructClassReified",
3399
- };
3400
- };
3401
- Object.defineProperty(WithdrawIncentiveEvent, "r", {
3402
- get: function () {
3403
- return WithdrawIncentiveEvent.reified();
3404
- },
3405
- enumerable: false,
3406
- configurable: true
3407
- });
3408
- WithdrawIncentiveEvent.phantom = function () {
3409
- return (0, reified_1.phantom)(WithdrawIncentiveEvent.reified());
3410
- };
3411
- Object.defineProperty(WithdrawIncentiveEvent, "p", {
3412
- get: function () {
3413
- return WithdrawIncentiveEvent.phantom();
3414
- },
3415
- enumerable: false,
3416
- configurable: true
3417
- });
3418
- Object.defineProperty(WithdrawIncentiveEvent, "bcs", {
3419
- get: function () {
3420
- return bcs_1.bcs.struct("WithdrawIncentiveEvent", {
3421
- sender: bcs_1.bcs.bytes(32).transform({ input: function (val) { return (0, bcs_1.fromHEX)(val); }, output: function (val) { return (0, bcs_1.toHEX)(val); } }),
3422
- index: bcs_1.bcs.u64(),
3423
- incentive_token_type: structs_1.TypeName.bcs,
3424
- withdrawal_amount: bcs_1.bcs.u64(),
3425
- u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
3426
- });
3427
- },
3428
- enumerable: false,
3429
- configurable: true
3430
- });
3431
- WithdrawIncentiveEvent.fromFields = function (fields) {
3432
- return WithdrawIncentiveEvent.reified().new({
3433
- sender: (0, reified_1.decodeFromFields)("address", fields.sender),
3434
- index: (0, reified_1.decodeFromFields)("u64", fields.index),
3435
- incentiveTokenType: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.incentive_token_type),
3436
- withdrawalAmount: (0, reified_1.decodeFromFields)("u64", fields.withdrawal_amount),
3437
- u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
3438
- });
3439
- };
3440
- WithdrawIncentiveEvent.fromFieldsWithTypes = function (item) {
3441
- if (!isWithdrawIncentiveEvent(item.type)) {
3442
- throw new Error("not a WithdrawIncentiveEvent type");
3443
- }
3444
- return WithdrawIncentiveEvent.reified().new({
3445
- sender: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.sender),
3446
- index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
3447
- incentiveTokenType: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.incentive_token_type),
3448
- withdrawalAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.withdrawal_amount),
3449
- u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
3450
- });
3451
- };
3452
- WithdrawIncentiveEvent.fromBcs = function (data) {
3453
- return WithdrawIncentiveEvent.fromFields(WithdrawIncentiveEvent.bcs.parse(data));
3454
- };
3455
- WithdrawIncentiveEvent.prototype.toJSONField = function () {
3456
- return {
3457
- sender: this.sender,
3458
- index: this.index.toString(),
3459
- incentiveTokenType: this.incentiveTokenType.toJSONField(),
3460
- withdrawalAmount: this.withdrawalAmount.toString(),
3461
- u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
3462
- };
3463
- };
3464
- WithdrawIncentiveEvent.prototype.toJSON = function () {
3465
- return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3466
- };
3467
- WithdrawIncentiveEvent.fromJSONField = function (field) {
3468
- return WithdrawIncentiveEvent.reified().new({
3469
- sender: (0, reified_1.decodeFromJSONField)("address", field.sender),
3470
- index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3471
- incentiveTokenType: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.incentiveTokenType),
3472
- withdrawalAmount: (0, reified_1.decodeFromJSONField)("u64", field.withdrawalAmount),
3473
- u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3474
- });
3475
- };
3476
- WithdrawIncentiveEvent.fromJSON = function (json) {
3477
- if (json.$typeName !== WithdrawIncentiveEvent.$typeName) {
3478
- throw new Error("not a WithTwoGenerics json object");
3479
- }
3480
- return WithdrawIncentiveEvent.fromJSONField(json);
3481
- };
3482
- WithdrawIncentiveEvent.fromSuiParsedData = function (content) {
3483
- if (content.dataType !== "moveObject") {
3484
- throw new Error("not an object");
3485
- }
3486
- if (!isWithdrawIncentiveEvent(content.type)) {
3487
- throw new Error("object at ".concat(content.fields.id, " is not a WithdrawIncentiveEvent object"));
3488
- }
3489
- return WithdrawIncentiveEvent.fromFieldsWithTypes(content);
3490
- };
3491
- WithdrawIncentiveEvent.fetch = function (client, id) {
3492
- return __awaiter(this, void 0, void 0, function () {
3493
- var res;
3494
- var _a, _b;
3495
- return __generator(this, function (_c) {
3496
- switch (_c.label) {
3497
- case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
3498
- case 1:
3499
- res = _c.sent();
3500
- if (res.error) {
3501
- throw new Error("error fetching WithdrawIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
3502
- }
3503
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWithdrawIncentiveEvent(res.data.bcs.type)) {
3504
- throw new Error("object at id ".concat(id, " is not a WithdrawIncentiveEvent object"));
3505
- }
3506
- return [2 /*return*/, WithdrawIncentiveEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3507
- }
3508
- });
3509
- });
3510
- };
3511
- WithdrawIncentiveEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::stake_pool::WithdrawIncentiveEvent";
3512
- WithdrawIncentiveEvent.$numTypeParams = 0;
3513
- return WithdrawIncentiveEvent;
3514
- }());
3515
- exports.WithdrawIncentiveEvent = WithdrawIncentiveEvent;