@typus/typus-sdk 1.2.70 → 1.2.71

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 (527) hide show
  1. package/lib/config.json +4 -2
  2. package/lib/utils/_dependencies/source/0x1/ascii/structs.d.ts +82 -0
  3. package/lib/utils/_dependencies/source/0x1/ascii/structs.js +352 -0
  4. package/lib/utils/_dependencies/source/0x1/bit-vector/structs.d.ts +50 -0
  5. package/lib/utils/_dependencies/source/0x1/bit-vector/structs.js +239 -0
  6. package/lib/utils/_dependencies/source/0x1/fixed-point32/structs.d.ts +41 -0
  7. package/lib/utils/_dependencies/source/0x1/fixed-point32/structs.js +203 -0
  8. package/lib/utils/_dependencies/source/0x1/index.d.ts +2 -0
  9. package/lib/utils/_dependencies/source/0x1/index.js +5 -0
  10. package/lib/utils/_dependencies/source/0x1/init.d.ts +2 -0
  11. package/lib/utils/_dependencies/source/0x1/init.js +42 -0
  12. package/lib/utils/_dependencies/source/0x1/option/structs.d.ts +46 -0
  13. package/lib/utils/_dependencies/source/0x1/option/structs.js +233 -0
  14. package/lib/utils/_dependencies/source/0x1/string/structs.d.ts +44 -0
  15. package/lib/utils/_dependencies/source/0x1/string/structs.js +227 -0
  16. package/lib/utils/_dependencies/source/0x1/type-name/structs.d.ts +48 -0
  17. package/lib/utils/_dependencies/source/0x1/type-name/structs.js +204 -0
  18. package/lib/utils/_dependencies/source/0x123/discount-mint/structs.d.ts +552 -0
  19. package/lib/utils/_dependencies/source/0x123/discount-mint/structs.js +1068 -0
  20. package/lib/utils/_dependencies/source/0x123/index.d.ts +2 -0
  21. package/lib/utils/_dependencies/source/0x123/index.js +5 -0
  22. package/lib/utils/_dependencies/source/0x123/init.d.ts +2 -0
  23. package/lib/utils/_dependencies/source/0x123/init.js +61 -0
  24. package/lib/utils/_dependencies/source/0x123/royalty-rule/structs.d.ts +85 -0
  25. package/lib/utils/_dependencies/source/0x123/royalty-rule/structs.js +340 -0
  26. package/lib/utils/_dependencies/source/0x123/staking/structs.d.ts +433 -0
  27. package/lib/utils/_dependencies/source/0x123/staking/structs.js +784 -0
  28. package/lib/utils/_dependencies/source/0x123/table-vec/structs.d.ts +63 -0
  29. package/lib/utils/_dependencies/source/0x123/table-vec/structs.js +236 -0
  30. package/lib/utils/_dependencies/source/0x123/typus-nft/structs.d.ts +1006 -0
  31. package/lib/utils/_dependencies/source/0x123/typus-nft/structs.js +1994 -0
  32. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/index.d.ts +2 -0
  33. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/index.js +5 -0
  34. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/init.d.ts +2 -0
  35. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/init.js +38 -0
  36. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/whitelist/structs.d.ts +340 -0
  37. package/lib/utils/_dependencies/source/0x1318fdc90319ec9c24df1456d960a447521b0a658316155895014a6e39b5482f/whitelist/structs.js +1103 -0
  38. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/index.d.ts +2 -0
  39. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/index.js +5 -0
  40. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/init.d.ts +2 -0
  41. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/init.js +40 -0
  42. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-feed/structs.d.ts +47 -0
  43. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-feed/structs.js +215 -0
  44. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-update-policy/structs.d.ts +212 -0
  45. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/price-update-policy/structs.js +525 -0
  46. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/x-oracle/structs.d.ts +471 -0
  47. package/lib/utils/_dependencies/source/0x1478a432123e4b3d61878b629f2c692969fdb375644f1251cd278a4b1e7d7cd6/x-oracle/structs.js +669 -0
  48. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/airdrop/structs.d.ts +463 -0
  49. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/airdrop/structs.js +961 -0
  50. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/big-vector/structs.d.ts +137 -0
  51. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/big-vector/structs.js +401 -0
  52. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/critbit/structs.d.ts +226 -0
  53. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/critbit/structs.js +572 -0
  54. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/ecosystem/structs.d.ts +383 -0
  55. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/ecosystem/structs.js +802 -0
  56. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/index.d.ts +2 -0
  57. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/index.js +5 -0
  58. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/init.d.ts +2 -0
  59. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/init.js +72 -0
  60. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/leaderboard/structs.d.ts +591 -0
  61. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/leaderboard/structs.js +1156 -0
  62. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-object-table/structs.d.ts +152 -0
  63. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-object-table/structs.js +380 -0
  64. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-set/structs.d.ts +138 -0
  65. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/linked-set/structs.js +376 -0
  66. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/tgld/structs.d.ts +261 -0
  67. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/tgld/structs.js +653 -0
  68. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/user/structs.d.ts +194 -0
  69. package/lib/utils/_dependencies/source/0x17117e8e181c236a3d1706f8a60486676cc9a5c82dc58d132a2f8270598271d/user/structs.js +509 -0
  70. package/lib/utils/_dependencies/source/0x2/authenticator-state/structs.d.ts +442 -0
  71. package/lib/utils/_dependencies/source/0x2/authenticator-state/structs.js +807 -0
  72. package/lib/utils/_dependencies/source/0x2/bag/structs.d.ts +56 -0
  73. package/lib/utils/_dependencies/source/0x2/bag/structs.js +210 -0
  74. package/lib/utils/_dependencies/source/0x2/balance/structs.d.ts +79 -0
  75. package/lib/utils/_dependencies/source/0x2/balance/structs.js +332 -0
  76. package/lib/utils/_dependencies/source/0x2/bcs/structs.d.ts +44 -0
  77. package/lib/utils/_dependencies/source/0x2/bcs/structs.js +227 -0
  78. package/lib/utils/_dependencies/source/0x2/bls12381/structs.d.ts +155 -0
  79. package/lib/utils/_dependencies/source/0x2/bls12381/structs.js +578 -0
  80. package/lib/utils/_dependencies/source/0x2/borrow/structs.d.ts +104 -0
  81. package/lib/utils/_dependencies/source/0x2/borrow/structs.js +353 -0
  82. package/lib/utils/_dependencies/source/0x2/clock/structs.d.ts +56 -0
  83. package/lib/utils/_dependencies/source/0x2/clock/structs.js +216 -0
  84. package/lib/utils/_dependencies/source/0x2/coin/structs.d.ts +379 -0
  85. package/lib/utils/_dependencies/source/0x2/coin/structs.js +924 -0
  86. package/lib/utils/_dependencies/source/0x2/deny-list/structs.d.ts +178 -0
  87. package/lib/utils/_dependencies/source/0x2/deny-list/structs.js +386 -0
  88. package/lib/utils/_dependencies/source/0x2/display/structs.d.ts +228 -0
  89. package/lib/utils/_dependencies/source/0x2/display/structs.js +498 -0
  90. package/lib/utils/_dependencies/source/0x2/dynamic-field/structs.d.ts +63 -0
  91. package/lib/utils/_dependencies/source/0x2/dynamic-field/structs.js +226 -0
  92. package/lib/utils/_dependencies/source/0x2/dynamic-object-field/structs.d.ts +42 -0
  93. package/lib/utils/_dependencies/source/0x2/dynamic-object-field/structs.js +208 -0
  94. package/lib/utils/_dependencies/source/0x2/groth16/structs.d.ts +186 -0
  95. package/lib/utils/_dependencies/source/0x2/groth16/structs.js +626 -0
  96. package/lib/utils/_dependencies/source/0x2/group-ops/structs.d.ts +44 -0
  97. package/lib/utils/_dependencies/source/0x2/group-ops/structs.js +229 -0
  98. package/lib/utils/_dependencies/source/0x2/index.d.ts +2 -0
  99. package/lib/utils/_dependencies/source/0x2/index.js +5 -0
  100. package/lib/utils/_dependencies/source/0x2/init.d.ts +2 -0
  101. package/lib/utils/_dependencies/source/0x2/init.js +151 -0
  102. package/lib/utils/_dependencies/source/0x2/kiosk/structs.d.ts +565 -0
  103. package/lib/utils/_dependencies/source/0x2/kiosk/structs.js +1501 -0
  104. package/lib/utils/_dependencies/source/0x2/kiosk-extension/structs.d.ts +112 -0
  105. package/lib/utils/_dependencies/source/0x2/kiosk-extension/structs.js +349 -0
  106. package/lib/utils/_dependencies/source/0x2/linked-table/structs.d.ts +144 -0
  107. package/lib/utils/_dependencies/source/0x2/linked-table/structs.js +380 -0
  108. package/lib/utils/_dependencies/source/0x2/object/structs.d.ts +83 -0
  109. package/lib/utils/_dependencies/source/0x2/object/structs.js +328 -0
  110. package/lib/utils/_dependencies/source/0x2/object-bag/structs.d.ts +56 -0
  111. package/lib/utils/_dependencies/source/0x2/object-bag/structs.js +210 -0
  112. package/lib/utils/_dependencies/source/0x2/object-table/structs.d.ts +56 -0
  113. package/lib/utils/_dependencies/source/0x2/object-table/structs.js +218 -0
  114. package/lib/utils/_dependencies/source/0x2/package/structs.d.ts +262 -0
  115. package/lib/utils/_dependencies/source/0x2/package/structs.js +682 -0
  116. package/lib/utils/_dependencies/source/0x2/priority-queue/structs.d.ts +101 -0
  117. package/lib/utils/_dependencies/source/0x2/priority-queue/structs.js +376 -0
  118. package/lib/utils/_dependencies/source/0x2/random/structs.d.ts +190 -0
  119. package/lib/utils/_dependencies/source/0x2/random/structs.js +533 -0
  120. package/lib/utils/_dependencies/source/0x2/sui/structs.d.ts +41 -0
  121. package/lib/utils/_dependencies/source/0x2/sui/structs.js +203 -0
  122. package/lib/utils/_dependencies/source/0x2/table/structs.d.ts +56 -0
  123. package/lib/utils/_dependencies/source/0x2/table/structs.js +218 -0
  124. package/lib/utils/_dependencies/source/0x2/table-vec/structs.d.ts +63 -0
  125. package/lib/utils/_dependencies/source/0x2/table-vec/structs.js +236 -0
  126. package/lib/utils/_dependencies/source/0x2/token/structs.d.ts +424 -0
  127. package/lib/utils/_dependencies/source/0x2/token/structs.js +937 -0
  128. package/lib/utils/_dependencies/source/0x2/transfer/structs.d.ts +52 -0
  129. package/lib/utils/_dependencies/source/0x2/transfer/structs.js +218 -0
  130. package/lib/utils/_dependencies/source/0x2/transfer-policy/structs.d.ts +345 -0
  131. package/lib/utils/_dependencies/source/0x2/transfer-policy/structs.js +923 -0
  132. package/lib/utils/_dependencies/source/0x2/tx-context/structs.d.ts +68 -0
  133. package/lib/utils/_dependencies/source/0x2/tx-context/structs.js +257 -0
  134. package/lib/utils/_dependencies/source/0x2/url/structs.d.ts +48 -0
  135. package/lib/utils/_dependencies/source/0x2/url/structs.js +204 -0
  136. package/lib/utils/_dependencies/source/0x2/vec-map/structs.d.ts +101 -0
  137. package/lib/utils/_dependencies/source/0x2/vec-map/structs.js +378 -0
  138. package/lib/utils/_dependencies/source/0x2/vec-set/structs.d.ts +45 -0
  139. package/lib/utils/_dependencies/source/0x2/vec-set/structs.js +232 -0
  140. package/lib/utils/_dependencies/source/0x2/versioned/structs.d.ts +104 -0
  141. package/lib/utils/_dependencies/source/0x2/versioned/structs.js +353 -0
  142. package/lib/utils/_dependencies/source/0x2/zklogin-verified-id/structs.d.ts +105 -0
  143. package/lib/utils/_dependencies/source/0x2/zklogin-verified-id/structs.js +241 -0
  144. package/lib/utils/_dependencies/source/0x2/zklogin-verified-issuer/structs.d.ts +69 -0
  145. package/lib/utils/_dependencies/source/0x2/zklogin-verified-issuer/structs.js +223 -0
  146. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.d.ts +2 -0
  147. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/index.js +5 -0
  148. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.d.ts +2 -0
  149. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/init.js +31 -0
  150. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.d.ts +50 -0
  151. package/lib/utils/_dependencies/source/0x277f90d256d1015a78cad646db091bec451c5bbab834b9fb70bace7885b5c698/validator/structs.js +204 -0
  152. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.d.ts +2 -0
  153. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/index.js +5 -0
  154. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.d.ts +2 -0
  155. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/init.js +34 -0
  156. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.d.ts +41 -0
  157. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/price-data-pull/structs.js +203 -0
  158. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.d.ts +112 -0
  159. package/lib/utils/_dependencies/source/0x2fdff17b86e34ab722c8ba5e63f0da070d9a4163705b3fdc6a95802cab40a72a/suprasvaluefeed/structs.js +359 -0
  160. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/auto-bid/structs.d.ts +1404 -0
  161. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/auto-bid/structs.js +2581 -0
  162. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/index.d.ts +2 -0
  163. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/index.js +5 -0
  164. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/init.d.ts +2 -0
  165. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/init.js +131 -0
  166. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tails-staking/structs.d.ts +1201 -0
  167. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tails-staking/structs.js +2527 -0
  168. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-authorized-entry/structs.d.ts +1622 -0
  169. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-authorized-entry/structs.js +2192 -0
  170. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-fee-pool-entry/structs.d.ts +395 -0
  171. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-fee-pool-entry/structs.js +1094 -0
  172. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-registry-authorized-entry/structs.d.ts +994 -0
  173. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-registry-authorized-entry/structs.js +1358 -0
  174. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-view-function/structs.d.ts +77 -0
  175. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/tds-view-function/structs.js +245 -0
  176. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/typus-dov-single/structs.d.ts +4338 -0
  177. package/lib/utils/_dependencies/source/0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455/typus-dov-single/structs.js +5821 -0
  178. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.d.ts +2 -0
  179. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/index.js +5 -0
  180. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.d.ts +2 -0
  181. package/lib/utils/_dependencies/source/0x7237ec8436ef7e927c45470db6db3a834dd84cf903aedee3844e847fe4805399/init.js +5 -0
  182. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ac-table/structs.d.ts +218 -0
  183. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ac-table/structs.js +524 -0
  184. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/balance-bag/structs.d.ts +77 -0
  185. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/balance-bag/structs.js +217 -0
  186. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/index.d.ts +2 -0
  187. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/index.js +5 -0
  188. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/init.d.ts +2 -0
  189. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/init.js +46 -0
  190. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/one-time-lock-value/structs.d.ts +69 -0
  191. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/one-time-lock-value/structs.js +233 -0
  192. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ownership/structs.d.ts +60 -0
  193. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/ownership/structs.js +218 -0
  194. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/supply-bag/structs.d.ts +77 -0
  195. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/supply-bag/structs.js +217 -0
  196. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/wit-table/structs.d.ts +103 -0
  197. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/wit-table/structs.js +259 -0
  198. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/witness/structs.d.ts +79 -0
  199. package/lib/utils/_dependencies/source/0x779b5c547976899f5474f3a5bc0db36ddf4697ad7e5a901db0415c2281d28162/witness/structs.js +332 -0
  200. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/index.d.ts +2 -0
  201. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/index.js +5 -0
  202. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/init.d.ts +2 -0
  203. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/init.js +40 -0
  204. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/oracle/structs.d.ts +277 -0
  205. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/oracle/structs.js +553 -0
  206. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/pyth-parser/structs.d.ts +102 -0
  207. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/pyth-parser/structs.js +353 -0
  208. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/supra/structs.d.ts +65 -0
  209. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/supra/structs.js +233 -0
  210. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/switchboard-feed-parser/structs.d.ts +65 -0
  211. package/lib/utils/_dependencies/source/0x855eb2d260ee42b898266e6df90bfd3c4ed821ccb253a352c159c223244a4b8a/switchboard-feed-parser/structs.js +233 -0
  212. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.d.ts +83 -0
  213. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/authority/structs.js +192 -0
  214. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.d.ts +333 -0
  215. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/balance-pool/structs.js +382 -0
  216. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.d.ts +68 -0
  217. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/big-vector/structs.js +176 -0
  218. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.d.ts +843 -0
  219. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/dutch/structs.js +959 -0
  220. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.d.ts +41 -0
  221. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/i64/structs.js +167 -0
  222. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.d.ts +2 -0
  223. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/index.js +5 -0
  224. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.d.ts +2 -0
  225. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/init.js +80 -0
  226. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.d.ts +146 -0
  227. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/linked-list/structs.js +274 -0
  228. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.d.ts +2272 -0
  229. package/lib/utils/_dependencies/source/0x908a10789a1a6953e0b73a997c10e3552f7ce4e2907afd00a334ed74bd973ded/vault/structs.js +4465 -0
  230. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.d.ts +719 -0
  231. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/aggregator/structs.js +1107 -0
  232. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.d.ts +2 -0
  233. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/index.js +5 -0
  234. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.d.ts +2 -0
  235. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/init.js +44 -0
  236. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.d.ts +81 -0
  237. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/job/structs.js +258 -0
  238. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.d.ts +53 -0
  239. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/math/structs.js +221 -0
  240. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.d.ts +115 -0
  241. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/quote/structs.js +294 -0
  242. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.d.ts +50 -0
  243. package/lib/utils/_dependencies/source/0x98670585b87e06628ef2d7f7cb1e7bee8ada65b43b82997935225a7e6e21d18e/switchboard/structs.js +204 -0
  244. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/index.d.ts +2 -0
  245. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/index.js +5 -0
  246. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/init.d.ts +2 -0
  247. package/lib/utils/_dependencies/source/0x9c564002970ce40370b0c1a8328d2e91924dab43ca2cb483af67aaf0f7cbe44e/init.js +5 -0
  248. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/authority/structs.d.ts +83 -0
  249. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/authority/structs.js +234 -0
  250. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/balance-pool/structs.d.ts +333 -0
  251. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/balance-pool/structs.js +528 -0
  252. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/big-vector/structs.d.ts +68 -0
  253. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/big-vector/structs.js +230 -0
  254. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/dutch/structs.d.ts +843 -0
  255. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/dutch/structs.js +1573 -0
  256. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/i64/structs.d.ts +41 -0
  257. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/i64/structs.js +203 -0
  258. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/index.d.ts +2 -0
  259. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/index.js +5 -0
  260. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/init.d.ts +2 -0
  261. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/init.js +80 -0
  262. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/linked-list/structs.d.ts +146 -0
  263. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/linked-list/structs.js +386 -0
  264. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/vault/structs.d.ts +2272 -0
  265. package/lib/utils/_dependencies/source/0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/vault/structs.js +4465 -0
  266. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/index.d.ts +2 -0
  267. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/index.js +5 -0
  268. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/init.d.ts +2 -0
  269. package/lib/utils/_dependencies/source/0xad013d5fde39e15eabda32b3dbdafd67dac32b798ce63237c27a8f73339b9b6f/init.js +5 -0
  270. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.d.ts +2 -0
  271. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/index.js +5 -0
  272. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.d.ts +2 -0
  273. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/init.js +37 -0
  274. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.d.ts +79 -0
  275. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/kiosk-lock-rule/structs.js +328 -0
  276. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.d.ts +85 -0
  277. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/royalty-rule/structs.js +340 -0
  278. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.d.ts +41 -0
  279. package/lib/utils/_dependencies/source/0xbd8fc1947cf119350184107a3087e2dc27efefa0dd82e25a1f699069fe81a585/witness-rule/structs.js +205 -0
  280. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/coin-decimals-registry/structs.d.ts +174 -0
  281. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/coin-decimals-registry/structs.js +511 -0
  282. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/index.d.ts +2 -0
  283. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/index.js +5 -0
  284. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/init.d.ts +2 -0
  285. package/lib/utils/_dependencies/source/0xca5a5a62f01c79a104bf4d31669e29daa387f325c241de4edbe30986a9bc8b0d/init.js +33 -0
  286. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.d.ts +44 -0
  287. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes20/structs.js +227 -0
  288. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.d.ts +44 -0
  289. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/bytes32/structs.js +227 -0
  290. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.d.ts +72 -0
  291. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/consumed-vaas/structs.js +231 -0
  292. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.d.ts +45 -0
  293. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/cursor/structs.js +232 -0
  294. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.d.ts +140 -0
  295. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/emitter/structs.js +466 -0
  296. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.d.ts +52 -0
  297. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/external-address/structs.js +204 -0
  298. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.d.ts +58 -0
  299. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/fee-collector/structs.js +241 -0
  300. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.d.ts +158 -0
  301. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/governance-message/structs.js +406 -0
  302. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.d.ts +52 -0
  303. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian/structs.js +204 -0
  304. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.d.ts +75 -0
  305. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-set/structs.js +246 -0
  306. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.d.ts +80 -0
  307. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/guardian-signature/structs.js +228 -0
  308. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.d.ts +2 -0
  309. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/index.js +5 -0
  310. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.d.ts +2 -0
  311. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/init.js +91 -0
  312. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.d.ts +46 -0
  313. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/migrate/structs.js +204 -0
  314. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.d.ts +177 -0
  315. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/package-utils/structs.js +592 -0
  316. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.d.ts +141 -0
  317. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/publish-message/structs.js +413 -0
  318. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.d.ts +101 -0
  319. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set/structs.js +361 -0
  320. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.d.ts +79 -0
  321. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/set-fee/structs.js +328 -0
  322. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.d.ts +50 -0
  323. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/setup/structs.js +204 -0
  324. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.d.ts +269 -0
  325. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/state/structs.js +413 -0
  326. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.d.ts +85 -0
  327. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/transfer-fee/structs.js +340 -0
  328. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.d.ts +145 -0
  329. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/update-guardian-set/structs.js +490 -0
  330. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.d.ts +143 -0
  331. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/upgrade-contract/structs.js +467 -0
  332. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.d.ts +122 -0
  333. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/vaa/structs.js +283 -0
  334. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.d.ts +79 -0
  335. package/lib/utils/_dependencies/source/0xcc029e2810f17f9f43f52262f40026a71fbdca40ed3803ad2884994361910b7e/version-control/structs.js +328 -0
  336. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.d.ts +279 -0
  337. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/batch-price-attestation/structs.js +407 -0
  338. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.d.ts +105 -0
  339. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/contract-upgrade/structs.js +342 -0
  340. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.d.ts +66 -0
  341. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/data-source/structs.js +216 -0
  342. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.d.ts +200 -0
  343. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/event/structs.js +341 -0
  344. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.d.ts +67 -0
  345. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance/structs.js +246 -0
  346. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.d.ts +41 -0
  347. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-action/structs.js +203 -0
  348. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.d.ts +71 -0
  349. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/governance-instruction/structs.js +252 -0
  350. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.d.ts +45 -0
  351. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/hot-potato-vector/structs.js +232 -0
  352. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.d.ts +47 -0
  353. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/i64/structs.js +215 -0
  354. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.d.ts +2 -0
  355. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/index.js +5 -0
  356. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.d.ts +2 -0
  357. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/init.js +85 -0
  358. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.d.ts +46 -0
  359. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/migrate/structs.js +204 -0
  360. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.d.ts +84 -0
  361. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price/structs.js +228 -0
  362. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.d.ts +153 -0
  363. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-feed/structs.js +223 -0
  364. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.d.ts +44 -0
  365. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-identifier/structs.js +227 -0
  366. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.d.ts +351 -0
  367. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-info/structs.js +360 -0
  368. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.d.ts +41 -0
  369. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/price-status/structs.js +203 -0
  370. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.d.ts +110 -0
  371. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set/structs.js +370 -0
  372. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.d.ts +75 -0
  373. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-data-sources/structs.js +228 -0
  374. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.d.ts +41 -0
  375. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-fee-recipient/structs.js +203 -0
  376. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.d.ts +72 -0
  377. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-governance-data-source/structs.js +222 -0
  378. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.d.ts +41 -0
  379. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-stale-price-threshold/structs.js +203 -0
  380. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.d.ts +47 -0
  381. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/set-update-fee/structs.js +215 -0
  382. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.d.ts +50 -0
  383. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/setup/structs.js +204 -0
  384. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.d.ts +269 -0
  385. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/state/structs.js +507 -0
  386. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.d.ts +79 -0
  387. package/lib/utils/_dependencies/source/0xe76d8a37d4132278a7a752183e90e04890b9e7d0f6657eadb68821609a2a56a3/version-control/structs.js +328 -0
  388. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/admin/structs.d.ts +215 -0
  389. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/admin/structs.js +533 -0
  390. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/index.d.ts +2 -0
  391. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/index.js +5 -0
  392. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/init.d.ts +2 -0
  393. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/init.js +44 -0
  394. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/rewards-pool/structs.d.ts +93 -0
  395. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/rewards-pool/structs.js +243 -0
  396. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool/structs.d.ts +125 -0
  397. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool/structs.js +271 -0
  398. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool-account/structs.d.ts +114 -0
  399. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/spool-account/structs.js +250 -0
  400. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/user/structs.d.ts +413 -0
  401. package/lib/utils/_dependencies/source/0xe87f1b2d498106a2c61421cec75b7b5c5e348512b0dc263949a0e7a3c256571a/user/structs.js +754 -0
  402. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/app/structs.d.ts +210 -0
  403. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/app/structs.js +392 -0
  404. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/asset-active-state/structs.d.ts +250 -0
  405. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/asset-active-state/structs.js +491 -0
  406. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow/structs.d.ts +85 -0
  407. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow/structs.js +235 -0
  408. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow-dynamics/structs.d.ts +106 -0
  409. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/borrow-dynamics/structs.js +353 -0
  410. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/collateral-stats/structs.d.ts +79 -0
  411. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/collateral-stats/structs.js +328 -0
  412. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/deposit-collateral/structs.d.ts +79 -0
  413. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/deposit-collateral/structs.js +229 -0
  414. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/flash-loan/structs.d.ts +132 -0
  415. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/flash-loan/structs.js +365 -0
  416. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/incentive-rewards/structs.d.ts +109 -0
  417. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/incentive-rewards/structs.js +342 -0
  418. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/index.d.ts +2 -0
  419. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/index.js +5 -0
  420. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/init.d.ts +2 -0
  421. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/init.js +114 -0
  422. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/interest-model/structs.d.ts +571 -0
  423. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/interest-model/structs.js +682 -0
  424. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/limiter/structs.d.ts +591 -0
  425. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/limiter/structs.js +1360 -0
  426. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/liquidate/structs.d.ts +111 -0
  427. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/liquidate/structs.js +247 -0
  428. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/lock-obligation/structs.d.ts +67 -0
  429. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/lock-obligation/structs.js +217 -0
  430. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/market/structs.d.ts +854 -0
  431. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/market/structs.js +293 -0
  432. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/mint/structs.d.ts +100 -0
  433. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/mint/structs.js +240 -0
  434. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation/structs.d.ts +628 -0
  435. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation/structs.js +1010 -0
  436. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-access/structs.d.ts +92 -0
  437. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-access/structs.js +224 -0
  438. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-collaterals/structs.d.ts +79 -0
  439. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-collaterals/structs.js +328 -0
  440. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-debts/structs.d.ts +85 -0
  441. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/obligation-debts/structs.js +340 -0
  442. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/open-obligation/structs.d.ts +104 -0
  443. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/open-obligation/structs.js +347 -0
  444. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/redeem/structs.d.ts +100 -0
  445. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/redeem/structs.js +240 -0
  446. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/repay/structs.d.ts +85 -0
  447. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/repay/structs.js +235 -0
  448. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/reserve/structs.d.ts +497 -0
  449. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/reserve/structs.js +927 -0
  450. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/risk-model/structs.d.ts +443 -0
  451. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/risk-model/structs.js +658 -0
  452. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/version/structs.d.ts +102 -0
  453. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/version/structs.js +335 -0
  454. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/withdraw-collateral/structs.d.ts +79 -0
  455. package/lib/utils/_dependencies/source/0xefe8b36d5b2e43728cc323298626b83177803521d195cfb11e15b910e892fddf/withdraw-collateral/structs.js +229 -0
  456. package/lib/utils/_framework/init-source.d.ts +1 -0
  457. package/lib/utils/_framework/init-source.js +81 -0
  458. package/lib/utils/_framework/loader.d.ts +17 -0
  459. package/lib/utils/_framework/loader.js +99 -0
  460. package/lib/utils/_framework/reified.d.ts +100 -0
  461. package/lib/utils/_framework/reified.js +263 -0
  462. package/lib/utils/_framework/util.d.ts +53 -0
  463. package/lib/utils/_framework/util.js +252 -0
  464. package/lib/utils/api/sentio/reward-generated.d.ts +1 -0
  465. package/lib/utils/api/sentio/reward-generated.js +54 -1
  466. package/lib/utils/locked-period-vault/index.d.ts +3 -0
  467. package/lib/utils/locked-period-vault/index.js +6 -0
  468. package/lib/utils/locked-period-vault/init.d.ts +2 -0
  469. package/lib/utils/locked-period-vault/init.js +44 -0
  470. package/lib/utils/locked-period-vault/locked-period-vault/functions.d.ts +137 -0
  471. package/lib/utils/locked-period-vault/locked-period-vault/functions.js +264 -0
  472. package/lib/utils/locked-period-vault/locked-period-vault/structs.d.ts +1236 -0
  473. package/lib/utils/locked-period-vault/locked-period-vault/structs.js +2400 -0
  474. package/lib/utils/typus-dov-single-v2/user-history.js +2 -1
  475. package/lib/utils/typus_perp/admin/functions.d.ts +18 -0
  476. package/lib/utils/typus_perp/admin/functions.js +43 -0
  477. package/lib/utils/typus_perp/admin/structs.d.ts +371 -0
  478. package/lib/utils/typus_perp/admin/structs.js +796 -0
  479. package/lib/utils/typus_perp/critbit/functions.d.ts +101 -0
  480. package/lib/utils/typus_perp/critbit/functions.js +186 -0
  481. package/lib/utils/typus_perp/critbit/structs.d.ts +226 -0
  482. package/lib/utils/typus_perp/critbit/structs.js +572 -0
  483. package/lib/utils/typus_perp/index.d.ts +2 -0
  484. package/lib/utils/typus_perp/index.js +5 -0
  485. package/lib/utils/typus_perp/init.d.ts +2 -0
  486. package/lib/utils/typus_perp/init.js +121 -0
  487. package/lib/utils/typus_perp/lp-pool/functions.d.ts +231 -0
  488. package/lib/utils/typus_perp/lp-pool/functions.js +346 -0
  489. package/lib/utils/typus_perp/lp-pool/structs.d.ts +2232 -0
  490. package/lib/utils/typus_perp/lp-pool/structs.js +3300 -0
  491. package/lib/utils/typus_perp/math/functions.d.ts +16 -0
  492. package/lib/utils/typus_perp/math/functions.js +33 -0
  493. package/lib/utils/typus_perp/oracle/functions.d.ts +14 -0
  494. package/lib/utils/typus_perp/oracle/functions.js +23 -0
  495. package/lib/utils/typus_perp/oracle/structs.d.ts +102 -0
  496. package/lib/utils/typus_perp/oracle/structs.js +353 -0
  497. package/lib/utils/typus_perp/position/functions.d.ts +189 -0
  498. package/lib/utils/typus_perp/position/functions.js +307 -0
  499. package/lib/utils/typus_perp/position/structs.d.ts +588 -0
  500. package/lib/utils/typus_perp/position/structs.js +763 -0
  501. package/lib/utils/typus_perp/stake-pool/functions.d.ts +180 -0
  502. package/lib/utils/typus_perp/stake-pool/functions.js +276 -0
  503. package/lib/utils/typus_perp/stake-pool/structs.d.ts +2089 -0
  504. package/lib/utils/typus_perp/stake-pool/structs.js +3539 -0
  505. package/lib/utils/typus_perp/symbol/functions.d.ts +10 -0
  506. package/lib/utils/typus_perp/symbol/functions.js +21 -0
  507. package/lib/utils/typus_perp/symbol/structs.d.ts +76 -0
  508. package/lib/utils/typus_perp/symbol/structs.js +216 -0
  509. package/lib/utils/typus_perp/tlp/functions.d.ts +20 -0
  510. package/lib/utils/typus_perp/tlp/functions.js +36 -0
  511. package/lib/utils/typus_perp/tlp/structs.d.ts +88 -0
  512. package/lib/utils/typus_perp/tlp/structs.js +329 -0
  513. package/lib/utils/typus_perp/token-interface/functions.d.ts +12 -0
  514. package/lib/utils/typus_perp/token-interface/functions.js +21 -0
  515. package/lib/utils/typus_perp/trading/functions.d.ts +234 -0
  516. package/lib/utils/typus_perp/trading/functions.js +329 -0
  517. package/lib/utils/typus_perp/trading/structs.d.ts +2305 -0
  518. package/lib/utils/typus_perp/trading/structs.js +3792 -0
  519. package/lib/utils/typus_perp/treasury-caps/functions.d.ts +10 -0
  520. package/lib/utils/typus_perp/treasury-caps/functions.js +33 -0
  521. package/lib/utils/typus_perp/treasury-caps/structs.d.ts +50 -0
  522. package/lib/utils/typus_perp/treasury-caps/structs.js +204 -0
  523. package/lib/utils/typus_perp/utils/functions.d.ts +24 -0
  524. package/lib/utils/typus_perp/utils/functions.js +41 -0
  525. package/package.json +2 -2
  526. package/lib/utils/locked-period-vault/user-entry.d.ts +0 -81
  527. package/lib/utils/locked-period-vault/user-entry.js +0 -101
@@ -0,0 +1,2581 @@
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.isWithdrawProfitEvent = exports.UpdateStrategyEvent = exports.isUpdateStrategyEvent = exports.StrategyV2 = exports.isStrategyV2 = exports.StrategyPoolV2 = exports.isStrategyPoolV2 = exports.StrategyPool = exports.isStrategyPool = exports.Strategy = exports.isStrategy = exports.NewStrategyVaultEvent = exports.isNewStrategyVaultEvent = exports.NewStrategySignalEvent = exports.isNewStrategySignalEvent = exports.NewStrategyPoolEvent = exports.isNewStrategyPoolEvent = exports.NewStrategyEventV2 = exports.isNewStrategyEventV2 = exports.NewStrategyEvent = exports.isNewStrategyEvent = exports.CloseStrategyEventV2 = exports.isCloseStrategyEventV2 = exports.CloseStrategyEvent = exports.isCloseStrategyEvent = exports.AutoBidEvent = exports.isAutoBidEvent = exports.AddAuthorutyEvent = exports.isAddAuthorutyEvent = void 0;
99
+ var reified = __importStar(require("../../../../_framework/reified"));
100
+ var reified_1 = require("../../../../_framework/reified");
101
+ var util_1 = require("../../../../_framework/util");
102
+ var structs_1 = require("../../0x2/object/structs");
103
+ var structs_2 = require("../../0x2/table-vec/structs");
104
+ var structs_3 = require("../../0x2/vec-map/structs");
105
+ var structs_4 = require("../../0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118/vault/structs");
106
+ var bcs_1 = require("@mysten/bcs");
107
+ /* ============================== AddAuthorutyEvent =============================== */
108
+ function isAddAuthorutyEvent(type) {
109
+ type = (0, util_1.compressSuiType)(type);
110
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::AddAuthorutyEvent";
111
+ }
112
+ exports.isAddAuthorutyEvent = isAddAuthorutyEvent;
113
+ var AddAuthorutyEvent = /** @class */ (function () {
114
+ function AddAuthorutyEvent(typeArgs, fields) {
115
+ this.$typeName = AddAuthorutyEvent.$typeName;
116
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AddAuthorutyEvent.$typeName], __read(typeArgs), false));
117
+ this.$typeArgs = typeArgs;
118
+ this.newAuthority = fields.newAuthority;
119
+ this.signer = fields.signer;
120
+ }
121
+ AddAuthorutyEvent.reified = function () {
122
+ var _this = this;
123
+ return {
124
+ typeName: AddAuthorutyEvent.$typeName,
125
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AddAuthorutyEvent.$typeName], [], false)),
126
+ typeArgs: [],
127
+ reifiedTypeArgs: [],
128
+ fromFields: function (fields) { return AddAuthorutyEvent.fromFields(fields); },
129
+ fromFieldsWithTypes: function (item) { return AddAuthorutyEvent.fromFieldsWithTypes(item); },
130
+ fromBcs: function (data) { return AddAuthorutyEvent.fromBcs(data); },
131
+ bcs: AddAuthorutyEvent.bcs,
132
+ fromJSONField: function (field) { return AddAuthorutyEvent.fromJSONField(field); },
133
+ fromJSON: function (json) { return AddAuthorutyEvent.fromJSON(json); },
134
+ fromSuiParsedData: function (content) { return AddAuthorutyEvent.fromSuiParsedData(content); },
135
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
136
+ return [2 /*return*/, AddAuthorutyEvent.fetch(client, id)];
137
+ }); }); },
138
+ new: function (fields) {
139
+ return new AddAuthorutyEvent([], fields);
140
+ },
141
+ kind: "StructClassReified",
142
+ };
143
+ };
144
+ Object.defineProperty(AddAuthorutyEvent, "r", {
145
+ get: function () {
146
+ return AddAuthorutyEvent.reified();
147
+ },
148
+ enumerable: false,
149
+ configurable: true
150
+ });
151
+ AddAuthorutyEvent.phantom = function () {
152
+ return (0, reified_1.phantom)(AddAuthorutyEvent.reified());
153
+ };
154
+ Object.defineProperty(AddAuthorutyEvent, "p", {
155
+ get: function () {
156
+ return AddAuthorutyEvent.phantom();
157
+ },
158
+ enumerable: false,
159
+ configurable: true
160
+ });
161
+ Object.defineProperty(AddAuthorutyEvent, "bcs", {
162
+ get: function () {
163
+ return bcs_1.bcs.struct("AddAuthorutyEvent", {
164
+ 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); } }),
165
+ 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); } }),
166
+ });
167
+ },
168
+ enumerable: false,
169
+ configurable: true
170
+ });
171
+ AddAuthorutyEvent.fromFields = function (fields) {
172
+ return AddAuthorutyEvent.reified().new({
173
+ newAuthority: (0, reified_1.decodeFromFields)("address", fields.new_authority),
174
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
175
+ });
176
+ };
177
+ AddAuthorutyEvent.fromFieldsWithTypes = function (item) {
178
+ if (!isAddAuthorutyEvent(item.type)) {
179
+ throw new Error("not a AddAuthorutyEvent type");
180
+ }
181
+ return AddAuthorutyEvent.reified().new({
182
+ newAuthority: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.new_authority),
183
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
184
+ });
185
+ };
186
+ AddAuthorutyEvent.fromBcs = function (data) {
187
+ return AddAuthorutyEvent.fromFields(AddAuthorutyEvent.bcs.parse(data));
188
+ };
189
+ AddAuthorutyEvent.prototype.toJSONField = function () {
190
+ return {
191
+ newAuthority: this.newAuthority,
192
+ signer: this.signer,
193
+ };
194
+ };
195
+ AddAuthorutyEvent.prototype.toJSON = function () {
196
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
197
+ };
198
+ AddAuthorutyEvent.fromJSONField = function (field) {
199
+ return AddAuthorutyEvent.reified().new({
200
+ newAuthority: (0, reified_1.decodeFromJSONField)("address", field.newAuthority),
201
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
202
+ });
203
+ };
204
+ AddAuthorutyEvent.fromJSON = function (json) {
205
+ if (json.$typeName !== AddAuthorutyEvent.$typeName) {
206
+ throw new Error("not a WithTwoGenerics json object");
207
+ }
208
+ return AddAuthorutyEvent.fromJSONField(json);
209
+ };
210
+ AddAuthorutyEvent.fromSuiParsedData = function (content) {
211
+ if (content.dataType !== "moveObject") {
212
+ throw new Error("not an object");
213
+ }
214
+ if (!isAddAuthorutyEvent(content.type)) {
215
+ throw new Error("object at ".concat(content.fields.id, " is not a AddAuthorutyEvent object"));
216
+ }
217
+ return AddAuthorutyEvent.fromFieldsWithTypes(content);
218
+ };
219
+ AddAuthorutyEvent.fetch = function (client, id) {
220
+ return __awaiter(this, void 0, void 0, function () {
221
+ var res;
222
+ var _a, _b;
223
+ return __generator(this, function (_c) {
224
+ switch (_c.label) {
225
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
226
+ case 1:
227
+ res = _c.sent();
228
+ if (res.error) {
229
+ throw new Error("error fetching AddAuthorutyEvent object at id ".concat(id, ": ").concat(res.error.code));
230
+ }
231
+ 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)) {
232
+ throw new Error("object at id ".concat(id, " is not a AddAuthorutyEvent object"));
233
+ }
234
+ return [2 /*return*/, AddAuthorutyEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
235
+ }
236
+ });
237
+ });
238
+ };
239
+ AddAuthorutyEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::AddAuthorutyEvent";
240
+ AddAuthorutyEvent.$numTypeParams = 0;
241
+ return AddAuthorutyEvent;
242
+ }());
243
+ exports.AddAuthorutyEvent = AddAuthorutyEvent;
244
+ /* ============================== AutoBidEvent =============================== */
245
+ function isAutoBidEvent(type) {
246
+ type = (0, util_1.compressSuiType)(type);
247
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::AutoBidEvent";
248
+ }
249
+ exports.isAutoBidEvent = isAutoBidEvent;
250
+ var AutoBidEvent = /** @class */ (function () {
251
+ function AutoBidEvent(typeArgs, fields) {
252
+ this.$typeName = AutoBidEvent.$typeName;
253
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([AutoBidEvent.$typeName], __read(typeArgs), false));
254
+ this.$typeArgs = typeArgs;
255
+ this.dummyField = fields.dummyField;
256
+ }
257
+ AutoBidEvent.reified = function () {
258
+ var _this = this;
259
+ return {
260
+ typeName: AutoBidEvent.$typeName,
261
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([AutoBidEvent.$typeName], [], false)),
262
+ typeArgs: [],
263
+ reifiedTypeArgs: [],
264
+ fromFields: function (fields) { return AutoBidEvent.fromFields(fields); },
265
+ fromFieldsWithTypes: function (item) { return AutoBidEvent.fromFieldsWithTypes(item); },
266
+ fromBcs: function (data) { return AutoBidEvent.fromBcs(data); },
267
+ bcs: AutoBidEvent.bcs,
268
+ fromJSONField: function (field) { return AutoBidEvent.fromJSONField(field); },
269
+ fromJSON: function (json) { return AutoBidEvent.fromJSON(json); },
270
+ fromSuiParsedData: function (content) { return AutoBidEvent.fromSuiParsedData(content); },
271
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
272
+ return [2 /*return*/, AutoBidEvent.fetch(client, id)];
273
+ }); }); },
274
+ new: function (fields) {
275
+ return new AutoBidEvent([], fields);
276
+ },
277
+ kind: "StructClassReified",
278
+ };
279
+ };
280
+ Object.defineProperty(AutoBidEvent, "r", {
281
+ get: function () {
282
+ return AutoBidEvent.reified();
283
+ },
284
+ enumerable: false,
285
+ configurable: true
286
+ });
287
+ AutoBidEvent.phantom = function () {
288
+ return (0, reified_1.phantom)(AutoBidEvent.reified());
289
+ };
290
+ Object.defineProperty(AutoBidEvent, "p", {
291
+ get: function () {
292
+ return AutoBidEvent.phantom();
293
+ },
294
+ enumerable: false,
295
+ configurable: true
296
+ });
297
+ Object.defineProperty(AutoBidEvent, "bcs", {
298
+ get: function () {
299
+ return bcs_1.bcs.struct("AutoBidEvent", {
300
+ dummy_field: bcs_1.bcs.bool(),
301
+ });
302
+ },
303
+ enumerable: false,
304
+ configurable: true
305
+ });
306
+ AutoBidEvent.fromFields = function (fields) {
307
+ return AutoBidEvent.reified().new({ dummyField: (0, reified_1.decodeFromFields)("bool", fields.dummy_field) });
308
+ };
309
+ AutoBidEvent.fromFieldsWithTypes = function (item) {
310
+ if (!isAutoBidEvent(item.type)) {
311
+ throw new Error("not a AutoBidEvent type");
312
+ }
313
+ return AutoBidEvent.reified().new({ dummyField: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.dummy_field) });
314
+ };
315
+ AutoBidEvent.fromBcs = function (data) {
316
+ return AutoBidEvent.fromFields(AutoBidEvent.bcs.parse(data));
317
+ };
318
+ AutoBidEvent.prototype.toJSONField = function () {
319
+ return {
320
+ dummyField: this.dummyField,
321
+ };
322
+ };
323
+ AutoBidEvent.prototype.toJSON = function () {
324
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
325
+ };
326
+ AutoBidEvent.fromJSONField = function (field) {
327
+ return AutoBidEvent.reified().new({ dummyField: (0, reified_1.decodeFromJSONField)("bool", field.dummyField) });
328
+ };
329
+ AutoBidEvent.fromJSON = function (json) {
330
+ if (json.$typeName !== AutoBidEvent.$typeName) {
331
+ throw new Error("not a WithTwoGenerics json object");
332
+ }
333
+ return AutoBidEvent.fromJSONField(json);
334
+ };
335
+ AutoBidEvent.fromSuiParsedData = function (content) {
336
+ if (content.dataType !== "moveObject") {
337
+ throw new Error("not an object");
338
+ }
339
+ if (!isAutoBidEvent(content.type)) {
340
+ throw new Error("object at ".concat(content.fields.id, " is not a AutoBidEvent object"));
341
+ }
342
+ return AutoBidEvent.fromFieldsWithTypes(content);
343
+ };
344
+ AutoBidEvent.fetch = function (client, id) {
345
+ return __awaiter(this, void 0, void 0, function () {
346
+ var res;
347
+ var _a, _b;
348
+ return __generator(this, function (_c) {
349
+ switch (_c.label) {
350
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
351
+ case 1:
352
+ res = _c.sent();
353
+ if (res.error) {
354
+ throw new Error("error fetching AutoBidEvent object at id ".concat(id, ": ").concat(res.error.code));
355
+ }
356
+ 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)) {
357
+ throw new Error("object at id ".concat(id, " is not a AutoBidEvent object"));
358
+ }
359
+ return [2 /*return*/, AutoBidEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
360
+ }
361
+ });
362
+ });
363
+ };
364
+ AutoBidEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::AutoBidEvent";
365
+ AutoBidEvent.$numTypeParams = 0;
366
+ return AutoBidEvent;
367
+ }());
368
+ exports.AutoBidEvent = AutoBidEvent;
369
+ /* ============================== CloseStrategyEvent =============================== */
370
+ function isCloseStrategyEvent(type) {
371
+ type = (0, util_1.compressSuiType)(type);
372
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::CloseStrategyEvent";
373
+ }
374
+ exports.isCloseStrategyEvent = isCloseStrategyEvent;
375
+ var CloseStrategyEvent = /** @class */ (function () {
376
+ function CloseStrategyEvent(typeArgs, fields) {
377
+ this.$typeName = CloseStrategyEvent.$typeName;
378
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([CloseStrategyEvent.$typeName], __read(typeArgs), false));
379
+ this.$typeArgs = typeArgs;
380
+ this.vaultIndex = fields.vaultIndex;
381
+ this.signalIndex = fields.signalIndex;
382
+ this.user = fields.user;
383
+ this.pricePercentage = fields.pricePercentage;
384
+ this.size = fields.size;
385
+ this.maxTimes = fields.maxTimes;
386
+ this.targetRounds = fields.targetRounds;
387
+ this.u64Padding = fields.u64Padding;
388
+ this.bidTimes = fields.bidTimes;
389
+ this.bidRound = fields.bidRound;
390
+ this.bidTsMs = fields.bidTsMs;
391
+ }
392
+ CloseStrategyEvent.reified = function () {
393
+ var _this = this;
394
+ return {
395
+ typeName: CloseStrategyEvent.$typeName,
396
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([CloseStrategyEvent.$typeName], [], false)),
397
+ typeArgs: [],
398
+ reifiedTypeArgs: [],
399
+ fromFields: function (fields) { return CloseStrategyEvent.fromFields(fields); },
400
+ fromFieldsWithTypes: function (item) { return CloseStrategyEvent.fromFieldsWithTypes(item); },
401
+ fromBcs: function (data) { return CloseStrategyEvent.fromBcs(data); },
402
+ bcs: CloseStrategyEvent.bcs,
403
+ fromJSONField: function (field) { return CloseStrategyEvent.fromJSONField(field); },
404
+ fromJSON: function (json) { return CloseStrategyEvent.fromJSON(json); },
405
+ fromSuiParsedData: function (content) { return CloseStrategyEvent.fromSuiParsedData(content); },
406
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
407
+ return [2 /*return*/, CloseStrategyEvent.fetch(client, id)];
408
+ }); }); },
409
+ new: function (fields) {
410
+ return new CloseStrategyEvent([], fields);
411
+ },
412
+ kind: "StructClassReified",
413
+ };
414
+ };
415
+ Object.defineProperty(CloseStrategyEvent, "r", {
416
+ get: function () {
417
+ return CloseStrategyEvent.reified();
418
+ },
419
+ enumerable: false,
420
+ configurable: true
421
+ });
422
+ CloseStrategyEvent.phantom = function () {
423
+ return (0, reified_1.phantom)(CloseStrategyEvent.reified());
424
+ };
425
+ Object.defineProperty(CloseStrategyEvent, "p", {
426
+ get: function () {
427
+ return CloseStrategyEvent.phantom();
428
+ },
429
+ enumerable: false,
430
+ configurable: true
431
+ });
432
+ Object.defineProperty(CloseStrategyEvent, "bcs", {
433
+ get: function () {
434
+ return bcs_1.bcs.struct("CloseStrategyEvent", {
435
+ vault_index: bcs_1.bcs.u64(),
436
+ signal_index: bcs_1.bcs.u64(),
437
+ 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); } }),
438
+ price_percentage: bcs_1.bcs.u64(),
439
+ size: bcs_1.bcs.u64(),
440
+ max_times: bcs_1.bcs.u64(),
441
+ target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
442
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
443
+ bid_times: bcs_1.bcs.u64(),
444
+ bid_round: bcs_1.bcs.u64(),
445
+ bid_ts_ms: bcs_1.bcs.u64(),
446
+ });
447
+ },
448
+ enumerable: false,
449
+ configurable: true
450
+ });
451
+ CloseStrategyEvent.fromFields = function (fields) {
452
+ return CloseStrategyEvent.reified().new({
453
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
454
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
455
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
456
+ pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage),
457
+ size: (0, reified_1.decodeFromFields)("u64", fields.size),
458
+ maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times),
459
+ targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds),
460
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
461
+ bidTimes: (0, reified_1.decodeFromFields)("u64", fields.bid_times),
462
+ bidRound: (0, reified_1.decodeFromFields)("u64", fields.bid_round),
463
+ bidTsMs: (0, reified_1.decodeFromFields)("u64", fields.bid_ts_ms),
464
+ });
465
+ };
466
+ CloseStrategyEvent.fromFieldsWithTypes = function (item) {
467
+ if (!isCloseStrategyEvent(item.type)) {
468
+ throw new Error("not a CloseStrategyEvent type");
469
+ }
470
+ return CloseStrategyEvent.reified().new({
471
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
472
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
473
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
474
+ pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage),
475
+ size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size),
476
+ maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times),
477
+ targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds),
478
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
479
+ bidTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_times),
480
+ bidRound: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_round),
481
+ bidTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_ts_ms),
482
+ });
483
+ };
484
+ CloseStrategyEvent.fromBcs = function (data) {
485
+ return CloseStrategyEvent.fromFields(CloseStrategyEvent.bcs.parse(data));
486
+ };
487
+ CloseStrategyEvent.prototype.toJSONField = function () {
488
+ return {
489
+ vaultIndex: this.vaultIndex.toString(),
490
+ signalIndex: this.signalIndex.toString(),
491
+ user: this.user,
492
+ pricePercentage: this.pricePercentage.toString(),
493
+ size: this.size.toString(),
494
+ maxTimes: this.maxTimes.toString(),
495
+ targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds),
496
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
497
+ bidTimes: this.bidTimes.toString(),
498
+ bidRound: this.bidRound.toString(),
499
+ bidTsMs: this.bidTsMs.toString(),
500
+ };
501
+ };
502
+ CloseStrategyEvent.prototype.toJSON = function () {
503
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
504
+ };
505
+ CloseStrategyEvent.fromJSONField = function (field) {
506
+ return CloseStrategyEvent.reified().new({
507
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
508
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
509
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
510
+ pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage),
511
+ size: (0, reified_1.decodeFromJSONField)("u64", field.size),
512
+ maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes),
513
+ targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds),
514
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
515
+ bidTimes: (0, reified_1.decodeFromJSONField)("u64", field.bidTimes),
516
+ bidRound: (0, reified_1.decodeFromJSONField)("u64", field.bidRound),
517
+ bidTsMs: (0, reified_1.decodeFromJSONField)("u64", field.bidTsMs),
518
+ });
519
+ };
520
+ CloseStrategyEvent.fromJSON = function (json) {
521
+ if (json.$typeName !== CloseStrategyEvent.$typeName) {
522
+ throw new Error("not a WithTwoGenerics json object");
523
+ }
524
+ return CloseStrategyEvent.fromJSONField(json);
525
+ };
526
+ CloseStrategyEvent.fromSuiParsedData = function (content) {
527
+ if (content.dataType !== "moveObject") {
528
+ throw new Error("not an object");
529
+ }
530
+ if (!isCloseStrategyEvent(content.type)) {
531
+ throw new Error("object at ".concat(content.fields.id, " is not a CloseStrategyEvent object"));
532
+ }
533
+ return CloseStrategyEvent.fromFieldsWithTypes(content);
534
+ };
535
+ CloseStrategyEvent.fetch = function (client, id) {
536
+ return __awaiter(this, void 0, void 0, function () {
537
+ var res;
538
+ var _a, _b;
539
+ return __generator(this, function (_c) {
540
+ switch (_c.label) {
541
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
542
+ case 1:
543
+ res = _c.sent();
544
+ if (res.error) {
545
+ throw new Error("error fetching CloseStrategyEvent object at id ".concat(id, ": ").concat(res.error.code));
546
+ }
547
+ 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)) {
548
+ throw new Error("object at id ".concat(id, " is not a CloseStrategyEvent object"));
549
+ }
550
+ return [2 /*return*/, CloseStrategyEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
551
+ }
552
+ });
553
+ });
554
+ };
555
+ CloseStrategyEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::CloseStrategyEvent";
556
+ CloseStrategyEvent.$numTypeParams = 0;
557
+ return CloseStrategyEvent;
558
+ }());
559
+ exports.CloseStrategyEvent = CloseStrategyEvent;
560
+ /* ============================== CloseStrategyEventV2 =============================== */
561
+ function isCloseStrategyEventV2(type) {
562
+ type = (0, util_1.compressSuiType)(type);
563
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::CloseStrategyEventV2";
564
+ }
565
+ exports.isCloseStrategyEventV2 = isCloseStrategyEventV2;
566
+ var CloseStrategyEventV2 = /** @class */ (function () {
567
+ function CloseStrategyEventV2(typeArgs, fields) {
568
+ this.$typeName = CloseStrategyEventV2.$typeName;
569
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([CloseStrategyEventV2.$typeName], __read(typeArgs), false));
570
+ this.$typeArgs = typeArgs;
571
+ this.vaultIndex = fields.vaultIndex;
572
+ this.signalIndex = fields.signalIndex;
573
+ this.user = fields.user;
574
+ this.pricePercentage = fields.pricePercentage;
575
+ this.size = fields.size;
576
+ this.maxTimes = fields.maxTimes;
577
+ this.targetRounds = fields.targetRounds;
578
+ this.u64Padding = fields.u64Padding;
579
+ this.bidTimes = fields.bidTimes;
580
+ this.bidRound = fields.bidRound;
581
+ this.bidTsMs = fields.bidTsMs;
582
+ this.bidRounds = fields.bidRounds;
583
+ this.accumulatedProfit = fields.accumulatedProfit;
584
+ }
585
+ CloseStrategyEventV2.reified = function () {
586
+ var _this = this;
587
+ return {
588
+ typeName: CloseStrategyEventV2.$typeName,
589
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([CloseStrategyEventV2.$typeName], [], false)),
590
+ typeArgs: [],
591
+ reifiedTypeArgs: [],
592
+ fromFields: function (fields) { return CloseStrategyEventV2.fromFields(fields); },
593
+ fromFieldsWithTypes: function (item) { return CloseStrategyEventV2.fromFieldsWithTypes(item); },
594
+ fromBcs: function (data) { return CloseStrategyEventV2.fromBcs(data); },
595
+ bcs: CloseStrategyEventV2.bcs,
596
+ fromJSONField: function (field) { return CloseStrategyEventV2.fromJSONField(field); },
597
+ fromJSON: function (json) { return CloseStrategyEventV2.fromJSON(json); },
598
+ fromSuiParsedData: function (content) { return CloseStrategyEventV2.fromSuiParsedData(content); },
599
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
600
+ return [2 /*return*/, CloseStrategyEventV2.fetch(client, id)];
601
+ }); }); },
602
+ new: function (fields) {
603
+ return new CloseStrategyEventV2([], fields);
604
+ },
605
+ kind: "StructClassReified",
606
+ };
607
+ };
608
+ Object.defineProperty(CloseStrategyEventV2, "r", {
609
+ get: function () {
610
+ return CloseStrategyEventV2.reified();
611
+ },
612
+ enumerable: false,
613
+ configurable: true
614
+ });
615
+ CloseStrategyEventV2.phantom = function () {
616
+ return (0, reified_1.phantom)(CloseStrategyEventV2.reified());
617
+ };
618
+ Object.defineProperty(CloseStrategyEventV2, "p", {
619
+ get: function () {
620
+ return CloseStrategyEventV2.phantom();
621
+ },
622
+ enumerable: false,
623
+ configurable: true
624
+ });
625
+ Object.defineProperty(CloseStrategyEventV2, "bcs", {
626
+ get: function () {
627
+ return bcs_1.bcs.struct("CloseStrategyEventV2", {
628
+ vault_index: bcs_1.bcs.u64(),
629
+ signal_index: bcs_1.bcs.u64(),
630
+ 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); } }),
631
+ price_percentage: bcs_1.bcs.u64(),
632
+ size: bcs_1.bcs.u64(),
633
+ max_times: bcs_1.bcs.u64(),
634
+ target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
635
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
636
+ bid_times: bcs_1.bcs.u64(),
637
+ bid_round: bcs_1.bcs.u64(),
638
+ bid_ts_ms: bcs_1.bcs.u64(),
639
+ bid_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
640
+ accumulated_profit: bcs_1.bcs.u64(),
641
+ });
642
+ },
643
+ enumerable: false,
644
+ configurable: true
645
+ });
646
+ CloseStrategyEventV2.fromFields = function (fields) {
647
+ return CloseStrategyEventV2.reified().new({
648
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
649
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
650
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
651
+ pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage),
652
+ size: (0, reified_1.decodeFromFields)("u64", fields.size),
653
+ maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times),
654
+ targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds),
655
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
656
+ bidTimes: (0, reified_1.decodeFromFields)("u64", fields.bid_times),
657
+ bidRound: (0, reified_1.decodeFromFields)("u64", fields.bid_round),
658
+ bidTsMs: (0, reified_1.decodeFromFields)("u64", fields.bid_ts_ms),
659
+ bidRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.bid_rounds),
660
+ accumulatedProfit: (0, reified_1.decodeFromFields)("u64", fields.accumulated_profit),
661
+ });
662
+ };
663
+ CloseStrategyEventV2.fromFieldsWithTypes = function (item) {
664
+ if (!isCloseStrategyEventV2(item.type)) {
665
+ throw new Error("not a CloseStrategyEventV2 type");
666
+ }
667
+ return CloseStrategyEventV2.reified().new({
668
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
669
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
670
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
671
+ pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage),
672
+ size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size),
673
+ maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times),
674
+ targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds),
675
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
676
+ bidTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_times),
677
+ bidRound: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_round),
678
+ bidTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_ts_ms),
679
+ bidRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.bid_rounds),
680
+ accumulatedProfit: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.accumulated_profit),
681
+ });
682
+ };
683
+ CloseStrategyEventV2.fromBcs = function (data) {
684
+ return CloseStrategyEventV2.fromFields(CloseStrategyEventV2.bcs.parse(data));
685
+ };
686
+ CloseStrategyEventV2.prototype.toJSONField = function () {
687
+ return {
688
+ vaultIndex: this.vaultIndex.toString(),
689
+ signalIndex: this.signalIndex.toString(),
690
+ user: this.user,
691
+ pricePercentage: this.pricePercentage.toString(),
692
+ size: this.size.toString(),
693
+ maxTimes: this.maxTimes.toString(),
694
+ targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds),
695
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
696
+ bidTimes: this.bidTimes.toString(),
697
+ bidRound: this.bidRound.toString(),
698
+ bidTsMs: this.bidTsMs.toString(),
699
+ bidRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.bidRounds),
700
+ accumulatedProfit: this.accumulatedProfit.toString(),
701
+ };
702
+ };
703
+ CloseStrategyEventV2.prototype.toJSON = function () {
704
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
705
+ };
706
+ CloseStrategyEventV2.fromJSONField = function (field) {
707
+ return CloseStrategyEventV2.reified().new({
708
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
709
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
710
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
711
+ pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage),
712
+ size: (0, reified_1.decodeFromJSONField)("u64", field.size),
713
+ maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes),
714
+ targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds),
715
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
716
+ bidTimes: (0, reified_1.decodeFromJSONField)("u64", field.bidTimes),
717
+ bidRound: (0, reified_1.decodeFromJSONField)("u64", field.bidRound),
718
+ bidTsMs: (0, reified_1.decodeFromJSONField)("u64", field.bidTsMs),
719
+ bidRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.bidRounds),
720
+ accumulatedProfit: (0, reified_1.decodeFromJSONField)("u64", field.accumulatedProfit),
721
+ });
722
+ };
723
+ CloseStrategyEventV2.fromJSON = function (json) {
724
+ if (json.$typeName !== CloseStrategyEventV2.$typeName) {
725
+ throw new Error("not a WithTwoGenerics json object");
726
+ }
727
+ return CloseStrategyEventV2.fromJSONField(json);
728
+ };
729
+ CloseStrategyEventV2.fromSuiParsedData = function (content) {
730
+ if (content.dataType !== "moveObject") {
731
+ throw new Error("not an object");
732
+ }
733
+ if (!isCloseStrategyEventV2(content.type)) {
734
+ throw new Error("object at ".concat(content.fields.id, " is not a CloseStrategyEventV2 object"));
735
+ }
736
+ return CloseStrategyEventV2.fromFieldsWithTypes(content);
737
+ };
738
+ CloseStrategyEventV2.fetch = function (client, id) {
739
+ return __awaiter(this, void 0, void 0, function () {
740
+ var res;
741
+ var _a, _b;
742
+ return __generator(this, function (_c) {
743
+ switch (_c.label) {
744
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
745
+ case 1:
746
+ res = _c.sent();
747
+ if (res.error) {
748
+ throw new Error("error fetching CloseStrategyEventV2 object at id ".concat(id, ": ").concat(res.error.code));
749
+ }
750
+ 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)) {
751
+ throw new Error("object at id ".concat(id, " is not a CloseStrategyEventV2 object"));
752
+ }
753
+ return [2 /*return*/, CloseStrategyEventV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
754
+ }
755
+ });
756
+ });
757
+ };
758
+ CloseStrategyEventV2.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::CloseStrategyEventV2";
759
+ CloseStrategyEventV2.$numTypeParams = 0;
760
+ return CloseStrategyEventV2;
761
+ }());
762
+ exports.CloseStrategyEventV2 = CloseStrategyEventV2;
763
+ /* ============================== NewStrategyEvent =============================== */
764
+ function isNewStrategyEvent(type) {
765
+ type = (0, util_1.compressSuiType)(type);
766
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategyEvent";
767
+ }
768
+ exports.isNewStrategyEvent = isNewStrategyEvent;
769
+ var NewStrategyEvent = /** @class */ (function () {
770
+ function NewStrategyEvent(typeArgs, fields) {
771
+ this.$typeName = NewStrategyEvent.$typeName;
772
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyEvent.$typeName], __read(typeArgs), false));
773
+ this.$typeArgs = typeArgs;
774
+ this.vaultIndex = fields.vaultIndex;
775
+ this.signalIndex = fields.signalIndex;
776
+ this.user = fields.user;
777
+ this.pricePercentage = fields.pricePercentage;
778
+ this.size = fields.size;
779
+ this.maxTimes = fields.maxTimes;
780
+ this.targetRounds = fields.targetRounds;
781
+ }
782
+ NewStrategyEvent.reified = function () {
783
+ var _this = this;
784
+ return {
785
+ typeName: NewStrategyEvent.$typeName,
786
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyEvent.$typeName], [], false)),
787
+ typeArgs: [],
788
+ reifiedTypeArgs: [],
789
+ fromFields: function (fields) { return NewStrategyEvent.fromFields(fields); },
790
+ fromFieldsWithTypes: function (item) { return NewStrategyEvent.fromFieldsWithTypes(item); },
791
+ fromBcs: function (data) { return NewStrategyEvent.fromBcs(data); },
792
+ bcs: NewStrategyEvent.bcs,
793
+ fromJSONField: function (field) { return NewStrategyEvent.fromJSONField(field); },
794
+ fromJSON: function (json) { return NewStrategyEvent.fromJSON(json); },
795
+ fromSuiParsedData: function (content) { return NewStrategyEvent.fromSuiParsedData(content); },
796
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
797
+ return [2 /*return*/, NewStrategyEvent.fetch(client, id)];
798
+ }); }); },
799
+ new: function (fields) {
800
+ return new NewStrategyEvent([], fields);
801
+ },
802
+ kind: "StructClassReified",
803
+ };
804
+ };
805
+ Object.defineProperty(NewStrategyEvent, "r", {
806
+ get: function () {
807
+ return NewStrategyEvent.reified();
808
+ },
809
+ enumerable: false,
810
+ configurable: true
811
+ });
812
+ NewStrategyEvent.phantom = function () {
813
+ return (0, reified_1.phantom)(NewStrategyEvent.reified());
814
+ };
815
+ Object.defineProperty(NewStrategyEvent, "p", {
816
+ get: function () {
817
+ return NewStrategyEvent.phantom();
818
+ },
819
+ enumerable: false,
820
+ configurable: true
821
+ });
822
+ Object.defineProperty(NewStrategyEvent, "bcs", {
823
+ get: function () {
824
+ return bcs_1.bcs.struct("NewStrategyEvent", {
825
+ vault_index: bcs_1.bcs.u64(),
826
+ signal_index: bcs_1.bcs.u64(),
827
+ 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); } }),
828
+ price_percentage: bcs_1.bcs.u64(),
829
+ size: bcs_1.bcs.u64(),
830
+ max_times: bcs_1.bcs.u64(),
831
+ target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
832
+ });
833
+ },
834
+ enumerable: false,
835
+ configurable: true
836
+ });
837
+ NewStrategyEvent.fromFields = function (fields) {
838
+ return NewStrategyEvent.reified().new({
839
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
840
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
841
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
842
+ pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage),
843
+ size: (0, reified_1.decodeFromFields)("u64", fields.size),
844
+ maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times),
845
+ targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds),
846
+ });
847
+ };
848
+ NewStrategyEvent.fromFieldsWithTypes = function (item) {
849
+ if (!isNewStrategyEvent(item.type)) {
850
+ throw new Error("not a NewStrategyEvent type");
851
+ }
852
+ return NewStrategyEvent.reified().new({
853
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
854
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
855
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
856
+ pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage),
857
+ size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size),
858
+ maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times),
859
+ targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds),
860
+ });
861
+ };
862
+ NewStrategyEvent.fromBcs = function (data) {
863
+ return NewStrategyEvent.fromFields(NewStrategyEvent.bcs.parse(data));
864
+ };
865
+ NewStrategyEvent.prototype.toJSONField = function () {
866
+ return {
867
+ vaultIndex: this.vaultIndex.toString(),
868
+ signalIndex: this.signalIndex.toString(),
869
+ user: this.user,
870
+ pricePercentage: this.pricePercentage.toString(),
871
+ size: this.size.toString(),
872
+ maxTimes: this.maxTimes.toString(),
873
+ targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds),
874
+ };
875
+ };
876
+ NewStrategyEvent.prototype.toJSON = function () {
877
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
878
+ };
879
+ NewStrategyEvent.fromJSONField = function (field) {
880
+ return NewStrategyEvent.reified().new({
881
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
882
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
883
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
884
+ pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage),
885
+ size: (0, reified_1.decodeFromJSONField)("u64", field.size),
886
+ maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes),
887
+ targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds),
888
+ });
889
+ };
890
+ NewStrategyEvent.fromJSON = function (json) {
891
+ if (json.$typeName !== NewStrategyEvent.$typeName) {
892
+ throw new Error("not a WithTwoGenerics json object");
893
+ }
894
+ return NewStrategyEvent.fromJSONField(json);
895
+ };
896
+ NewStrategyEvent.fromSuiParsedData = function (content) {
897
+ if (content.dataType !== "moveObject") {
898
+ throw new Error("not an object");
899
+ }
900
+ if (!isNewStrategyEvent(content.type)) {
901
+ throw new Error("object at ".concat(content.fields.id, " is not a NewStrategyEvent object"));
902
+ }
903
+ return NewStrategyEvent.fromFieldsWithTypes(content);
904
+ };
905
+ NewStrategyEvent.fetch = function (client, id) {
906
+ return __awaiter(this, void 0, void 0, function () {
907
+ var res;
908
+ var _a, _b;
909
+ return __generator(this, function (_c) {
910
+ switch (_c.label) {
911
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
912
+ case 1:
913
+ res = _c.sent();
914
+ if (res.error) {
915
+ throw new Error("error fetching NewStrategyEvent object at id ".concat(id, ": ").concat(res.error.code));
916
+ }
917
+ 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)) {
918
+ throw new Error("object at id ".concat(id, " is not a NewStrategyEvent object"));
919
+ }
920
+ return [2 /*return*/, NewStrategyEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
921
+ }
922
+ });
923
+ });
924
+ };
925
+ NewStrategyEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategyEvent";
926
+ NewStrategyEvent.$numTypeParams = 0;
927
+ return NewStrategyEvent;
928
+ }());
929
+ exports.NewStrategyEvent = NewStrategyEvent;
930
+ /* ============================== NewStrategyEventV2 =============================== */
931
+ function isNewStrategyEventV2(type) {
932
+ type = (0, util_1.compressSuiType)(type);
933
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategyEventV2";
934
+ }
935
+ exports.isNewStrategyEventV2 = isNewStrategyEventV2;
936
+ var NewStrategyEventV2 = /** @class */ (function () {
937
+ function NewStrategyEventV2(typeArgs, fields) {
938
+ this.$typeName = NewStrategyEventV2.$typeName;
939
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyEventV2.$typeName], __read(typeArgs), false));
940
+ this.$typeArgs = typeArgs;
941
+ this.vaultIndex = fields.vaultIndex;
942
+ this.signalIndex = fields.signalIndex;
943
+ this.user = fields.user;
944
+ this.pricePercentage = fields.pricePercentage;
945
+ this.size = fields.size;
946
+ this.maxTimes = fields.maxTimes;
947
+ this.targetRounds = fields.targetRounds;
948
+ this.depositAmount = fields.depositAmount;
949
+ }
950
+ NewStrategyEventV2.reified = function () {
951
+ var _this = this;
952
+ return {
953
+ typeName: NewStrategyEventV2.$typeName,
954
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyEventV2.$typeName], [], false)),
955
+ typeArgs: [],
956
+ reifiedTypeArgs: [],
957
+ fromFields: function (fields) { return NewStrategyEventV2.fromFields(fields); },
958
+ fromFieldsWithTypes: function (item) { return NewStrategyEventV2.fromFieldsWithTypes(item); },
959
+ fromBcs: function (data) { return NewStrategyEventV2.fromBcs(data); },
960
+ bcs: NewStrategyEventV2.bcs,
961
+ fromJSONField: function (field) { return NewStrategyEventV2.fromJSONField(field); },
962
+ fromJSON: function (json) { return NewStrategyEventV2.fromJSON(json); },
963
+ fromSuiParsedData: function (content) { return NewStrategyEventV2.fromSuiParsedData(content); },
964
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
965
+ return [2 /*return*/, NewStrategyEventV2.fetch(client, id)];
966
+ }); }); },
967
+ new: function (fields) {
968
+ return new NewStrategyEventV2([], fields);
969
+ },
970
+ kind: "StructClassReified",
971
+ };
972
+ };
973
+ Object.defineProperty(NewStrategyEventV2, "r", {
974
+ get: function () {
975
+ return NewStrategyEventV2.reified();
976
+ },
977
+ enumerable: false,
978
+ configurable: true
979
+ });
980
+ NewStrategyEventV2.phantom = function () {
981
+ return (0, reified_1.phantom)(NewStrategyEventV2.reified());
982
+ };
983
+ Object.defineProperty(NewStrategyEventV2, "p", {
984
+ get: function () {
985
+ return NewStrategyEventV2.phantom();
986
+ },
987
+ enumerable: false,
988
+ configurable: true
989
+ });
990
+ Object.defineProperty(NewStrategyEventV2, "bcs", {
991
+ get: function () {
992
+ return bcs_1.bcs.struct("NewStrategyEventV2", {
993
+ vault_index: bcs_1.bcs.u64(),
994
+ signal_index: bcs_1.bcs.u64(),
995
+ 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); } }),
996
+ price_percentage: bcs_1.bcs.u64(),
997
+ size: bcs_1.bcs.u64(),
998
+ max_times: bcs_1.bcs.u64(),
999
+ target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1000
+ deposit_amount: bcs_1.bcs.u64(),
1001
+ });
1002
+ },
1003
+ enumerable: false,
1004
+ configurable: true
1005
+ });
1006
+ NewStrategyEventV2.fromFields = function (fields) {
1007
+ return NewStrategyEventV2.reified().new({
1008
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
1009
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
1010
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
1011
+ pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage),
1012
+ size: (0, reified_1.decodeFromFields)("u64", fields.size),
1013
+ maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times),
1014
+ targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds),
1015
+ depositAmount: (0, reified_1.decodeFromFields)("u64", fields.deposit_amount),
1016
+ });
1017
+ };
1018
+ NewStrategyEventV2.fromFieldsWithTypes = function (item) {
1019
+ if (!isNewStrategyEventV2(item.type)) {
1020
+ throw new Error("not a NewStrategyEventV2 type");
1021
+ }
1022
+ return NewStrategyEventV2.reified().new({
1023
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
1024
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
1025
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
1026
+ pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage),
1027
+ size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size),
1028
+ maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times),
1029
+ targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds),
1030
+ depositAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.deposit_amount),
1031
+ });
1032
+ };
1033
+ NewStrategyEventV2.fromBcs = function (data) {
1034
+ return NewStrategyEventV2.fromFields(NewStrategyEventV2.bcs.parse(data));
1035
+ };
1036
+ NewStrategyEventV2.prototype.toJSONField = function () {
1037
+ return {
1038
+ vaultIndex: this.vaultIndex.toString(),
1039
+ signalIndex: this.signalIndex.toString(),
1040
+ user: this.user,
1041
+ pricePercentage: this.pricePercentage.toString(),
1042
+ size: this.size.toString(),
1043
+ maxTimes: this.maxTimes.toString(),
1044
+ targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds),
1045
+ depositAmount: this.depositAmount.toString(),
1046
+ };
1047
+ };
1048
+ NewStrategyEventV2.prototype.toJSON = function () {
1049
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1050
+ };
1051
+ NewStrategyEventV2.fromJSONField = function (field) {
1052
+ return NewStrategyEventV2.reified().new({
1053
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
1054
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
1055
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
1056
+ pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage),
1057
+ size: (0, reified_1.decodeFromJSONField)("u64", field.size),
1058
+ maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes),
1059
+ targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds),
1060
+ depositAmount: (0, reified_1.decodeFromJSONField)("u64", field.depositAmount),
1061
+ });
1062
+ };
1063
+ NewStrategyEventV2.fromJSON = function (json) {
1064
+ if (json.$typeName !== NewStrategyEventV2.$typeName) {
1065
+ throw new Error("not a WithTwoGenerics json object");
1066
+ }
1067
+ return NewStrategyEventV2.fromJSONField(json);
1068
+ };
1069
+ NewStrategyEventV2.fromSuiParsedData = function (content) {
1070
+ if (content.dataType !== "moveObject") {
1071
+ throw new Error("not an object");
1072
+ }
1073
+ if (!isNewStrategyEventV2(content.type)) {
1074
+ throw new Error("object at ".concat(content.fields.id, " is not a NewStrategyEventV2 object"));
1075
+ }
1076
+ return NewStrategyEventV2.fromFieldsWithTypes(content);
1077
+ };
1078
+ NewStrategyEventV2.fetch = function (client, id) {
1079
+ return __awaiter(this, void 0, void 0, function () {
1080
+ var res;
1081
+ var _a, _b;
1082
+ return __generator(this, function (_c) {
1083
+ switch (_c.label) {
1084
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1085
+ case 1:
1086
+ res = _c.sent();
1087
+ if (res.error) {
1088
+ throw new Error("error fetching NewStrategyEventV2 object at id ".concat(id, ": ").concat(res.error.code));
1089
+ }
1090
+ 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)) {
1091
+ throw new Error("object at id ".concat(id, " is not a NewStrategyEventV2 object"));
1092
+ }
1093
+ return [2 /*return*/, NewStrategyEventV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1094
+ }
1095
+ });
1096
+ });
1097
+ };
1098
+ NewStrategyEventV2.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategyEventV2";
1099
+ NewStrategyEventV2.$numTypeParams = 0;
1100
+ return NewStrategyEventV2;
1101
+ }());
1102
+ exports.NewStrategyEventV2 = NewStrategyEventV2;
1103
+ /* ============================== NewStrategyPoolEvent =============================== */
1104
+ function isNewStrategyPoolEvent(type) {
1105
+ type = (0, util_1.compressSuiType)(type);
1106
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategyPoolEvent";
1107
+ }
1108
+ exports.isNewStrategyPoolEvent = isNewStrategyPoolEvent;
1109
+ var NewStrategyPoolEvent = /** @class */ (function () {
1110
+ function NewStrategyPoolEvent(typeArgs, fields) {
1111
+ this.$typeName = NewStrategyPoolEvent.$typeName;
1112
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyPoolEvent.$typeName], __read(typeArgs), false));
1113
+ this.$typeArgs = typeArgs;
1114
+ this.id = fields.id;
1115
+ this.signer = fields.signer;
1116
+ }
1117
+ NewStrategyPoolEvent.reified = function () {
1118
+ var _this = this;
1119
+ return {
1120
+ typeName: NewStrategyPoolEvent.$typeName,
1121
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyPoolEvent.$typeName], [], false)),
1122
+ typeArgs: [],
1123
+ reifiedTypeArgs: [],
1124
+ fromFields: function (fields) { return NewStrategyPoolEvent.fromFields(fields); },
1125
+ fromFieldsWithTypes: function (item) { return NewStrategyPoolEvent.fromFieldsWithTypes(item); },
1126
+ fromBcs: function (data) { return NewStrategyPoolEvent.fromBcs(data); },
1127
+ bcs: NewStrategyPoolEvent.bcs,
1128
+ fromJSONField: function (field) { return NewStrategyPoolEvent.fromJSONField(field); },
1129
+ fromJSON: function (json) { return NewStrategyPoolEvent.fromJSON(json); },
1130
+ fromSuiParsedData: function (content) { return NewStrategyPoolEvent.fromSuiParsedData(content); },
1131
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1132
+ return [2 /*return*/, NewStrategyPoolEvent.fetch(client, id)];
1133
+ }); }); },
1134
+ new: function (fields) {
1135
+ return new NewStrategyPoolEvent([], fields);
1136
+ },
1137
+ kind: "StructClassReified",
1138
+ };
1139
+ };
1140
+ Object.defineProperty(NewStrategyPoolEvent, "r", {
1141
+ get: function () {
1142
+ return NewStrategyPoolEvent.reified();
1143
+ },
1144
+ enumerable: false,
1145
+ configurable: true
1146
+ });
1147
+ NewStrategyPoolEvent.phantom = function () {
1148
+ return (0, reified_1.phantom)(NewStrategyPoolEvent.reified());
1149
+ };
1150
+ Object.defineProperty(NewStrategyPoolEvent, "p", {
1151
+ get: function () {
1152
+ return NewStrategyPoolEvent.phantom();
1153
+ },
1154
+ enumerable: false,
1155
+ configurable: true
1156
+ });
1157
+ Object.defineProperty(NewStrategyPoolEvent, "bcs", {
1158
+ get: function () {
1159
+ return bcs_1.bcs.struct("NewStrategyPoolEvent", {
1160
+ id: structs_1.ID.bcs,
1161
+ 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); } }),
1162
+ });
1163
+ },
1164
+ enumerable: false,
1165
+ configurable: true
1166
+ });
1167
+ NewStrategyPoolEvent.fromFields = function (fields) {
1168
+ return NewStrategyPoolEvent.reified().new({
1169
+ id: (0, reified_1.decodeFromFields)(structs_1.ID.reified(), fields.id),
1170
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1171
+ });
1172
+ };
1173
+ NewStrategyPoolEvent.fromFieldsWithTypes = function (item) {
1174
+ if (!isNewStrategyPoolEvent(item.type)) {
1175
+ throw new Error("not a NewStrategyPoolEvent type");
1176
+ }
1177
+ return NewStrategyPoolEvent.reified().new({
1178
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.ID.reified(), item.fields.id),
1179
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1180
+ });
1181
+ };
1182
+ NewStrategyPoolEvent.fromBcs = function (data) {
1183
+ return NewStrategyPoolEvent.fromFields(NewStrategyPoolEvent.bcs.parse(data));
1184
+ };
1185
+ NewStrategyPoolEvent.prototype.toJSONField = function () {
1186
+ return {
1187
+ id: this.id,
1188
+ signer: this.signer,
1189
+ };
1190
+ };
1191
+ NewStrategyPoolEvent.prototype.toJSON = function () {
1192
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1193
+ };
1194
+ NewStrategyPoolEvent.fromJSONField = function (field) {
1195
+ return NewStrategyPoolEvent.reified().new({
1196
+ id: (0, reified_1.decodeFromJSONField)(structs_1.ID.reified(), field.id),
1197
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1198
+ });
1199
+ };
1200
+ NewStrategyPoolEvent.fromJSON = function (json) {
1201
+ if (json.$typeName !== NewStrategyPoolEvent.$typeName) {
1202
+ throw new Error("not a WithTwoGenerics json object");
1203
+ }
1204
+ return NewStrategyPoolEvent.fromJSONField(json);
1205
+ };
1206
+ NewStrategyPoolEvent.fromSuiParsedData = function (content) {
1207
+ if (content.dataType !== "moveObject") {
1208
+ throw new Error("not an object");
1209
+ }
1210
+ if (!isNewStrategyPoolEvent(content.type)) {
1211
+ throw new Error("object at ".concat(content.fields.id, " is not a NewStrategyPoolEvent object"));
1212
+ }
1213
+ return NewStrategyPoolEvent.fromFieldsWithTypes(content);
1214
+ };
1215
+ NewStrategyPoolEvent.fetch = function (client, id) {
1216
+ return __awaiter(this, void 0, void 0, function () {
1217
+ var res;
1218
+ var _a, _b;
1219
+ return __generator(this, function (_c) {
1220
+ switch (_c.label) {
1221
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1222
+ case 1:
1223
+ res = _c.sent();
1224
+ if (res.error) {
1225
+ throw new Error("error fetching NewStrategyPoolEvent object at id ".concat(id, ": ").concat(res.error.code));
1226
+ }
1227
+ 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)) {
1228
+ throw new Error("object at id ".concat(id, " is not a NewStrategyPoolEvent object"));
1229
+ }
1230
+ return [2 /*return*/, NewStrategyPoolEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1231
+ }
1232
+ });
1233
+ });
1234
+ };
1235
+ NewStrategyPoolEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategyPoolEvent";
1236
+ NewStrategyPoolEvent.$numTypeParams = 0;
1237
+ return NewStrategyPoolEvent;
1238
+ }());
1239
+ exports.NewStrategyPoolEvent = NewStrategyPoolEvent;
1240
+ /* ============================== NewStrategySignalEvent =============================== */
1241
+ function isNewStrategySignalEvent(type) {
1242
+ type = (0, util_1.compressSuiType)(type);
1243
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategySignalEvent";
1244
+ }
1245
+ exports.isNewStrategySignalEvent = isNewStrategySignalEvent;
1246
+ var NewStrategySignalEvent = /** @class */ (function () {
1247
+ function NewStrategySignalEvent(typeArgs, fields) {
1248
+ this.$typeName = NewStrategySignalEvent.$typeName;
1249
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategySignalEvent.$typeName], __read(typeArgs), false));
1250
+ this.$typeArgs = typeArgs;
1251
+ this.id = fields.id;
1252
+ this.vaultIndex = fields.vaultIndex;
1253
+ this.signalIndex = fields.signalIndex;
1254
+ this.signer = fields.signer;
1255
+ }
1256
+ NewStrategySignalEvent.reified = function () {
1257
+ var _this = this;
1258
+ return {
1259
+ typeName: NewStrategySignalEvent.$typeName,
1260
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategySignalEvent.$typeName], [], false)),
1261
+ typeArgs: [],
1262
+ reifiedTypeArgs: [],
1263
+ fromFields: function (fields) { return NewStrategySignalEvent.fromFields(fields); },
1264
+ fromFieldsWithTypes: function (item) { return NewStrategySignalEvent.fromFieldsWithTypes(item); },
1265
+ fromBcs: function (data) { return NewStrategySignalEvent.fromBcs(data); },
1266
+ bcs: NewStrategySignalEvent.bcs,
1267
+ fromJSONField: function (field) { return NewStrategySignalEvent.fromJSONField(field); },
1268
+ fromJSON: function (json) { return NewStrategySignalEvent.fromJSON(json); },
1269
+ fromSuiParsedData: function (content) { return NewStrategySignalEvent.fromSuiParsedData(content); },
1270
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1271
+ return [2 /*return*/, NewStrategySignalEvent.fetch(client, id)];
1272
+ }); }); },
1273
+ new: function (fields) {
1274
+ return new NewStrategySignalEvent([], fields);
1275
+ },
1276
+ kind: "StructClassReified",
1277
+ };
1278
+ };
1279
+ Object.defineProperty(NewStrategySignalEvent, "r", {
1280
+ get: function () {
1281
+ return NewStrategySignalEvent.reified();
1282
+ },
1283
+ enumerable: false,
1284
+ configurable: true
1285
+ });
1286
+ NewStrategySignalEvent.phantom = function () {
1287
+ return (0, reified_1.phantom)(NewStrategySignalEvent.reified());
1288
+ };
1289
+ Object.defineProperty(NewStrategySignalEvent, "p", {
1290
+ get: function () {
1291
+ return NewStrategySignalEvent.phantom();
1292
+ },
1293
+ enumerable: false,
1294
+ configurable: true
1295
+ });
1296
+ Object.defineProperty(NewStrategySignalEvent, "bcs", {
1297
+ get: function () {
1298
+ return bcs_1.bcs.struct("NewStrategySignalEvent", {
1299
+ id: structs_1.ID.bcs,
1300
+ vault_index: bcs_1.bcs.u64(),
1301
+ signal_index: bcs_1.bcs.u64(),
1302
+ 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); } }),
1303
+ });
1304
+ },
1305
+ enumerable: false,
1306
+ configurable: true
1307
+ });
1308
+ NewStrategySignalEvent.fromFields = function (fields) {
1309
+ return NewStrategySignalEvent.reified().new({
1310
+ id: (0, reified_1.decodeFromFields)(structs_1.ID.reified(), fields.id),
1311
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
1312
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
1313
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1314
+ });
1315
+ };
1316
+ NewStrategySignalEvent.fromFieldsWithTypes = function (item) {
1317
+ if (!isNewStrategySignalEvent(item.type)) {
1318
+ throw new Error("not a NewStrategySignalEvent type");
1319
+ }
1320
+ return NewStrategySignalEvent.reified().new({
1321
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.ID.reified(), item.fields.id),
1322
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
1323
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
1324
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1325
+ });
1326
+ };
1327
+ NewStrategySignalEvent.fromBcs = function (data) {
1328
+ return NewStrategySignalEvent.fromFields(NewStrategySignalEvent.bcs.parse(data));
1329
+ };
1330
+ NewStrategySignalEvent.prototype.toJSONField = function () {
1331
+ return {
1332
+ id: this.id,
1333
+ vaultIndex: this.vaultIndex.toString(),
1334
+ signalIndex: this.signalIndex.toString(),
1335
+ signer: this.signer,
1336
+ };
1337
+ };
1338
+ NewStrategySignalEvent.prototype.toJSON = function () {
1339
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1340
+ };
1341
+ NewStrategySignalEvent.fromJSONField = function (field) {
1342
+ return NewStrategySignalEvent.reified().new({
1343
+ id: (0, reified_1.decodeFromJSONField)(structs_1.ID.reified(), field.id),
1344
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
1345
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
1346
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1347
+ });
1348
+ };
1349
+ NewStrategySignalEvent.fromJSON = function (json) {
1350
+ if (json.$typeName !== NewStrategySignalEvent.$typeName) {
1351
+ throw new Error("not a WithTwoGenerics json object");
1352
+ }
1353
+ return NewStrategySignalEvent.fromJSONField(json);
1354
+ };
1355
+ NewStrategySignalEvent.fromSuiParsedData = function (content) {
1356
+ if (content.dataType !== "moveObject") {
1357
+ throw new Error("not an object");
1358
+ }
1359
+ if (!isNewStrategySignalEvent(content.type)) {
1360
+ throw new Error("object at ".concat(content.fields.id, " is not a NewStrategySignalEvent object"));
1361
+ }
1362
+ return NewStrategySignalEvent.fromFieldsWithTypes(content);
1363
+ };
1364
+ NewStrategySignalEvent.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 NewStrategySignalEvent 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" || !isNewStrategySignalEvent(res.data.bcs.type)) {
1377
+ throw new Error("object at id ".concat(id, " is not a NewStrategySignalEvent object"));
1378
+ }
1379
+ return [2 /*return*/, NewStrategySignalEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1380
+ }
1381
+ });
1382
+ });
1383
+ };
1384
+ NewStrategySignalEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategySignalEvent";
1385
+ NewStrategySignalEvent.$numTypeParams = 0;
1386
+ return NewStrategySignalEvent;
1387
+ }());
1388
+ exports.NewStrategySignalEvent = NewStrategySignalEvent;
1389
+ /* ============================== NewStrategyVaultEvent =============================== */
1390
+ function isNewStrategyVaultEvent(type) {
1391
+ type = (0, util_1.compressSuiType)(type);
1392
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategyVaultEvent";
1393
+ }
1394
+ exports.isNewStrategyVaultEvent = isNewStrategyVaultEvent;
1395
+ var NewStrategyVaultEvent = /** @class */ (function () {
1396
+ function NewStrategyVaultEvent(typeArgs, fields) {
1397
+ this.$typeName = NewStrategyVaultEvent.$typeName;
1398
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyVaultEvent.$typeName], __read(typeArgs), false));
1399
+ this.$typeArgs = typeArgs;
1400
+ this.id = fields.id;
1401
+ this.vaultIndex = fields.vaultIndex;
1402
+ this.signer = fields.signer;
1403
+ }
1404
+ NewStrategyVaultEvent.reified = function () {
1405
+ var _this = this;
1406
+ return {
1407
+ typeName: NewStrategyVaultEvent.$typeName,
1408
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([NewStrategyVaultEvent.$typeName], [], false)),
1409
+ typeArgs: [],
1410
+ reifiedTypeArgs: [],
1411
+ fromFields: function (fields) { return NewStrategyVaultEvent.fromFields(fields); },
1412
+ fromFieldsWithTypes: function (item) { return NewStrategyVaultEvent.fromFieldsWithTypes(item); },
1413
+ fromBcs: function (data) { return NewStrategyVaultEvent.fromBcs(data); },
1414
+ bcs: NewStrategyVaultEvent.bcs,
1415
+ fromJSONField: function (field) { return NewStrategyVaultEvent.fromJSONField(field); },
1416
+ fromJSON: function (json) { return NewStrategyVaultEvent.fromJSON(json); },
1417
+ fromSuiParsedData: function (content) { return NewStrategyVaultEvent.fromSuiParsedData(content); },
1418
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1419
+ return [2 /*return*/, NewStrategyVaultEvent.fetch(client, id)];
1420
+ }); }); },
1421
+ new: function (fields) {
1422
+ return new NewStrategyVaultEvent([], fields);
1423
+ },
1424
+ kind: "StructClassReified",
1425
+ };
1426
+ };
1427
+ Object.defineProperty(NewStrategyVaultEvent, "r", {
1428
+ get: function () {
1429
+ return NewStrategyVaultEvent.reified();
1430
+ },
1431
+ enumerable: false,
1432
+ configurable: true
1433
+ });
1434
+ NewStrategyVaultEvent.phantom = function () {
1435
+ return (0, reified_1.phantom)(NewStrategyVaultEvent.reified());
1436
+ };
1437
+ Object.defineProperty(NewStrategyVaultEvent, "p", {
1438
+ get: function () {
1439
+ return NewStrategyVaultEvent.phantom();
1440
+ },
1441
+ enumerable: false,
1442
+ configurable: true
1443
+ });
1444
+ Object.defineProperty(NewStrategyVaultEvent, "bcs", {
1445
+ get: function () {
1446
+ return bcs_1.bcs.struct("NewStrategyVaultEvent", {
1447
+ id: structs_1.ID.bcs,
1448
+ vault_index: bcs_1.bcs.u64(),
1449
+ 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); } }),
1450
+ });
1451
+ },
1452
+ enumerable: false,
1453
+ configurable: true
1454
+ });
1455
+ NewStrategyVaultEvent.fromFields = function (fields) {
1456
+ return NewStrategyVaultEvent.reified().new({
1457
+ id: (0, reified_1.decodeFromFields)(structs_1.ID.reified(), fields.id),
1458
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
1459
+ signer: (0, reified_1.decodeFromFields)("address", fields.signer),
1460
+ });
1461
+ };
1462
+ NewStrategyVaultEvent.fromFieldsWithTypes = function (item) {
1463
+ if (!isNewStrategyVaultEvent(item.type)) {
1464
+ throw new Error("not a NewStrategyVaultEvent type");
1465
+ }
1466
+ return NewStrategyVaultEvent.reified().new({
1467
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.ID.reified(), item.fields.id),
1468
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
1469
+ signer: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.signer),
1470
+ });
1471
+ };
1472
+ NewStrategyVaultEvent.fromBcs = function (data) {
1473
+ return NewStrategyVaultEvent.fromFields(NewStrategyVaultEvent.bcs.parse(data));
1474
+ };
1475
+ NewStrategyVaultEvent.prototype.toJSONField = function () {
1476
+ return {
1477
+ id: this.id,
1478
+ vaultIndex: this.vaultIndex.toString(),
1479
+ signer: this.signer,
1480
+ };
1481
+ };
1482
+ NewStrategyVaultEvent.prototype.toJSON = function () {
1483
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1484
+ };
1485
+ NewStrategyVaultEvent.fromJSONField = function (field) {
1486
+ return NewStrategyVaultEvent.reified().new({
1487
+ id: (0, reified_1.decodeFromJSONField)(structs_1.ID.reified(), field.id),
1488
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
1489
+ signer: (0, reified_1.decodeFromJSONField)("address", field.signer),
1490
+ });
1491
+ };
1492
+ NewStrategyVaultEvent.fromJSON = function (json) {
1493
+ if (json.$typeName !== NewStrategyVaultEvent.$typeName) {
1494
+ throw new Error("not a WithTwoGenerics json object");
1495
+ }
1496
+ return NewStrategyVaultEvent.fromJSONField(json);
1497
+ };
1498
+ NewStrategyVaultEvent.fromSuiParsedData = function (content) {
1499
+ if (content.dataType !== "moveObject") {
1500
+ throw new Error("not an object");
1501
+ }
1502
+ if (!isNewStrategyVaultEvent(content.type)) {
1503
+ throw new Error("object at ".concat(content.fields.id, " is not a NewStrategyVaultEvent object"));
1504
+ }
1505
+ return NewStrategyVaultEvent.fromFieldsWithTypes(content);
1506
+ };
1507
+ NewStrategyVaultEvent.fetch = function (client, id) {
1508
+ return __awaiter(this, void 0, void 0, function () {
1509
+ var res;
1510
+ var _a, _b;
1511
+ return __generator(this, function (_c) {
1512
+ switch (_c.label) {
1513
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1514
+ case 1:
1515
+ res = _c.sent();
1516
+ if (res.error) {
1517
+ throw new Error("error fetching NewStrategyVaultEvent object at id ".concat(id, ": ").concat(res.error.code));
1518
+ }
1519
+ 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)) {
1520
+ throw new Error("object at id ".concat(id, " is not a NewStrategyVaultEvent object"));
1521
+ }
1522
+ return [2 /*return*/, NewStrategyVaultEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1523
+ }
1524
+ });
1525
+ });
1526
+ };
1527
+ NewStrategyVaultEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::NewStrategyVaultEvent";
1528
+ NewStrategyVaultEvent.$numTypeParams = 0;
1529
+ return NewStrategyVaultEvent;
1530
+ }());
1531
+ exports.NewStrategyVaultEvent = NewStrategyVaultEvent;
1532
+ /* ============================== Strategy =============================== */
1533
+ function isStrategy(type) {
1534
+ type = (0, util_1.compressSuiType)(type);
1535
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::Strategy";
1536
+ }
1537
+ exports.isStrategy = isStrategy;
1538
+ var Strategy = /** @class */ (function () {
1539
+ function Strategy(typeArgs, fields) {
1540
+ this.$typeName = Strategy.$typeName;
1541
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([Strategy.$typeName], __read(typeArgs), false));
1542
+ this.$typeArgs = typeArgs;
1543
+ this.id = fields.id;
1544
+ this.vaultIndex = fields.vaultIndex;
1545
+ this.signalIndex = fields.signalIndex;
1546
+ this.user = fields.user;
1547
+ this.pricePercentage = fields.pricePercentage;
1548
+ this.size = fields.size;
1549
+ this.maxTimes = fields.maxTimes;
1550
+ this.targetRounds = fields.targetRounds;
1551
+ this.receipts = fields.receipts;
1552
+ this.active = fields.active;
1553
+ this.u64Padding = fields.u64Padding;
1554
+ this.bidTimes = fields.bidTimes;
1555
+ this.bidRound = fields.bidRound;
1556
+ this.bidTsMs = fields.bidTsMs;
1557
+ }
1558
+ Strategy.reified = function () {
1559
+ var _this = this;
1560
+ return {
1561
+ typeName: Strategy.$typeName,
1562
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([Strategy.$typeName], [], false)),
1563
+ typeArgs: [],
1564
+ reifiedTypeArgs: [],
1565
+ fromFields: function (fields) { return Strategy.fromFields(fields); },
1566
+ fromFieldsWithTypes: function (item) { return Strategy.fromFieldsWithTypes(item); },
1567
+ fromBcs: function (data) { return Strategy.fromBcs(data); },
1568
+ bcs: Strategy.bcs,
1569
+ fromJSONField: function (field) { return Strategy.fromJSONField(field); },
1570
+ fromJSON: function (json) { return Strategy.fromJSON(json); },
1571
+ fromSuiParsedData: function (content) { return Strategy.fromSuiParsedData(content); },
1572
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1573
+ return [2 /*return*/, Strategy.fetch(client, id)];
1574
+ }); }); },
1575
+ new: function (fields) {
1576
+ return new Strategy([], fields);
1577
+ },
1578
+ kind: "StructClassReified",
1579
+ };
1580
+ };
1581
+ Object.defineProperty(Strategy, "r", {
1582
+ get: function () {
1583
+ return Strategy.reified();
1584
+ },
1585
+ enumerable: false,
1586
+ configurable: true
1587
+ });
1588
+ Strategy.phantom = function () {
1589
+ return (0, reified_1.phantom)(Strategy.reified());
1590
+ };
1591
+ Object.defineProperty(Strategy, "p", {
1592
+ get: function () {
1593
+ return Strategy.phantom();
1594
+ },
1595
+ enumerable: false,
1596
+ configurable: true
1597
+ });
1598
+ Object.defineProperty(Strategy, "bcs", {
1599
+ get: function () {
1600
+ return bcs_1.bcs.struct("Strategy", {
1601
+ id: structs_1.UID.bcs,
1602
+ vault_index: bcs_1.bcs.u64(),
1603
+ signal_index: bcs_1.bcs.u64(),
1604
+ 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); } }),
1605
+ price_percentage: bcs_1.bcs.u64(),
1606
+ size: bcs_1.bcs.u64(),
1607
+ max_times: bcs_1.bcs.u64(),
1608
+ target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1609
+ receipts: bcs_1.bcs.vector(structs_4.TypusBidReceipt.bcs),
1610
+ active: bcs_1.bcs.bool(),
1611
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
1612
+ bid_times: bcs_1.bcs.u64(),
1613
+ bid_round: bcs_1.bcs.u64(),
1614
+ bid_ts_ms: bcs_1.bcs.u64(),
1615
+ });
1616
+ },
1617
+ enumerable: false,
1618
+ configurable: true
1619
+ });
1620
+ Strategy.fromFields = function (fields) {
1621
+ return Strategy.reified().new({
1622
+ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id),
1623
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
1624
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
1625
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
1626
+ pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage),
1627
+ size: (0, reified_1.decodeFromFields)("u64", fields.size),
1628
+ maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times),
1629
+ targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds),
1630
+ receipts: (0, reified_1.decodeFromFields)(reified.vector(structs_4.TypusBidReceipt.reified()), fields.receipts),
1631
+ active: (0, reified_1.decodeFromFields)("bool", fields.active),
1632
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
1633
+ bidTimes: (0, reified_1.decodeFromFields)("u64", fields.bid_times),
1634
+ bidRound: (0, reified_1.decodeFromFields)("u64", fields.bid_round),
1635
+ bidTsMs: (0, reified_1.decodeFromFields)("u64", fields.bid_ts_ms),
1636
+ });
1637
+ };
1638
+ Strategy.fromFieldsWithTypes = function (item) {
1639
+ if (!isStrategy(item.type)) {
1640
+ throw new Error("not a Strategy type");
1641
+ }
1642
+ return Strategy.reified().new({
1643
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id),
1644
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
1645
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
1646
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
1647
+ pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage),
1648
+ size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size),
1649
+ maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times),
1650
+ targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds),
1651
+ receipts: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_4.TypusBidReceipt.reified()), item.fields.receipts),
1652
+ active: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.active),
1653
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
1654
+ bidTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_times),
1655
+ bidRound: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_round),
1656
+ bidTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_ts_ms),
1657
+ });
1658
+ };
1659
+ Strategy.fromBcs = function (data) {
1660
+ return Strategy.fromFields(Strategy.bcs.parse(data));
1661
+ };
1662
+ Strategy.prototype.toJSONField = function () {
1663
+ return {
1664
+ id: this.id,
1665
+ vaultIndex: this.vaultIndex.toString(),
1666
+ signalIndex: this.signalIndex.toString(),
1667
+ user: this.user,
1668
+ pricePercentage: this.pricePercentage.toString(),
1669
+ size: this.size.toString(),
1670
+ maxTimes: this.maxTimes.toString(),
1671
+ targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds),
1672
+ receipts: (0, reified_1.fieldToJSON)("vector<0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118::vault::TypusBidReceipt>", this.receipts),
1673
+ active: this.active,
1674
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
1675
+ bidTimes: this.bidTimes.toString(),
1676
+ bidRound: this.bidRound.toString(),
1677
+ bidTsMs: this.bidTsMs.toString(),
1678
+ };
1679
+ };
1680
+ Strategy.prototype.toJSON = function () {
1681
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1682
+ };
1683
+ Strategy.fromJSONField = function (field) {
1684
+ return Strategy.reified().new({
1685
+ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id),
1686
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
1687
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
1688
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
1689
+ pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage),
1690
+ size: (0, reified_1.decodeFromJSONField)("u64", field.size),
1691
+ maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes),
1692
+ targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds),
1693
+ receipts: (0, reified_1.decodeFromJSONField)(reified.vector(structs_4.TypusBidReceipt.reified()), field.receipts),
1694
+ active: (0, reified_1.decodeFromJSONField)("bool", field.active),
1695
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
1696
+ bidTimes: (0, reified_1.decodeFromJSONField)("u64", field.bidTimes),
1697
+ bidRound: (0, reified_1.decodeFromJSONField)("u64", field.bidRound),
1698
+ bidTsMs: (0, reified_1.decodeFromJSONField)("u64", field.bidTsMs),
1699
+ });
1700
+ };
1701
+ Strategy.fromJSON = function (json) {
1702
+ if (json.$typeName !== Strategy.$typeName) {
1703
+ throw new Error("not a WithTwoGenerics json object");
1704
+ }
1705
+ return Strategy.fromJSONField(json);
1706
+ };
1707
+ Strategy.fromSuiParsedData = function (content) {
1708
+ if (content.dataType !== "moveObject") {
1709
+ throw new Error("not an object");
1710
+ }
1711
+ if (!isStrategy(content.type)) {
1712
+ throw new Error("object at ".concat(content.fields.id, " is not a Strategy object"));
1713
+ }
1714
+ return Strategy.fromFieldsWithTypes(content);
1715
+ };
1716
+ Strategy.fetch = function (client, id) {
1717
+ return __awaiter(this, void 0, void 0, function () {
1718
+ var res;
1719
+ var _a, _b;
1720
+ return __generator(this, function (_c) {
1721
+ switch (_c.label) {
1722
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1723
+ case 1:
1724
+ res = _c.sent();
1725
+ if (res.error) {
1726
+ throw new Error("error fetching Strategy object at id ".concat(id, ": ").concat(res.error.code));
1727
+ }
1728
+ 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)) {
1729
+ throw new Error("object at id ".concat(id, " is not a Strategy object"));
1730
+ }
1731
+ return [2 /*return*/, Strategy.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1732
+ }
1733
+ });
1734
+ });
1735
+ };
1736
+ Strategy.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::Strategy";
1737
+ Strategy.$numTypeParams = 0;
1738
+ return Strategy;
1739
+ }());
1740
+ exports.Strategy = Strategy;
1741
+ /* ============================== StrategyPool =============================== */
1742
+ function isStrategyPool(type) {
1743
+ type = (0, util_1.compressSuiType)(type);
1744
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::StrategyPool";
1745
+ }
1746
+ exports.isStrategyPool = isStrategyPool;
1747
+ var StrategyPool = /** @class */ (function () {
1748
+ function StrategyPool(typeArgs, fields) {
1749
+ this.$typeName = StrategyPool.$typeName;
1750
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StrategyPool.$typeName], __read(typeArgs), false));
1751
+ this.$typeArgs = typeArgs;
1752
+ this.id = fields.id;
1753
+ this.strategies = fields.strategies;
1754
+ this.authority = fields.authority;
1755
+ }
1756
+ StrategyPool.reified = function () {
1757
+ var _this = this;
1758
+ return {
1759
+ typeName: StrategyPool.$typeName,
1760
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StrategyPool.$typeName], [], false)),
1761
+ typeArgs: [],
1762
+ reifiedTypeArgs: [],
1763
+ fromFields: function (fields) { return StrategyPool.fromFields(fields); },
1764
+ fromFieldsWithTypes: function (item) { return StrategyPool.fromFieldsWithTypes(item); },
1765
+ fromBcs: function (data) { return StrategyPool.fromBcs(data); },
1766
+ bcs: StrategyPool.bcs,
1767
+ fromJSONField: function (field) { return StrategyPool.fromJSONField(field); },
1768
+ fromJSON: function (json) { return StrategyPool.fromJSON(json); },
1769
+ fromSuiParsedData: function (content) { return StrategyPool.fromSuiParsedData(content); },
1770
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1771
+ return [2 /*return*/, StrategyPool.fetch(client, id)];
1772
+ }); }); },
1773
+ new: function (fields) {
1774
+ return new StrategyPool([], fields);
1775
+ },
1776
+ kind: "StructClassReified",
1777
+ };
1778
+ };
1779
+ Object.defineProperty(StrategyPool, "r", {
1780
+ get: function () {
1781
+ return StrategyPool.reified();
1782
+ },
1783
+ enumerable: false,
1784
+ configurable: true
1785
+ });
1786
+ StrategyPool.phantom = function () {
1787
+ return (0, reified_1.phantom)(StrategyPool.reified());
1788
+ };
1789
+ Object.defineProperty(StrategyPool, "p", {
1790
+ get: function () {
1791
+ return StrategyPool.phantom();
1792
+ },
1793
+ enumerable: false,
1794
+ configurable: true
1795
+ });
1796
+ Object.defineProperty(StrategyPool, "bcs", {
1797
+ get: function () {
1798
+ return bcs_1.bcs.struct("StrategyPool", {
1799
+ id: structs_1.UID.bcs,
1800
+ strategies: structs_3.VecMap.bcs(bcs_1.bcs.u64(), structs_3.VecMap.bcs(bcs_1.bcs.u64(), structs_2.TableVec.bcs)),
1801
+ 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); } })),
1802
+ });
1803
+ },
1804
+ enumerable: false,
1805
+ configurable: true
1806
+ });
1807
+ StrategyPool.fromFields = function (fields) {
1808
+ return StrategyPool.reified().new({
1809
+ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id),
1810
+ 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),
1811
+ authority: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.authority),
1812
+ });
1813
+ };
1814
+ StrategyPool.fromFieldsWithTypes = function (item) {
1815
+ if (!isStrategyPool(item.type)) {
1816
+ throw new Error("not a StrategyPool type");
1817
+ }
1818
+ return StrategyPool.reified().new({
1819
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id),
1820
+ 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),
1821
+ authority: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.authority),
1822
+ });
1823
+ };
1824
+ StrategyPool.fromBcs = function (data) {
1825
+ return StrategyPool.fromFields(StrategyPool.bcs.parse(data));
1826
+ };
1827
+ StrategyPool.prototype.toJSONField = function () {
1828
+ return {
1829
+ id: this.id,
1830
+ strategies: this.strategies.toJSONField(),
1831
+ authority: (0, reified_1.fieldToJSON)("vector<address>", this.authority),
1832
+ };
1833
+ };
1834
+ StrategyPool.prototype.toJSON = function () {
1835
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1836
+ };
1837
+ StrategyPool.fromJSONField = function (field) {
1838
+ return StrategyPool.reified().new({
1839
+ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id),
1840
+ 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),
1841
+ authority: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.authority),
1842
+ });
1843
+ };
1844
+ StrategyPool.fromJSON = function (json) {
1845
+ if (json.$typeName !== StrategyPool.$typeName) {
1846
+ throw new Error("not a WithTwoGenerics json object");
1847
+ }
1848
+ return StrategyPool.fromJSONField(json);
1849
+ };
1850
+ StrategyPool.fromSuiParsedData = function (content) {
1851
+ if (content.dataType !== "moveObject") {
1852
+ throw new Error("not an object");
1853
+ }
1854
+ if (!isStrategyPool(content.type)) {
1855
+ throw new Error("object at ".concat(content.fields.id, " is not a StrategyPool object"));
1856
+ }
1857
+ return StrategyPool.fromFieldsWithTypes(content);
1858
+ };
1859
+ StrategyPool.fetch = function (client, id) {
1860
+ return __awaiter(this, void 0, void 0, function () {
1861
+ var res;
1862
+ var _a, _b;
1863
+ return __generator(this, function (_c) {
1864
+ switch (_c.label) {
1865
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
1866
+ case 1:
1867
+ res = _c.sent();
1868
+ if (res.error) {
1869
+ throw new Error("error fetching StrategyPool object at id ".concat(id, ": ").concat(res.error.code));
1870
+ }
1871
+ 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)) {
1872
+ throw new Error("object at id ".concat(id, " is not a StrategyPool object"));
1873
+ }
1874
+ return [2 /*return*/, StrategyPool.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
1875
+ }
1876
+ });
1877
+ });
1878
+ };
1879
+ StrategyPool.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::StrategyPool";
1880
+ StrategyPool.$numTypeParams = 0;
1881
+ return StrategyPool;
1882
+ }());
1883
+ exports.StrategyPool = StrategyPool;
1884
+ /* ============================== StrategyPoolV2 =============================== */
1885
+ function isStrategyPoolV2(type) {
1886
+ type = (0, util_1.compressSuiType)(type);
1887
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::StrategyPoolV2";
1888
+ }
1889
+ exports.isStrategyPoolV2 = isStrategyPoolV2;
1890
+ var StrategyPoolV2 = /** @class */ (function () {
1891
+ function StrategyPoolV2(typeArgs, fields) {
1892
+ this.$typeName = StrategyPoolV2.$typeName;
1893
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StrategyPoolV2.$typeName], __read(typeArgs), false));
1894
+ this.$typeArgs = typeArgs;
1895
+ this.id = fields.id;
1896
+ this.strategies = fields.strategies;
1897
+ this.authority = fields.authority;
1898
+ }
1899
+ StrategyPoolV2.reified = function () {
1900
+ var _this = this;
1901
+ return {
1902
+ typeName: StrategyPoolV2.$typeName,
1903
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StrategyPoolV2.$typeName], [], false)),
1904
+ typeArgs: [],
1905
+ reifiedTypeArgs: [],
1906
+ fromFields: function (fields) { return StrategyPoolV2.fromFields(fields); },
1907
+ fromFieldsWithTypes: function (item) { return StrategyPoolV2.fromFieldsWithTypes(item); },
1908
+ fromBcs: function (data) { return StrategyPoolV2.fromBcs(data); },
1909
+ bcs: StrategyPoolV2.bcs,
1910
+ fromJSONField: function (field) { return StrategyPoolV2.fromJSONField(field); },
1911
+ fromJSON: function (json) { return StrategyPoolV2.fromJSON(json); },
1912
+ fromSuiParsedData: function (content) { return StrategyPoolV2.fromSuiParsedData(content); },
1913
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
1914
+ return [2 /*return*/, StrategyPoolV2.fetch(client, id)];
1915
+ }); }); },
1916
+ new: function (fields) {
1917
+ return new StrategyPoolV2([], fields);
1918
+ },
1919
+ kind: "StructClassReified",
1920
+ };
1921
+ };
1922
+ Object.defineProperty(StrategyPoolV2, "r", {
1923
+ get: function () {
1924
+ return StrategyPoolV2.reified();
1925
+ },
1926
+ enumerable: false,
1927
+ configurable: true
1928
+ });
1929
+ StrategyPoolV2.phantom = function () {
1930
+ return (0, reified_1.phantom)(StrategyPoolV2.reified());
1931
+ };
1932
+ Object.defineProperty(StrategyPoolV2, "p", {
1933
+ get: function () {
1934
+ return StrategyPoolV2.phantom();
1935
+ },
1936
+ enumerable: false,
1937
+ configurable: true
1938
+ });
1939
+ Object.defineProperty(StrategyPoolV2, "bcs", {
1940
+ get: function () {
1941
+ return bcs_1.bcs.struct("StrategyPoolV2", {
1942
+ id: structs_1.UID.bcs,
1943
+ strategies: structs_3.VecMap.bcs(bcs_1.bcs.u64(), structs_3.VecMap.bcs(bcs_1.bcs.u64(), structs_2.TableVec.bcs)),
1944
+ 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); } })),
1945
+ });
1946
+ },
1947
+ enumerable: false,
1948
+ configurable: true
1949
+ });
1950
+ StrategyPoolV2.fromFields = function (fields) {
1951
+ return StrategyPoolV2.reified().new({
1952
+ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id),
1953
+ 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),
1954
+ authority: (0, reified_1.decodeFromFields)(reified.vector("address"), fields.authority),
1955
+ });
1956
+ };
1957
+ StrategyPoolV2.fromFieldsWithTypes = function (item) {
1958
+ if (!isStrategyPoolV2(item.type)) {
1959
+ throw new Error("not a StrategyPoolV2 type");
1960
+ }
1961
+ return StrategyPoolV2.reified().new({
1962
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id),
1963
+ 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),
1964
+ authority: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("address"), item.fields.authority),
1965
+ });
1966
+ };
1967
+ StrategyPoolV2.fromBcs = function (data) {
1968
+ return StrategyPoolV2.fromFields(StrategyPoolV2.bcs.parse(data));
1969
+ };
1970
+ StrategyPoolV2.prototype.toJSONField = function () {
1971
+ return {
1972
+ id: this.id,
1973
+ strategies: this.strategies.toJSONField(),
1974
+ authority: (0, reified_1.fieldToJSON)("vector<address>", this.authority),
1975
+ };
1976
+ };
1977
+ StrategyPoolV2.prototype.toJSON = function () {
1978
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
1979
+ };
1980
+ StrategyPoolV2.fromJSONField = function (field) {
1981
+ return StrategyPoolV2.reified().new({
1982
+ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id),
1983
+ 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),
1984
+ authority: (0, reified_1.decodeFromJSONField)(reified.vector("address"), field.authority),
1985
+ });
1986
+ };
1987
+ StrategyPoolV2.fromJSON = function (json) {
1988
+ if (json.$typeName !== StrategyPoolV2.$typeName) {
1989
+ throw new Error("not a WithTwoGenerics json object");
1990
+ }
1991
+ return StrategyPoolV2.fromJSONField(json);
1992
+ };
1993
+ StrategyPoolV2.fromSuiParsedData = function (content) {
1994
+ if (content.dataType !== "moveObject") {
1995
+ throw new Error("not an object");
1996
+ }
1997
+ if (!isStrategyPoolV2(content.type)) {
1998
+ throw new Error("object at ".concat(content.fields.id, " is not a StrategyPoolV2 object"));
1999
+ }
2000
+ return StrategyPoolV2.fromFieldsWithTypes(content);
2001
+ };
2002
+ StrategyPoolV2.fetch = function (client, id) {
2003
+ return __awaiter(this, void 0, void 0, function () {
2004
+ var res;
2005
+ var _a, _b;
2006
+ return __generator(this, function (_c) {
2007
+ switch (_c.label) {
2008
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2009
+ case 1:
2010
+ res = _c.sent();
2011
+ if (res.error) {
2012
+ throw new Error("error fetching StrategyPoolV2 object at id ".concat(id, ": ").concat(res.error.code));
2013
+ }
2014
+ 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)) {
2015
+ throw new Error("object at id ".concat(id, " is not a StrategyPoolV2 object"));
2016
+ }
2017
+ return [2 /*return*/, StrategyPoolV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2018
+ }
2019
+ });
2020
+ });
2021
+ };
2022
+ StrategyPoolV2.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::StrategyPoolV2";
2023
+ StrategyPoolV2.$numTypeParams = 0;
2024
+ return StrategyPoolV2;
2025
+ }());
2026
+ exports.StrategyPoolV2 = StrategyPoolV2;
2027
+ /* ============================== StrategyV2 =============================== */
2028
+ function isStrategyV2(type) {
2029
+ type = (0, util_1.compressSuiType)(type);
2030
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::StrategyV2";
2031
+ }
2032
+ exports.isStrategyV2 = isStrategyV2;
2033
+ var StrategyV2 = /** @class */ (function () {
2034
+ function StrategyV2(typeArgs, fields) {
2035
+ this.$typeName = StrategyV2.$typeName;
2036
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([StrategyV2.$typeName], __read(typeArgs), false));
2037
+ this.$typeArgs = typeArgs;
2038
+ this.id = fields.id;
2039
+ this.vaultIndex = fields.vaultIndex;
2040
+ this.signalIndex = fields.signalIndex;
2041
+ this.user = fields.user;
2042
+ this.pricePercentage = fields.pricePercentage;
2043
+ this.size = fields.size;
2044
+ this.maxTimes = fields.maxTimes;
2045
+ this.targetRounds = fields.targetRounds;
2046
+ this.receipts = fields.receipts;
2047
+ this.active = fields.active;
2048
+ this.u64Padding = fields.u64Padding;
2049
+ this.bidTimes = fields.bidTimes;
2050
+ this.bidRound = fields.bidRound;
2051
+ this.bidTsMs = fields.bidTsMs;
2052
+ this.bidRounds = fields.bidRounds;
2053
+ this.accumulatedProfit = fields.accumulatedProfit;
2054
+ }
2055
+ StrategyV2.reified = function () {
2056
+ var _this = this;
2057
+ return {
2058
+ typeName: StrategyV2.$typeName,
2059
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([StrategyV2.$typeName], [], false)),
2060
+ typeArgs: [],
2061
+ reifiedTypeArgs: [],
2062
+ fromFields: function (fields) { return StrategyV2.fromFields(fields); },
2063
+ fromFieldsWithTypes: function (item) { return StrategyV2.fromFieldsWithTypes(item); },
2064
+ fromBcs: function (data) { return StrategyV2.fromBcs(data); },
2065
+ bcs: StrategyV2.bcs,
2066
+ fromJSONField: function (field) { return StrategyV2.fromJSONField(field); },
2067
+ fromJSON: function (json) { return StrategyV2.fromJSON(json); },
2068
+ fromSuiParsedData: function (content) { return StrategyV2.fromSuiParsedData(content); },
2069
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2070
+ return [2 /*return*/, StrategyV2.fetch(client, id)];
2071
+ }); }); },
2072
+ new: function (fields) {
2073
+ return new StrategyV2([], fields);
2074
+ },
2075
+ kind: "StructClassReified",
2076
+ };
2077
+ };
2078
+ Object.defineProperty(StrategyV2, "r", {
2079
+ get: function () {
2080
+ return StrategyV2.reified();
2081
+ },
2082
+ enumerable: false,
2083
+ configurable: true
2084
+ });
2085
+ StrategyV2.phantom = function () {
2086
+ return (0, reified_1.phantom)(StrategyV2.reified());
2087
+ };
2088
+ Object.defineProperty(StrategyV2, "p", {
2089
+ get: function () {
2090
+ return StrategyV2.phantom();
2091
+ },
2092
+ enumerable: false,
2093
+ configurable: true
2094
+ });
2095
+ Object.defineProperty(StrategyV2, "bcs", {
2096
+ get: function () {
2097
+ return bcs_1.bcs.struct("StrategyV2", {
2098
+ id: structs_1.UID.bcs,
2099
+ vault_index: bcs_1.bcs.u64(),
2100
+ signal_index: bcs_1.bcs.u64(),
2101
+ 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); } }),
2102
+ price_percentage: bcs_1.bcs.u64(),
2103
+ size: bcs_1.bcs.u64(),
2104
+ max_times: bcs_1.bcs.u64(),
2105
+ target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2106
+ receipts: bcs_1.bcs.vector(structs_4.TypusBidReceipt.bcs),
2107
+ active: bcs_1.bcs.bool(),
2108
+ u64_padding: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2109
+ bid_times: bcs_1.bcs.u64(),
2110
+ bid_round: bcs_1.bcs.u64(),
2111
+ bid_ts_ms: bcs_1.bcs.u64(),
2112
+ bid_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2113
+ accumulated_profit: bcs_1.bcs.u64(),
2114
+ });
2115
+ },
2116
+ enumerable: false,
2117
+ configurable: true
2118
+ });
2119
+ StrategyV2.fromFields = function (fields) {
2120
+ return StrategyV2.reified().new({
2121
+ id: (0, reified_1.decodeFromFields)(structs_1.UID.reified(), fields.id),
2122
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
2123
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
2124
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
2125
+ pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage),
2126
+ size: (0, reified_1.decodeFromFields)("u64", fields.size),
2127
+ maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times),
2128
+ targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds),
2129
+ receipts: (0, reified_1.decodeFromFields)(reified.vector(structs_4.TypusBidReceipt.reified()), fields.receipts),
2130
+ active: (0, reified_1.decodeFromFields)("bool", fields.active),
2131
+ u64Padding: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.u64_padding),
2132
+ bidTimes: (0, reified_1.decodeFromFields)("u64", fields.bid_times),
2133
+ bidRound: (0, reified_1.decodeFromFields)("u64", fields.bid_round),
2134
+ bidTsMs: (0, reified_1.decodeFromFields)("u64", fields.bid_ts_ms),
2135
+ bidRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.bid_rounds),
2136
+ accumulatedProfit: (0, reified_1.decodeFromFields)("u64", fields.accumulated_profit),
2137
+ });
2138
+ };
2139
+ StrategyV2.fromFieldsWithTypes = function (item) {
2140
+ if (!isStrategyV2(item.type)) {
2141
+ throw new Error("not a StrategyV2 type");
2142
+ }
2143
+ return StrategyV2.reified().new({
2144
+ id: (0, reified_1.decodeFromFieldsWithTypes)(structs_1.UID.reified(), item.fields.id),
2145
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
2146
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
2147
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
2148
+ pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage),
2149
+ size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size),
2150
+ maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times),
2151
+ targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds),
2152
+ receipts: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector(structs_4.TypusBidReceipt.reified()), item.fields.receipts),
2153
+ active: (0, reified_1.decodeFromFieldsWithTypes)("bool", item.fields.active),
2154
+ u64Padding: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.u64_padding),
2155
+ bidTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_times),
2156
+ bidRound: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_round),
2157
+ bidTsMs: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.bid_ts_ms),
2158
+ bidRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.bid_rounds),
2159
+ accumulatedProfit: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.accumulated_profit),
2160
+ });
2161
+ };
2162
+ StrategyV2.fromBcs = function (data) {
2163
+ return StrategyV2.fromFields(StrategyV2.bcs.parse(data));
2164
+ };
2165
+ StrategyV2.prototype.toJSONField = function () {
2166
+ return {
2167
+ id: this.id,
2168
+ vaultIndex: this.vaultIndex.toString(),
2169
+ signalIndex: this.signalIndex.toString(),
2170
+ user: this.user,
2171
+ pricePercentage: this.pricePercentage.toString(),
2172
+ size: this.size.toString(),
2173
+ maxTimes: this.maxTimes.toString(),
2174
+ targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds),
2175
+ receipts: (0, reified_1.fieldToJSON)("vector<0xa2de2f04907b77ef03800a8969bb4f88c821737ee133aba4bc0485b267ad2118::vault::TypusBidReceipt>", this.receipts),
2176
+ active: this.active,
2177
+ u64Padding: (0, reified_1.fieldToJSON)("vector<u64>", this.u64Padding),
2178
+ bidTimes: this.bidTimes.toString(),
2179
+ bidRound: this.bidRound.toString(),
2180
+ bidTsMs: this.bidTsMs.toString(),
2181
+ bidRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.bidRounds),
2182
+ accumulatedProfit: this.accumulatedProfit.toString(),
2183
+ };
2184
+ };
2185
+ StrategyV2.prototype.toJSON = function () {
2186
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2187
+ };
2188
+ StrategyV2.fromJSONField = function (field) {
2189
+ return StrategyV2.reified().new({
2190
+ id: (0, reified_1.decodeFromJSONField)(structs_1.UID.reified(), field.id),
2191
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
2192
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
2193
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
2194
+ pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage),
2195
+ size: (0, reified_1.decodeFromJSONField)("u64", field.size),
2196
+ maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes),
2197
+ targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds),
2198
+ receipts: (0, reified_1.decodeFromJSONField)(reified.vector(structs_4.TypusBidReceipt.reified()), field.receipts),
2199
+ active: (0, reified_1.decodeFromJSONField)("bool", field.active),
2200
+ u64Padding: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.u64Padding),
2201
+ bidTimes: (0, reified_1.decodeFromJSONField)("u64", field.bidTimes),
2202
+ bidRound: (0, reified_1.decodeFromJSONField)("u64", field.bidRound),
2203
+ bidTsMs: (0, reified_1.decodeFromJSONField)("u64", field.bidTsMs),
2204
+ bidRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.bidRounds),
2205
+ accumulatedProfit: (0, reified_1.decodeFromJSONField)("u64", field.accumulatedProfit),
2206
+ });
2207
+ };
2208
+ StrategyV2.fromJSON = function (json) {
2209
+ if (json.$typeName !== StrategyV2.$typeName) {
2210
+ throw new Error("not a WithTwoGenerics json object");
2211
+ }
2212
+ return StrategyV2.fromJSONField(json);
2213
+ };
2214
+ StrategyV2.fromSuiParsedData = function (content) {
2215
+ if (content.dataType !== "moveObject") {
2216
+ throw new Error("not an object");
2217
+ }
2218
+ if (!isStrategyV2(content.type)) {
2219
+ throw new Error("object at ".concat(content.fields.id, " is not a StrategyV2 object"));
2220
+ }
2221
+ return StrategyV2.fromFieldsWithTypes(content);
2222
+ };
2223
+ StrategyV2.fetch = function (client, id) {
2224
+ return __awaiter(this, void 0, void 0, function () {
2225
+ var res;
2226
+ var _a, _b;
2227
+ return __generator(this, function (_c) {
2228
+ switch (_c.label) {
2229
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2230
+ case 1:
2231
+ res = _c.sent();
2232
+ if (res.error) {
2233
+ throw new Error("error fetching StrategyV2 object at id ".concat(id, ": ").concat(res.error.code));
2234
+ }
2235
+ 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)) {
2236
+ throw new Error("object at id ".concat(id, " is not a StrategyV2 object"));
2237
+ }
2238
+ return [2 /*return*/, StrategyV2.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2239
+ }
2240
+ });
2241
+ });
2242
+ };
2243
+ StrategyV2.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::StrategyV2";
2244
+ StrategyV2.$numTypeParams = 0;
2245
+ return StrategyV2;
2246
+ }());
2247
+ exports.StrategyV2 = StrategyV2;
2248
+ /* ============================== UpdateStrategyEvent =============================== */
2249
+ function isUpdateStrategyEvent(type) {
2250
+ type = (0, util_1.compressSuiType)(type);
2251
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::UpdateStrategyEvent";
2252
+ }
2253
+ exports.isUpdateStrategyEvent = isUpdateStrategyEvent;
2254
+ var UpdateStrategyEvent = /** @class */ (function () {
2255
+ function UpdateStrategyEvent(typeArgs, fields) {
2256
+ this.$typeName = UpdateStrategyEvent.$typeName;
2257
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([UpdateStrategyEvent.$typeName], __read(typeArgs), false));
2258
+ this.$typeArgs = typeArgs;
2259
+ this.vaultIndex = fields.vaultIndex;
2260
+ this.signalIndex = fields.signalIndex;
2261
+ this.strategyIndex = fields.strategyIndex;
2262
+ this.user = fields.user;
2263
+ this.pricePercentage = fields.pricePercentage;
2264
+ this.size = fields.size;
2265
+ this.maxTimes = fields.maxTimes;
2266
+ this.targetRounds = fields.targetRounds;
2267
+ this.depositAmount = fields.depositAmount;
2268
+ }
2269
+ UpdateStrategyEvent.reified = function () {
2270
+ var _this = this;
2271
+ return {
2272
+ typeName: UpdateStrategyEvent.$typeName,
2273
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([UpdateStrategyEvent.$typeName], [], false)),
2274
+ typeArgs: [],
2275
+ reifiedTypeArgs: [],
2276
+ fromFields: function (fields) { return UpdateStrategyEvent.fromFields(fields); },
2277
+ fromFieldsWithTypes: function (item) { return UpdateStrategyEvent.fromFieldsWithTypes(item); },
2278
+ fromBcs: function (data) { return UpdateStrategyEvent.fromBcs(data); },
2279
+ bcs: UpdateStrategyEvent.bcs,
2280
+ fromJSONField: function (field) { return UpdateStrategyEvent.fromJSONField(field); },
2281
+ fromJSON: function (json) { return UpdateStrategyEvent.fromJSON(json); },
2282
+ fromSuiParsedData: function (content) { return UpdateStrategyEvent.fromSuiParsedData(content); },
2283
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2284
+ return [2 /*return*/, UpdateStrategyEvent.fetch(client, id)];
2285
+ }); }); },
2286
+ new: function (fields) {
2287
+ return new UpdateStrategyEvent([], fields);
2288
+ },
2289
+ kind: "StructClassReified",
2290
+ };
2291
+ };
2292
+ Object.defineProperty(UpdateStrategyEvent, "r", {
2293
+ get: function () {
2294
+ return UpdateStrategyEvent.reified();
2295
+ },
2296
+ enumerable: false,
2297
+ configurable: true
2298
+ });
2299
+ UpdateStrategyEvent.phantom = function () {
2300
+ return (0, reified_1.phantom)(UpdateStrategyEvent.reified());
2301
+ };
2302
+ Object.defineProperty(UpdateStrategyEvent, "p", {
2303
+ get: function () {
2304
+ return UpdateStrategyEvent.phantom();
2305
+ },
2306
+ enumerable: false,
2307
+ configurable: true
2308
+ });
2309
+ Object.defineProperty(UpdateStrategyEvent, "bcs", {
2310
+ get: function () {
2311
+ return bcs_1.bcs.struct("UpdateStrategyEvent", {
2312
+ vault_index: bcs_1.bcs.u64(),
2313
+ signal_index: bcs_1.bcs.u64(),
2314
+ strategy_index: bcs_1.bcs.u64(),
2315
+ 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); } }),
2316
+ price_percentage: bcs_1.bcs.u64(),
2317
+ size: bcs_1.bcs.u64(),
2318
+ max_times: bcs_1.bcs.u64(),
2319
+ target_rounds: bcs_1.bcs.vector(bcs_1.bcs.u64()),
2320
+ deposit_amount: bcs_1.bcs.u64(),
2321
+ });
2322
+ },
2323
+ enumerable: false,
2324
+ configurable: true
2325
+ });
2326
+ UpdateStrategyEvent.fromFields = function (fields) {
2327
+ return UpdateStrategyEvent.reified().new({
2328
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
2329
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
2330
+ strategyIndex: (0, reified_1.decodeFromFields)("u64", fields.strategy_index),
2331
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
2332
+ pricePercentage: (0, reified_1.decodeFromFields)("u64", fields.price_percentage),
2333
+ size: (0, reified_1.decodeFromFields)("u64", fields.size),
2334
+ maxTimes: (0, reified_1.decodeFromFields)("u64", fields.max_times),
2335
+ targetRounds: (0, reified_1.decodeFromFields)(reified.vector("u64"), fields.target_rounds),
2336
+ depositAmount: (0, reified_1.decodeFromFields)("u64", fields.deposit_amount),
2337
+ });
2338
+ };
2339
+ UpdateStrategyEvent.fromFieldsWithTypes = function (item) {
2340
+ if (!isUpdateStrategyEvent(item.type)) {
2341
+ throw new Error("not a UpdateStrategyEvent type");
2342
+ }
2343
+ return UpdateStrategyEvent.reified().new({
2344
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
2345
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
2346
+ strategyIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.strategy_index),
2347
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
2348
+ pricePercentage: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.price_percentage),
2349
+ size: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.size),
2350
+ maxTimes: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.max_times),
2351
+ targetRounds: (0, reified_1.decodeFromFieldsWithTypes)(reified.vector("u64"), item.fields.target_rounds),
2352
+ depositAmount: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.deposit_amount),
2353
+ });
2354
+ };
2355
+ UpdateStrategyEvent.fromBcs = function (data) {
2356
+ return UpdateStrategyEvent.fromFields(UpdateStrategyEvent.bcs.parse(data));
2357
+ };
2358
+ UpdateStrategyEvent.prototype.toJSONField = function () {
2359
+ return {
2360
+ vaultIndex: this.vaultIndex.toString(),
2361
+ signalIndex: this.signalIndex.toString(),
2362
+ strategyIndex: this.strategyIndex.toString(),
2363
+ user: this.user,
2364
+ pricePercentage: this.pricePercentage.toString(),
2365
+ size: this.size.toString(),
2366
+ maxTimes: this.maxTimes.toString(),
2367
+ targetRounds: (0, reified_1.fieldToJSON)("vector<u64>", this.targetRounds),
2368
+ depositAmount: this.depositAmount.toString(),
2369
+ };
2370
+ };
2371
+ UpdateStrategyEvent.prototype.toJSON = function () {
2372
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2373
+ };
2374
+ UpdateStrategyEvent.fromJSONField = function (field) {
2375
+ return UpdateStrategyEvent.reified().new({
2376
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
2377
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
2378
+ strategyIndex: (0, reified_1.decodeFromJSONField)("u64", field.strategyIndex),
2379
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
2380
+ pricePercentage: (0, reified_1.decodeFromJSONField)("u64", field.pricePercentage),
2381
+ size: (0, reified_1.decodeFromJSONField)("u64", field.size),
2382
+ maxTimes: (0, reified_1.decodeFromJSONField)("u64", field.maxTimes),
2383
+ targetRounds: (0, reified_1.decodeFromJSONField)(reified.vector("u64"), field.targetRounds),
2384
+ depositAmount: (0, reified_1.decodeFromJSONField)("u64", field.depositAmount),
2385
+ });
2386
+ };
2387
+ UpdateStrategyEvent.fromJSON = function (json) {
2388
+ if (json.$typeName !== UpdateStrategyEvent.$typeName) {
2389
+ throw new Error("not a WithTwoGenerics json object");
2390
+ }
2391
+ return UpdateStrategyEvent.fromJSONField(json);
2392
+ };
2393
+ UpdateStrategyEvent.fromSuiParsedData = function (content) {
2394
+ if (content.dataType !== "moveObject") {
2395
+ throw new Error("not an object");
2396
+ }
2397
+ if (!isUpdateStrategyEvent(content.type)) {
2398
+ throw new Error("object at ".concat(content.fields.id, " is not a UpdateStrategyEvent object"));
2399
+ }
2400
+ return UpdateStrategyEvent.fromFieldsWithTypes(content);
2401
+ };
2402
+ UpdateStrategyEvent.fetch = function (client, id) {
2403
+ return __awaiter(this, void 0, void 0, function () {
2404
+ var res;
2405
+ var _a, _b;
2406
+ return __generator(this, function (_c) {
2407
+ switch (_c.label) {
2408
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2409
+ case 1:
2410
+ res = _c.sent();
2411
+ if (res.error) {
2412
+ throw new Error("error fetching UpdateStrategyEvent object at id ".concat(id, ": ").concat(res.error.code));
2413
+ }
2414
+ 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)) {
2415
+ throw new Error("object at id ".concat(id, " is not a UpdateStrategyEvent object"));
2416
+ }
2417
+ return [2 /*return*/, UpdateStrategyEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2418
+ }
2419
+ });
2420
+ });
2421
+ };
2422
+ UpdateStrategyEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::UpdateStrategyEvent";
2423
+ UpdateStrategyEvent.$numTypeParams = 0;
2424
+ return UpdateStrategyEvent;
2425
+ }());
2426
+ exports.UpdateStrategyEvent = UpdateStrategyEvent;
2427
+ /* ============================== WithdrawProfitEvent =============================== */
2428
+ function isWithdrawProfitEvent(type) {
2429
+ type = (0, util_1.compressSuiType)(type);
2430
+ return type === "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::WithdrawProfitEvent";
2431
+ }
2432
+ exports.isWithdrawProfitEvent = isWithdrawProfitEvent;
2433
+ var WithdrawProfitEvent = /** @class */ (function () {
2434
+ function WithdrawProfitEvent(typeArgs, fields) {
2435
+ this.$typeName = WithdrawProfitEvent.$typeName;
2436
+ this.$fullTypeName = util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawProfitEvent.$typeName], __read(typeArgs), false));
2437
+ this.$typeArgs = typeArgs;
2438
+ this.vaultIndex = fields.vaultIndex;
2439
+ this.signalIndex = fields.signalIndex;
2440
+ this.strategyIndex = fields.strategyIndex;
2441
+ this.user = fields.user;
2442
+ this.profit = fields.profit;
2443
+ }
2444
+ WithdrawProfitEvent.reified = function () {
2445
+ var _this = this;
2446
+ return {
2447
+ typeName: WithdrawProfitEvent.$typeName,
2448
+ fullTypeName: util_1.composeSuiType.apply(void 0, __spreadArray([WithdrawProfitEvent.$typeName], [], false)),
2449
+ typeArgs: [],
2450
+ reifiedTypeArgs: [],
2451
+ fromFields: function (fields) { return WithdrawProfitEvent.fromFields(fields); },
2452
+ fromFieldsWithTypes: function (item) { return WithdrawProfitEvent.fromFieldsWithTypes(item); },
2453
+ fromBcs: function (data) { return WithdrawProfitEvent.fromBcs(data); },
2454
+ bcs: WithdrawProfitEvent.bcs,
2455
+ fromJSONField: function (field) { return WithdrawProfitEvent.fromJSONField(field); },
2456
+ fromJSON: function (json) { return WithdrawProfitEvent.fromJSON(json); },
2457
+ fromSuiParsedData: function (content) { return WithdrawProfitEvent.fromSuiParsedData(content); },
2458
+ fetch: function (client, id) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2459
+ return [2 /*return*/, WithdrawProfitEvent.fetch(client, id)];
2460
+ }); }); },
2461
+ new: function (fields) {
2462
+ return new WithdrawProfitEvent([], fields);
2463
+ },
2464
+ kind: "StructClassReified",
2465
+ };
2466
+ };
2467
+ Object.defineProperty(WithdrawProfitEvent, "r", {
2468
+ get: function () {
2469
+ return WithdrawProfitEvent.reified();
2470
+ },
2471
+ enumerable: false,
2472
+ configurable: true
2473
+ });
2474
+ WithdrawProfitEvent.phantom = function () {
2475
+ return (0, reified_1.phantom)(WithdrawProfitEvent.reified());
2476
+ };
2477
+ Object.defineProperty(WithdrawProfitEvent, "p", {
2478
+ get: function () {
2479
+ return WithdrawProfitEvent.phantom();
2480
+ },
2481
+ enumerable: false,
2482
+ configurable: true
2483
+ });
2484
+ Object.defineProperty(WithdrawProfitEvent, "bcs", {
2485
+ get: function () {
2486
+ return bcs_1.bcs.struct("WithdrawProfitEvent", {
2487
+ vault_index: bcs_1.bcs.u64(),
2488
+ signal_index: bcs_1.bcs.u64(),
2489
+ strategy_index: bcs_1.bcs.u64(),
2490
+ 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); } }),
2491
+ profit: bcs_1.bcs.u64(),
2492
+ });
2493
+ },
2494
+ enumerable: false,
2495
+ configurable: true
2496
+ });
2497
+ WithdrawProfitEvent.fromFields = function (fields) {
2498
+ return WithdrawProfitEvent.reified().new({
2499
+ vaultIndex: (0, reified_1.decodeFromFields)("u64", fields.vault_index),
2500
+ signalIndex: (0, reified_1.decodeFromFields)("u64", fields.signal_index),
2501
+ strategyIndex: (0, reified_1.decodeFromFields)("u64", fields.strategy_index),
2502
+ user: (0, reified_1.decodeFromFields)("address", fields.user),
2503
+ profit: (0, reified_1.decodeFromFields)("u64", fields.profit),
2504
+ });
2505
+ };
2506
+ WithdrawProfitEvent.fromFieldsWithTypes = function (item) {
2507
+ if (!isWithdrawProfitEvent(item.type)) {
2508
+ throw new Error("not a WithdrawProfitEvent type");
2509
+ }
2510
+ return WithdrawProfitEvent.reified().new({
2511
+ vaultIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.vault_index),
2512
+ signalIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.signal_index),
2513
+ strategyIndex: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.strategy_index),
2514
+ user: (0, reified_1.decodeFromFieldsWithTypes)("address", item.fields.user),
2515
+ profit: (0, reified_1.decodeFromFieldsWithTypes)("u64", item.fields.profit),
2516
+ });
2517
+ };
2518
+ WithdrawProfitEvent.fromBcs = function (data) {
2519
+ return WithdrawProfitEvent.fromFields(WithdrawProfitEvent.bcs.parse(data));
2520
+ };
2521
+ WithdrawProfitEvent.prototype.toJSONField = function () {
2522
+ return {
2523
+ vaultIndex: this.vaultIndex.toString(),
2524
+ signalIndex: this.signalIndex.toString(),
2525
+ strategyIndex: this.strategyIndex.toString(),
2526
+ user: this.user,
2527
+ profit: this.profit.toString(),
2528
+ };
2529
+ };
2530
+ WithdrawProfitEvent.prototype.toJSON = function () {
2531
+ return __assign({ $typeName: this.$typeName, $typeArgs: this.$typeArgs }, this.toJSONField());
2532
+ };
2533
+ WithdrawProfitEvent.fromJSONField = function (field) {
2534
+ return WithdrawProfitEvent.reified().new({
2535
+ vaultIndex: (0, reified_1.decodeFromJSONField)("u64", field.vaultIndex),
2536
+ signalIndex: (0, reified_1.decodeFromJSONField)("u64", field.signalIndex),
2537
+ strategyIndex: (0, reified_1.decodeFromJSONField)("u64", field.strategyIndex),
2538
+ user: (0, reified_1.decodeFromJSONField)("address", field.user),
2539
+ profit: (0, reified_1.decodeFromJSONField)("u64", field.profit),
2540
+ });
2541
+ };
2542
+ WithdrawProfitEvent.fromJSON = function (json) {
2543
+ if (json.$typeName !== WithdrawProfitEvent.$typeName) {
2544
+ throw new Error("not a WithTwoGenerics json object");
2545
+ }
2546
+ return WithdrawProfitEvent.fromJSONField(json);
2547
+ };
2548
+ WithdrawProfitEvent.fromSuiParsedData = function (content) {
2549
+ if (content.dataType !== "moveObject") {
2550
+ throw new Error("not an object");
2551
+ }
2552
+ if (!isWithdrawProfitEvent(content.type)) {
2553
+ throw new Error("object at ".concat(content.fields.id, " is not a WithdrawProfitEvent object"));
2554
+ }
2555
+ return WithdrawProfitEvent.fromFieldsWithTypes(content);
2556
+ };
2557
+ WithdrawProfitEvent.fetch = function (client, id) {
2558
+ return __awaiter(this, void 0, void 0, function () {
2559
+ var res;
2560
+ var _a, _b;
2561
+ return __generator(this, function (_c) {
2562
+ switch (_c.label) {
2563
+ case 0: return [4 /*yield*/, client.getObject({ id: id, options: { showBcs: true } })];
2564
+ case 1:
2565
+ res = _c.sent();
2566
+ if (res.error) {
2567
+ throw new Error("error fetching WithdrawProfitEvent object at id ".concat(id, ": ").concat(res.error.code));
2568
+ }
2569
+ 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)) {
2570
+ throw new Error("object at id ".concat(id, " is not a WithdrawProfitEvent object"));
2571
+ }
2572
+ return [2 /*return*/, WithdrawProfitEvent.fromBcs((0, bcs_1.fromB64)(res.data.bcs.bcsBytes))];
2573
+ }
2574
+ });
2575
+ });
2576
+ };
2577
+ WithdrawProfitEvent.$typeName = "0x6cddbfa30141e0332f8995a12453fc2cb07a2fa3dad52b342493780c7784f455::auto_bid::WithdrawProfitEvent";
2578
+ WithdrawProfitEvent.$numTypeParams = 0;
2579
+ return WithdrawProfitEvent;
2580
+ }());
2581
+ exports.WithdrawProfitEvent = WithdrawProfitEvent;