@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,1869 @@
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.WithdrawIncentiveEvent = exports.UpgradeRegistryEvent = exports.SuspendTransactionEvent = exports.SetAvailableIncentiveAmountEvent = exports.ResumeTransactionEvent = exports.RemoveWitnessEvent = exports.RemoveAuthorizedUserEvent = exports.NewPortfolioVaultEvent = exports.IncentiviseEvent = exports.AddWitnessEvent = exports.AddAuthorizedUserEvent = void 0;
99
+ exports.isAddAuthorizedUserEvent = isAddAuthorizedUserEvent;
100
+ exports.isAddWitnessEvent = isAddWitnessEvent;
101
+ exports.isIncentiviseEvent = isIncentiviseEvent;
102
+ exports.isNewPortfolioVaultEvent = isNewPortfolioVaultEvent;
103
+ exports.isRemoveAuthorizedUserEvent = isRemoveAuthorizedUserEvent;
104
+ exports.isRemoveWitnessEvent = isRemoveWitnessEvent;
105
+ exports.isResumeTransactionEvent = isResumeTransactionEvent;
106
+ exports.isSetAvailableIncentiveAmountEvent = isSetAvailableIncentiveAmountEvent;
107
+ exports.isSuspendTransactionEvent = isSuspendTransactionEvent;
108
+ exports.isUpgradeRegistryEvent = isUpgradeRegistryEvent;
109
+ exports.isWithdrawIncentiveEvent = isWithdrawIncentiveEvent;
110
+ var reified = __importStar(require("../../../../_framework/reified"));
111
+ var reified_1 = require("../../../../_framework/reified");
112
+ var util_1 = require("../../../../_framework/util");
113
+ var structs_1 = require("../../0x1/type-name/structs");
114
+ var index_1 = require("../index");
115
+ var structs_2 = require("../typus-dov-single/structs");
116
+ var bcs_1 = require("@mysten/sui/bcs");
117
+ var utils_1 = require("@mysten/sui/utils");
118
+ /* ============================== AddAuthorizedUserEvent =============================== */
119
+ function isAddAuthorizedUserEvent(type) {
120
+ type = (0, util_1.compressSuiType)(type);
121
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::AddAuthorizedUserEvent");
122
+ }
123
+ var AddAuthorizedUserEvent = /** @class */ (function () {
124
+ function AddAuthorizedUserEvent(typeArgs, fields) {
125
+ this.__StructClass = true;
126
+ this.$typeName = AddAuthorizedUserEvent.$typeName;
127
+ this.$isPhantom = AddAuthorizedUserEvent.$isPhantom;
128
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddAuthorizedUserEvent.$typeName], __read(typeArgs), false));
129
+ this.$typeArgs = typeArgs;
130
+ this.signer = fields.signer;
131
+ this.users = fields.users;
132
+ }
133
+ AddAuthorizedUserEvent.reified = function () {
134
+ var _this = this;
135
+ return {
136
+ typeName: AddAuthorizedUserEvent.$typeName,
137
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddAuthorizedUserEvent.$typeName], [], false)),
138
+ typeArgs: [],
139
+ isPhantom: AddAuthorizedUserEvent.$isPhantom,
140
+ reifiedTypeArgs: [],
141
+ fromFields: function (fields) { return AddAuthorizedUserEvent.fromFields(fields); },
142
+ fromFieldsWithTypes: function (item) { return AddAuthorizedUserEvent.fromFieldsWithTypes(item); },
143
+ fromBcs: function (data) { return AddAuthorizedUserEvent.fromBcs(data); },
144
+ bcs: AddAuthorizedUserEvent.bcs,
145
+ fromJSONField: function (field) { return AddAuthorizedUserEvent.fromJSONField(field); },
146
+ fromJSON: function (json) { return AddAuthorizedUserEvent.fromJSON(json); },
147
+ fromSuiParsedData: function (content) { return AddAuthorizedUserEvent.fromSuiParsedData(content); },
148
+ fromSuiObjectData: function (content) { return AddAuthorizedUserEvent.fromSuiObjectData(content); },
149
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
150
+ return [2 /*return*/, AddAuthorizedUserEvent.fetch(client, id)];
151
+ }); }); },
152
+ new: function (fields) {
153
+ return new AddAuthorizedUserEvent([], fields);
154
+ },
155
+ kind: "StructClassReified",
156
+ };
157
+ };
158
+ Object.defineProperty(AddAuthorizedUserEvent, "r", {
159
+ get: function () {
160
+ return AddAuthorizedUserEvent.reified();
161
+ },
162
+ enumerable: false,
163
+ configurable: true
164
+ });
165
+ AddAuthorizedUserEvent.phantom = function () {
166
+ return (0, reified_1.phantom)(AddAuthorizedUserEvent.reified());
167
+ };
168
+ Object.defineProperty(AddAuthorizedUserEvent, "p", {
169
+ get: function () {
170
+ return AddAuthorizedUserEvent.phantom();
171
+ },
172
+ enumerable: false,
173
+ configurable: true
174
+ });
175
+ Object.defineProperty(AddAuthorizedUserEvent, "bcs", {
176
+ get: function () {
177
+ return bcs_1.bcs.struct("AddAuthorizedUserEvent", {
178
+ signer: bcs_1.bcs.bytes(32).transform({
179
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
180
+ output: function (val) { return (0, utils_1.toHEX)(val); },
181
+ }),
182
+ users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
183
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
184
+ output: function (val) { return (0, utils_1.toHEX)(val); },
185
+ })),
186
+ });
187
+ },
188
+ enumerable: false,
189
+ configurable: true
190
+ });
191
+ AddAuthorizedUserEvent.fromFields = function (fields) {
192
+ return AddAuthorizedUserEvent.reified().new({
193
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
194
+ users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
195
+ });
196
+ };
197
+ AddAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
198
+ if (!isAddAuthorizedUserEvent(item.type)) {
199
+ throw new Error("not a AddAuthorizedUserEvent type");
200
+ }
201
+ return AddAuthorizedUserEvent.reified().new({
202
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
203
+ users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
204
+ });
205
+ };
206
+ AddAuthorizedUserEvent.fromBcs = function (data) {
207
+ return AddAuthorizedUserEvent.fromFields(AddAuthorizedUserEvent.bcs.parse(data));
208
+ };
209
+ AddAuthorizedUserEvent.prototype.toJSONField = function () {
210
+ return {
211
+ signer: this.signer,
212
+ users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
213
+ };
214
+ };
215
+ AddAuthorizedUserEvent.prototype.toJSON = function () {
216
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
217
+ };
218
+ AddAuthorizedUserEvent.fromJSONField = function (field) {
219
+ return AddAuthorizedUserEvent.reified().new({
220
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
221
+ users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
222
+ });
223
+ };
224
+ AddAuthorizedUserEvent.fromJSON = function (json) {
225
+ if (json.$typeName !== AddAuthorizedUserEvent.$typeName) {
226
+ throw new Error("not a WithTwoGenerics json object");
227
+ }
228
+ return AddAuthorizedUserEvent.fromJSONField(json);
229
+ };
230
+ AddAuthorizedUserEvent.fromSuiParsedData = function (content) {
231
+ if (content.dataType !== "moveObject") {
232
+ throw new Error("not an object");
233
+ }
234
+ if (!isAddAuthorizedUserEvent(content.type)) {
235
+ throw new Error("object at ".concat(content.fields.id, " is not a AddAuthorizedUserEvent object"));
236
+ }
237
+ return AddAuthorizedUserEvent.fromFieldsWithTypes(content);
238
+ };
239
+ AddAuthorizedUserEvent.fromSuiObjectData = function (data) {
240
+ if (data.bcs) {
241
+ if (data.bcs.dataType !== "moveObject" || !isAddAuthorizedUserEvent(data.bcs.type)) {
242
+ throw new Error("object at is not a AddAuthorizedUserEvent object");
243
+ }
244
+ return AddAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
245
+ }
246
+ if (data.content) {
247
+ return AddAuthorizedUserEvent.fromSuiParsedData(data.content);
248
+ }
249
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
250
+ };
251
+ AddAuthorizedUserEvent.fetch = function (client, id) {
252
+ return __awaiter(this, void 0, void 0, function () {
253
+ var res;
254
+ var _a, _b;
255
+ return __generator(this, function (_c) {
256
+ switch (_c.label) {
257
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
258
+ case 1:
259
+ res = _c.sent();
260
+ if (res.error) {
261
+ throw new Error("error fetching AddAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
262
+ }
263
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddAuthorizedUserEvent(res.data.bcs.type)) {
264
+ throw new Error("object at id ".concat(id, " is not a AddAuthorizedUserEvent object"));
265
+ }
266
+ return [2 /*return*/, AddAuthorizedUserEvent.fromSuiObjectData(res.data)];
267
+ }
268
+ });
269
+ });
270
+ };
271
+ AddAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::AddAuthorizedUserEvent");
272
+ AddAuthorizedUserEvent.$numTypeParams = 0;
273
+ AddAuthorizedUserEvent.$isPhantom = [];
274
+ return AddAuthorizedUserEvent;
275
+ }());
276
+ exports.AddAuthorizedUserEvent = AddAuthorizedUserEvent;
277
+ /* ============================== AddWitnessEvent =============================== */
278
+ function isAddWitnessEvent(type) {
279
+ type = (0, util_1.compressSuiType)(type);
280
+ return type === "".concat(index_1.PKG_V33, "::tds_registry_authorized_entry::AddWitnessEvent");
281
+ }
282
+ var AddWitnessEvent = /** @class */ (function () {
283
+ function AddWitnessEvent(typeArgs, fields) {
284
+ this.__StructClass = true;
285
+ this.$typeName = AddWitnessEvent.$typeName;
286
+ this.$isPhantom = AddWitnessEvent.$isPhantom;
287
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddWitnessEvent.$typeName], __read(typeArgs), false));
288
+ this.$typeArgs = typeArgs;
289
+ this.signer = fields.signer;
290
+ this.witness = fields.witness;
291
+ }
292
+ AddWitnessEvent.reified = function () {
293
+ var _this = this;
294
+ return {
295
+ typeName: AddWitnessEvent.$typeName,
296
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddWitnessEvent.$typeName], [], false)),
297
+ typeArgs: [],
298
+ isPhantom: AddWitnessEvent.$isPhantom,
299
+ reifiedTypeArgs: [],
300
+ fromFields: function (fields) { return AddWitnessEvent.fromFields(fields); },
301
+ fromFieldsWithTypes: function (item) { return AddWitnessEvent.fromFieldsWithTypes(item); },
302
+ fromBcs: function (data) { return AddWitnessEvent.fromBcs(data); },
303
+ bcs: AddWitnessEvent.bcs,
304
+ fromJSONField: function (field) { return AddWitnessEvent.fromJSONField(field); },
305
+ fromJSON: function (json) { return AddWitnessEvent.fromJSON(json); },
306
+ fromSuiParsedData: function (content) { return AddWitnessEvent.fromSuiParsedData(content); },
307
+ fromSuiObjectData: function (content) { return AddWitnessEvent.fromSuiObjectData(content); },
308
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
309
+ return [2 /*return*/, AddWitnessEvent.fetch(client, id)];
310
+ }); }); },
311
+ new: function (fields) {
312
+ return new AddWitnessEvent([], fields);
313
+ },
314
+ kind: "StructClassReified",
315
+ };
316
+ };
317
+ Object.defineProperty(AddWitnessEvent, "r", {
318
+ get: function () {
319
+ return AddWitnessEvent.reified();
320
+ },
321
+ enumerable: false,
322
+ configurable: true
323
+ });
324
+ AddWitnessEvent.phantom = function () {
325
+ return (0, reified_1.phantom)(AddWitnessEvent.reified());
326
+ };
327
+ Object.defineProperty(AddWitnessEvent, "p", {
328
+ get: function () {
329
+ return AddWitnessEvent.phantom();
330
+ },
331
+ enumerable: false,
332
+ configurable: true
333
+ });
334
+ Object.defineProperty(AddWitnessEvent, "bcs", {
335
+ get: function () {
336
+ return bcs_1.bcs.struct("AddWitnessEvent", {
337
+ signer: bcs_1.bcs.bytes(32).transform({
338
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
339
+ output: function (val) { return (0, utils_1.toHEX)(val); },
340
+ }),
341
+ witness: structs_1.TypeName.bcs,
342
+ });
343
+ },
344
+ enumerable: false,
345
+ configurable: true
346
+ });
347
+ AddWitnessEvent.fromFields = function (fields) {
348
+ return AddWitnessEvent.reified().new({
349
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
350
+ witness: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.witness),
351
+ });
352
+ };
353
+ AddWitnessEvent.fromFieldsWithTypes = function (item) {
354
+ if (!isAddWitnessEvent(item.type)) {
355
+ throw new Error("not a AddWitnessEvent type");
356
+ }
357
+ return AddWitnessEvent.reified().new({
358
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
359
+ witness: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.witness),
360
+ });
361
+ };
362
+ AddWitnessEvent.fromBcs = function (data) {
363
+ return AddWitnessEvent.fromFields(AddWitnessEvent.bcs.parse(data));
364
+ };
365
+ AddWitnessEvent.prototype.toJSONField = function () {
366
+ return {
367
+ signer: this.signer,
368
+ witness: this.witness.toJSONField(),
369
+ };
370
+ };
371
+ AddWitnessEvent.prototype.toJSON = function () {
372
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
373
+ };
374
+ AddWitnessEvent.fromJSONField = function (field) {
375
+ return AddWitnessEvent.reified().new({
376
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
377
+ witness: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.witness),
378
+ });
379
+ };
380
+ AddWitnessEvent.fromJSON = function (json) {
381
+ if (json.$typeName !== AddWitnessEvent.$typeName) {
382
+ throw new Error("not a WithTwoGenerics json object");
383
+ }
384
+ return AddWitnessEvent.fromJSONField(json);
385
+ };
386
+ AddWitnessEvent.fromSuiParsedData = function (content) {
387
+ if (content.dataType !== "moveObject") {
388
+ throw new Error("not an object");
389
+ }
390
+ if (!isAddWitnessEvent(content.type)) {
391
+ throw new Error("object at ".concat(content.fields.id, " is not a AddWitnessEvent object"));
392
+ }
393
+ return AddWitnessEvent.fromFieldsWithTypes(content);
394
+ };
395
+ AddWitnessEvent.fromSuiObjectData = function (data) {
396
+ if (data.bcs) {
397
+ if (data.bcs.dataType !== "moveObject" || !isAddWitnessEvent(data.bcs.type)) {
398
+ throw new Error("object at is not a AddWitnessEvent object");
399
+ }
400
+ return AddWitnessEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
401
+ }
402
+ if (data.content) {
403
+ return AddWitnessEvent.fromSuiParsedData(data.content);
404
+ }
405
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
406
+ };
407
+ AddWitnessEvent.fetch = function (client, id) {
408
+ return __awaiter(this, void 0, void 0, function () {
409
+ var res;
410
+ var _a, _b;
411
+ return __generator(this, function (_c) {
412
+ switch (_c.label) {
413
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
414
+ case 1:
415
+ res = _c.sent();
416
+ if (res.error) {
417
+ throw new Error("error fetching AddWitnessEvent object at id ".concat(id, ": ").concat(res.error.code));
418
+ }
419
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isAddWitnessEvent(res.data.bcs.type)) {
420
+ throw new Error("object at id ".concat(id, " is not a AddWitnessEvent object"));
421
+ }
422
+ return [2 /*return*/, AddWitnessEvent.fromSuiObjectData(res.data)];
423
+ }
424
+ });
425
+ });
426
+ };
427
+ AddWitnessEvent.$typeName = "".concat(index_1.PKG_V33, "::tds_registry_authorized_entry::AddWitnessEvent");
428
+ AddWitnessEvent.$numTypeParams = 0;
429
+ AddWitnessEvent.$isPhantom = [];
430
+ return AddWitnessEvent;
431
+ }());
432
+ exports.AddWitnessEvent = AddWitnessEvent;
433
+ /* ============================== IncentiviseEvent =============================== */
434
+ function isIncentiviseEvent(type) {
435
+ type = (0, util_1.compressSuiType)(type);
436
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::IncentiviseEvent");
437
+ }
438
+ var IncentiviseEvent = /** @class */ (function () {
439
+ function IncentiviseEvent(typeArgs, fields) {
440
+ this.__StructClass = true;
441
+ this.$typeName = IncentiviseEvent.$typeName;
442
+ this.$isPhantom = IncentiviseEvent.$isPhantom;
443
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([IncentiviseEvent.$typeName], __read(typeArgs), false));
444
+ this.$typeArgs = typeArgs;
445
+ this.signer = fields.signer;
446
+ this.token = fields.token;
447
+ this.amount = fields.amount;
448
+ }
449
+ IncentiviseEvent.reified = function () {
450
+ var _this = this;
451
+ return {
452
+ typeName: IncentiviseEvent.$typeName,
453
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([IncentiviseEvent.$typeName], [], false)),
454
+ typeArgs: [],
455
+ isPhantom: IncentiviseEvent.$isPhantom,
456
+ reifiedTypeArgs: [],
457
+ fromFields: function (fields) { return IncentiviseEvent.fromFields(fields); },
458
+ fromFieldsWithTypes: function (item) { return IncentiviseEvent.fromFieldsWithTypes(item); },
459
+ fromBcs: function (data) { return IncentiviseEvent.fromBcs(data); },
460
+ bcs: IncentiviseEvent.bcs,
461
+ fromJSONField: function (field) { return IncentiviseEvent.fromJSONField(field); },
462
+ fromJSON: function (json) { return IncentiviseEvent.fromJSON(json); },
463
+ fromSuiParsedData: function (content) { return IncentiviseEvent.fromSuiParsedData(content); },
464
+ fromSuiObjectData: function (content) { return IncentiviseEvent.fromSuiObjectData(content); },
465
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
466
+ return [2 /*return*/, IncentiviseEvent.fetch(client, id)];
467
+ }); }); },
468
+ new: function (fields) {
469
+ return new IncentiviseEvent([], fields);
470
+ },
471
+ kind: "StructClassReified",
472
+ };
473
+ };
474
+ Object.defineProperty(IncentiviseEvent, "r", {
475
+ get: function () {
476
+ return IncentiviseEvent.reified();
477
+ },
478
+ enumerable: false,
479
+ configurable: true
480
+ });
481
+ IncentiviseEvent.phantom = function () {
482
+ return (0, reified_1.phantom)(IncentiviseEvent.reified());
483
+ };
484
+ Object.defineProperty(IncentiviseEvent, "p", {
485
+ get: function () {
486
+ return IncentiviseEvent.phantom();
487
+ },
488
+ enumerable: false,
489
+ configurable: true
490
+ });
491
+ Object.defineProperty(IncentiviseEvent, "bcs", {
492
+ get: function () {
493
+ return bcs_1.bcs.struct("IncentiviseEvent", {
494
+ signer: bcs_1.bcs.bytes(32).transform({
495
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
496
+ output: function (val) { return (0, utils_1.toHEX)(val); },
497
+ }),
498
+ token: structs_1.TypeName.bcs,
499
+ amount: bcs_1.bcs.u64(),
500
+ });
501
+ },
502
+ enumerable: false,
503
+ configurable: true
504
+ });
505
+ IncentiviseEvent.fromFields = function (fields) {
506
+ return IncentiviseEvent.reified().new({
507
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
508
+ token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
509
+ amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
510
+ });
511
+ };
512
+ IncentiviseEvent.fromFieldsWithTypes = function (item) {
513
+ if (!isIncentiviseEvent(item.type)) {
514
+ throw new Error("not a IncentiviseEvent type");
515
+ }
516
+ return IncentiviseEvent.reified().new({
517
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
518
+ token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
519
+ amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
520
+ });
521
+ };
522
+ IncentiviseEvent.fromBcs = function (data) {
523
+ return IncentiviseEvent.fromFields(IncentiviseEvent.bcs.parse(data));
524
+ };
525
+ IncentiviseEvent.prototype.toJSONField = function () {
526
+ return {
527
+ signer: this.signer,
528
+ token: this.token.toJSONField(),
529
+ amount: this.amount.toString(),
530
+ };
531
+ };
532
+ IncentiviseEvent.prototype.toJSON = function () {
533
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
534
+ };
535
+ IncentiviseEvent.fromJSONField = function (field) {
536
+ return IncentiviseEvent.reified().new({
537
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
538
+ token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
539
+ amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
540
+ });
541
+ };
542
+ IncentiviseEvent.fromJSON = function (json) {
543
+ if (json.$typeName !== IncentiviseEvent.$typeName) {
544
+ throw new Error("not a WithTwoGenerics json object");
545
+ }
546
+ return IncentiviseEvent.fromJSONField(json);
547
+ };
548
+ IncentiviseEvent.fromSuiParsedData = function (content) {
549
+ if (content.dataType !== "moveObject") {
550
+ throw new Error("not an object");
551
+ }
552
+ if (!isIncentiviseEvent(content.type)) {
553
+ throw new Error("object at ".concat(content.fields.id, " is not a IncentiviseEvent object"));
554
+ }
555
+ return IncentiviseEvent.fromFieldsWithTypes(content);
556
+ };
557
+ IncentiviseEvent.fromSuiObjectData = function (data) {
558
+ if (data.bcs) {
559
+ if (data.bcs.dataType !== "moveObject" || !isIncentiviseEvent(data.bcs.type)) {
560
+ throw new Error("object at is not a IncentiviseEvent object");
561
+ }
562
+ return IncentiviseEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
563
+ }
564
+ if (data.content) {
565
+ return IncentiviseEvent.fromSuiParsedData(data.content);
566
+ }
567
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
568
+ };
569
+ IncentiviseEvent.fetch = function (client, id) {
570
+ return __awaiter(this, void 0, void 0, function () {
571
+ var res;
572
+ var _a, _b;
573
+ return __generator(this, function (_c) {
574
+ switch (_c.label) {
575
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
576
+ case 1:
577
+ res = _c.sent();
578
+ if (res.error) {
579
+ throw new Error("error fetching IncentiviseEvent object at id ".concat(id, ": ").concat(res.error.code));
580
+ }
581
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isIncentiviseEvent(res.data.bcs.type)) {
582
+ throw new Error("object at id ".concat(id, " is not a IncentiviseEvent object"));
583
+ }
584
+ return [2 /*return*/, IncentiviseEvent.fromSuiObjectData(res.data)];
585
+ }
586
+ });
587
+ });
588
+ };
589
+ IncentiviseEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::IncentiviseEvent");
590
+ IncentiviseEvent.$numTypeParams = 0;
591
+ IncentiviseEvent.$isPhantom = [];
592
+ return IncentiviseEvent;
593
+ }());
594
+ exports.IncentiviseEvent = IncentiviseEvent;
595
+ /* ============================== NewPortfolioVaultEvent =============================== */
596
+ function isNewPortfolioVaultEvent(type) {
597
+ type = (0, util_1.compressSuiType)(type);
598
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::NewPortfolioVaultEvent");
599
+ }
600
+ var NewPortfolioVaultEvent = /** @class */ (function () {
601
+ function NewPortfolioVaultEvent(typeArgs, fields) {
602
+ this.__StructClass = true;
603
+ this.$typeName = NewPortfolioVaultEvent.$typeName;
604
+ this.$isPhantom = NewPortfolioVaultEvent.$isPhantom;
605
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewPortfolioVaultEvent.$typeName], __read(typeArgs), false));
606
+ this.$typeArgs = typeArgs;
607
+ this.signer = fields.signer;
608
+ this.index = fields.index;
609
+ this.info = fields.info;
610
+ this.config = fields.config;
611
+ }
612
+ NewPortfolioVaultEvent.reified = function () {
613
+ var _this = this;
614
+ return {
615
+ typeName: NewPortfolioVaultEvent.$typeName,
616
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewPortfolioVaultEvent.$typeName], [], false)),
617
+ typeArgs: [],
618
+ isPhantom: NewPortfolioVaultEvent.$isPhantom,
619
+ reifiedTypeArgs: [],
620
+ fromFields: function (fields) { return NewPortfolioVaultEvent.fromFields(fields); },
621
+ fromFieldsWithTypes: function (item) { return NewPortfolioVaultEvent.fromFieldsWithTypes(item); },
622
+ fromBcs: function (data) { return NewPortfolioVaultEvent.fromBcs(data); },
623
+ bcs: NewPortfolioVaultEvent.bcs,
624
+ fromJSONField: function (field) { return NewPortfolioVaultEvent.fromJSONField(field); },
625
+ fromJSON: function (json) { return NewPortfolioVaultEvent.fromJSON(json); },
626
+ fromSuiParsedData: function (content) { return NewPortfolioVaultEvent.fromSuiParsedData(content); },
627
+ fromSuiObjectData: function (content) { return NewPortfolioVaultEvent.fromSuiObjectData(content); },
628
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
629
+ return [2 /*return*/, NewPortfolioVaultEvent.fetch(client, id)];
630
+ }); }); },
631
+ new: function (fields) {
632
+ return new NewPortfolioVaultEvent([], fields);
633
+ },
634
+ kind: "StructClassReified",
635
+ };
636
+ };
637
+ Object.defineProperty(NewPortfolioVaultEvent, "r", {
638
+ get: function () {
639
+ return NewPortfolioVaultEvent.reified();
640
+ },
641
+ enumerable: false,
642
+ configurable: true
643
+ });
644
+ NewPortfolioVaultEvent.phantom = function () {
645
+ return (0, reified_1.phantom)(NewPortfolioVaultEvent.reified());
646
+ };
647
+ Object.defineProperty(NewPortfolioVaultEvent, "p", {
648
+ get: function () {
649
+ return NewPortfolioVaultEvent.phantom();
650
+ },
651
+ enumerable: false,
652
+ configurable: true
653
+ });
654
+ Object.defineProperty(NewPortfolioVaultEvent, "bcs", {
655
+ get: function () {
656
+ return bcs_1.bcs.struct("NewPortfolioVaultEvent", {
657
+ signer: bcs_1.bcs.bytes(32).transform({
658
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
659
+ output: function (val) { return (0, utils_1.toHEX)(val); },
660
+ }),
661
+ index: bcs_1.bcs.u64(),
662
+ info: structs_2.Info.bcs,
663
+ config: structs_2.Config.bcs,
664
+ });
665
+ },
666
+ enumerable: false,
667
+ configurable: true
668
+ });
669
+ NewPortfolioVaultEvent.fromFields = function (fields) {
670
+ return NewPortfolioVaultEvent.reified().new({
671
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
672
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
673
+ info: (0, reified_1.decodeFromFields)(structs_2.Info.reified(), fields.info),
674
+ config: (0, reified_1.decodeFromFields)(structs_2.Config.reified(), fields.config),
675
+ });
676
+ };
677
+ NewPortfolioVaultEvent.fromFieldsWithTypes = function (item) {
678
+ if (!isNewPortfolioVaultEvent(item.type)) {
679
+ throw new Error("not a NewPortfolioVaultEvent type");
680
+ }
681
+ return NewPortfolioVaultEvent.reified().new({
682
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
683
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
684
+ info: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Info.reified(), item.fields.info),
685
+ config: (0, reified_1.decodeFromFieldsWithTypes)(structs_2.Config.reified(), item.fields.config),
686
+ });
687
+ };
688
+ NewPortfolioVaultEvent.fromBcs = function (data) {
689
+ return NewPortfolioVaultEvent.fromFields(NewPortfolioVaultEvent.bcs.parse(data));
690
+ };
691
+ NewPortfolioVaultEvent.prototype.toJSONField = function () {
692
+ return {
693
+ signer: this.signer,
694
+ index: this.index.toString(),
695
+ info: this.info.toJSONField(),
696
+ config: this.config.toJSONField(),
697
+ };
698
+ };
699
+ NewPortfolioVaultEvent.prototype.toJSON = function () {
700
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
701
+ };
702
+ NewPortfolioVaultEvent.fromJSONField = function (field) {
703
+ return NewPortfolioVaultEvent.reified().new({
704
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
705
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
706
+ info: (0, reified_1.decodeFromJSONField)(structs_2.Info.reified(), field.info),
707
+ config: (0, reified_1.decodeFromJSONField)(structs_2.Config.reified(), field.config),
708
+ });
709
+ };
710
+ NewPortfolioVaultEvent.fromJSON = function (json) {
711
+ if (json.$typeName !== NewPortfolioVaultEvent.$typeName) {
712
+ throw new Error("not a WithTwoGenerics json object");
713
+ }
714
+ return NewPortfolioVaultEvent.fromJSONField(json);
715
+ };
716
+ NewPortfolioVaultEvent.fromSuiParsedData = function (content) {
717
+ if (content.dataType !== "moveObject") {
718
+ throw new Error("not an object");
719
+ }
720
+ if (!isNewPortfolioVaultEvent(content.type)) {
721
+ throw new Error("object at ".concat(content.fields.id, " is not a NewPortfolioVaultEvent object"));
722
+ }
723
+ return NewPortfolioVaultEvent.fromFieldsWithTypes(content);
724
+ };
725
+ NewPortfolioVaultEvent.fromSuiObjectData = function (data) {
726
+ if (data.bcs) {
727
+ if (data.bcs.dataType !== "moveObject" || !isNewPortfolioVaultEvent(data.bcs.type)) {
728
+ throw new Error("object at is not a NewPortfolioVaultEvent object");
729
+ }
730
+ return NewPortfolioVaultEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
731
+ }
732
+ if (data.content) {
733
+ return NewPortfolioVaultEvent.fromSuiParsedData(data.content);
734
+ }
735
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
736
+ };
737
+ NewPortfolioVaultEvent.fetch = function (client, id) {
738
+ return __awaiter(this, void 0, void 0, function () {
739
+ var res;
740
+ var _a, _b;
741
+ return __generator(this, function (_c) {
742
+ switch (_c.label) {
743
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
744
+ case 1:
745
+ res = _c.sent();
746
+ if (res.error) {
747
+ throw new Error("error fetching NewPortfolioVaultEvent object at id ".concat(id, ": ").concat(res.error.code));
748
+ }
749
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isNewPortfolioVaultEvent(res.data.bcs.type)) {
750
+ throw new Error("object at id ".concat(id, " is not a NewPortfolioVaultEvent object"));
751
+ }
752
+ return [2 /*return*/, NewPortfolioVaultEvent.fromSuiObjectData(res.data)];
753
+ }
754
+ });
755
+ });
756
+ };
757
+ NewPortfolioVaultEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::NewPortfolioVaultEvent");
758
+ NewPortfolioVaultEvent.$numTypeParams = 0;
759
+ NewPortfolioVaultEvent.$isPhantom = [];
760
+ return NewPortfolioVaultEvent;
761
+ }());
762
+ exports.NewPortfolioVaultEvent = NewPortfolioVaultEvent;
763
+ /* ============================== RemoveAuthorizedUserEvent =============================== */
764
+ function isRemoveAuthorizedUserEvent(type) {
765
+ type = (0, util_1.compressSuiType)(type);
766
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::RemoveAuthorizedUserEvent");
767
+ }
768
+ var RemoveAuthorizedUserEvent = /** @class */ (function () {
769
+ function RemoveAuthorizedUserEvent(typeArgs, fields) {
770
+ this.__StructClass = true;
771
+ this.$typeName = RemoveAuthorizedUserEvent.$typeName;
772
+ this.$isPhantom = RemoveAuthorizedUserEvent.$isPhantom;
773
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveAuthorizedUserEvent.$typeName], __read(typeArgs), false));
774
+ this.$typeArgs = typeArgs;
775
+ this.signer = fields.signer;
776
+ this.users = fields.users;
777
+ }
778
+ RemoveAuthorizedUserEvent.reified = function () {
779
+ var _this = this;
780
+ return {
781
+ typeName: RemoveAuthorizedUserEvent.$typeName,
782
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveAuthorizedUserEvent.$typeName], [], false)),
783
+ typeArgs: [],
784
+ isPhantom: RemoveAuthorizedUserEvent.$isPhantom,
785
+ reifiedTypeArgs: [],
786
+ fromFields: function (fields) { return RemoveAuthorizedUserEvent.fromFields(fields); },
787
+ fromFieldsWithTypes: function (item) { return RemoveAuthorizedUserEvent.fromFieldsWithTypes(item); },
788
+ fromBcs: function (data) { return RemoveAuthorizedUserEvent.fromBcs(data); },
789
+ bcs: RemoveAuthorizedUserEvent.bcs,
790
+ fromJSONField: function (field) { return RemoveAuthorizedUserEvent.fromJSONField(field); },
791
+ fromJSON: function (json) { return RemoveAuthorizedUserEvent.fromJSON(json); },
792
+ fromSuiParsedData: function (content) { return RemoveAuthorizedUserEvent.fromSuiParsedData(content); },
793
+ fromSuiObjectData: function (content) { return RemoveAuthorizedUserEvent.fromSuiObjectData(content); },
794
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
795
+ return [2 /*return*/, RemoveAuthorizedUserEvent.fetch(client, id)];
796
+ }); }); },
797
+ new: function (fields) {
798
+ return new RemoveAuthorizedUserEvent([], fields);
799
+ },
800
+ kind: "StructClassReified",
801
+ };
802
+ };
803
+ Object.defineProperty(RemoveAuthorizedUserEvent, "r", {
804
+ get: function () {
805
+ return RemoveAuthorizedUserEvent.reified();
806
+ },
807
+ enumerable: false,
808
+ configurable: true
809
+ });
810
+ RemoveAuthorizedUserEvent.phantom = function () {
811
+ return (0, reified_1.phantom)(RemoveAuthorizedUserEvent.reified());
812
+ };
813
+ Object.defineProperty(RemoveAuthorizedUserEvent, "p", {
814
+ get: function () {
815
+ return RemoveAuthorizedUserEvent.phantom();
816
+ },
817
+ enumerable: false,
818
+ configurable: true
819
+ });
820
+ Object.defineProperty(RemoveAuthorizedUserEvent, "bcs", {
821
+ get: function () {
822
+ return bcs_1.bcs.struct("RemoveAuthorizedUserEvent", {
823
+ signer: bcs_1.bcs.bytes(32).transform({
824
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
825
+ output: function (val) { return (0, utils_1.toHEX)(val); },
826
+ }),
827
+ users: bcs_1.bcs.vector(bcs_1.bcs.bytes(32).transform({
828
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
829
+ output: function (val) { return (0, utils_1.toHEX)(val); },
830
+ })),
831
+ });
832
+ },
833
+ enumerable: false,
834
+ configurable: true
835
+ });
836
+ RemoveAuthorizedUserEvent.fromFields = function (fields) {
837
+ return RemoveAuthorizedUserEvent.reified().new({
838
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
839
+ users: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.users),
840
+ });
841
+ };
842
+ RemoveAuthorizedUserEvent.fromFieldsWithTypes = function (item) {
843
+ if (!isRemoveAuthorizedUserEvent(item.type)) {
844
+ throw new Error("not a RemoveAuthorizedUserEvent type");
845
+ }
846
+ return RemoveAuthorizedUserEvent.reified().new({
847
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
848
+ users: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.users),
849
+ });
850
+ };
851
+ RemoveAuthorizedUserEvent.fromBcs = function (data) {
852
+ return RemoveAuthorizedUserEvent.fromFields(RemoveAuthorizedUserEvent.bcs.parse(data));
853
+ };
854
+ RemoveAuthorizedUserEvent.prototype.toJSONField = function () {
855
+ return {
856
+ signer: this.signer,
857
+ users: (0, reified_1.fieldToJSON)("vector<address>", this.users),
858
+ };
859
+ };
860
+ RemoveAuthorizedUserEvent.prototype.toJSON = function () {
861
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
862
+ };
863
+ RemoveAuthorizedUserEvent.fromJSONField = function (field) {
864
+ return RemoveAuthorizedUserEvent.reified().new({
865
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
866
+ users: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.users),
867
+ });
868
+ };
869
+ RemoveAuthorizedUserEvent.fromJSON = function (json) {
870
+ if (json.$typeName !== RemoveAuthorizedUserEvent.$typeName) {
871
+ throw new Error("not a WithTwoGenerics json object");
872
+ }
873
+ return RemoveAuthorizedUserEvent.fromJSONField(json);
874
+ };
875
+ RemoveAuthorizedUserEvent.fromSuiParsedData = function (content) {
876
+ if (content.dataType !== "moveObject") {
877
+ throw new Error("not an object");
878
+ }
879
+ if (!isRemoveAuthorizedUserEvent(content.type)) {
880
+ throw new Error("object at ".concat(content.fields.id, " is not a RemoveAuthorizedUserEvent object"));
881
+ }
882
+ return RemoveAuthorizedUserEvent.fromFieldsWithTypes(content);
883
+ };
884
+ RemoveAuthorizedUserEvent.fromSuiObjectData = function (data) {
885
+ if (data.bcs) {
886
+ if (data.bcs.dataType !== "moveObject" || !isRemoveAuthorizedUserEvent(data.bcs.type)) {
887
+ throw new Error("object at is not a RemoveAuthorizedUserEvent object");
888
+ }
889
+ return RemoveAuthorizedUserEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
890
+ }
891
+ if (data.content) {
892
+ return RemoveAuthorizedUserEvent.fromSuiParsedData(data.content);
893
+ }
894
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
895
+ };
896
+ RemoveAuthorizedUserEvent.fetch = function (client, id) {
897
+ return __awaiter(this, void 0, void 0, function () {
898
+ var res;
899
+ var _a, _b;
900
+ return __generator(this, function (_c) {
901
+ switch (_c.label) {
902
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
903
+ case 1:
904
+ res = _c.sent();
905
+ if (res.error) {
906
+ throw new Error("error fetching RemoveAuthorizedUserEvent object at id ".concat(id, ": ").concat(res.error.code));
907
+ }
908
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveAuthorizedUserEvent(res.data.bcs.type)) {
909
+ throw new Error("object at id ".concat(id, " is not a RemoveAuthorizedUserEvent object"));
910
+ }
911
+ return [2 /*return*/, RemoveAuthorizedUserEvent.fromSuiObjectData(res.data)];
912
+ }
913
+ });
914
+ });
915
+ };
916
+ RemoveAuthorizedUserEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::RemoveAuthorizedUserEvent");
917
+ RemoveAuthorizedUserEvent.$numTypeParams = 0;
918
+ RemoveAuthorizedUserEvent.$isPhantom = [];
919
+ return RemoveAuthorizedUserEvent;
920
+ }());
921
+ exports.RemoveAuthorizedUserEvent = RemoveAuthorizedUserEvent;
922
+ /* ============================== RemoveWitnessEvent =============================== */
923
+ function isRemoveWitnessEvent(type) {
924
+ type = (0, util_1.compressSuiType)(type);
925
+ return type === "".concat(index_1.PKG_V33, "::tds_registry_authorized_entry::RemoveWitnessEvent");
926
+ }
927
+ var RemoveWitnessEvent = /** @class */ (function () {
928
+ function RemoveWitnessEvent(typeArgs, fields) {
929
+ this.__StructClass = true;
930
+ this.$typeName = RemoveWitnessEvent.$typeName;
931
+ this.$isPhantom = RemoveWitnessEvent.$isPhantom;
932
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([RemoveWitnessEvent.$typeName], __read(typeArgs), false));
933
+ this.$typeArgs = typeArgs;
934
+ this.signer = fields.signer;
935
+ this.witness = fields.witness;
936
+ }
937
+ RemoveWitnessEvent.reified = function () {
938
+ var _this = this;
939
+ return {
940
+ typeName: RemoveWitnessEvent.$typeName,
941
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([RemoveWitnessEvent.$typeName], [], false)),
942
+ typeArgs: [],
943
+ isPhantom: RemoveWitnessEvent.$isPhantom,
944
+ reifiedTypeArgs: [],
945
+ fromFields: function (fields) { return RemoveWitnessEvent.fromFields(fields); },
946
+ fromFieldsWithTypes: function (item) { return RemoveWitnessEvent.fromFieldsWithTypes(item); },
947
+ fromBcs: function (data) { return RemoveWitnessEvent.fromBcs(data); },
948
+ bcs: RemoveWitnessEvent.bcs,
949
+ fromJSONField: function (field) { return RemoveWitnessEvent.fromJSONField(field); },
950
+ fromJSON: function (json) { return RemoveWitnessEvent.fromJSON(json); },
951
+ fromSuiParsedData: function (content) { return RemoveWitnessEvent.fromSuiParsedData(content); },
952
+ fromSuiObjectData: function (content) { return RemoveWitnessEvent.fromSuiObjectData(content); },
953
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
954
+ return [2 /*return*/, RemoveWitnessEvent.fetch(client, id)];
955
+ }); }); },
956
+ new: function (fields) {
957
+ return new RemoveWitnessEvent([], fields);
958
+ },
959
+ kind: "StructClassReified",
960
+ };
961
+ };
962
+ Object.defineProperty(RemoveWitnessEvent, "r", {
963
+ get: function () {
964
+ return RemoveWitnessEvent.reified();
965
+ },
966
+ enumerable: false,
967
+ configurable: true
968
+ });
969
+ RemoveWitnessEvent.phantom = function () {
970
+ return (0, reified_1.phantom)(RemoveWitnessEvent.reified());
971
+ };
972
+ Object.defineProperty(RemoveWitnessEvent, "p", {
973
+ get: function () {
974
+ return RemoveWitnessEvent.phantom();
975
+ },
976
+ enumerable: false,
977
+ configurable: true
978
+ });
979
+ Object.defineProperty(RemoveWitnessEvent, "bcs", {
980
+ get: function () {
981
+ return bcs_1.bcs.struct("RemoveWitnessEvent", {
982
+ signer: bcs_1.bcs.bytes(32).transform({
983
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
984
+ output: function (val) { return (0, utils_1.toHEX)(val); },
985
+ }),
986
+ witness: structs_1.TypeName.bcs,
987
+ });
988
+ },
989
+ enumerable: false,
990
+ configurable: true
991
+ });
992
+ RemoveWitnessEvent.fromFields = function (fields) {
993
+ return RemoveWitnessEvent.reified().new({
994
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
995
+ witness: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.witness),
996
+ });
997
+ };
998
+ RemoveWitnessEvent.fromFieldsWithTypes = function (item) {
999
+ if (!isRemoveWitnessEvent(item.type)) {
1000
+ throw new Error("not a RemoveWitnessEvent type");
1001
+ }
1002
+ return RemoveWitnessEvent.reified().new({
1003
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1004
+ witness: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.witness),
1005
+ });
1006
+ };
1007
+ RemoveWitnessEvent.fromBcs = function (data) {
1008
+ return RemoveWitnessEvent.fromFields(RemoveWitnessEvent.bcs.parse(data));
1009
+ };
1010
+ RemoveWitnessEvent.prototype.toJSONField = function () {
1011
+ return {
1012
+ signer: this.signer,
1013
+ witness: this.witness.toJSONField(),
1014
+ };
1015
+ };
1016
+ RemoveWitnessEvent.prototype.toJSON = function () {
1017
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1018
+ };
1019
+ RemoveWitnessEvent.fromJSONField = function (field) {
1020
+ return RemoveWitnessEvent.reified().new({
1021
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1022
+ witness: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.witness),
1023
+ });
1024
+ };
1025
+ RemoveWitnessEvent.fromJSON = function (json) {
1026
+ if (json.$typeName !== RemoveWitnessEvent.$typeName) {
1027
+ throw new Error("not a WithTwoGenerics json object");
1028
+ }
1029
+ return RemoveWitnessEvent.fromJSONField(json);
1030
+ };
1031
+ RemoveWitnessEvent.fromSuiParsedData = function (content) {
1032
+ if (content.dataType !== "moveObject") {
1033
+ throw new Error("not an object");
1034
+ }
1035
+ if (!isRemoveWitnessEvent(content.type)) {
1036
+ throw new Error("object at ".concat(content.fields.id, " is not a RemoveWitnessEvent object"));
1037
+ }
1038
+ return RemoveWitnessEvent.fromFieldsWithTypes(content);
1039
+ };
1040
+ RemoveWitnessEvent.fromSuiObjectData = function (data) {
1041
+ if (data.bcs) {
1042
+ if (data.bcs.dataType !== "moveObject" || !isRemoveWitnessEvent(data.bcs.type)) {
1043
+ throw new Error("object at is not a RemoveWitnessEvent object");
1044
+ }
1045
+ return RemoveWitnessEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1046
+ }
1047
+ if (data.content) {
1048
+ return RemoveWitnessEvent.fromSuiParsedData(data.content);
1049
+ }
1050
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1051
+ };
1052
+ RemoveWitnessEvent.fetch = function (client, id) {
1053
+ return __awaiter(this, void 0, void 0, function () {
1054
+ var res;
1055
+ var _a, _b;
1056
+ return __generator(this, function (_c) {
1057
+ switch (_c.label) {
1058
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1059
+ case 1:
1060
+ res = _c.sent();
1061
+ if (res.error) {
1062
+ throw new Error("error fetching RemoveWitnessEvent object at id ".concat(id, ": ").concat(res.error.code));
1063
+ }
1064
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isRemoveWitnessEvent(res.data.bcs.type)) {
1065
+ throw new Error("object at id ".concat(id, " is not a RemoveWitnessEvent object"));
1066
+ }
1067
+ return [2 /*return*/, RemoveWitnessEvent.fromSuiObjectData(res.data)];
1068
+ }
1069
+ });
1070
+ });
1071
+ };
1072
+ RemoveWitnessEvent.$typeName = "".concat(index_1.PKG_V33, "::tds_registry_authorized_entry::RemoveWitnessEvent");
1073
+ RemoveWitnessEvent.$numTypeParams = 0;
1074
+ RemoveWitnessEvent.$isPhantom = [];
1075
+ return RemoveWitnessEvent;
1076
+ }());
1077
+ exports.RemoveWitnessEvent = RemoveWitnessEvent;
1078
+ /* ============================== ResumeTransactionEvent =============================== */
1079
+ function isResumeTransactionEvent(type) {
1080
+ type = (0, util_1.compressSuiType)(type);
1081
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::ResumeTransactionEvent");
1082
+ }
1083
+ var ResumeTransactionEvent = /** @class */ (function () {
1084
+ function ResumeTransactionEvent(typeArgs, fields) {
1085
+ this.__StructClass = true;
1086
+ this.$typeName = ResumeTransactionEvent.$typeName;
1087
+ this.$isPhantom = ResumeTransactionEvent.$isPhantom;
1088
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([ResumeTransactionEvent.$typeName], __read(typeArgs), false));
1089
+ this.$typeArgs = typeArgs;
1090
+ this.signer = fields.signer;
1091
+ }
1092
+ ResumeTransactionEvent.reified = function () {
1093
+ var _this = this;
1094
+ return {
1095
+ typeName: ResumeTransactionEvent.$typeName,
1096
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([ResumeTransactionEvent.$typeName], [], false)),
1097
+ typeArgs: [],
1098
+ isPhantom: ResumeTransactionEvent.$isPhantom,
1099
+ reifiedTypeArgs: [],
1100
+ fromFields: function (fields) { return ResumeTransactionEvent.fromFields(fields); },
1101
+ fromFieldsWithTypes: function (item) { return ResumeTransactionEvent.fromFieldsWithTypes(item); },
1102
+ fromBcs: function (data) { return ResumeTransactionEvent.fromBcs(data); },
1103
+ bcs: ResumeTransactionEvent.bcs,
1104
+ fromJSONField: function (field) { return ResumeTransactionEvent.fromJSONField(field); },
1105
+ fromJSON: function (json) { return ResumeTransactionEvent.fromJSON(json); },
1106
+ fromSuiParsedData: function (content) { return ResumeTransactionEvent.fromSuiParsedData(content); },
1107
+ fromSuiObjectData: function (content) { return ResumeTransactionEvent.fromSuiObjectData(content); },
1108
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1109
+ return [2 /*return*/, ResumeTransactionEvent.fetch(client, id)];
1110
+ }); }); },
1111
+ new: function (fields) {
1112
+ return new ResumeTransactionEvent([], fields);
1113
+ },
1114
+ kind: "StructClassReified",
1115
+ };
1116
+ };
1117
+ Object.defineProperty(ResumeTransactionEvent, "r", {
1118
+ get: function () {
1119
+ return ResumeTransactionEvent.reified();
1120
+ },
1121
+ enumerable: false,
1122
+ configurable: true
1123
+ });
1124
+ ResumeTransactionEvent.phantom = function () {
1125
+ return (0, reified_1.phantom)(ResumeTransactionEvent.reified());
1126
+ };
1127
+ Object.defineProperty(ResumeTransactionEvent, "p", {
1128
+ get: function () {
1129
+ return ResumeTransactionEvent.phantom();
1130
+ },
1131
+ enumerable: false,
1132
+ configurable: true
1133
+ });
1134
+ Object.defineProperty(ResumeTransactionEvent, "bcs", {
1135
+ get: function () {
1136
+ return bcs_1.bcs.struct("ResumeTransactionEvent", {
1137
+ signer: bcs_1.bcs.bytes(32).transform({
1138
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1139
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1140
+ }),
1141
+ });
1142
+ },
1143
+ enumerable: false,
1144
+ configurable: true
1145
+ });
1146
+ ResumeTransactionEvent.fromFields = function (fields) {
1147
+ return ResumeTransactionEvent.reified().new({
1148
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1149
+ });
1150
+ };
1151
+ ResumeTransactionEvent.fromFieldsWithTypes = function (item) {
1152
+ if (!isResumeTransactionEvent(item.type)) {
1153
+ throw new Error("not a ResumeTransactionEvent type");
1154
+ }
1155
+ return ResumeTransactionEvent.reified().new({
1156
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1157
+ });
1158
+ };
1159
+ ResumeTransactionEvent.fromBcs = function (data) {
1160
+ return ResumeTransactionEvent.fromFields(ResumeTransactionEvent.bcs.parse(data));
1161
+ };
1162
+ ResumeTransactionEvent.prototype.toJSONField = function () {
1163
+ return {
1164
+ signer: this.signer,
1165
+ };
1166
+ };
1167
+ ResumeTransactionEvent.prototype.toJSON = function () {
1168
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1169
+ };
1170
+ ResumeTransactionEvent.fromJSONField = function (field) {
1171
+ return ResumeTransactionEvent.reified().new({
1172
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1173
+ });
1174
+ };
1175
+ ResumeTransactionEvent.fromJSON = function (json) {
1176
+ if (json.$typeName !== ResumeTransactionEvent.$typeName) {
1177
+ throw new Error("not a WithTwoGenerics json object");
1178
+ }
1179
+ return ResumeTransactionEvent.fromJSONField(json);
1180
+ };
1181
+ ResumeTransactionEvent.fromSuiParsedData = function (content) {
1182
+ if (content.dataType !== "moveObject") {
1183
+ throw new Error("not an object");
1184
+ }
1185
+ if (!isResumeTransactionEvent(content.type)) {
1186
+ throw new Error("object at ".concat(content.fields.id, " is not a ResumeTransactionEvent object"));
1187
+ }
1188
+ return ResumeTransactionEvent.fromFieldsWithTypes(content);
1189
+ };
1190
+ ResumeTransactionEvent.fromSuiObjectData = function (data) {
1191
+ if (data.bcs) {
1192
+ if (data.bcs.dataType !== "moveObject" || !isResumeTransactionEvent(data.bcs.type)) {
1193
+ throw new Error("object at is not a ResumeTransactionEvent object");
1194
+ }
1195
+ return ResumeTransactionEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1196
+ }
1197
+ if (data.content) {
1198
+ return ResumeTransactionEvent.fromSuiParsedData(data.content);
1199
+ }
1200
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1201
+ };
1202
+ ResumeTransactionEvent.fetch = function (client, id) {
1203
+ return __awaiter(this, void 0, void 0, function () {
1204
+ var res;
1205
+ var _a, _b;
1206
+ return __generator(this, function (_c) {
1207
+ switch (_c.label) {
1208
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1209
+ case 1:
1210
+ res = _c.sent();
1211
+ if (res.error) {
1212
+ throw new Error("error fetching ResumeTransactionEvent object at id ".concat(id, ": ").concat(res.error.code));
1213
+ }
1214
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isResumeTransactionEvent(res.data.bcs.type)) {
1215
+ throw new Error("object at id ".concat(id, " is not a ResumeTransactionEvent object"));
1216
+ }
1217
+ return [2 /*return*/, ResumeTransactionEvent.fromSuiObjectData(res.data)];
1218
+ }
1219
+ });
1220
+ });
1221
+ };
1222
+ ResumeTransactionEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::ResumeTransactionEvent");
1223
+ ResumeTransactionEvent.$numTypeParams = 0;
1224
+ ResumeTransactionEvent.$isPhantom = [];
1225
+ return ResumeTransactionEvent;
1226
+ }());
1227
+ exports.ResumeTransactionEvent = ResumeTransactionEvent;
1228
+ /* ============================== SetAvailableIncentiveAmountEvent =============================== */
1229
+ function isSetAvailableIncentiveAmountEvent(type) {
1230
+ type = (0, util_1.compressSuiType)(type);
1231
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::SetAvailableIncentiveAmountEvent");
1232
+ }
1233
+ var SetAvailableIncentiveAmountEvent = /** @class */ (function () {
1234
+ function SetAvailableIncentiveAmountEvent(typeArgs, fields) {
1235
+ this.__StructClass = true;
1236
+ this.$typeName = SetAvailableIncentiveAmountEvent.$typeName;
1237
+ this.$isPhantom = SetAvailableIncentiveAmountEvent.$isPhantom;
1238
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SetAvailableIncentiveAmountEvent.$typeName], __read(typeArgs), false));
1239
+ this.$typeArgs = typeArgs;
1240
+ this.signer = fields.signer;
1241
+ this.index = fields.index;
1242
+ this.prevAmount = fields.prevAmount;
1243
+ this.amount = fields.amount;
1244
+ }
1245
+ SetAvailableIncentiveAmountEvent.reified = function () {
1246
+ var _this = this;
1247
+ return {
1248
+ typeName: SetAvailableIncentiveAmountEvent.$typeName,
1249
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SetAvailableIncentiveAmountEvent.$typeName], [], false)),
1250
+ typeArgs: [],
1251
+ isPhantom: SetAvailableIncentiveAmountEvent.$isPhantom,
1252
+ reifiedTypeArgs: [],
1253
+ fromFields: function (fields) { return SetAvailableIncentiveAmountEvent.fromFields(fields); },
1254
+ fromFieldsWithTypes: function (item) { return SetAvailableIncentiveAmountEvent.fromFieldsWithTypes(item); },
1255
+ fromBcs: function (data) { return SetAvailableIncentiveAmountEvent.fromBcs(data); },
1256
+ bcs: SetAvailableIncentiveAmountEvent.bcs,
1257
+ fromJSONField: function (field) { return SetAvailableIncentiveAmountEvent.fromJSONField(field); },
1258
+ fromJSON: function (json) { return SetAvailableIncentiveAmountEvent.fromJSON(json); },
1259
+ fromSuiParsedData: function (content) { return SetAvailableIncentiveAmountEvent.fromSuiParsedData(content); },
1260
+ fromSuiObjectData: function (content) { return SetAvailableIncentiveAmountEvent.fromSuiObjectData(content); },
1261
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1262
+ return [2 /*return*/, SetAvailableIncentiveAmountEvent.fetch(client, id)];
1263
+ }); }); },
1264
+ new: function (fields) {
1265
+ return new SetAvailableIncentiveAmountEvent([], fields);
1266
+ },
1267
+ kind: "StructClassReified",
1268
+ };
1269
+ };
1270
+ Object.defineProperty(SetAvailableIncentiveAmountEvent, "r", {
1271
+ get: function () {
1272
+ return SetAvailableIncentiveAmountEvent.reified();
1273
+ },
1274
+ enumerable: false,
1275
+ configurable: true
1276
+ });
1277
+ SetAvailableIncentiveAmountEvent.phantom = function () {
1278
+ return (0, reified_1.phantom)(SetAvailableIncentiveAmountEvent.reified());
1279
+ };
1280
+ Object.defineProperty(SetAvailableIncentiveAmountEvent, "p", {
1281
+ get: function () {
1282
+ return SetAvailableIncentiveAmountEvent.phantom();
1283
+ },
1284
+ enumerable: false,
1285
+ configurable: true
1286
+ });
1287
+ Object.defineProperty(SetAvailableIncentiveAmountEvent, "bcs", {
1288
+ get: function () {
1289
+ return bcs_1.bcs.struct("SetAvailableIncentiveAmountEvent", {
1290
+ signer: bcs_1.bcs.bytes(32).transform({
1291
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1292
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1293
+ }),
1294
+ index: bcs_1.bcs.u64(),
1295
+ prev_amount: bcs_1.bcs.u64(),
1296
+ amount: bcs_1.bcs.u64(),
1297
+ });
1298
+ },
1299
+ enumerable: false,
1300
+ configurable: true
1301
+ });
1302
+ SetAvailableIncentiveAmountEvent.fromFields = function (fields) {
1303
+ return SetAvailableIncentiveAmountEvent.reified().new({
1304
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1305
+ index: (0, reified_1.decodeFromFields)("u64", fields.index),
1306
+ prevAmount: (0, reified_1.decodeFromFields)("u64", fields.prev_amount),
1307
+ amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
1308
+ });
1309
+ };
1310
+ SetAvailableIncentiveAmountEvent.fromFieldsWithTypes = function (item) {
1311
+ if (!isSetAvailableIncentiveAmountEvent(item.type)) {
1312
+ throw new Error("not a SetAvailableIncentiveAmountEvent type");
1313
+ }
1314
+ return SetAvailableIncentiveAmountEvent.reified().new({
1315
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1316
+ index: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.index),
1317
+ prevAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_amount),
1318
+ amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
1319
+ });
1320
+ };
1321
+ SetAvailableIncentiveAmountEvent.fromBcs = function (data) {
1322
+ return SetAvailableIncentiveAmountEvent.fromFields(SetAvailableIncentiveAmountEvent.bcs.parse(data));
1323
+ };
1324
+ SetAvailableIncentiveAmountEvent.prototype.toJSONField = function () {
1325
+ return {
1326
+ signer: this.signer,
1327
+ index: this.index.toString(),
1328
+ prevAmount: this.prevAmount.toString(),
1329
+ amount: this.amount.toString(),
1330
+ };
1331
+ };
1332
+ SetAvailableIncentiveAmountEvent.prototype.toJSON = function () {
1333
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1334
+ };
1335
+ SetAvailableIncentiveAmountEvent.fromJSONField = function (field) {
1336
+ return SetAvailableIncentiveAmountEvent.reified().new({
1337
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1338
+ index: (0, reified_1.decodeFromJSONField)("u64", field.index),
1339
+ prevAmount: (0, reified_1.decodeFromJSONField)("u64", field.prevAmount),
1340
+ amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
1341
+ });
1342
+ };
1343
+ SetAvailableIncentiveAmountEvent.fromJSON = function (json) {
1344
+ if (json.$typeName !== SetAvailableIncentiveAmountEvent.$typeName) {
1345
+ throw new Error("not a WithTwoGenerics json object");
1346
+ }
1347
+ return SetAvailableIncentiveAmountEvent.fromJSONField(json);
1348
+ };
1349
+ SetAvailableIncentiveAmountEvent.fromSuiParsedData = function (content) {
1350
+ if (content.dataType !== "moveObject") {
1351
+ throw new Error("not an object");
1352
+ }
1353
+ if (!isSetAvailableIncentiveAmountEvent(content.type)) {
1354
+ throw new Error("object at ".concat(content.fields.id, " is not a SetAvailableIncentiveAmountEvent object"));
1355
+ }
1356
+ return SetAvailableIncentiveAmountEvent.fromFieldsWithTypes(content);
1357
+ };
1358
+ SetAvailableIncentiveAmountEvent.fromSuiObjectData = function (data) {
1359
+ if (data.bcs) {
1360
+ if (data.bcs.dataType !== "moveObject" || !isSetAvailableIncentiveAmountEvent(data.bcs.type)) {
1361
+ throw new Error("object at is not a SetAvailableIncentiveAmountEvent object");
1362
+ }
1363
+ return SetAvailableIncentiveAmountEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1364
+ }
1365
+ if (data.content) {
1366
+ return SetAvailableIncentiveAmountEvent.fromSuiParsedData(data.content);
1367
+ }
1368
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1369
+ };
1370
+ SetAvailableIncentiveAmountEvent.fetch = function (client, id) {
1371
+ return __awaiter(this, void 0, void 0, function () {
1372
+ var res;
1373
+ var _a, _b;
1374
+ return __generator(this, function (_c) {
1375
+ switch (_c.label) {
1376
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1377
+ case 1:
1378
+ res = _c.sent();
1379
+ if (res.error) {
1380
+ throw new Error("error fetching SetAvailableIncentiveAmountEvent object at id ".concat(id, ": ").concat(res.error.code));
1381
+ }
1382
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSetAvailableIncentiveAmountEvent(res.data.bcs.type)) {
1383
+ throw new Error("object at id ".concat(id, " is not a SetAvailableIncentiveAmountEvent object"));
1384
+ }
1385
+ return [2 /*return*/, SetAvailableIncentiveAmountEvent.fromSuiObjectData(res.data)];
1386
+ }
1387
+ });
1388
+ });
1389
+ };
1390
+ SetAvailableIncentiveAmountEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::SetAvailableIncentiveAmountEvent");
1391
+ SetAvailableIncentiveAmountEvent.$numTypeParams = 0;
1392
+ SetAvailableIncentiveAmountEvent.$isPhantom = [];
1393
+ return SetAvailableIncentiveAmountEvent;
1394
+ }());
1395
+ exports.SetAvailableIncentiveAmountEvent = SetAvailableIncentiveAmountEvent;
1396
+ /* ============================== SuspendTransactionEvent =============================== */
1397
+ function isSuspendTransactionEvent(type) {
1398
+ type = (0, util_1.compressSuiType)(type);
1399
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::SuspendTransactionEvent");
1400
+ }
1401
+ var SuspendTransactionEvent = /** @class */ (function () {
1402
+ function SuspendTransactionEvent(typeArgs, fields) {
1403
+ this.__StructClass = true;
1404
+ this.$typeName = SuspendTransactionEvent.$typeName;
1405
+ this.$isPhantom = SuspendTransactionEvent.$isPhantom;
1406
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([SuspendTransactionEvent.$typeName], __read(typeArgs), false));
1407
+ this.$typeArgs = typeArgs;
1408
+ this.signer = fields.signer;
1409
+ }
1410
+ SuspendTransactionEvent.reified = function () {
1411
+ var _this = this;
1412
+ return {
1413
+ typeName: SuspendTransactionEvent.$typeName,
1414
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([SuspendTransactionEvent.$typeName], [], false)),
1415
+ typeArgs: [],
1416
+ isPhantom: SuspendTransactionEvent.$isPhantom,
1417
+ reifiedTypeArgs: [],
1418
+ fromFields: function (fields) { return SuspendTransactionEvent.fromFields(fields); },
1419
+ fromFieldsWithTypes: function (item) { return SuspendTransactionEvent.fromFieldsWithTypes(item); },
1420
+ fromBcs: function (data) { return SuspendTransactionEvent.fromBcs(data); },
1421
+ bcs: SuspendTransactionEvent.bcs,
1422
+ fromJSONField: function (field) { return SuspendTransactionEvent.fromJSONField(field); },
1423
+ fromJSON: function (json) { return SuspendTransactionEvent.fromJSON(json); },
1424
+ fromSuiParsedData: function (content) { return SuspendTransactionEvent.fromSuiParsedData(content); },
1425
+ fromSuiObjectData: function (content) { return SuspendTransactionEvent.fromSuiObjectData(content); },
1426
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1427
+ return [2 /*return*/, SuspendTransactionEvent.fetch(client, id)];
1428
+ }); }); },
1429
+ new: function (fields) {
1430
+ return new SuspendTransactionEvent([], fields);
1431
+ },
1432
+ kind: "StructClassReified",
1433
+ };
1434
+ };
1435
+ Object.defineProperty(SuspendTransactionEvent, "r", {
1436
+ get: function () {
1437
+ return SuspendTransactionEvent.reified();
1438
+ },
1439
+ enumerable: false,
1440
+ configurable: true
1441
+ });
1442
+ SuspendTransactionEvent.phantom = function () {
1443
+ return (0, reified_1.phantom)(SuspendTransactionEvent.reified());
1444
+ };
1445
+ Object.defineProperty(SuspendTransactionEvent, "p", {
1446
+ get: function () {
1447
+ return SuspendTransactionEvent.phantom();
1448
+ },
1449
+ enumerable: false,
1450
+ configurable: true
1451
+ });
1452
+ Object.defineProperty(SuspendTransactionEvent, "bcs", {
1453
+ get: function () {
1454
+ return bcs_1.bcs.struct("SuspendTransactionEvent", {
1455
+ signer: bcs_1.bcs.bytes(32).transform({
1456
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1457
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1458
+ }),
1459
+ });
1460
+ },
1461
+ enumerable: false,
1462
+ configurable: true
1463
+ });
1464
+ SuspendTransactionEvent.fromFields = function (fields) {
1465
+ return SuspendTransactionEvent.reified().new({
1466
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1467
+ });
1468
+ };
1469
+ SuspendTransactionEvent.fromFieldsWithTypes = function (item) {
1470
+ if (!isSuspendTransactionEvent(item.type)) {
1471
+ throw new Error("not a SuspendTransactionEvent type");
1472
+ }
1473
+ return SuspendTransactionEvent.reified().new({
1474
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1475
+ });
1476
+ };
1477
+ SuspendTransactionEvent.fromBcs = function (data) {
1478
+ return SuspendTransactionEvent.fromFields(SuspendTransactionEvent.bcs.parse(data));
1479
+ };
1480
+ SuspendTransactionEvent.prototype.toJSONField = function () {
1481
+ return {
1482
+ signer: this.signer,
1483
+ };
1484
+ };
1485
+ SuspendTransactionEvent.prototype.toJSON = function () {
1486
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1487
+ };
1488
+ SuspendTransactionEvent.fromJSONField = function (field) {
1489
+ return SuspendTransactionEvent.reified().new({
1490
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1491
+ });
1492
+ };
1493
+ SuspendTransactionEvent.fromJSON = function (json) {
1494
+ if (json.$typeName !== SuspendTransactionEvent.$typeName) {
1495
+ throw new Error("not a WithTwoGenerics json object");
1496
+ }
1497
+ return SuspendTransactionEvent.fromJSONField(json);
1498
+ };
1499
+ SuspendTransactionEvent.fromSuiParsedData = function (content) {
1500
+ if (content.dataType !== "moveObject") {
1501
+ throw new Error("not an object");
1502
+ }
1503
+ if (!isSuspendTransactionEvent(content.type)) {
1504
+ throw new Error("object at ".concat(content.fields.id, " is not a SuspendTransactionEvent object"));
1505
+ }
1506
+ return SuspendTransactionEvent.fromFieldsWithTypes(content);
1507
+ };
1508
+ SuspendTransactionEvent.fromSuiObjectData = function (data) {
1509
+ if (data.bcs) {
1510
+ if (data.bcs.dataType !== "moveObject" || !isSuspendTransactionEvent(data.bcs.type)) {
1511
+ throw new Error("object at is not a SuspendTransactionEvent object");
1512
+ }
1513
+ return SuspendTransactionEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1514
+ }
1515
+ if (data.content) {
1516
+ return SuspendTransactionEvent.fromSuiParsedData(data.content);
1517
+ }
1518
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1519
+ };
1520
+ SuspendTransactionEvent.fetch = function (client, id) {
1521
+ return __awaiter(this, void 0, void 0, function () {
1522
+ var res;
1523
+ var _a, _b;
1524
+ return __generator(this, function (_c) {
1525
+ switch (_c.label) {
1526
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1527
+ case 1:
1528
+ res = _c.sent();
1529
+ if (res.error) {
1530
+ throw new Error("error fetching SuspendTransactionEvent object at id ".concat(id, ": ").concat(res.error.code));
1531
+ }
1532
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isSuspendTransactionEvent(res.data.bcs.type)) {
1533
+ throw new Error("object at id ".concat(id, " is not a SuspendTransactionEvent object"));
1534
+ }
1535
+ return [2 /*return*/, SuspendTransactionEvent.fromSuiObjectData(res.data)];
1536
+ }
1537
+ });
1538
+ });
1539
+ };
1540
+ SuspendTransactionEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::SuspendTransactionEvent");
1541
+ SuspendTransactionEvent.$numTypeParams = 0;
1542
+ SuspendTransactionEvent.$isPhantom = [];
1543
+ return SuspendTransactionEvent;
1544
+ }());
1545
+ exports.SuspendTransactionEvent = SuspendTransactionEvent;
1546
+ /* ============================== UpgradeRegistryEvent =============================== */
1547
+ function isUpgradeRegistryEvent(type) {
1548
+ type = (0, util_1.compressSuiType)(type);
1549
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::UpgradeRegistryEvent");
1550
+ }
1551
+ var UpgradeRegistryEvent = /** @class */ (function () {
1552
+ function UpgradeRegistryEvent(typeArgs, fields) {
1553
+ this.__StructClass = true;
1554
+ this.$typeName = UpgradeRegistryEvent.$typeName;
1555
+ this.$isPhantom = UpgradeRegistryEvent.$isPhantom;
1556
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpgradeRegistryEvent.$typeName], __read(typeArgs), false));
1557
+ this.$typeArgs = typeArgs;
1558
+ this.signer = fields.signer;
1559
+ this.prevVersion = fields.prevVersion;
1560
+ this.version = fields.version;
1561
+ }
1562
+ UpgradeRegistryEvent.reified = function () {
1563
+ var _this = this;
1564
+ return {
1565
+ typeName: UpgradeRegistryEvent.$typeName,
1566
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpgradeRegistryEvent.$typeName], [], false)),
1567
+ typeArgs: [],
1568
+ isPhantom: UpgradeRegistryEvent.$isPhantom,
1569
+ reifiedTypeArgs: [],
1570
+ fromFields: function (fields) { return UpgradeRegistryEvent.fromFields(fields); },
1571
+ fromFieldsWithTypes: function (item) { return UpgradeRegistryEvent.fromFieldsWithTypes(item); },
1572
+ fromBcs: function (data) { return UpgradeRegistryEvent.fromBcs(data); },
1573
+ bcs: UpgradeRegistryEvent.bcs,
1574
+ fromJSONField: function (field) { return UpgradeRegistryEvent.fromJSONField(field); },
1575
+ fromJSON: function (json) { return UpgradeRegistryEvent.fromJSON(json); },
1576
+ fromSuiParsedData: function (content) { return UpgradeRegistryEvent.fromSuiParsedData(content); },
1577
+ fromSuiObjectData: function (content) { return UpgradeRegistryEvent.fromSuiObjectData(content); },
1578
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1579
+ return [2 /*return*/, UpgradeRegistryEvent.fetch(client, id)];
1580
+ }); }); },
1581
+ new: function (fields) {
1582
+ return new UpgradeRegistryEvent([], fields);
1583
+ },
1584
+ kind: "StructClassReified",
1585
+ };
1586
+ };
1587
+ Object.defineProperty(UpgradeRegistryEvent, "r", {
1588
+ get: function () {
1589
+ return UpgradeRegistryEvent.reified();
1590
+ },
1591
+ enumerable: false,
1592
+ configurable: true
1593
+ });
1594
+ UpgradeRegistryEvent.phantom = function () {
1595
+ return (0, reified_1.phantom)(UpgradeRegistryEvent.reified());
1596
+ };
1597
+ Object.defineProperty(UpgradeRegistryEvent, "p", {
1598
+ get: function () {
1599
+ return UpgradeRegistryEvent.phantom();
1600
+ },
1601
+ enumerable: false,
1602
+ configurable: true
1603
+ });
1604
+ Object.defineProperty(UpgradeRegistryEvent, "bcs", {
1605
+ get: function () {
1606
+ return bcs_1.bcs.struct("UpgradeRegistryEvent", {
1607
+ signer: bcs_1.bcs.bytes(32).transform({
1608
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1609
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1610
+ }),
1611
+ prev_version: bcs_1.bcs.u64(),
1612
+ version: bcs_1.bcs.u64(),
1613
+ });
1614
+ },
1615
+ enumerable: false,
1616
+ configurable: true
1617
+ });
1618
+ UpgradeRegistryEvent.fromFields = function (fields) {
1619
+ return UpgradeRegistryEvent.reified().new({
1620
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1621
+ prevVersion: (0, reified_1.decodeFromFields)("u64", fields.prev_version),
1622
+ version: (0, reified_1.decodeFromFields)("u64", fields.version),
1623
+ });
1624
+ };
1625
+ UpgradeRegistryEvent.fromFieldsWithTypes = function (item) {
1626
+ if (!isUpgradeRegistryEvent(item.type)) {
1627
+ throw new Error("not a UpgradeRegistryEvent type");
1628
+ }
1629
+ return UpgradeRegistryEvent.reified().new({
1630
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1631
+ prevVersion: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.prev_version),
1632
+ version: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.version),
1633
+ });
1634
+ };
1635
+ UpgradeRegistryEvent.fromBcs = function (data) {
1636
+ return UpgradeRegistryEvent.fromFields(UpgradeRegistryEvent.bcs.parse(data));
1637
+ };
1638
+ UpgradeRegistryEvent.prototype.toJSONField = function () {
1639
+ return {
1640
+ signer: this.signer,
1641
+ prevVersion: this.prevVersion.toString(),
1642
+ version: this.version.toString(),
1643
+ };
1644
+ };
1645
+ UpgradeRegistryEvent.prototype.toJSON = function () {
1646
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1647
+ };
1648
+ UpgradeRegistryEvent.fromJSONField = function (field) {
1649
+ return UpgradeRegistryEvent.reified().new({
1650
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1651
+ prevVersion: (0, reified_1.decodeFromJSONField)("u64", field.prevVersion),
1652
+ version: (0, reified_1.decodeFromJSONField)("u64", field.version),
1653
+ });
1654
+ };
1655
+ UpgradeRegistryEvent.fromJSON = function (json) {
1656
+ if (json.$typeName !== UpgradeRegistryEvent.$typeName) {
1657
+ throw new Error("not a WithTwoGenerics json object");
1658
+ }
1659
+ return UpgradeRegistryEvent.fromJSONField(json);
1660
+ };
1661
+ UpgradeRegistryEvent.fromSuiParsedData = function (content) {
1662
+ if (content.dataType !== "moveObject") {
1663
+ throw new Error("not an object");
1664
+ }
1665
+ if (!isUpgradeRegistryEvent(content.type)) {
1666
+ throw new Error("object at ".concat(content.fields.id, " is not a UpgradeRegistryEvent object"));
1667
+ }
1668
+ return UpgradeRegistryEvent.fromFieldsWithTypes(content);
1669
+ };
1670
+ UpgradeRegistryEvent.fromSuiObjectData = function (data) {
1671
+ if (data.bcs) {
1672
+ if (data.bcs.dataType !== "moveObject" || !isUpgradeRegistryEvent(data.bcs.type)) {
1673
+ throw new Error("object at is not a UpgradeRegistryEvent object");
1674
+ }
1675
+ return UpgradeRegistryEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1676
+ }
1677
+ if (data.content) {
1678
+ return UpgradeRegistryEvent.fromSuiParsedData(data.content);
1679
+ }
1680
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1681
+ };
1682
+ UpgradeRegistryEvent.fetch = function (client, id) {
1683
+ return __awaiter(this, void 0, void 0, function () {
1684
+ var res;
1685
+ var _a, _b;
1686
+ return __generator(this, function (_c) {
1687
+ switch (_c.label) {
1688
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1689
+ case 1:
1690
+ res = _c.sent();
1691
+ if (res.error) {
1692
+ throw new Error("error fetching UpgradeRegistryEvent object at id ".concat(id, ": ").concat(res.error.code));
1693
+ }
1694
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isUpgradeRegistryEvent(res.data.bcs.type)) {
1695
+ throw new Error("object at id ".concat(id, " is not a UpgradeRegistryEvent object"));
1696
+ }
1697
+ return [2 /*return*/, UpgradeRegistryEvent.fromSuiObjectData(res.data)];
1698
+ }
1699
+ });
1700
+ });
1701
+ };
1702
+ UpgradeRegistryEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::UpgradeRegistryEvent");
1703
+ UpgradeRegistryEvent.$numTypeParams = 0;
1704
+ UpgradeRegistryEvent.$isPhantom = [];
1705
+ return UpgradeRegistryEvent;
1706
+ }());
1707
+ exports.UpgradeRegistryEvent = UpgradeRegistryEvent;
1708
+ /* ============================== WithdrawIncentiveEvent =============================== */
1709
+ function isWithdrawIncentiveEvent(type) {
1710
+ type = (0, util_1.compressSuiType)(type);
1711
+ return type === "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::WithdrawIncentiveEvent");
1712
+ }
1713
+ var WithdrawIncentiveEvent = /** @class */ (function () {
1714
+ function WithdrawIncentiveEvent(typeArgs, fields) {
1715
+ this.__StructClass = true;
1716
+ this.$typeName = WithdrawIncentiveEvent.$typeName;
1717
+ this.$isPhantom = WithdrawIncentiveEvent.$isPhantom;
1718
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], __read(typeArgs), false));
1719
+ this.$typeArgs = typeArgs;
1720
+ this.signer = fields.signer;
1721
+ this.token = fields.token;
1722
+ this.amount = fields.amount;
1723
+ }
1724
+ WithdrawIncentiveEvent.reified = function () {
1725
+ var _this = this;
1726
+ return {
1727
+ typeName: WithdrawIncentiveEvent.$typeName,
1728
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawIncentiveEvent.$typeName], [], false)),
1729
+ typeArgs: [],
1730
+ isPhantom: WithdrawIncentiveEvent.$isPhantom,
1731
+ reifiedTypeArgs: [],
1732
+ fromFields: function (fields) { return WithdrawIncentiveEvent.fromFields(fields); },
1733
+ fromFieldsWithTypes: function (item) { return WithdrawIncentiveEvent.fromFieldsWithTypes(item); },
1734
+ fromBcs: function (data) { return WithdrawIncentiveEvent.fromBcs(data); },
1735
+ bcs: WithdrawIncentiveEvent.bcs,
1736
+ fromJSONField: function (field) { return WithdrawIncentiveEvent.fromJSONField(field); },
1737
+ fromJSON: function (json) { return WithdrawIncentiveEvent.fromJSON(json); },
1738
+ fromSuiParsedData: function (content) { return WithdrawIncentiveEvent.fromSuiParsedData(content); },
1739
+ fromSuiObjectData: function (content) { return WithdrawIncentiveEvent.fromSuiObjectData(content); },
1740
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1741
+ return [2 /*return*/, WithdrawIncentiveEvent.fetch(client, id)];
1742
+ }); }); },
1743
+ new: function (fields) {
1744
+ return new WithdrawIncentiveEvent([], fields);
1745
+ },
1746
+ kind: "StructClassReified",
1747
+ };
1748
+ };
1749
+ Object.defineProperty(WithdrawIncentiveEvent, "r", {
1750
+ get: function () {
1751
+ return WithdrawIncentiveEvent.reified();
1752
+ },
1753
+ enumerable: false,
1754
+ configurable: true
1755
+ });
1756
+ WithdrawIncentiveEvent.phantom = function () {
1757
+ return (0, reified_1.phantom)(WithdrawIncentiveEvent.reified());
1758
+ };
1759
+ Object.defineProperty(WithdrawIncentiveEvent, "p", {
1760
+ get: function () {
1761
+ return WithdrawIncentiveEvent.phantom();
1762
+ },
1763
+ enumerable: false,
1764
+ configurable: true
1765
+ });
1766
+ Object.defineProperty(WithdrawIncentiveEvent, "bcs", {
1767
+ get: function () {
1768
+ return bcs_1.bcs.struct("WithdrawIncentiveEvent", {
1769
+ signer: bcs_1.bcs.bytes(32).transform({
1770
+ input: function (val) { return (0, utils_1.fromHEX)(val); },
1771
+ output: function (val) { return (0, utils_1.toHEX)(val); },
1772
+ }),
1773
+ token: structs_1.TypeName.bcs,
1774
+ amount: bcs_1.bcs.u64(),
1775
+ });
1776
+ },
1777
+ enumerable: false,
1778
+ configurable: true
1779
+ });
1780
+ WithdrawIncentiveEvent.fromFields = function (fields) {
1781
+ return WithdrawIncentiveEvent.reified().new({
1782
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1783
+ token: (0, reified_1.decodeFromFields)(structs_1.TypeName.reified(), fields.token),
1784
+ amount: (0, reified_1.decodeFromFields)("u64", fields.amount),
1785
+ });
1786
+ };
1787
+ WithdrawIncentiveEvent.fromFieldsWithTypes = function (item) {
1788
+ if (!isWithdrawIncentiveEvent(item.type)) {
1789
+ throw new Error("not a WithdrawIncentiveEvent type");
1790
+ }
1791
+ return WithdrawIncentiveEvent.reified().new({
1792
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1793
+ token: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.TypeName.reified(), item.fields.token),
1794
+ amount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.amount),
1795
+ });
1796
+ };
1797
+ WithdrawIncentiveEvent.fromBcs = function (data) {
1798
+ return WithdrawIncentiveEvent.fromFields(WithdrawIncentiveEvent.bcs.parse(data));
1799
+ };
1800
+ WithdrawIncentiveEvent.prototype.toJSONField = function () {
1801
+ return {
1802
+ signer: this.signer,
1803
+ token: this.token.toJSONField(),
1804
+ amount: this.amount.toString(),
1805
+ };
1806
+ };
1807
+ WithdrawIncentiveEvent.prototype.toJSON = function () {
1808
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1809
+ };
1810
+ WithdrawIncentiveEvent.fromJSONField = function (field) {
1811
+ return WithdrawIncentiveEvent.reified().new({
1812
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1813
+ token: (0, reified_1.decodeFromJSONField)(structs_1.TypeName.reified(), field.token),
1814
+ amount: (0, reified_1.decodeFromJSONField)("u64", field.amount),
1815
+ });
1816
+ };
1817
+ WithdrawIncentiveEvent.fromJSON = function (json) {
1818
+ if (json.$typeName !== WithdrawIncentiveEvent.$typeName) {
1819
+ throw new Error("not a WithTwoGenerics json object");
1820
+ }
1821
+ return WithdrawIncentiveEvent.fromJSONField(json);
1822
+ };
1823
+ WithdrawIncentiveEvent.fromSuiParsedData = function (content) {
1824
+ if (content.dataType !== "moveObject") {
1825
+ throw new Error("not an object");
1826
+ }
1827
+ if (!isWithdrawIncentiveEvent(content.type)) {
1828
+ throw new Error("object at ".concat(content.fields.id, " is not a WithdrawIncentiveEvent object"));
1829
+ }
1830
+ return WithdrawIncentiveEvent.fromFieldsWithTypes(content);
1831
+ };
1832
+ WithdrawIncentiveEvent.fromSuiObjectData = function (data) {
1833
+ if (data.bcs) {
1834
+ if (data.bcs.dataType !== "moveObject" || !isWithdrawIncentiveEvent(data.bcs.type)) {
1835
+ throw new Error("object at is not a WithdrawIncentiveEvent object");
1836
+ }
1837
+ return WithdrawIncentiveEvent.fromBcs((0, utils_1.fromB64)(data.bcs.bcsBytes));
1838
+ }
1839
+ if (data.content) {
1840
+ return WithdrawIncentiveEvent.fromSuiParsedData(data.content);
1841
+ }
1842
+ throw new Error("Both `bcs` and `content` fields are missing from the data. Include `showBcs` or `showContent` in the request.");
1843
+ };
1844
+ WithdrawIncentiveEvent.fetch = function (client, id) {
1845
+ return __awaiter(this, void 0, void 0, function () {
1846
+ var res;
1847
+ var _a, _b;
1848
+ return __generator(this, function (_c) {
1849
+ switch (_c.label) {
1850
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1851
+ case 1:
1852
+ res = _c.sent();
1853
+ if (res.error) {
1854
+ throw new Error("error fetching WithdrawIncentiveEvent object at id ".concat(id, ": ").concat(res.error.code));
1855
+ }
1856
+ if (((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.bcs) === null || _b === void 0 ? void 0 : _b.dataType) !== "moveObject" || !isWithdrawIncentiveEvent(res.data.bcs.type)) {
1857
+ throw new Error("object at id ".concat(id, " is not a WithdrawIncentiveEvent object"));
1858
+ }
1859
+ return [2 /*return*/, WithdrawIncentiveEvent.fromSuiObjectData(res.data)];
1860
+ }
1861
+ });
1862
+ });
1863
+ };
1864
+ WithdrawIncentiveEvent.$typeName = "".concat(index_1.PKG_V1, "::tds_registry_authorized_entry::WithdrawIncentiveEvent");
1865
+ WithdrawIncentiveEvent.$numTypeParams = 0;
1866
+ WithdrawIncentiveEvent.$isPhantom = [];
1867
+ return WithdrawIncentiveEvent;
1868
+ }());
1869
+ exports.WithdrawIncentiveEvent = WithdrawIncentiveEvent;