@typus/typus-sdk 1.4.84 → 1.5.1

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