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