@typus/typus-sdk 1.4.84 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (574) hide show
  1. package/dist/src/auto-bid/token-user-entry.d.ts +9 -9
  2. package/dist/src/auto-bid/token-user-entry.js +24 -24
  3. package/dist/src/auto-bid/user-entry.d.ts +9 -9
  4. package/dist/src/auto-bid/user-entry.js +46 -46
  5. package/dist/src/auto-bid/view-function.js +14 -14
  6. package/dist/src/constants/constant.d.ts +1 -1
  7. package/dist/src/constants/constant.js +1 -1
  8. package/dist/src/constants/token.d.ts +4 -1
  9. package/dist/src/constants/token.js +4 -1
  10. package/dist/src/dice/fetch.js +1 -1
  11. package/dist/src/dice/user-entry.d.ts +11 -11
  12. package/dist/src/dice/user-entry.js +34 -34
  13. package/dist/src/typus/airdrop/authority-entry.d.ts +5 -5
  14. package/dist/src/typus/airdrop/authority-entry.js +10 -10
  15. package/dist/src/typus/airdrop/user-entry.d.ts +3 -3
  16. package/dist/src/typus/airdrop/user-entry.js +2 -2
  17. package/dist/src/typus/airdrop/view-function.js +10 -10
  18. package/dist/src/typus/leaderboard/authority-entry.d.ts +5 -5
  19. package/dist/src/typus/leaderboard/authority-entry.js +9 -4
  20. package/dist/src/typus/leaderboard/view-function.js +13 -13
  21. package/dist/src/typus/tails-staking/authority-entry.d.ts +29 -27
  22. package/dist/src/typus/tails-staking/authority-entry.js +22 -20
  23. package/dist/src/typus/tails-staking/user-entry.d.ts +23 -23
  24. package/dist/src/typus/tails-staking/user-entry.js +30 -30
  25. package/dist/src/typus/tails-staking/view-function.js +14 -14
  26. package/dist/src/typus/user/view-function.js +9 -9
  27. package/dist/src/typus-dov-single-v2/authority-entry.d.ts +4 -4
  28. package/dist/src/typus-dov-single-v2/authority-entry.js +21 -21
  29. package/dist/src/typus-dov-single-v2/function/bidding.d.ts +1 -83
  30. package/dist/src/typus-dov-single-v2/function/bidding.js +9 -182
  31. package/dist/src/typus-dov-single-v2/function/index.d.ts +0 -1
  32. package/dist/src/typus-dov-single-v2/function/index.js +1 -1
  33. package/dist/src/typus-dov-single-v2/function/token.js +3 -1
  34. package/dist/src/typus-dov-single-v2/history/user-history.d.ts +1 -1
  35. package/dist/src/typus-dov-single-v2/history/vault-history.d.ts +1 -2
  36. package/dist/src/typus-dov-single-v2/history/vault-history.js +1 -99
  37. package/dist/src/typus-dov-single-v2/token-user-entry.d.ts +13 -13
  38. package/dist/src/typus-dov-single-v2/token-user-entry.js +29 -29
  39. package/dist/src/typus-dov-single-v2/user-entry.d.ts +20 -20
  40. package/dist/src/typus-dov-single-v2/user-entry.js +61 -59
  41. package/dist/src/typus-dov-single-v2/view-function.js +55 -55
  42. package/dist/src/typus-launch/airdrop/authority-entry.d.ts +3 -3
  43. package/dist/src/typus-launch/airdrop/authority-entry.js +7 -7
  44. package/dist/src/typus-launch/airdrop/user-entry.d.ts +2 -2
  45. package/dist/src/typus-launch/airdrop/user-entry.js +2 -2
  46. package/dist/src/typus-launch/airdrop/view-function.d.ts +1 -0
  47. package/dist/src/typus-launch/airdrop/view-function.js +10 -9
  48. package/dist/src/typus-launch/auction/entry.d.ts +5 -5
  49. package/dist/src/typus-launch/auction/entry.js +4 -4
  50. package/dist/src/typus-launch/auction/view-function.js +17 -17
  51. package/dist/src/typus-launch/funding-vault/authority-entry.d.ts +11 -11
  52. package/dist/src/typus-launch/funding-vault/authority-entry.js +32 -24
  53. package/dist/src/typus-launch/funding-vault/user-entry.d.ts +3 -3
  54. package/dist/src/typus-launch/funding-vault/user-entry.js +6 -6
  55. package/dist/src/typus-launch/funding-vault/view-function.js +29 -29
  56. package/dist/src/typus-launch/improvement-proposal/authority-entry.d.ts +11 -9
  57. package/dist/src/typus-launch/improvement-proposal/authority-entry.js +23 -21
  58. package/dist/src/typus-launch/improvement-proposal/user-entry.d.ts +3 -3
  59. package/dist/src/typus-launch/improvement-proposal/user-entry.js +2 -2
  60. package/dist/src/typus-launch/improvement-proposal/view-function.d.ts +6 -1
  61. package/dist/src/typus-launch/improvement-proposal/view-function.js +43 -35
  62. package/dist/src/typus-launch/option-airdrop/authority-entry.d.ts +5 -5
  63. package/dist/src/typus-launch/option-airdrop/authority-entry.js +6 -6
  64. package/dist/src/typus-launch/ve-typus/authority-entry.d.ts +5 -5
  65. package/dist/src/typus-launch/ve-typus/authority-entry.js +10 -10
  66. package/dist/src/typus-launch/ve-typus/user-entry.d.ts +4 -4
  67. package/dist/src/typus-launch/ve-typus/user-entry.js +9 -6
  68. package/dist/src/typus-launch/ve-typus/view-function.js +18 -18
  69. package/dist/src/typus-nft/fetch.d.ts +2 -2
  70. package/dist/src/typus-nft/user-entry.d.ts +11 -11
  71. package/dist/src/typus-nft/user-entry.js +3 -3
  72. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/ascii/structs.d.ts +16 -6
  73. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/ascii/structs.js +161 -45
  74. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/bit-vector/structs.d.ts +10 -4
  75. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/bit-vector/structs.js +90 -25
  76. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/fixed-point32/structs.d.ts +8 -3
  77. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/fixed-point32/structs.js +84 -23
  78. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/index.d.ts +1 -0
  79. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/index.js +2 -1
  80. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/init.js +4 -0
  81. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/option/structs.d.ts +10 -4
  82. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/option/structs.js +94 -25
  83. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/string/structs.d.ts +10 -4
  84. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/string/structs.js +84 -23
  85. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/type-name/structs.d.ts +8 -3
  86. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/type-name/structs.js +84 -23
  87. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.d.ts +46 -0
  88. package/dist/src/typus-perp/_dependencies/source/0x1/uq32-32/structs.js +228 -0
  89. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.d.ts +46 -0
  90. package/dist/src/typus-perp/_dependencies/source/0x1/uq64-64/structs.js +228 -0
  91. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +5 -0
  92. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +8 -0
  93. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.js +1 -0
  94. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.d.ts +86 -13
  95. package/dist/src/typus-perp/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +793 -0
  96. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.d.ts +14 -5
  97. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/pyth-parser/structs.js +52 -10
  98. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.d.ts +8 -3
  99. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/supra/structs.js +105 -28
  100. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.d.ts +8 -3
  101. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/switchboard-feed-parser/structs.js +108 -28
  102. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/authenticator-state/structs.d.ts +34 -12
  103. package/dist/src/typus-perp/_dependencies/source/0x2/authenticator-state/structs.js +894 -0
  104. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bag/structs.d.ts +8 -3
  105. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bag/structs.js +90 -25
  106. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/balance/structs.d.ts +14 -5
  107. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/balance/structs.js +183 -45
  108. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bcs/structs.d.ts +10 -4
  109. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bcs/structs.js +84 -23
  110. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/bls12381/structs.d.ts +68 -9
  111. package/dist/src/typus-perp/_dependencies/source/0x2/bls12381/structs.js +820 -0
  112. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/borrow/structs.d.ts +13 -4
  113. package/dist/src/typus-perp/_dependencies/source/0x2/borrow/structs.js +410 -0
  114. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/clock/structs.d.ts +8 -3
  115. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/clock/structs.js +90 -25
  116. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/coin/structs.d.ts +94 -13
  117. package/dist/src/typus-perp/_dependencies/source/0x2/coin/structs.js +1259 -0
  118. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.d.ts +179 -0
  119. package/dist/src/typus-perp/_dependencies/source/0x2/config/structs.js +577 -0
  120. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.d.ts +430 -0
  121. package/dist/src/typus-perp/_dependencies/source/0x2/deny-list/structs.js +1177 -0
  122. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/display/structs.d.ts +20 -7
  123. package/dist/src/typus-perp/_dependencies/source/0x2/display/structs.js +584 -0
  124. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-field/structs.d.ts +12 -7
  125. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-field/structs.js +110 -28
  126. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-object-field/structs.d.ts +10 -5
  127. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/dynamic-object-field/structs.js +94 -24
  128. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/groth16/structs.d.ts +28 -10
  129. package/dist/src/typus-perp/_dependencies/source/0x2/groth16/structs.js +710 -0
  130. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/group-ops/structs.d.ts +10 -4
  131. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/group-ops/structs.js +93 -23
  132. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/index.d.ts +1 -0
  133. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/index.js +2 -1
  134. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/init.js +16 -5
  135. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk/structs.d.ts +62 -21
  136. package/dist/src/typus-perp/_dependencies/source/0x2/kiosk/structs.js +1724 -0
  137. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk-extension/structs.d.ts +14 -5
  138. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/kiosk-extension/structs.js +185 -48
  139. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/linked-table/structs.d.ts +15 -6
  140. package/dist/src/typus-perp/_dependencies/source/0x2/linked-table/structs.js +438 -0
  141. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object/structs.d.ts +14 -5
  142. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object/structs.js +166 -45
  143. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-bag/structs.d.ts +8 -3
  144. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-bag/structs.js +90 -25
  145. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-table/structs.d.ts +8 -3
  146. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/object-table/structs.js +101 -25
  147. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/package/structs.d.ts +28 -10
  148. package/dist/src/typus-perp/_dependencies/source/0x2/package/structs.js +752 -0
  149. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/priority-queue/structs.d.ts +19 -9
  150. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/priority-queue/structs.js +192 -50
  151. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/random/structs.d.ts +22 -8
  152. package/dist/src/typus-perp/_dependencies/source/0x2/random/structs.js +586 -0
  153. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/sui/structs.d.ts +8 -3
  154. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/sui/structs.js +84 -23
  155. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table/structs.d.ts +8 -3
  156. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table/structs.js +101 -25
  157. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table-vec/structs.d.ts +8 -3
  158. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/table-vec/structs.js +93 -23
  159. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/token/structs.d.ts +38 -13
  160. package/dist/src/typus-perp/_dependencies/source/0x2/token/structs.js +1107 -0
  161. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer/structs.d.ts +8 -3
  162. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer/structs.js +99 -25
  163. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/transfer-policy/structs.d.ts +38 -13
  164. package/dist/src/typus-perp/_dependencies/source/0x2/transfer-policy/structs.js +1099 -0
  165. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/tx-context/structs.d.ts +10 -4
  166. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/tx-context/structs.js +108 -28
  167. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/url/structs.d.ts +8 -3
  168. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/url/structs.js +84 -23
  169. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-map/structs.d.ts +23 -13
  170. package/dist/src/typus-perp/_dependencies/source/0x2/vec-map/structs.js +436 -0
  171. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-set/structs.d.ts +10 -4
  172. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/vec-set/structs.js +94 -24
  173. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/versioned/structs.d.ts +14 -5
  174. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/versioned/structs.js +177 -49
  175. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-id/structs.d.ts +8 -3
  176. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-id/structs.js +113 -29
  177. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-issuer/structs.d.ts +8 -3
  178. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/zklogin-verified-issuer/structs.js +98 -26
  179. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +1 -0
  180. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +2 -1
  181. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +8 -3
  182. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +84 -23
  183. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
  184. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +3 -1
  185. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +8 -3
  186. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +84 -23
  187. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +14 -5
  188. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +186 -50
  189. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.d.ts +40 -14
  190. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +1092 -0
  191. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.d.ts +15 -5
  192. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/big-vector/structs.js +52 -7
  193. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.d.ts +20 -7
  194. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +643 -0
  195. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.d.ts +34 -12
  196. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +898 -0
  197. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +8 -0
  198. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +11 -0
  199. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.js +20 -1
  200. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.d.ts +227 -0
  201. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/keyed-big-vector/structs.js +622 -0
  202. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.d.ts +124 -16
  203. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +1476 -0
  204. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.d.ts +13 -4
  205. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +438 -0
  206. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.d.ts +13 -4
  207. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +430 -0
  208. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.d.ts +1071 -0
  209. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tails-staking/structs.js +2275 -0
  210. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.d.ts +68 -50
  211. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +732 -0
  212. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.d.ts +34 -12
  213. package/dist/src/typus-perp/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +900 -0
  214. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.d.ts +46 -16
  215. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +1335 -0
  216. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +9 -0
  217. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +12 -0
  218. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.js +4 -3
  219. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/royalty-rule/structs.d.ts +50 -41
  220. package/dist/src/{_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585 → typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828}/royalty-rule/structs.js +227 -103
  221. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.d.ts +76 -55
  222. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +886 -0
  223. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.d.ts +8 -3
  224. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/table-vec/structs.js +93 -23
  225. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.d.ts +247 -136
  226. package/dist/src/typus-perp/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +2407 -0
  227. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.d.ts +100 -34
  228. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +3052 -0
  229. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +10 -0
  230. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +13 -0
  231. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.js +23 -17
  232. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.d.ts +213 -147
  233. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +2846 -0
  234. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.d.ts +58 -20
  235. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +1669 -0
  236. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.d.ts +46 -16
  237. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +1249 -0
  238. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.d.ts +244 -82
  239. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +1869 -0
  240. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.d.ts +8 -3
  241. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-view-function/structs.js +115 -30
  242. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.d.ts +534 -74
  243. package/dist/src/typus-perp/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +7680 -0
  244. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +1 -0
  245. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +2 -1
  246. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +8 -3
  247. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +87 -23
  248. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +22 -8
  249. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +581 -0
  250. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +8 -3
  251. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +109 -27
  252. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +50 -17
  253. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +1735 -0
  254. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +8 -3
  255. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +80 -23
  256. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +3 -0
  257. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +6 -0
  258. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +15 -6
  259. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +444 -0
  260. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +172 -58
  261. package/dist/src/typus-perp/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +5014 -0
  262. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +40 -14
  263. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +1229 -0
  264. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +1 -0
  265. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +2 -1
  266. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +10 -4
  267. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +105 -28
  268. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +8 -3
  269. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +95 -26
  270. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +10 -4
  271. package/dist/src/typus-perp/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +322 -0
  272. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +8 -3
  273. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +84 -23
  274. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/batch-price-attestation/structs.d.ts +22 -12
  275. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/batch-price-attestation/structs.js +202 -54
  276. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/contract-upgrade/structs.d.ts +21 -12
  277. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/contract-upgrade/structs.js +172 -48
  278. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/data-source/structs.d.ts +12 -7
  279. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/data-source/structs.js +91 -26
  280. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/event/structs.d.ts +20 -11
  281. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/event/structs.js +171 -47
  282. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance/structs.d.ts +14 -8
  283. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance/structs.js +96 -27
  284. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-action/structs.d.ts +11 -6
  285. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-action/structs.js +84 -23
  286. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-instruction/structs.d.ts +13 -7
  287. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/governance-instruction/structs.js +100 -27
  288. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/hot-potato-vector/structs.d.ts +12 -6
  289. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/hot-potato-vector/structs.js +94 -24
  290. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/i64/structs.d.ts +11 -6
  291. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/i64/structs.js +90 -25
  292. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.d.ts +3 -0
  293. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/index.js +6 -0
  294. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/init.js +1 -0
  295. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/migrate/structs.d.ts +11 -6
  296. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/migrate/structs.js +84 -23
  297. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price/structs.d.ts +11 -6
  298. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price/structs.js +100 -27
  299. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-feed/structs.d.ts +11 -6
  300. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-feed/structs.js +95 -26
  301. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-identifier/structs.d.ts +13 -7
  302. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-identifier/structs.js +84 -23
  303. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-info/structs.d.ts +20 -11
  304. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-info/structs.js +182 -50
  305. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-status/structs.d.ts +11 -6
  306. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/price-status/structs.js +84 -23
  307. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set/structs.d.ts +20 -10
  308. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set/structs.js +181 -48
  309. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-data-sources/structs.d.ts +13 -7
  310. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-data-sources/structs.js +85 -24
  311. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-fee-recipient/structs.d.ts +11 -6
  312. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-fee-recipient/structs.js +87 -23
  313. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-governance-data-source/structs.d.ts +12 -7
  314. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-governance-data-source/structs.js +96 -27
  315. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-stale-price-threshold/structs.d.ts +11 -6
  316. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-stale-price-threshold/structs.js +84 -23
  317. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-update-fee/structs.d.ts +11 -6
  318. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/set-update-fee/structs.js +90 -25
  319. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/setup/structs.d.ts +11 -6
  320. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/setup/structs.js +84 -23
  321. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/state/structs.d.ts +30 -17
  322. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/state/structs.js +573 -0
  323. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.d.ts +130 -0
  324. package/dist/src/typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837/version-control/structs.js +524 -0
  325. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +1 -0
  326. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +2 -1
  327. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +48 -39
  328. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +217 -97
  329. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +50 -41
  330. package/dist/src/{_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828 → typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585}/royalty-rule/structs.js +227 -103
  331. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +8 -3
  332. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +93 -23
  333. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes20/structs.d.ts +13 -7
  334. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes20/structs.js +84 -23
  335. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes32/structs.d.ts +13 -7
  336. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/bytes32/structs.js +84 -23
  337. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/consumed-vaas/structs.d.ts +11 -6
  338. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/consumed-vaas/structs.js +84 -23
  339. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/cursor/structs.d.ts +12 -6
  340. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/cursor/structs.js +94 -24
  341. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/emitter/structs.d.ts +29 -16
  342. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/emitter/structs.js +531 -0
  343. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/external-address/structs.d.ts +11 -6
  344. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/external-address/structs.js +84 -23
  345. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/fee-collector/structs.d.ts +11 -6
  346. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/fee-collector/structs.js +90 -25
  347. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/governance-message/structs.d.ts +20 -10
  348. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/governance-message/structs.js +460 -0
  349. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian/structs.d.ts +11 -6
  350. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian/structs.js +84 -23
  351. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-set/structs.d.ts +13 -7
  352. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-set/structs.js +95 -26
  353. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-signature/structs.d.ts +11 -6
  354. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/guardian-signature/structs.js +100 -27
  355. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.d.ts +3 -0
  356. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/index.js +6 -0
  357. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/migrate/structs.d.ts +11 -6
  358. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/migrate/structs.js +84 -23
  359. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/package-utils/structs.d.ts +38 -21
  360. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/package-utils/structs.js +680 -0
  361. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/publish-message/structs.d.ts +22 -12
  362. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/publish-message/structs.js +449 -0
  363. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set/structs.d.ts +52 -43
  364. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set/structs.js +232 -103
  365. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set-fee/structs.d.ts +20 -11
  366. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/set-fee/structs.js +165 -45
  367. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/setup/structs.d.ts +11 -6
  368. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/setup/structs.js +84 -23
  369. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/state/structs.d.ts +20 -11
  370. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/state/structs.js +455 -0
  371. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/transfer-fee/structs.d.ts +20 -11
  372. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/transfer-fee/structs.js +174 -47
  373. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/update-guardian-set/structs.d.ts +31 -17
  374. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/update-guardian-set/structs.js +252 -69
  375. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/upgrade-contract/structs.d.ts +62 -49
  376. package/dist/src/typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94/upgrade-contract/structs.js +532 -0
  377. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/vaa/structs.d.ts +13 -7
  378. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/vaa/structs.js +125 -32
  379. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/version-control/structs.d.ts +20 -11
  380. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/version-control/structs.js +165 -45
  381. package/dist/src/typus-perp/_framework/init-loader.d.ts +2 -0
  382. package/dist/src/typus-perp/_framework/init-loader.js +63 -0
  383. package/dist/src/{_framework → typus-perp/_framework}/loader.d.ts +3 -3
  384. package/dist/src/{_framework → typus-perp/_framework}/loader.js +14 -5
  385. package/dist/src/{_framework → typus-perp/_framework}/reified.d.ts +28 -20
  386. package/dist/src/{_framework → typus-perp/_framework}/reified.js +11 -37
  387. package/dist/src/typus-perp/_framework/util.d.ts +35 -0
  388. package/dist/src/typus-perp/_framework/util.js +396 -0
  389. package/dist/src/typus-perp/_framework/vector.d.ts +35 -0
  390. package/dist/src/typus-perp/_framework/vector.js +112 -0
  391. package/dist/src/typus-perp/fetch.d.ts +5 -5
  392. package/dist/src/typus-perp/fetch.js +16 -16
  393. package/dist/src/typus-perp/index.d.ts +2 -4
  394. package/dist/src/typus-perp/index.js +5 -64
  395. package/dist/src/typus-perp/readVec.js +9 -9
  396. package/dist/src/typus-perp/typus_perp/admin/functions.d.ts +50 -0
  397. package/dist/src/typus-perp/typus_perp/admin/functions.js +116 -0
  398. package/dist/src/typus-perp/{admin → typus_perp/admin}/structs.d.ts +49 -27
  399. package/dist/src/typus-perp/{admin → typus_perp/admin}/structs.js +117 -21
  400. package/dist/src/typus-perp/typus_perp/index.d.ts +3 -0
  401. package/dist/src/typus-perp/typus_perp/index.js +6 -0
  402. package/dist/src/typus-perp/{init.js → typus_perp/init.js} +13 -26
  403. package/dist/src/typus-perp/typus_perp/lp-pool/functions.d.ts +342 -0
  404. package/dist/src/typus-perp/typus_perp/lp-pool/functions.js +517 -0
  405. package/dist/src/typus-perp/{lp-pool → typus_perp/lp-pool}/structs.d.ts +698 -148
  406. package/dist/src/typus-perp/{lp-pool → typus_perp/lp-pool}/structs.js +1457 -172
  407. package/dist/src/typus-perp/typus_perp/math/functions.d.ts +18 -0
  408. package/dist/src/typus-perp/typus_perp/math/functions.js +49 -0
  409. package/dist/src/typus-perp/typus_perp/oracle/functions.d.ts +13 -0
  410. package/dist/src/typus-perp/typus_perp/oracle/functions.js +25 -0
  411. package/dist/src/typus-perp/{oracle → typus_perp/oracle}/structs.d.ts +20 -11
  412. package/dist/src/typus-perp/{oracle → typus_perp/oracle}/structs.js +52 -10
  413. package/dist/src/typus-perp/typus_perp/position/functions.d.ts +343 -0
  414. package/dist/src/typus-perp/typus_perp/position/functions.js +659 -0
  415. package/dist/src/typus-perp/{position → typus_perp/position}/structs.d.ts +73 -43
  416. package/dist/src/typus-perp/{position → typus_perp/position}/structs.js +177 -38
  417. package/dist/src/typus-perp/typus_perp/symbol/functions.d.ts +9 -0
  418. package/dist/src/typus-perp/typus_perp/symbol/functions.js +33 -0
  419. package/dist/src/typus-perp/{symbol → typus_perp/symbol}/structs.d.ts +11 -6
  420. package/dist/src/typus-perp/{symbol → typus_perp/symbol}/structs.js +23 -4
  421. package/dist/src/typus-perp/typus_perp/tlp/functions.d.ts +19 -0
  422. package/dist/src/typus-perp/typus_perp/tlp/functions.js +41 -0
  423. package/dist/src/typus-perp/{tlp → typus_perp/tlp}/structs.d.ts +20 -11
  424. package/dist/src/typus-perp/{tlp → typus_perp/tlp}/structs.js +61 -13
  425. package/dist/src/typus-perp/typus_perp/token-interface/functions.d.ts +11 -0
  426. package/dist/src/typus-perp/{token-interface → typus_perp/token-interface}/functions.js +6 -6
  427. package/dist/src/typus-perp/typus_perp/trading/functions.d.ts +493 -0
  428. package/dist/src/typus-perp/typus_perp/trading/functions.js +711 -0
  429. package/dist/src/typus-perp/{trading → typus_perp/trading}/structs.d.ts +523 -161
  430. package/dist/src/typus-perp/{trading → typus_perp/trading}/structs.js +1042 -107
  431. package/dist/src/typus-perp/typus_perp/treasury-caps/functions.d.ts +9 -0
  432. package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/functions.js +14 -11
  433. package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/structs.d.ts +11 -6
  434. package/dist/src/typus-perp/{treasury-caps → typus_perp/treasury-caps}/structs.js +32 -7
  435. package/dist/src/typus-perp/typus_stake_pool/admin/functions.d.ts +50 -0
  436. package/dist/src/typus-perp/typus_stake_pool/admin/functions.js +116 -0
  437. package/dist/src/typus-perp/typus_stake_pool/admin/structs.d.ts +447 -0
  438. package/dist/src/typus-perp/typus_stake_pool/admin/structs.js +898 -0
  439. package/dist/src/typus-perp/typus_stake_pool/index.d.ts +3 -0
  440. package/dist/src/typus-perp/typus_stake_pool/index.js +6 -0
  441. package/dist/src/typus-perp/typus_stake_pool/init.d.ts +2 -0
  442. package/dist/src/typus-perp/typus_stake_pool/init.js +57 -0
  443. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.d.ts +175 -0
  444. package/dist/src/typus-perp/typus_stake_pool/stake-pool/functions.js +275 -0
  445. package/dist/src/typus-perp/{stake-pool → typus_stake_pool/stake-pool}/structs.d.ts +293 -185
  446. package/dist/src/typus-perp/{stake-pool → typus_stake_pool/stake-pool}/structs.js +659 -235
  447. package/dist/src/typus-perp/user/order.d.ts +10 -10
  448. package/dist/src/typus-perp/user/order.js +6 -5
  449. package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +5 -5
  450. package/dist/src/typus-perp/user/orderWithBidReceipt.js +3 -3
  451. package/dist/src/typus-perp/user/tlp.d.ts +12 -12
  452. package/dist/src/typus-perp/user/tlp.js +13 -11
  453. package/dist/src/typus-safu/user-entry.d.ts +9 -9
  454. package/dist/src/typus-safu/user-entry.js +18 -18
  455. package/dist/src/typus-safu/user-history.d.ts +1 -1
  456. package/dist/src/typus-safu/user-history.js +1 -1
  457. package/dist/src/typus-safu/view-function.js +17 -17
  458. package/dist/src/utils/api/price.js +18 -2
  459. package/dist/src/utils/api/sentio/reward-generated.d.ts +1 -1
  460. package/dist/src/utils/mint.d.ts +2 -2
  461. package/dist/src/utils/mint.js +3 -3
  462. package/dist/src/utils/pyth/constant.d.ts +2 -0
  463. package/dist/src/utils/pyth/constant.js +2 -0
  464. package/dist/src/utils/pyth/pythClient.d.ts +3 -3
  465. package/dist/src/utils/typusConfig.d.ts +8 -2
  466. package/package.json +4 -5
  467. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.d.ts +0 -2
  468. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/index.js +0 -5
  469. package/dist/src/_dependencies/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/oracle/structs.js +0 -377
  470. package/dist/src/_dependencies/source/0x2/authenticator-state/structs.js +0 -565
  471. package/dist/src/_dependencies/source/0x2/bls12381/structs.js +0 -434
  472. package/dist/src/_dependencies/source/0x2/borrow/structs.js +0 -267
  473. package/dist/src/_dependencies/source/0x2/coin/structs.js +0 -648
  474. package/dist/src/_dependencies/source/0x2/deny-list/structs.d.ts +0 -178
  475. package/dist/src/_dependencies/source/0x2/deny-list/structs.js +0 -290
  476. package/dist/src/_dependencies/source/0x2/display/structs.js +0 -362
  477. package/dist/src/_dependencies/source/0x2/groth16/structs.js +0 -464
  478. package/dist/src/_dependencies/source/0x2/kiosk/structs.js +0 -1033
  479. package/dist/src/_dependencies/source/0x2/linked-table/structs.js +0 -272
  480. package/dist/src/_dependencies/source/0x2/package/structs.js +0 -478
  481. package/dist/src/_dependencies/source/0x2/random/structs.js +0 -383
  482. package/dist/src/_dependencies/source/0x2/token/structs.js +0 -651
  483. package/dist/src/_dependencies/source/0x2/transfer-policy/structs.js +0 -665
  484. package/dist/src/_dependencies/source/0x2/vec-map/structs.js +0 -286
  485. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/airdrop/structs.js +0 -669
  486. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/critbit/structs.js +0 -402
  487. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/ecosystem/structs.js +0 -566
  488. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.d.ts +0 -2
  489. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/index.js +0 -5
  490. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/leaderboard/structs.js +0 -774
  491. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-object-table/structs.js +0 -272
  492. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/linked-set/structs.js +0 -276
  493. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/tgld/structs.js +0 -471
  494. package/dist/src/_dependencies/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/user/structs.js +0 -563
  495. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/discount-mint/structs.js +0 -789
  496. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.d.ts +0 -2
  497. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/index.js +0 -5
  498. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/staking/structs.js +0 -562
  499. package/dist/src/_dependencies/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/typus-nft/structs.js +0 -1331
  500. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/auto-bid/structs.js +0 -1706
  501. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.d.ts +0 -2
  502. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/index.js +0 -5
  503. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tails-staking/structs.js +0 -1643
  504. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-authorized-entry/structs.js +0 -971
  505. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-fee-pool-entry/structs.js +0 -750
  506. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/tds-registry-authorized-entry/structs.js +0 -933
  507. package/dist/src/_dependencies/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/typus-dov-single/structs.js +0 -3796
  508. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +0 -382
  509. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +0 -959
  510. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +0 -2
  511. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +0 -5
  512. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +0 -274
  513. package/dist/src/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +0 -2830
  514. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +0 -711
  515. package/dist/src/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +0 -212
  516. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +0 -348
  517. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +0 -298
  518. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +0 -2
  519. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +0 -5
  520. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +0 -438
  521. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +0 -297
  522. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +0 -303
  523. package/dist/src/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +0 -349
  524. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +0 -2
  525. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +0 -5
  526. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +0 -363
  527. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +0 -79
  528. package/dist/src/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +0 -256
  529. package/dist/src/_framework/init-source.d.ts +0 -1
  530. package/dist/src/_framework/init-source.js +0 -64
  531. package/dist/src/_framework/util.d.ts +0 -53
  532. package/dist/src/_framework/util.js +0 -251
  533. package/dist/src/typus-perp/admin/functions.d.ts +0 -51
  534. package/dist/src/typus-perp/admin/functions.js +0 -100
  535. package/dist/src/typus-perp/lp-pool/functions.d.ts +0 -283
  536. package/dist/src/typus-perp/lp-pool/functions.js +0 -418
  537. package/dist/src/typus-perp/math/functions.d.ts +0 -18
  538. package/dist/src/typus-perp/math/functions.js +0 -40
  539. package/dist/src/typus-perp/oracle/functions.d.ts +0 -14
  540. package/dist/src/typus-perp/oracle/functions.js +0 -22
  541. package/dist/src/typus-perp/position/functions.d.ts +0 -339
  542. package/dist/src/typus-perp/position/functions.js +0 -564
  543. package/dist/src/typus-perp/stake-pool/functions.d.ts +0 -169
  544. package/dist/src/typus-perp/stake-pool/functions.js +0 -258
  545. package/dist/src/typus-perp/symbol/functions.d.ts +0 -10
  546. package/dist/src/typus-perp/symbol/functions.js +0 -20
  547. package/dist/src/typus-perp/tlp/functions.d.ts +0 -20
  548. package/dist/src/typus-perp/tlp/functions.js +0 -35
  549. package/dist/src/typus-perp/token-interface/functions.d.ts +0 -12
  550. package/dist/src/typus-perp/trading/functions.d.ts +0 -427
  551. package/dist/src/typus-perp/trading/functions.js +0 -612
  552. package/dist/src/typus-perp/treasury-caps/functions.d.ts +0 -10
  553. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1/init.d.ts +0 -0
  554. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x1d17058789bd1e1e79f1a92424519a88146f191f58a06cc4d9ab23d17d46ab73/init.d.ts +0 -0
  555. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2/init.d.ts +0 -0
  556. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +0 -0
  557. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +0 -0
  558. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +0 -0
  559. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +0 -0
  560. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x4213e12a2220f15f1837a76897110d2260786558169bd8d0847f21e9b551f277/init.d.ts +0 -0
  561. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x5cfd0819411be98034cba544cbffab192c2c35674a05ff57f4f1c5042875b828/init.d.ts +0 -0
  562. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x6c9a394a43844fc09d9617bc8a8e775a4521f0e28e83de1da780d043a498671f/init.d.ts +0 -0
  563. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +0 -0
  564. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +0 -0
  565. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +0 -0
  566. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +0 -0
  567. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +0 -0
  568. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +0 -0
  569. package/dist/src/{_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585 → typus-perp/_dependencies/source/0xabf837e98c26087cba0883c0a7a28326b1fa3c5e1e2c5abdb486f9e8f594c837}/init.d.ts +0 -0
  570. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585}/init.d.ts +0 -0
  571. package/dist/src/{_dependencies → typus-perp/_dependencies}/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +2 -2
  572. package/dist/src/{_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3 → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/init.d.ts +0 -0
  573. package/dist/src/{_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e → typus-perp/_dependencies/source/0xf47329f4344f3bf0f8e436e2f7b485466cff300f12a166563995d3888c296a94}/init.js +4 -4
  574. /package/dist/src/typus-perp/{init.d.ts → typus_perp/init.d.ts} +0 -0
@@ -0,0 +1,1669 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || function (mod) {
30
+ if (mod && mod.__esModule) return mod;
31
+ var result = {};
32
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
+ __setModuleDefault(result, mod);
34
+ return result;
35
+ };
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __generator = (this && this.__generator) || function (thisArg, body) {
46
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
+ function verb(n) { return function (v) { return step([n, v]); }; }
49
+ function step(op) {
50
+ if (f) throw new TypeError("Generator is already executing.");
51
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
+ if (y = 0, t) op = [op[0] & 2, t.value];
54
+ switch (op[0]) {
55
+ case 0: case 1: t = op; break;
56
+ case 4: _.label++; return { value: op[1], done: false };
57
+ case 5: _.label++; y = op[1]; op = [0]; continue;
58
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
+ default:
60
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
+ if (t[2]) _.ops.pop();
65
+ _.trys.pop(); continue;
66
+ }
67
+ op = body.call(thisArg, _);
68
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
+ }
71
+ };
72
+ var __read = (this && this.__read) || function (o, n) {
73
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
74
+ if (!m) return o;
75
+ var i = m.call(o), r, ar = [], e;
76
+ try {
77
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
78
+ }
79
+ catch (error) { e = { error: error }; }
80
+ finally {
81
+ try {
82
+ if (r && !r.done && (m = i["return"])) m.call(i);
83
+ }
84
+ finally { if (e) throw e.error; }
85
+ }
86
+ return ar;
87
+ };
88
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
89
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
90
+ if (ar || !(i in from)) {
91
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
92
+ ar[i] = from[i];
93
+ }
94
+ }
95
+ return to.concat(ar || Array.prototype.slice.call(from));
96
+ };
97
+ Object.defineProperty(exports, "__esModule", { value: true });
98
+ exports.WithdrawFixedIncentiveEvent = exports.UpdateWarmupVaultConfigEvent = exports.UpdateStrikeEvent = exports.UpdateConfigEvent = exports.UpdateAuctionConfigEvent = exports.UpdateActiveVaultConfigEvent = exports.RemovePortfolioVaultAuthorizedUserEvent = exports.FixedIncentiviseEvent = exports.AddPortfolioVaultAuthorizedUserEvent = void 0;
99
+ exports.isAddPortfolioVaultAuthorizedUserEvent = isAddPortfolioVaultAuthorizedUserEvent;
100
+ exports.isFixedIncentiviseEvent = isFixedIncentiviseEvent;
101
+ exports.isRemovePortfolioVaultAuthorizedUserEvent = isRemovePortfolioVaultAuthorizedUserEvent;
102
+ exports.isUpdateActiveVaultConfigEvent = isUpdateActiveVaultConfigEvent;
103
+ exports.isUpdateAuctionConfigEvent = isUpdateAuctionConfigEvent;
104
+ exports.isUpdateConfigEvent = isUpdateConfigEvent;
105
+ exports.isUpdateStrikeEvent = isUpdateStrikeEvent;
106
+ exports.isUpdateWarmupVaultConfigEvent = isUpdateWarmupVaultConfigEvent;
107
+ exports.isWithdrawFixedIncentiveEvent = isWithdrawFixedIncentiveEvent;
108
+ var reified = __importStar(require("../../../../_framework/reified"));
109
+ var reified_1 = require("../../../../_framework/reified");
110
+ var util_1 = require("../../../../_framework/util");
111
+ var structs_1 = require("../../0x1/type-name/structs");
112
+ var index_1 = require("../index");
113
+ var structs_2 = require("../typus-dov-single/structs");
114
+ var bcs_1 = require("@mysten/sui/bcs");
115
+ var utils_1 = require("@mysten/sui/utils");
116
+ /* ============================== AddPortfolioVaultAuthorizedUserEvent =============================== */
117
+ function isAddPortfolioVaultAuthorizedUserEvent(type) {
118
+ type = (0, util_1.compressSuiType)(type);
119
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::AddPortfolioVaultAuthorizedUserEvent");
120
+ }
121
+ var AddPortfolioVaultAuthorizedUserEvent = /** @class */ (function () {
122
+ function AddPortfolioVaultAuthorizedUserEvent(typeArgs, fields) {
123
+ this.__StructClass = true;
124
+ this.$typeName = AddPortfolioVaultAuthorizedUserEvent.$typeName;
125
+ this.$isPhantom = AddPortfolioVaultAuthorizedUserEvent.$isPhantom;
126
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddPortfolioVaultAuthorizedUserEvent.$typeName], __read(typeArgs), false));
127
+ this.$typeArgs = typeArgs;
128
+ this.signer = fields.signer;
129
+ this.index = fields.index;
130
+ this.users = fields.users;
131
+ }
132
+ AddPortfolioVaultAuthorizedUserEvent.reified = function () {
133
+ var _this = this;
134
+ return {
135
+ typeName: AddPortfolioVaultAuthorizedUserEvent.$typeName,
136
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddPortfolioVaultAuthorizedUserEvent.$typeName], [], false)),
137
+ typeArgs: [],
138
+ isPhantom: AddPortfolioVaultAuthorizedUserEvent.$isPhantom,
139
+ reifiedTypeArgs: [],
140
+ fromFields: function (fields) { return AddPortfolioVaultAuthorizedUserEvent.fromFields(fields); },
141
+ fromFieldsWithTypes: function (item) { return AddPortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes(item); },
142
+ fromBcs: function (data) { return AddPortfolioVaultAuthorizedUserEvent.fromBcs(data); },
143
+ bcs: AddPortfolioVaultAuthorizedUserEvent.bcs,
144
+ fromJSONField: function (field) { return AddPortfolioVaultAuthorizedUserEvent.fromJSONField(field); },
145
+ fromJSON: function (json) { return AddPortfolioVaultAuthorizedUserEvent.fromJSON(json); },
146
+ fromSuiParsedData: function (content) { return AddPortfolioVaultAuthorizedUserEvent.fromSuiParsedData(content); },
147
+ fromSuiObjectData: function (content) { return AddPortfolioVaultAuthorizedUserEvent.fromSuiObjectData(content); },
148
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
149
+ return [2 /*return*/, AddPortfolioVaultAuthorizedUserEvent.fetch(client, id)];
150
+ }); }); },
151
+ new: function (fields) {
152
+ return new AddPortfolioVaultAuthorizedUserEvent([], fields);
153
+ },
154
+ kind: "StructClassReified",
155
+ };
156
+ };
157
+ Object.defineProperty(AddPortfolioVaultAuthorizedUserEvent, "r", {
158
+ get: function () {
159
+ return AddPortfolioVaultAuthorizedUserEvent.reified();
160
+ },
161
+ enumerable: false,
162
+ configurable: true
163
+ });
164
+ AddPortfolioVaultAuthorizedUserEvent.phantom = function () {
165
+ return (0, reified_1.phantom)(AddPortfolioVaultAuthorizedUserEvent.reified());
166
+ };
167
+ Object.defineProperty(AddPortfolioVaultAuthorizedUserEvent, "p", {
168
+ get: function () {
169
+ return AddPortfolioVaultAuthorizedUserEvent.phantom();
170
+ },
171
+ enumerable: false,
172
+ configurable: true
173
+ });
174
+ Object.defineProperty(AddPortfolioVaultAuthorizedUserEvent, "bcs", {
175
+ get: function () {
176
+ return bcs_1.bcs.struct("AddPortfolioVaultAuthorizedUserEvent", {
177
+ signer: bcs_1.bcs.bytes(32).transform({
178
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
179
+ output: function (val) { return (0, utils_1.toHEX)(val); },
180
+ }),
181
+ index: bcs_1.bcs.u64(),
182
+ users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
183
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
184
+ output: function (val) { return (0, utils_1.toHEX)(val); },
185
+ })),
186
+ });
187
+ },
188
+ enumerable: false,
189
+ configurable: true
190
+ });
191
+ AddPortfolioVaultAuthorizedUserEvent.fromFields = function (fields) {
192
+ return AddPortfolioVaultAuthorizedUserEvent.reified().new({
193
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
194
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
195
+ users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
196
+ });
197
+ };
198
+ AddPortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
199
+ if (!isAddPortfolioVaultAuthorizedUserEvent(item.type)) {
200
+ throw new Error("not a AddPortfolioVaultAuthorizedUserEvent type");
201
+ }
202
+ return AddPortfolioVaultAuthorizedUserEvent.reified().new({
203
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
204
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
205
+ users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
206
+ });
207
+ };
208
+ AddPortfolioVaultAuthorizedUserEvent.fromBcs = function (data) {
209
+ return AddPortfolioVaultAuthorizedUserEvent.fromFields(AddPortfolioVaultAuthorizedUserEvent.bcs.parse(data));
210
+ };
211
+ AddPortfolioVaultAuthorizedUserEvent.prototype.toJSONField = function () {
212
+ return {
213
+ signer: this.signer,
214
+ index: this.index.toString(),
215
+ users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
216
+ };
217
+ };
218
+ AddPortfolioVaultAuthorizedUserEvent.prototype.toJSON = function () {
219
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
220
+ };
221
+ AddPortfolioVaultAuthorizedUserEvent.fromJSONField = function (field) {
222
+ return AddPortfolioVaultAuthorizedUserEvent.reified().new({
223
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
224
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
225
+ users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
226
+ });
227
+ };
228
+ AddPortfolioVaultAuthorizedUserEvent.fromJSON = function (json) {
229
+ if (json.$typeName !== AddPortfolioVaultAuthorizedUserEvent.$typeName) {
230
+ throw new Error("not a WithTwoGenerics json object");
231
+ }
232
+ return AddPortfolioVaultAuthorizedUserEvent.fromJSONField(json);
233
+ };
234
+ AddPortfolioVaultAuthorizedUserEvent.fromSuiParsedData = function (content) {
235
+ if (content.dataType !== "moveObject") {
236
+ throw new Error("not an object");
237
+ }
238
+ if (!isAddPortfolioVaultAuthorizedUserEvent(content.type)) {
239
+ throw new Error("object at ".concat(content.fields.id, " is not a AddPortfolioVaultAuthorizedUserEvent object"));
240
+ }
241
+ return AddPortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes(content);
242
+ };
243
+ AddPortfolioVaultAuthorizedUserEvent.fromSuiObjectData = function (data) {
244
+ if (data.bcs) {
245
+ if (data.bcs.dataType !== "moveObject" || !isAddPortfolioVaultAuthorizedUserEvent(data.bcs.type)) {
246
+ throw new Error("object at is not a AddPortfolioVaultAuthorizedUserEvent object");
247
+ }
248
+ return AddPortfolioVaultAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
249
+ }
250
+ if (data.content) {
251
+ return AddPortfolioVaultAuthorizedUserEvent.fromSuiParsedData(data.content);
252
+ }
253
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
254
+ };
255
+ AddPortfolioVaultAuthorizedUserEvent.fetch = function (client, id) {
256
+ return __awaiter(this, void 0, void 0, function () {
257
+ var res;
258
+ var _a, _b;
259
+ return __generator(this, function (_c) {
260
+ switch (_c.label) {
261
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
262
+ case 1:
263
+ res = _c.sent();
264
+ if (res.error) {
265
+ throw new Error("error fetching AddPortfolioVaultAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
266
+ }
267
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddPortfolioVaultAuthorizedUserEvent(res.data.bcs.type)) {
268
+ throw new Error("object at id ".concat(id, " is not a AddPortfolioVaultAuthorizedUserEvent object"));
269
+ }
270
+ return [2 /*return*/, AddPortfolioVaultAuthorizedUserEvent.fromSuiObjectData(res.data)];
271
+ }
272
+ });
273
+ });
274
+ };
275
+ AddPortfolioVaultAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::AddPortfolioVaultAuthorizedUserEvent");
276
+ AddPortfolioVaultAuthorizedUserEvent.$numTypeParams = 0;
277
+ AddPortfolioVaultAuthorizedUserEvent.$isPhantom = [];
278
+ return AddPortfolioVaultAuthorizedUserEvent;
279
+ }());
280
+ exports.AddPortfolioVaultAuthorizedUserEvent = AddPortfolioVaultAuthorizedUserEvent;
281
+ /* ============================== FixedIncentiviseEvent =============================== */
282
+ function isFixedIncentiviseEvent(type) {
283
+ type = (0, util_1.compressSuiType)(type);
284
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::FixedIncentiviseEvent");
285
+ }
286
+ var FixedIncentiviseEvent = /** @class */ (function () {
287
+ function FixedIncentiviseEvent(typeArgs, fields) {
288
+ this.__StructClass = true;
289
+ this.$typeName = FixedIncentiviseEvent.$typeName;
290
+ this.$isPhantom = FixedIncentiviseEvent.$isPhantom;
291
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([FixedIncentiviseEvent.$typeName], __read(typeArgs), false));
292
+ this.$typeArgs = typeArgs;
293
+ this.signer = fields.signer;
294
+ this.token = fields.token;
295
+ this.amount = fields.amount;
296
+ this.fixedIncentiveAmount = fields.fixedIncentiveAmount;
297
+ }
298
+ FixedIncentiviseEvent.reified = function () {
299
+ var _this = this;
300
+ return {
301
+ typeName: FixedIncentiviseEvent.$typeName,
302
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([FixedIncentiviseEvent.$typeName], [], false)),
303
+ typeArgs: [],
304
+ isPhantom: FixedIncentiviseEvent.$isPhantom,
305
+ reifiedTypeArgs: [],
306
+ fromFields: function (fields) { return FixedIncentiviseEvent.fromFields(fields); },
307
+ fromFieldsWithTypes: function (item) { return FixedIncentiviseEvent.fromFieldsWithTypes(item); },
308
+ fromBcs: function (data) { return FixedIncentiviseEvent.fromBcs(data); },
309
+ bcs: FixedIncentiviseEvent.bcs,
310
+ fromJSONField: function (field) { return FixedIncentiviseEvent.fromJSONField(field); },
311
+ fromJSON: function (json) { return FixedIncentiviseEvent.fromJSON(json); },
312
+ fromSuiParsedData: function (content) { return FixedIncentiviseEvent.fromSuiParsedData(content); },
313
+ fromSuiObjectData: function (content) { return FixedIncentiviseEvent.fromSuiObjectData(content); },
314
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
315
+ return [2 /*return*/, FixedIncentiviseEvent.fetch(client, id)];
316
+ }); }); },
317
+ new: function (fields) {
318
+ return new FixedIncentiviseEvent([], fields);
319
+ },
320
+ kind: "StructClassReified",
321
+ };
322
+ };
323
+ Object.defineProperty(FixedIncentiviseEvent, "r", {
324
+ get: function () {
325
+ return FixedIncentiviseEvent.reified();
326
+ },
327
+ enumerable: false,
328
+ configurable: true
329
+ });
330
+ FixedIncentiviseEvent.phantom = function () {
331
+ return (0, reified_1.phantom)(FixedIncentiviseEvent.reified());
332
+ };
333
+ Object.defineProperty(FixedIncentiviseEvent, "p", {
334
+ get: function () {
335
+ return FixedIncentiviseEvent.phantom();
336
+ },
337
+ enumerable: false,
338
+ configurable: true
339
+ });
340
+ Object.defineProperty(FixedIncentiviseEvent, "bcs", {
341
+ get: function () {
342
+ return bcs_1.bcs.struct("FixedIncentiviseEvent", {
343
+ signer: bcs_1.bcs.bytes(32).transform({
344
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
345
+ output: function (val) { return (0, utils_1.toHEX)(val); },
346
+ }),
347
+ token: structs_1.TypeName.bcs,
348
+ amount: bcs_1.bcs.u64(),
349
+ fixed_incentive_amount: bcs_1.bcs.u64(),
350
+ });
351
+ },
352
+ enumerable: false,
353
+ configurable: true
354
+ });
355
+ FixedIncentiviseEvent.fromFields = function (fields) {
356
+ return FixedIncentiviseEvent.reified().new({
357
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
358
+ token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
359
+ amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
360
+ fixedIncentiveAmount: (0, reified_1.decodeFromFields)("u64", fields.fixed_incentive_amount),
361
+ });
362
+ };
363
+ FixedIncentiviseEvent.fromFieldsWithTypes = function (item) {
364
+ if (!isFixedIncentiviseEvent(item.type)) {
365
+ throw new Error("not a FixedIncentiviseEvent type");
366
+ }
367
+ return FixedIncentiviseEvent.reified().new({
368
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
369
+ token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
370
+ amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
371
+ fixedIncentiveAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fixed_incentive_amount),
372
+ });
373
+ };
374
+ FixedIncentiviseEvent.fromBcs = function (data) {
375
+ return FixedIncentiviseEvent.fromFields(FixedIncentiviseEvent.bcs.parse(data));
376
+ };
377
+ FixedIncentiviseEvent.prototype.toJSONField = function () {
378
+ return {
379
+ signer: this.signer,
380
+ token: this.token.toJSONField(),
381
+ amount: this.amount.toString(),
382
+ fixedIncentiveAmount: this.fixedIncentiveAmount.toString(),
383
+ };
384
+ };
385
+ FixedIncentiviseEvent.prototype.toJSON = function () {
386
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
387
+ };
388
+ FixedIncentiviseEvent.fromJSONField = function (field) {
389
+ return FixedIncentiviseEvent.reified().new({
390
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
391
+ token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
392
+ amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
393
+ fixedIncentiveAmount: (0, reified_1.decodeFromJSONField)("u64", field.fixedIncentiveAmount),
394
+ });
395
+ };
396
+ FixedIncentiviseEvent.fromJSON = function (json) {
397
+ if (json.$typeName !== FixedIncentiviseEvent.$typeName) {
398
+ throw new Error("not a WithTwoGenerics json object");
399
+ }
400
+ return FixedIncentiviseEvent.fromJSONField(json);
401
+ };
402
+ FixedIncentiviseEvent.fromSuiParsedData = function (content) {
403
+ if (content.dataType !== "moveObject") {
404
+ throw new Error("not an object");
405
+ }
406
+ if (!isFixedIncentiviseEvent(content.type)) {
407
+ throw new Error("object at ".concat(content.fields.id, " is not a FixedIncentiviseEvent object"));
408
+ }
409
+ return FixedIncentiviseEvent.fromFieldsWithTypes(content);
410
+ };
411
+ FixedIncentiviseEvent.fromSuiObjectData = function (data) {
412
+ if (data.bcs) {
413
+ if (data.bcs.dataType !== "moveObject" || !isFixedIncentiviseEvent(data.bcs.type)) {
414
+ throw new Error("object at is not a FixedIncentiviseEvent object");
415
+ }
416
+ return FixedIncentiviseEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
417
+ }
418
+ if (data.content) {
419
+ return FixedIncentiviseEvent.fromSuiParsedData(data.content);
420
+ }
421
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
422
+ };
423
+ FixedIncentiviseEvent.fetch = function (client, id) {
424
+ return __awaiter(this, void 0, void 0, function () {
425
+ var res;
426
+ var _a, _b;
427
+ return __generator(this, function (_c) {
428
+ switch (_c.label) {
429
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
430
+ case 1:
431
+ res = _c.sent();
432
+ if (res.error) {
433
+ throw new Error("error fetching FixedIncentiviseEvent object at id ".concat(id, ": ").concat(res.error.code));
434
+ }
435
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isFixedIncentiviseEvent(res.data.bcs.type)) {
436
+ throw new Error("object at id ".concat(id, " is not a FixedIncentiviseEvent object"));
437
+ }
438
+ return [2 /*return*/, FixedIncentiviseEvent.fromSuiObjectData(res.data)];
439
+ }
440
+ });
441
+ });
442
+ };
443
+ FixedIncentiviseEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::FixedIncentiviseEvent");
444
+ FixedIncentiviseEvent.$numTypeParams = 0;
445
+ FixedIncentiviseEvent.$isPhantom = [];
446
+ return FixedIncentiviseEvent;
447
+ }());
448
+ exports.FixedIncentiviseEvent = FixedIncentiviseEvent;
449
+ /* ============================== RemovePortfolioVaultAuthorizedUserEvent =============================== */
450
+ function isRemovePortfolioVaultAuthorizedUserEvent(type) {
451
+ type = (0, util_1.compressSuiType)(type);
452
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::RemovePortfolioVaultAuthorizedUserEvent");
453
+ }
454
+ var RemovePortfolioVaultAuthorizedUserEvent = /** @class */ (function () {
455
+ function RemovePortfolioVaultAuthorizedUserEvent(typeArgs, fields) {
456
+ this.__StructClass = true;
457
+ this.$typeName = RemovePortfolioVaultAuthorizedUserEvent.$typeName;
458
+ this.$isPhantom = RemovePortfolioVaultAuthorizedUserEvent.$isPhantom;
459
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemovePortfolioVaultAuthorizedUserEvent.$typeName], __read(typeArgs), false));
460
+ this.$typeArgs = typeArgs;
461
+ this.signer = fields.signer;
462
+ this.index = fields.index;
463
+ this.users = fields.users;
464
+ }
465
+ RemovePortfolioVaultAuthorizedUserEvent.reified = function () {
466
+ var _this = this;
467
+ return {
468
+ typeName: RemovePortfolioVaultAuthorizedUserEvent.$typeName,
469
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemovePortfolioVaultAuthorizedUserEvent.$typeName], [], false)),
470
+ typeArgs: [],
471
+ isPhantom: RemovePortfolioVaultAuthorizedUserEvent.$isPhantom,
472
+ reifiedTypeArgs: [],
473
+ fromFields: function (fields) { return RemovePortfolioVaultAuthorizedUserEvent.fromFields(fields); },
474
+ fromFieldsWithTypes: function (item) { return RemovePortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes(item); },
475
+ fromBcs: function (data) { return RemovePortfolioVaultAuthorizedUserEvent.fromBcs(data); },
476
+ bcs: RemovePortfolioVaultAuthorizedUserEvent.bcs,
477
+ fromJSONField: function (field) { return RemovePortfolioVaultAuthorizedUserEvent.fromJSONField(field); },
478
+ fromJSON: function (json) { return RemovePortfolioVaultAuthorizedUserEvent.fromJSON(json); },
479
+ fromSuiParsedData: function (content) { return RemovePortfolioVaultAuthorizedUserEvent.fromSuiParsedData(content); },
480
+ fromSuiObjectData: function (content) { return RemovePortfolioVaultAuthorizedUserEvent.fromSuiObjectData(content); },
481
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
482
+ return [2 /*return*/, RemovePortfolioVaultAuthorizedUserEvent.fetch(client, id)];
483
+ }); }); },
484
+ new: function (fields) {
485
+ return new RemovePortfolioVaultAuthorizedUserEvent([], fields);
486
+ },
487
+ kind: "StructClassReified",
488
+ };
489
+ };
490
+ Object.defineProperty(RemovePortfolioVaultAuthorizedUserEvent, "r", {
491
+ get: function () {
492
+ return RemovePortfolioVaultAuthorizedUserEvent.reified();
493
+ },
494
+ enumerable: false,
495
+ configurable: true
496
+ });
497
+ RemovePortfolioVaultAuthorizedUserEvent.phantom = function () {
498
+ return (0, reified_1.phantom)(RemovePortfolioVaultAuthorizedUserEvent.reified());
499
+ };
500
+ Object.defineProperty(RemovePortfolioVaultAuthorizedUserEvent, "p", {
501
+ get: function () {
502
+ return RemovePortfolioVaultAuthorizedUserEvent.phantom();
503
+ },
504
+ enumerable: false,
505
+ configurable: true
506
+ });
507
+ Object.defineProperty(RemovePortfolioVaultAuthorizedUserEvent, "bcs", {
508
+ get: function () {
509
+ return bcs_1.bcs.struct("RemovePortfolioVaultAuthorizedUserEvent", {
510
+ signer: bcs_1.bcs.bytes(32).transform({
511
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
512
+ output: function (val) { return (0, utils_1.toHEX)(val); },
513
+ }),
514
+ index: bcs_1.bcs.u64(),
515
+ users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
516
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
517
+ output: function (val) { return (0, utils_1.toHEX)(val); },
518
+ })),
519
+ });
520
+ },
521
+ enumerable: false,
522
+ configurable: true
523
+ });
524
+ RemovePortfolioVaultAuthorizedUserEvent.fromFields = function (fields) {
525
+ return RemovePortfolioVaultAuthorizedUserEvent.reified().new({
526
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
527
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
528
+ users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
529
+ });
530
+ };
531
+ RemovePortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
532
+ if (!isRemovePortfolioVaultAuthorizedUserEvent(item.type)) {
533
+ throw new Error("not a RemovePortfolioVaultAuthorizedUserEvent type");
534
+ }
535
+ return RemovePortfolioVaultAuthorizedUserEvent.reified().new({
536
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
537
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
538
+ users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
539
+ });
540
+ };
541
+ RemovePortfolioVaultAuthorizedUserEvent.fromBcs = function (data) {
542
+ return RemovePortfolioVaultAuthorizedUserEvent.fromFields(RemovePortfolioVaultAuthorizedUserEvent.bcs.parse(data));
543
+ };
544
+ RemovePortfolioVaultAuthorizedUserEvent.prototype.toJSONField = function () {
545
+ return {
546
+ signer: this.signer,
547
+ index: this.index.toString(),
548
+ users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
549
+ };
550
+ };
551
+ RemovePortfolioVaultAuthorizedUserEvent.prototype.toJSON = function () {
552
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
553
+ };
554
+ RemovePortfolioVaultAuthorizedUserEvent.fromJSONField = function (field) {
555
+ return RemovePortfolioVaultAuthorizedUserEvent.reified().new({
556
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
557
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
558
+ users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
559
+ });
560
+ };
561
+ RemovePortfolioVaultAuthorizedUserEvent.fromJSON = function (json) {
562
+ if (json.$typeName !== RemovePortfolioVaultAuthorizedUserEvent.$typeName) {
563
+ throw new Error("not a WithTwoGenerics json object");
564
+ }
565
+ return RemovePortfolioVaultAuthorizedUserEvent.fromJSONField(json);
566
+ };
567
+ RemovePortfolioVaultAuthorizedUserEvent.fromSuiParsedData = function (content) {
568
+ if (content.dataType !== "moveObject") {
569
+ throw new Error("not an object");
570
+ }
571
+ if (!isRemovePortfolioVaultAuthorizedUserEvent(content.type)) {
572
+ throw new Error("object at ".concat(content.fields.id, " is not a RemovePortfolioVaultAuthorizedUserEvent object"));
573
+ }
574
+ return RemovePortfolioVaultAuthorizedUserEvent.fromFieldsWithTypes(content);
575
+ };
576
+ RemovePortfolioVaultAuthorizedUserEvent.fromSuiObjectData = function (data) {
577
+ if (data.bcs) {
578
+ if (data.bcs.dataType !== "moveObject" || !isRemovePortfolioVaultAuthorizedUserEvent(data.bcs.type)) {
579
+ throw new Error("object at is not a RemovePortfolioVaultAuthorizedUserEvent object");
580
+ }
581
+ return RemovePortfolioVaultAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
582
+ }
583
+ if (data.content) {
584
+ return RemovePortfolioVaultAuthorizedUserEvent.fromSuiParsedData(data.content);
585
+ }
586
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
587
+ };
588
+ RemovePortfolioVaultAuthorizedUserEvent.fetch = function (client, id) {
589
+ return __awaiter(this, void 0, void 0, function () {
590
+ var res;
591
+ var _a, _b;
592
+ return __generator(this, function (_c) {
593
+ switch (_c.label) {
594
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
595
+ case 1:
596
+ res = _c.sent();
597
+ if (res.error) {
598
+ throw new Error("error fetching RemovePortfolioVaultAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
599
+ }
600
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemovePortfolioVaultAuthorizedUserEvent(res.data.bcs.type)) {
601
+ throw new Error("object at id ".concat(id, " is not a RemovePortfolioVaultAuthorizedUserEvent object"));
602
+ }
603
+ return [2 /*return*/, RemovePortfolioVaultAuthorizedUserEvent.fromSuiObjectData(res.data)];
604
+ }
605
+ });
606
+ });
607
+ };
608
+ RemovePortfolioVaultAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::RemovePortfolioVaultAuthorizedUserEvent");
609
+ RemovePortfolioVaultAuthorizedUserEvent.$numTypeParams = 0;
610
+ RemovePortfolioVaultAuthorizedUserEvent.$isPhantom = [];
611
+ return RemovePortfolioVaultAuthorizedUserEvent;
612
+ }());
613
+ exports.RemovePortfolioVaultAuthorizedUserEvent = RemovePortfolioVaultAuthorizedUserEvent;
614
+ /* ============================== UpdateActiveVaultConfigEvent =============================== */
615
+ function isUpdateActiveVaultConfigEvent(type) {
616
+ type = (0, util_1.compressSuiType)(type);
617
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateActiveVaultConfigEvent");
618
+ }
619
+ var UpdateActiveVaultConfigEvent = /** @class */ (function () {
620
+ function UpdateActiveVaultConfigEvent(typeArgs, fields) {
621
+ this.__StructClass = true;
622
+ this.$typeName = UpdateActiveVaultConfigEvent.$typeName;
623
+ this.$isPhantom = UpdateActiveVaultConfigEvent.$isPhantom;
624
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateActiveVaultConfigEvent.$typeName], __read(typeArgs), false));
625
+ this.$typeArgs = typeArgs;
626
+ this.signer = fields.signer;
627
+ this.index = fields.index;
628
+ this.previous = fields.previous;
629
+ this.current = fields.current;
630
+ }
631
+ UpdateActiveVaultConfigEvent.reified = function () {
632
+ var _this = this;
633
+ return {
634
+ typeName: UpdateActiveVaultConfigEvent.$typeName,
635
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateActiveVaultConfigEvent.$typeName], [], false)),
636
+ typeArgs: [],
637
+ isPhantom: UpdateActiveVaultConfigEvent.$isPhantom,
638
+ reifiedTypeArgs: [],
639
+ fromFields: function (fields) { return UpdateActiveVaultConfigEvent.fromFields(fields); },
640
+ fromFieldsWithTypes: function (item) { return UpdateActiveVaultConfigEvent.fromFieldsWithTypes(item); },
641
+ fromBcs: function (data) { return UpdateActiveVaultConfigEvent.fromBcs(data); },
642
+ bcs: UpdateActiveVaultConfigEvent.bcs,
643
+ fromJSONField: function (field) { return UpdateActiveVaultConfigEvent.fromJSONField(field); },
644
+ fromJSON: function (json) { return UpdateActiveVaultConfigEvent.fromJSON(json); },
645
+ fromSuiParsedData: function (content) { return UpdateActiveVaultConfigEvent.fromSuiParsedData(content); },
646
+ fromSuiObjectData: function (content) { return UpdateActiveVaultConfigEvent.fromSuiObjectData(content); },
647
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
648
+ return [2 /*return*/, UpdateActiveVaultConfigEvent.fetch(client, id)];
649
+ }); }); },
650
+ new: function (fields) {
651
+ return new UpdateActiveVaultConfigEvent([], fields);
652
+ },
653
+ kind: "StructClassReified",
654
+ };
655
+ };
656
+ Object.defineProperty(UpdateActiveVaultConfigEvent, "r", {
657
+ get: function () {
658
+ return UpdateActiveVaultConfigEvent.reified();
659
+ },
660
+ enumerable: false,
661
+ configurable: true
662
+ });
663
+ UpdateActiveVaultConfigEvent.phantom = function () {
664
+ return (0, reified_1.phantom)(UpdateActiveVaultConfigEvent.reified());
665
+ };
666
+ Object.defineProperty(UpdateActiveVaultConfigEvent, "p", {
667
+ get: function () {
668
+ return UpdateActiveVaultConfigEvent.phantom();
669
+ },
670
+ enumerable: false,
671
+ configurable: true
672
+ });
673
+ Object.defineProperty(UpdateActiveVaultConfigEvent, "bcs", {
674
+ get: function () {
675
+ return bcs_1.bcs.struct("UpdateActiveVaultConfigEvent", {
676
+ signer: bcs_1.bcs.bytes(32).transform({
677
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
678
+ output: function (val) { return (0, utils_1.toHEX)(val); },
679
+ }),
680
+ index: bcs_1.bcs.u64(),
681
+ previous: structs_2.VaultConfig.bcs,
682
+ current: structs_2.VaultConfig.bcs,
683
+ });
684
+ },
685
+ enumerable: false,
686
+ configurable: true
687
+ });
688
+ UpdateActiveVaultConfigEvent.fromFields = function (fields) {
689
+ return UpdateActiveVaultConfigEvent.reified().new({
690
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
691
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
692
+ previous: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.previous),
693
+ current: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.current),
694
+ });
695
+ };
696
+ UpdateActiveVaultConfigEvent.fromFieldsWithTypes = function (item) {
697
+ if (!isUpdateActiveVaultConfigEvent(item.type)) {
698
+ throw new Error("not a UpdateActiveVaultConfigEvent type");
699
+ }
700
+ return UpdateActiveVaultConfigEvent.reified().new({
701
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
702
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
703
+ previous: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.previous),
704
+ current: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.current),
705
+ });
706
+ };
707
+ UpdateActiveVaultConfigEvent.fromBcs = function (data) {
708
+ return UpdateActiveVaultConfigEvent.fromFields(UpdateActiveVaultConfigEvent.bcs.parse(data));
709
+ };
710
+ UpdateActiveVaultConfigEvent.prototype.toJSONField = function () {
711
+ return {
712
+ signer: this.signer,
713
+ index: this.index.toString(),
714
+ previous: this.previous.toJSONField(),
715
+ current: this.current.toJSONField(),
716
+ };
717
+ };
718
+ UpdateActiveVaultConfigEvent.prototype.toJSON = function () {
719
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
720
+ };
721
+ UpdateActiveVaultConfigEvent.fromJSONField = function (field) {
722
+ return UpdateActiveVaultConfigEvent.reified().new({
723
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
724
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
725
+ previous: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.previous),
726
+ current: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.current),
727
+ });
728
+ };
729
+ UpdateActiveVaultConfigEvent.fromJSON = function (json) {
730
+ if (json.$typeName !== UpdateActiveVaultConfigEvent.$typeName) {
731
+ throw new Error("not a WithTwoGenerics json object");
732
+ }
733
+ return UpdateActiveVaultConfigEvent.fromJSONField(json);
734
+ };
735
+ UpdateActiveVaultConfigEvent.fromSuiParsedData = function (content) {
736
+ if (content.dataType !== "moveObject") {
737
+ throw new Error("not an object");
738
+ }
739
+ if (!isUpdateActiveVaultConfigEvent(content.type)) {
740
+ throw new Error("object at ".concat(content.fields.id, " is not a UpdateActiveVaultConfigEvent object"));
741
+ }
742
+ return UpdateActiveVaultConfigEvent.fromFieldsWithTypes(content);
743
+ };
744
+ UpdateActiveVaultConfigEvent.fromSuiObjectData = function (data) {
745
+ if (data.bcs) {
746
+ if (data.bcs.dataType !== "moveObject" || !isUpdateActiveVaultConfigEvent(data.bcs.type)) {
747
+ throw new Error("object at is not a UpdateActiveVaultConfigEvent object");
748
+ }
749
+ return UpdateActiveVaultConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
750
+ }
751
+ if (data.content) {
752
+ return UpdateActiveVaultConfigEvent.fromSuiParsedData(data.content);
753
+ }
754
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
755
+ };
756
+ UpdateActiveVaultConfigEvent.fetch = function (client, id) {
757
+ return __awaiter(this, void 0, void 0, function () {
758
+ var res;
759
+ var _a, _b;
760
+ return __generator(this, function (_c) {
761
+ switch (_c.label) {
762
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
763
+ case 1:
764
+ res = _c.sent();
765
+ if (res.error) {
766
+ throw new Error("error fetching UpdateActiveVaultConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
767
+ }
768
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateActiveVaultConfigEvent(res.data.bcs.type)) {
769
+ throw new Error("object at id ".concat(id, " is not a UpdateActiveVaultConfigEvent object"));
770
+ }
771
+ return [2 /*return*/, UpdateActiveVaultConfigEvent.fromSuiObjectData(res.data)];
772
+ }
773
+ });
774
+ });
775
+ };
776
+ UpdateActiveVaultConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateActiveVaultConfigEvent");
777
+ UpdateActiveVaultConfigEvent.$numTypeParams = 0;
778
+ UpdateActiveVaultConfigEvent.$isPhantom = [];
779
+ return UpdateActiveVaultConfigEvent;
780
+ }());
781
+ exports.UpdateActiveVaultConfigEvent = UpdateActiveVaultConfigEvent;
782
+ /* ============================== UpdateAuctionConfigEvent =============================== */
783
+ function isUpdateAuctionConfigEvent(type) {
784
+ type = (0, util_1.compressSuiType)(type);
785
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateAuctionConfigEvent");
786
+ }
787
+ var UpdateAuctionConfigEvent = /** @class */ (function () {
788
+ function UpdateAuctionConfigEvent(typeArgs, fields) {
789
+ this.__StructClass = true;
790
+ this.$typeName = UpdateAuctionConfigEvent.$typeName;
791
+ this.$isPhantom = UpdateAuctionConfigEvent.$isPhantom;
792
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateAuctionConfigEvent.$typeName], __read(typeArgs), false));
793
+ this.$typeArgs = typeArgs;
794
+ this.signer = fields.signer;
795
+ this.index = fields.index;
796
+ this.startTsMs = fields.startTsMs;
797
+ this.endTsMs = fields.endTsMs;
798
+ this.decaySpeed = fields.decaySpeed;
799
+ this.initialPrice = fields.initialPrice;
800
+ this.finalPrice = fields.finalPrice;
801
+ this.feeBp = fields.feeBp;
802
+ this.incentiveBp = fields.incentiveBp;
803
+ this.tokenDecimal = fields.tokenDecimal;
804
+ this.sizeDecimal = fields.sizeDecimal;
805
+ this.ableToRemoveBid = fields.ableToRemoveBid;
806
+ }
807
+ UpdateAuctionConfigEvent.reified = function () {
808
+ var _this = this;
809
+ return {
810
+ typeName: UpdateAuctionConfigEvent.$typeName,
811
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateAuctionConfigEvent.$typeName], [], false)),
812
+ typeArgs: [],
813
+ isPhantom: UpdateAuctionConfigEvent.$isPhantom,
814
+ reifiedTypeArgs: [],
815
+ fromFields: function (fields) { return UpdateAuctionConfigEvent.fromFields(fields); },
816
+ fromFieldsWithTypes: function (item) { return UpdateAuctionConfigEvent.fromFieldsWithTypes(item); },
817
+ fromBcs: function (data) { return UpdateAuctionConfigEvent.fromBcs(data); },
818
+ bcs: UpdateAuctionConfigEvent.bcs,
819
+ fromJSONField: function (field) { return UpdateAuctionConfigEvent.fromJSONField(field); },
820
+ fromJSON: function (json) { return UpdateAuctionConfigEvent.fromJSON(json); },
821
+ fromSuiParsedData: function (content) { return UpdateAuctionConfigEvent.fromSuiParsedData(content); },
822
+ fromSuiObjectData: function (content) { return UpdateAuctionConfigEvent.fromSuiObjectData(content); },
823
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
824
+ return [2 /*return*/, UpdateAuctionConfigEvent.fetch(client, id)];
825
+ }); }); },
826
+ new: function (fields) {
827
+ return new UpdateAuctionConfigEvent([], fields);
828
+ },
829
+ kind: "StructClassReified",
830
+ };
831
+ };
832
+ Object.defineProperty(UpdateAuctionConfigEvent, "r", {
833
+ get: function () {
834
+ return UpdateAuctionConfigEvent.reified();
835
+ },
836
+ enumerable: false,
837
+ configurable: true
838
+ });
839
+ UpdateAuctionConfigEvent.phantom = function () {
840
+ return (0, reified_1.phantom)(UpdateAuctionConfigEvent.reified());
841
+ };
842
+ Object.defineProperty(UpdateAuctionConfigEvent, "p", {
843
+ get: function () {
844
+ return UpdateAuctionConfigEvent.phantom();
845
+ },
846
+ enumerable: false,
847
+ configurable: true
848
+ });
849
+ Object.defineProperty(UpdateAuctionConfigEvent, "bcs", {
850
+ get: function () {
851
+ return bcs_1.bcs.struct("UpdateAuctionConfigEvent", {
852
+ signer: bcs_1.bcs.bytes(32).transform({
853
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
854
+ output: function (val) { return (0, utils_1.toHEX)(val); },
855
+ }),
856
+ index: bcs_1.bcs.u64(),
857
+ start_ts_ms: bcs_1.bcs.u64(),
858
+ end_ts_ms: bcs_1.bcs.u64(),
859
+ decay_speed: bcs_1.bcs.u64(),
860
+ initial_price: bcs_1.bcs.u64(),
861
+ final_price: bcs_1.bcs.u64(),
862
+ fee_bp: bcs_1.bcs.u64(),
863
+ incentive_bp: bcs_1.bcs.u64(),
864
+ token_decimal: bcs_1.bcs.u64(),
865
+ size_decimal: bcs_1.bcs.u64(),
866
+ able_to_remove_bid: bcs_1.bcs.bool(),
867
+ });
868
+ },
869
+ enumerable: false,
870
+ configurable: true
871
+ });
872
+ UpdateAuctionConfigEvent.fromFields = function (fields) {
873
+ return UpdateAuctionConfigEvent.reified().new({
874
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
875
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
876
+ startTsMs: (0, reified_1.decodeFromFields)("u64", fields.start_ts_ms),
877
+ endTsMs: (0, reified_1.decodeFromFields)("u64", fields.end_ts_ms),
878
+ decaySpeed: (0, reified_1.decodeFromFields)("u64", fields.decay_speed),
879
+ initialPrice: (0, reified_1.decodeFromFields)("u64", fields.initial_price),
880
+ finalPrice: (0, reified_1.decodeFromFields)("u64", fields.final_price),
881
+ feeBp: (0, reified_1.decodeFromFields)("u64", fields.fee_bp),
882
+ incentiveBp: (0, reified_1.decodeFromFields)("u64", fields.incentive_bp),
883
+ tokenDecimal: (0, reified_1.decodeFromFields)("u64", fields.token_decimal),
884
+ sizeDecimal: (0, reified_1.decodeFromFields)("u64", fields.size_decimal),
885
+ ableToRemoveBid: (0, reified_1.decodeFromFields)("bool", fields.able_to_remove_bid),
886
+ });
887
+ };
888
+ UpdateAuctionConfigEvent.fromFieldsWithTypes = function (item) {
889
+ if (!isUpdateAuctionConfigEvent(item.type)) {
890
+ throw new Error("not a UpdateAuctionConfigEvent type");
891
+ }
892
+ return UpdateAuctionConfigEvent.reified().new({
893
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
894
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
895
+ startTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.start_ts_ms),
896
+ endTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.end_ts_ms),
897
+ decaySpeed: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.decay_speed),
898
+ initialPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.initial_price),
899
+ finalPrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.final_price),
900
+ feeBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.fee_bp),
901
+ incentiveBp: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.incentive_bp),
902
+ tokenDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.token_decimal),
903
+ sizeDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size_decimal),
904
+ ableToRemoveBid: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.able_to_remove_bid),
905
+ });
906
+ };
907
+ UpdateAuctionConfigEvent.fromBcs = function (data) {
908
+ return UpdateAuctionConfigEvent.fromFields(UpdateAuctionConfigEvent.bcs.parse(data));
909
+ };
910
+ UpdateAuctionConfigEvent.prototype.toJSONField = function () {
911
+ return {
912
+ signer: this.signer,
913
+ index: this.index.toString(),
914
+ startTsMs: this.startTsMs.toString(),
915
+ endTsMs: this.endTsMs.toString(),
916
+ decaySpeed: this.decaySpeed.toString(),
917
+ initialPrice: this.initialPrice.toString(),
918
+ finalPrice: this.finalPrice.toString(),
919
+ feeBp: this.feeBp.toString(),
920
+ incentiveBp: this.incentiveBp.toString(),
921
+ tokenDecimal: this.tokenDecimal.toString(),
922
+ sizeDecimal: this.sizeDecimal.toString(),
923
+ ableToRemoveBid: this.ableToRemoveBid,
924
+ };
925
+ };
926
+ UpdateAuctionConfigEvent.prototype.toJSON = function () {
927
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
928
+ };
929
+ UpdateAuctionConfigEvent.fromJSONField = function (field) {
930
+ return UpdateAuctionConfigEvent.reified().new({
931
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
932
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
933
+ startTsMs: (0, reified_1.decodeFromJSONField)("u64", field.startTsMs),
934
+ endTsMs: (0, reified_1.decodeFromJSONField)("u64", field.endTsMs),
935
+ decaySpeed: (0, reified_1.decodeFromJSONField)("u64", field.decaySpeed),
936
+ initialPrice: (0, reified_1.decodeFromJSONField)("u64", field.initialPrice),
937
+ finalPrice: (0, reified_1.decodeFromJSONField)("u64", field.finalPrice),
938
+ feeBp: (0, reified_1.decodeFromJSONField)("u64", field.feeBp),
939
+ incentiveBp: (0, reified_1.decodeFromJSONField)("u64", field.incentiveBp),
940
+ tokenDecimal: (0, reified_1.decodeFromJSONField)("u64", field.tokenDecimal),
941
+ sizeDecimal: (0, reified_1.decodeFromJSONField)("u64", field.sizeDecimal),
942
+ ableToRemoveBid: (0, reified_1.decodeFromJSONField)("bool", field.ableToRemoveBid),
943
+ });
944
+ };
945
+ UpdateAuctionConfigEvent.fromJSON = function (json) {
946
+ if (json.$typeName !== UpdateAuctionConfigEvent.$typeName) {
947
+ throw new Error("not a WithTwoGenerics json object");
948
+ }
949
+ return UpdateAuctionConfigEvent.fromJSONField(json);
950
+ };
951
+ UpdateAuctionConfigEvent.fromSuiParsedData = function (content) {
952
+ if (content.dataType !== "moveObject") {
953
+ throw new Error("not an object");
954
+ }
955
+ if (!isUpdateAuctionConfigEvent(content.type)) {
956
+ throw new Error("object at ".concat(content.fields.id, " is not a UpdateAuctionConfigEvent object"));
957
+ }
958
+ return UpdateAuctionConfigEvent.fromFieldsWithTypes(content);
959
+ };
960
+ UpdateAuctionConfigEvent.fromSuiObjectData = function (data) {
961
+ if (data.bcs) {
962
+ if (data.bcs.dataType !== "moveObject" || !isUpdateAuctionConfigEvent(data.bcs.type)) {
963
+ throw new Error("object at is not a UpdateAuctionConfigEvent object");
964
+ }
965
+ return UpdateAuctionConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
966
+ }
967
+ if (data.content) {
968
+ return UpdateAuctionConfigEvent.fromSuiParsedData(data.content);
969
+ }
970
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
971
+ };
972
+ UpdateAuctionConfigEvent.fetch = function (client, id) {
973
+ return __awaiter(this, void 0, void 0, function () {
974
+ var res;
975
+ var _a, _b;
976
+ return __generator(this, function (_c) {
977
+ switch (_c.label) {
978
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
979
+ case 1:
980
+ res = _c.sent();
981
+ if (res.error) {
982
+ throw new Error("error fetching UpdateAuctionConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
983
+ }
984
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateAuctionConfigEvent(res.data.bcs.type)) {
985
+ throw new Error("object at id ".concat(id, " is not a UpdateAuctionConfigEvent object"));
986
+ }
987
+ return [2 /*return*/, UpdateAuctionConfigEvent.fromSuiObjectData(res.data)];
988
+ }
989
+ });
990
+ });
991
+ };
992
+ UpdateAuctionConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateAuctionConfigEvent");
993
+ UpdateAuctionConfigEvent.$numTypeParams = 0;
994
+ UpdateAuctionConfigEvent.$isPhantom = [];
995
+ return UpdateAuctionConfigEvent;
996
+ }());
997
+ exports.UpdateAuctionConfigEvent = UpdateAuctionConfigEvent;
998
+ /* ============================== UpdateConfigEvent =============================== */
999
+ function isUpdateConfigEvent(type) {
1000
+ type = (0, util_1.compressSuiType)(type);
1001
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateConfigEvent");
1002
+ }
1003
+ var UpdateConfigEvent = /** @class */ (function () {
1004
+ function UpdateConfigEvent(typeArgs, fields) {
1005
+ this.__StructClass = true;
1006
+ this.$typeName = UpdateConfigEvent.$typeName;
1007
+ this.$isPhantom = UpdateConfigEvent.$isPhantom;
1008
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateConfigEvent.$typeName], __read(typeArgs), false));
1009
+ this.$typeArgs = typeArgs;
1010
+ this.signer = fields.signer;
1011
+ this.index = fields.index;
1012
+ this.previous = fields.previous;
1013
+ this.current = fields.current;
1014
+ }
1015
+ UpdateConfigEvent.reified = function () {
1016
+ var _this = this;
1017
+ return {
1018
+ typeName: UpdateConfigEvent.$typeName,
1019
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateConfigEvent.$typeName], [], false)),
1020
+ typeArgs: [],
1021
+ isPhantom: UpdateConfigEvent.$isPhantom,
1022
+ reifiedTypeArgs: [],
1023
+ fromFields: function (fields) { return UpdateConfigEvent.fromFields(fields); },
1024
+ fromFieldsWithTypes: function (item) { return UpdateConfigEvent.fromFieldsWithTypes(item); },
1025
+ fromBcs: function (data) { return UpdateConfigEvent.fromBcs(data); },
1026
+ bcs: UpdateConfigEvent.bcs,
1027
+ fromJSONField: function (field) { return UpdateConfigEvent.fromJSONField(field); },
1028
+ fromJSON: function (json) { return UpdateConfigEvent.fromJSON(json); },
1029
+ fromSuiParsedData: function (content) { return UpdateConfigEvent.fromSuiParsedData(content); },
1030
+ fromSuiObjectData: function (content) { return UpdateConfigEvent.fromSuiObjectData(content); },
1031
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1032
+ return [2 /*return*/, UpdateConfigEvent.fetch(client, id)];
1033
+ }); }); },
1034
+ new: function (fields) {
1035
+ return new UpdateConfigEvent([], fields);
1036
+ },
1037
+ kind: "StructClassReified",
1038
+ };
1039
+ };
1040
+ Object.defineProperty(UpdateConfigEvent, "r", {
1041
+ get: function () {
1042
+ return UpdateConfigEvent.reified();
1043
+ },
1044
+ enumerable: false,
1045
+ configurable: true
1046
+ });
1047
+ UpdateConfigEvent.phantom = function () {
1048
+ return (0, reified_1.phantom)(UpdateConfigEvent.reified());
1049
+ };
1050
+ Object.defineProperty(UpdateConfigEvent, "p", {
1051
+ get: function () {
1052
+ return UpdateConfigEvent.phantom();
1053
+ },
1054
+ enumerable: false,
1055
+ configurable: true
1056
+ });
1057
+ Object.defineProperty(UpdateConfigEvent, "bcs", {
1058
+ get: function () {
1059
+ return bcs_1.bcs.struct("UpdateConfigEvent", {
1060
+ signer: bcs_1.bcs.bytes(32).transform({
1061
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1062
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1063
+ }),
1064
+ index: bcs_1.bcs.u64(),
1065
+ previous: structs_2.Config.bcs,
1066
+ current: structs_2.Config.bcs,
1067
+ });
1068
+ },
1069
+ enumerable: false,
1070
+ configurable: true
1071
+ });
1072
+ UpdateConfigEvent.fromFields = function (fields) {
1073
+ return UpdateConfigEvent.reified().new({
1074
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1075
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
1076
+ previous: (0, reified_1.decodeFromFields)(structs_2.Config.reified(), fields.previous),
1077
+ current: (0, reified_1.decodeFromFields)(structs_2.Config.reified(), fields.current),
1078
+ });
1079
+ };
1080
+ UpdateConfigEvent.fromFieldsWithTypes = function (item) {
1081
+ if (!isUpdateConfigEvent(item.type)) {
1082
+ throw new Error("not a UpdateConfigEvent type");
1083
+ }
1084
+ return UpdateConfigEvent.reified().new({
1085
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1086
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1087
+ previous: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Config.reified(), item.fields.previous),
1088
+ current: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Config.reified(), item.fields.current),
1089
+ });
1090
+ };
1091
+ UpdateConfigEvent.fromBcs = function (data) {
1092
+ return UpdateConfigEvent.fromFields(UpdateConfigEvent.bcs.parse(data));
1093
+ };
1094
+ UpdateConfigEvent.prototype.toJSONField = function () {
1095
+ return {
1096
+ signer: this.signer,
1097
+ index: this.index.toString(),
1098
+ previous: this.previous.toJSONField(),
1099
+ current: this.current.toJSONField(),
1100
+ };
1101
+ };
1102
+ UpdateConfigEvent.prototype.toJSON = function () {
1103
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1104
+ };
1105
+ UpdateConfigEvent.fromJSONField = function (field) {
1106
+ return UpdateConfigEvent.reified().new({
1107
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1108
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1109
+ previous: (0, reified_1.decodeFromJSONField)(structs_2.Config.reified(), field.previous),
1110
+ current: (0, reified_1.decodeFromJSONField)(structs_2.Config.reified(), field.current),
1111
+ });
1112
+ };
1113
+ UpdateConfigEvent.fromJSON = function (json) {
1114
+ if (json.$typeName !== UpdateConfigEvent.$typeName) {
1115
+ throw new Error("not a WithTwoGenerics json object");
1116
+ }
1117
+ return UpdateConfigEvent.fromJSONField(json);
1118
+ };
1119
+ UpdateConfigEvent.fromSuiParsedData = function (content) {
1120
+ if (content.dataType !== "moveObject") {
1121
+ throw new Error("not an object");
1122
+ }
1123
+ if (!isUpdateConfigEvent(content.type)) {
1124
+ throw new Error("object at ".concat(content.fields.id, " is not a UpdateConfigEvent object"));
1125
+ }
1126
+ return UpdateConfigEvent.fromFieldsWithTypes(content);
1127
+ };
1128
+ UpdateConfigEvent.fromSuiObjectData = function (data) {
1129
+ if (data.bcs) {
1130
+ if (data.bcs.dataType !== "moveObject" || !isUpdateConfigEvent(data.bcs.type)) {
1131
+ throw new Error("object at is not a UpdateConfigEvent object");
1132
+ }
1133
+ return UpdateConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1134
+ }
1135
+ if (data.content) {
1136
+ return UpdateConfigEvent.fromSuiParsedData(data.content);
1137
+ }
1138
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1139
+ };
1140
+ UpdateConfigEvent.fetch = function (client, id) {
1141
+ return __awaiter(this, void 0, void 0, function () {
1142
+ var res;
1143
+ var _a, _b;
1144
+ return __generator(this, function (_c) {
1145
+ switch (_c.label) {
1146
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1147
+ case 1:
1148
+ res = _c.sent();
1149
+ if (res.error) {
1150
+ throw new Error("error fetching UpdateConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
1151
+ }
1152
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateConfigEvent(res.data.bcs.type)) {
1153
+ throw new Error("object at id ".concat(id, " is not a UpdateConfigEvent object"));
1154
+ }
1155
+ return [2 /*return*/, UpdateConfigEvent.fromSuiObjectData(res.data)];
1156
+ }
1157
+ });
1158
+ });
1159
+ };
1160
+ UpdateConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateConfigEvent");
1161
+ UpdateConfigEvent.$numTypeParams = 0;
1162
+ UpdateConfigEvent.$isPhantom = [];
1163
+ return UpdateConfigEvent;
1164
+ }());
1165
+ exports.UpdateConfigEvent = UpdateConfigEvent;
1166
+ /* ============================== UpdateStrikeEvent =============================== */
1167
+ function isUpdateStrikeEvent(type) {
1168
+ type = (0, util_1.compressSuiType)(type);
1169
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateStrikeEvent");
1170
+ }
1171
+ var UpdateStrikeEvent = /** @class */ (function () {
1172
+ function UpdateStrikeEvent(typeArgs, fields) {
1173
+ this.__StructClass = true;
1174
+ this.$typeName = UpdateStrikeEvent.$typeName;
1175
+ this.$isPhantom = UpdateStrikeEvent.$isPhantom;
1176
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateStrikeEvent.$typeName], __read(typeArgs), false));
1177
+ this.$typeArgs = typeArgs;
1178
+ this.signer = fields.signer;
1179
+ this.index = fields.index;
1180
+ this.oraclePrice = fields.oraclePrice;
1181
+ this.oraclePriceDecimal = fields.oraclePriceDecimal;
1182
+ this.vaultConfig = fields.vaultConfig;
1183
+ }
1184
+ UpdateStrikeEvent.reified = function () {
1185
+ var _this = this;
1186
+ return {
1187
+ typeName: UpdateStrikeEvent.$typeName,
1188
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateStrikeEvent.$typeName], [], false)),
1189
+ typeArgs: [],
1190
+ isPhantom: UpdateStrikeEvent.$isPhantom,
1191
+ reifiedTypeArgs: [],
1192
+ fromFields: function (fields) { return UpdateStrikeEvent.fromFields(fields); },
1193
+ fromFieldsWithTypes: function (item) { return UpdateStrikeEvent.fromFieldsWithTypes(item); },
1194
+ fromBcs: function (data) { return UpdateStrikeEvent.fromBcs(data); },
1195
+ bcs: UpdateStrikeEvent.bcs,
1196
+ fromJSONField: function (field) { return UpdateStrikeEvent.fromJSONField(field); },
1197
+ fromJSON: function (json) { return UpdateStrikeEvent.fromJSON(json); },
1198
+ fromSuiParsedData: function (content) { return UpdateStrikeEvent.fromSuiParsedData(content); },
1199
+ fromSuiObjectData: function (content) { return UpdateStrikeEvent.fromSuiObjectData(content); },
1200
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1201
+ return [2 /*return*/, UpdateStrikeEvent.fetch(client, id)];
1202
+ }); }); },
1203
+ new: function (fields) {
1204
+ return new UpdateStrikeEvent([], fields);
1205
+ },
1206
+ kind: "StructClassReified",
1207
+ };
1208
+ };
1209
+ Object.defineProperty(UpdateStrikeEvent, "r", {
1210
+ get: function () {
1211
+ return UpdateStrikeEvent.reified();
1212
+ },
1213
+ enumerable: false,
1214
+ configurable: true
1215
+ });
1216
+ UpdateStrikeEvent.phantom = function () {
1217
+ return (0, reified_1.phantom)(UpdateStrikeEvent.reified());
1218
+ };
1219
+ Object.defineProperty(UpdateStrikeEvent, "p", {
1220
+ get: function () {
1221
+ return UpdateStrikeEvent.phantom();
1222
+ },
1223
+ enumerable: false,
1224
+ configurable: true
1225
+ });
1226
+ Object.defineProperty(UpdateStrikeEvent, "bcs", {
1227
+ get: function () {
1228
+ return bcs_1.bcs.struct("UpdateStrikeEvent", {
1229
+ signer: bcs_1.bcs.bytes(32).transform({
1230
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1231
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1232
+ }),
1233
+ index: bcs_1.bcs.u64(),
1234
+ oracle_price: bcs_1.bcs.u64(),
1235
+ oracle_price_decimal: bcs_1.bcs.u64(),
1236
+ vault_config: structs_2.VaultConfig.bcs,
1237
+ });
1238
+ },
1239
+ enumerable: false,
1240
+ configurable: true
1241
+ });
1242
+ UpdateStrikeEvent.fromFields = function (fields) {
1243
+ return UpdateStrikeEvent.reified().new({
1244
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1245
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
1246
+ oraclePrice: (0, reified_1.decodeFromFields)("u64", fields.oracle_price),
1247
+ oraclePriceDecimal: (0, reified_1.decodeFromFields)("u64", fields.oracle_price_decimal),
1248
+ vaultConfig: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.vault_config),
1249
+ });
1250
+ };
1251
+ UpdateStrikeEvent.fromFieldsWithTypes = function (item) {
1252
+ if (!isUpdateStrikeEvent(item.type)) {
1253
+ throw new Error("not a UpdateStrikeEvent type");
1254
+ }
1255
+ return UpdateStrikeEvent.reified().new({
1256
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1257
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1258
+ oraclePrice: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.oracle_price),
1259
+ oraclePriceDecimal: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.oracle_price_decimal),
1260
+ vaultConfig: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.vault_config),
1261
+ });
1262
+ };
1263
+ UpdateStrikeEvent.fromBcs = function (data) {
1264
+ return UpdateStrikeEvent.fromFields(UpdateStrikeEvent.bcs.parse(data));
1265
+ };
1266
+ UpdateStrikeEvent.prototype.toJSONField = function () {
1267
+ return {
1268
+ signer: this.signer,
1269
+ index: this.index.toString(),
1270
+ oraclePrice: this.oraclePrice.toString(),
1271
+ oraclePriceDecimal: this.oraclePriceDecimal.toString(),
1272
+ vaultConfig: this.vaultConfig.toJSONField(),
1273
+ };
1274
+ };
1275
+ UpdateStrikeEvent.prototype.toJSON = function () {
1276
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1277
+ };
1278
+ UpdateStrikeEvent.fromJSONField = function (field) {
1279
+ return UpdateStrikeEvent.reified().new({
1280
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1281
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1282
+ oraclePrice: (0, reified_1.decodeFromJSONField)("u64", field.oraclePrice),
1283
+ oraclePriceDecimal: (0, reified_1.decodeFromJSONField)("u64", field.oraclePriceDecimal),
1284
+ vaultConfig: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.vaultConfig),
1285
+ });
1286
+ };
1287
+ UpdateStrikeEvent.fromJSON = function (json) {
1288
+ if (json.$typeName !== UpdateStrikeEvent.$typeName) {
1289
+ throw new Error("not a WithTwoGenerics json object");
1290
+ }
1291
+ return UpdateStrikeEvent.fromJSONField(json);
1292
+ };
1293
+ UpdateStrikeEvent.fromSuiParsedData = function (content) {
1294
+ if (content.dataType !== "moveObject") {
1295
+ throw new Error("not an object");
1296
+ }
1297
+ if (!isUpdateStrikeEvent(content.type)) {
1298
+ throw new Error("object at ".concat(content.fields.id, " is not a UpdateStrikeEvent object"));
1299
+ }
1300
+ return UpdateStrikeEvent.fromFieldsWithTypes(content);
1301
+ };
1302
+ UpdateStrikeEvent.fromSuiObjectData = function (data) {
1303
+ if (data.bcs) {
1304
+ if (data.bcs.dataType !== "moveObject" || !isUpdateStrikeEvent(data.bcs.type)) {
1305
+ throw new Error("object at is not a UpdateStrikeEvent object");
1306
+ }
1307
+ return UpdateStrikeEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1308
+ }
1309
+ if (data.content) {
1310
+ return UpdateStrikeEvent.fromSuiParsedData(data.content);
1311
+ }
1312
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1313
+ };
1314
+ UpdateStrikeEvent.fetch = function (client, id) {
1315
+ return __awaiter(this, void 0, void 0, function () {
1316
+ var res;
1317
+ var _a, _b;
1318
+ return __generator(this, function (_c) {
1319
+ switch (_c.label) {
1320
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1321
+ case 1:
1322
+ res = _c.sent();
1323
+ if (res.error) {
1324
+ throw new Error("error fetching UpdateStrikeEvent object at id ".concat(id, ": ").concat(res.error.code));
1325
+ }
1326
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateStrikeEvent(res.data.bcs.type)) {
1327
+ throw new Error("object at id ".concat(id, " is not a UpdateStrikeEvent object"));
1328
+ }
1329
+ return [2 /*return*/, UpdateStrikeEvent.fromSuiObjectData(res.data)];
1330
+ }
1331
+ });
1332
+ });
1333
+ };
1334
+ UpdateStrikeEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateStrikeEvent");
1335
+ UpdateStrikeEvent.$numTypeParams = 0;
1336
+ UpdateStrikeEvent.$isPhantom = [];
1337
+ return UpdateStrikeEvent;
1338
+ }());
1339
+ exports.UpdateStrikeEvent = UpdateStrikeEvent;
1340
+ /* ============================== UpdateWarmupVaultConfigEvent =============================== */
1341
+ function isUpdateWarmupVaultConfigEvent(type) {
1342
+ type = (0, util_1.compressSuiType)(type);
1343
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateWarmupVaultConfigEvent");
1344
+ }
1345
+ var UpdateWarmupVaultConfigEvent = /** @class */ (function () {
1346
+ function UpdateWarmupVaultConfigEvent(typeArgs, fields) {
1347
+ this.__StructClass = true;
1348
+ this.$typeName = UpdateWarmupVaultConfigEvent.$typeName;
1349
+ this.$isPhantom = UpdateWarmupVaultConfigEvent.$isPhantom;
1350
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateWarmupVaultConfigEvent.$typeName], __read(typeArgs), false));
1351
+ this.$typeArgs = typeArgs;
1352
+ this.signer = fields.signer;
1353
+ this.index = fields.index;
1354
+ this.previous = fields.previous;
1355
+ this.current = fields.current;
1356
+ }
1357
+ UpdateWarmupVaultConfigEvent.reified = function () {
1358
+ var _this = this;
1359
+ return {
1360
+ typeName: UpdateWarmupVaultConfigEvent.$typeName,
1361
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateWarmupVaultConfigEvent.$typeName], [], false)),
1362
+ typeArgs: [],
1363
+ isPhantom: UpdateWarmupVaultConfigEvent.$isPhantom,
1364
+ reifiedTypeArgs: [],
1365
+ fromFields: function (fields) { return UpdateWarmupVaultConfigEvent.fromFields(fields); },
1366
+ fromFieldsWithTypes: function (item) { return UpdateWarmupVaultConfigEvent.fromFieldsWithTypes(item); },
1367
+ fromBcs: function (data) { return UpdateWarmupVaultConfigEvent.fromBcs(data); },
1368
+ bcs: UpdateWarmupVaultConfigEvent.bcs,
1369
+ fromJSONField: function (field) { return UpdateWarmupVaultConfigEvent.fromJSONField(field); },
1370
+ fromJSON: function (json) { return UpdateWarmupVaultConfigEvent.fromJSON(json); },
1371
+ fromSuiParsedData: function (content) { return UpdateWarmupVaultConfigEvent.fromSuiParsedData(content); },
1372
+ fromSuiObjectData: function (content) { return UpdateWarmupVaultConfigEvent.fromSuiObjectData(content); },
1373
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1374
+ return [2 /*return*/, UpdateWarmupVaultConfigEvent.fetch(client, id)];
1375
+ }); }); },
1376
+ new: function (fields) {
1377
+ return new UpdateWarmupVaultConfigEvent([], fields);
1378
+ },
1379
+ kind: "StructClassReified",
1380
+ };
1381
+ };
1382
+ Object.defineProperty(UpdateWarmupVaultConfigEvent, "r", {
1383
+ get: function () {
1384
+ return UpdateWarmupVaultConfigEvent.reified();
1385
+ },
1386
+ enumerable: false,
1387
+ configurable: true
1388
+ });
1389
+ UpdateWarmupVaultConfigEvent.phantom = function () {
1390
+ return (0, reified_1.phantom)(UpdateWarmupVaultConfigEvent.reified());
1391
+ };
1392
+ Object.defineProperty(UpdateWarmupVaultConfigEvent, "p", {
1393
+ get: function () {
1394
+ return UpdateWarmupVaultConfigEvent.phantom();
1395
+ },
1396
+ enumerable: false,
1397
+ configurable: true
1398
+ });
1399
+ Object.defineProperty(UpdateWarmupVaultConfigEvent, "bcs", {
1400
+ get: function () {
1401
+ return bcs_1.bcs.struct("UpdateWarmupVaultConfigEvent", {
1402
+ signer: bcs_1.bcs.bytes(32).transform({
1403
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1404
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1405
+ }),
1406
+ index: bcs_1.bcs.u64(),
1407
+ previous: structs_2.VaultConfig.bcs,
1408
+ current: structs_2.VaultConfig.bcs,
1409
+ });
1410
+ },
1411
+ enumerable: false,
1412
+ configurable: true
1413
+ });
1414
+ UpdateWarmupVaultConfigEvent.fromFields = function (fields) {
1415
+ return UpdateWarmupVaultConfigEvent.reified().new({
1416
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1417
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
1418
+ previous: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.previous),
1419
+ current: (0, reified_1.decodeFromFields)(structs_2.VaultConfig.reified(), fields.current),
1420
+ });
1421
+ };
1422
+ UpdateWarmupVaultConfigEvent.fromFieldsWithTypes = function (item) {
1423
+ if (!isUpdateWarmupVaultConfigEvent(item.type)) {
1424
+ throw new Error("not a UpdateWarmupVaultConfigEvent type");
1425
+ }
1426
+ return UpdateWarmupVaultConfigEvent.reified().new({
1427
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1428
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1429
+ previous: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.previous),
1430
+ current: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.VaultConfig.reified(), item.fields.current),
1431
+ });
1432
+ };
1433
+ UpdateWarmupVaultConfigEvent.fromBcs = function (data) {
1434
+ return UpdateWarmupVaultConfigEvent.fromFields(UpdateWarmupVaultConfigEvent.bcs.parse(data));
1435
+ };
1436
+ UpdateWarmupVaultConfigEvent.prototype.toJSONField = function () {
1437
+ return {
1438
+ signer: this.signer,
1439
+ index: this.index.toString(),
1440
+ previous: this.previous.toJSONField(),
1441
+ current: this.current.toJSONField(),
1442
+ };
1443
+ };
1444
+ UpdateWarmupVaultConfigEvent.prototype.toJSON = function () {
1445
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1446
+ };
1447
+ UpdateWarmupVaultConfigEvent.fromJSONField = function (field) {
1448
+ return UpdateWarmupVaultConfigEvent.reified().new({
1449
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1450
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1451
+ previous: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.previous),
1452
+ current: (0, reified_1.decodeFromJSONField)(structs_2.VaultConfig.reified(), field.current),
1453
+ });
1454
+ };
1455
+ UpdateWarmupVaultConfigEvent.fromJSON = function (json) {
1456
+ if (json.$typeName !== UpdateWarmupVaultConfigEvent.$typeName) {
1457
+ throw new Error("not a WithTwoGenerics json object");
1458
+ }
1459
+ return UpdateWarmupVaultConfigEvent.fromJSONField(json);
1460
+ };
1461
+ UpdateWarmupVaultConfigEvent.fromSuiParsedData = function (content) {
1462
+ if (content.dataType !== "moveObject") {
1463
+ throw new Error("not an object");
1464
+ }
1465
+ if (!isUpdateWarmupVaultConfigEvent(content.type)) {
1466
+ throw new Error("object at ".concat(content.fields.id, " is not a UpdateWarmupVaultConfigEvent object"));
1467
+ }
1468
+ return UpdateWarmupVaultConfigEvent.fromFieldsWithTypes(content);
1469
+ };
1470
+ UpdateWarmupVaultConfigEvent.fromSuiObjectData = function (data) {
1471
+ if (data.bcs) {
1472
+ if (data.bcs.dataType !== "moveObject" || !isUpdateWarmupVaultConfigEvent(data.bcs.type)) {
1473
+ throw new Error("object at is not a UpdateWarmupVaultConfigEvent object");
1474
+ }
1475
+ return UpdateWarmupVaultConfigEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1476
+ }
1477
+ if (data.content) {
1478
+ return UpdateWarmupVaultConfigEvent.fromSuiParsedData(data.content);
1479
+ }
1480
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1481
+ };
1482
+ UpdateWarmupVaultConfigEvent.fetch = function (client, id) {
1483
+ return __awaiter(this, void 0, void 0, function () {
1484
+ var res;
1485
+ var _a, _b;
1486
+ return __generator(this, function (_c) {
1487
+ switch (_c.label) {
1488
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1489
+ case 1:
1490
+ res = _c.sent();
1491
+ if (res.error) {
1492
+ throw new Error("error fetching UpdateWarmupVaultConfigEvent object at id ".concat(id, ": ").concat(res.error.code));
1493
+ }
1494
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpdateWarmupVaultConfigEvent(res.data.bcs.type)) {
1495
+ throw new Error("object at id ".concat(id, " is not a UpdateWarmupVaultConfigEvent object"));
1496
+ }
1497
+ return [2 /*return*/, UpdateWarmupVaultConfigEvent.fromSuiObjectData(res.data)];
1498
+ }
1499
+ });
1500
+ });
1501
+ };
1502
+ UpdateWarmupVaultConfigEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::UpdateWarmupVaultConfigEvent");
1503
+ UpdateWarmupVaultConfigEvent.$numTypeParams = 0;
1504
+ UpdateWarmupVaultConfigEvent.$isPhantom = [];
1505
+ return UpdateWarmupVaultConfigEvent;
1506
+ }());
1507
+ exports.UpdateWarmupVaultConfigEvent = UpdateWarmupVaultConfigEvent;
1508
+ /* ============================== WithdrawFixedIncentiveEvent =============================== */
1509
+ function isWithdrawFixedIncentiveEvent(type) {
1510
+ type = (0, util_1.compressSuiType)(type);
1511
+ return type === "".concat(index_1.PKG_V1, "::tds_authorized_entry::WithdrawFixedIncentiveEvent");
1512
+ }
1513
+ var WithdrawFixedIncentiveEvent = /** @class */ (function () {
1514
+ function WithdrawFixedIncentiveEvent(typeArgs, fields) {
1515
+ this.__StructClass = true;
1516
+ this.$typeName = WithdrawFixedIncentiveEvent.$typeName;
1517
+ this.$isPhantom = WithdrawFixedIncentiveEvent.$isPhantom;
1518
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawFixedIncentiveEvent.$typeName], __read(typeArgs), false));
1519
+ this.$typeArgs = typeArgs;
1520
+ this.signer = fields.signer;
1521
+ this.token = fields.token;
1522
+ this.amount = fields.amount;
1523
+ }
1524
+ WithdrawFixedIncentiveEvent.reified = function () {
1525
+ var _this = this;
1526
+ return {
1527
+ typeName: WithdrawFixedIncentiveEvent.$typeName,
1528
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawFixedIncentiveEvent.$typeName], [], false)),
1529
+ typeArgs: [],
1530
+ isPhantom: WithdrawFixedIncentiveEvent.$isPhantom,
1531
+ reifiedTypeArgs: [],
1532
+ fromFields: function (fields) { return WithdrawFixedIncentiveEvent.fromFields(fields); },
1533
+ fromFieldsWithTypes: function (item) { return WithdrawFixedIncentiveEvent.fromFieldsWithTypes(item); },
1534
+ fromBcs: function (data) { return WithdrawFixedIncentiveEvent.fromBcs(data); },
1535
+ bcs: WithdrawFixedIncentiveEvent.bcs,
1536
+ fromJSONField: function (field) { return WithdrawFixedIncentiveEvent.fromJSONField(field); },
1537
+ fromJSON: function (json) { return WithdrawFixedIncentiveEvent.fromJSON(json); },
1538
+ fromSuiParsedData: function (content) { return WithdrawFixedIncentiveEvent.fromSuiParsedData(content); },
1539
+ fromSuiObjectData: function (content) { return WithdrawFixedIncentiveEvent.fromSuiObjectData(content); },
1540
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1541
+ return [2 /*return*/, WithdrawFixedIncentiveEvent.fetch(client, id)];
1542
+ }); }); },
1543
+ new: function (fields) {
1544
+ return new WithdrawFixedIncentiveEvent([], fields);
1545
+ },
1546
+ kind: "StructClassReified",
1547
+ };
1548
+ };
1549
+ Object.defineProperty(WithdrawFixedIncentiveEvent, "r", {
1550
+ get: function () {
1551
+ return WithdrawFixedIncentiveEvent.reified();
1552
+ },
1553
+ enumerable: false,
1554
+ configurable: true
1555
+ });
1556
+ WithdrawFixedIncentiveEvent.phantom = function () {
1557
+ return (0, reified_1.phantom)(WithdrawFixedIncentiveEvent.reified());
1558
+ };
1559
+ Object.defineProperty(WithdrawFixedIncentiveEvent, "p", {
1560
+ get: function () {
1561
+ return WithdrawFixedIncentiveEvent.phantom();
1562
+ },
1563
+ enumerable: false,
1564
+ configurable: true
1565
+ });
1566
+ Object.defineProperty(WithdrawFixedIncentiveEvent, "bcs", {
1567
+ get: function () {
1568
+ return bcs_1.bcs.struct("WithdrawFixedIncentiveEvent", {
1569
+ signer: bcs_1.bcs.bytes(32).transform({
1570
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1571
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1572
+ }),
1573
+ token: structs_1.TypeName.bcs,
1574
+ amount: bcs_1.bcs.u64(),
1575
+ });
1576
+ },
1577
+ enumerable: false,
1578
+ configurable: true
1579
+ });
1580
+ WithdrawFixedIncentiveEvent.fromFields = function (fields) {
1581
+ return WithdrawFixedIncentiveEvent.reified().new({
1582
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1583
+ token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1584
+ amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
1585
+ });
1586
+ };
1587
+ WithdrawFixedIncentiveEvent.fromFieldsWithTypes = function (item) {
1588
+ if (!isWithdrawFixedIncentiveEvent(item.type)) {
1589
+ throw new Error("not a WithdrawFixedIncentiveEvent type");
1590
+ }
1591
+ return WithdrawFixedIncentiveEvent.reified().new({
1592
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1593
+ token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1594
+ amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
1595
+ });
1596
+ };
1597
+ WithdrawFixedIncentiveEvent.fromBcs = function (data) {
1598
+ return WithdrawFixedIncentiveEvent.fromFields(WithdrawFixedIncentiveEvent.bcs.parse(data));
1599
+ };
1600
+ WithdrawFixedIncentiveEvent.prototype.toJSONField = function () {
1601
+ return {
1602
+ signer: this.signer,
1603
+ token: this.token.toJSONField(),
1604
+ amount: this.amount.toString(),
1605
+ };
1606
+ };
1607
+ WithdrawFixedIncentiveEvent.prototype.toJSON = function () {
1608
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1609
+ };
1610
+ WithdrawFixedIncentiveEvent.fromJSONField = function (field) {
1611
+ return WithdrawFixedIncentiveEvent.reified().new({
1612
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1613
+ token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1614
+ amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
1615
+ });
1616
+ };
1617
+ WithdrawFixedIncentiveEvent.fromJSON = function (json) {
1618
+ if (json.$typeName !== WithdrawFixedIncentiveEvent.$typeName) {
1619
+ throw new Error("not a WithTwoGenerics json object");
1620
+ }
1621
+ return WithdrawFixedIncentiveEvent.fromJSONField(json);
1622
+ };
1623
+ WithdrawFixedIncentiveEvent.fromSuiParsedData = function (content) {
1624
+ if (content.dataType !== "moveObject") {
1625
+ throw new Error("not an object");
1626
+ }
1627
+ if (!isWithdrawFixedIncentiveEvent(content.type)) {
1628
+ throw new Error("object at ".concat(content.fields.id, " is not a WithdrawFixedIncentiveEvent object"));
1629
+ }
1630
+ return WithdrawFixedIncentiveEvent.fromFieldsWithTypes(content);
1631
+ };
1632
+ WithdrawFixedIncentiveEvent.fromSuiObjectData = function (data) {
1633
+ if (data.bcs) {
1634
+ if (data.bcs.dataType !== "moveObject" || !isWithdrawFixedIncentiveEvent(data.bcs.type)) {
1635
+ throw new Error("object at is not a WithdrawFixedIncentiveEvent object");
1636
+ }
1637
+ return WithdrawFixedIncentiveEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1638
+ }
1639
+ if (data.content) {
1640
+ return WithdrawFixedIncentiveEvent.fromSuiParsedData(data.content);
1641
+ }
1642
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1643
+ };
1644
+ WithdrawFixedIncentiveEvent.fetch = function (client, id) {
1645
+ return __awaiter(this, void 0, void 0, function () {
1646
+ var res;
1647
+ var _a, _b;
1648
+ return __generator(this, function (_c) {
1649
+ switch (_c.label) {
1650
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1651
+ case 1:
1652
+ res = _c.sent();
1653
+ if (res.error) {
1654
+ throw new Error("error fetching WithdrawFixedIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
1655
+ }
1656
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWithdrawFixedIncentiveEvent(res.data.bcs.type)) {
1657
+ throw new Error("object at id ".concat(id, " is not a WithdrawFixedIncentiveEvent object"));
1658
+ }
1659
+ return [2 /*return*/, WithdrawFixedIncentiveEvent.fromSuiObjectData(res.data)];
1660
+ }
1661
+ });
1662
+ });
1663
+ };
1664
+ WithdrawFixedIncentiveEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_authorized_entry::WithdrawFixedIncentiveEvent");
1665
+ WithdrawFixedIncentiveEvent.$numTypeParams = 0;
1666
+ WithdrawFixedIncentiveEvent.$isPhantom = [];
1667
+ return WithdrawFixedIncentiveEvent;
1668
+ }());
1669
+ exports.WithdrawFixedIncentiveEvent = WithdrawFixedIncentiveEvent;