@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,20 +95,25 @@ 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.UpdateSpotConfigEvent = exports.UpdateMarginConfigEvent = exports.UpdateLiquidityValueEvent = exports.UpdateBorrowInfoEvent = exports.TokenPool = exports.SwapEvent = exports.SuspendTokenPoolEvent = exports.SuspendPoolEvent = exports.SpotConfig = exports.ResumeTokenPoolEvent = exports.ResumePoolEvent = exports.Registry = exports.NewLiquidityPoolEvent = exports.MintLpEvent = exports.MarginConfig = exports.LiquidityPoolInfo = exports.LiquidityPool = exports.BurnLpEvent = exports.AddLiquidityTokenEvent = exports.State = exports.Config = void 0;
98
+ exports.UpdateSpotConfigEvent = exports.UpdateMarginConfigEvent = exports.UpdateLiquidityValueEvent = exports.UpdateBorrowInfoEvent = exports.TokenPool = exports.SwapEvent = exports.SuspendTokenPoolEvent = exports.SuspendPoolEvent = exports.StartRemoveLiquidityTokenProcessEvent = exports.SpotConfig = exports.ResumeTokenPoolEvent = exports.ResumePoolEvent = exports.RemoveLiquidityTokenProcess = exports.NewLiquidityPoolEvent = exports.MintLpEvent = exports.MarginConfig = exports.ManagerFlashRepayLiquidityEvent = exports.ManagerFlashRemoveLiquidityEvent = exports.LiquidityPoolInfo = exports.LiquidityPool = exports.CompleteRemoveLiquidityTokenProcessEvent = exports.BurnLpEvent = exports.AddLiquidityTokenEvent = exports.Registry = exports.State = exports.Config = void 0;
99
99
  exports.isConfig = isConfig;
100
100
  exports.isState = isState;
101
+ exports.isRegistry = isRegistry;
101
102
  exports.isAddLiquidityTokenEvent = isAddLiquidityTokenEvent;
102
103
  exports.isBurnLpEvent = isBurnLpEvent;
104
+ exports.isCompleteRemoveLiquidityTokenProcessEvent = isCompleteRemoveLiquidityTokenProcessEvent;
103
105
  exports.isLiquidityPool = isLiquidityPool;
104
106
  exports.isLiquidityPoolInfo = isLiquidityPoolInfo;
107
+ exports.isManagerFlashRemoveLiquidityEvent = isManagerFlashRemoveLiquidityEvent;
108
+ exports.isManagerFlashRepayLiquidityEvent = isManagerFlashRepayLiquidityEvent;
105
109
  exports.isMarginConfig = isMarginConfig;
106
110
  exports.isMintLpEvent = isMintLpEvent;
107
111
  exports.isNewLiquidityPoolEvent = isNewLiquidityPoolEvent;
108
- exports.isRegistry = isRegistry;
112
+ exports.isRemoveLiquidityTokenProcess = isRemoveLiquidityTokenProcess;
109
113
  exports.isResumePoolEvent = isResumePoolEvent;
110
114
  exports.isResumeTokenPoolEvent = isResumeTokenPoolEvent;
111
115
  exports.isSpotConfig = isSpotConfig;
116
+ exports.isStartRemoveLiquidityTokenProcessEvent = isStartRemoveLiquidityTokenProcessEvent;
112
117
  exports.isSuspendPoolEvent = isSuspendPoolEvent;
113
118
  exports.isSuspendTokenPoolEvent = isSuspendTokenPoolEvent;
114
119
  exports.isSwapEvent = isSwapEvent;
@@ -122,15 +127,19 @@ var structs_1 = require("../../_dependencies/source/0x1/type-name/structs");
122
127
  var structs_2 = require("../../_dependencies/source/0x2/object/structs");
123
128
  var reified_1 = require("../../_framework/reified");
124
129
  var util_1 = require("../../_framework/util");
125
- var bcs_1 = require("@mysten/bcs");
130
+ var index_1 = require("../index");
131
+ var bcs_1 = require("@mysten/sui/bcs");
132
+ var utils_1 = require("@mysten/sui/utils");
126
133
  /* ============================== Config =============================== */
127
134
  function isConfig(type) {
128
135
  type = (0, util_1.compressSuiType)(type);
129
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::Config";
136
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::Config");
130
137
  }
131
138
  var Config = /** @class */ (function () {
132
139
  function Config(typeArgs, fields) {
140
+ this.__StructClass = true;
133
141
  this.$typeName = Config.$typeName;
142
+ this.$isPhantom = Config.$isPhantom;
134
143
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Config.$typeName], __read(typeArgs), false));
135
144
  this.$typeArgs = typeArgs;
136
145
  this.oracleId = fields.oracleId;
@@ -145,6 +154,7 @@ var Config = /** @class */ (function () {
145
154
  typeName: Config.$typeName,
146
155
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Config.$typeName], [], false)),
147
156
  typeArgs: [],
157
+ isPhantom: Config.$isPhantom,
148
158
  reifiedTypeArgs: [],
149
159
  fromFields: function (fields) { return Config.fromFields(fields); },
150
160
  fromFieldsWithTypes: function (item) { return Config.fromFieldsWithTypes(item); },
@@ -153,6 +163,7 @@ var Config = /** @class */ (function () {
153
163
  fromJSONField: function (field) { return Config.fromJSONField(field); },
154
164
  fromJSON: function (json) { return Config.fromJSON(json); },
155
165
  fromSuiParsedData: function (content) { return Config.fromSuiParsedData(content); },
166
+ fromSuiObjectData: function (content) { return Config.fromSuiObjectData(content); },
156
167
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
157
168
  return [2 /*return*/, Config.fetch(client, id)];
158
169
  }); }); },
@@ -182,7 +193,10 @@ var Config = /** @class */ (function () {
182
193
  Object.defineProperty(Config, "bcs", {
183
194
  get: function () {
184
195
  return bcs_1.bcs.struct("Config", {
185
- oracle_id: 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
+ oracle_id: 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
+ }),
186
200
  liquidity_token_decimal: bcs_1.bcs.u64(),
187
201
  spot_config: SpotConfig.bcs,
188
202
  margin_config: MarginConfig.bcs,
@@ -252,6 +266,18 @@ var Config = /** @class */ (function () {
252
266
  }
253
267
  return Config.fromFieldsWithTypes(content);
254
268
  };
269
+ Config.fromSuiObjectData = function (data) {
270
+ if (data.bcs) {
271
+ if (data.bcs.dataType !== "moveObject" || !isConfig(data.bcs.type)) {
272
+ throw new Error("object at is not a Config object");
273
+ }
274
+ return Config.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
275
+ }
276
+ if (data.content) {
277
+ return Config.fromSuiParsedData(data.content);
278
+ }
279
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
280
+ };
255
281
  Config.fetch = function (client, id) {
256
282
  return __awaiter(this, void 0, void 0, function () {
257
283
  var res;
@@ -267,24 +293,27 @@ var Config = /** @class */ (function () {
267
293
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isConfig(res.data.bcs.type)) {
268
294
  throw new Error("object at id ".concat(id, " is not a Config object"));
269
295
  }
270
- return [2 /*return*/, Config.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
296
+ return [2 /*return*/, Config.fromSuiObjectData(res.data)];
271
297
  }
272
298
  });
273
299
  });
274
300
  };
275
- Config.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::Config";
301
+ Config.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::Config");
276
302
  Config.$numTypeParams = 0;
303
+ Config.$isPhantom = [];
277
304
  return Config;
278
305
  }());
279
306
  exports.Config = Config;
280
307
  /* ============================== State =============================== */
281
308
  function isState(type) {
282
309
  type = (0, util_1.compressSuiType)(type);
283
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::State";
310
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::State");
284
311
  }
285
312
  var State = /** @class */ (function () {
286
313
  function State(typeArgs, fields) {
314
+ this.__StructClass = true;
287
315
  this.$typeName = State.$typeName;
316
+ this.$isPhantom = State.$isPhantom;
288
317
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([State.$typeName], __read(typeArgs), false));
289
318
  this.$typeArgs = typeArgs;
290
319
  this.liquidityAmount = fields.liquidityAmount;
@@ -304,6 +333,7 @@ var State = /** @class */ (function () {
304
333
  typeName: State.$typeName,
305
334
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([State.$typeName], [], false)),
306
335
  typeArgs: [],
336
+ isPhantom: State.$isPhantom,
307
337
  reifiedTypeArgs: [],
308
338
  fromFields: function (fields) { return State.fromFields(fields); },
309
339
  fromFieldsWithTypes: function (item) { return State.fromFieldsWithTypes(item); },
@@ -312,6 +342,7 @@ var State = /** @class */ (function () {
312
342
  fromJSONField: function (field) { return State.fromJSONField(field); },
313
343
  fromJSON: function (json) { return State.fromJSON(json); },
314
344
  fromSuiParsedData: function (content) { return State.fromSuiParsedData(content); },
345
+ fromSuiObjectData: function (content) { return State.fromSuiObjectData(content); },
315
346
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
316
347
  return [2 /*return*/, State.fetch(client, id)];
317
348
  }); }); },
@@ -436,6 +467,18 @@ var State = /** @class */ (function () {
436
467
  }
437
468
  return State.fromFieldsWithTypes(content);
438
469
  };
470
+ State.fromSuiObjectData = function (data) {
471
+ if (data.bcs) {
472
+ if (data.bcs.dataType !== "moveObject" || !isState(data.bcs.type)) {
473
+ throw new Error("object at is not a State object");
474
+ }
475
+ return State.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
476
+ }
477
+ if (data.content) {
478
+ return State.fromSuiParsedData(data.content);
479
+ }
480
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
481
+ };
439
482
  State.fetch = function (client, id) {
440
483
  return __awaiter(this, void 0, void 0, function () {
441
484
  var res;
@@ -451,24 +494,186 @@ var State = /** @class */ (function () {
451
494
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isState(res.data.bcs.type)) {
452
495
  throw new Error("object at id ".concat(id, " is not a State object"));
453
496
  }
454
- return [2 /*return*/, State.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
497
+ return [2 /*return*/, State.fromSuiObjectData(res.data)];
455
498
  }
456
499
  });
457
500
  });
458
501
  };
459
- State.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::State";
502
+ State.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::State");
460
503
  State.$numTypeParams = 0;
504
+ State.$isPhantom = [];
461
505
  return State;
462
506
  }());
463
507
  exports.State = State;
508
+ /* ============================== Registry =============================== */
509
+ function isRegistry(type) {
510
+ type = (0, util_1.compressSuiType)(type);
511
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::Registry");
512
+ }
513
+ var Registry = /** @class */ (function () {
514
+ function Registry(typeArgs, fields) {
515
+ this.__StructClass = true;
516
+ this.$typeName = Registry.$typeName;
517
+ this.$isPhantom = Registry.$isPhantom;
518
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Registry.$typeName], __read(typeArgs), false));
519
+ this.$typeArgs = typeArgs;
520
+ this.id = fields.id;
521
+ this.numPool = fields.numPool;
522
+ this.liquidityPoolRegistry = fields.liquidityPoolRegistry;
523
+ }
524
+ Registry.reified = function () {
525
+ var _this = this;
526
+ return {
527
+ typeName: Registry.$typeName,
528
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Registry.$typeName], [], false)),
529
+ typeArgs: [],
530
+ isPhantom: Registry.$isPhantom,
531
+ reifiedTypeArgs: [],
532
+ fromFields: function (fields) { return Registry.fromFields(fields); },
533
+ fromFieldsWithTypes: function (item) { return Registry.fromFieldsWithTypes(item); },
534
+ fromBcs: function (data) { return Registry.fromBcs(data); },
535
+ bcs: Registry.bcs,
536
+ fromJSONField: function (field) { return Registry.fromJSONField(field); },
537
+ fromJSON: function (json) { return Registry.fromJSON(json); },
538
+ fromSuiParsedData: function (content) { return Registry.fromSuiParsedData(content); },
539
+ fromSuiObjectData: function (content) { return Registry.fromSuiObjectData(content); },
540
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
541
+ return [2 /*return*/, Registry.fetch(client, id)];
542
+ }); }); },
543
+ new: function (fields) {
544
+ return new Registry([], fields);
545
+ },
546
+ kind: "StructClassReified",
547
+ };
548
+ };
549
+ Object.defineProperty(Registry, "r", {
550
+ get: function () {
551
+ return Registry.reified();
552
+ },
553
+ enumerable: false,
554
+ configurable: true
555
+ });
556
+ Registry.phantom = function () {
557
+ return (0, reified_1.phantom)(Registry.reified());
558
+ };
559
+ Object.defineProperty(Registry, "p", {
560
+ get: function () {
561
+ return Registry.phantom();
562
+ },
563
+ enumerable: false,
564
+ configurable: true
565
+ });
566
+ Object.defineProperty(Registry, "bcs", {
567
+ get: function () {
568
+ return bcs_1.bcs.struct("Registry", {
569
+ id: structs_2.UID.bcs,
570
+ num_pool: bcs_1.bcs.u64(),
571
+ liquidity_pool_registry: structs_2.UID.bcs,
572
+ });
573
+ },
574
+ enumerable: false,
575
+ configurable: true
576
+ });
577
+ Registry.fromFields = function (fields) {
578
+ return Registry.reified().new({
579
+ id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
580
+ numPool: (0, reified_1.decodeFromFields)("u64", fields.num_pool),
581
+ liquidityPoolRegistry: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.liquidity_pool_registry),
582
+ });
583
+ };
584
+ Registry.fromFieldsWithTypes = function (item) {
585
+ if (!isRegistry(item.type)) {
586
+ throw new Error("not a Registry type");
587
+ }
588
+ return Registry.reified().new({
589
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
590
+ numPool: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.num_pool),
591
+ liquidityPoolRegistry: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.liquidity_pool_registry),
592
+ });
593
+ };
594
+ Registry.fromBcs = function (data) {
595
+ return Registry.fromFields(Registry.bcs.parse(data));
596
+ };
597
+ Registry.prototype.toJSONField = function () {
598
+ return {
599
+ id: this.id,
600
+ numPool: this.numPool.toString(),
601
+ liquidityPoolRegistry: this.liquidityPoolRegistry,
602
+ };
603
+ };
604
+ Registry.prototype.toJSON = function () {
605
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
606
+ };
607
+ Registry.fromJSONField = function (field) {
608
+ return Registry.reified().new({
609
+ id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
610
+ numPool: (0, reified_1.decodeFromJSONField)("u64", field.numPool),
611
+ liquidityPoolRegistry: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.liquidityPoolRegistry),
612
+ });
613
+ };
614
+ Registry.fromJSON = function (json) {
615
+ if (json.$typeName !== Registry.$typeName) {
616
+ throw new Error("not a WithTwoGenerics json object");
617
+ }
618
+ return Registry.fromJSONField(json);
619
+ };
620
+ Registry.fromSuiParsedData = function (content) {
621
+ if (content.dataType !== "moveObject") {
622
+ throw new Error("not an object");
623
+ }
624
+ if (!isRegistry(content.type)) {
625
+ throw new Error("object at ".concat(content.fields.id, " is not a Registry object"));
626
+ }
627
+ return Registry.fromFieldsWithTypes(content);
628
+ };
629
+ Registry.fromSuiObjectData = function (data) {
630
+ if (data.bcs) {
631
+ if (data.bcs.dataType !== "moveObject" || !isRegistry(data.bcs.type)) {
632
+ throw new Error("object at is not a Registry object");
633
+ }
634
+ return Registry.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
635
+ }
636
+ if (data.content) {
637
+ return Registry.fromSuiParsedData(data.content);
638
+ }
639
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
640
+ };
641
+ Registry.fetch = function (client, id) {
642
+ return __awaiter(this, void 0, void 0, function () {
643
+ var res;
644
+ var _a, _b;
645
+ return __generator(this, function (_c) {
646
+ switch (_c.label) {
647
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
648
+ case 1:
649
+ res = _c.sent();
650
+ if (res.error) {
651
+ throw new Error("error fetching Registry object at id ".concat(id, ": ").concat(res.error.code));
652
+ }
653
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRegistry(res.data.bcs.type)) {
654
+ throw new Error("object at id ".concat(id, " is not a Registry object"));
655
+ }
656
+ return [2 /*return*/, Registry.fromSuiObjectData(res.data)];
657
+ }
658
+ });
659
+ });
660
+ };
661
+ Registry.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::Registry");
662
+ Registry.$numTypeParams = 0;
663
+ Registry.$isPhantom = [];
664
+ return Registry;
665
+ }());
666
+ exports.Registry = Registry;
464
667
  /* ============================== AddLiquidityTokenEvent =============================== */
465
668
  function isAddLiquidityTokenEvent(type) {
466
669
  type = (0, util_1.compressSuiType)(type);
467
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::AddLiquidityTokenEvent";
670
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::AddLiquidityTokenEvent");
468
671
  }
469
672
  var AddLiquidityTokenEvent = /** @class */ (function () {
470
673
  function AddLiquidityTokenEvent(typeArgs, fields) {
674
+ this.__StructClass = true;
471
675
  this.$typeName = AddLiquidityTokenEvent.$typeName;
676
+ this.$isPhantom = AddLiquidityTokenEvent.$isPhantom;
472
677
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddLiquidityTokenEvent.$typeName], __read(typeArgs), false));
473
678
  this.$typeArgs = typeArgs;
474
679
  this.sender = fields.sender;
@@ -484,6 +689,7 @@ var AddLiquidityTokenEvent = /** @class */ (function () {
484
689
  typeName: AddLiquidityTokenEvent.$typeName,
485
690
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddLiquidityTokenEvent.$typeName], [], false)),
486
691
  typeArgs: [],
692
+ isPhantom: AddLiquidityTokenEvent.$isPhantom,
487
693
  reifiedTypeArgs: [],
488
694
  fromFields: function (fields) { return AddLiquidityTokenEvent.fromFields(fields); },
489
695
  fromFieldsWithTypes: function (item) { return AddLiquidityTokenEvent.fromFieldsWithTypes(item); },
@@ -492,6 +698,7 @@ var AddLiquidityTokenEvent = /** @class */ (function () {
492
698
  fromJSONField: function (field) { return AddLiquidityTokenEvent.fromJSONField(field); },
493
699
  fromJSON: function (json) { return AddLiquidityTokenEvent.fromJSON(json); },
494
700
  fromSuiParsedData: function (content) { return AddLiquidityTokenEvent.fromSuiParsedData(content); },
701
+ fromSuiObjectData: function (content) { return AddLiquidityTokenEvent.fromSuiObjectData(content); },
495
702
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
496
703
  return [2 /*return*/, AddLiquidityTokenEvent.fetch(client, id)];
497
704
  }); }); },
@@ -521,7 +728,10 @@ var AddLiquidityTokenEvent = /** @class */ (function () {
521
728
  Object.defineProperty(AddLiquidityTokenEvent, "bcs", {
522
729
  get: function () {
523
730
  return bcs_1.bcs.struct("AddLiquidityTokenEvent", {
524
- 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); } }),
731
+ sender: bcs_1.bcs.bytes(32).transform({
732
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
733
+ output: function (val) { return (0, utils_1.toHEX)(val); },
734
+ }),
525
735
  index: bcs_1.bcs.u64(),
526
736
  token_type: structs_1.TypeName.bcs,
527
737
  config: Config.bcs,
@@ -596,6 +806,18 @@ var AddLiquidityTokenEvent = /** @class */ (function () {
596
806
  }
597
807
  return AddLiquidityTokenEvent.fromFieldsWithTypes(content);
598
808
  };
809
+ AddLiquidityTokenEvent.fromSuiObjectData = function (data) {
810
+ if (data.bcs) {
811
+ if (data.bcs.dataType !== "moveObject" || !isAddLiquidityTokenEvent(data.bcs.type)) {
812
+ throw new Error("object at is not a AddLiquidityTokenEvent object");
813
+ }
814
+ return AddLiquidityTokenEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
815
+ }
816
+ if (data.content) {
817
+ return AddLiquidityTokenEvent.fromSuiParsedData(data.content);
818
+ }
819
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
820
+ };
599
821
  AddLiquidityTokenEvent.fetch = function (client, id) {
600
822
  return __awaiter(this, void 0, void 0, function () {
601
823
  var res;
@@ -611,24 +833,27 @@ var AddLiquidityTokenEvent = /** @class */ (function () {
611
833
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddLiquidityTokenEvent(res.data.bcs.type)) {
612
834
  throw new Error("object at id ".concat(id, " is not a AddLiquidityTokenEvent object"));
613
835
  }
614
- return [2 /*return*/, AddLiquidityTokenEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
836
+ return [2 /*return*/, AddLiquidityTokenEvent.fromSuiObjectData(res.data)];
615
837
  }
616
838
  });
617
839
  });
618
840
  };
619
- AddLiquidityTokenEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::AddLiquidityTokenEvent";
841
+ AddLiquidityTokenEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::AddLiquidityTokenEvent");
620
842
  AddLiquidityTokenEvent.$numTypeParams = 0;
843
+ AddLiquidityTokenEvent.$isPhantom = [];
621
844
  return AddLiquidityTokenEvent;
622
845
  }());
623
846
  exports.AddLiquidityTokenEvent = AddLiquidityTokenEvent;
624
847
  /* ============================== BurnLpEvent =============================== */
625
848
  function isBurnLpEvent(type) {
626
849
  type = (0, util_1.compressSuiType)(type);
627
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::BurnLpEvent";
850
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::BurnLpEvent");
628
851
  }
629
852
  var BurnLpEvent = /** @class */ (function () {
630
853
  function BurnLpEvent(typeArgs, fields) {
854
+ this.__StructClass = true;
631
855
  this.$typeName = BurnLpEvent.$typeName;
856
+ this.$isPhantom = BurnLpEvent.$isPhantom;
632
857
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([BurnLpEvent.$typeName], __read(typeArgs), false));
633
858
  this.$typeArgs = typeArgs;
634
859
  this.sender = fields.sender;
@@ -647,6 +872,7 @@ var BurnLpEvent = /** @class */ (function () {
647
872
  typeName: BurnLpEvent.$typeName,
648
873
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([BurnLpEvent.$typeName], [], false)),
649
874
  typeArgs: [],
875
+ isPhantom: BurnLpEvent.$isPhantom,
650
876
  reifiedTypeArgs: [],
651
877
  fromFields: function (fields) { return BurnLpEvent.fromFields(fields); },
652
878
  fromFieldsWithTypes: function (item) { return BurnLpEvent.fromFieldsWithTypes(item); },
@@ -655,6 +881,7 @@ var BurnLpEvent = /** @class */ (function () {
655
881
  fromJSONField: function (field) { return BurnLpEvent.fromJSONField(field); },
656
882
  fromJSON: function (json) { return BurnLpEvent.fromJSON(json); },
657
883
  fromSuiParsedData: function (content) { return BurnLpEvent.fromSuiParsedData(content); },
884
+ fromSuiObjectData: function (content) { return BurnLpEvent.fromSuiObjectData(content); },
658
885
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
659
886
  return [2 /*return*/, BurnLpEvent.fetch(client, id)];
660
887
  }); }); },
@@ -684,7 +911,10 @@ var BurnLpEvent = /** @class */ (function () {
684
911
  Object.defineProperty(BurnLpEvent, "bcs", {
685
912
  get: function () {
686
913
  return bcs_1.bcs.struct("BurnLpEvent", {
687
- 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); } }),
914
+ sender: bcs_1.bcs.bytes(32).transform({
915
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
916
+ output: function (val) { return (0, utils_1.toHEX)(val); },
917
+ }),
688
918
  index: bcs_1.bcs.u64(),
689
919
  lp_token_type: structs_1.TypeName.bcs,
690
920
  burn_lp_amount: bcs_1.bcs.u64(),
@@ -774,6 +1004,18 @@ var BurnLpEvent = /** @class */ (function () {
774
1004
  }
775
1005
  return BurnLpEvent.fromFieldsWithTypes(content);
776
1006
  };
1007
+ BurnLpEvent.fromSuiObjectData = function (data) {
1008
+ if (data.bcs) {
1009
+ if (data.bcs.dataType !== "moveObject" || !isBurnLpEvent(data.bcs.type)) {
1010
+ throw new Error("object at is not a BurnLpEvent object");
1011
+ }
1012
+ return BurnLpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1013
+ }
1014
+ if (data.content) {
1015
+ return BurnLpEvent.fromSuiParsedData(data.content);
1016
+ }
1017
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1018
+ };
777
1019
  BurnLpEvent.fetch = function (client, id) {
778
1020
  return __awaiter(this, void 0, void 0, function () {
779
1021
  var res;
@@ -789,24 +1031,198 @@ var BurnLpEvent = /** @class */ (function () {
789
1031
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isBurnLpEvent(res.data.bcs.type)) {
790
1032
  throw new Error("object at id ".concat(id, " is not a BurnLpEvent object"));
791
1033
  }
792
- return [2 /*return*/, BurnLpEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1034
+ return [2 /*return*/, BurnLpEvent.fromSuiObjectData(res.data)];
793
1035
  }
794
1036
  });
795
1037
  });
796
1038
  };
797
- BurnLpEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::BurnLpEvent";
1039
+ BurnLpEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::BurnLpEvent");
798
1040
  BurnLpEvent.$numTypeParams = 0;
1041
+ BurnLpEvent.$isPhantom = [];
799
1042
  return BurnLpEvent;
800
1043
  }());
801
1044
  exports.BurnLpEvent = BurnLpEvent;
1045
+ /* ============================== CompleteRemoveLiquidityTokenProcessEvent =============================== */
1046
+ function isCompleteRemoveLiquidityTokenProcessEvent(type) {
1047
+ type = (0, util_1.compressSuiType)(type);
1048
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::CompleteRemoveLiquidityTokenProcessEvent");
1049
+ }
1050
+ var CompleteRemoveLiquidityTokenProcessEvent = /** @class */ (function () {
1051
+ function CompleteRemoveLiquidityTokenProcessEvent(typeArgs, fields) {
1052
+ this.__StructClass = true;
1053
+ this.$typeName = CompleteRemoveLiquidityTokenProcessEvent.$typeName;
1054
+ this.$isPhantom = CompleteRemoveLiquidityTokenProcessEvent.$isPhantom;
1055
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([CompleteRemoveLiquidityTokenProcessEvent.$typeName], __read(typeArgs), false));
1056
+ this.$typeArgs = typeArgs;
1057
+ this.index = fields.index;
1058
+ this.liquidityToken = fields.liquidityToken;
1059
+ this.removedUsd = fields.removedUsd;
1060
+ this.repaidUsd = fields.repaidUsd;
1061
+ this.u64Padding = fields.u64Padding;
1062
+ }
1063
+ CompleteRemoveLiquidityTokenProcessEvent.reified = function () {
1064
+ var _this = this;
1065
+ return {
1066
+ typeName: CompleteRemoveLiquidityTokenProcessEvent.$typeName,
1067
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([CompleteRemoveLiquidityTokenProcessEvent.$typeName], [], false)),
1068
+ typeArgs: [],
1069
+ isPhantom: CompleteRemoveLiquidityTokenProcessEvent.$isPhantom,
1070
+ reifiedTypeArgs: [],
1071
+ fromFields: function (fields) { return CompleteRemoveLiquidityTokenProcessEvent.fromFields(fields); },
1072
+ fromFieldsWithTypes: function (item) { return CompleteRemoveLiquidityTokenProcessEvent.fromFieldsWithTypes(item); },
1073
+ fromBcs: function (data) { return CompleteRemoveLiquidityTokenProcessEvent.fromBcs(data); },
1074
+ bcs: CompleteRemoveLiquidityTokenProcessEvent.bcs,
1075
+ fromJSONField: function (field) { return CompleteRemoveLiquidityTokenProcessEvent.fromJSONField(field); },
1076
+ fromJSON: function (json) { return CompleteRemoveLiquidityTokenProcessEvent.fromJSON(json); },
1077
+ fromSuiParsedData: function (content) { return CompleteRemoveLiquidityTokenProcessEvent.fromSuiParsedData(content); },
1078
+ fromSuiObjectData: function (content) { return CompleteRemoveLiquidityTokenProcessEvent.fromSuiObjectData(content); },
1079
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1080
+ return [2 /*return*/, CompleteRemoveLiquidityTokenProcessEvent.fetch(client, id)];
1081
+ }); }); },
1082
+ new: function (fields) {
1083
+ return new CompleteRemoveLiquidityTokenProcessEvent([], fields);
1084
+ },
1085
+ kind: "StructClassReified",
1086
+ };
1087
+ };
1088
+ Object.defineProperty(CompleteRemoveLiquidityTokenProcessEvent, "r", {
1089
+ get: function () {
1090
+ return CompleteRemoveLiquidityTokenProcessEvent.reified();
1091
+ },
1092
+ enumerable: false,
1093
+ configurable: true
1094
+ });
1095
+ CompleteRemoveLiquidityTokenProcessEvent.phantom = function () {
1096
+ return (0, reified_1.phantom)(CompleteRemoveLiquidityTokenProcessEvent.reified());
1097
+ };
1098
+ Object.defineProperty(CompleteRemoveLiquidityTokenProcessEvent, "p", {
1099
+ get: function () {
1100
+ return CompleteRemoveLiquidityTokenProcessEvent.phantom();
1101
+ },
1102
+ enumerable: false,
1103
+ configurable: true
1104
+ });
1105
+ Object.defineProperty(CompleteRemoveLiquidityTokenProcessEvent, "bcs", {
1106
+ get: function () {
1107
+ return bcs_1.bcs.struct("CompleteRemoveLiquidityTokenProcessEvent", {
1108
+ index: bcs_1.bcs.u64(),
1109
+ liquidity_token: structs_1.TypeName.bcs,
1110
+ removed_usd: bcs_1.bcs.u64(),
1111
+ repaid_usd: bcs_1.bcs.u64(),
1112
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1113
+ });
1114
+ },
1115
+ enumerable: false,
1116
+ configurable: true
1117
+ });
1118
+ CompleteRemoveLiquidityTokenProcessEvent.fromFields = function (fields) {
1119
+ return CompleteRemoveLiquidityTokenProcessEvent.reified().new({
1120
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
1121
+ liquidityToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.liquidity_token),
1122
+ removedUsd: (0, reified_1.decodeFromFields)("u64", fields.removed_usd),
1123
+ repaidUsd: (0, reified_1.decodeFromFields)("u64", fields.repaid_usd),
1124
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1125
+ });
1126
+ };
1127
+ CompleteRemoveLiquidityTokenProcessEvent.fromFieldsWithTypes = function (item) {
1128
+ if (!isCompleteRemoveLiquidityTokenProcessEvent(item.type)) {
1129
+ throw new Error("not a CompleteRemoveLiquidityTokenProcessEvent type");
1130
+ }
1131
+ return CompleteRemoveLiquidityTokenProcessEvent.reified().new({
1132
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1133
+ liquidityToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.liquidity_token),
1134
+ removedUsd: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.removed_usd),
1135
+ repaidUsd: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.repaid_usd),
1136
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1137
+ });
1138
+ };
1139
+ CompleteRemoveLiquidityTokenProcessEvent.fromBcs = function (data) {
1140
+ return CompleteRemoveLiquidityTokenProcessEvent.fromFields(CompleteRemoveLiquidityTokenProcessEvent.bcs.parse(data));
1141
+ };
1142
+ CompleteRemoveLiquidityTokenProcessEvent.prototype.toJSONField = function () {
1143
+ return {
1144
+ index: this.index.toString(),
1145
+ liquidityToken: this.liquidityToken.toJSONField(),
1146
+ removedUsd: this.removedUsd.toString(),
1147
+ repaidUsd: this.repaidUsd.toString(),
1148
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1149
+ };
1150
+ };
1151
+ CompleteRemoveLiquidityTokenProcessEvent.prototype.toJSON = function () {
1152
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1153
+ };
1154
+ CompleteRemoveLiquidityTokenProcessEvent.fromJSONField = function (field) {
1155
+ return CompleteRemoveLiquidityTokenProcessEvent.reified().new({
1156
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1157
+ liquidityToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.liquidityToken),
1158
+ removedUsd: (0, reified_1.decodeFromJSONField)("u64", field.removedUsd),
1159
+ repaidUsd: (0, reified_1.decodeFromJSONField)("u64", field.repaidUsd),
1160
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1161
+ });
1162
+ };
1163
+ CompleteRemoveLiquidityTokenProcessEvent.fromJSON = function (json) {
1164
+ if (json.$typeName !== CompleteRemoveLiquidityTokenProcessEvent.$typeName) {
1165
+ throw new Error("not a WithTwoGenerics json object");
1166
+ }
1167
+ return CompleteRemoveLiquidityTokenProcessEvent.fromJSONField(json);
1168
+ };
1169
+ CompleteRemoveLiquidityTokenProcessEvent.fromSuiParsedData = function (content) {
1170
+ if (content.dataType !== "moveObject") {
1171
+ throw new Error("not an object");
1172
+ }
1173
+ if (!isCompleteRemoveLiquidityTokenProcessEvent(content.type)) {
1174
+ throw new Error("object at ".concat(content.fields.id, " is not a CompleteRemoveLiquidityTokenProcessEvent object"));
1175
+ }
1176
+ return CompleteRemoveLiquidityTokenProcessEvent.fromFieldsWithTypes(content);
1177
+ };
1178
+ CompleteRemoveLiquidityTokenProcessEvent.fromSuiObjectData = function (data) {
1179
+ if (data.bcs) {
1180
+ if (data.bcs.dataType !== "moveObject" || !isCompleteRemoveLiquidityTokenProcessEvent(data.bcs.type)) {
1181
+ throw new Error("object at is not a CompleteRemoveLiquidityTokenProcessEvent object");
1182
+ }
1183
+ return CompleteRemoveLiquidityTokenProcessEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1184
+ }
1185
+ if (data.content) {
1186
+ return CompleteRemoveLiquidityTokenProcessEvent.fromSuiParsedData(data.content);
1187
+ }
1188
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1189
+ };
1190
+ CompleteRemoveLiquidityTokenProcessEvent.fetch = function (client, id) {
1191
+ return __awaiter(this, void 0, void 0, function () {
1192
+ var res;
1193
+ var _a, _b;
1194
+ return __generator(this, function (_c) {
1195
+ switch (_c.label) {
1196
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1197
+ case 1:
1198
+ res = _c.sent();
1199
+ if (res.error) {
1200
+ throw new Error("error fetching CompleteRemoveLiquidityTokenProcessEvent object at id ".concat(id, ": ").concat(res.error.code));
1201
+ }
1202
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isCompleteRemoveLiquidityTokenProcessEvent(res.data.bcs.type)) {
1203
+ throw new Error("object at id ".concat(id, " is not a CompleteRemoveLiquidityTokenProcessEvent object"));
1204
+ }
1205
+ return [2 /*return*/, CompleteRemoveLiquidityTokenProcessEvent.fromSuiObjectData(res.data)];
1206
+ }
1207
+ });
1208
+ });
1209
+ };
1210
+ CompleteRemoveLiquidityTokenProcessEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::CompleteRemoveLiquidityTokenProcessEvent");
1211
+ CompleteRemoveLiquidityTokenProcessEvent.$numTypeParams = 0;
1212
+ CompleteRemoveLiquidityTokenProcessEvent.$isPhantom = [];
1213
+ return CompleteRemoveLiquidityTokenProcessEvent;
1214
+ }());
1215
+ exports.CompleteRemoveLiquidityTokenProcessEvent = CompleteRemoveLiquidityTokenProcessEvent;
802
1216
  /* ============================== LiquidityPool =============================== */
803
1217
  function isLiquidityPool(type) {
804
1218
  type = (0, util_1.compressSuiType)(type);
805
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::LiquidityPool";
1219
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::LiquidityPool");
806
1220
  }
807
1221
  var LiquidityPool = /** @class */ (function () {
808
1222
  function LiquidityPool(typeArgs, fields) {
1223
+ this.__StructClass = true;
809
1224
  this.$typeName = LiquidityPool.$typeName;
1225
+ this.$isPhantom = LiquidityPool.$isPhantom;
810
1226
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LiquidityPool.$typeName], __read(typeArgs), false));
811
1227
  this.$typeArgs = typeArgs;
812
1228
  this.id = fields.id;
@@ -824,6 +1240,7 @@ var LiquidityPool = /** @class */ (function () {
824
1240
  typeName: LiquidityPool.$typeName,
825
1241
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LiquidityPool.$typeName], [], false)),
826
1242
  typeArgs: [],
1243
+ isPhantom: LiquidityPool.$isPhantom,
827
1244
  reifiedTypeArgs: [],
828
1245
  fromFields: function (fields) { return LiquidityPool.fromFields(fields); },
829
1246
  fromFieldsWithTypes: function (item) { return LiquidityPool.fromFieldsWithTypes(item); },
@@ -832,6 +1249,7 @@ var LiquidityPool = /** @class */ (function () {
832
1249
  fromJSONField: function (field) { return LiquidityPool.fromJSONField(field); },
833
1250
  fromJSON: function (json) { return LiquidityPool.fromJSON(json); },
834
1251
  fromSuiParsedData: function (content) { return LiquidityPool.fromSuiParsedData(content); },
1252
+ fromSuiObjectData: function (content) { return LiquidityPool.fromSuiObjectData(content); },
835
1253
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
836
1254
  return [2 /*return*/, LiquidityPool.fetch(client, id)];
837
1255
  }); }); },
@@ -909,8 +1327,8 @@ var LiquidityPool = /** @class */ (function () {
909
1327
  id: this.id,
910
1328
  index: this.index.toString(),
911
1329
  lpTokenType: this.lpTokenType.toJSONField(),
912
- liquidityTokens: (0, reified_1.fieldToJSON)("vector<0x1::type_name::TypeName>", this.liquidityTokens),
913
- tokenPools: (0, reified_1.fieldToJSON)("vector<0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::TokenPool>", this.tokenPools),
1330
+ liquidityTokens: (0, reified_1.fieldToJSON)("vector<".concat(structs_1.TypeName.$typeName, ">"), this.liquidityTokens),
1331
+ tokenPools: (0, reified_1.fieldToJSON)("vector<".concat(TokenPool.$typeName, ">"), this.tokenPools),
914
1332
  poolInfo: this.poolInfo.toJSONField(),
915
1333
  u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
916
1334
  bcsPadding: (0, reified_1.fieldToJSON)("vector<u8>", this.bcsPadding),
@@ -946,6 +1364,18 @@ var LiquidityPool = /** @class */ (function () {
946
1364
  }
947
1365
  return LiquidityPool.fromFieldsWithTypes(content);
948
1366
  };
1367
+ LiquidityPool.fromSuiObjectData = function (data) {
1368
+ if (data.bcs) {
1369
+ if (data.bcs.dataType !== "moveObject" || !isLiquidityPool(data.bcs.type)) {
1370
+ throw new Error("object at is not a LiquidityPool object");
1371
+ }
1372
+ return LiquidityPool.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1373
+ }
1374
+ if (data.content) {
1375
+ return LiquidityPool.fromSuiParsedData(data.content);
1376
+ }
1377
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1378
+ };
949
1379
  LiquidityPool.fetch = function (client, id) {
950
1380
  return __awaiter(this, void 0, void 0, function () {
951
1381
  var res;
@@ -961,24 +1391,27 @@ var LiquidityPool = /** @class */ (function () {
961
1391
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLiquidityPool(res.data.bcs.type)) {
962
1392
  throw new Error("object at id ".concat(id, " is not a LiquidityPool object"));
963
1393
  }
964
- return [2 /*return*/, LiquidityPool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1394
+ return [2 /*return*/, LiquidityPool.fromSuiObjectData(res.data)];
965
1395
  }
966
1396
  });
967
1397
  });
968
1398
  };
969
- LiquidityPool.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::LiquidityPool";
1399
+ LiquidityPool.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::LiquidityPool");
970
1400
  LiquidityPool.$numTypeParams = 0;
1401
+ LiquidityPool.$isPhantom = [];
971
1402
  return LiquidityPool;
972
1403
  }());
973
1404
  exports.LiquidityPool = LiquidityPool;
974
1405
  /* ============================== LiquidityPoolInfo =============================== */
975
1406
  function isLiquidityPoolInfo(type) {
976
1407
  type = (0, util_1.compressSuiType)(type);
977
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::LiquidityPoolInfo";
1408
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::LiquidityPoolInfo");
978
1409
  }
979
1410
  var LiquidityPoolInfo = /** @class */ (function () {
980
1411
  function LiquidityPoolInfo(typeArgs, fields) {
1412
+ this.__StructClass = true;
981
1413
  this.$typeName = LiquidityPoolInfo.$typeName;
1414
+ this.$isPhantom = LiquidityPoolInfo.$isPhantom;
982
1415
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([LiquidityPoolInfo.$typeName], __read(typeArgs), false));
983
1416
  this.$typeArgs = typeArgs;
984
1417
  this.lpTokenDecimal = fields.lpTokenDecimal;
@@ -992,6 +1425,7 @@ var LiquidityPoolInfo = /** @class */ (function () {
992
1425
  typeName: LiquidityPoolInfo.$typeName,
993
1426
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([LiquidityPoolInfo.$typeName], [], false)),
994
1427
  typeArgs: [],
1428
+ isPhantom: LiquidityPoolInfo.$isPhantom,
995
1429
  reifiedTypeArgs: [],
996
1430
  fromFields: function (fields) { return LiquidityPoolInfo.fromFields(fields); },
997
1431
  fromFieldsWithTypes: function (item) { return LiquidityPoolInfo.fromFieldsWithTypes(item); },
@@ -1000,6 +1434,7 @@ var LiquidityPoolInfo = /** @class */ (function () {
1000
1434
  fromJSONField: function (field) { return LiquidityPoolInfo.fromJSONField(field); },
1001
1435
  fromJSON: function (json) { return LiquidityPoolInfo.fromJSON(json); },
1002
1436
  fromSuiParsedData: function (content) { return LiquidityPoolInfo.fromSuiParsedData(content); },
1437
+ fromSuiObjectData: function (content) { return LiquidityPoolInfo.fromSuiObjectData(content); },
1003
1438
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1004
1439
  return [2 /*return*/, LiquidityPoolInfo.fetch(client, id)];
1005
1440
  }); }); },
@@ -1068,33 +1503,411 @@ var LiquidityPoolInfo = /** @class */ (function () {
1068
1503
  isActive: this.isActive,
1069
1504
  };
1070
1505
  };
1071
- LiquidityPoolInfo.prototype.toJSON = function () {
1506
+ LiquidityPoolInfo.prototype.toJSON = function () {
1507
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1508
+ };
1509
+ LiquidityPoolInfo.fromJSONField = function (field) {
1510
+ return LiquidityPoolInfo.reified().new({
1511
+ lpTokenDecimal: (0, reified_1.decodeFromJSONField)("u64", field.lpTokenDecimal),
1512
+ totalShareSupply: (0, reified_1.decodeFromJSONField)("u64", field.totalShareSupply),
1513
+ tvlUsd: (0, reified_1.decodeFromJSONField)("u64", field.tvlUsd),
1514
+ isActive: (0, reified_1.decodeFromJSONField)("bool", field.isActive),
1515
+ });
1516
+ };
1517
+ LiquidityPoolInfo.fromJSON = function (json) {
1518
+ if (json.$typeName !== LiquidityPoolInfo.$typeName) {
1519
+ throw new Error("not a WithTwoGenerics json object");
1520
+ }
1521
+ return LiquidityPoolInfo.fromJSONField(json);
1522
+ };
1523
+ LiquidityPoolInfo.fromSuiParsedData = function (content) {
1524
+ if (content.dataType !== "moveObject") {
1525
+ throw new Error("not an object");
1526
+ }
1527
+ if (!isLiquidityPoolInfo(content.type)) {
1528
+ throw new Error("object at ".concat(content.fields.id, " is not a LiquidityPoolInfo object"));
1529
+ }
1530
+ return LiquidityPoolInfo.fromFieldsWithTypes(content);
1531
+ };
1532
+ LiquidityPoolInfo.fromSuiObjectData = function (data) {
1533
+ if (data.bcs) {
1534
+ if (data.bcs.dataType !== "moveObject" || !isLiquidityPoolInfo(data.bcs.type)) {
1535
+ throw new Error("object at is not a LiquidityPoolInfo object");
1536
+ }
1537
+ return LiquidityPoolInfo.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1538
+ }
1539
+ if (data.content) {
1540
+ return LiquidityPoolInfo.fromSuiParsedData(data.content);
1541
+ }
1542
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1543
+ };
1544
+ LiquidityPoolInfo.fetch = function (client, id) {
1545
+ return __awaiter(this, void 0, void 0, function () {
1546
+ var res;
1547
+ var _a, _b;
1548
+ return __generator(this, function (_c) {
1549
+ switch (_c.label) {
1550
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1551
+ case 1:
1552
+ res = _c.sent();
1553
+ if (res.error) {
1554
+ throw new Error("error fetching LiquidityPoolInfo object at id ".concat(id, ": ").concat(res.error.code));
1555
+ }
1556
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLiquidityPoolInfo(res.data.bcs.type)) {
1557
+ throw new Error("object at id ".concat(id, " is not a LiquidityPoolInfo object"));
1558
+ }
1559
+ return [2 /*return*/, LiquidityPoolInfo.fromSuiObjectData(res.data)];
1560
+ }
1561
+ });
1562
+ });
1563
+ };
1564
+ LiquidityPoolInfo.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::LiquidityPoolInfo");
1565
+ LiquidityPoolInfo.$numTypeParams = 0;
1566
+ LiquidityPoolInfo.$isPhantom = [];
1567
+ return LiquidityPoolInfo;
1568
+ }());
1569
+ exports.LiquidityPoolInfo = LiquidityPoolInfo;
1570
+ /* ============================== ManagerFlashRemoveLiquidityEvent =============================== */
1571
+ function isManagerFlashRemoveLiquidityEvent(type) {
1572
+ type = (0, util_1.compressSuiType)(type);
1573
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::ManagerFlashRemoveLiquidityEvent");
1574
+ }
1575
+ var ManagerFlashRemoveLiquidityEvent = /** @class */ (function () {
1576
+ function ManagerFlashRemoveLiquidityEvent(typeArgs, fields) {
1577
+ this.__StructClass = true;
1578
+ this.$typeName = ManagerFlashRemoveLiquidityEvent.$typeName;
1579
+ this.$isPhantom = ManagerFlashRemoveLiquidityEvent.$isPhantom;
1580
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ManagerFlashRemoveLiquidityEvent.$typeName], __read(typeArgs), false));
1581
+ this.$typeArgs = typeArgs;
1582
+ this.index = fields.index;
1583
+ this.liquidityToken = fields.liquidityToken;
1584
+ this.price = fields.price;
1585
+ this.priceDecimal = fields.priceDecimal;
1586
+ this.removeAmount = fields.removeAmount;
1587
+ this.removedUsd = fields.removedUsd;
1588
+ this.u64Padding = fields.u64Padding;
1589
+ }
1590
+ ManagerFlashRemoveLiquidityEvent.reified = function () {
1591
+ var _this = this;
1592
+ return {
1593
+ typeName: ManagerFlashRemoveLiquidityEvent.$typeName,
1594
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ManagerFlashRemoveLiquidityEvent.$typeName], [], false)),
1595
+ typeArgs: [],
1596
+ isPhantom: ManagerFlashRemoveLiquidityEvent.$isPhantom,
1597
+ reifiedTypeArgs: [],
1598
+ fromFields: function (fields) { return ManagerFlashRemoveLiquidityEvent.fromFields(fields); },
1599
+ fromFieldsWithTypes: function (item) { return ManagerFlashRemoveLiquidityEvent.fromFieldsWithTypes(item); },
1600
+ fromBcs: function (data) { return ManagerFlashRemoveLiquidityEvent.fromBcs(data); },
1601
+ bcs: ManagerFlashRemoveLiquidityEvent.bcs,
1602
+ fromJSONField: function (field) { return ManagerFlashRemoveLiquidityEvent.fromJSONField(field); },
1603
+ fromJSON: function (json) { return ManagerFlashRemoveLiquidityEvent.fromJSON(json); },
1604
+ fromSuiParsedData: function (content) { return ManagerFlashRemoveLiquidityEvent.fromSuiParsedData(content); },
1605
+ fromSuiObjectData: function (content) { return ManagerFlashRemoveLiquidityEvent.fromSuiObjectData(content); },
1606
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1607
+ return [2 /*return*/, ManagerFlashRemoveLiquidityEvent.fetch(client, id)];
1608
+ }); }); },
1609
+ new: function (fields) {
1610
+ return new ManagerFlashRemoveLiquidityEvent([], fields);
1611
+ },
1612
+ kind: "StructClassReified",
1613
+ };
1614
+ };
1615
+ Object.defineProperty(ManagerFlashRemoveLiquidityEvent, "r", {
1616
+ get: function () {
1617
+ return ManagerFlashRemoveLiquidityEvent.reified();
1618
+ },
1619
+ enumerable: false,
1620
+ configurable: true
1621
+ });
1622
+ ManagerFlashRemoveLiquidityEvent.phantom = function () {
1623
+ return (0, reified_1.phantom)(ManagerFlashRemoveLiquidityEvent.reified());
1624
+ };
1625
+ Object.defineProperty(ManagerFlashRemoveLiquidityEvent, "p", {
1626
+ get: function () {
1627
+ return ManagerFlashRemoveLiquidityEvent.phantom();
1628
+ },
1629
+ enumerable: false,
1630
+ configurable: true
1631
+ });
1632
+ Object.defineProperty(ManagerFlashRemoveLiquidityEvent, "bcs", {
1633
+ get: function () {
1634
+ return bcs_1.bcs.struct("ManagerFlashRemoveLiquidityEvent", {
1635
+ index: bcs_1.bcs.u64(),
1636
+ liquidity_token: structs_1.TypeName.bcs,
1637
+ price: bcs_1.bcs.u64(),
1638
+ price_decimal: bcs_1.bcs.u64(),
1639
+ remove_amount: bcs_1.bcs.u64(),
1640
+ removed_usd: bcs_1.bcs.u64(),
1641
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1642
+ });
1643
+ },
1644
+ enumerable: false,
1645
+ configurable: true
1646
+ });
1647
+ ManagerFlashRemoveLiquidityEvent.fromFields = function (fields) {
1648
+ return ManagerFlashRemoveLiquidityEvent.reified().new({
1649
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
1650
+ liquidityToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.liquidity_token),
1651
+ price: (0, reified_1.decodeFromFields)("u64", fields.price),
1652
+ priceDecimal: (0, reified_1.decodeFromFields)("u64", fields.price_decimal),
1653
+ removeAmount: (0, reified_1.decodeFromFields)("u64", fields.remove_amount),
1654
+ removedUsd: (0, reified_1.decodeFromFields)("u64", fields.removed_usd),
1655
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1656
+ });
1657
+ };
1658
+ ManagerFlashRemoveLiquidityEvent.fromFieldsWithTypes = function (item) {
1659
+ if (!isManagerFlashRemoveLiquidityEvent(item.type)) {
1660
+ throw new Error("not a ManagerFlashRemoveLiquidityEvent type");
1661
+ }
1662
+ return ManagerFlashRemoveLiquidityEvent.reified().new({
1663
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1664
+ liquidityToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.liquidity_token),
1665
+ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price),
1666
+ priceDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_decimal),
1667
+ removeAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.remove_amount),
1668
+ removedUsd: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.removed_usd),
1669
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1670
+ });
1671
+ };
1672
+ ManagerFlashRemoveLiquidityEvent.fromBcs = function (data) {
1673
+ return ManagerFlashRemoveLiquidityEvent.fromFields(ManagerFlashRemoveLiquidityEvent.bcs.parse(data));
1674
+ };
1675
+ ManagerFlashRemoveLiquidityEvent.prototype.toJSONField = function () {
1676
+ return {
1677
+ index: this.index.toString(),
1678
+ liquidityToken: this.liquidityToken.toJSONField(),
1679
+ price: this.price.toString(),
1680
+ priceDecimal: this.priceDecimal.toString(),
1681
+ removeAmount: this.removeAmount.toString(),
1682
+ removedUsd: this.removedUsd.toString(),
1683
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1684
+ };
1685
+ };
1686
+ ManagerFlashRemoveLiquidityEvent.prototype.toJSON = function () {
1687
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1688
+ };
1689
+ ManagerFlashRemoveLiquidityEvent.fromJSONField = function (field) {
1690
+ return ManagerFlashRemoveLiquidityEvent.reified().new({
1691
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1692
+ liquidityToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.liquidityToken),
1693
+ price: (0, reified_1.decodeFromJSONField)("u64", field.price),
1694
+ priceDecimal: (0, reified_1.decodeFromJSONField)("u64", field.priceDecimal),
1695
+ removeAmount: (0, reified_1.decodeFromJSONField)("u64", field.removeAmount),
1696
+ removedUsd: (0, reified_1.decodeFromJSONField)("u64", field.removedUsd),
1697
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1698
+ });
1699
+ };
1700
+ ManagerFlashRemoveLiquidityEvent.fromJSON = function (json) {
1701
+ if (json.$typeName !== ManagerFlashRemoveLiquidityEvent.$typeName) {
1702
+ throw new Error("not a WithTwoGenerics json object");
1703
+ }
1704
+ return ManagerFlashRemoveLiquidityEvent.fromJSONField(json);
1705
+ };
1706
+ ManagerFlashRemoveLiquidityEvent.fromSuiParsedData = function (content) {
1707
+ if (content.dataType !== "moveObject") {
1708
+ throw new Error("not an object");
1709
+ }
1710
+ if (!isManagerFlashRemoveLiquidityEvent(content.type)) {
1711
+ throw new Error("object at ".concat(content.fields.id, " is not a ManagerFlashRemoveLiquidityEvent object"));
1712
+ }
1713
+ return ManagerFlashRemoveLiquidityEvent.fromFieldsWithTypes(content);
1714
+ };
1715
+ ManagerFlashRemoveLiquidityEvent.fromSuiObjectData = function (data) {
1716
+ if (data.bcs) {
1717
+ if (data.bcs.dataType !== "moveObject" || !isManagerFlashRemoveLiquidityEvent(data.bcs.type)) {
1718
+ throw new Error("object at is not a ManagerFlashRemoveLiquidityEvent object");
1719
+ }
1720
+ return ManagerFlashRemoveLiquidityEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1721
+ }
1722
+ if (data.content) {
1723
+ return ManagerFlashRemoveLiquidityEvent.fromSuiParsedData(data.content);
1724
+ }
1725
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1726
+ };
1727
+ ManagerFlashRemoveLiquidityEvent.fetch = function (client, id) {
1728
+ return __awaiter(this, void 0, void 0, function () {
1729
+ var res;
1730
+ var _a, _b;
1731
+ return __generator(this, function (_c) {
1732
+ switch (_c.label) {
1733
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1734
+ case 1:
1735
+ res = _c.sent();
1736
+ if (res.error) {
1737
+ throw new Error("error fetching ManagerFlashRemoveLiquidityEvent object at id ".concat(id, ": ").concat(res.error.code));
1738
+ }
1739
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isManagerFlashRemoveLiquidityEvent(res.data.bcs.type)) {
1740
+ throw new Error("object at id ".concat(id, " is not a ManagerFlashRemoveLiquidityEvent object"));
1741
+ }
1742
+ return [2 /*return*/, ManagerFlashRemoveLiquidityEvent.fromSuiObjectData(res.data)];
1743
+ }
1744
+ });
1745
+ });
1746
+ };
1747
+ ManagerFlashRemoveLiquidityEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::ManagerFlashRemoveLiquidityEvent");
1748
+ ManagerFlashRemoveLiquidityEvent.$numTypeParams = 0;
1749
+ ManagerFlashRemoveLiquidityEvent.$isPhantom = [];
1750
+ return ManagerFlashRemoveLiquidityEvent;
1751
+ }());
1752
+ exports.ManagerFlashRemoveLiquidityEvent = ManagerFlashRemoveLiquidityEvent;
1753
+ /* ============================== ManagerFlashRepayLiquidityEvent =============================== */
1754
+ function isManagerFlashRepayLiquidityEvent(type) {
1755
+ type = (0, util_1.compressSuiType)(type);
1756
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::ManagerFlashRepayLiquidityEvent");
1757
+ }
1758
+ var ManagerFlashRepayLiquidityEvent = /** @class */ (function () {
1759
+ function ManagerFlashRepayLiquidityEvent(typeArgs, fields) {
1760
+ this.__StructClass = true;
1761
+ this.$typeName = ManagerFlashRepayLiquidityEvent.$typeName;
1762
+ this.$isPhantom = ManagerFlashRepayLiquidityEvent.$isPhantom;
1763
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ManagerFlashRepayLiquidityEvent.$typeName], __read(typeArgs), false));
1764
+ this.$typeArgs = typeArgs;
1765
+ this.index = fields.index;
1766
+ this.liquidityToken = fields.liquidityToken;
1767
+ this.price = fields.price;
1768
+ this.priceDecimal = fields.priceDecimal;
1769
+ this.repaidAmount = fields.repaidAmount;
1770
+ this.repaidUsd = fields.repaidUsd;
1771
+ this.u64Padding = fields.u64Padding;
1772
+ }
1773
+ ManagerFlashRepayLiquidityEvent.reified = function () {
1774
+ var _this = this;
1775
+ return {
1776
+ typeName: ManagerFlashRepayLiquidityEvent.$typeName,
1777
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ManagerFlashRepayLiquidityEvent.$typeName], [], false)),
1778
+ typeArgs: [],
1779
+ isPhantom: ManagerFlashRepayLiquidityEvent.$isPhantom,
1780
+ reifiedTypeArgs: [],
1781
+ fromFields: function (fields) { return ManagerFlashRepayLiquidityEvent.fromFields(fields); },
1782
+ fromFieldsWithTypes: function (item) { return ManagerFlashRepayLiquidityEvent.fromFieldsWithTypes(item); },
1783
+ fromBcs: function (data) { return ManagerFlashRepayLiquidityEvent.fromBcs(data); },
1784
+ bcs: ManagerFlashRepayLiquidityEvent.bcs,
1785
+ fromJSONField: function (field) { return ManagerFlashRepayLiquidityEvent.fromJSONField(field); },
1786
+ fromJSON: function (json) { return ManagerFlashRepayLiquidityEvent.fromJSON(json); },
1787
+ fromSuiParsedData: function (content) { return ManagerFlashRepayLiquidityEvent.fromSuiParsedData(content); },
1788
+ fromSuiObjectData: function (content) { return ManagerFlashRepayLiquidityEvent.fromSuiObjectData(content); },
1789
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1790
+ return [2 /*return*/, ManagerFlashRepayLiquidityEvent.fetch(client, id)];
1791
+ }); }); },
1792
+ new: function (fields) {
1793
+ return new ManagerFlashRepayLiquidityEvent([], fields);
1794
+ },
1795
+ kind: "StructClassReified",
1796
+ };
1797
+ };
1798
+ Object.defineProperty(ManagerFlashRepayLiquidityEvent, "r", {
1799
+ get: function () {
1800
+ return ManagerFlashRepayLiquidityEvent.reified();
1801
+ },
1802
+ enumerable: false,
1803
+ configurable: true
1804
+ });
1805
+ ManagerFlashRepayLiquidityEvent.phantom = function () {
1806
+ return (0, reified_1.phantom)(ManagerFlashRepayLiquidityEvent.reified());
1807
+ };
1808
+ Object.defineProperty(ManagerFlashRepayLiquidityEvent, "p", {
1809
+ get: function () {
1810
+ return ManagerFlashRepayLiquidityEvent.phantom();
1811
+ },
1812
+ enumerable: false,
1813
+ configurable: true
1814
+ });
1815
+ Object.defineProperty(ManagerFlashRepayLiquidityEvent, "bcs", {
1816
+ get: function () {
1817
+ return bcs_1.bcs.struct("ManagerFlashRepayLiquidityEvent", {
1818
+ index: bcs_1.bcs.u64(),
1819
+ liquidity_token: structs_1.TypeName.bcs,
1820
+ price: bcs_1.bcs.u64(),
1821
+ price_decimal: bcs_1.bcs.u64(),
1822
+ repaid_amount: bcs_1.bcs.u64(),
1823
+ repaid_usd: bcs_1.bcs.u64(),
1824
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1825
+ });
1826
+ },
1827
+ enumerable: false,
1828
+ configurable: true
1829
+ });
1830
+ ManagerFlashRepayLiquidityEvent.fromFields = function (fields) {
1831
+ return ManagerFlashRepayLiquidityEvent.reified().new({
1832
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
1833
+ liquidityToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.liquidity_token),
1834
+ price: (0, reified_1.decodeFromFields)("u64", fields.price),
1835
+ priceDecimal: (0, reified_1.decodeFromFields)("u64", fields.price_decimal),
1836
+ repaidAmount: (0, reified_1.decodeFromFields)("u64", fields.repaid_amount),
1837
+ repaidUsd: (0, reified_1.decodeFromFields)("u64", fields.repaid_usd),
1838
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1839
+ });
1840
+ };
1841
+ ManagerFlashRepayLiquidityEvent.fromFieldsWithTypes = function (item) {
1842
+ if (!isManagerFlashRepayLiquidityEvent(item.type)) {
1843
+ throw new Error("not a ManagerFlashRepayLiquidityEvent type");
1844
+ }
1845
+ return ManagerFlashRepayLiquidityEvent.reified().new({
1846
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1847
+ liquidityToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.liquidity_token),
1848
+ price: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price),
1849
+ priceDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_decimal),
1850
+ repaidAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.repaid_amount),
1851
+ repaidUsd: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.repaid_usd),
1852
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1853
+ });
1854
+ };
1855
+ ManagerFlashRepayLiquidityEvent.fromBcs = function (data) {
1856
+ return ManagerFlashRepayLiquidityEvent.fromFields(ManagerFlashRepayLiquidityEvent.bcs.parse(data));
1857
+ };
1858
+ ManagerFlashRepayLiquidityEvent.prototype.toJSONField = function () {
1859
+ return {
1860
+ index: this.index.toString(),
1861
+ liquidityToken: this.liquidityToken.toJSONField(),
1862
+ price: this.price.toString(),
1863
+ priceDecimal: this.priceDecimal.toString(),
1864
+ repaidAmount: this.repaidAmount.toString(),
1865
+ repaidUsd: this.repaidUsd.toString(),
1866
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1867
+ };
1868
+ };
1869
+ ManagerFlashRepayLiquidityEvent.prototype.toJSON = function () {
1072
1870
  return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1073
1871
  };
1074
- LiquidityPoolInfo.fromJSONField = function (field) {
1075
- return LiquidityPoolInfo.reified().new({
1076
- lpTokenDecimal: (0, reified_1.decodeFromJSONField)("u64", field.lpTokenDecimal),
1077
- totalShareSupply: (0, reified_1.decodeFromJSONField)("u64", field.totalShareSupply),
1078
- tvlUsd: (0, reified_1.decodeFromJSONField)("u64", field.tvlUsd),
1079
- isActive: (0, reified_1.decodeFromJSONField)("bool", field.isActive),
1872
+ ManagerFlashRepayLiquidityEvent.fromJSONField = function (field) {
1873
+ return ManagerFlashRepayLiquidityEvent.reified().new({
1874
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1875
+ liquidityToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.liquidityToken),
1876
+ price: (0, reified_1.decodeFromJSONField)("u64", field.price),
1877
+ priceDecimal: (0, reified_1.decodeFromJSONField)("u64", field.priceDecimal),
1878
+ repaidAmount: (0, reified_1.decodeFromJSONField)("u64", field.repaidAmount),
1879
+ repaidUsd: (0, reified_1.decodeFromJSONField)("u64", field.repaidUsd),
1880
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1080
1881
  });
1081
1882
  };
1082
- LiquidityPoolInfo.fromJSON = function (json) {
1083
- if (json.$typeName !== LiquidityPoolInfo.$typeName) {
1883
+ ManagerFlashRepayLiquidityEvent.fromJSON = function (json) {
1884
+ if (json.$typeName !== ManagerFlashRepayLiquidityEvent.$typeName) {
1084
1885
  throw new Error("not a WithTwoGenerics json object");
1085
1886
  }
1086
- return LiquidityPoolInfo.fromJSONField(json);
1887
+ return ManagerFlashRepayLiquidityEvent.fromJSONField(json);
1087
1888
  };
1088
- LiquidityPoolInfo.fromSuiParsedData = function (content) {
1889
+ ManagerFlashRepayLiquidityEvent.fromSuiParsedData = function (content) {
1089
1890
  if (content.dataType !== "moveObject") {
1090
1891
  throw new Error("not an object");
1091
1892
  }
1092
- if (!isLiquidityPoolInfo(content.type)) {
1093
- throw new Error("object at ".concat(content.fields.id, " is not a LiquidityPoolInfo object"));
1893
+ if (!isManagerFlashRepayLiquidityEvent(content.type)) {
1894
+ throw new Error("object at ".concat(content.fields.id, " is not a ManagerFlashRepayLiquidityEvent object"));
1094
1895
  }
1095
- return LiquidityPoolInfo.fromFieldsWithTypes(content);
1896
+ return ManagerFlashRepayLiquidityEvent.fromFieldsWithTypes(content);
1096
1897
  };
1097
- LiquidityPoolInfo.fetch = function (client, id) {
1898
+ ManagerFlashRepayLiquidityEvent.fromSuiObjectData = function (data) {
1899
+ if (data.bcs) {
1900
+ if (data.bcs.dataType !== "moveObject" || !isManagerFlashRepayLiquidityEvent(data.bcs.type)) {
1901
+ throw new Error("object at is not a ManagerFlashRepayLiquidityEvent object");
1902
+ }
1903
+ return ManagerFlashRepayLiquidityEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1904
+ }
1905
+ if (data.content) {
1906
+ return ManagerFlashRepayLiquidityEvent.fromSuiParsedData(data.content);
1907
+ }
1908
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1909
+ };
1910
+ ManagerFlashRepayLiquidityEvent.fetch = function (client, id) {
1098
1911
  return __awaiter(this, void 0, void 0, function () {
1099
1912
  var res;
1100
1913
  var _a, _b;
@@ -1104,29 +1917,32 @@ var LiquidityPoolInfo = /** @class */ (function () {
1104
1917
  case 1:
1105
1918
  res = _c.sent();
1106
1919
  if (res.error) {
1107
- throw new Error("error fetching LiquidityPoolInfo object at id ".concat(id, ": ").concat(res.error.code));
1920
+ throw new Error("error fetching ManagerFlashRepayLiquidityEvent object at id ".concat(id, ": ").concat(res.error.code));
1108
1921
  }
1109
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isLiquidityPoolInfo(res.data.bcs.type)) {
1110
- throw new Error("object at id ".concat(id, " is not a LiquidityPoolInfo object"));
1922
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isManagerFlashRepayLiquidityEvent(res.data.bcs.type)) {
1923
+ throw new Error("object at id ".concat(id, " is not a ManagerFlashRepayLiquidityEvent object"));
1111
1924
  }
1112
- return [2 /*return*/, LiquidityPoolInfo.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1925
+ return [2 /*return*/, ManagerFlashRepayLiquidityEvent.fromSuiObjectData(res.data)];
1113
1926
  }
1114
1927
  });
1115
1928
  });
1116
1929
  };
1117
- LiquidityPoolInfo.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::LiquidityPoolInfo";
1118
- LiquidityPoolInfo.$numTypeParams = 0;
1119
- return LiquidityPoolInfo;
1930
+ ManagerFlashRepayLiquidityEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::ManagerFlashRepayLiquidityEvent");
1931
+ ManagerFlashRepayLiquidityEvent.$numTypeParams = 0;
1932
+ ManagerFlashRepayLiquidityEvent.$isPhantom = [];
1933
+ return ManagerFlashRepayLiquidityEvent;
1120
1934
  }());
1121
- exports.LiquidityPoolInfo = LiquidityPoolInfo;
1935
+ exports.ManagerFlashRepayLiquidityEvent = ManagerFlashRepayLiquidityEvent;
1122
1936
  /* ============================== MarginConfig =============================== */
1123
1937
  function isMarginConfig(type) {
1124
1938
  type = (0, util_1.compressSuiType)(type);
1125
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::MarginConfig";
1939
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::MarginConfig");
1126
1940
  }
1127
1941
  var MarginConfig = /** @class */ (function () {
1128
1942
  function MarginConfig(typeArgs, fields) {
1943
+ this.__StructClass = true;
1129
1944
  this.$typeName = MarginConfig.$typeName;
1945
+ this.$isPhantom = MarginConfig.$isPhantom;
1130
1946
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MarginConfig.$typeName], __read(typeArgs), false));
1131
1947
  this.$typeArgs = typeArgs;
1132
1948
  this.basicBorrowRate0 = fields.basicBorrowRate0;
@@ -1144,6 +1960,7 @@ var MarginConfig = /** @class */ (function () {
1144
1960
  typeName: MarginConfig.$typeName,
1145
1961
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MarginConfig.$typeName], [], false)),
1146
1962
  typeArgs: [],
1963
+ isPhantom: MarginConfig.$isPhantom,
1147
1964
  reifiedTypeArgs: [],
1148
1965
  fromFields: function (fields) { return MarginConfig.fromFields(fields); },
1149
1966
  fromFieldsWithTypes: function (item) { return MarginConfig.fromFieldsWithTypes(item); },
@@ -1152,6 +1969,7 @@ var MarginConfig = /** @class */ (function () {
1152
1969
  fromJSONField: function (field) { return MarginConfig.fromJSONField(field); },
1153
1970
  fromJSON: function (json) { return MarginConfig.fromJSON(json); },
1154
1971
  fromSuiParsedData: function (content) { return MarginConfig.fromSuiParsedData(content); },
1972
+ fromSuiObjectData: function (content) { return MarginConfig.fromSuiObjectData(content); },
1155
1973
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1156
1974
  return [2 /*return*/, MarginConfig.fetch(client, id)];
1157
1975
  }); }); },
@@ -1266,6 +2084,18 @@ var MarginConfig = /** @class */ (function () {
1266
2084
  }
1267
2085
  return MarginConfig.fromFieldsWithTypes(content);
1268
2086
  };
2087
+ MarginConfig.fromSuiObjectData = function (data) {
2088
+ if (data.bcs) {
2089
+ if (data.bcs.dataType !== "moveObject" || !isMarginConfig(data.bcs.type)) {
2090
+ throw new Error("object at is not a MarginConfig object");
2091
+ }
2092
+ return MarginConfig.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2093
+ }
2094
+ if (data.content) {
2095
+ return MarginConfig.fromSuiParsedData(data.content);
2096
+ }
2097
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2098
+ };
1269
2099
  MarginConfig.fetch = function (client, id) {
1270
2100
  return __awaiter(this, void 0, void 0, function () {
1271
2101
  var res;
@@ -1281,24 +2111,27 @@ var MarginConfig = /** @class */ (function () {
1281
2111
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMarginConfig(res.data.bcs.type)) {
1282
2112
  throw new Error("object at id ".concat(id, " is not a MarginConfig object"));
1283
2113
  }
1284
- return [2 /*return*/, MarginConfig.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2114
+ return [2 /*return*/, MarginConfig.fromSuiObjectData(res.data)];
1285
2115
  }
1286
2116
  });
1287
2117
  });
1288
2118
  };
1289
- MarginConfig.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::MarginConfig";
2119
+ MarginConfig.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::MarginConfig");
1290
2120
  MarginConfig.$numTypeParams = 0;
2121
+ MarginConfig.$isPhantom = [];
1291
2122
  return MarginConfig;
1292
2123
  }());
1293
2124
  exports.MarginConfig = MarginConfig;
1294
2125
  /* ============================== MintLpEvent =============================== */
1295
2126
  function isMintLpEvent(type) {
1296
2127
  type = (0, util_1.compressSuiType)(type);
1297
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::MintLpEvent";
2128
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::MintLpEvent");
1298
2129
  }
1299
2130
  var MintLpEvent = /** @class */ (function () {
1300
2131
  function MintLpEvent(typeArgs, fields) {
2132
+ this.__StructClass = true;
1301
2133
  this.$typeName = MintLpEvent.$typeName;
2134
+ this.$isPhantom = MintLpEvent.$isPhantom;
1302
2135
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([MintLpEvent.$typeName], __read(typeArgs), false));
1303
2136
  this.$typeArgs = typeArgs;
1304
2137
  this.sender = fields.sender;
@@ -1317,6 +2150,7 @@ var MintLpEvent = /** @class */ (function () {
1317
2150
  typeName: MintLpEvent.$typeName,
1318
2151
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([MintLpEvent.$typeName], [], false)),
1319
2152
  typeArgs: [],
2153
+ isPhantom: MintLpEvent.$isPhantom,
1320
2154
  reifiedTypeArgs: [],
1321
2155
  fromFields: function (fields) { return MintLpEvent.fromFields(fields); },
1322
2156
  fromFieldsWithTypes: function (item) { return MintLpEvent.fromFieldsWithTypes(item); },
@@ -1325,6 +2159,7 @@ var MintLpEvent = /** @class */ (function () {
1325
2159
  fromJSONField: function (field) { return MintLpEvent.fromJSONField(field); },
1326
2160
  fromJSON: function (json) { return MintLpEvent.fromJSON(json); },
1327
2161
  fromSuiParsedData: function (content) { return MintLpEvent.fromSuiParsedData(content); },
2162
+ fromSuiObjectData: function (content) { return MintLpEvent.fromSuiObjectData(content); },
1328
2163
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1329
2164
  return [2 /*return*/, MintLpEvent.fetch(client, id)];
1330
2165
  }); }); },
@@ -1354,7 +2189,10 @@ var MintLpEvent = /** @class */ (function () {
1354
2189
  Object.defineProperty(MintLpEvent, "bcs", {
1355
2190
  get: function () {
1356
2191
  return bcs_1.bcs.struct("MintLpEvent", {
1357
- 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); } }),
2192
+ sender: bcs_1.bcs.bytes(32).transform({
2193
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2194
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2195
+ }),
1358
2196
  index: bcs_1.bcs.u64(),
1359
2197
  liquidity_token_type: structs_1.TypeName.bcs,
1360
2198
  deposit_amount: bcs_1.bcs.u64(),
@@ -1444,6 +2282,18 @@ var MintLpEvent = /** @class */ (function () {
1444
2282
  }
1445
2283
  return MintLpEvent.fromFieldsWithTypes(content);
1446
2284
  };
2285
+ MintLpEvent.fromSuiObjectData = function (data) {
2286
+ if (data.bcs) {
2287
+ if (data.bcs.dataType !== "moveObject" || !isMintLpEvent(data.bcs.type)) {
2288
+ throw new Error("object at is not a MintLpEvent object");
2289
+ }
2290
+ return MintLpEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2291
+ }
2292
+ if (data.content) {
2293
+ return MintLpEvent.fromSuiParsedData(data.content);
2294
+ }
2295
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2296
+ };
1447
2297
  MintLpEvent.fetch = function (client, id) {
1448
2298
  return __awaiter(this, void 0, void 0, function () {
1449
2299
  var res;
@@ -1459,24 +2309,27 @@ var MintLpEvent = /** @class */ (function () {
1459
2309
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isMintLpEvent(res.data.bcs.type)) {
1460
2310
  throw new Error("object at id ".concat(id, " is not a MintLpEvent object"));
1461
2311
  }
1462
- return [2 /*return*/, MintLpEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2312
+ return [2 /*return*/, MintLpEvent.fromSuiObjectData(res.data)];
1463
2313
  }
1464
2314
  });
1465
2315
  });
1466
2316
  };
1467
- MintLpEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::MintLpEvent";
2317
+ MintLpEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::MintLpEvent");
1468
2318
  MintLpEvent.$numTypeParams = 0;
2319
+ MintLpEvent.$isPhantom = [];
1469
2320
  return MintLpEvent;
1470
2321
  }());
1471
2322
  exports.MintLpEvent = MintLpEvent;
1472
2323
  /* ============================== NewLiquidityPoolEvent =============================== */
1473
2324
  function isNewLiquidityPoolEvent(type) {
1474
2325
  type = (0, util_1.compressSuiType)(type);
1475
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::NewLiquidityPoolEvent";
2326
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::NewLiquidityPoolEvent");
1476
2327
  }
1477
2328
  var NewLiquidityPoolEvent = /** @class */ (function () {
1478
2329
  function NewLiquidityPoolEvent(typeArgs, fields) {
2330
+ this.__StructClass = true;
1479
2331
  this.$typeName = NewLiquidityPoolEvent.$typeName;
2332
+ this.$isPhantom = NewLiquidityPoolEvent.$isPhantom;
1480
2333
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewLiquidityPoolEvent.$typeName], __read(typeArgs), false));
1481
2334
  this.$typeArgs = typeArgs;
1482
2335
  this.sender = fields.sender;
@@ -1491,6 +2344,7 @@ var NewLiquidityPoolEvent = /** @class */ (function () {
1491
2344
  typeName: NewLiquidityPoolEvent.$typeName,
1492
2345
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewLiquidityPoolEvent.$typeName], [], false)),
1493
2346
  typeArgs: [],
2347
+ isPhantom: NewLiquidityPoolEvent.$isPhantom,
1494
2348
  reifiedTypeArgs: [],
1495
2349
  fromFields: function (fields) { return NewLiquidityPoolEvent.fromFields(fields); },
1496
2350
  fromFieldsWithTypes: function (item) { return NewLiquidityPoolEvent.fromFieldsWithTypes(item); },
@@ -1499,6 +2353,7 @@ var NewLiquidityPoolEvent = /** @class */ (function () {
1499
2353
  fromJSONField: function (field) { return NewLiquidityPoolEvent.fromJSONField(field); },
1500
2354
  fromJSON: function (json) { return NewLiquidityPoolEvent.fromJSON(json); },
1501
2355
  fromSuiParsedData: function (content) { return NewLiquidityPoolEvent.fromSuiParsedData(content); },
2356
+ fromSuiObjectData: function (content) { return NewLiquidityPoolEvent.fromSuiObjectData(content); },
1502
2357
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1503
2358
  return [2 /*return*/, NewLiquidityPoolEvent.fetch(client, id)];
1504
2359
  }); }); },
@@ -1528,7 +2383,10 @@ var NewLiquidityPoolEvent = /** @class */ (function () {
1528
2383
  Object.defineProperty(NewLiquidityPoolEvent, "bcs", {
1529
2384
  get: function () {
1530
2385
  return bcs_1.bcs.struct("NewLiquidityPoolEvent", {
1531
- 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); } }),
2386
+ sender: bcs_1.bcs.bytes(32).transform({
2387
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2388
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2389
+ }),
1532
2390
  index: bcs_1.bcs.u64(),
1533
2391
  lp_token_type: structs_1.TypeName.bcs,
1534
2392
  lp_token_decimal: bcs_1.bcs.u64(),
@@ -1598,6 +2456,18 @@ var NewLiquidityPoolEvent = /** @class */ (function () {
1598
2456
  }
1599
2457
  return NewLiquidityPoolEvent.fromFieldsWithTypes(content);
1600
2458
  };
2459
+ NewLiquidityPoolEvent.fromSuiObjectData = function (data) {
2460
+ if (data.bcs) {
2461
+ if (data.bcs.dataType !== "moveObject" || !isNewLiquidityPoolEvent(data.bcs.type)) {
2462
+ throw new Error("object at is not a NewLiquidityPoolEvent object");
2463
+ }
2464
+ return NewLiquidityPoolEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2465
+ }
2466
+ if (data.content) {
2467
+ return NewLiquidityPoolEvent.fromSuiParsedData(data.content);
2468
+ }
2469
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2470
+ };
1601
2471
  NewLiquidityPoolEvent.fetch = function (client, id) {
1602
2472
  return __awaiter(this, void 0, void 0, function () {
1603
2473
  var res;
@@ -1613,134 +2483,178 @@ var NewLiquidityPoolEvent = /** @class */ (function () {
1613
2483
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewLiquidityPoolEvent(res.data.bcs.type)) {
1614
2484
  throw new Error("object at id ".concat(id, " is not a NewLiquidityPoolEvent object"));
1615
2485
  }
1616
- return [2 /*return*/, NewLiquidityPoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2486
+ return [2 /*return*/, NewLiquidityPoolEvent.fromSuiObjectData(res.data)];
1617
2487
  }
1618
2488
  });
1619
2489
  });
1620
2490
  };
1621
- NewLiquidityPoolEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::NewLiquidityPoolEvent";
2491
+ NewLiquidityPoolEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::NewLiquidityPoolEvent");
1622
2492
  NewLiquidityPoolEvent.$numTypeParams = 0;
2493
+ NewLiquidityPoolEvent.$isPhantom = [];
1623
2494
  return NewLiquidityPoolEvent;
1624
2495
  }());
1625
2496
  exports.NewLiquidityPoolEvent = NewLiquidityPoolEvent;
1626
- /* ============================== Registry =============================== */
1627
- function isRegistry(type) {
2497
+ /* ============================== RemoveLiquidityTokenProcess =============================== */
2498
+ function isRemoveLiquidityTokenProcess(type) {
1628
2499
  type = (0, util_1.compressSuiType)(type);
1629
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::Registry";
2500
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::RemoveLiquidityTokenProcess");
1630
2501
  }
1631
- var Registry = /** @class */ (function () {
1632
- function Registry(typeArgs, fields) {
1633
- this.$typeName = Registry.$typeName;
1634
- this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Registry.$typeName], __read(typeArgs), false));
2502
+ var RemoveLiquidityTokenProcess = /** @class */ (function () {
2503
+ function RemoveLiquidityTokenProcess(typeArgs, fields) {
2504
+ this.__StructClass = true;
2505
+ this.$typeName = RemoveLiquidityTokenProcess.$typeName;
2506
+ this.$isPhantom = RemoveLiquidityTokenProcess.$isPhantom;
2507
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveLiquidityTokenProcess.$typeName], __read(typeArgs), false));
1635
2508
  this.$typeArgs = typeArgs;
1636
- this.id = fields.id;
1637
- this.numPool = fields.numPool;
1638
- this.liquidityPoolRegistry = fields.liquidityPoolRegistry;
2509
+ this.liquidityToken = fields.liquidityToken;
2510
+ this.removedPositionsBaseToken = fields.removedPositionsBaseToken;
2511
+ this.removedOrdersBaseToken = fields.removedOrdersBaseToken;
2512
+ this.removedTokenOracleId = fields.removedTokenOracleId;
2513
+ this.removedUsd = fields.removedUsd;
2514
+ this.repaidUsd = fields.repaidUsd;
2515
+ this.status = fields.status;
1639
2516
  }
1640
- Registry.reified = function () {
2517
+ RemoveLiquidityTokenProcess.reified = function () {
1641
2518
  var _this = this;
1642
2519
  return {
1643
- typeName: Registry.$typeName,
1644
- fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Registry.$typeName], [], false)),
2520
+ typeName: RemoveLiquidityTokenProcess.$typeName,
2521
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveLiquidityTokenProcess.$typeName], [], false)),
1645
2522
  typeArgs: [],
2523
+ isPhantom: RemoveLiquidityTokenProcess.$isPhantom,
1646
2524
  reifiedTypeArgs: [],
1647
- fromFields: function (fields) { return Registry.fromFields(fields); },
1648
- fromFieldsWithTypes: function (item) { return Registry.fromFieldsWithTypes(item); },
1649
- fromBcs: function (data) { return Registry.fromBcs(data); },
1650
- bcs: Registry.bcs,
1651
- fromJSONField: function (field) { return Registry.fromJSONField(field); },
1652
- fromJSON: function (json) { return Registry.fromJSON(json); },
1653
- fromSuiParsedData: function (content) { return Registry.fromSuiParsedData(content); },
2525
+ fromFields: function (fields) { return RemoveLiquidityTokenProcess.fromFields(fields); },
2526
+ fromFieldsWithTypes: function (item) { return RemoveLiquidityTokenProcess.fromFieldsWithTypes(item); },
2527
+ fromBcs: function (data) { return RemoveLiquidityTokenProcess.fromBcs(data); },
2528
+ bcs: RemoveLiquidityTokenProcess.bcs,
2529
+ fromJSONField: function (field) { return RemoveLiquidityTokenProcess.fromJSONField(field); },
2530
+ fromJSON: function (json) { return RemoveLiquidityTokenProcess.fromJSON(json); },
2531
+ fromSuiParsedData: function (content) { return RemoveLiquidityTokenProcess.fromSuiParsedData(content); },
2532
+ fromSuiObjectData: function (content) { return RemoveLiquidityTokenProcess.fromSuiObjectData(content); },
1654
2533
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1655
- return [2 /*return*/, Registry.fetch(client, id)];
2534
+ return [2 /*return*/, RemoveLiquidityTokenProcess.fetch(client, id)];
1656
2535
  }); }); },
1657
2536
  new: function (fields) {
1658
- return new Registry([], fields);
2537
+ return new RemoveLiquidityTokenProcess([], fields);
1659
2538
  },
1660
2539
  kind: "StructClassReified",
1661
2540
  };
1662
2541
  };
1663
- Object.defineProperty(Registry, "r", {
2542
+ Object.defineProperty(RemoveLiquidityTokenProcess, "r", {
1664
2543
  get: function () {
1665
- return Registry.reified();
2544
+ return RemoveLiquidityTokenProcess.reified();
1666
2545
  },
1667
2546
  enumerable: false,
1668
2547
  configurable: true
1669
2548
  });
1670
- Registry.phantom = function () {
1671
- return (0, reified_1.phantom)(Registry.reified());
2549
+ RemoveLiquidityTokenProcess.phantom = function () {
2550
+ return (0, reified_1.phantom)(RemoveLiquidityTokenProcess.reified());
1672
2551
  };
1673
- Object.defineProperty(Registry, "p", {
2552
+ Object.defineProperty(RemoveLiquidityTokenProcess, "p", {
1674
2553
  get: function () {
1675
- return Registry.phantom();
2554
+ return RemoveLiquidityTokenProcess.phantom();
1676
2555
  },
1677
2556
  enumerable: false,
1678
2557
  configurable: true
1679
2558
  });
1680
- Object.defineProperty(Registry, "bcs", {
2559
+ Object.defineProperty(RemoveLiquidityTokenProcess, "bcs", {
1681
2560
  get: function () {
1682
- return bcs_1.bcs.struct("Registry", {
1683
- id: structs_2.UID.bcs,
1684
- num_pool: bcs_1.bcs.u64(),
1685
- liquidity_pool_registry: structs_2.UID.bcs,
2561
+ return bcs_1.bcs.struct("RemoveLiquidityTokenProcess", {
2562
+ liquidity_token: structs_1.TypeName.bcs,
2563
+ removed_positions_base_token: bcs_1.bcs.vector(structs_1.TypeName.bcs),
2564
+ removed_orders_base_token: bcs_1.bcs.vector(structs_1.TypeName.bcs),
2565
+ removed_token_oracle_id: bcs_1.bcs.bytes(32).transform({
2566
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2567
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2568
+ }),
2569
+ removed_usd: bcs_1.bcs.u64(),
2570
+ repaid_usd: bcs_1.bcs.u64(),
2571
+ status: bcs_1.bcs.u64(),
1686
2572
  });
1687
2573
  },
1688
2574
  enumerable: false,
1689
2575
  configurable: true
1690
2576
  });
1691
- Registry.fromFields = function (fields) {
1692
- return Registry.reified().new({
1693
- id: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.id),
1694
- numPool: (0, reified_1.decodeFromFields)("u64", fields.num_pool),
1695
- liquidityPoolRegistry: (0, reified_1.decodeFromFields)(structs_2.UID.reified(), fields.liquidity_pool_registry),
2577
+ RemoveLiquidityTokenProcess.fromFields = function (fields) {
2578
+ return RemoveLiquidityTokenProcess.reified().new({
2579
+ liquidityToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.liquidity_token),
2580
+ removedPositionsBaseToken: (0, reified_1.decodeFromFields)(reified.vector(structs_1.TypeName.reified()), fields.removed_positions_base_token),
2581
+ removedOrdersBaseToken: (0, reified_1.decodeFromFields)(reified.vector(structs_1.TypeName.reified()), fields.removed_orders_base_token),
2582
+ removedTokenOracleId: (0, reified_1.decodeFromFields)("address", fields.removed_token_oracle_id),
2583
+ removedUsd: (0, reified_1.decodeFromFields)("u64", fields.removed_usd),
2584
+ repaidUsd: (0, reified_1.decodeFromFields)("u64", fields.repaid_usd),
2585
+ status: (0, reified_1.decodeFromFields)("u64", fields.status),
1696
2586
  });
1697
2587
  };
1698
- Registry.fromFieldsWithTypes = function (item) {
1699
- if (!isRegistry(item.type)) {
1700
- throw new Error("not a Registry type");
2588
+ RemoveLiquidityTokenProcess.fromFieldsWithTypes = function (item) {
2589
+ if (!isRemoveLiquidityTokenProcess(item.type)) {
2590
+ throw new Error("not a RemoveLiquidityTokenProcess type");
1701
2591
  }
1702
- return Registry.reified().new({
1703
- id: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.id),
1704
- numPool: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.num_pool),
1705
- liquidityPoolRegistry: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.UID.reified(), item.fields.liquidity_pool_registry),
2592
+ return RemoveLiquidityTokenProcess.reified().new({
2593
+ liquidityToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.liquidity_token),
2594
+ removedPositionsBaseToken: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_1.TypeName.reified()), item.fields.removed_positions_base_token),
2595
+ removedOrdersBaseToken: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_1.TypeName.reified()), item.fields.removed_orders_base_token),
2596
+ removedTokenOracleId: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.removed_token_oracle_id),
2597
+ removedUsd: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.removed_usd),
2598
+ repaidUsd: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.repaid_usd),
2599
+ status: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.status),
1706
2600
  });
1707
2601
  };
1708
- Registry.fromBcs = function (data) {
1709
- return Registry.fromFields(Registry.bcs.parse(data));
2602
+ RemoveLiquidityTokenProcess.fromBcs = function (data) {
2603
+ return RemoveLiquidityTokenProcess.fromFields(RemoveLiquidityTokenProcess.bcs.parse(data));
1710
2604
  };
1711
- Registry.prototype.toJSONField = function () {
2605
+ RemoveLiquidityTokenProcess.prototype.toJSONField = function () {
1712
2606
  return {
1713
- id: this.id,
1714
- numPool: this.numPool.toString(),
1715
- liquidityPoolRegistry: this.liquidityPoolRegistry,
2607
+ liquidityToken: this.liquidityToken.toJSONField(),
2608
+ removedPositionsBaseToken: (0, reified_1.fieldToJSON)("vector<".concat(structs_1.TypeName.$typeName, ">"), this.removedPositionsBaseToken),
2609
+ removedOrdersBaseToken: (0, reified_1.fieldToJSON)("vector<".concat(structs_1.TypeName.$typeName, ">"), this.removedOrdersBaseToken),
2610
+ removedTokenOracleId: this.removedTokenOracleId,
2611
+ removedUsd: this.removedUsd.toString(),
2612
+ repaidUsd: this.repaidUsd.toString(),
2613
+ status: this.status.toString(),
1716
2614
  };
1717
2615
  };
1718
- Registry.prototype.toJSON = function () {
2616
+ RemoveLiquidityTokenProcess.prototype.toJSON = function () {
1719
2617
  return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1720
2618
  };
1721
- Registry.fromJSONField = function (field) {
1722
- return Registry.reified().new({
1723
- id: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.id),
1724
- numPool: (0, reified_1.decodeFromJSONField)("u64", field.numPool),
1725
- liquidityPoolRegistry: (0, reified_1.decodeFromJSONField)(structs_2.UID.reified(), field.liquidityPoolRegistry),
2619
+ RemoveLiquidityTokenProcess.fromJSONField = function (field) {
2620
+ return RemoveLiquidityTokenProcess.reified().new({
2621
+ liquidityToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.liquidityToken),
2622
+ removedPositionsBaseToken: (0, reified_1.decodeFromJSONField)(reified.vector(structs_1.TypeName.reified()), field.removedPositionsBaseToken),
2623
+ removedOrdersBaseToken: (0, reified_1.decodeFromJSONField)(reified.vector(structs_1.TypeName.reified()), field.removedOrdersBaseToken),
2624
+ removedTokenOracleId: (0, reified_1.decodeFromJSONField)("address", field.removedTokenOracleId),
2625
+ removedUsd: (0, reified_1.decodeFromJSONField)("u64", field.removedUsd),
2626
+ repaidUsd: (0, reified_1.decodeFromJSONField)("u64", field.repaidUsd),
2627
+ status: (0, reified_1.decodeFromJSONField)("u64", field.status),
1726
2628
  });
1727
2629
  };
1728
- Registry.fromJSON = function (json) {
1729
- if (json.$typeName !== Registry.$typeName) {
2630
+ RemoveLiquidityTokenProcess.fromJSON = function (json) {
2631
+ if (json.$typeName !== RemoveLiquidityTokenProcess.$typeName) {
1730
2632
  throw new Error("not a WithTwoGenerics json object");
1731
2633
  }
1732
- return Registry.fromJSONField(json);
2634
+ return RemoveLiquidityTokenProcess.fromJSONField(json);
1733
2635
  };
1734
- Registry.fromSuiParsedData = function (content) {
2636
+ RemoveLiquidityTokenProcess.fromSuiParsedData = function (content) {
1735
2637
  if (content.dataType !== "moveObject") {
1736
2638
  throw new Error("not an object");
1737
2639
  }
1738
- if (!isRegistry(content.type)) {
1739
- throw new Error("object at ".concat(content.fields.id, " is not a Registry object"));
2640
+ if (!isRemoveLiquidityTokenProcess(content.type)) {
2641
+ throw new Error("object at ".concat(content.fields.id, " is not a RemoveLiquidityTokenProcess object"));
1740
2642
  }
1741
- return Registry.fromFieldsWithTypes(content);
2643
+ return RemoveLiquidityTokenProcess.fromFieldsWithTypes(content);
1742
2644
  };
1743
- Registry.fetch = function (client, id) {
2645
+ RemoveLiquidityTokenProcess.fromSuiObjectData = function (data) {
2646
+ if (data.bcs) {
2647
+ if (data.bcs.dataType !== "moveObject" || !isRemoveLiquidityTokenProcess(data.bcs.type)) {
2648
+ throw new Error("object at is not a RemoveLiquidityTokenProcess object");
2649
+ }
2650
+ return RemoveLiquidityTokenProcess.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2651
+ }
2652
+ if (data.content) {
2653
+ return RemoveLiquidityTokenProcess.fromSuiParsedData(data.content);
2654
+ }
2655
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2656
+ };
2657
+ RemoveLiquidityTokenProcess.fetch = function (client, id) {
1744
2658
  return __awaiter(this, void 0, void 0, function () {
1745
2659
  var res;
1746
2660
  var _a, _b;
@@ -1750,29 +2664,32 @@ var Registry = /** @class */ (function () {
1750
2664
  case 1:
1751
2665
  res = _c.sent();
1752
2666
  if (res.error) {
1753
- throw new Error("error fetching Registry object at id ".concat(id, ": ").concat(res.error.code));
2667
+ throw new Error("error fetching RemoveLiquidityTokenProcess object at id ".concat(id, ": ").concat(res.error.code));
1754
2668
  }
1755
- if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRegistry(res.data.bcs.type)) {
1756
- throw new Error("object at id ".concat(id, " is not a Registry object"));
2669
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveLiquidityTokenProcess(res.data.bcs.type)) {
2670
+ throw new Error("object at id ".concat(id, " is not a RemoveLiquidityTokenProcess object"));
1757
2671
  }
1758
- return [2 /*return*/, Registry.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2672
+ return [2 /*return*/, RemoveLiquidityTokenProcess.fromSuiObjectData(res.data)];
1759
2673
  }
1760
2674
  });
1761
2675
  });
1762
2676
  };
1763
- Registry.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::Registry";
1764
- Registry.$numTypeParams = 0;
1765
- return Registry;
2677
+ RemoveLiquidityTokenProcess.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::RemoveLiquidityTokenProcess");
2678
+ RemoveLiquidityTokenProcess.$numTypeParams = 0;
2679
+ RemoveLiquidityTokenProcess.$isPhantom = [];
2680
+ return RemoveLiquidityTokenProcess;
1766
2681
  }());
1767
- exports.Registry = Registry;
2682
+ exports.RemoveLiquidityTokenProcess = RemoveLiquidityTokenProcess;
1768
2683
  /* ============================== ResumePoolEvent =============================== */
1769
2684
  function isResumePoolEvent(type) {
1770
2685
  type = (0, util_1.compressSuiType)(type);
1771
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::ResumePoolEvent";
2686
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::ResumePoolEvent");
1772
2687
  }
1773
2688
  var ResumePoolEvent = /** @class */ (function () {
1774
2689
  function ResumePoolEvent(typeArgs, fields) {
2690
+ this.__StructClass = true;
1775
2691
  this.$typeName = ResumePoolEvent.$typeName;
2692
+ this.$isPhantom = ResumePoolEvent.$isPhantom;
1776
2693
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ResumePoolEvent.$typeName], __read(typeArgs), false));
1777
2694
  this.$typeArgs = typeArgs;
1778
2695
  this.sender = fields.sender;
@@ -1785,6 +2702,7 @@ var ResumePoolEvent = /** @class */ (function () {
1785
2702
  typeName: ResumePoolEvent.$typeName,
1786
2703
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ResumePoolEvent.$typeName], [], false)),
1787
2704
  typeArgs: [],
2705
+ isPhantom: ResumePoolEvent.$isPhantom,
1788
2706
  reifiedTypeArgs: [],
1789
2707
  fromFields: function (fields) { return ResumePoolEvent.fromFields(fields); },
1790
2708
  fromFieldsWithTypes: function (item) { return ResumePoolEvent.fromFieldsWithTypes(item); },
@@ -1793,6 +2711,7 @@ var ResumePoolEvent = /** @class */ (function () {
1793
2711
  fromJSONField: function (field) { return ResumePoolEvent.fromJSONField(field); },
1794
2712
  fromJSON: function (json) { return ResumePoolEvent.fromJSON(json); },
1795
2713
  fromSuiParsedData: function (content) { return ResumePoolEvent.fromSuiParsedData(content); },
2714
+ fromSuiObjectData: function (content) { return ResumePoolEvent.fromSuiObjectData(content); },
1796
2715
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1797
2716
  return [2 /*return*/, ResumePoolEvent.fetch(client, id)];
1798
2717
  }); }); },
@@ -1822,7 +2741,10 @@ var ResumePoolEvent = /** @class */ (function () {
1822
2741
  Object.defineProperty(ResumePoolEvent, "bcs", {
1823
2742
  get: function () {
1824
2743
  return bcs_1.bcs.struct("ResumePoolEvent", {
1825
- 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); } }),
2744
+ sender: bcs_1.bcs.bytes(32).transform({
2745
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2746
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2747
+ }),
1826
2748
  index: bcs_1.bcs.u64(),
1827
2749
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1828
2750
  });
@@ -1882,6 +2804,18 @@ var ResumePoolEvent = /** @class */ (function () {
1882
2804
  }
1883
2805
  return ResumePoolEvent.fromFieldsWithTypes(content);
1884
2806
  };
2807
+ ResumePoolEvent.fromSuiObjectData = function (data) {
2808
+ if (data.bcs) {
2809
+ if (data.bcs.dataType !== "moveObject" || !isResumePoolEvent(data.bcs.type)) {
2810
+ throw new Error("object at is not a ResumePoolEvent object");
2811
+ }
2812
+ return ResumePoolEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2813
+ }
2814
+ if (data.content) {
2815
+ return ResumePoolEvent.fromSuiParsedData(data.content);
2816
+ }
2817
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2818
+ };
1885
2819
  ResumePoolEvent.fetch = function (client, id) {
1886
2820
  return __awaiter(this, void 0, void 0, function () {
1887
2821
  var res;
@@ -1897,24 +2831,27 @@ var ResumePoolEvent = /** @class */ (function () {
1897
2831
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isResumePoolEvent(res.data.bcs.type)) {
1898
2832
  throw new Error("object at id ".concat(id, " is not a ResumePoolEvent object"));
1899
2833
  }
1900
- return [2 /*return*/, ResumePoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2834
+ return [2 /*return*/, ResumePoolEvent.fromSuiObjectData(res.data)];
1901
2835
  }
1902
2836
  });
1903
2837
  });
1904
2838
  };
1905
- ResumePoolEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::ResumePoolEvent";
2839
+ ResumePoolEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::ResumePoolEvent");
1906
2840
  ResumePoolEvent.$numTypeParams = 0;
2841
+ ResumePoolEvent.$isPhantom = [];
1907
2842
  return ResumePoolEvent;
1908
2843
  }());
1909
2844
  exports.ResumePoolEvent = ResumePoolEvent;
1910
2845
  /* ============================== ResumeTokenPoolEvent =============================== */
1911
2846
  function isResumeTokenPoolEvent(type) {
1912
2847
  type = (0, util_1.compressSuiType)(type);
1913
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::ResumeTokenPoolEvent";
2848
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::ResumeTokenPoolEvent");
1914
2849
  }
1915
2850
  var ResumeTokenPoolEvent = /** @class */ (function () {
1916
2851
  function ResumeTokenPoolEvent(typeArgs, fields) {
2852
+ this.__StructClass = true;
1917
2853
  this.$typeName = ResumeTokenPoolEvent.$typeName;
2854
+ this.$isPhantom = ResumeTokenPoolEvent.$isPhantom;
1918
2855
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ResumeTokenPoolEvent.$typeName], __read(typeArgs), false));
1919
2856
  this.$typeArgs = typeArgs;
1920
2857
  this.sender = fields.sender;
@@ -1928,6 +2865,7 @@ var ResumeTokenPoolEvent = /** @class */ (function () {
1928
2865
  typeName: ResumeTokenPoolEvent.$typeName,
1929
2866
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ResumeTokenPoolEvent.$typeName], [], false)),
1930
2867
  typeArgs: [],
2868
+ isPhantom: ResumeTokenPoolEvent.$isPhantom,
1931
2869
  reifiedTypeArgs: [],
1932
2870
  fromFields: function (fields) { return ResumeTokenPoolEvent.fromFields(fields); },
1933
2871
  fromFieldsWithTypes: function (item) { return ResumeTokenPoolEvent.fromFieldsWithTypes(item); },
@@ -1936,6 +2874,7 @@ var ResumeTokenPoolEvent = /** @class */ (function () {
1936
2874
  fromJSONField: function (field) { return ResumeTokenPoolEvent.fromJSONField(field); },
1937
2875
  fromJSON: function (json) { return ResumeTokenPoolEvent.fromJSON(json); },
1938
2876
  fromSuiParsedData: function (content) { return ResumeTokenPoolEvent.fromSuiParsedData(content); },
2877
+ fromSuiObjectData: function (content) { return ResumeTokenPoolEvent.fromSuiObjectData(content); },
1939
2878
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1940
2879
  return [2 /*return*/, ResumeTokenPoolEvent.fetch(client, id)];
1941
2880
  }); }); },
@@ -1965,7 +2904,10 @@ var ResumeTokenPoolEvent = /** @class */ (function () {
1965
2904
  Object.defineProperty(ResumeTokenPoolEvent, "bcs", {
1966
2905
  get: function () {
1967
2906
  return bcs_1.bcs.struct("ResumeTokenPoolEvent", {
1968
- 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); } }),
2907
+ sender: bcs_1.bcs.bytes(32).transform({
2908
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
2909
+ output: function (val) { return (0, utils_1.toHEX)(val); },
2910
+ }),
1969
2911
  index: bcs_1.bcs.u64(),
1970
2912
  liquidity_token: structs_1.TypeName.bcs,
1971
2913
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
@@ -2030,6 +2972,18 @@ var ResumeTokenPoolEvent = /** @class */ (function () {
2030
2972
  }
2031
2973
  return ResumeTokenPoolEvent.fromFieldsWithTypes(content);
2032
2974
  };
2975
+ ResumeTokenPoolEvent.fromSuiObjectData = function (data) {
2976
+ if (data.bcs) {
2977
+ if (data.bcs.dataType !== "moveObject" || !isResumeTokenPoolEvent(data.bcs.type)) {
2978
+ throw new Error("object at is not a ResumeTokenPoolEvent object");
2979
+ }
2980
+ return ResumeTokenPoolEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
2981
+ }
2982
+ if (data.content) {
2983
+ return ResumeTokenPoolEvent.fromSuiParsedData(data.content);
2984
+ }
2985
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
2986
+ };
2033
2987
  ResumeTokenPoolEvent.fetch = function (client, id) {
2034
2988
  return __awaiter(this, void 0, void 0, function () {
2035
2989
  var res;
@@ -2045,24 +2999,27 @@ var ResumeTokenPoolEvent = /** @class */ (function () {
2045
2999
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isResumeTokenPoolEvent(res.data.bcs.type)) {
2046
3000
  throw new Error("object at id ".concat(id, " is not a ResumeTokenPoolEvent object"));
2047
3001
  }
2048
- return [2 /*return*/, ResumeTokenPoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3002
+ return [2 /*return*/, ResumeTokenPoolEvent.fromSuiObjectData(res.data)];
2049
3003
  }
2050
3004
  });
2051
3005
  });
2052
3006
  };
2053
- ResumeTokenPoolEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::ResumeTokenPoolEvent";
3007
+ ResumeTokenPoolEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::ResumeTokenPoolEvent");
2054
3008
  ResumeTokenPoolEvent.$numTypeParams = 0;
3009
+ ResumeTokenPoolEvent.$isPhantom = [];
2055
3010
  return ResumeTokenPoolEvent;
2056
3011
  }());
2057
3012
  exports.ResumeTokenPoolEvent = ResumeTokenPoolEvent;
2058
3013
  /* ============================== SpotConfig =============================== */
2059
3014
  function isSpotConfig(type) {
2060
3015
  type = (0, util_1.compressSuiType)(type);
2061
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::SpotConfig";
3016
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::SpotConfig");
2062
3017
  }
2063
3018
  var SpotConfig = /** @class */ (function () {
2064
3019
  function SpotConfig(typeArgs, fields) {
3020
+ this.__StructClass = true;
2065
3021
  this.$typeName = SpotConfig.$typeName;
3022
+ this.$isPhantom = SpotConfig.$isPhantom;
2066
3023
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SpotConfig.$typeName], __read(typeArgs), false));
2067
3024
  this.$typeArgs = typeArgs;
2068
3025
  this.minDeposit = fields.minDeposit;
@@ -2082,6 +3039,7 @@ var SpotConfig = /** @class */ (function () {
2082
3039
  typeName: SpotConfig.$typeName,
2083
3040
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SpotConfig.$typeName], [], false)),
2084
3041
  typeArgs: [],
3042
+ isPhantom: SpotConfig.$isPhantom,
2085
3043
  reifiedTypeArgs: [],
2086
3044
  fromFields: function (fields) { return SpotConfig.fromFields(fields); },
2087
3045
  fromFieldsWithTypes: function (item) { return SpotConfig.fromFieldsWithTypes(item); },
@@ -2090,6 +3048,7 @@ var SpotConfig = /** @class */ (function () {
2090
3048
  fromJSONField: function (field) { return SpotConfig.fromJSONField(field); },
2091
3049
  fromJSON: function (json) { return SpotConfig.fromJSON(json); },
2092
3050
  fromSuiParsedData: function (content) { return SpotConfig.fromSuiParsedData(content); },
3051
+ fromSuiObjectData: function (content) { return SpotConfig.fromSuiObjectData(content); },
2093
3052
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2094
3053
  return [2 /*return*/, SpotConfig.fetch(client, id)];
2095
3054
  }); }); },
@@ -2214,6 +3173,18 @@ var SpotConfig = /** @class */ (function () {
2214
3173
  }
2215
3174
  return SpotConfig.fromFieldsWithTypes(content);
2216
3175
  };
3176
+ SpotConfig.fromSuiObjectData = function (data) {
3177
+ if (data.bcs) {
3178
+ if (data.bcs.dataType !== "moveObject" || !isSpotConfig(data.bcs.type)) {
3179
+ throw new Error("object at is not a SpotConfig object");
3180
+ }
3181
+ return SpotConfig.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3182
+ }
3183
+ if (data.content) {
3184
+ return SpotConfig.fromSuiParsedData(data.content);
3185
+ }
3186
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3187
+ };
2217
3188
  SpotConfig.fetch = function (client, id) {
2218
3189
  return __awaiter(this, void 0, void 0, function () {
2219
3190
  var res;
@@ -2229,24 +3200,186 @@ var SpotConfig = /** @class */ (function () {
2229
3200
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSpotConfig(res.data.bcs.type)) {
2230
3201
  throw new Error("object at id ".concat(id, " is not a SpotConfig object"));
2231
3202
  }
2232
- return [2 /*return*/, SpotConfig.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3203
+ return [2 /*return*/, SpotConfig.fromSuiObjectData(res.data)];
2233
3204
  }
2234
3205
  });
2235
3206
  });
2236
3207
  };
2237
- SpotConfig.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::SpotConfig";
3208
+ SpotConfig.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::SpotConfig");
2238
3209
  SpotConfig.$numTypeParams = 0;
3210
+ SpotConfig.$isPhantom = [];
2239
3211
  return SpotConfig;
2240
3212
  }());
2241
3213
  exports.SpotConfig = SpotConfig;
3214
+ /* ============================== StartRemoveLiquidityTokenProcessEvent =============================== */
3215
+ function isStartRemoveLiquidityTokenProcessEvent(type) {
3216
+ type = (0, util_1.compressSuiType)(type);
3217
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::StartRemoveLiquidityTokenProcessEvent");
3218
+ }
3219
+ var StartRemoveLiquidityTokenProcessEvent = /** @class */ (function () {
3220
+ function StartRemoveLiquidityTokenProcessEvent(typeArgs, fields) {
3221
+ this.__StructClass = true;
3222
+ this.$typeName = StartRemoveLiquidityTokenProcessEvent.$typeName;
3223
+ this.$isPhantom = StartRemoveLiquidityTokenProcessEvent.$isPhantom;
3224
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StartRemoveLiquidityTokenProcessEvent.$typeName], __read(typeArgs), false));
3225
+ this.$typeArgs = typeArgs;
3226
+ this.index = fields.index;
3227
+ this.liquidityToken = fields.liquidityToken;
3228
+ this.u64Padding = fields.u64Padding;
3229
+ }
3230
+ StartRemoveLiquidityTokenProcessEvent.reified = function () {
3231
+ var _this = this;
3232
+ return {
3233
+ typeName: StartRemoveLiquidityTokenProcessEvent.$typeName,
3234
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StartRemoveLiquidityTokenProcessEvent.$typeName], [], false)),
3235
+ typeArgs: [],
3236
+ isPhantom: StartRemoveLiquidityTokenProcessEvent.$isPhantom,
3237
+ reifiedTypeArgs: [],
3238
+ fromFields: function (fields) { return StartRemoveLiquidityTokenProcessEvent.fromFields(fields); },
3239
+ fromFieldsWithTypes: function (item) { return StartRemoveLiquidityTokenProcessEvent.fromFieldsWithTypes(item); },
3240
+ fromBcs: function (data) { return StartRemoveLiquidityTokenProcessEvent.fromBcs(data); },
3241
+ bcs: StartRemoveLiquidityTokenProcessEvent.bcs,
3242
+ fromJSONField: function (field) { return StartRemoveLiquidityTokenProcessEvent.fromJSONField(field); },
3243
+ fromJSON: function (json) { return StartRemoveLiquidityTokenProcessEvent.fromJSON(json); },
3244
+ fromSuiParsedData: function (content) { return StartRemoveLiquidityTokenProcessEvent.fromSuiParsedData(content); },
3245
+ fromSuiObjectData: function (content) { return StartRemoveLiquidityTokenProcessEvent.fromSuiObjectData(content); },
3246
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3247
+ return [2 /*return*/, StartRemoveLiquidityTokenProcessEvent.fetch(client, id)];
3248
+ }); }); },
3249
+ new: function (fields) {
3250
+ return new StartRemoveLiquidityTokenProcessEvent([], fields);
3251
+ },
3252
+ kind: "StructClassReified",
3253
+ };
3254
+ };
3255
+ Object.defineProperty(StartRemoveLiquidityTokenProcessEvent, "r", {
3256
+ get: function () {
3257
+ return StartRemoveLiquidityTokenProcessEvent.reified();
3258
+ },
3259
+ enumerable: false,
3260
+ configurable: true
3261
+ });
3262
+ StartRemoveLiquidityTokenProcessEvent.phantom = function () {
3263
+ return (0, reified_1.phantom)(StartRemoveLiquidityTokenProcessEvent.reified());
3264
+ };
3265
+ Object.defineProperty(StartRemoveLiquidityTokenProcessEvent, "p", {
3266
+ get: function () {
3267
+ return StartRemoveLiquidityTokenProcessEvent.phantom();
3268
+ },
3269
+ enumerable: false,
3270
+ configurable: true
3271
+ });
3272
+ Object.defineProperty(StartRemoveLiquidityTokenProcessEvent, "bcs", {
3273
+ get: function () {
3274
+ return bcs_1.bcs.struct("StartRemoveLiquidityTokenProcessEvent", {
3275
+ index: bcs_1.bcs.u64(),
3276
+ liquidity_token: structs_1.TypeName.bcs,
3277
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
3278
+ });
3279
+ },
3280
+ enumerable: false,
3281
+ configurable: true
3282
+ });
3283
+ StartRemoveLiquidityTokenProcessEvent.fromFields = function (fields) {
3284
+ return StartRemoveLiquidityTokenProcessEvent.reified().new({
3285
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
3286
+ liquidityToken: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.liquidity_token),
3287
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
3288
+ });
3289
+ };
3290
+ StartRemoveLiquidityTokenProcessEvent.fromFieldsWithTypes = function (item) {
3291
+ if (!isStartRemoveLiquidityTokenProcessEvent(item.type)) {
3292
+ throw new Error("not a StartRemoveLiquidityTokenProcessEvent type");
3293
+ }
3294
+ return StartRemoveLiquidityTokenProcessEvent.reified().new({
3295
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
3296
+ liquidityToken: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.liquidity_token),
3297
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
3298
+ });
3299
+ };
3300
+ StartRemoveLiquidityTokenProcessEvent.fromBcs = function (data) {
3301
+ return StartRemoveLiquidityTokenProcessEvent.fromFields(StartRemoveLiquidityTokenProcessEvent.bcs.parse(data));
3302
+ };
3303
+ StartRemoveLiquidityTokenProcessEvent.prototype.toJSONField = function () {
3304
+ return {
3305
+ index: this.index.toString(),
3306
+ liquidityToken: this.liquidityToken.toJSONField(),
3307
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
3308
+ };
3309
+ };
3310
+ StartRemoveLiquidityTokenProcessEvent.prototype.toJSON = function () {
3311
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
3312
+ };
3313
+ StartRemoveLiquidityTokenProcessEvent.fromJSONField = function (field) {
3314
+ return StartRemoveLiquidityTokenProcessEvent.reified().new({
3315
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
3316
+ liquidityToken: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.liquidityToken),
3317
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
3318
+ });
3319
+ };
3320
+ StartRemoveLiquidityTokenProcessEvent.fromJSON = function (json) {
3321
+ if (json.$typeName !== StartRemoveLiquidityTokenProcessEvent.$typeName) {
3322
+ throw new Error("not a WithTwoGenerics json object");
3323
+ }
3324
+ return StartRemoveLiquidityTokenProcessEvent.fromJSONField(json);
3325
+ };
3326
+ StartRemoveLiquidityTokenProcessEvent.fromSuiParsedData = function (content) {
3327
+ if (content.dataType !== "moveObject") {
3328
+ throw new Error("not an object");
3329
+ }
3330
+ if (!isStartRemoveLiquidityTokenProcessEvent(content.type)) {
3331
+ throw new Error("object at ".concat(content.fields.id, " is not a StartRemoveLiquidityTokenProcessEvent object"));
3332
+ }
3333
+ return StartRemoveLiquidityTokenProcessEvent.fromFieldsWithTypes(content);
3334
+ };
3335
+ StartRemoveLiquidityTokenProcessEvent.fromSuiObjectData = function (data) {
3336
+ if (data.bcs) {
3337
+ if (data.bcs.dataType !== "moveObject" || !isStartRemoveLiquidityTokenProcessEvent(data.bcs.type)) {
3338
+ throw new Error("object at is not a StartRemoveLiquidityTokenProcessEvent object");
3339
+ }
3340
+ return StartRemoveLiquidityTokenProcessEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3341
+ }
3342
+ if (data.content) {
3343
+ return StartRemoveLiquidityTokenProcessEvent.fromSuiParsedData(data.content);
3344
+ }
3345
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3346
+ };
3347
+ StartRemoveLiquidityTokenProcessEvent.fetch = function (client, id) {
3348
+ return __awaiter(this, void 0, void 0, function () {
3349
+ var res;
3350
+ var _a, _b;
3351
+ return __generator(this, function (_c) {
3352
+ switch (_c.label) {
3353
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
3354
+ case 1:
3355
+ res = _c.sent();
3356
+ if (res.error) {
3357
+ throw new Error("error fetching StartRemoveLiquidityTokenProcessEvent object at id ".concat(id, ": ").concat(res.error.code));
3358
+ }
3359
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isStartRemoveLiquidityTokenProcessEvent(res.data.bcs.type)) {
3360
+ throw new Error("object at id ".concat(id, " is not a StartRemoveLiquidityTokenProcessEvent object"));
3361
+ }
3362
+ return [2 /*return*/, StartRemoveLiquidityTokenProcessEvent.fromSuiObjectData(res.data)];
3363
+ }
3364
+ });
3365
+ });
3366
+ };
3367
+ StartRemoveLiquidityTokenProcessEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::StartRemoveLiquidityTokenProcessEvent");
3368
+ StartRemoveLiquidityTokenProcessEvent.$numTypeParams = 0;
3369
+ StartRemoveLiquidityTokenProcessEvent.$isPhantom = [];
3370
+ return StartRemoveLiquidityTokenProcessEvent;
3371
+ }());
3372
+ exports.StartRemoveLiquidityTokenProcessEvent = StartRemoveLiquidityTokenProcessEvent;
2242
3373
  /* ============================== SuspendPoolEvent =============================== */
2243
3374
  function isSuspendPoolEvent(type) {
2244
3375
  type = (0, util_1.compressSuiType)(type);
2245
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::SuspendPoolEvent";
3376
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::SuspendPoolEvent");
2246
3377
  }
2247
3378
  var SuspendPoolEvent = /** @class */ (function () {
2248
3379
  function SuspendPoolEvent(typeArgs, fields) {
3380
+ this.__StructClass = true;
2249
3381
  this.$typeName = SuspendPoolEvent.$typeName;
3382
+ this.$isPhantom = SuspendPoolEvent.$isPhantom;
2250
3383
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SuspendPoolEvent.$typeName], __read(typeArgs), false));
2251
3384
  this.$typeArgs = typeArgs;
2252
3385
  this.sender = fields.sender;
@@ -2259,6 +3392,7 @@ var SuspendPoolEvent = /** @class */ (function () {
2259
3392
  typeName: SuspendPoolEvent.$typeName,
2260
3393
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SuspendPoolEvent.$typeName], [], false)),
2261
3394
  typeArgs: [],
3395
+ isPhantom: SuspendPoolEvent.$isPhantom,
2262
3396
  reifiedTypeArgs: [],
2263
3397
  fromFields: function (fields) { return SuspendPoolEvent.fromFields(fields); },
2264
3398
  fromFieldsWithTypes: function (item) { return SuspendPoolEvent.fromFieldsWithTypes(item); },
@@ -2267,6 +3401,7 @@ var SuspendPoolEvent = /** @class */ (function () {
2267
3401
  fromJSONField: function (field) { return SuspendPoolEvent.fromJSONField(field); },
2268
3402
  fromJSON: function (json) { return SuspendPoolEvent.fromJSON(json); },
2269
3403
  fromSuiParsedData: function (content) { return SuspendPoolEvent.fromSuiParsedData(content); },
3404
+ fromSuiObjectData: function (content) { return SuspendPoolEvent.fromSuiObjectData(content); },
2270
3405
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2271
3406
  return [2 /*return*/, SuspendPoolEvent.fetch(client, id)];
2272
3407
  }); }); },
@@ -2296,7 +3431,10 @@ var SuspendPoolEvent = /** @class */ (function () {
2296
3431
  Object.defineProperty(SuspendPoolEvent, "bcs", {
2297
3432
  get: function () {
2298
3433
  return bcs_1.bcs.struct("SuspendPoolEvent", {
2299
- 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); } }),
3434
+ sender: bcs_1.bcs.bytes(32).transform({
3435
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
3436
+ output: function (val) { return (0, utils_1.toHEX)(val); },
3437
+ }),
2300
3438
  index: bcs_1.bcs.u64(),
2301
3439
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2302
3440
  });
@@ -2356,6 +3494,18 @@ var SuspendPoolEvent = /** @class */ (function () {
2356
3494
  }
2357
3495
  return SuspendPoolEvent.fromFieldsWithTypes(content);
2358
3496
  };
3497
+ SuspendPoolEvent.fromSuiObjectData = function (data) {
3498
+ if (data.bcs) {
3499
+ if (data.bcs.dataType !== "moveObject" || !isSuspendPoolEvent(data.bcs.type)) {
3500
+ throw new Error("object at is not a SuspendPoolEvent object");
3501
+ }
3502
+ return SuspendPoolEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3503
+ }
3504
+ if (data.content) {
3505
+ return SuspendPoolEvent.fromSuiParsedData(data.content);
3506
+ }
3507
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3508
+ };
2359
3509
  SuspendPoolEvent.fetch = function (client, id) {
2360
3510
  return __awaiter(this, void 0, void 0, function () {
2361
3511
  var res;
@@ -2371,24 +3521,27 @@ var SuspendPoolEvent = /** @class */ (function () {
2371
3521
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSuspendPoolEvent(res.data.bcs.type)) {
2372
3522
  throw new Error("object at id ".concat(id, " is not a SuspendPoolEvent object"));
2373
3523
  }
2374
- return [2 /*return*/, SuspendPoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3524
+ return [2 /*return*/, SuspendPoolEvent.fromSuiObjectData(res.data)];
2375
3525
  }
2376
3526
  });
2377
3527
  });
2378
3528
  };
2379
- SuspendPoolEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::SuspendPoolEvent";
3529
+ SuspendPoolEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::SuspendPoolEvent");
2380
3530
  SuspendPoolEvent.$numTypeParams = 0;
3531
+ SuspendPoolEvent.$isPhantom = [];
2381
3532
  return SuspendPoolEvent;
2382
3533
  }());
2383
3534
  exports.SuspendPoolEvent = SuspendPoolEvent;
2384
3535
  /* ============================== SuspendTokenPoolEvent =============================== */
2385
3536
  function isSuspendTokenPoolEvent(type) {
2386
3537
  type = (0, util_1.compressSuiType)(type);
2387
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::SuspendTokenPoolEvent";
3538
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::SuspendTokenPoolEvent");
2388
3539
  }
2389
3540
  var SuspendTokenPoolEvent = /** @class */ (function () {
2390
3541
  function SuspendTokenPoolEvent(typeArgs, fields) {
3542
+ this.__StructClass = true;
2391
3543
  this.$typeName = SuspendTokenPoolEvent.$typeName;
3544
+ this.$isPhantom = SuspendTokenPoolEvent.$isPhantom;
2392
3545
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SuspendTokenPoolEvent.$typeName], __read(typeArgs), false));
2393
3546
  this.$typeArgs = typeArgs;
2394
3547
  this.sender = fields.sender;
@@ -2402,6 +3555,7 @@ var SuspendTokenPoolEvent = /** @class */ (function () {
2402
3555
  typeName: SuspendTokenPoolEvent.$typeName,
2403
3556
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SuspendTokenPoolEvent.$typeName], [], false)),
2404
3557
  typeArgs: [],
3558
+ isPhantom: SuspendTokenPoolEvent.$isPhantom,
2405
3559
  reifiedTypeArgs: [],
2406
3560
  fromFields: function (fields) { return SuspendTokenPoolEvent.fromFields(fields); },
2407
3561
  fromFieldsWithTypes: function (item) { return SuspendTokenPoolEvent.fromFieldsWithTypes(item); },
@@ -2410,6 +3564,7 @@ var SuspendTokenPoolEvent = /** @class */ (function () {
2410
3564
  fromJSONField: function (field) { return SuspendTokenPoolEvent.fromJSONField(field); },
2411
3565
  fromJSON: function (json) { return SuspendTokenPoolEvent.fromJSON(json); },
2412
3566
  fromSuiParsedData: function (content) { return SuspendTokenPoolEvent.fromSuiParsedData(content); },
3567
+ fromSuiObjectData: function (content) { return SuspendTokenPoolEvent.fromSuiObjectData(content); },
2413
3568
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2414
3569
  return [2 /*return*/, SuspendTokenPoolEvent.fetch(client, id)];
2415
3570
  }); }); },
@@ -2439,7 +3594,10 @@ var SuspendTokenPoolEvent = /** @class */ (function () {
2439
3594
  Object.defineProperty(SuspendTokenPoolEvent, "bcs", {
2440
3595
  get: function () {
2441
3596
  return bcs_1.bcs.struct("SuspendTokenPoolEvent", {
2442
- 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); } }),
3597
+ sender: bcs_1.bcs.bytes(32).transform({
3598
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
3599
+ output: function (val) { return (0, utils_1.toHEX)(val); },
3600
+ }),
2443
3601
  index: bcs_1.bcs.u64(),
2444
3602
  liquidity_token: structs_1.TypeName.bcs,
2445
3603
  u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
@@ -2504,6 +3662,18 @@ var SuspendTokenPoolEvent = /** @class */ (function () {
2504
3662
  }
2505
3663
  return SuspendTokenPoolEvent.fromFieldsWithTypes(content);
2506
3664
  };
3665
+ SuspendTokenPoolEvent.fromSuiObjectData = function (data) {
3666
+ if (data.bcs) {
3667
+ if (data.bcs.dataType !== "moveObject" || !isSuspendTokenPoolEvent(data.bcs.type)) {
3668
+ throw new Error("object at is not a SuspendTokenPoolEvent object");
3669
+ }
3670
+ return SuspendTokenPoolEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3671
+ }
3672
+ if (data.content) {
3673
+ return SuspendTokenPoolEvent.fromSuiParsedData(data.content);
3674
+ }
3675
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3676
+ };
2507
3677
  SuspendTokenPoolEvent.fetch = function (client, id) {
2508
3678
  return __awaiter(this, void 0, void 0, function () {
2509
3679
  var res;
@@ -2519,24 +3689,27 @@ var SuspendTokenPoolEvent = /** @class */ (function () {
2519
3689
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSuspendTokenPoolEvent(res.data.bcs.type)) {
2520
3690
  throw new Error("object at id ".concat(id, " is not a SuspendTokenPoolEvent object"));
2521
3691
  }
2522
- return [2 /*return*/, SuspendTokenPoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3692
+ return [2 /*return*/, SuspendTokenPoolEvent.fromSuiObjectData(res.data)];
2523
3693
  }
2524
3694
  });
2525
3695
  });
2526
3696
  };
2527
- SuspendTokenPoolEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::SuspendTokenPoolEvent";
3697
+ SuspendTokenPoolEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::SuspendTokenPoolEvent");
2528
3698
  SuspendTokenPoolEvent.$numTypeParams = 0;
3699
+ SuspendTokenPoolEvent.$isPhantom = [];
2529
3700
  return SuspendTokenPoolEvent;
2530
3701
  }());
2531
3702
  exports.SuspendTokenPoolEvent = SuspendTokenPoolEvent;
2532
3703
  /* ============================== SwapEvent =============================== */
2533
3704
  function isSwapEvent(type) {
2534
3705
  type = (0, util_1.compressSuiType)(type);
2535
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::SwapEvent";
3706
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::SwapEvent");
2536
3707
  }
2537
3708
  var SwapEvent = /** @class */ (function () {
2538
3709
  function SwapEvent(typeArgs, fields) {
3710
+ this.__StructClass = true;
2539
3711
  this.$typeName = SwapEvent.$typeName;
3712
+ this.$isPhantom = SwapEvent.$isPhantom;
2540
3713
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SwapEvent.$typeName], __read(typeArgs), false));
2541
3714
  this.$typeArgs = typeArgs;
2542
3715
  this.sender = fields.sender;
@@ -2556,6 +3729,7 @@ var SwapEvent = /** @class */ (function () {
2556
3729
  typeName: SwapEvent.$typeName,
2557
3730
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SwapEvent.$typeName], [], false)),
2558
3731
  typeArgs: [],
3732
+ isPhantom: SwapEvent.$isPhantom,
2559
3733
  reifiedTypeArgs: [],
2560
3734
  fromFields: function (fields) { return SwapEvent.fromFields(fields); },
2561
3735
  fromFieldsWithTypes: function (item) { return SwapEvent.fromFieldsWithTypes(item); },
@@ -2564,6 +3738,7 @@ var SwapEvent = /** @class */ (function () {
2564
3738
  fromJSONField: function (field) { return SwapEvent.fromJSONField(field); },
2565
3739
  fromJSON: function (json) { return SwapEvent.fromJSON(json); },
2566
3740
  fromSuiParsedData: function (content) { return SwapEvent.fromSuiParsedData(content); },
3741
+ fromSuiObjectData: function (content) { return SwapEvent.fromSuiObjectData(content); },
2567
3742
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2568
3743
  return [2 /*return*/, SwapEvent.fetch(client, id)];
2569
3744
  }); }); },
@@ -2593,7 +3768,10 @@ var SwapEvent = /** @class */ (function () {
2593
3768
  Object.defineProperty(SwapEvent, "bcs", {
2594
3769
  get: function () {
2595
3770
  return bcs_1.bcs.struct("SwapEvent", {
2596
- 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); } }),
3771
+ sender: bcs_1.bcs.bytes(32).transform({
3772
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
3773
+ output: function (val) { return (0, utils_1.toHEX)(val); },
3774
+ }),
2597
3775
  index: bcs_1.bcs.u64(),
2598
3776
  from_token_type: structs_1.TypeName.bcs,
2599
3777
  from_amount: bcs_1.bcs.u64(),
@@ -2688,6 +3866,18 @@ var SwapEvent = /** @class */ (function () {
2688
3866
  }
2689
3867
  return SwapEvent.fromFieldsWithTypes(content);
2690
3868
  };
3869
+ SwapEvent.fromSuiObjectData = function (data) {
3870
+ if (data.bcs) {
3871
+ if (data.bcs.dataType !== "moveObject" || !isSwapEvent(data.bcs.type)) {
3872
+ throw new Error("object at is not a SwapEvent object");
3873
+ }
3874
+ return SwapEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
3875
+ }
3876
+ if (data.content) {
3877
+ return SwapEvent.fromSuiParsedData(data.content);
3878
+ }
3879
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
3880
+ };
2691
3881
  SwapEvent.fetch = function (client, id) {
2692
3882
  return __awaiter(this, void 0, void 0, function () {
2693
3883
  var res;
@@ -2703,24 +3893,27 @@ var SwapEvent = /** @class */ (function () {
2703
3893
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSwapEvent(res.data.bcs.type)) {
2704
3894
  throw new Error("object at id ".concat(id, " is not a SwapEvent object"));
2705
3895
  }
2706
- return [2 /*return*/, SwapEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
3896
+ return [2 /*return*/, SwapEvent.fromSuiObjectData(res.data)];
2707
3897
  }
2708
3898
  });
2709
3899
  });
2710
3900
  };
2711
- SwapEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::SwapEvent";
3901
+ SwapEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::SwapEvent");
2712
3902
  SwapEvent.$numTypeParams = 0;
3903
+ SwapEvent.$isPhantom = [];
2713
3904
  return SwapEvent;
2714
3905
  }());
2715
3906
  exports.SwapEvent = SwapEvent;
2716
3907
  /* ============================== TokenPool =============================== */
2717
3908
  function isTokenPool(type) {
2718
3909
  type = (0, util_1.compressSuiType)(type);
2719
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::TokenPool";
3910
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::TokenPool");
2720
3911
  }
2721
3912
  var TokenPool = /** @class */ (function () {
2722
3913
  function TokenPool(typeArgs, fields) {
3914
+ this.__StructClass = true;
2723
3915
  this.$typeName = TokenPool.$typeName;
3916
+ this.$isPhantom = TokenPool.$isPhantom;
2724
3917
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([TokenPool.$typeName], __read(typeArgs), false));
2725
3918
  this.$typeArgs = typeArgs;
2726
3919
  this.tokenType = fields.tokenType;
@@ -2733,6 +3926,7 @@ var TokenPool = /** @class */ (function () {
2733
3926
  typeName: TokenPool.$typeName,
2734
3927
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([TokenPool.$typeName], [], false)),
2735
3928
  typeArgs: [],
3929
+ isPhantom: TokenPool.$isPhantom,
2736
3930
  reifiedTypeArgs: [],
2737
3931
  fromFields: function (fields) { return TokenPool.fromFields(fields); },
2738
3932
  fromFieldsWithTypes: function (item) { return TokenPool.fromFieldsWithTypes(item); },
@@ -2741,6 +3935,7 @@ var TokenPool = /** @class */ (function () {
2741
3935
  fromJSONField: function (field) { return TokenPool.fromJSONField(field); },
2742
3936
  fromJSON: function (json) { return TokenPool.fromJSON(json); },
2743
3937
  fromSuiParsedData: function (content) { return TokenPool.fromSuiParsedData(content); },
3938
+ fromSuiObjectData: function (content) { return TokenPool.fromSuiObjectData(content); },
2744
3939
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2745
3940
  return [2 /*return*/, TokenPool.fetch(client, id)];
2746
3941
  }); }); },
@@ -2830,6 +4025,18 @@ var TokenPool = /** @class */ (function () {
2830
4025
  }
2831
4026
  return TokenPool.fromFieldsWithTypes(content);
2832
4027
  };
4028
+ TokenPool.fromSuiObjectData = function (data) {
4029
+ if (data.bcs) {
4030
+ if (data.bcs.dataType !== "moveObject" || !isTokenPool(data.bcs.type)) {
4031
+ throw new Error("object at is not a TokenPool object");
4032
+ }
4033
+ return TokenPool.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
4034
+ }
4035
+ if (data.content) {
4036
+ return TokenPool.fromSuiParsedData(data.content);
4037
+ }
4038
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
4039
+ };
2833
4040
  TokenPool.fetch = function (client, id) {
2834
4041
  return __awaiter(this, void 0, void 0, function () {
2835
4042
  var res;
@@ -2845,24 +4052,27 @@ var TokenPool = /** @class */ (function () {
2845
4052
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isTokenPool(res.data.bcs.type)) {
2846
4053
  throw new Error("object at id ".concat(id, " is not a TokenPool object"));
2847
4054
  }
2848
- return [2 /*return*/, TokenPool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
4055
+ return [2 /*return*/, TokenPool.fromSuiObjectData(res.data)];
2849
4056
  }
2850
4057
  });
2851
4058
  });
2852
4059
  };
2853
- TokenPool.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::TokenPool";
4060
+ TokenPool.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::TokenPool");
2854
4061
  TokenPool.$numTypeParams = 0;
4062
+ TokenPool.$isPhantom = [];
2855
4063
  return TokenPool;
2856
4064
  }());
2857
4065
  exports.TokenPool = TokenPool;
2858
4066
  /* ============================== UpdateBorrowInfoEvent =============================== */
2859
4067
  function isUpdateBorrowInfoEvent(type) {
2860
4068
  type = (0, util_1.compressSuiType)(type);
2861
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::UpdateBorrowInfoEvent";
4069
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::UpdateBorrowInfoEvent");
2862
4070
  }
2863
4071
  var UpdateBorrowInfoEvent = /** @class */ (function () {
2864
4072
  function UpdateBorrowInfoEvent(typeArgs, fields) {
4073
+ this.__StructClass = true;
2865
4074
  this.$typeName = UpdateBorrowInfoEvent.$typeName;
4075
+ this.$isPhantom = UpdateBorrowInfoEvent.$isPhantom;
2866
4076
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateBorrowInfoEvent.$typeName], __read(typeArgs), false));
2867
4077
  this.$typeArgs = typeArgs;
2868
4078
  this.index = fields.index;
@@ -2880,6 +4090,7 @@ var UpdateBorrowInfoEvent = /** @class */ (function () {
2880
4090
  typeName: UpdateBorrowInfoEvent.$typeName,
2881
4091
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateBorrowInfoEvent.$typeName], [], false)),
2882
4092
  typeArgs: [],
4093
+ isPhantom: UpdateBorrowInfoEvent.$isPhantom,
2883
4094
  reifiedTypeArgs: [],
2884
4095
  fromFields: function (fields) { return UpdateBorrowInfoEvent.fromFields(fields); },
2885
4096
  fromFieldsWithTypes: function (item) { return UpdateBorrowInfoEvent.fromFieldsWithTypes(item); },
@@ -2888,6 +4099,7 @@ var UpdateBorrowInfoEvent = /** @class */ (function () {
2888
4099
  fromJSONField: function (field) { return UpdateBorrowInfoEvent.fromJSONField(field); },
2889
4100
  fromJSON: function (json) { return UpdateBorrowInfoEvent.fromJSON(json); },
2890
4101
  fromSuiParsedData: function (content) { return UpdateBorrowInfoEvent.fromSuiParsedData(content); },
4102
+ fromSuiObjectData: function (content) { return UpdateBorrowInfoEvent.fromSuiObjectData(content); },
2891
4103
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2892
4104
  return [2 /*return*/, UpdateBorrowInfoEvent.fetch(client, id)];
2893
4105
  }); }); },
@@ -3002,6 +4214,18 @@ var UpdateBorrowInfoEvent = /** @class */ (function () {
3002
4214
  }
3003
4215
  return UpdateBorrowInfoEvent.fromFieldsWithTypes(content);
3004
4216
  };
4217
+ UpdateBorrowInfoEvent.fromSuiObjectData = function (data) {
4218
+ if (data.bcs) {
4219
+ if (data.bcs.dataType !== "moveObject" || !isUpdateBorrowInfoEvent(data.bcs.type)) {
4220
+ throw new Error("object at is not a UpdateBorrowInfoEvent object");
4221
+ }
4222
+ return UpdateBorrowInfoEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
4223
+ }
4224
+ if (data.content) {
4225
+ return UpdateBorrowInfoEvent.fromSuiParsedData(data.content);
4226
+ }
4227
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
4228
+ };
3005
4229
  UpdateBorrowInfoEvent.fetch = function (client, id) {
3006
4230
  return __awaiter(this, void 0, void 0, function () {
3007
4231
  var res;
@@ -3017,24 +4241,27 @@ var UpdateBorrowInfoEvent = /** @class */ (function () {
3017
4241
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateBorrowInfoEvent(res.data.bcs.type)) {
3018
4242
  throw new Error("object at id ".concat(id, " is not a UpdateBorrowInfoEvent object"));
3019
4243
  }
3020
- return [2 /*return*/, UpdateBorrowInfoEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
4244
+ return [2 /*return*/, UpdateBorrowInfoEvent.fromSuiObjectData(res.data)];
3021
4245
  }
3022
4246
  });
3023
4247
  });
3024
4248
  };
3025
- UpdateBorrowInfoEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::UpdateBorrowInfoEvent";
4249
+ UpdateBorrowInfoEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::UpdateBorrowInfoEvent");
3026
4250
  UpdateBorrowInfoEvent.$numTypeParams = 0;
4251
+ UpdateBorrowInfoEvent.$isPhantom = [];
3027
4252
  return UpdateBorrowInfoEvent;
3028
4253
  }());
3029
4254
  exports.UpdateBorrowInfoEvent = UpdateBorrowInfoEvent;
3030
4255
  /* ============================== UpdateLiquidityValueEvent =============================== */
3031
4256
  function isUpdateLiquidityValueEvent(type) {
3032
4257
  type = (0, util_1.compressSuiType)(type);
3033
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::UpdateLiquidityValueEvent";
4258
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::UpdateLiquidityValueEvent");
3034
4259
  }
3035
4260
  var UpdateLiquidityValueEvent = /** @class */ (function () {
3036
4261
  function UpdateLiquidityValueEvent(typeArgs, fields) {
4262
+ this.__StructClass = true;
3037
4263
  this.$typeName = UpdateLiquidityValueEvent.$typeName;
4264
+ this.$isPhantom = UpdateLiquidityValueEvent.$isPhantom;
3038
4265
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateLiquidityValueEvent.$typeName], __read(typeArgs), false));
3039
4266
  this.$typeArgs = typeArgs;
3040
4267
  this.sender = fields.sender;
@@ -3051,6 +4278,7 @@ var UpdateLiquidityValueEvent = /** @class */ (function () {
3051
4278
  typeName: UpdateLiquidityValueEvent.$typeName,
3052
4279
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateLiquidityValueEvent.$typeName], [], false)),
3053
4280
  typeArgs: [],
4281
+ isPhantom: UpdateLiquidityValueEvent.$isPhantom,
3054
4282
  reifiedTypeArgs: [],
3055
4283
  fromFields: function (fields) { return UpdateLiquidityValueEvent.fromFields(fields); },
3056
4284
  fromFieldsWithTypes: function (item) { return UpdateLiquidityValueEvent.fromFieldsWithTypes(item); },
@@ -3059,6 +4287,7 @@ var UpdateLiquidityValueEvent = /** @class */ (function () {
3059
4287
  fromJSONField: function (field) { return UpdateLiquidityValueEvent.fromJSONField(field); },
3060
4288
  fromJSON: function (json) { return UpdateLiquidityValueEvent.fromJSON(json); },
3061
4289
  fromSuiParsedData: function (content) { return UpdateLiquidityValueEvent.fromSuiParsedData(content); },
4290
+ fromSuiObjectData: function (content) { return UpdateLiquidityValueEvent.fromSuiObjectData(content); },
3062
4291
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3063
4292
  return [2 /*return*/, UpdateLiquidityValueEvent.fetch(client, id)];
3064
4293
  }); }); },
@@ -3088,7 +4317,10 @@ var UpdateLiquidityValueEvent = /** @class */ (function () {
3088
4317
  Object.defineProperty(UpdateLiquidityValueEvent, "bcs", {
3089
4318
  get: function () {
3090
4319
  return bcs_1.bcs.struct("UpdateLiquidityValueEvent", {
3091
- 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); } }),
4320
+ sender: bcs_1.bcs.bytes(32).transform({
4321
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
4322
+ output: function (val) { return (0, utils_1.toHEX)(val); },
4323
+ }),
3092
4324
  index: bcs_1.bcs.u64(),
3093
4325
  liquidity_token: structs_1.TypeName.bcs,
3094
4326
  price: bcs_1.bcs.u64(),
@@ -3168,6 +4400,18 @@ var UpdateLiquidityValueEvent = /** @class */ (function () {
3168
4400
  }
3169
4401
  return UpdateLiquidityValueEvent.fromFieldsWithTypes(content);
3170
4402
  };
4403
+ UpdateLiquidityValueEvent.fromSuiObjectData = function (data) {
4404
+ if (data.bcs) {
4405
+ if (data.bcs.dataType !== "moveObject" || !isUpdateLiquidityValueEvent(data.bcs.type)) {
4406
+ throw new Error("object at is not a UpdateLiquidityValueEvent object");
4407
+ }
4408
+ return UpdateLiquidityValueEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
4409
+ }
4410
+ if (data.content) {
4411
+ return UpdateLiquidityValueEvent.fromSuiParsedData(data.content);
4412
+ }
4413
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
4414
+ };
3171
4415
  UpdateLiquidityValueEvent.fetch = function (client, id) {
3172
4416
  return __awaiter(this, void 0, void 0, function () {
3173
4417
  var res;
@@ -3183,24 +4427,27 @@ var UpdateLiquidityValueEvent = /** @class */ (function () {
3183
4427
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateLiquidityValueEvent(res.data.bcs.type)) {
3184
4428
  throw new Error("object at id ".concat(id, " is not a UpdateLiquidityValueEvent object"));
3185
4429
  }
3186
- return [2 /*return*/, UpdateLiquidityValueEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
4430
+ return [2 /*return*/, UpdateLiquidityValueEvent.fromSuiObjectData(res.data)];
3187
4431
  }
3188
4432
  });
3189
4433
  });
3190
4434
  };
3191
- UpdateLiquidityValueEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::UpdateLiquidityValueEvent";
4435
+ UpdateLiquidityValueEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::UpdateLiquidityValueEvent");
3192
4436
  UpdateLiquidityValueEvent.$numTypeParams = 0;
4437
+ UpdateLiquidityValueEvent.$isPhantom = [];
3193
4438
  return UpdateLiquidityValueEvent;
3194
4439
  }());
3195
4440
  exports.UpdateLiquidityValueEvent = UpdateLiquidityValueEvent;
3196
4441
  /* ============================== UpdateMarginConfigEvent =============================== */
3197
4442
  function isUpdateMarginConfigEvent(type) {
3198
4443
  type = (0, util_1.compressSuiType)(type);
3199
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::UpdateMarginConfigEvent";
4444
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::UpdateMarginConfigEvent");
3200
4445
  }
3201
4446
  var UpdateMarginConfigEvent = /** @class */ (function () {
3202
4447
  function UpdateMarginConfigEvent(typeArgs, fields) {
4448
+ this.__StructClass = true;
3203
4449
  this.$typeName = UpdateMarginConfigEvent.$typeName;
4450
+ this.$isPhantom = UpdateMarginConfigEvent.$isPhantom;
3204
4451
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateMarginConfigEvent.$typeName], __read(typeArgs), false));
3205
4452
  this.$typeArgs = typeArgs;
3206
4453
  this.sender = fields.sender;
@@ -3216,6 +4463,7 @@ var UpdateMarginConfigEvent = /** @class */ (function () {
3216
4463
  typeName: UpdateMarginConfigEvent.$typeName,
3217
4464
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateMarginConfigEvent.$typeName], [], false)),
3218
4465
  typeArgs: [],
4466
+ isPhantom: UpdateMarginConfigEvent.$isPhantom,
3219
4467
  reifiedTypeArgs: [],
3220
4468
  fromFields: function (fields) { return UpdateMarginConfigEvent.fromFields(fields); },
3221
4469
  fromFieldsWithTypes: function (item) { return UpdateMarginConfigEvent.fromFieldsWithTypes(item); },
@@ -3224,6 +4472,7 @@ var UpdateMarginConfigEvent = /** @class */ (function () {
3224
4472
  fromJSONField: function (field) { return UpdateMarginConfigEvent.fromJSONField(field); },
3225
4473
  fromJSON: function (json) { return UpdateMarginConfigEvent.fromJSON(json); },
3226
4474
  fromSuiParsedData: function (content) { return UpdateMarginConfigEvent.fromSuiParsedData(content); },
4475
+ fromSuiObjectData: function (content) { return UpdateMarginConfigEvent.fromSuiObjectData(content); },
3227
4476
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3228
4477
  return [2 /*return*/, UpdateMarginConfigEvent.fetch(client, id)];
3229
4478
  }); }); },
@@ -3253,7 +4502,10 @@ var UpdateMarginConfigEvent = /** @class */ (function () {
3253
4502
  Object.defineProperty(UpdateMarginConfigEvent, "bcs", {
3254
4503
  get: function () {
3255
4504
  return bcs_1.bcs.struct("UpdateMarginConfigEvent", {
3256
- 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); } }),
4505
+ sender: bcs_1.bcs.bytes(32).transform({
4506
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
4507
+ output: function (val) { return (0, utils_1.toHEX)(val); },
4508
+ }),
3257
4509
  index: bcs_1.bcs.u64(),
3258
4510
  liquidity_token_type: structs_1.TypeName.bcs,
3259
4511
  previous_margin_config: MarginConfig.bcs,
@@ -3328,6 +4580,18 @@ var UpdateMarginConfigEvent = /** @class */ (function () {
3328
4580
  }
3329
4581
  return UpdateMarginConfigEvent.fromFieldsWithTypes(content);
3330
4582
  };
4583
+ UpdateMarginConfigEvent.fromSuiObjectData = function (data) {
4584
+ if (data.bcs) {
4585
+ if (data.bcs.dataType !== "moveObject" || !isUpdateMarginConfigEvent(data.bcs.type)) {
4586
+ throw new Error("object at is not a UpdateMarginConfigEvent object");
4587
+ }
4588
+ return UpdateMarginConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
4589
+ }
4590
+ if (data.content) {
4591
+ return UpdateMarginConfigEvent.fromSuiParsedData(data.content);
4592
+ }
4593
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
4594
+ };
3331
4595
  UpdateMarginConfigEvent.fetch = function (client, id) {
3332
4596
  return __awaiter(this, void 0, void 0, function () {
3333
4597
  var res;
@@ -3343,24 +4607,27 @@ var UpdateMarginConfigEvent = /** @class */ (function () {
3343
4607
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateMarginConfigEvent(res.data.bcs.type)) {
3344
4608
  throw new Error("object at id ".concat(id, " is not a UpdateMarginConfigEvent object"));
3345
4609
  }
3346
- return [2 /*return*/, UpdateMarginConfigEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
4610
+ return [2 /*return*/, UpdateMarginConfigEvent.fromSuiObjectData(res.data)];
3347
4611
  }
3348
4612
  });
3349
4613
  });
3350
4614
  };
3351
- UpdateMarginConfigEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::UpdateMarginConfigEvent";
4615
+ UpdateMarginConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::UpdateMarginConfigEvent");
3352
4616
  UpdateMarginConfigEvent.$numTypeParams = 0;
4617
+ UpdateMarginConfigEvent.$isPhantom = [];
3353
4618
  return UpdateMarginConfigEvent;
3354
4619
  }());
3355
4620
  exports.UpdateMarginConfigEvent = UpdateMarginConfigEvent;
3356
4621
  /* ============================== UpdateSpotConfigEvent =============================== */
3357
4622
  function isUpdateSpotConfigEvent(type) {
3358
4623
  type = (0, util_1.compressSuiType)(type);
3359
- return type === "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::UpdateSpotConfigEvent";
4624
+ return type === "".concat(index_1.PKG_V1, "::lp_pool::UpdateSpotConfigEvent");
3360
4625
  }
3361
4626
  var UpdateSpotConfigEvent = /** @class */ (function () {
3362
4627
  function UpdateSpotConfigEvent(typeArgs, fields) {
4628
+ this.__StructClass = true;
3363
4629
  this.$typeName = UpdateSpotConfigEvent.$typeName;
4630
+ this.$isPhantom = UpdateSpotConfigEvent.$isPhantom;
3364
4631
  this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateSpotConfigEvent.$typeName], __read(typeArgs), false));
3365
4632
  this.$typeArgs = typeArgs;
3366
4633
  this.sender = fields.sender;
@@ -3376,6 +4643,7 @@ var UpdateSpotConfigEvent = /** @class */ (function () {
3376
4643
  typeName: UpdateSpotConfigEvent.$typeName,
3377
4644
  fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateSpotConfigEvent.$typeName], [], false)),
3378
4645
  typeArgs: [],
4646
+ isPhantom: UpdateSpotConfigEvent.$isPhantom,
3379
4647
  reifiedTypeArgs: [],
3380
4648
  fromFields: function (fields) { return UpdateSpotConfigEvent.fromFields(fields); },
3381
4649
  fromFieldsWithTypes: function (item) { return UpdateSpotConfigEvent.fromFieldsWithTypes(item); },
@@ -3384,6 +4652,7 @@ var UpdateSpotConfigEvent = /** @class */ (function () {
3384
4652
  fromJSONField: function (field) { return UpdateSpotConfigEvent.fromJSONField(field); },
3385
4653
  fromJSON: function (json) { return UpdateSpotConfigEvent.fromJSON(json); },
3386
4654
  fromSuiParsedData: function (content) { return UpdateSpotConfigEvent.fromSuiParsedData(content); },
4655
+ fromSuiObjectData: function (content) { return UpdateSpotConfigEvent.fromSuiObjectData(content); },
3387
4656
  fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
3388
4657
  return [2 /*return*/, UpdateSpotConfigEvent.fetch(client, id)];
3389
4658
  }); }); },
@@ -3413,7 +4682,10 @@ var UpdateSpotConfigEvent = /** @class */ (function () {
3413
4682
  Object.defineProperty(UpdateSpotConfigEvent, "bcs", {
3414
4683
  get: function () {
3415
4684
  return bcs_1.bcs.struct("UpdateSpotConfigEvent", {
3416
- 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); } }),
4685
+ sender: bcs_1.bcs.bytes(32).transform({
4686
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
4687
+ output: function (val) { return (0, utils_1.toHEX)(val); },
4688
+ }),
3417
4689
  index: bcs_1.bcs.u64(),
3418
4690
  liquidity_token_type: structs_1.TypeName.bcs,
3419
4691
  previous_spot_config: SpotConfig.bcs,
@@ -3488,6 +4760,18 @@ var UpdateSpotConfigEvent = /** @class */ (function () {
3488
4760
  }
3489
4761
  return UpdateSpotConfigEvent.fromFieldsWithTypes(content);
3490
4762
  };
4763
+ UpdateSpotConfigEvent.fromSuiObjectData = function (data) {
4764
+ if (data.bcs) {
4765
+ if (data.bcs.dataType !== "moveObject" || !isUpdateSpotConfigEvent(data.bcs.type)) {
4766
+ throw new Error("object at is not a UpdateSpotConfigEvent object");
4767
+ }
4768
+ return UpdateSpotConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
4769
+ }
4770
+ if (data.content) {
4771
+ return UpdateSpotConfigEvent.fromSuiParsedData(data.content);
4772
+ }
4773
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
4774
+ };
3491
4775
  UpdateSpotConfigEvent.fetch = function (client, id) {
3492
4776
  return __awaiter(this, void 0, void 0, function () {
3493
4777
  var res;
@@ -3503,13 +4787,14 @@ var UpdateSpotConfigEvent = /** @class */ (function () {
3503
4787
  if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateSpotConfigEvent(res.data.bcs.type)) {
3504
4788
  throw new Error("object at id ".concat(id, " is not a UpdateSpotConfigEvent object"));
3505
4789
  }
3506
- return [2 /*return*/, UpdateSpotConfigEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
4790
+ return [2 /*return*/, UpdateSpotConfigEvent.fromSuiObjectData(res.data)];
3507
4791
  }
3508
4792
  });
3509
4793
  });
3510
4794
  };
3511
- UpdateSpotConfigEvent.$typeName = "0x4bcf9eade4480bcb9fcd3139ec8d22afda34b25af06092904fcccb06e1b8043c::lp_pool::UpdateSpotConfigEvent";
4795
+ UpdateSpotConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::lp_pool::UpdateSpotConfigEvent");
3512
4796
  UpdateSpotConfigEvent.$numTypeParams = 0;
4797
+ UpdateSpotConfigEvent.$isPhantom = [];
3513
4798
  return UpdateSpotConfigEvent;
3514
4799
  }());
3515
4800
  exports.UpdateSpotConfigEvent = UpdateSpotConfigEvent;